Fix enum switch/case statements with unhandled values.
[asdcplib-cth.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for asdcplib 2.5.11.
4 #
5 # Report bugs to <asdcplib@cinecert.com>.
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: asdcplib@cinecert.com about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: 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='asdcplib'
592 PACKAGE_TARNAME='asdcplib'
593 PACKAGE_VERSION='2.5.11'
594 PACKAGE_STRING='asdcplib 2.5.11'
595 PACKAGE_BUGREPORT='asdcplib@cinecert.com'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/KM_error.h"
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_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 USE_PHDR_FALSE
640 USE_PHDR_TRUE
641 USE_AS_02_FALSE
642 USE_AS_02_TRUE
643 ENABLE_RANDOM_UUID_FALSE
644 ENABLE_RANDOM_UUID_TRUE
645 DEV_HEADERS_FALSE
646 DEV_HEADERS_TRUE
647 FREEDIST_FALSE
648 FREEDIST_TRUE
649 HAVE_PYTHON_FALSE
650 HAVE_PYTHON_TRUE
651 PYTHON_EXECDIR
652 PYTHON_EXECPREFIX
653 PYTHON_PREFIX
654 PYTHON_LDFLAGS
655 PYTHON_LSPEC
656 PYTHON_SHORTVERSION
657 PYTHON_CPPFLAGS
658 PYTHON_CSPEC
659 PYTHON
660 PYTHON_USE_FALSE
661 PYTHON_USE_TRUE
662 XERCES_VERSION
663 XERCES_LIBS
664 XERCES_LDFLAGS
665 XERCES_CPPFLAGS
666 EXPAT_VERSION
667 EXPAT_LDFLAGS
668 EXPAT_CFLAGS
669 OPENSSL_VERSION
670 OPENSSL_LIBS
671 OPENSSL_LDFLAGS
672 OPENSSL_CPPFLAGS
673 CXXCPP
674 CPP
675 OTOOL64
676 OTOOL
677 LIPO
678 NMEDIT
679 DSYMUTIL
680 MANIFEST_TOOL
681 RANLIB
682 ac_ct_AR
683 AR
684 DLLTOOL
685 OBJDUMP
686 LN_S
687 NM
688 ac_ct_DUMPBIN
689 DUMPBIN
690 LD
691 FGREP
692 EGREP
693 GREP
694 SED
695 LIBTOOL
696 am__fastdepCXX_FALSE
697 am__fastdepCXX_TRUE
698 CXXDEPMODE
699 ac_ct_CXX
700 CXXFLAGS
701 CXX
702 am__fastdepCC_FALSE
703 am__fastdepCC_TRUE
704 CCDEPMODE
705 am__nodep
706 AMDEPBACKSLASH
707 AMDEP_FALSE
708 AMDEP_TRUE
709 am__quote
710 am__include
711 DEPDIR
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 OPENBSD_HOST_FALSE
720 OPENBSD_HOST_TRUE
721 host_os
722 host_vendor
723 host_cpu
724 host
725 build_os
726 build_vendor
727 build_cpu
728 build
729 AM_BACKSLASH
730 AM_DEFAULT_VERBOSITY
731 AM_DEFAULT_V
732 AM_V
733 am__untar
734 am__tar
735 AMTAR
736 am__leading_dot
737 SET_MAKE
738 AWK
739 mkdir_p
740 MKDIR_P
741 INSTALL_STRIP_PROGRAM
742 STRIP
743 install_sh
744 MAKEINFO
745 AUTOHEADER
746 AUTOMAKE
747 AUTOCONF
748 ACLOCAL
749 VERSION
750 PACKAGE
751 CYGPATH_W
752 am__isrc
753 INSTALL_DATA
754 INSTALL_SCRIPT
755 INSTALL_PROGRAM
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_silent_rules
798 enable_dependency_tracking
799 enable_shared
800 enable_static
801 with_pic
802 enable_fast_install
803 with_gnu_ld
804 with_sysroot
805 enable_libtool_lock
806 enable_largefile
807 with_openssl
808 with_expat
809 with_expat_inc
810 with_expat_lib
811 with_xerces
812 with_xerces_inc
813 with_xerces_lib
814 with_python
815 enable_freedist
816 enable_dev_headers
817 enable_random_case_UUID
818 enable_as_02
819 enable_phdr
820 '
821       ac_precious_vars='build_alias
822 host_alias
823 target_alias
824 CC
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
829 CXX
830 CXXFLAGS
831 CCC
832 CPP
833 CXXCPP
834 PYTHON'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889   # If the previous option needs an argument, assign it.
890   if test -n "$ac_prev"; then
891     eval $ac_prev=\$ac_option
892     ac_prev=
893     continue
894   fi
895
896   case $ac_option in
897   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898   *=)   ac_optarg= ;;
899   *)    ac_optarg=yes ;;
900   esac
901
902   # Accept the important Cygnus configure options, so we can diagnose typos.
903
904   case $ac_dashdash$ac_option in
905   --)
906     ac_dashdash=yes ;;
907
908   -bindir | --bindir | --bindi | --bind | --bin | --bi)
909     ac_prev=bindir ;;
910   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911     bindir=$ac_optarg ;;
912
913   -build | --build | --buil | --bui | --bu)
914     ac_prev=build_alias ;;
915   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916     build_alias=$ac_optarg ;;
917
918   -cache-file | --cache-file | --cache-fil | --cache-fi \
919   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920     ac_prev=cache_file ;;
921   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923     cache_file=$ac_optarg ;;
924
925   --config-cache | -C)
926     cache_file=config.cache ;;
927
928   -datadir | --datadir | --datadi | --datad)
929     ac_prev=datadir ;;
930   -datadir=* | --datadir=* | --datadi=* | --datad=*)
931     datadir=$ac_optarg ;;
932
933   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934   | --dataroo | --dataro | --datar)
935     ac_prev=datarootdir ;;
936   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938     datarootdir=$ac_optarg ;;
939
940   -disable-* | --disable-*)
941     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942     # Reject names that are not valid shell variable names.
943     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944       as_fn_error $? "invalid feature name: $ac_useropt"
945     ac_useropt_orig=$ac_useropt
946     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947     case $ac_user_opts in
948       *"
949 "enable_$ac_useropt"
950 "*) ;;
951       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952          ac_unrecognized_sep=', ';;
953     esac
954     eval enable_$ac_useropt=no ;;
955
956   -docdir | --docdir | --docdi | --doc | --do)
957     ac_prev=docdir ;;
958   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959     docdir=$ac_optarg ;;
960
961   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962     ac_prev=dvidir ;;
963   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964     dvidir=$ac_optarg ;;
965
966   -enable-* | --enable-*)
967     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968     # Reject names that are not valid shell variable names.
969     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970       as_fn_error $? "invalid feature name: $ac_useropt"
971     ac_useropt_orig=$ac_useropt
972     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973     case $ac_user_opts in
974       *"
975 "enable_$ac_useropt"
976 "*) ;;
977       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978          ac_unrecognized_sep=', ';;
979     esac
980     eval enable_$ac_useropt=\$ac_optarg ;;
981
982   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984   | --exec | --exe | --ex)
985     ac_prev=exec_prefix ;;
986   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988   | --exec=* | --exe=* | --ex=*)
989     exec_prefix=$ac_optarg ;;
990
991   -gas | --gas | --ga | --g)
992     # Obsolete; use --with-gas.
993     with_gas=yes ;;
994
995   -help | --help | --hel | --he | -h)
996     ac_init_help=long ;;
997   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998     ac_init_help=recursive ;;
999   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000     ac_init_help=short ;;
1001
1002   -host | --host | --hos | --ho)
1003     ac_prev=host_alias ;;
1004   -host=* | --host=* | --hos=* | --ho=*)
1005     host_alias=$ac_optarg ;;
1006
1007   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008     ac_prev=htmldir ;;
1009   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010   | --ht=*)
1011     htmldir=$ac_optarg ;;
1012
1013   -includedir | --includedir | --includedi | --included | --include \
1014   | --includ | --inclu | --incl | --inc)
1015     ac_prev=includedir ;;
1016   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017   | --includ=* | --inclu=* | --incl=* | --inc=*)
1018     includedir=$ac_optarg ;;
1019
1020   -infodir | --infodir | --infodi | --infod | --info | --inf)
1021     ac_prev=infodir ;;
1022   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023     infodir=$ac_optarg ;;
1024
1025   -libdir | --libdir | --libdi | --libd)
1026     ac_prev=libdir ;;
1027   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028     libdir=$ac_optarg ;;
1029
1030   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031   | --libexe | --libex | --libe)
1032     ac_prev=libexecdir ;;
1033   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034   | --libexe=* | --libex=* | --libe=*)
1035     libexecdir=$ac_optarg ;;
1036
1037   -localedir | --localedir | --localedi | --localed | --locale)
1038     ac_prev=localedir ;;
1039   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040     localedir=$ac_optarg ;;
1041
1042   -localstatedir | --localstatedir | --localstatedi | --localstated \
1043   | --localstate | --localstat | --localsta | --localst | --locals)
1044     ac_prev=localstatedir ;;
1045   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047     localstatedir=$ac_optarg ;;
1048
1049   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050     ac_prev=mandir ;;
1051   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052     mandir=$ac_optarg ;;
1053
1054   -nfp | --nfp | --nf)
1055     # Obsolete; use --without-fp.
1056     with_fp=no ;;
1057
1058   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059   | --no-cr | --no-c | -n)
1060     no_create=yes ;;
1061
1062   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064     no_recursion=yes ;;
1065
1066   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068   | --oldin | --oldi | --old | --ol | --o)
1069     ac_prev=oldincludedir ;;
1070   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073     oldincludedir=$ac_optarg ;;
1074
1075   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076     ac_prev=prefix ;;
1077   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078     prefix=$ac_optarg ;;
1079
1080   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081   | --program-pre | --program-pr | --program-p)
1082     ac_prev=program_prefix ;;
1083   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085     program_prefix=$ac_optarg ;;
1086
1087   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088   | --program-suf | --program-su | --program-s)
1089     ac_prev=program_suffix ;;
1090   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092     program_suffix=$ac_optarg ;;
1093
1094   -program-transform-name | --program-transform-name \
1095   | --program-transform-nam | --program-transform-na \
1096   | --program-transform-n | --program-transform- \
1097   | --program-transform | --program-transfor \
1098   | --program-transfo | --program-transf \
1099   | --program-trans | --program-tran \
1100   | --progr-tra | --program-tr | --program-t)
1101     ac_prev=program_transform_name ;;
1102   -program-transform-name=* | --program-transform-name=* \
1103   | --program-transform-nam=* | --program-transform-na=* \
1104   | --program-transform-n=* | --program-transform-=* \
1105   | --program-transform=* | --program-transfor=* \
1106   | --program-transfo=* | --program-transf=* \
1107   | --program-trans=* | --program-tran=* \
1108   | --progr-tra=* | --program-tr=* | --program-t=*)
1109     program_transform_name=$ac_optarg ;;
1110
1111   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112     ac_prev=pdfdir ;;
1113   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114     pdfdir=$ac_optarg ;;
1115
1116   -psdir | --psdir | --psdi | --psd | --ps)
1117     ac_prev=psdir ;;
1118   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119     psdir=$ac_optarg ;;
1120
1121   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122   | -silent | --silent | --silen | --sile | --sil)
1123     silent=yes ;;
1124
1125   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126     ac_prev=sbindir ;;
1127   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128   | --sbi=* | --sb=*)
1129     sbindir=$ac_optarg ;;
1130
1131   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133   | --sharedst | --shareds | --shared | --share | --shar \
1134   | --sha | --sh)
1135     ac_prev=sharedstatedir ;;
1136   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139   | --sha=* | --sh=*)
1140     sharedstatedir=$ac_optarg ;;
1141
1142   -site | --site | --sit)
1143     ac_prev=site ;;
1144   -site=* | --site=* | --sit=*)
1145     site=$ac_optarg ;;
1146
1147   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148     ac_prev=srcdir ;;
1149   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150     srcdir=$ac_optarg ;;
1151
1152   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153   | --syscon | --sysco | --sysc | --sys | --sy)
1154     ac_prev=sysconfdir ;;
1155   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157     sysconfdir=$ac_optarg ;;
1158
1159   -target | --target | --targe | --targ | --tar | --ta | --t)
1160     ac_prev=target_alias ;;
1161   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162     target_alias=$ac_optarg ;;
1163
1164   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165     verbose=yes ;;
1166
1167   -version | --version | --versio | --versi | --vers | -V)
1168     ac_init_version=: ;;
1169
1170   -with-* | --with-*)
1171     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172     # Reject names that are not valid shell variable names.
1173     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174       as_fn_error $? "invalid package name: $ac_useropt"
1175     ac_useropt_orig=$ac_useropt
1176     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177     case $ac_user_opts in
1178       *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182          ac_unrecognized_sep=', ';;
1183     esac
1184     eval with_$ac_useropt=\$ac_optarg ;;
1185
1186   -without-* | --without-*)
1187     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190       as_fn_error $? "invalid package name: $ac_useropt"
1191     ac_useropt_orig=$ac_useropt
1192     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193     case $ac_user_opts in
1194       *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198          ac_unrecognized_sep=', ';;
1199     esac
1200     eval with_$ac_useropt=no ;;
1201
1202   --x)
1203     # Obsolete; use --with-x.
1204     with_x=yes ;;
1205
1206   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207   | --x-incl | --x-inc | --x-in | --x-i)
1208     ac_prev=x_includes ;;
1209   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211     x_includes=$ac_optarg ;;
1212
1213   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215     ac_prev=x_libraries ;;
1216   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218     x_libraries=$ac_optarg ;;
1219
1220   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1222     ;;
1223
1224   *=*)
1225     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226     # Reject names that are not valid shell variable names.
1227     case $ac_envvar in #(
1228       '' | [0-9]* | *[!_$as_cr_alnum]* )
1229       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230     esac
1231     eval $ac_envvar=\$ac_optarg
1232     export $ac_envvar ;;
1233
1234   *)
1235     # FIXME: should be removed in autoconf 3.0.
1236     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240     ;;
1241
1242   esac
1243 done
1244
1245 if test -n "$ac_prev"; then
1246   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247   as_fn_error $? "missing argument to $ac_option"
1248 fi
1249
1250 if test -n "$ac_unrecognized_opts"; then
1251   case $enable_option_checking in
1252     no) ;;
1253     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255   esac
1256 fi
1257
1258 # Check all directory arguments for consistency.
1259 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260                 datadir sysconfdir sharedstatedir localstatedir includedir \
1261                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262                 libdir localedir mandir
1263 do
1264   eval ac_val=\$$ac_var
1265   # Remove trailing slashes.
1266   case $ac_val in
1267     */ )
1268       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269       eval $ac_var=\$ac_val;;
1270   esac
1271   # Be sure to have absolute directory names.
1272   case $ac_val in
1273     [\\/$]* | ?:[\\/]* )  continue;;
1274     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275   esac
1276   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288   if test "x$build_alias" = x; then
1289     cross_compiling=maybe
1290   elif test "x$build_alias" != "x$host_alias"; then
1291     cross_compiling=yes
1292   fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304   as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306   as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311   ac_srcdir_defaulted=yes
1312   # Try the directory containing this script, then the parent directory.
1313   ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315          X"$as_myself" : 'X\(//\)[^/]' \| \
1316          X"$as_myself" : 'X\(//\)$' \| \
1317          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320             s//\1/
1321             q
1322           }
1323           /^X\(\/\/\)[^/].*/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\/\)$/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\).*/{
1332             s//\1/
1333             q
1334           }
1335           s/.*/./; q'`
1336   srcdir=$ac_confdir
1337   if test ! -r "$srcdir/$ac_unique_file"; then
1338     srcdir=..
1339   fi
1340 else
1341   ac_srcdir_defaulted=no
1342 fi
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 fi
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350         pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353   srcdir=.
1354 fi
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363   eval ac_env_${ac_var}_value=\$${ac_var}
1364   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1367
1368 #
1369 # Report the --help message.
1370 #
1371 if test "$ac_init_help" = "long"; then
1372   # Omit some internal or obsolete options to make the list less imposing.
1373   # This message is too long to be a string in the A/UX 3.1 sh.
1374   cat <<_ACEOF
1375 \`configure' configures asdcplib 2.5.11 to adapt to many kinds of systems.
1376
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE.  See below for descriptions of some of the useful variables.
1381
1382 Defaults for the options are specified in brackets.
1383
1384 Configuration:
1385   -h, --help              display this help and exit
1386       --help=short        display options specific to this package
1387       --help=recursive    display the short help of all the included packages
1388   -V, --version           display version information and exit
1389   -q, --quiet, --silent   do not print \`checking ...' messages
1390       --cache-file=FILE   cache test results in FILE [disabled]
1391   -C, --config-cache      alias for \`--cache-file=config.cache'
1392   -n, --no-create         do not create output files
1393       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1394
1395 Installation directories:
1396   --prefix=PREFIX         install architecture-independent files in PREFIX
1397                           [$ac_default_prefix]
1398   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1399                           [PREFIX]
1400
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1405
1406 For better control, use the options below.
1407
1408 Fine tuning of the installation directories:
1409   --bindir=DIR            user executables [EPREFIX/bin]
1410   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1411   --libexecdir=DIR        program executables [EPREFIX/libexec]
1412   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1413   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1414   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1415   --libdir=DIR            object code libraries [EPREFIX/lib]
1416   --includedir=DIR        C header files [PREFIX/include]
1417   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1418   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1419   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1420   --infodir=DIR           info documentation [DATAROOTDIR/info]
1421   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1422   --mandir=DIR            man documentation [DATAROOTDIR/man]
1423   --docdir=DIR            documentation root [DATAROOTDIR/doc/asdcplib]
1424   --htmldir=DIR           html documentation [DOCDIR]
1425   --dvidir=DIR            dvi documentation [DOCDIR]
1426   --pdfdir=DIR            pdf documentation [DOCDIR]
1427   --psdir=DIR             ps documentation [DOCDIR]
1428 _ACEOF
1429
1430   cat <<\_ACEOF
1431
1432 Program names:
1433   --program-prefix=PREFIX            prepend PREFIX to installed program names
1434   --program-suffix=SUFFIX            append SUFFIX to installed program names
1435   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1436
1437 System types:
1438   --build=BUILD     configure for building on BUILD [guessed]
1439   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444   case $ac_init_help in
1445      short | recursive ) echo "Configuration of asdcplib 2.5.11:";;
1446    esac
1447   cat <<\_ACEOF
1448
1449 Optional Features:
1450   --disable-option-checking  ignore unrecognized --enable/--with options
1451   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453   --enable-silent-rules   less verbose build output (undo: "make V=1")
1454   --disable-silent-rules  verbose build output (undo: "make V=0")
1455   --enable-dependency-tracking
1456                           do not reject slow dependency extractors
1457   --disable-dependency-tracking
1458                           speeds up one-time build
1459   --enable-shared[=PKGS]  build shared libraries [default=yes]
1460   --enable-static[=PKGS]  build static libraries [default=yes]
1461   --enable-fast-install[=PKGS]
1462                           optimize for fast installation [default=yes]
1463   --disable-libtool-lock  avoid locking (might break parallel builds)
1464   --disable-largefile     omit support for large files
1465   --enable-freedist    ensure source distribution is of BSD-licensed code
1466   --enable-dev-headers    install development headers
1467   --enable-random-case-UUID    encode randomly-cased UUID values when the environment variable KM_USE_RANDOM_UUID is set
1468   --enable-as-02    enable support for SMPTE ST 2067-5 MXF files, A.K.A. AS-02
1469   --enable-phdr    enable support for Prototype for High Dyamic Range in AS-02
1470
1471 Optional Packages:
1472   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1473   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1474   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1475                           both]
1476   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1477   --with-sysroot=DIR Search for dependent libraries within DIR
1478                         (or the compiler's sysroot if not specified).
1479   --with-openssl=[ARG]    use OpenSSL from given prefix (ARG=path); check
1480                           standard prefixes (ARG=yes); disable (ARG=no)
1481   --with-expat=[ARG]      use Expat XML Parser from given prefix (ARG=path);
1482                           check standard prefixes (ARG=yes); disable (ARG=no)
1483   --with-expat-inc=[DIR]  path to Expat XML Parser headers
1484   --with-expat-lib=[ARG]  link options for Expat XML Parser libraries
1485   --with-xerces=[ARG]     use Xerces C++ Parser from given prefix (ARG=path);
1486                           check standard prefixes (ARG=yes); disable (ARG=no)
1487   --with-xerces-inc=[DIR] path to Xerces C++ Parser headers
1488   --with-xerces-lib=[ARG] link options for Xerces C++ Parser libraries
1489   --with-python[=PYTHON]  absolute path name of Python executable
1490
1491 Some influential environment variables:
1492   CC          C compiler command
1493   CFLAGS      C compiler flags
1494   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1495               nonstandard directory <lib dir>
1496   LIBS        libraries to pass to the linker, e.g. -l<library>
1497   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1498               you have headers in a nonstandard directory <include dir>
1499   CXX         C++ compiler command
1500   CXXFLAGS    C++ compiler flags
1501   CPP         C preprocessor
1502   CXXCPP      C++ preprocessor
1503   PYTHON      Python Executable Path
1504
1505 Use these variables to override the choices made by `configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1507
1508 Report bugs to <asdcplib@cinecert.com>.
1509 _ACEOF
1510 ac_status=$?
1511 fi
1512
1513 if test "$ac_init_help" = "recursive"; then
1514   # If there are subdirs, report their specific --help.
1515   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516     test -d "$ac_dir" ||
1517       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518       continue
1519     ac_builddir=.
1520
1521 case "$ac_dir" in
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *)
1524   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1525   # A ".." for each directory in $ac_dir_suffix.
1526   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1527   case $ac_top_builddir_sub in
1528   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530   esac ;;
1531 esac
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1536
1537 case $srcdir in
1538   .)  # We are building in place.
1539     ac_srcdir=.
1540     ac_top_srcdir=$ac_top_builddir_sub
1541     ac_abs_top_srcdir=$ac_pwd ;;
1542   [\\/]* | ?:[\\/]* )  # Absolute name.
1543     ac_srcdir=$srcdir$ac_dir_suffix;
1544     ac_top_srcdir=$srcdir
1545     ac_abs_top_srcdir=$srcdir ;;
1546   *) # Relative name.
1547     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548     ac_top_srcdir=$ac_top_build_prefix$srcdir
1549     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 esac
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552
1553     cd "$ac_dir" || { ac_status=$?; continue; }
1554     # Check for guested configure.
1555     if test -f "$ac_srcdir/configure.gnu"; then
1556       echo &&
1557       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558     elif test -f "$ac_srcdir/configure"; then
1559       echo &&
1560       $SHELL "$ac_srcdir/configure" --help=recursive
1561     else
1562       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563     fi || ac_status=$?
1564     cd "$ac_pwd" || { ac_status=$?; break; }
1565   done
1566 fi
1567
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1570   cat <<\_ACEOF
1571 asdcplib configure 2.5.11
1572 generated by GNU Autoconf 2.69
1573
1574 Copyright (C) 2012 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1577 _ACEOF
1578   exit
1579 fi
1580
1581 ## ------------------------ ##
1582 ## Autoconf initialization. ##
1583 ## ------------------------ ##
1584
1585 # ac_fn_c_try_compile LINENO
1586 # --------------------------
1587 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_c_try_compile ()
1589 {
1590   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591   rm -f conftest.$ac_objext
1592   if { { ac_try="$ac_compile"
1593 case "(($ac_try" in
1594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595   *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599   (eval "$ac_compile") 2>conftest.err
1600   ac_status=$?
1601   if test -s conftest.err; then
1602     grep -v '^ *+' conftest.err >conftest.er1
1603     cat conftest.er1 >&5
1604     mv -f conftest.er1 conftest.err
1605   fi
1606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607   test $ac_status = 0; } && {
1608          test -z "$ac_c_werror_flag" ||
1609          test ! -s conftest.err
1610        } && test -s conftest.$ac_objext; then :
1611   ac_retval=0
1612 else
1613   $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616         ac_retval=1
1617 fi
1618   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619   as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_compile
1622
1623 # ac_fn_cxx_try_compile LINENO
1624 # ----------------------------
1625 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_cxx_try_compile ()
1627 {
1628   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629   rm -f conftest.$ac_objext
1630   if { { ac_try="$ac_compile"
1631 case "(($ac_try" in
1632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633   *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637   (eval "$ac_compile") 2>conftest.err
1638   ac_status=$?
1639   if test -s conftest.err; then
1640     grep -v '^ *+' conftest.err >conftest.er1
1641     cat conftest.er1 >&5
1642     mv -f conftest.er1 conftest.err
1643   fi
1644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645   test $ac_status = 0; } && {
1646          test -z "$ac_cxx_werror_flag" ||
1647          test ! -s conftest.err
1648        } && test -s conftest.$ac_objext; then :
1649   ac_retval=0
1650 else
1651   $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654         ac_retval=1
1655 fi
1656   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657   as_fn_set_status $ac_retval
1658
1659 } # ac_fn_cxx_try_compile
1660
1661 # ac_fn_c_try_link LINENO
1662 # -----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_link ()
1665 {
1666   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667   rm -f conftest.$ac_objext conftest$ac_exeext
1668   if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671   *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675   (eval "$ac_link") 2>conftest.err
1676   ac_status=$?
1677   if test -s conftest.err; then
1678     grep -v '^ *+' conftest.err >conftest.er1
1679     cat conftest.er1 >&5
1680     mv -f conftest.er1 conftest.err
1681   fi
1682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683   test $ac_status = 0; } && {
1684          test -z "$ac_c_werror_flag" ||
1685          test ! -s conftest.err
1686        } && test -s conftest$ac_exeext && {
1687          test "$cross_compiling" = yes ||
1688          test -x conftest$ac_exeext
1689        }; then :
1690   ac_retval=0
1691 else
1692   $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695         ac_retval=1
1696 fi
1697   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699   # interfere with the next link command; also delete a directory that is
1700   # left behind by Apple's compiler.  We do this before executing the actions.
1701   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703   as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_link
1706
1707 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1708 # -------------------------------------------------------
1709 # Tests whether HEADER exists and can be compiled using the include files in
1710 # INCLUDES, setting the cache variable VAR accordingly.
1711 ac_fn_c_check_header_compile ()
1712 {
1713   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 $as_echo_n "checking for $2... " >&6; }
1716 if eval \${$3+:} false; then :
1717   $as_echo_n "(cached) " >&6
1718 else
1719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h.  */
1721 $4
1722 #include <$2>
1723 _ACEOF
1724 if ac_fn_c_try_compile "$LINENO"; then :
1725   eval "$3=yes"
1726 else
1727   eval "$3=no"
1728 fi
1729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730 fi
1731 eval ac_res=\$$3
1732                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735
1736 } # ac_fn_c_check_header_compile
1737
1738 # ac_fn_c_try_cpp LINENO
1739 # ----------------------
1740 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_c_try_cpp ()
1742 {
1743   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744   if { { ac_try="$ac_cpp conftest.$ac_ext"
1745 case "(($ac_try" in
1746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747   *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1752   ac_status=$?
1753   if test -s conftest.err; then
1754     grep -v '^ *+' conftest.err >conftest.er1
1755     cat conftest.er1 >&5
1756     mv -f conftest.er1 conftest.err
1757   fi
1758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759   test $ac_status = 0; } > conftest.i && {
1760          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1761          test ! -s conftest.err
1762        }; then :
1763   ac_retval=0
1764 else
1765   $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768     ac_retval=1
1769 fi
1770   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771   as_fn_set_status $ac_retval
1772
1773 } # ac_fn_c_try_cpp
1774
1775 # ac_fn_c_try_run LINENO
1776 # ----------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1778 # that executables *can* be run.
1779 ac_fn_c_try_run ()
1780 {
1781   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782   if { { ac_try="$ac_link"
1783 case "(($ac_try" in
1784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785   *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789   (eval "$ac_link") 2>&5
1790   ac_status=$?
1791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1793   { { case "(($ac_try" in
1794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795   *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799   (eval "$ac_try") 2>&5
1800   ac_status=$?
1801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802   test $ac_status = 0; }; }; then :
1803   ac_retval=0
1804 else
1805   $as_echo "$as_me: program exited with status $ac_status" >&5
1806        $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1808
1809        ac_retval=$ac_status
1810 fi
1811   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813   as_fn_set_status $ac_retval
1814
1815 } # ac_fn_c_try_run
1816
1817 # ac_fn_c_check_func LINENO FUNC VAR
1818 # ----------------------------------
1819 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1820 ac_fn_c_check_func ()
1821 {
1822   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826   $as_echo_n "(cached) " >&6
1827 else
1828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h.  */
1830 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1832 #define $2 innocuous_$2
1833
1834 /* System header to define __stub macros and hopefully few prototypes,
1835     which can conflict with char $2 (); below.
1836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1837     <limits.h> exists even on freestanding compilers.  */
1838
1839 #ifdef __STDC__
1840 # include <limits.h>
1841 #else
1842 # include <assert.h>
1843 #endif
1844
1845 #undef $2
1846
1847 /* Override any GCC internal prototype to avoid an error.
1848    Use char because int might match the return type of a GCC
1849    builtin and then its argument prototype would still apply.  */
1850 #ifdef __cplusplus
1851 extern "C"
1852 #endif
1853 char $2 ();
1854 /* The GNU C library defines this for functions which it implements
1855     to always fail with ENOSYS.  Some functions are actually named
1856     something starting with __ and the normal name is an alias.  */
1857 #if defined __stub_$2 || defined __stub___$2
1858 choke me
1859 #endif
1860
1861 int
1862 main ()
1863 {
1864 return $2 ();
1865   ;
1866   return 0;
1867 }
1868 _ACEOF
1869 if ac_fn_c_try_link "$LINENO"; then :
1870   eval "$3=yes"
1871 else
1872   eval "$3=no"
1873 fi
1874 rm -f core conftest.err conftest.$ac_objext \
1875     conftest$ac_exeext conftest.$ac_ext
1876 fi
1877 eval ac_res=\$$3
1878                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881
1882 } # ac_fn_c_check_func
1883
1884 # ac_fn_cxx_try_cpp LINENO
1885 # ------------------------
1886 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_cxx_try_cpp ()
1888 {
1889   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890   if { { ac_try="$ac_cpp conftest.$ac_ext"
1891 case "(($ac_try" in
1892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893   *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1898   ac_status=$?
1899   if test -s conftest.err; then
1900     grep -v '^ *+' conftest.err >conftest.er1
1901     cat conftest.er1 >&5
1902     mv -f conftest.er1 conftest.err
1903   fi
1904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905   test $ac_status = 0; } > conftest.i && {
1906          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1907          test ! -s conftest.err
1908        }; then :
1909   ac_retval=0
1910 else
1911   $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914     ac_retval=1
1915 fi
1916   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917   as_fn_set_status $ac_retval
1918
1919 } # ac_fn_cxx_try_cpp
1920
1921 # ac_fn_cxx_try_link LINENO
1922 # -------------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_cxx_try_link ()
1925 {
1926   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927   rm -f conftest.$ac_objext conftest$ac_exeext
1928   if { { ac_try="$ac_link"
1929 case "(($ac_try" in
1930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931   *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935   (eval "$ac_link") 2>conftest.err
1936   ac_status=$?
1937   if test -s conftest.err; then
1938     grep -v '^ *+' conftest.err >conftest.er1
1939     cat conftest.er1 >&5
1940     mv -f conftest.er1 conftest.err
1941   fi
1942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943   test $ac_status = 0; } && {
1944          test -z "$ac_cxx_werror_flag" ||
1945          test ! -s conftest.err
1946        } && test -s conftest$ac_exeext && {
1947          test "$cross_compiling" = yes ||
1948          test -x conftest$ac_exeext
1949        }; then :
1950   ac_retval=0
1951 else
1952   $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1954
1955         ac_retval=1
1956 fi
1957   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959   # interfere with the next link command; also delete a directory that is
1960   # left behind by Apple's compiler.  We do this before executing the actions.
1961   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963   as_fn_set_status $ac_retval
1964
1965 } # ac_fn_cxx_try_link
1966 cat >config.log <<_ACEOF
1967 This file contains any messages produced by compilers while
1968 running configure, to aid debugging if configure makes a mistake.
1969
1970 It was created by asdcplib $as_me 2.5.11, which was
1971 generated by GNU Autoconf 2.69.  Invocation command line was
1972
1973   $ $0 $@
1974
1975 _ACEOF
1976 exec 5>>config.log
1977 {
1978 cat <<_ASUNAME
1979 ## --------- ##
1980 ## Platform. ##
1981 ## --------- ##
1982
1983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1988
1989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1990 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1991
1992 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1993 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1995 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1996 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1997 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1998 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1999
2000 _ASUNAME
2001
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
2005   IFS=$as_save_IFS
2006   test -z "$as_dir" && as_dir=.
2007     $as_echo "PATH: $as_dir"
2008   done
2009 IFS=$as_save_IFS
2010
2011 } >&5
2012
2013 cat >&5 <<_ACEOF
2014
2015
2016 ## ----------- ##
2017 ## Core tests. ##
2018 ## ----------- ##
2019
2020 _ACEOF
2021
2022
2023 # Keep a trace of the command line.
2024 # Strip out --no-create and --no-recursion so they do not pile up.
2025 # Strip out --silent because we don't want to record it for future runs.
2026 # Also quote any args containing shell meta-characters.
2027 # Make two passes to allow for proper duplicate-argument suppression.
2028 ac_configure_args=
2029 ac_configure_args0=
2030 ac_configure_args1=
2031 ac_must_keep_next=false
2032 for ac_pass in 1 2
2033 do
2034   for ac_arg
2035   do
2036     case $ac_arg in
2037     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2038     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2039     | -silent | --silent | --silen | --sile | --sil)
2040       continue ;;
2041     *\'*)
2042       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2043     esac
2044     case $ac_pass in
2045     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2046     2)
2047       as_fn_append ac_configure_args1 " '$ac_arg'"
2048       if test $ac_must_keep_next = true; then
2049         ac_must_keep_next=false # Got value, back to normal.
2050       else
2051         case $ac_arg in
2052           *=* | --config-cache | -C | -disable-* | --disable-* \
2053           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2054           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2055           | -with-* | --with-* | -without-* | --without-* | --x)
2056             case "$ac_configure_args0 " in
2057               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2058             esac
2059             ;;
2060           -* ) ac_must_keep_next=true ;;
2061         esac
2062       fi
2063       as_fn_append ac_configure_args " '$ac_arg'"
2064       ;;
2065     esac
2066   done
2067 done
2068 { ac_configure_args0=; unset ac_configure_args0;}
2069 { ac_configure_args1=; unset ac_configure_args1;}
2070
2071 # When interrupted or exit'd, cleanup temporary files, and complete
2072 # config.log.  We remove comments because anyway the quotes in there
2073 # would cause problems or look ugly.
2074 # WARNING: Use '\'' to represent an apostrophe within the trap.
2075 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2076 trap 'exit_status=$?
2077   # Save into config.log some information that might help in debugging.
2078   {
2079     echo
2080
2081     $as_echo "## ---------------- ##
2082 ## Cache variables. ##
2083 ## ---------------- ##"
2084     echo
2085     # The following way of writing the cache mishandles newlines in values,
2086 (
2087   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2088     eval ac_val=\$$ac_var
2089     case $ac_val in #(
2090     *${as_nl}*)
2091       case $ac_var in #(
2092       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2093 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2094       esac
2095       case $ac_var in #(
2096       _ | IFS | as_nl) ;; #(
2097       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2098       *) { eval $ac_var=; unset $ac_var;} ;;
2099       esac ;;
2100     esac
2101   done
2102   (set) 2>&1 |
2103     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2104     *${as_nl}ac_space=\ *)
2105       sed -n \
2106         "s/'\''/'\''\\\\'\'''\''/g;
2107           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2108       ;; #(
2109     *)
2110       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2111       ;;
2112     esac |
2113     sort
2114 )
2115     echo
2116
2117     $as_echo "## ----------------- ##
2118 ## Output variables. ##
2119 ## ----------------- ##"
2120     echo
2121     for ac_var in $ac_subst_vars
2122     do
2123       eval ac_val=\$$ac_var
2124       case $ac_val in
2125       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2126       esac
2127       $as_echo "$ac_var='\''$ac_val'\''"
2128     done | sort
2129     echo
2130
2131     if test -n "$ac_subst_files"; then
2132       $as_echo "## ------------------- ##
2133 ## File substitutions. ##
2134 ## ------------------- ##"
2135       echo
2136       for ac_var in $ac_subst_files
2137       do
2138         eval ac_val=\$$ac_var
2139         case $ac_val in
2140         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2141         esac
2142         $as_echo "$ac_var='\''$ac_val'\''"
2143       done | sort
2144       echo
2145     fi
2146
2147     if test -s confdefs.h; then
2148       $as_echo "## ----------- ##
2149 ## confdefs.h. ##
2150 ## ----------- ##"
2151       echo
2152       cat confdefs.h
2153       echo
2154     fi
2155     test "$ac_signal" != 0 &&
2156       $as_echo "$as_me: caught signal $ac_signal"
2157     $as_echo "$as_me: exit $exit_status"
2158   } >&5
2159   rm -f core *.core core.conftest.* &&
2160     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2161     exit $exit_status
2162 ' 0
2163 for ac_signal in 1 2 13 15; do
2164   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2165 done
2166 ac_signal=0
2167
2168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2169 rm -f -r conftest* confdefs.h
2170
2171 $as_echo "/* confdefs.h */" > confdefs.h
2172
2173 # Predefined preprocessor variables.
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_NAME "$PACKAGE_NAME"
2177 _ACEOF
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2185 _ACEOF
2186
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_STRING "$PACKAGE_STRING"
2189 _ACEOF
2190
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2193 _ACEOF
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_URL "$PACKAGE_URL"
2197 _ACEOF
2198
2199
2200 # Let the site file select an alternate cache file if it wants to.
2201 # Prefer an explicitly selected file to automatically selected ones.
2202 ac_site_file1=NONE
2203 ac_site_file2=NONE
2204 if test -n "$CONFIG_SITE"; then
2205   # We do not want a PATH search for config.site.
2206   case $CONFIG_SITE in #((
2207     -*)  ac_site_file1=./$CONFIG_SITE;;
2208     */*) ac_site_file1=$CONFIG_SITE;;
2209     *)   ac_site_file1=./$CONFIG_SITE;;
2210   esac
2211 elif test "x$prefix" != xNONE; then
2212   ac_site_file1=$prefix/share/config.site
2213   ac_site_file2=$prefix/etc/config.site
2214 else
2215   ac_site_file1=$ac_default_prefix/share/config.site
2216   ac_site_file2=$ac_default_prefix/etc/config.site
2217 fi
2218 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2219 do
2220   test "x$ac_site_file" = xNONE && continue
2221   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2222     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2223 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2224     sed 's/^/| /' "$ac_site_file" >&5
2225     . "$ac_site_file" \
2226       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228 as_fn_error $? "failed to load site script $ac_site_file
2229 See \`config.log' for more details" "$LINENO" 5; }
2230   fi
2231 done
2232
2233 if test -r "$cache_file"; then
2234   # Some versions of bash will fail to source /dev/null (special files
2235   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2236   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2237     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2238 $as_echo "$as_me: loading cache $cache_file" >&6;}
2239     case $cache_file in
2240       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2241       *)                      . "./$cache_file";;
2242     esac
2243   fi
2244 else
2245   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2246 $as_echo "$as_me: creating cache $cache_file" >&6;}
2247   >$cache_file
2248 fi
2249
2250 # Check that the precious variables saved in the cache have kept the same
2251 # value.
2252 ac_cache_corrupted=false
2253 for ac_var in $ac_precious_vars; do
2254   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2255   eval ac_new_set=\$ac_env_${ac_var}_set
2256   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2257   eval ac_new_val=\$ac_env_${ac_var}_value
2258   case $ac_old_set,$ac_new_set in
2259     set,)
2260       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2261 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2262       ac_cache_corrupted=: ;;
2263     ,set)
2264       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2265 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2266       ac_cache_corrupted=: ;;
2267     ,);;
2268     *)
2269       if test "x$ac_old_val" != "x$ac_new_val"; then
2270         # differences in whitespace do not lead to failure.
2271         ac_old_val_w=`echo x $ac_old_val`
2272         ac_new_val_w=`echo x $ac_new_val`
2273         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2274           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2275 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2276           ac_cache_corrupted=:
2277         else
2278           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2279 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2280           eval $ac_var=\$ac_old_val
2281         fi
2282         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2283 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2284         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2285 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2286       fi;;
2287   esac
2288   # Pass precious variables to config.status.
2289   if test "$ac_new_set" = set; then
2290     case $ac_new_val in
2291     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2292     *) ac_arg=$ac_var=$ac_new_val ;;
2293     esac
2294     case " $ac_configure_args " in
2295       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2296       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2297     esac
2298   fi
2299 done
2300 if $ac_cache_corrupted; then
2301   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2304 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2305   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2306 fi
2307 ## -------------------- ##
2308 ## Main body of script. ##
2309 ## -------------------- ##
2310
2311 ac_ext=c
2312 ac_cpp='$CPP $CPPFLAGS'
2313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2316
2317
2318
2319 ac_aux_dir=
2320 for ac_dir in build-aux "$srcdir"/build-aux; do
2321   if test -f "$ac_dir/install-sh"; then
2322     ac_aux_dir=$ac_dir
2323     ac_install_sh="$ac_aux_dir/install-sh -c"
2324     break
2325   elif test -f "$ac_dir/install.sh"; then
2326     ac_aux_dir=$ac_dir
2327     ac_install_sh="$ac_aux_dir/install.sh -c"
2328     break
2329   elif test -f "$ac_dir/shtool"; then
2330     ac_aux_dir=$ac_dir
2331     ac_install_sh="$ac_aux_dir/shtool install -c"
2332     break
2333   fi
2334 done
2335 if test -z "$ac_aux_dir"; then
2336   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2337 fi
2338
2339 # These three variables are undocumented and unsupported,
2340 # and are intended to be withdrawn in a future Autoconf release.
2341 # They can cause serious problems if a builder's source tree is in a directory
2342 # whose full name contains unusual characters.
2343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2345 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2346
2347
2348
2349 #AC_CONFIG_HEADER([src/config.h])
2350 am__api_version='1.14'
2351
2352 # Find a good install program.  We prefer a C program (faster),
2353 # so one script is as good as another.  But avoid the broken or
2354 # incompatible versions:
2355 # SysV /etc/install, /usr/sbin/install
2356 # SunOS /usr/etc/install
2357 # IRIX /sbin/install
2358 # AIX /bin/install
2359 # AmigaOS /C/install, which installs bootblocks on floppy discs
2360 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2361 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2362 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2363 # OS/2's system install, which has a completely different semantic
2364 # ./install, which can be erroneously created by make from ./install.sh.
2365 # Reject install programs that cannot install multiple files.
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2367 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2368 if test -z "$INSTALL"; then
2369 if ${ac_cv_path_install+:} false; then :
2370   $as_echo_n "(cached) " >&6
2371 else
2372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375   IFS=$as_save_IFS
2376   test -z "$as_dir" && as_dir=.
2377     # Account for people who put trailing slashes in PATH elements.
2378 case $as_dir/ in #((
2379   ./ | .// | /[cC]/* | \
2380   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2381   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2382   /usr/ucb/* ) ;;
2383   *)
2384     # OSF1 and SCO ODT 3.0 have their own names for install.
2385     # Don't use installbsd from OSF since it installs stuff as root
2386     # by default.
2387     for ac_prog in ginstall scoinst install; do
2388       for ac_exec_ext in '' $ac_executable_extensions; do
2389         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2390           if test $ac_prog = install &&
2391             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2392             # AIX install.  It has an incompatible calling convention.
2393             :
2394           elif test $ac_prog = install &&
2395             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2396             # program-specific install script used by HP pwplus--don't use.
2397             :
2398           else
2399             rm -rf conftest.one conftest.two conftest.dir
2400             echo one > conftest.one
2401             echo two > conftest.two
2402             mkdir conftest.dir
2403             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2404               test -s conftest.one && test -s conftest.two &&
2405               test -s conftest.dir/conftest.one &&
2406               test -s conftest.dir/conftest.two
2407             then
2408               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2409               break 3
2410             fi
2411           fi
2412         fi
2413       done
2414     done
2415     ;;
2416 esac
2417
2418   done
2419 IFS=$as_save_IFS
2420
2421 rm -rf conftest.one conftest.two conftest.dir
2422
2423 fi
2424   if test "${ac_cv_path_install+set}" = set; then
2425     INSTALL=$ac_cv_path_install
2426   else
2427     # As a last resort, use the slow shell script.  Don't cache a
2428     # value for INSTALL within a source directory, because that will
2429     # break other packages using the cache if that directory is
2430     # removed, or if the value is a relative name.
2431     INSTALL=$ac_install_sh
2432   fi
2433 fi
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2435 $as_echo "$INSTALL" >&6; }
2436
2437 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2438 # It thinks the first close brace ends the variable substitution.
2439 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2440
2441 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2442
2443 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2444
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2446 $as_echo_n "checking whether build environment is sane... " >&6; }
2447 # Reject unsafe characters in $srcdir or the absolute working directory
2448 # name.  Accept space and tab only in the latter.
2449 am_lf='
2450 '
2451 case `pwd` in
2452   *[\\\"\#\$\&\'\`$am_lf]*)
2453     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2454 esac
2455 case $srcdir in
2456   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2457     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2458 esac
2459
2460 # Do 'set' in a subshell so we don't clobber the current shell's
2461 # arguments.  Must try -L first in case configure is actually a
2462 # symlink; some systems play weird games with the mod time of symlinks
2463 # (eg FreeBSD returns the mod time of the symlink's containing
2464 # directory).
2465 if (
2466    am_has_slept=no
2467    for am_try in 1 2; do
2468      echo "timestamp, slept: $am_has_slept" > conftest.file
2469      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2470      if test "$*" = "X"; then
2471         # -L didn't work.
2472         set X `ls -t "$srcdir/configure" conftest.file`
2473      fi
2474      if test "$*" != "X $srcdir/configure conftest.file" \
2475         && test "$*" != "X conftest.file $srcdir/configure"; then
2476
2477         # If neither matched, then we have a broken ls.  This can happen
2478         # if, for instance, CONFIG_SHELL is bash and it inherits a
2479         # broken ls alias from the environment.  This has actually
2480         # happened.  Such a system could not be considered "sane".
2481         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2482   alias in your environment" "$LINENO" 5
2483      fi
2484      if test "$2" = conftest.file || test $am_try -eq 2; then
2485        break
2486      fi
2487      # Just in case.
2488      sleep 1
2489      am_has_slept=yes
2490    done
2491    test "$2" = conftest.file
2492    )
2493 then
2494    # Ok.
2495    :
2496 else
2497    as_fn_error $? "newly created file is older than distributed files!
2498 Check your system clock" "$LINENO" 5
2499 fi
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2501 $as_echo "yes" >&6; }
2502 # If we didn't sleep, we still need to ensure time stamps of config.status and
2503 # generated files are strictly newer.
2504 am_sleep_pid=
2505 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2506   ( sleep 1 ) &
2507   am_sleep_pid=$!
2508 fi
2509
2510 rm -f conftest.file
2511
2512 test "$program_prefix" != NONE &&
2513   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2514 # Use a double $ so make ignores it.
2515 test "$program_suffix" != NONE &&
2516   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2517 # Double any \ or $.
2518 # By default was `s,x,x', remove it if useless.
2519 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2520 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2521
2522 # expand $ac_aux_dir to an absolute path
2523 am_aux_dir=`cd $ac_aux_dir && pwd`
2524
2525 if test x"${MISSING+set}" != xset; then
2526   case $am_aux_dir in
2527   *\ * | *\     *)
2528     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2529   *)
2530     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2531   esac
2532 fi
2533 # Use eval to expand $SHELL
2534 if eval "$MISSING --is-lightweight"; then
2535   am_missing_run="$MISSING "
2536 else
2537   am_missing_run=
2538   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2539 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2540 fi
2541
2542 if test x"${install_sh}" != xset; then
2543   case $am_aux_dir in
2544   *\ * | *\     *)
2545     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2546   *)
2547     install_sh="\${SHELL} $am_aux_dir/install-sh"
2548   esac
2549 fi
2550
2551 # Installed binaries are usually stripped using 'strip' when the user
2552 # run "make install-strip".  However 'strip' might not be the right
2553 # tool to use in cross-compilation environments, therefore Automake
2554 # will honor the 'STRIP' environment variable to overrule this program.
2555 if test "$cross_compiling" != no; then
2556   if test -n "$ac_tool_prefix"; then
2557   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2558 set dummy ${ac_tool_prefix}strip; ac_word=$2
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560 $as_echo_n "checking for $ac_word... " >&6; }
2561 if ${ac_cv_prog_STRIP+:} false; then :
2562   $as_echo_n "(cached) " >&6
2563 else
2564   if test -n "$STRIP"; then
2565   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2569 do
2570   IFS=$as_save_IFS
2571   test -z "$as_dir" && as_dir=.
2572     for ac_exec_ext in '' $ac_executable_extensions; do
2573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2574     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2576     break 2
2577   fi
2578 done
2579   done
2580 IFS=$as_save_IFS
2581
2582 fi
2583 fi
2584 STRIP=$ac_cv_prog_STRIP
2585 if test -n "$STRIP"; then
2586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2587 $as_echo "$STRIP" >&6; }
2588 else
2589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590 $as_echo "no" >&6; }
2591 fi
2592
2593
2594 fi
2595 if test -z "$ac_cv_prog_STRIP"; then
2596   ac_ct_STRIP=$STRIP
2597   # Extract the first word of "strip", so it can be a program name with args.
2598 set dummy strip; ac_word=$2
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2602   $as_echo_n "(cached) " >&6
2603 else
2604   if test -n "$ac_ct_STRIP"; then
2605   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2609 do
2610   IFS=$as_save_IFS
2611   test -z "$as_dir" && as_dir=.
2612     for ac_exec_ext in '' $ac_executable_extensions; do
2613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2614     ac_cv_prog_ac_ct_STRIP="strip"
2615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616     break 2
2617   fi
2618 done
2619   done
2620 IFS=$as_save_IFS
2621
2622 fi
2623 fi
2624 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2625 if test -n "$ac_ct_STRIP"; then
2626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2627 $as_echo "$ac_ct_STRIP" >&6; }
2628 else
2629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 $as_echo "no" >&6; }
2631 fi
2632
2633   if test "x$ac_ct_STRIP" = x; then
2634     STRIP=":"
2635   else
2636     case $cross_compiling:$ac_tool_warned in
2637 yes:)
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2640 ac_tool_warned=yes ;;
2641 esac
2642     STRIP=$ac_ct_STRIP
2643   fi
2644 else
2645   STRIP="$ac_cv_prog_STRIP"
2646 fi
2647
2648 fi
2649 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2650
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2652 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2653 if test -z "$MKDIR_P"; then
2654   if ${ac_cv_path_mkdir+:} false; then :
2655   $as_echo_n "(cached) " >&6
2656 else
2657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2659 do
2660   IFS=$as_save_IFS
2661   test -z "$as_dir" && as_dir=.
2662     for ac_prog in mkdir gmkdir; do
2663          for ac_exec_ext in '' $ac_executable_extensions; do
2664            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2665            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2666              'mkdir (GNU coreutils) '* | \
2667              'mkdir (coreutils) '* | \
2668              'mkdir (fileutils) '4.1*)
2669                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2670                break 3;;
2671            esac
2672          done
2673        done
2674   done
2675 IFS=$as_save_IFS
2676
2677 fi
2678
2679   test -d ./--version && rmdir ./--version
2680   if test "${ac_cv_path_mkdir+set}" = set; then
2681     MKDIR_P="$ac_cv_path_mkdir -p"
2682   else
2683     # As a last resort, use the slow shell script.  Don't cache a
2684     # value for MKDIR_P within a source directory, because that will
2685     # break other packages using the cache if that directory is
2686     # removed, or if the value is a relative name.
2687     MKDIR_P="$ac_install_sh -d"
2688   fi
2689 fi
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2691 $as_echo "$MKDIR_P" >&6; }
2692
2693 for ac_prog in gawk mawk nawk awk
2694 do
2695   # Extract the first word of "$ac_prog", so it can be a program name with args.
2696 set dummy $ac_prog; ac_word=$2
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if ${ac_cv_prog_AWK+:} false; then :
2700   $as_echo_n "(cached) " >&6
2701 else
2702   if test -n "$AWK"; then
2703   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708   IFS=$as_save_IFS
2709   test -z "$as_dir" && as_dir=.
2710     for ac_exec_ext in '' $ac_executable_extensions; do
2711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712     ac_cv_prog_AWK="$ac_prog"
2713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714     break 2
2715   fi
2716 done
2717   done
2718 IFS=$as_save_IFS
2719
2720 fi
2721 fi
2722 AWK=$ac_cv_prog_AWK
2723 if test -n "$AWK"; then
2724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2725 $as_echo "$AWK" >&6; }
2726 else
2727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2729 fi
2730
2731
2732   test -n "$AWK" && break
2733 done
2734
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2736 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2737 set x ${MAKE-make}
2738 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2739 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2740   $as_echo_n "(cached) " >&6
2741 else
2742   cat >conftest.make <<\_ACEOF
2743 SHELL = /bin/sh
2744 all:
2745         @echo '@@@%%%=$(MAKE)=@@@%%%'
2746 _ACEOF
2747 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2748 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2749   *@@@%%%=?*=@@@%%%*)
2750     eval ac_cv_prog_make_${ac_make}_set=yes;;
2751   *)
2752     eval ac_cv_prog_make_${ac_make}_set=no;;
2753 esac
2754 rm -f conftest.make
2755 fi
2756 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2758 $as_echo "yes" >&6; }
2759   SET_MAKE=
2760 else
2761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2763   SET_MAKE="MAKE=${MAKE-make}"
2764 fi
2765
2766 rm -rf .tst 2>/dev/null
2767 mkdir .tst 2>/dev/null
2768 if test -d .tst; then
2769   am__leading_dot=.
2770 else
2771   am__leading_dot=_
2772 fi
2773 rmdir .tst 2>/dev/null
2774
2775 # Check whether --enable-silent-rules was given.
2776 if test "${enable_silent_rules+set}" = set; then :
2777   enableval=$enable_silent_rules;
2778 fi
2779
2780 case $enable_silent_rules in # (((
2781   yes) AM_DEFAULT_VERBOSITY=0;;
2782    no) AM_DEFAULT_VERBOSITY=1;;
2783     *) AM_DEFAULT_VERBOSITY=1;;
2784 esac
2785 am_make=${MAKE-make}
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2787 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2788 if ${am_cv_make_support_nested_variables+:} false; then :
2789   $as_echo_n "(cached) " >&6
2790 else
2791   if $as_echo 'TRUE=$(BAR$(V))
2792 BAR0=false
2793 BAR1=true
2794 V=1
2795 am__doit:
2796         @$(TRUE)
2797 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2798   am_cv_make_support_nested_variables=yes
2799 else
2800   am_cv_make_support_nested_variables=no
2801 fi
2802 fi
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2804 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2805 if test $am_cv_make_support_nested_variables = yes; then
2806     AM_V='$(V)'
2807   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2808 else
2809   AM_V=$AM_DEFAULT_VERBOSITY
2810   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2811 fi
2812 AM_BACKSLASH='\'
2813
2814 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2815   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2816   # is not polluted with repeated "-I."
2817   am__isrc=' -I$(srcdir)'
2818   # test to see if srcdir already configured
2819   if test -f $srcdir/config.status; then
2820     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2821   fi
2822 fi
2823
2824 # test whether we have cygpath
2825 if test -z "$CYGPATH_W"; then
2826   if (cygpath --version) >/dev/null 2>/dev/null; then
2827     CYGPATH_W='cygpath -w'
2828   else
2829     CYGPATH_W=echo
2830   fi
2831 fi
2832
2833
2834 # Define the identity of the package.
2835  PACKAGE='asdcplib'
2836  VERSION='2.5.11'
2837
2838
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE "$PACKAGE"
2841 _ACEOF
2842
2843
2844 cat >>confdefs.h <<_ACEOF
2845 #define VERSION "$VERSION"
2846 _ACEOF
2847
2848 # Some tools Automake needs.
2849
2850 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2851
2852
2853 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2854
2855
2856 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2857
2858
2859 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2860
2861
2862 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2863
2864 # For better backward compatibility.  To be removed once Automake 1.9.x
2865 # dies out for good.  For more background, see:
2866 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2867 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2868 mkdir_p='$(MKDIR_P)'
2869
2870 # We need awk for the "check" target.  The system "awk" is bad on
2871 # some platforms.
2872 # Always define AMTAR for backward compatibility.  Yes, it's still used
2873 # in the wild :-(  We should find a proper way to deprecate it ...
2874 AMTAR='$${TAR-tar}'
2875
2876
2877 # We'll loop over all known methods to create a tar archive until one works.
2878 _am_tools='gnutar  pax cpio none'
2879
2880 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2881
2882
2883
2884
2885
2886
2887 # POSIX will say in a future version that running "rm -f" with no argument
2888 # is OK; and we want to be able to make that assumption in our Makefile
2889 # recipes.  So use an aggressive probe to check that the usage we want is
2890 # actually supported "in the wild" to an acceptable degree.
2891 # See automake bug#10828.
2892 # To make any issue more visible, cause the running configure to be aborted
2893 # by default if the 'rm' program in use doesn't match our expectations; the
2894 # user can still override this though.
2895 if rm -f && rm -fr && rm -rf; then : OK; else
2896   cat >&2 <<'END'
2897 Oops!
2898
2899 Your 'rm' program seems unable to run without file operands specified
2900 on the command line, even when the '-f' option is present.  This is contrary
2901 to the behaviour of most rm programs out there, and not conforming with
2902 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2903
2904 Please tell bug-automake@gnu.org about your system, including the value
2905 of your $PATH and any error possibly output before this message.  This
2906 can help us improve future automake versions.
2907
2908 END
2909   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2910     echo 'Configuration will proceed anyway, since you have set the' >&2
2911     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2912     echo >&2
2913   else
2914     cat >&2 <<'END'
2915 Aborting the configuration process, to ensure you take notice of the issue.
2916
2917 You can download and install GNU coreutils to get an 'rm' implementation
2918 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2919
2920 If you want to complete the configuration process using your problematic
2921 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2922 to "yes", and re-run configure.
2923
2924 END
2925     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2926   fi
2927 fi
2928
2929
2930
2931 # Checks for programs.
2932 # Make sure we can run config.sub.
2933 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2934   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2935
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2937 $as_echo_n "checking build system type... " >&6; }
2938 if ${ac_cv_build+:} false; then :
2939   $as_echo_n "(cached) " >&6
2940 else
2941   ac_build_alias=$build_alias
2942 test "x$ac_build_alias" = x &&
2943   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2944 test "x$ac_build_alias" = x &&
2945   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2946 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2947   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2948
2949 fi
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2951 $as_echo "$ac_cv_build" >&6; }
2952 case $ac_cv_build in
2953 *-*-*) ;;
2954 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2955 esac
2956 build=$ac_cv_build
2957 ac_save_IFS=$IFS; IFS='-'
2958 set x $ac_cv_build
2959 shift
2960 build_cpu=$1
2961 build_vendor=$2
2962 shift; shift
2963 # Remember, the first character of IFS is used to create $*,
2964 # except with old shells:
2965 build_os=$*
2966 IFS=$ac_save_IFS
2967 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2968
2969
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2971 $as_echo_n "checking host system type... " >&6; }
2972 if ${ac_cv_host+:} false; then :
2973   $as_echo_n "(cached) " >&6
2974 else
2975   if test "x$host_alias" = x; then
2976   ac_cv_host=$ac_cv_build
2977 else
2978   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2979     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2980 fi
2981
2982 fi
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2984 $as_echo "$ac_cv_host" >&6; }
2985 case $ac_cv_host in
2986 *-*-*) ;;
2987 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2988 esac
2989 host=$ac_cv_host
2990 ac_save_IFS=$IFS; IFS='-'
2991 set x $ac_cv_host
2992 shift
2993 host_cpu=$1
2994 host_vendor=$2
2995 shift; shift
2996 # Remember, the first character of IFS is used to create $*,
2997 # except with old shells:
2998 host_os=$*
2999 IFS=$ac_save_IFS
3000 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3001
3002
3003 case $host_os in
3004        openbsd*) openbsd_host=true ;;
3005        *)        openbsd_host=false ;;
3006 esac
3007  if test x$openbsd_host = xtrue; then
3008   OPENBSD_HOST_TRUE=
3009   OPENBSD_HOST_FALSE='#'
3010 else
3011   OPENBSD_HOST_TRUE='#'
3012   OPENBSD_HOST_FALSE=
3013 fi
3014
3015 ac_ext=c
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 if test -n "$ac_tool_prefix"; then
3021   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3022 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_CC+:} false; then :
3026   $as_echo_n "(cached) " >&6
3027 else
3028   if test -n "$CC"; then
3029   ac_cv_prog_CC="$CC" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034   IFS=$as_save_IFS
3035   test -z "$as_dir" && as_dir=.
3036     for ac_exec_ext in '' $ac_executable_extensions; do
3037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040     break 2
3041   fi
3042 done
3043   done
3044 IFS=$as_save_IFS
3045
3046 fi
3047 fi
3048 CC=$ac_cv_prog_CC
3049 if test -n "$CC"; then
3050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3051 $as_echo "$CC" >&6; }
3052 else
3053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055 fi
3056
3057
3058 fi
3059 if test -z "$ac_cv_prog_CC"; then
3060   ac_ct_CC=$CC
3061   # Extract the first word of "gcc", so it can be a program name with args.
3062 set dummy gcc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3066   $as_echo_n "(cached) " >&6
3067 else
3068   if test -n "$ac_ct_CC"; then
3069   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074   IFS=$as_save_IFS
3075   test -z "$as_dir" && as_dir=.
3076     for ac_exec_ext in '' $ac_executable_extensions; do
3077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078     ac_cv_prog_ac_ct_CC="gcc"
3079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080     break 2
3081   fi
3082 done
3083   done
3084 IFS=$as_save_IFS
3085
3086 fi
3087 fi
3088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3089 if test -n "$ac_ct_CC"; then
3090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3091 $as_echo "$ac_ct_CC" >&6; }
3092 else
3093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097   if test "x$ac_ct_CC" = x; then
3098     CC=""
3099   else
3100     case $cross_compiling:$ac_tool_warned in
3101 yes:)
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3104 ac_tool_warned=yes ;;
3105 esac
3106     CC=$ac_ct_CC
3107   fi
3108 else
3109   CC="$ac_cv_prog_CC"
3110 fi
3111
3112 if test -z "$CC"; then
3113           if test -n "$ac_tool_prefix"; then
3114     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3115 set dummy ${ac_tool_prefix}cc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_CC+:} false; then :
3119   $as_echo_n "(cached) " >&6
3120 else
3121   if test -n "$CC"; then
3122   ac_cv_prog_CC="$CC" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3126 do
3127   IFS=$as_save_IFS
3128   test -z "$as_dir" && as_dir=.
3129     for ac_exec_ext in '' $ac_executable_extensions; do
3130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131     ac_cv_prog_CC="${ac_tool_prefix}cc"
3132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133     break 2
3134   fi
3135 done
3136   done
3137 IFS=$as_save_IFS
3138
3139 fi
3140 fi
3141 CC=$ac_cv_prog_CC
3142 if test -n "$CC"; then
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3145 else
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 fi
3149
3150
3151   fi
3152 fi
3153 if test -z "$CC"; then
3154   # Extract the first word of "cc", so it can be a program name with args.
3155 set dummy cc; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_CC+:} false; then :
3159   $as_echo_n "(cached) " >&6
3160 else
3161   if test -n "$CC"; then
3162   ac_cv_prog_CC="$CC" # Let the user override the test.
3163 else
3164   ac_prog_rejected=no
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3167 do
3168   IFS=$as_save_IFS
3169   test -z "$as_dir" && as_dir=.
3170     for ac_exec_ext in '' $ac_executable_extensions; do
3171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3173        ac_prog_rejected=yes
3174        continue
3175      fi
3176     ac_cv_prog_CC="cc"
3177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178     break 2
3179   fi
3180 done
3181   done
3182 IFS=$as_save_IFS
3183
3184 if test $ac_prog_rejected = yes; then
3185   # We found a bogon in the path, so make sure we never use it.
3186   set dummy $ac_cv_prog_CC
3187   shift
3188   if test $# != 0; then
3189     # We chose a different compiler from the bogus one.
3190     # However, it has the same basename, so the bogon will be chosen
3191     # first if we set CC to just the basename; use the full file name.
3192     shift
3193     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3194   fi
3195 fi
3196 fi
3197 fi
3198 CC=$ac_cv_prog_CC
3199 if test -n "$CC"; then
3200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201 $as_echo "$CC" >&6; }
3202 else
3203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 fi
3206
3207
3208 fi
3209 if test -z "$CC"; then
3210   if test -n "$ac_tool_prefix"; then
3211   for ac_prog in cl.exe
3212   do
3213     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_CC+:} false; then :
3218   $as_echo_n "(cached) " >&6
3219 else
3220   if test -n "$CC"; then
3221   ac_cv_prog_CC="$CC" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226   IFS=$as_save_IFS
3227   test -z "$as_dir" && as_dir=.
3228     for ac_exec_ext in '' $ac_executable_extensions; do
3229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232     break 2
3233   fi
3234 done
3235   done
3236 IFS=$as_save_IFS
3237
3238 fi
3239 fi
3240 CC=$ac_cv_prog_CC
3241 if test -n "$CC"; then
3242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243 $as_echo "$CC" >&6; }
3244 else
3245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 fi
3248
3249
3250     test -n "$CC" && break
3251   done
3252 fi
3253 if test -z "$CC"; then
3254   ac_ct_CC=$CC
3255   for ac_prog in cl.exe
3256 do
3257   # Extract the first word of "$ac_prog", so it can be a program name with args.
3258 set dummy $ac_prog; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3262   $as_echo_n "(cached) " >&6
3263 else
3264   if test -n "$ac_ct_CC"; then
3265   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270   IFS=$as_save_IFS
3271   test -z "$as_dir" && as_dir=.
3272     for ac_exec_ext in '' $ac_executable_extensions; do
3273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274     ac_cv_prog_ac_ct_CC="$ac_prog"
3275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276     break 2
3277   fi
3278 done
3279   done
3280 IFS=$as_save_IFS
3281
3282 fi
3283 fi
3284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3285 if test -n "$ac_ct_CC"; then
3286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3287 $as_echo "$ac_ct_CC" >&6; }
3288 else
3289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 fi
3292
3293
3294   test -n "$ac_ct_CC" && break
3295 done
3296
3297   if test "x$ac_ct_CC" = x; then
3298     CC=""
3299   else
3300     case $cross_compiling:$ac_tool_warned in
3301 yes:)
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304 ac_tool_warned=yes ;;
3305 esac
3306     CC=$ac_ct_CC
3307   fi
3308 fi
3309
3310 fi
3311
3312
3313 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315 as_fn_error $? "no acceptable C compiler found in \$PATH
3316 See \`config.log' for more details" "$LINENO" 5; }
3317
3318 # Provide some information about the compiler.
3319 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3320 set X $ac_compile
3321 ac_compiler=$2
3322 for ac_option in --version -v -V -qversion; do
3323   { { ac_try="$ac_compiler $ac_option >&5"
3324 case "(($ac_try" in
3325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326   *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3331   ac_status=$?
3332   if test -s conftest.err; then
3333     sed '10a\
3334 ... rest of stderr output deleted ...
3335          10q' conftest.err >conftest.er1
3336     cat conftest.er1 >&5
3337   fi
3338   rm -f conftest.er1 conftest.err
3339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340   test $ac_status = 0; }
3341 done
3342
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h.  */
3345
3346 int
3347 main ()
3348 {
3349
3350   ;
3351   return 0;
3352 }
3353 _ACEOF
3354 ac_clean_files_save=$ac_clean_files
3355 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3356 # Try to create an executable without -o first, disregard a.out.
3357 # It will help us diagnose broken compilers, and finding out an intuition
3358 # of exeext.
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3360 $as_echo_n "checking whether the C compiler works... " >&6; }
3361 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3362
3363 # The possible output files:
3364 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3365
3366 ac_rmfiles=
3367 for ac_file in $ac_files
3368 do
3369   case $ac_file in
3370     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3371     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3372   esac
3373 done
3374 rm -f $ac_rmfiles
3375
3376 if { { ac_try="$ac_link_default"
3377 case "(($ac_try" in
3378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379   *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383   (eval "$ac_link_default") 2>&5
3384   ac_status=$?
3385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386   test $ac_status = 0; }; then :
3387   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3388 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3389 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3390 # so that the user can short-circuit this test for compilers unknown to
3391 # Autoconf.
3392 for ac_file in $ac_files ''
3393 do
3394   test -f "$ac_file" || continue
3395   case $ac_file in
3396     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3397         ;;
3398     [ab].out )
3399         # We found the default executable, but exeext='' is most
3400         # certainly right.
3401         break;;
3402     *.* )
3403         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3404         then :; else
3405            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3406         fi
3407         # We set ac_cv_exeext here because the later test for it is not
3408         # safe: cross compilers may not add the suffix if given an `-o'
3409         # argument, so we may need to know it at that point already.
3410         # Even if this section looks crufty: it has the advantage of
3411         # actually working.
3412         break;;
3413     * )
3414         break;;
3415   esac
3416 done
3417 test "$ac_cv_exeext" = no && ac_cv_exeext=
3418
3419 else
3420   ac_file=''
3421 fi
3422 if test -z "$ac_file"; then :
3423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 $as_echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430 as_fn_error 77 "C compiler cannot create executables
3431 See \`config.log' for more details" "$LINENO" 5; }
3432 else
3433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3434 $as_echo "yes" >&6; }
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3437 $as_echo_n "checking for C compiler default output file name... " >&6; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3439 $as_echo "$ac_file" >&6; }
3440 ac_exeext=$ac_cv_exeext
3441
3442 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3443 ac_clean_files=$ac_clean_files_save
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3445 $as_echo_n "checking for suffix of executables... " >&6; }
3446 if { { ac_try="$ac_link"
3447 case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453   (eval "$ac_link") 2>&5
3454   ac_status=$?
3455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456   test $ac_status = 0; }; then :
3457   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3458 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3459 # work properly (i.e., refer to `conftest.exe'), while it won't with
3460 # `rm'.
3461 for ac_file in conftest.exe conftest conftest.*; do
3462   test -f "$ac_file" || continue
3463   case $ac_file in
3464     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3465     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3466           break;;
3467     * ) break;;
3468   esac
3469 done
3470 else
3471   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3474 See \`config.log' for more details" "$LINENO" 5; }
3475 fi
3476 rm -f conftest conftest$ac_cv_exeext
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3478 $as_echo "$ac_cv_exeext" >&6; }
3479
3480 rm -f conftest.$ac_ext
3481 EXEEXT=$ac_cv_exeext
3482 ac_exeext=$EXEEXT
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h.  */
3485 #include <stdio.h>
3486 int
3487 main ()
3488 {
3489 FILE *f = fopen ("conftest.out", "w");
3490  return ferror (f) || fclose (f) != 0;
3491
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 ac_clean_files="$ac_clean_files conftest.out"
3497 # Check that the compiler produces executables we can run.  If not, either
3498 # the compiler is broken, or we cross compile.
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3500 $as_echo_n "checking whether we are cross compiling... " >&6; }
3501 if test "$cross_compiling" != yes; then
3502   { { ac_try="$ac_link"
3503 case "(($ac_try" in
3504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505   *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509   (eval "$ac_link") 2>&5
3510   ac_status=$?
3511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512   test $ac_status = 0; }
3513   if { ac_try='./conftest$ac_cv_exeext'
3514   { { case "(($ac_try" in
3515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516   *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520   (eval "$ac_try") 2>&5
3521   ac_status=$?
3522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523   test $ac_status = 0; }; }; then
3524     cross_compiling=no
3525   else
3526     if test "$cross_compiling" = maybe; then
3527         cross_compiling=yes
3528     else
3529         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error $? "cannot run C compiled programs.
3532 If you meant to cross compile, use \`--host'.
3533 See \`config.log' for more details" "$LINENO" 5; }
3534     fi
3535   fi
3536 fi
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3538 $as_echo "$cross_compiling" >&6; }
3539
3540 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3541 ac_clean_files=$ac_clean_files_save
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3543 $as_echo_n "checking for suffix of object files... " >&6; }
3544 if ${ac_cv_objext+:} false; then :
3545   $as_echo_n "(cached) " >&6
3546 else
3547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h.  */
3549
3550 int
3551 main ()
3552 {
3553
3554   ;
3555   return 0;
3556 }
3557 _ACEOF
3558 rm -f conftest.o conftest.obj
3559 if { { ac_try="$ac_compile"
3560 case "(($ac_try" in
3561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562   *) ac_try_echo=$ac_try;;
3563 esac
3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565 $as_echo "$ac_try_echo"; } >&5
3566   (eval "$ac_compile") 2>&5
3567   ac_status=$?
3568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569   test $ac_status = 0; }; then :
3570   for ac_file in conftest.o conftest.obj conftest.*; do
3571   test -f "$ac_file" || continue;
3572   case $ac_file in
3573     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3574     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3575        break;;
3576   esac
3577 done
3578 else
3579   $as_echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3581
3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "cannot compute suffix of object files: cannot compile
3585 See \`config.log' for more details" "$LINENO" 5; }
3586 fi
3587 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3588 fi
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3590 $as_echo "$ac_cv_objext" >&6; }
3591 OBJEXT=$ac_cv_objext
3592 ac_objext=$OBJEXT
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3594 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3595 if ${ac_cv_c_compiler_gnu+:} false; then :
3596   $as_echo_n "(cached) " >&6
3597 else
3598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h.  */
3600
3601 int
3602 main ()
3603 {
3604 #ifndef __GNUC__
3605        choke me
3606 #endif
3607
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 if ac_fn_c_try_compile "$LINENO"; then :
3613   ac_compiler_gnu=yes
3614 else
3615   ac_compiler_gnu=no
3616 fi
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3619
3620 fi
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3622 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3623 if test $ac_compiler_gnu = yes; then
3624   GCC=yes
3625 else
3626   GCC=
3627 fi
3628 ac_test_CFLAGS=${CFLAGS+set}
3629 ac_save_CFLAGS=$CFLAGS
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3631 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3632 if ${ac_cv_prog_cc_g+:} false; then :
3633   $as_echo_n "(cached) " >&6
3634 else
3635   ac_save_c_werror_flag=$ac_c_werror_flag
3636    ac_c_werror_flag=yes
3637    ac_cv_prog_cc_g=no
3638    CFLAGS="-g"
3639    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h.  */
3641
3642 int
3643 main ()
3644 {
3645
3646   ;
3647   return 0;
3648 }
3649 _ACEOF
3650 if ac_fn_c_try_compile "$LINENO"; then :
3651   ac_cv_prog_cc_g=yes
3652 else
3653   CFLAGS=""
3654       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h.  */
3656
3657 int
3658 main ()
3659 {
3660
3661   ;
3662   return 0;
3663 }
3664 _ACEOF
3665 if ac_fn_c_try_compile "$LINENO"; then :
3666
3667 else
3668   ac_c_werror_flag=$ac_save_c_werror_flag
3669          CFLAGS="-g"
3670          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h.  */
3672
3673 int
3674 main ()
3675 {
3676
3677   ;
3678   return 0;
3679 }
3680 _ACEOF
3681 if ac_fn_c_try_compile "$LINENO"; then :
3682   ac_cv_prog_cc_g=yes
3683 fi
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 fi
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 fi
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689    ac_c_werror_flag=$ac_save_c_werror_flag
3690 fi
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3692 $as_echo "$ac_cv_prog_cc_g" >&6; }
3693 if test "$ac_test_CFLAGS" = set; then
3694   CFLAGS=$ac_save_CFLAGS
3695 elif test $ac_cv_prog_cc_g = yes; then
3696   if test "$GCC" = yes; then
3697     CFLAGS="-g -O2"
3698   else
3699     CFLAGS="-g"
3700   fi
3701 else
3702   if test "$GCC" = yes; then
3703     CFLAGS="-O2"
3704   else
3705     CFLAGS=
3706   fi
3707 fi
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3709 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3710 if ${ac_cv_prog_cc_c89+:} false; then :
3711   $as_echo_n "(cached) " >&6
3712 else
3713   ac_cv_prog_cc_c89=no
3714 ac_save_CC=$CC
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h.  */
3717 #include <stdarg.h>
3718 #include <stdio.h>
3719 struct stat;
3720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3721 struct buf { int x; };
3722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3723 static char *e (p, i)
3724      char **p;
3725      int i;
3726 {
3727   return p[i];
3728 }
3729 static char *f (char * (*g) (char **, int), char **p, ...)
3730 {
3731   char *s;
3732   va_list v;
3733   va_start (v,p);
3734   s = g (p, va_arg (v,int));
3735   va_end (v);
3736   return s;
3737 }
3738
3739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3740    function prototypes and stuff, but not '\xHH' hex character constants.
3741    These don't provoke an error unfortunately, instead are silently treated
3742    as 'x'.  The following induces an error, until -std is added to get
3743    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3744    array size at least.  It's necessary to write '\x00'==0 to get something
3745    that's true only with -std.  */
3746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3747
3748 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3749    inside strings and character constants.  */
3750 #define FOO(x) 'x'
3751 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3752
3753 int test (int i, double x);
3754 struct s1 {int (*f) (int a);};
3755 struct s2 {int (*f) (double a);};
3756 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3757 int argc;
3758 char **argv;
3759 int
3760 main ()
3761 {
3762 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3763   ;
3764   return 0;
3765 }
3766 _ACEOF
3767 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3768         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3769 do
3770   CC="$ac_save_CC $ac_arg"
3771   if ac_fn_c_try_compile "$LINENO"; then :
3772   ac_cv_prog_cc_c89=$ac_arg
3773 fi
3774 rm -f core conftest.err conftest.$ac_objext
3775   test "x$ac_cv_prog_cc_c89" != "xno" && break
3776 done
3777 rm -f conftest.$ac_ext
3778 CC=$ac_save_CC
3779
3780 fi
3781 # AC_CACHE_VAL
3782 case "x$ac_cv_prog_cc_c89" in
3783   x)
3784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3785 $as_echo "none needed" >&6; } ;;
3786   xno)
3787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3788 $as_echo "unsupported" >&6; } ;;
3789   *)
3790     CC="$CC $ac_cv_prog_cc_c89"
3791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3792 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3793 esac
3794 if test "x$ac_cv_prog_cc_c89" != xno; then :
3795
3796 fi
3797
3798 ac_ext=c
3799 ac_cpp='$CPP $CPPFLAGS'
3800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803
3804 ac_ext=c
3805 ac_cpp='$CPP $CPPFLAGS'
3806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3810 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3811 if ${am_cv_prog_cc_c_o+:} false; then :
3812   $as_echo_n "(cached) " >&6
3813 else
3814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h.  */
3816
3817 int
3818 main ()
3819 {
3820
3821   ;
3822   return 0;
3823 }
3824 _ACEOF
3825   # Make sure it works both with $CC and with simple cc.
3826   # Following AC_PROG_CC_C_O, we do the test twice because some
3827   # compilers refuse to overwrite an existing .o file with -o,
3828   # though they will create one.
3829   am_cv_prog_cc_c_o=yes
3830   for am_i in 1 2; do
3831     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3832    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3833    ac_status=$?
3834    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835    (exit $ac_status); } \
3836          && test -f conftest2.$ac_objext; then
3837       : OK
3838     else
3839       am_cv_prog_cc_c_o=no
3840       break
3841     fi
3842   done
3843   rm -f core conftest*
3844   unset am_i
3845 fi
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3847 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3848 if test "$am_cv_prog_cc_c_o" != yes; then
3849    # Losing compiler, so override with the script.
3850    # FIXME: It is wrong to rewrite CC.
3851    # But if we don't then we get into trouble of one sort or another.
3852    # A longer-term fix would be to have automake use am__CC in this case,
3853    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3854    CC="$am_aux_dir/compile $CC"
3855 fi
3856 ac_ext=c
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861
3862 DEPDIR="${am__leading_dot}deps"
3863
3864 ac_config_commands="$ac_config_commands depfiles"
3865
3866
3867 am_make=${MAKE-make}
3868 cat > confinc << 'END'
3869 am__doit:
3870         @echo this is the am__doit target
3871 .PHONY: am__doit
3872 END
3873 # If we don't find an include directive, just comment out the code.
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3875 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3876 am__include="#"
3877 am__quote=
3878 _am_result=none
3879 # First try GNU make style include.
3880 echo "include confinc" > confmf
3881 # Ignore all kinds of additional output from 'make'.
3882 case `$am_make -s -f confmf 2> /dev/null` in #(
3883 *the\ am__doit\ target*)
3884   am__include=include
3885   am__quote=
3886   _am_result=GNU
3887   ;;
3888 esac
3889 # Now try BSD make style include.
3890 if test "$am__include" = "#"; then
3891    echo '.include "confinc"' > confmf
3892    case `$am_make -s -f confmf 2> /dev/null` in #(
3893    *the\ am__doit\ target*)
3894      am__include=.include
3895      am__quote="\""
3896      _am_result=BSD
3897      ;;
3898    esac
3899 fi
3900
3901
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3903 $as_echo "$_am_result" >&6; }
3904 rm -f confinc confmf
3905
3906 # Check whether --enable-dependency-tracking was given.
3907 if test "${enable_dependency_tracking+set}" = set; then :
3908   enableval=$enable_dependency_tracking;
3909 fi
3910
3911 if test "x$enable_dependency_tracking" != xno; then
3912   am_depcomp="$ac_aux_dir/depcomp"
3913   AMDEPBACKSLASH='\'
3914   am__nodep='_no'
3915 fi
3916  if test "x$enable_dependency_tracking" != xno; then
3917   AMDEP_TRUE=
3918   AMDEP_FALSE='#'
3919 else
3920   AMDEP_TRUE='#'
3921   AMDEP_FALSE=
3922 fi
3923
3924
3925
3926 depcc="$CC"   am_compiler_list=
3927
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3929 $as_echo_n "checking dependency style of $depcc... " >&6; }
3930 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3931   $as_echo_n "(cached) " >&6
3932 else
3933   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3934   # We make a subdir and do the tests there.  Otherwise we can end up
3935   # making bogus files that we don't know about and never remove.  For
3936   # instance it was reported that on HP-UX the gcc test will end up
3937   # making a dummy file named 'D' -- because '-MD' means "put the output
3938   # in D".
3939   rm -rf conftest.dir
3940   mkdir conftest.dir
3941   # Copy depcomp to subdir because otherwise we won't find it if we're
3942   # using a relative directory.
3943   cp "$am_depcomp" conftest.dir
3944   cd conftest.dir
3945   # We will build objects and dependencies in a subdirectory because
3946   # it helps to detect inapplicable dependency modes.  For instance
3947   # both Tru64's cc and ICC support -MD to output dependencies as a
3948   # side effect of compilation, but ICC will put the dependencies in
3949   # the current directory while Tru64 will put them in the object
3950   # directory.
3951   mkdir sub
3952
3953   am_cv_CC_dependencies_compiler_type=none
3954   if test "$am_compiler_list" = ""; then
3955      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3956   fi
3957   am__universal=false
3958   case " $depcc " in #(
3959      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3960      esac
3961
3962   for depmode in $am_compiler_list; do
3963     # Setup a source with many dependencies, because some compilers
3964     # like to wrap large dependency lists on column 80 (with \), and
3965     # we should not choose a depcomp mode which is confused by this.
3966     #
3967     # We need to recreate these files for each test, as the compiler may
3968     # overwrite some of them when testing with obscure command lines.
3969     # This happens at least with the AIX C compiler.
3970     : > sub/conftest.c
3971     for i in 1 2 3 4 5 6; do
3972       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3973       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3974       # Solaris 10 /bin/sh.
3975       echo '/* dummy */' > sub/conftst$i.h
3976     done
3977     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3978
3979     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3980     # mode.  It turns out that the SunPro C++ compiler does not properly
3981     # handle '-M -o', and we need to detect this.  Also, some Intel
3982     # versions had trouble with output in subdirs.
3983     am__obj=sub/conftest.${OBJEXT-o}
3984     am__minus_obj="-o $am__obj"
3985     case $depmode in
3986     gcc)
3987       # This depmode causes a compiler race in universal mode.
3988       test "$am__universal" = false || continue
3989       ;;
3990     nosideeffect)
3991       # After this tag, mechanisms are not by side-effect, so they'll
3992       # only be used when explicitly requested.
3993       if test "x$enable_dependency_tracking" = xyes; then
3994         continue
3995       else
3996         break
3997       fi
3998       ;;
3999     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4000       # This compiler won't grok '-c -o', but also, the minuso test has
4001       # not run yet.  These depmodes are late enough in the game, and
4002       # so weak that their functioning should not be impacted.
4003       am__obj=conftest.${OBJEXT-o}
4004       am__minus_obj=
4005       ;;
4006     none) break ;;
4007     esac
4008     if depmode=$depmode \
4009        source=sub/conftest.c object=$am__obj \
4010        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4011        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4012          >/dev/null 2>conftest.err &&
4013        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4014        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4015        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4016        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4017       # icc doesn't choke on unknown options, it will just issue warnings
4018       # or remarks (even with -Werror).  So we grep stderr for any message
4019       # that says an option was ignored or not supported.
4020       # When given -MP, icc 7.0 and 7.1 complain thusly:
4021       #   icc: Command line warning: ignoring option '-M'; no argument required
4022       # The diagnosis changed in icc 8.0:
4023       #   icc: Command line remark: option '-MP' not supported
4024       if (grep 'ignoring option' conftest.err ||
4025           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4026         am_cv_CC_dependencies_compiler_type=$depmode
4027         break
4028       fi
4029     fi
4030   done
4031
4032   cd ..
4033   rm -rf conftest.dir
4034 else
4035   am_cv_CC_dependencies_compiler_type=none
4036 fi
4037
4038 fi
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4040 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4041 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4042
4043  if
4044   test "x$enable_dependency_tracking" != xno \
4045   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4046   am__fastdepCC_TRUE=
4047   am__fastdepCC_FALSE='#'
4048 else
4049   am__fastdepCC_TRUE='#'
4050   am__fastdepCC_FALSE=
4051 fi
4052
4053
4054 ac_ext=cpp
4055 ac_cpp='$CXXCPP $CPPFLAGS'
4056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4059 if test -z "$CXX"; then
4060   if test -n "$CCC"; then
4061     CXX=$CCC
4062   else
4063     if test -n "$ac_tool_prefix"; then
4064   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4065   do
4066     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if ${ac_cv_prog_CXX+:} false; then :
4071   $as_echo_n "(cached) " >&6
4072 else
4073   if test -n "$CXX"; then
4074   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4078 do
4079   IFS=$as_save_IFS
4080   test -z "$as_dir" && as_dir=.
4081     for ac_exec_ext in '' $ac_executable_extensions; do
4082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085     break 2
4086   fi
4087 done
4088   done
4089 IFS=$as_save_IFS
4090
4091 fi
4092 fi
4093 CXX=$ac_cv_prog_CXX
4094 if test -n "$CXX"; then
4095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4096 $as_echo "$CXX" >&6; }
4097 else
4098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4100 fi
4101
4102
4103     test -n "$CXX" && break
4104   done
4105 fi
4106 if test -z "$CXX"; then
4107   ac_ct_CXX=$CXX
4108   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4109 do
4110   # Extract the first word of "$ac_prog", so it can be a program name with args.
4111 set dummy $ac_prog; ac_word=$2
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113 $as_echo_n "checking for $ac_word... " >&6; }
4114 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4115   $as_echo_n "(cached) " >&6
4116 else
4117   if test -n "$ac_ct_CXX"; then
4118   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4122 do
4123   IFS=$as_save_IFS
4124   test -z "$as_dir" && as_dir=.
4125     for ac_exec_ext in '' $ac_executable_extensions; do
4126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127     ac_cv_prog_ac_ct_CXX="$ac_prog"
4128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4129     break 2
4130   fi
4131 done
4132   done
4133 IFS=$as_save_IFS
4134
4135 fi
4136 fi
4137 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4138 if test -n "$ac_ct_CXX"; then
4139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4140 $as_echo "$ac_ct_CXX" >&6; }
4141 else
4142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4144 fi
4145
4146
4147   test -n "$ac_ct_CXX" && break
4148 done
4149
4150   if test "x$ac_ct_CXX" = x; then
4151     CXX="g++"
4152   else
4153     case $cross_compiling:$ac_tool_warned in
4154 yes:)
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4157 ac_tool_warned=yes ;;
4158 esac
4159     CXX=$ac_ct_CXX
4160   fi
4161 fi
4162
4163   fi
4164 fi
4165 # Provide some information about the compiler.
4166 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4167 set X $ac_compile
4168 ac_compiler=$2
4169 for ac_option in --version -v -V -qversion; do
4170   { { ac_try="$ac_compiler $ac_option >&5"
4171 case "(($ac_try" in
4172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173   *) ac_try_echo=$ac_try;;
4174 esac
4175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4176 $as_echo "$ac_try_echo"; } >&5
4177   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4178   ac_status=$?
4179   if test -s conftest.err; then
4180     sed '10a\
4181 ... rest of stderr output deleted ...
4182          10q' conftest.err >conftest.er1
4183     cat conftest.er1 >&5
4184   fi
4185   rm -f conftest.er1 conftest.err
4186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4187   test $ac_status = 0; }
4188 done
4189
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4191 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4192 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4193   $as_echo_n "(cached) " >&6
4194 else
4195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h.  */
4197
4198 int
4199 main ()
4200 {
4201 #ifndef __GNUC__
4202        choke me
4203 #endif
4204
4205   ;
4206   return 0;
4207 }
4208 _ACEOF
4209 if ac_fn_cxx_try_compile "$LINENO"; then :
4210   ac_compiler_gnu=yes
4211 else
4212   ac_compiler_gnu=no
4213 fi
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4216
4217 fi
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4219 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4220 if test $ac_compiler_gnu = yes; then
4221   GXX=yes
4222 else
4223   GXX=
4224 fi
4225 ac_test_CXXFLAGS=${CXXFLAGS+set}
4226 ac_save_CXXFLAGS=$CXXFLAGS
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4228 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4229 if ${ac_cv_prog_cxx_g+:} false; then :
4230   $as_echo_n "(cached) " >&6
4231 else
4232   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4233    ac_cxx_werror_flag=yes
4234    ac_cv_prog_cxx_g=no
4235    CXXFLAGS="-g"
4236    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h.  */
4238
4239 int
4240 main ()
4241 {
4242
4243   ;
4244   return 0;
4245 }
4246 _ACEOF
4247 if ac_fn_cxx_try_compile "$LINENO"; then :
4248   ac_cv_prog_cxx_g=yes
4249 else
4250   CXXFLAGS=""
4251       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h.  */
4253
4254 int
4255 main ()
4256 {
4257
4258   ;
4259   return 0;
4260 }
4261 _ACEOF
4262 if ac_fn_cxx_try_compile "$LINENO"; then :
4263
4264 else
4265   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4266          CXXFLAGS="-g"
4267          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h.  */
4269
4270 int
4271 main ()
4272 {
4273
4274   ;
4275   return 0;
4276 }
4277 _ACEOF
4278 if ac_fn_cxx_try_compile "$LINENO"; then :
4279   ac_cv_prog_cxx_g=yes
4280 fi
4281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4282 fi
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 fi
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4287 fi
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4289 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4290 if test "$ac_test_CXXFLAGS" = set; then
4291   CXXFLAGS=$ac_save_CXXFLAGS
4292 elif test $ac_cv_prog_cxx_g = yes; then
4293   if test "$GXX" = yes; then
4294     CXXFLAGS="-g -O2"
4295   else
4296     CXXFLAGS="-g"
4297   fi
4298 else
4299   if test "$GXX" = yes; then
4300     CXXFLAGS="-O2"
4301   else
4302     CXXFLAGS=
4303   fi
4304 fi
4305 ac_ext=c
4306 ac_cpp='$CPP $CPPFLAGS'
4307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310
4311 depcc="$CXX"  am_compiler_list=
4312
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4314 $as_echo_n "checking dependency style of $depcc... " >&6; }
4315 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4316   $as_echo_n "(cached) " >&6
4317 else
4318   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4319   # We make a subdir and do the tests there.  Otherwise we can end up
4320   # making bogus files that we don't know about and never remove.  For
4321   # instance it was reported that on HP-UX the gcc test will end up
4322   # making a dummy file named 'D' -- because '-MD' means "put the output
4323   # in D".
4324   rm -rf conftest.dir
4325   mkdir conftest.dir
4326   # Copy depcomp to subdir because otherwise we won't find it if we're
4327   # using a relative directory.
4328   cp "$am_depcomp" conftest.dir
4329   cd conftest.dir
4330   # We will build objects and dependencies in a subdirectory because
4331   # it helps to detect inapplicable dependency modes.  For instance
4332   # both Tru64's cc and ICC support -MD to output dependencies as a
4333   # side effect of compilation, but ICC will put the dependencies in
4334   # the current directory while Tru64 will put them in the object
4335   # directory.
4336   mkdir sub
4337
4338   am_cv_CXX_dependencies_compiler_type=none
4339   if test "$am_compiler_list" = ""; then
4340      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4341   fi
4342   am__universal=false
4343   case " $depcc " in #(
4344      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4345      esac
4346
4347   for depmode in $am_compiler_list; do
4348     # Setup a source with many dependencies, because some compilers
4349     # like to wrap large dependency lists on column 80 (with \), and
4350     # we should not choose a depcomp mode which is confused by this.
4351     #
4352     # We need to recreate these files for each test, as the compiler may
4353     # overwrite some of them when testing with obscure command lines.
4354     # This happens at least with the AIX C compiler.
4355     : > sub/conftest.c
4356     for i in 1 2 3 4 5 6; do
4357       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4358       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4359       # Solaris 10 /bin/sh.
4360       echo '/* dummy */' > sub/conftst$i.h
4361     done
4362     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4363
4364     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4365     # mode.  It turns out that the SunPro C++ compiler does not properly
4366     # handle '-M -o', and we need to detect this.  Also, some Intel
4367     # versions had trouble with output in subdirs.
4368     am__obj=sub/conftest.${OBJEXT-o}
4369     am__minus_obj="-o $am__obj"
4370     case $depmode in
4371     gcc)
4372       # This depmode causes a compiler race in universal mode.
4373       test "$am__universal" = false || continue
4374       ;;
4375     nosideeffect)
4376       # After this tag, mechanisms are not by side-effect, so they'll
4377       # only be used when explicitly requested.
4378       if test "x$enable_dependency_tracking" = xyes; then
4379         continue
4380       else
4381         break
4382       fi
4383       ;;
4384     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4385       # This compiler won't grok '-c -o', but also, the minuso test has
4386       # not run yet.  These depmodes are late enough in the game, and
4387       # so weak that their functioning should not be impacted.
4388       am__obj=conftest.${OBJEXT-o}
4389       am__minus_obj=
4390       ;;
4391     none) break ;;
4392     esac
4393     if depmode=$depmode \
4394        source=sub/conftest.c object=$am__obj \
4395        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4396        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4397          >/dev/null 2>conftest.err &&
4398        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4399        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4400        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4401        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4402       # icc doesn't choke on unknown options, it will just issue warnings
4403       # or remarks (even with -Werror).  So we grep stderr for any message
4404       # that says an option was ignored or not supported.
4405       # When given -MP, icc 7.0 and 7.1 complain thusly:
4406       #   icc: Command line warning: ignoring option '-M'; no argument required
4407       # The diagnosis changed in icc 8.0:
4408       #   icc: Command line remark: option '-MP' not supported
4409       if (grep 'ignoring option' conftest.err ||
4410           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4411         am_cv_CXX_dependencies_compiler_type=$depmode
4412         break
4413       fi
4414     fi
4415   done
4416
4417   cd ..
4418   rm -rf conftest.dir
4419 else
4420   am_cv_CXX_dependencies_compiler_type=none
4421 fi
4422
4423 fi
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4425 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4426 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4427
4428  if
4429   test "x$enable_dependency_tracking" != xno \
4430   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4431   am__fastdepCXX_TRUE=
4432   am__fastdepCXX_FALSE='#'
4433 else
4434   am__fastdepCXX_TRUE='#'
4435   am__fastdepCXX_FALSE=
4436 fi
4437
4438
4439 case `pwd` in
4440   *\ * | *\     *)
4441     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4442 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4443 esac
4444
4445
4446
4447 macro_version='2.4.2'
4448 macro_revision='1.3337'
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462 ltmain="$ac_aux_dir/ltmain.sh"
4463
4464 # Backslashify metacharacters that are still active within
4465 # double-quoted strings.
4466 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4467
4468 # Same as above, but do not quote variable references.
4469 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4470
4471 # Sed substitution to delay expansion of an escaped shell variable in a
4472 # double_quote_subst'ed string.
4473 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4474
4475 # Sed substitution to delay expansion of an escaped single quote.
4476 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4477
4478 # Sed substitution to avoid accidental globbing in evaled expressions
4479 no_glob_subst='s/\*/\\\*/g'
4480
4481 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4482 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4483 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4484
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4486 $as_echo_n "checking how to print strings... " >&6; }
4487 # Test print first, because it will be a builtin if present.
4488 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4489    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4490   ECHO='print -r --'
4491 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4492   ECHO='printf %s\n'
4493 else
4494   # Use this function as a fallback that always works.
4495   func_fallback_echo ()
4496   {
4497     eval 'cat <<_LTECHO_EOF
4498 $1
4499 _LTECHO_EOF'
4500   }
4501   ECHO='func_fallback_echo'
4502 fi
4503
4504 # func_echo_all arg...
4505 # Invoke $ECHO with all args, space-separated.
4506 func_echo_all ()
4507 {
4508     $ECHO ""
4509 }
4510
4511 case "$ECHO" in
4512   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4513 $as_echo "printf" >&6; } ;;
4514   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4515 $as_echo "print -r" >&6; } ;;
4516   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4517 $as_echo "cat" >&6; } ;;
4518 esac
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4534 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4535 if ${ac_cv_path_SED+:} false; then :
4536   $as_echo_n "(cached) " >&6
4537 else
4538             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4539      for ac_i in 1 2 3 4 5 6 7; do
4540        ac_script="$ac_script$as_nl$ac_script"
4541      done
4542      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4543      { ac_script=; unset ac_script;}
4544      if test -z "$SED"; then
4545   ac_path_SED_found=false
4546   # Loop through the user's path and test for each of PROGNAME-LIST
4547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4549 do
4550   IFS=$as_save_IFS
4551   test -z "$as_dir" && as_dir=.
4552     for ac_prog in sed gsed; do
4553     for ac_exec_ext in '' $ac_executable_extensions; do
4554       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4555       as_fn_executable_p "$ac_path_SED" || continue
4556 # Check for GNU ac_path_SED and select it if it is found.
4557   # Check for GNU $ac_path_SED
4558 case `"$ac_path_SED" --version 2>&1` in
4559 *GNU*)
4560   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4561 *)
4562   ac_count=0
4563   $as_echo_n 0123456789 >"conftest.in"
4564   while :
4565   do
4566     cat "conftest.in" "conftest.in" >"conftest.tmp"
4567     mv "conftest.tmp" "conftest.in"
4568     cp "conftest.in" "conftest.nl"
4569     $as_echo '' >> "conftest.nl"
4570     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4571     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4572     as_fn_arith $ac_count + 1 && ac_count=$as_val
4573     if test $ac_count -gt ${ac_path_SED_max-0}; then
4574       # Best one so far, save it but keep looking for a better one
4575       ac_cv_path_SED="$ac_path_SED"
4576       ac_path_SED_max=$ac_count
4577     fi
4578     # 10*(2^10) chars as input seems more than enough
4579     test $ac_count -gt 10 && break
4580   done
4581   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4582 esac
4583
4584       $ac_path_SED_found && break 3
4585     done
4586   done
4587   done
4588 IFS=$as_save_IFS
4589   if test -z "$ac_cv_path_SED"; then
4590     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4591   fi
4592 else
4593   ac_cv_path_SED=$SED
4594 fi
4595
4596 fi
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4598 $as_echo "$ac_cv_path_SED" >&6; }
4599  SED="$ac_cv_path_SED"
4600   rm -f conftest.sed
4601
4602 test -z "$SED" && SED=sed
4603 Xsed="$SED -e 1s/^X//"
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4616 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4617 if ${ac_cv_path_GREP+:} false; then :
4618   $as_echo_n "(cached) " >&6
4619 else
4620   if test -z "$GREP"; then
4621   ac_path_GREP_found=false
4622   # Loop through the user's path and test for each of PROGNAME-LIST
4623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4625 do
4626   IFS=$as_save_IFS
4627   test -z "$as_dir" && as_dir=.
4628     for ac_prog in grep ggrep; do
4629     for ac_exec_ext in '' $ac_executable_extensions; do
4630       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4631       as_fn_executable_p "$ac_path_GREP" || continue
4632 # Check for GNU ac_path_GREP and select it if it is found.
4633   # Check for GNU $ac_path_GREP
4634 case `"$ac_path_GREP" --version 2>&1` in
4635 *GNU*)
4636   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4637 *)
4638   ac_count=0
4639   $as_echo_n 0123456789 >"conftest.in"
4640   while :
4641   do
4642     cat "conftest.in" "conftest.in" >"conftest.tmp"
4643     mv "conftest.tmp" "conftest.in"
4644     cp "conftest.in" "conftest.nl"
4645     $as_echo 'GREP' >> "conftest.nl"
4646     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4647     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4648     as_fn_arith $ac_count + 1 && ac_count=$as_val
4649     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4650       # Best one so far, save it but keep looking for a better one
4651       ac_cv_path_GREP="$ac_path_GREP"
4652       ac_path_GREP_max=$ac_count
4653     fi
4654     # 10*(2^10) chars as input seems more than enough
4655     test $ac_count -gt 10 && break
4656   done
4657   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4658 esac
4659
4660       $ac_path_GREP_found && break 3
4661     done
4662   done
4663   done
4664 IFS=$as_save_IFS
4665   if test -z "$ac_cv_path_GREP"; then
4666     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4667   fi
4668 else
4669   ac_cv_path_GREP=$GREP
4670 fi
4671
4672 fi
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4674 $as_echo "$ac_cv_path_GREP" >&6; }
4675  GREP="$ac_cv_path_GREP"
4676
4677
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4679 $as_echo_n "checking for egrep... " >&6; }
4680 if ${ac_cv_path_EGREP+:} false; then :
4681   $as_echo_n "(cached) " >&6
4682 else
4683   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4684    then ac_cv_path_EGREP="$GREP -E"
4685    else
4686      if test -z "$EGREP"; then
4687   ac_path_EGREP_found=false
4688   # Loop through the user's path and test for each of PROGNAME-LIST
4689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4691 do
4692   IFS=$as_save_IFS
4693   test -z "$as_dir" && as_dir=.
4694     for ac_prog in egrep; do
4695     for ac_exec_ext in '' $ac_executable_extensions; do
4696       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4697       as_fn_executable_p "$ac_path_EGREP" || continue
4698 # Check for GNU ac_path_EGREP and select it if it is found.
4699   # Check for GNU $ac_path_EGREP
4700 case `"$ac_path_EGREP" --version 2>&1` in
4701 *GNU*)
4702   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4703 *)
4704   ac_count=0
4705   $as_echo_n 0123456789 >"conftest.in"
4706   while :
4707   do
4708     cat "conftest.in" "conftest.in" >"conftest.tmp"
4709     mv "conftest.tmp" "conftest.in"
4710     cp "conftest.in" "conftest.nl"
4711     $as_echo 'EGREP' >> "conftest.nl"
4712     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4713     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4714     as_fn_arith $ac_count + 1 && ac_count=$as_val
4715     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4716       # Best one so far, save it but keep looking for a better one
4717       ac_cv_path_EGREP="$ac_path_EGREP"
4718       ac_path_EGREP_max=$ac_count
4719     fi
4720     # 10*(2^10) chars as input seems more than enough
4721     test $ac_count -gt 10 && break
4722   done
4723   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4724 esac
4725
4726       $ac_path_EGREP_found && break 3
4727     done
4728   done
4729   done
4730 IFS=$as_save_IFS
4731   if test -z "$ac_cv_path_EGREP"; then
4732     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4733   fi
4734 else
4735   ac_cv_path_EGREP=$EGREP
4736 fi
4737
4738    fi
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4741 $as_echo "$ac_cv_path_EGREP" >&6; }
4742  EGREP="$ac_cv_path_EGREP"
4743
4744
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4746 $as_echo_n "checking for fgrep... " >&6; }
4747 if ${ac_cv_path_FGREP+:} false; then :
4748   $as_echo_n "(cached) " >&6
4749 else
4750   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4751    then ac_cv_path_FGREP="$GREP -F"
4752    else
4753      if test -z "$FGREP"; then
4754   ac_path_FGREP_found=false
4755   # Loop through the user's path and test for each of PROGNAME-LIST
4756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4758 do
4759   IFS=$as_save_IFS
4760   test -z "$as_dir" && as_dir=.
4761     for ac_prog in fgrep; do
4762     for ac_exec_ext in '' $ac_executable_extensions; do
4763       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4764       as_fn_executable_p "$ac_path_FGREP" || continue
4765 # Check for GNU ac_path_FGREP and select it if it is found.
4766   # Check for GNU $ac_path_FGREP
4767 case `"$ac_path_FGREP" --version 2>&1` in
4768 *GNU*)
4769   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4770 *)
4771   ac_count=0
4772   $as_echo_n 0123456789 >"conftest.in"
4773   while :
4774   do
4775     cat "conftest.in" "conftest.in" >"conftest.tmp"
4776     mv "conftest.tmp" "conftest.in"
4777     cp "conftest.in" "conftest.nl"
4778     $as_echo 'FGREP' >> "conftest.nl"
4779     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4780     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4781     as_fn_arith $ac_count + 1 && ac_count=$as_val
4782     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4783       # Best one so far, save it but keep looking for a better one
4784       ac_cv_path_FGREP="$ac_path_FGREP"
4785       ac_path_FGREP_max=$ac_count
4786     fi
4787     # 10*(2^10) chars as input seems more than enough
4788     test $ac_count -gt 10 && break
4789   done
4790   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4791 esac
4792
4793       $ac_path_FGREP_found && break 3
4794     done
4795   done
4796   done
4797 IFS=$as_save_IFS
4798   if test -z "$ac_cv_path_FGREP"; then
4799     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4800   fi
4801 else
4802   ac_cv_path_FGREP=$FGREP
4803 fi
4804
4805    fi
4806 fi
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4808 $as_echo "$ac_cv_path_FGREP" >&6; }
4809  FGREP="$ac_cv_path_FGREP"
4810
4811
4812 test -z "$GREP" && GREP=grep
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832 # Check whether --with-gnu-ld was given.
4833 if test "${with_gnu_ld+set}" = set; then :
4834   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4835 else
4836   with_gnu_ld=no
4837 fi
4838
4839 ac_prog=ld
4840 if test "$GCC" = yes; then
4841   # Check if gcc -print-prog-name=ld gives a path.
4842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4843 $as_echo_n "checking for ld used by $CC... " >&6; }
4844   case $host in
4845   *-*-mingw*)
4846     # gcc leaves a trailing carriage return which upsets mingw
4847     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4848   *)
4849     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4850   esac
4851   case $ac_prog in
4852     # Accept absolute paths.
4853     [\\/]* | ?:[\\/]*)
4854       re_direlt='/[^/][^/]*/\.\./'
4855       # Canonicalize the pathname of ld
4856       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4857       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4858         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4859       done
4860       test -z "$LD" && LD="$ac_prog"
4861       ;;
4862   "")
4863     # If it fails, then pretend we aren't using GCC.
4864     ac_prog=ld
4865     ;;
4866   *)
4867     # If it is relative, then search for the first ld in PATH.
4868     with_gnu_ld=unknown
4869     ;;
4870   esac
4871 elif test "$with_gnu_ld" = yes; then
4872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4873 $as_echo_n "checking for GNU ld... " >&6; }
4874 else
4875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4876 $as_echo_n "checking for non-GNU ld... " >&6; }
4877 fi
4878 if ${lt_cv_path_LD+:} false; then :
4879   $as_echo_n "(cached) " >&6
4880 else
4881   if test -z "$LD"; then
4882   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4883   for ac_dir in $PATH; do
4884     IFS="$lt_save_ifs"
4885     test -z "$ac_dir" && ac_dir=.
4886     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4887       lt_cv_path_LD="$ac_dir/$ac_prog"
4888       # Check to see if the program is GNU ld.  I'd rather use --version,
4889       # but apparently some variants of GNU ld only accept -v.
4890       # Break only if it was the GNU/non-GNU ld that we prefer.
4891       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4892       *GNU* | *'with BFD'*)
4893         test "$with_gnu_ld" != no && break
4894         ;;
4895       *)
4896         test "$with_gnu_ld" != yes && break
4897         ;;
4898       esac
4899     fi
4900   done
4901   IFS="$lt_save_ifs"
4902 else
4903   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4904 fi
4905 fi
4906
4907 LD="$lt_cv_path_LD"
4908 if test -n "$LD"; then
4909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4910 $as_echo "$LD" >&6; }
4911 else
4912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 $as_echo "no" >&6; }
4914 fi
4915 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4917 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4918 if ${lt_cv_prog_gnu_ld+:} false; then :
4919   $as_echo_n "(cached) " >&6
4920 else
4921   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4922 case `$LD -v 2>&1 </dev/null` in
4923 *GNU* | *'with BFD'*)
4924   lt_cv_prog_gnu_ld=yes
4925   ;;
4926 *)
4927   lt_cv_prog_gnu_ld=no
4928   ;;
4929 esac
4930 fi
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4932 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4933 with_gnu_ld=$lt_cv_prog_gnu_ld
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4944 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4945 if ${lt_cv_path_NM+:} false; then :
4946   $as_echo_n "(cached) " >&6
4947 else
4948   if test -n "$NM"; then
4949   # Let the user override the test.
4950   lt_cv_path_NM="$NM"
4951 else
4952   lt_nm_to_check="${ac_tool_prefix}nm"
4953   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4954     lt_nm_to_check="$lt_nm_to_check nm"
4955   fi
4956   for lt_tmp_nm in $lt_nm_to_check; do
4957     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4958     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4959       IFS="$lt_save_ifs"
4960       test -z "$ac_dir" && ac_dir=.
4961       tmp_nm="$ac_dir/$lt_tmp_nm"
4962       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4963         # Check to see if the nm accepts a BSD-compat flag.
4964         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4965         #   nm: unknown option "B" ignored
4966         # Tru64's nm complains that /dev/null is an invalid object file
4967         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4968         */dev/null* | *'Invalid file or object type'*)
4969           lt_cv_path_NM="$tmp_nm -B"
4970           break
4971           ;;
4972         *)
4973           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4974           */dev/null*)
4975             lt_cv_path_NM="$tmp_nm -p"
4976             break
4977             ;;
4978           *)
4979             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4980             continue # so that we can try to find one that supports BSD flags
4981             ;;
4982           esac
4983           ;;
4984         esac
4985       fi
4986     done
4987     IFS="$lt_save_ifs"
4988   done
4989   : ${lt_cv_path_NM=no}
4990 fi
4991 fi
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4993 $as_echo "$lt_cv_path_NM" >&6; }
4994 if test "$lt_cv_path_NM" != "no"; then
4995   NM="$lt_cv_path_NM"
4996 else
4997   # Didn't find any BSD compatible name lister, look for dumpbin.
4998   if test -n "$DUMPBIN"; then :
4999     # Let the user override the test.
5000   else
5001     if test -n "$ac_tool_prefix"; then
5002   for ac_prog in dumpbin "link -dump"
5003   do
5004     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if ${ac_cv_prog_DUMPBIN+:} false; then :
5009   $as_echo_n "(cached) " >&6
5010 else
5011   if test -n "$DUMPBIN"; then
5012   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017   IFS=$as_save_IFS
5018   test -z "$as_dir" && as_dir=.
5019     for ac_exec_ext in '' $ac_executable_extensions; do
5020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023     break 2
5024   fi
5025 done
5026   done
5027 IFS=$as_save_IFS
5028
5029 fi
5030 fi
5031 DUMPBIN=$ac_cv_prog_DUMPBIN
5032 if test -n "$DUMPBIN"; then
5033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5034 $as_echo "$DUMPBIN" >&6; }
5035 else
5036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5038 fi
5039
5040
5041     test -n "$DUMPBIN" && break
5042   done
5043 fi
5044 if test -z "$DUMPBIN"; then
5045   ac_ct_DUMPBIN=$DUMPBIN
5046   for ac_prog in dumpbin "link -dump"
5047 do
5048   # Extract the first word of "$ac_prog", so it can be a program name with args.
5049 set dummy $ac_prog; ac_word=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5053   $as_echo_n "(cached) " >&6
5054 else
5055   if test -n "$ac_ct_DUMPBIN"; then
5056   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5057 else
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5060 do
5061   IFS=$as_save_IFS
5062   test -z "$as_dir" && as_dir=.
5063     for ac_exec_ext in '' $ac_executable_extensions; do
5064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5065     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067     break 2
5068   fi
5069 done
5070   done
5071 IFS=$as_save_IFS
5072
5073 fi
5074 fi
5075 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5076 if test -n "$ac_ct_DUMPBIN"; then
5077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5078 $as_echo "$ac_ct_DUMPBIN" >&6; }
5079 else
5080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5082 fi
5083
5084
5085   test -n "$ac_ct_DUMPBIN" && break
5086 done
5087
5088   if test "x$ac_ct_DUMPBIN" = x; then
5089     DUMPBIN=":"
5090   else
5091     case $cross_compiling:$ac_tool_warned in
5092 yes:)
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5095 ac_tool_warned=yes ;;
5096 esac
5097     DUMPBIN=$ac_ct_DUMPBIN
5098   fi
5099 fi
5100
5101     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5102     *COFF*)
5103       DUMPBIN="$DUMPBIN -symbols"
5104       ;;
5105     *)
5106       DUMPBIN=:
5107       ;;
5108     esac
5109   fi
5110
5111   if test "$DUMPBIN" != ":"; then
5112     NM="$DUMPBIN"
5113   fi
5114 fi
5115 test -z "$NM" && NM=nm
5116
5117
5118
5119
5120
5121
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5123 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5124 if ${lt_cv_nm_interface+:} false; then :
5125   $as_echo_n "(cached) " >&6
5126 else
5127   lt_cv_nm_interface="BSD nm"
5128   echo "int some_variable = 0;" > conftest.$ac_ext
5129   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5130   (eval "$ac_compile" 2>conftest.err)
5131   cat conftest.err >&5
5132   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5133   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5134   cat conftest.err >&5
5135   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5136   cat conftest.out >&5
5137   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5138     lt_cv_nm_interface="MS dumpbin"
5139   fi
5140   rm -f conftest*
5141 fi
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5143 $as_echo "$lt_cv_nm_interface" >&6; }
5144
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5146 $as_echo_n "checking whether ln -s works... " >&6; }
5147 LN_S=$as_ln_s
5148 if test "$LN_S" = "ln -s"; then
5149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5150 $as_echo "yes" >&6; }
5151 else
5152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5153 $as_echo "no, using $LN_S" >&6; }
5154 fi
5155
5156 # find the maximum length of command line arguments
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5158 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5159 if ${lt_cv_sys_max_cmd_len+:} false; then :
5160   $as_echo_n "(cached) " >&6
5161 else
5162     i=0
5163   teststring="ABCD"
5164
5165   case $build_os in
5166   msdosdjgpp*)
5167     # On DJGPP, this test can blow up pretty badly due to problems in libc
5168     # (any single argument exceeding 2000 bytes causes a buffer overrun
5169     # during glob expansion).  Even if it were fixed, the result of this
5170     # check would be larger than it should be.
5171     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5172     ;;
5173
5174   gnu*)
5175     # Under GNU Hurd, this test is not required because there is
5176     # no limit to the length of command line arguments.
5177     # Libtool will interpret -1 as no limit whatsoever
5178     lt_cv_sys_max_cmd_len=-1;
5179     ;;
5180
5181   cygwin* | mingw* | cegcc*)
5182     # On Win9x/ME, this test blows up -- it succeeds, but takes
5183     # about 5 minutes as the teststring grows exponentially.
5184     # Worse, since 9x/ME are not pre-emptively multitasking,
5185     # you end up with a "frozen" computer, even though with patience
5186     # the test eventually succeeds (with a max line length of 256k).
5187     # Instead, let's just punt: use the minimum linelength reported by
5188     # all of the supported platforms: 8192 (on NT/2K/XP).
5189     lt_cv_sys_max_cmd_len=8192;
5190     ;;
5191
5192   mint*)
5193     # On MiNT this can take a long time and run out of memory.
5194     lt_cv_sys_max_cmd_len=8192;
5195     ;;
5196
5197   amigaos*)
5198     # On AmigaOS with pdksh, this test takes hours, literally.
5199     # So we just punt and use a minimum line length of 8192.
5200     lt_cv_sys_max_cmd_len=8192;
5201     ;;
5202
5203   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5204     # This has been around since 386BSD, at least.  Likely further.
5205     if test -x /sbin/sysctl; then
5206       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5207     elif test -x /usr/sbin/sysctl; then
5208       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5209     else
5210       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5211     fi
5212     # And add a safety zone
5213     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5214     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5215     ;;
5216
5217   interix*)
5218     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5219     lt_cv_sys_max_cmd_len=196608
5220     ;;
5221
5222   os2*)
5223     # The test takes a long time on OS/2.
5224     lt_cv_sys_max_cmd_len=8192
5225     ;;
5226
5227   osf*)
5228     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5229     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5230     # nice to cause kernel panics so lets avoid the loop below.
5231     # First set a reasonable default.
5232     lt_cv_sys_max_cmd_len=16384
5233     #
5234     if test -x /sbin/sysconfig; then
5235       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5236         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5237       esac
5238     fi
5239     ;;
5240   sco3.2v5*)
5241     lt_cv_sys_max_cmd_len=102400
5242     ;;
5243   sysv5* | sco5v6* | sysv4.2uw2*)
5244     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5245     if test -n "$kargmax"; then
5246       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5247     else
5248       lt_cv_sys_max_cmd_len=32768
5249     fi
5250     ;;
5251   *)
5252     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5253     if test -n "$lt_cv_sys_max_cmd_len"; then
5254       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5255       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5256     else
5257       # Make teststring a little bigger before we do anything with it.
5258       # a 1K string should be a reasonable start.
5259       for i in 1 2 3 4 5 6 7 8 ; do
5260         teststring=$teststring$teststring
5261       done
5262       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5263       # If test is not a shell built-in, we'll probably end up computing a
5264       # maximum length that is only half of the actual maximum length, but
5265       # we can't tell.
5266       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5267                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5268               test $i != 17 # 1/2 MB should be enough
5269       do
5270         i=`expr $i + 1`
5271         teststring=$teststring$teststring
5272       done
5273       # Only check the string length outside the loop.
5274       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5275       teststring=
5276       # Add a significant safety factor because C++ compilers can tack on
5277       # massive amounts of additional arguments before passing them to the
5278       # linker.  It appears as though 1/2 is a usable value.
5279       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5280     fi
5281     ;;
5282   esac
5283
5284 fi
5285
5286 if test -n $lt_cv_sys_max_cmd_len ; then
5287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5288 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5289 else
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5291 $as_echo "none" >&6; }
5292 fi
5293 max_cmd_len=$lt_cv_sys_max_cmd_len
5294
5295
5296
5297
5298
5299
5300 : ${CP="cp -f"}
5301 : ${MV="mv -f"}
5302 : ${RM="rm -f"}
5303
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5305 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5306 # Try some XSI features
5307 xsi_shell=no
5308 ( _lt_dummy="a/b/c"
5309   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5310       = c,a/b,b/c, \
5311     && eval 'test $(( 1 + 1 )) -eq 2 \
5312     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5313   && xsi_shell=yes
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5315 $as_echo "$xsi_shell" >&6; }
5316
5317
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5319 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5320 lt_shell_append=no
5321 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5322     >/dev/null 2>&1 \
5323   && lt_shell_append=yes
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5325 $as_echo "$lt_shell_append" >&6; }
5326
5327
5328 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5329   lt_unset=unset
5330 else
5331   lt_unset=false
5332 fi
5333
5334
5335
5336
5337
5338 # test EBCDIC or ASCII
5339 case `echo X|tr X '\101'` in
5340  A) # ASCII based system
5341     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5342   lt_SP2NL='tr \040 \012'
5343   lt_NL2SP='tr \015\012 \040\040'
5344   ;;
5345  *) # EBCDIC based system
5346   lt_SP2NL='tr \100 \n'
5347   lt_NL2SP='tr \r\n \100\100'
5348   ;;
5349 esac
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5360 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5361 if ${lt_cv_to_host_file_cmd+:} false; then :
5362   $as_echo_n "(cached) " >&6
5363 else
5364   case $host in
5365   *-*-mingw* )
5366     case $build in
5367       *-*-mingw* ) # actually msys
5368         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5369         ;;
5370       *-*-cygwin* )
5371         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5372         ;;
5373       * ) # otherwise, assume *nix
5374         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5375         ;;
5376     esac
5377     ;;
5378   *-*-cygwin* )
5379     case $build in
5380       *-*-mingw* ) # actually msys
5381         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5382         ;;
5383       *-*-cygwin* )
5384         lt_cv_to_host_file_cmd=func_convert_file_noop
5385         ;;
5386       * ) # otherwise, assume *nix
5387         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5388         ;;
5389     esac
5390     ;;
5391   * ) # unhandled hosts (and "normal" native builds)
5392     lt_cv_to_host_file_cmd=func_convert_file_noop
5393     ;;
5394 esac
5395
5396 fi
5397
5398 to_host_file_cmd=$lt_cv_to_host_file_cmd
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5400 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5401
5402
5403
5404
5405
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5407 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5408 if ${lt_cv_to_tool_file_cmd+:} false; then :
5409   $as_echo_n "(cached) " >&6
5410 else
5411   #assume ordinary cross tools, or native build.
5412 lt_cv_to_tool_file_cmd=func_convert_file_noop
5413 case $host in
5414   *-*-mingw* )
5415     case $build in
5416       *-*-mingw* ) # actually msys
5417         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5418         ;;
5419     esac
5420     ;;
5421 esac
5422
5423 fi
5424
5425 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5427 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5428
5429
5430
5431
5432
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5434 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5435 if ${lt_cv_ld_reload_flag+:} false; then :
5436   $as_echo_n "(cached) " >&6
5437 else
5438   lt_cv_ld_reload_flag='-r'
5439 fi
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5441 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5442 reload_flag=$lt_cv_ld_reload_flag
5443 case $reload_flag in
5444 "" | " "*) ;;
5445 *) reload_flag=" $reload_flag" ;;
5446 esac
5447 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5448 case $host_os in
5449   cygwin* | mingw* | pw32* | cegcc*)
5450     if test "$GCC" != yes; then
5451       reload_cmds=false
5452     fi
5453     ;;
5454   darwin*)
5455     if test "$GCC" = yes; then
5456       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5457     else
5458       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5459     fi
5460     ;;
5461 esac
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471 if test -n "$ac_tool_prefix"; then
5472   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5473 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if ${ac_cv_prog_OBJDUMP+:} false; then :
5477   $as_echo_n "(cached) " >&6
5478 else
5479   if test -n "$OBJDUMP"; then
5480   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5481 else
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5484 do
5485   IFS=$as_save_IFS
5486   test -z "$as_dir" && as_dir=.
5487     for ac_exec_ext in '' $ac_executable_extensions; do
5488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491     break 2
5492   fi
5493 done
5494   done
5495 IFS=$as_save_IFS
5496
5497 fi
5498 fi
5499 OBJDUMP=$ac_cv_prog_OBJDUMP
5500 if test -n "$OBJDUMP"; then
5501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5502 $as_echo "$OBJDUMP" >&6; }
5503 else
5504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5506 fi
5507
5508
5509 fi
5510 if test -z "$ac_cv_prog_OBJDUMP"; then
5511   ac_ct_OBJDUMP=$OBJDUMP
5512   # Extract the first word of "objdump", so it can be a program name with args.
5513 set dummy objdump; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5517   $as_echo_n "(cached) " >&6
5518 else
5519   if test -n "$ac_ct_OBJDUMP"; then
5520   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5521 else
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525   IFS=$as_save_IFS
5526   test -z "$as_dir" && as_dir=.
5527     for ac_exec_ext in '' $ac_executable_extensions; do
5528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531     break 2
5532   fi
5533 done
5534   done
5535 IFS=$as_save_IFS
5536
5537 fi
5538 fi
5539 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5540 if test -n "$ac_ct_OBJDUMP"; then
5541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5542 $as_echo "$ac_ct_OBJDUMP" >&6; }
5543 else
5544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 fi
5547
5548   if test "x$ac_ct_OBJDUMP" = x; then
5549     OBJDUMP="false"
5550   else
5551     case $cross_compiling:$ac_tool_warned in
5552 yes:)
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5555 ac_tool_warned=yes ;;
5556 esac
5557     OBJDUMP=$ac_ct_OBJDUMP
5558   fi
5559 else
5560   OBJDUMP="$ac_cv_prog_OBJDUMP"
5561 fi
5562
5563 test -z "$OBJDUMP" && OBJDUMP=objdump
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5574 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5575 if ${lt_cv_deplibs_check_method+:} false; then :
5576   $as_echo_n "(cached) " >&6
5577 else
5578   lt_cv_file_magic_cmd='$MAGIC_CMD'
5579 lt_cv_file_magic_test_file=
5580 lt_cv_deplibs_check_method='unknown'
5581 # Need to set the preceding variable on all platforms that support
5582 # interlibrary dependencies.
5583 # 'none' -- dependencies not supported.
5584 # `unknown' -- same as none, but documents that we really don't know.
5585 # 'pass_all' -- all dependencies passed with no checks.
5586 # 'test_compile' -- check by making test program.
5587 # 'file_magic [[regex]]' -- check by looking for files in library path
5588 # which responds to the $file_magic_cmd with a given extended regex.
5589 # If you have `file' or equivalent on your system and you're not sure
5590 # whether `pass_all' will *always* work, you probably want this one.
5591
5592 case $host_os in
5593 aix[4-9]*)
5594   lt_cv_deplibs_check_method=pass_all
5595   ;;
5596
5597 beos*)
5598   lt_cv_deplibs_check_method=pass_all
5599   ;;
5600
5601 bsdi[45]*)
5602   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5603   lt_cv_file_magic_cmd='/usr/bin/file -L'
5604   lt_cv_file_magic_test_file=/shlib/libc.so
5605   ;;
5606
5607 cygwin*)
5608   # func_win32_libid is a shell function defined in ltmain.sh
5609   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5610   lt_cv_file_magic_cmd='func_win32_libid'
5611   ;;
5612
5613 mingw* | pw32*)
5614   # Base MSYS/MinGW do not provide the 'file' command needed by
5615   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5616   # unless we find 'file', for example because we are cross-compiling.
5617   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5618   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5619     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5620     lt_cv_file_magic_cmd='func_win32_libid'
5621   else
5622     # Keep this pattern in sync with the one in func_win32_libid.
5623     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5624     lt_cv_file_magic_cmd='$OBJDUMP -f'
5625   fi
5626   ;;
5627
5628 cegcc*)
5629   # use the weaker test based on 'objdump'. See mingw*.
5630   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5631   lt_cv_file_magic_cmd='$OBJDUMP -f'
5632   ;;
5633
5634 darwin* | rhapsody*)
5635   lt_cv_deplibs_check_method=pass_all
5636   ;;
5637
5638 freebsd* | dragonfly*)
5639   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5640     case $host_cpu in
5641     i*86 )
5642       # Not sure whether the presence of OpenBSD here was a mistake.
5643       # Let's accept both of them until this is cleared up.
5644       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5645       lt_cv_file_magic_cmd=/usr/bin/file
5646       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5647       ;;
5648     esac
5649   else
5650     lt_cv_deplibs_check_method=pass_all
5651   fi
5652   ;;
5653
5654 gnu*)
5655   lt_cv_deplibs_check_method=pass_all
5656   ;;
5657
5658 haiku*)
5659   lt_cv_deplibs_check_method=pass_all
5660   ;;
5661
5662 hpux10.20* | hpux11*)
5663   lt_cv_file_magic_cmd=/usr/bin/file
5664   case $host_cpu in
5665   ia64*)
5666     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5667     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5668     ;;
5669   hppa*64*)
5670     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]'
5671     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5672     ;;
5673   *)
5674     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5675     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5676     ;;
5677   esac
5678   ;;
5679
5680 interix[3-9]*)
5681   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5682   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5683   ;;
5684
5685 irix5* | irix6* | nonstopux*)
5686   case $LD in
5687   *-32|*"-32 ") libmagic=32-bit;;
5688   *-n32|*"-n32 ") libmagic=N32;;
5689   *-64|*"-64 ") libmagic=64-bit;;
5690   *) libmagic=never-match;;
5691   esac
5692   lt_cv_deplibs_check_method=pass_all
5693   ;;
5694
5695 # This must be glibc/ELF.
5696 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5697   lt_cv_deplibs_check_method=pass_all
5698   ;;
5699
5700 netbsd*)
5701   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5702     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5703   else
5704     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5705   fi
5706   ;;
5707
5708 newos6*)
5709   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5710   lt_cv_file_magic_cmd=/usr/bin/file
5711   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5712   ;;
5713
5714 *nto* | *qnx*)
5715   lt_cv_deplibs_check_method=pass_all
5716   ;;
5717
5718 openbsd*)
5719   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5720     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5721   else
5722     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5723   fi
5724   ;;
5725
5726 osf3* | osf4* | osf5*)
5727   lt_cv_deplibs_check_method=pass_all
5728   ;;
5729
5730 rdos*)
5731   lt_cv_deplibs_check_method=pass_all
5732   ;;
5733
5734 solaris*)
5735   lt_cv_deplibs_check_method=pass_all
5736   ;;
5737
5738 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5739   lt_cv_deplibs_check_method=pass_all
5740   ;;
5741
5742 sysv4 | sysv4.3*)
5743   case $host_vendor in
5744   motorola)
5745     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]'
5746     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5747     ;;
5748   ncr)
5749     lt_cv_deplibs_check_method=pass_all
5750     ;;
5751   sequent)
5752     lt_cv_file_magic_cmd='/bin/file'
5753     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5754     ;;
5755   sni)
5756     lt_cv_file_magic_cmd='/bin/file'
5757     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5758     lt_cv_file_magic_test_file=/lib/libc.so
5759     ;;
5760   siemens)
5761     lt_cv_deplibs_check_method=pass_all
5762     ;;
5763   pc)
5764     lt_cv_deplibs_check_method=pass_all
5765     ;;
5766   esac
5767   ;;
5768
5769 tpf*)
5770   lt_cv_deplibs_check_method=pass_all
5771   ;;
5772 esac
5773
5774 fi
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5776 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5777
5778 file_magic_glob=
5779 want_nocaseglob=no
5780 if test "$build" = "$host"; then
5781   case $host_os in
5782   mingw* | pw32*)
5783     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5784       want_nocaseglob=yes
5785     else
5786       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5787     fi
5788     ;;
5789   esac
5790 fi
5791
5792 file_magic_cmd=$lt_cv_file_magic_cmd
5793 deplibs_check_method=$lt_cv_deplibs_check_method
5794 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817 if test -n "$ac_tool_prefix"; then
5818   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5819 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if ${ac_cv_prog_DLLTOOL+:} false; then :
5823   $as_echo_n "(cached) " >&6
5824 else
5825   if test -n "$DLLTOOL"; then
5826   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831   IFS=$as_save_IFS
5832   test -z "$as_dir" && as_dir=.
5833     for ac_exec_ext in '' $ac_executable_extensions; do
5834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837     break 2
5838   fi
5839 done
5840   done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 DLLTOOL=$ac_cv_prog_DLLTOOL
5846 if test -n "$DLLTOOL"; then
5847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5848 $as_echo "$DLLTOOL" >&6; }
5849 else
5850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5852 fi
5853
5854
5855 fi
5856 if test -z "$ac_cv_prog_DLLTOOL"; then
5857   ac_ct_DLLTOOL=$DLLTOOL
5858   # Extract the first word of "dlltool", so it can be a program name with args.
5859 set dummy dlltool; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5863   $as_echo_n "(cached) " >&6
5864 else
5865   if test -n "$ac_ct_DLLTOOL"; then
5866   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871   IFS=$as_save_IFS
5872   test -z "$as_dir" && as_dir=.
5873     for ac_exec_ext in '' $ac_executable_extensions; do
5874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877     break 2
5878   fi
5879 done
5880   done
5881 IFS=$as_save_IFS
5882
5883 fi
5884 fi
5885 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5886 if test -n "$ac_ct_DLLTOOL"; then
5887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5888 $as_echo "$ac_ct_DLLTOOL" >&6; }
5889 else
5890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5892 fi
5893
5894   if test "x$ac_ct_DLLTOOL" = x; then
5895     DLLTOOL="false"
5896   else
5897     case $cross_compiling:$ac_tool_warned in
5898 yes:)
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5901 ac_tool_warned=yes ;;
5902 esac
5903     DLLTOOL=$ac_ct_DLLTOOL
5904   fi
5905 else
5906   DLLTOOL="$ac_cv_prog_DLLTOOL"
5907 fi
5908
5909 test -z "$DLLTOOL" && DLLTOOL=dlltool
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5921 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5922 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5923   $as_echo_n "(cached) " >&6
5924 else
5925   lt_cv_sharedlib_from_linklib_cmd='unknown'
5926
5927 case $host_os in
5928 cygwin* | mingw* | pw32* | cegcc*)
5929   # two different shell functions defined in ltmain.sh
5930   # decide which to use based on capabilities of $DLLTOOL
5931   case `$DLLTOOL --help 2>&1` in
5932   *--identify-strict*)
5933     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5934     ;;
5935   *)
5936     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5937     ;;
5938   esac
5939   ;;
5940 *)
5941   # fallback: assume linklib IS sharedlib
5942   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5943   ;;
5944 esac
5945
5946 fi
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5948 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5949 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5950 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5951
5952
5953
5954
5955
5956
5957
5958
5959 if test -n "$ac_tool_prefix"; then
5960   for ac_prog in ar
5961   do
5962     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965 $as_echo_n "checking for $ac_word... " >&6; }
5966 if ${ac_cv_prog_AR+:} false; then :
5967   $as_echo_n "(cached) " >&6
5968 else
5969   if test -n "$AR"; then
5970   ac_cv_prog_AR="$AR" # Let the user override the test.
5971 else
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5974 do
5975   IFS=$as_save_IFS
5976   test -z "$as_dir" && as_dir=.
5977     for ac_exec_ext in '' $ac_executable_extensions; do
5978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981     break 2
5982   fi
5983 done
5984   done
5985 IFS=$as_save_IFS
5986
5987 fi
5988 fi
5989 AR=$ac_cv_prog_AR
5990 if test -n "$AR"; then
5991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5992 $as_echo "$AR" >&6; }
5993 else
5994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5996 fi
5997
5998
5999     test -n "$AR" && break
6000   done
6001 fi
6002 if test -z "$AR"; then
6003   ac_ct_AR=$AR
6004   for ac_prog in ar
6005 do
6006   # Extract the first word of "$ac_prog", so it can be a program name with args.
6007 set dummy $ac_prog; ac_word=$2
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009 $as_echo_n "checking for $ac_word... " >&6; }
6010 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6011   $as_echo_n "(cached) " >&6
6012 else
6013   if test -n "$ac_ct_AR"; then
6014   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6015 else
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019   IFS=$as_save_IFS
6020   test -z "$as_dir" && as_dir=.
6021     for ac_exec_ext in '' $ac_executable_extensions; do
6022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023     ac_cv_prog_ac_ct_AR="$ac_prog"
6024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025     break 2
6026   fi
6027 done
6028   done
6029 IFS=$as_save_IFS
6030
6031 fi
6032 fi
6033 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6034 if test -n "$ac_ct_AR"; then
6035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6036 $as_echo "$ac_ct_AR" >&6; }
6037 else
6038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6040 fi
6041
6042
6043   test -n "$ac_ct_AR" && break
6044 done
6045
6046   if test "x$ac_ct_AR" = x; then
6047     AR="false"
6048   else
6049     case $cross_compiling:$ac_tool_warned in
6050 yes:)
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6053 ac_tool_warned=yes ;;
6054 esac
6055     AR=$ac_ct_AR
6056   fi
6057 fi
6058
6059 : ${AR=ar}
6060 : ${AR_FLAGS=cru}
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6073 $as_echo_n "checking for archiver @FILE support... " >&6; }
6074 if ${lt_cv_ar_at_file+:} false; then :
6075   $as_echo_n "(cached) " >&6
6076 else
6077   lt_cv_ar_at_file=no
6078    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h.  */
6080
6081 int
6082 main ()
6083 {
6084
6085   ;
6086   return 0;
6087 }
6088 _ACEOF
6089 if ac_fn_c_try_compile "$LINENO"; then :
6090   echo conftest.$ac_objext > conftest.lst
6091       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6092       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6093   (eval $lt_ar_try) 2>&5
6094   ac_status=$?
6095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096   test $ac_status = 0; }
6097       if test "$ac_status" -eq 0; then
6098         # Ensure the archiver fails upon bogus file names.
6099         rm -f conftest.$ac_objext libconftest.a
6100         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6101   (eval $lt_ar_try) 2>&5
6102   ac_status=$?
6103   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6104   test $ac_status = 0; }
6105         if test "$ac_status" -ne 0; then
6106           lt_cv_ar_at_file=@
6107         fi
6108       fi
6109       rm -f conftest.* libconftest.a
6110
6111 fi
6112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113
6114 fi
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6116 $as_echo "$lt_cv_ar_at_file" >&6; }
6117
6118 if test "x$lt_cv_ar_at_file" = xno; then
6119   archiver_list_spec=
6120 else
6121   archiver_list_spec=$lt_cv_ar_at_file
6122 fi
6123
6124
6125
6126
6127
6128
6129
6130 if test -n "$ac_tool_prefix"; then
6131   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6132 set dummy ${ac_tool_prefix}strip; ac_word=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if ${ac_cv_prog_STRIP+:} false; then :
6136   $as_echo_n "(cached) " >&6
6137 else
6138   if test -n "$STRIP"; then
6139   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6143 do
6144   IFS=$as_save_IFS
6145   test -z "$as_dir" && as_dir=.
6146     for ac_exec_ext in '' $ac_executable_extensions; do
6147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150     break 2
6151   fi
6152 done
6153   done
6154 IFS=$as_save_IFS
6155
6156 fi
6157 fi
6158 STRIP=$ac_cv_prog_STRIP
6159 if test -n "$STRIP"; then
6160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6161 $as_echo "$STRIP" >&6; }
6162 else
6163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6165 fi
6166
6167
6168 fi
6169 if test -z "$ac_cv_prog_STRIP"; then
6170   ac_ct_STRIP=$STRIP
6171   # Extract the first word of "strip", so it can be a program name with args.
6172 set dummy strip; ac_word=$2
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174 $as_echo_n "checking for $ac_word... " >&6; }
6175 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6176   $as_echo_n "(cached) " >&6
6177 else
6178   if test -n "$ac_ct_STRIP"; then
6179   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6183 do
6184   IFS=$as_save_IFS
6185   test -z "$as_dir" && as_dir=.
6186     for ac_exec_ext in '' $ac_executable_extensions; do
6187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6188     ac_cv_prog_ac_ct_STRIP="strip"
6189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6190     break 2
6191   fi
6192 done
6193   done
6194 IFS=$as_save_IFS
6195
6196 fi
6197 fi
6198 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6199 if test -n "$ac_ct_STRIP"; then
6200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6201 $as_echo "$ac_ct_STRIP" >&6; }
6202 else
6203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6205 fi
6206
6207   if test "x$ac_ct_STRIP" = x; then
6208     STRIP=":"
6209   else
6210     case $cross_compiling:$ac_tool_warned in
6211 yes:)
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6214 ac_tool_warned=yes ;;
6215 esac
6216     STRIP=$ac_ct_STRIP
6217   fi
6218 else
6219   STRIP="$ac_cv_prog_STRIP"
6220 fi
6221
6222 test -z "$STRIP" && STRIP=:
6223
6224
6225
6226
6227
6228
6229 if test -n "$ac_tool_prefix"; then
6230   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6231 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233 $as_echo_n "checking for $ac_word... " >&6; }
6234 if ${ac_cv_prog_RANLIB+:} false; then :
6235   $as_echo_n "(cached) " >&6
6236 else
6237   if test -n "$RANLIB"; then
6238   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245     for ac_exec_ext in '' $ac_executable_extensions; do
6246   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6247     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252   done
6253 IFS=$as_save_IFS
6254
6255 fi
6256 fi
6257 RANLIB=$ac_cv_prog_RANLIB
6258 if test -n "$RANLIB"; then
6259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6260 $as_echo "$RANLIB" >&6; }
6261 else
6262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6264 fi
6265
6266
6267 fi
6268 if test -z "$ac_cv_prog_RANLIB"; then
6269   ac_ct_RANLIB=$RANLIB
6270   # Extract the first word of "ranlib", so it can be a program name with args.
6271 set dummy ranlib; ac_word=$2
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273 $as_echo_n "checking for $ac_word... " >&6; }
6274 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6275   $as_echo_n "(cached) " >&6
6276 else
6277   if test -n "$ac_ct_RANLIB"; then
6278   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283   IFS=$as_save_IFS
6284   test -z "$as_dir" && as_dir=.
6285     for ac_exec_ext in '' $ac_executable_extensions; do
6286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6287     ac_cv_prog_ac_ct_RANLIB="ranlib"
6288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6289     break 2
6290   fi
6291 done
6292   done
6293 IFS=$as_save_IFS
6294
6295 fi
6296 fi
6297 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6298 if test -n "$ac_ct_RANLIB"; then
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6300 $as_echo "$ac_ct_RANLIB" >&6; }
6301 else
6302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303 $as_echo "no" >&6; }
6304 fi
6305
6306   if test "x$ac_ct_RANLIB" = x; then
6307     RANLIB=":"
6308   else
6309     case $cross_compiling:$ac_tool_warned in
6310 yes:)
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6313 ac_tool_warned=yes ;;
6314 esac
6315     RANLIB=$ac_ct_RANLIB
6316   fi
6317 else
6318   RANLIB="$ac_cv_prog_RANLIB"
6319 fi
6320
6321 test -z "$RANLIB" && RANLIB=:
6322
6323
6324
6325
6326
6327
6328 # Determine commands to create old-style static archives.
6329 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6330 old_postinstall_cmds='chmod 644 $oldlib'
6331 old_postuninstall_cmds=
6332
6333 if test -n "$RANLIB"; then
6334   case $host_os in
6335   openbsd*)
6336     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6337     ;;
6338   *)
6339     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6340     ;;
6341   esac
6342   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6343 fi
6344
6345 case $host_os in
6346   darwin*)
6347     lock_old_archive_extraction=yes ;;
6348   *)
6349     lock_old_archive_extraction=no ;;
6350 esac
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390 # If no C compiler was specified, use CC.
6391 LTCC=${LTCC-"$CC"}
6392
6393 # If no C compiler flags were specified, use CFLAGS.
6394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6395
6396 # Allow CC to be a program name with arguments.
6397 compiler=$CC
6398
6399
6400 # Check for command to grab the raw symbol name followed by C symbol from nm.
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6402 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6403 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6404   $as_echo_n "(cached) " >&6
6405 else
6406
6407 # These are sane defaults that work on at least a few old systems.
6408 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6409
6410 # Character class describing NM global symbol codes.
6411 symcode='[BCDEGRST]'
6412
6413 # Regexp to match symbols that can be accessed directly from C.
6414 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6415
6416 # Define system-specific variables.
6417 case $host_os in
6418 aix*)
6419   symcode='[BCDT]'
6420   ;;
6421 cygwin* | mingw* | pw32* | cegcc*)
6422   symcode='[ABCDGISTW]'
6423   ;;
6424 hpux*)
6425   if test "$host_cpu" = ia64; then
6426     symcode='[ABCDEGRST]'
6427   fi
6428   ;;
6429 irix* | nonstopux*)
6430   symcode='[BCDEGRST]'
6431   ;;
6432 osf*)
6433   symcode='[BCDEGQRST]'
6434   ;;
6435 solaris*)
6436   symcode='[BDRT]'
6437   ;;
6438 sco3.2v5*)
6439   symcode='[DT]'
6440   ;;
6441 sysv4.2uw2*)
6442   symcode='[DT]'
6443   ;;
6444 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6445   symcode='[ABDT]'
6446   ;;
6447 sysv4)
6448   symcode='[DFNSTU]'
6449   ;;
6450 esac
6451
6452 # If we're using GNU nm, then use its standard symbol codes.
6453 case `$NM -V 2>&1` in
6454 *GNU* | *'with BFD'*)
6455   symcode='[ABCDGIRSTW]' ;;
6456 esac
6457
6458 # Transform an extracted symbol line into a proper C declaration.
6459 # Some systems (esp. on ia64) link data and code symbols differently,
6460 # so use this general approach.
6461 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6462
6463 # Transform an extracted symbol line into symbol name and symbol address
6464 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6465 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6466
6467 # Handle CRLF in mingw tool chain
6468 opt_cr=
6469 case $build_os in
6470 mingw*)
6471   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6472   ;;
6473 esac
6474
6475 # Try without a prefix underscore, then with it.
6476 for ac_symprfx in "" "_"; do
6477
6478   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6479   symxfrm="\\1 $ac_symprfx\\2 \\2"
6480
6481   # Write the raw and C identifiers.
6482   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6483     # Fake it for dumpbin and say T for any non-static function
6484     # and D for any global variable.
6485     # Also find C++ and __fastcall symbols from MSVC++,
6486     # which start with @ or ?.
6487     lt_cv_sys_global_symbol_pipe="$AWK '"\
6488 "     {last_section=section; section=\$ 3};"\
6489 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6490 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6491 "     \$ 0!~/External *\|/{next};"\
6492 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6493 "     {if(hide[section]) next};"\
6494 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6495 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6496 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6497 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6498 "     ' prfx=^$ac_symprfx"
6499   else
6500     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6501   fi
6502   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6503
6504   # Check to see that the pipe works correctly.
6505   pipe_works=no
6506
6507   rm -f conftest*
6508   cat > conftest.$ac_ext <<_LT_EOF
6509 #ifdef __cplusplus
6510 extern "C" {
6511 #endif
6512 char nm_test_var;
6513 void nm_test_func(void);
6514 void nm_test_func(void){}
6515 #ifdef __cplusplus
6516 }
6517 #endif
6518 int main(){nm_test_var='a';nm_test_func();return(0);}
6519 _LT_EOF
6520
6521   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6522   (eval $ac_compile) 2>&5
6523   ac_status=$?
6524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6525   test $ac_status = 0; }; then
6526     # Now try to grab the symbols.
6527     nlist=conftest.nm
6528     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6529   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6530   ac_status=$?
6531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6532   test $ac_status = 0; } && test -s "$nlist"; then
6533       # Try sorting and uniquifying the output.
6534       if sort "$nlist" | uniq > "$nlist"T; then
6535         mv -f "$nlist"T "$nlist"
6536       else
6537         rm -f "$nlist"T
6538       fi
6539
6540       # Make sure that we snagged all the symbols we need.
6541       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6542         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6543           cat <<_LT_EOF > conftest.$ac_ext
6544 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6545 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6546 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6547    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6548 # define LT_DLSYM_CONST
6549 #elif defined(__osf__)
6550 /* This system does not cope well with relocations in const data.  */
6551 # define LT_DLSYM_CONST
6552 #else
6553 # define LT_DLSYM_CONST const
6554 #endif
6555
6556 #ifdef __cplusplus
6557 extern "C" {
6558 #endif
6559
6560 _LT_EOF
6561           # Now generate the symbol file.
6562           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6563
6564           cat <<_LT_EOF >> conftest.$ac_ext
6565
6566 /* The mapping between symbol names and symbols.  */
6567 LT_DLSYM_CONST struct {
6568   const char *name;
6569   void       *address;
6570 }
6571 lt__PROGRAM__LTX_preloaded_symbols[] =
6572 {
6573   { "@PROGRAM@", (void *) 0 },
6574 _LT_EOF
6575           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6576           cat <<\_LT_EOF >> conftest.$ac_ext
6577   {0, (void *) 0}
6578 };
6579
6580 /* This works around a problem in FreeBSD linker */
6581 #ifdef FREEBSD_WORKAROUND
6582 static const void *lt_preloaded_setup() {
6583   return lt__PROGRAM__LTX_preloaded_symbols;
6584 }
6585 #endif
6586
6587 #ifdef __cplusplus
6588 }
6589 #endif
6590 _LT_EOF
6591           # Now try linking the two files.
6592           mv conftest.$ac_objext conftstm.$ac_objext
6593           lt_globsym_save_LIBS=$LIBS
6594           lt_globsym_save_CFLAGS=$CFLAGS
6595           LIBS="conftstm.$ac_objext"
6596           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6597           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6598   (eval $ac_link) 2>&5
6599   ac_status=$?
6600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6601   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6602             pipe_works=yes
6603           fi
6604           LIBS=$lt_globsym_save_LIBS
6605           CFLAGS=$lt_globsym_save_CFLAGS
6606         else
6607           echo "cannot find nm_test_func in $nlist" >&5
6608         fi
6609       else
6610         echo "cannot find nm_test_var in $nlist" >&5
6611       fi
6612     else
6613       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6614     fi
6615   else
6616     echo "$progname: failed program was:" >&5
6617     cat conftest.$ac_ext >&5
6618   fi
6619   rm -rf conftest* conftst*
6620
6621   # Do not use the global_symbol_pipe unless it works.
6622   if test "$pipe_works" = yes; then
6623     break
6624   else
6625     lt_cv_sys_global_symbol_pipe=
6626   fi
6627 done
6628
6629 fi
6630
6631 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6632   lt_cv_sys_global_symbol_to_cdecl=
6633 fi
6634 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6636 $as_echo "failed" >&6; }
6637 else
6638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6639 $as_echo "ok" >&6; }
6640 fi
6641
6642 # Response file support.
6643 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6644   nm_file_list_spec='@'
6645 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6646   nm_file_list_spec='@'
6647 fi
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6676 $as_echo_n "checking for sysroot... " >&6; }
6677
6678 # Check whether --with-sysroot was given.
6679 if test "${with_sysroot+set}" = set; then :
6680   withval=$with_sysroot;
6681 else
6682   with_sysroot=no
6683 fi
6684
6685
6686 lt_sysroot=
6687 case ${with_sysroot} in #(
6688  yes)
6689    if test "$GCC" = yes; then
6690      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6691    fi
6692    ;; #(
6693  /*)
6694    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6695    ;; #(
6696  no|'')
6697    ;; #(
6698  *)
6699    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6700 $as_echo "${with_sysroot}" >&6; }
6701    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6702    ;;
6703 esac
6704
6705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6706 $as_echo "${lt_sysroot:-no}" >&6; }
6707
6708
6709
6710
6711
6712 # Check whether --enable-libtool-lock was given.
6713 if test "${enable_libtool_lock+set}" = set; then :
6714   enableval=$enable_libtool_lock;
6715 fi
6716
6717 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6718
6719 # Some flags need to be propagated to the compiler or linker for good
6720 # libtool support.
6721 case $host in
6722 ia64-*-hpux*)
6723   # Find out which ABI we are using.
6724   echo 'int i;' > conftest.$ac_ext
6725   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6726   (eval $ac_compile) 2>&5
6727   ac_status=$?
6728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6729   test $ac_status = 0; }; then
6730     case `/usr/bin/file conftest.$ac_objext` in
6731       *ELF-32*)
6732         HPUX_IA64_MODE="32"
6733         ;;
6734       *ELF-64*)
6735         HPUX_IA64_MODE="64"
6736         ;;
6737     esac
6738   fi
6739   rm -rf conftest*
6740   ;;
6741 *-*-irix6*)
6742   # Find out which ABI we are using.
6743   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6744   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6745   (eval $ac_compile) 2>&5
6746   ac_status=$?
6747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6748   test $ac_status = 0; }; then
6749     if test "$lt_cv_prog_gnu_ld" = yes; then
6750       case `/usr/bin/file conftest.$ac_objext` in
6751         *32-bit*)
6752           LD="${LD-ld} -melf32bsmip"
6753           ;;
6754         *N32*)
6755           LD="${LD-ld} -melf32bmipn32"
6756           ;;
6757         *64-bit*)
6758           LD="${LD-ld} -melf64bmip"
6759         ;;
6760       esac
6761     else
6762       case `/usr/bin/file conftest.$ac_objext` in
6763         *32-bit*)
6764           LD="${LD-ld} -32"
6765           ;;
6766         *N32*)
6767           LD="${LD-ld} -n32"
6768           ;;
6769         *64-bit*)
6770           LD="${LD-ld} -64"
6771           ;;
6772       esac
6773     fi
6774   fi
6775   rm -rf conftest*
6776   ;;
6777
6778 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6779 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6780   # Find out which ABI we are using.
6781   echo 'int i;' > conftest.$ac_ext
6782   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6783   (eval $ac_compile) 2>&5
6784   ac_status=$?
6785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6786   test $ac_status = 0; }; then
6787     case `/usr/bin/file conftest.o` in
6788       *32-bit*)
6789         case $host in
6790           x86_64-*kfreebsd*-gnu)
6791             LD="${LD-ld} -m elf_i386_fbsd"
6792             ;;
6793           x86_64-*linux*)
6794             LD="${LD-ld} -m elf_i386"
6795             ;;
6796           ppc64-*linux*|powerpc64-*linux*)
6797             LD="${LD-ld} -m elf32ppclinux"
6798             ;;
6799           s390x-*linux*)
6800             LD="${LD-ld} -m elf_s390"
6801             ;;
6802           sparc64-*linux*)
6803             LD="${LD-ld} -m elf32_sparc"
6804             ;;
6805         esac
6806         ;;
6807       *64-bit*)
6808         case $host in
6809           x86_64-*kfreebsd*-gnu)
6810             LD="${LD-ld} -m elf_x86_64_fbsd"
6811             ;;
6812           x86_64-*linux*)
6813             LD="${LD-ld} -m elf_x86_64"
6814             ;;
6815           ppc*-*linux*|powerpc*-*linux*)
6816             LD="${LD-ld} -m elf64ppc"
6817             ;;
6818           s390*-*linux*|s390*-*tpf*)
6819             LD="${LD-ld} -m elf64_s390"
6820             ;;
6821           sparc*-*linux*)
6822             LD="${LD-ld} -m elf64_sparc"
6823             ;;
6824         esac
6825         ;;
6826     esac
6827   fi
6828   rm -rf conftest*
6829   ;;
6830
6831 *-*-sco3.2v5*)
6832   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6833   SAVE_CFLAGS="$CFLAGS"
6834   CFLAGS="$CFLAGS -belf"
6835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6836 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6837 if ${lt_cv_cc_needs_belf+:} false; then :
6838   $as_echo_n "(cached) " >&6
6839 else
6840   ac_ext=c
6841 ac_cpp='$CPP $CPPFLAGS'
6842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6845
6846      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h.  */
6848
6849 int
6850 main ()
6851 {
6852
6853   ;
6854   return 0;
6855 }
6856 _ACEOF
6857 if ac_fn_c_try_link "$LINENO"; then :
6858   lt_cv_cc_needs_belf=yes
6859 else
6860   lt_cv_cc_needs_belf=no
6861 fi
6862 rm -f core conftest.err conftest.$ac_objext \
6863     conftest$ac_exeext conftest.$ac_ext
6864      ac_ext=c
6865 ac_cpp='$CPP $CPPFLAGS'
6866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6869
6870 fi
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6872 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6873   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6874     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6875     CFLAGS="$SAVE_CFLAGS"
6876   fi
6877   ;;
6878 *-*solaris*)
6879   # Find out which ABI we are using.
6880   echo 'int i;' > conftest.$ac_ext
6881   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6882   (eval $ac_compile) 2>&5
6883   ac_status=$?
6884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6885   test $ac_status = 0; }; then
6886     case `/usr/bin/file conftest.o` in
6887     *64-bit*)
6888       case $lt_cv_prog_gnu_ld in
6889       yes*)
6890         case $host in
6891         i?86-*-solaris*)
6892           LD="${LD-ld} -m elf_x86_64"
6893           ;;
6894         sparc*-*-solaris*)
6895           LD="${LD-ld} -m elf64_sparc"
6896           ;;
6897         esac
6898         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6899         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6900           LD="${LD-ld}_sol2"
6901         fi
6902         ;;
6903       *)
6904         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6905           LD="${LD-ld} -64"
6906         fi
6907         ;;
6908       esac
6909       ;;
6910     esac
6911   fi
6912   rm -rf conftest*
6913   ;;
6914 esac
6915
6916 need_locks="$enable_libtool_lock"
6917
6918 if test -n "$ac_tool_prefix"; then
6919   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6920 set dummy ${ac_tool_prefix}mt; ac_word=$2
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 $as_echo_n "checking for $ac_word... " >&6; }
6923 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6924   $as_echo_n "(cached) " >&6
6925 else
6926   if test -n "$MANIFEST_TOOL"; then
6927   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6928 else
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6931 do
6932   IFS=$as_save_IFS
6933   test -z "$as_dir" && as_dir=.
6934     for ac_exec_ext in '' $ac_executable_extensions; do
6935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6936     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938     break 2
6939   fi
6940 done
6941   done
6942 IFS=$as_save_IFS
6943
6944 fi
6945 fi
6946 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6947 if test -n "$MANIFEST_TOOL"; then
6948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6949 $as_echo "$MANIFEST_TOOL" >&6; }
6950 else
6951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6953 fi
6954
6955
6956 fi
6957 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6958   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6959   # Extract the first word of "mt", so it can be a program name with args.
6960 set dummy mt; ac_word=$2
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962 $as_echo_n "checking for $ac_word... " >&6; }
6963 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6964   $as_echo_n "(cached) " >&6
6965 else
6966   if test -n "$ac_ct_MANIFEST_TOOL"; then
6967   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6968 else
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 for as_dir in $PATH
6971 do
6972   IFS=$as_save_IFS
6973   test -z "$as_dir" && as_dir=.
6974     for ac_exec_ext in '' $ac_executable_extensions; do
6975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6976     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6978     break 2
6979   fi
6980 done
6981   done
6982 IFS=$as_save_IFS
6983
6984 fi
6985 fi
6986 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6987 if test -n "$ac_ct_MANIFEST_TOOL"; then
6988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6989 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6990 else
6991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992 $as_echo "no" >&6; }
6993 fi
6994
6995   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6996     MANIFEST_TOOL=":"
6997   else
6998     case $cross_compiling:$ac_tool_warned in
6999 yes:)
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7002 ac_tool_warned=yes ;;
7003 esac
7004     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7005   fi
7006 else
7007   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7008 fi
7009
7010 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7012 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7013 if ${lt_cv_path_mainfest_tool+:} false; then :
7014   $as_echo_n "(cached) " >&6
7015 else
7016   lt_cv_path_mainfest_tool=no
7017   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7018   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7019   cat conftest.err >&5
7020   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7021     lt_cv_path_mainfest_tool=yes
7022   fi
7023   rm -f conftest*
7024 fi
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7026 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7027 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7028   MANIFEST_TOOL=:
7029 fi
7030
7031
7032
7033
7034
7035
7036   case $host_os in
7037     rhapsody* | darwin*)
7038     if test -n "$ac_tool_prefix"; then
7039   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7040 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042 $as_echo_n "checking for $ac_word... " >&6; }
7043 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7044   $as_echo_n "(cached) " >&6
7045 else
7046   if test -n "$DSYMUTIL"; then
7047   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7048 else
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7051 do
7052   IFS=$as_save_IFS
7053   test -z "$as_dir" && as_dir=.
7054     for ac_exec_ext in '' $ac_executable_extensions; do
7055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7056     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058     break 2
7059   fi
7060 done
7061   done
7062 IFS=$as_save_IFS
7063
7064 fi
7065 fi
7066 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7067 if test -n "$DSYMUTIL"; then
7068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7069 $as_echo "$DSYMUTIL" >&6; }
7070 else
7071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7073 fi
7074
7075
7076 fi
7077 if test -z "$ac_cv_prog_DSYMUTIL"; then
7078   ac_ct_DSYMUTIL=$DSYMUTIL
7079   # Extract the first word of "dsymutil", so it can be a program name with args.
7080 set dummy dsymutil; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7084   $as_echo_n "(cached) " >&6
7085 else
7086   if test -n "$ac_ct_DSYMUTIL"; then
7087   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094     for ac_exec_ext in '' $ac_executable_extensions; do
7095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101   done
7102 IFS=$as_save_IFS
7103
7104 fi
7105 fi
7106 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7107 if test -n "$ac_ct_DSYMUTIL"; then
7108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7109 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7110 else
7111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7113 fi
7114
7115   if test "x$ac_ct_DSYMUTIL" = x; then
7116     DSYMUTIL=":"
7117   else
7118     case $cross_compiling:$ac_tool_warned in
7119 yes:)
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7122 ac_tool_warned=yes ;;
7123 esac
7124     DSYMUTIL=$ac_ct_DSYMUTIL
7125   fi
7126 else
7127   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7128 fi
7129
7130     if test -n "$ac_tool_prefix"; then
7131   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7132 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134 $as_echo_n "checking for $ac_word... " >&6; }
7135 if ${ac_cv_prog_NMEDIT+:} false; then :
7136   $as_echo_n "(cached) " >&6
7137 else
7138   if test -n "$NMEDIT"; then
7139   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7140 else
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7143 do
7144   IFS=$as_save_IFS
7145   test -z "$as_dir" && as_dir=.
7146     for ac_exec_ext in '' $ac_executable_extensions; do
7147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150     break 2
7151   fi
7152 done
7153   done
7154 IFS=$as_save_IFS
7155
7156 fi
7157 fi
7158 NMEDIT=$ac_cv_prog_NMEDIT
7159 if test -n "$NMEDIT"; then
7160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7161 $as_echo "$NMEDIT" >&6; }
7162 else
7163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7165 fi
7166
7167
7168 fi
7169 if test -z "$ac_cv_prog_NMEDIT"; then
7170   ac_ct_NMEDIT=$NMEDIT
7171   # Extract the first word of "nmedit", so it can be a program name with args.
7172 set dummy nmedit; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7176   $as_echo_n "(cached) " >&6
7177 else
7178   if test -n "$ac_ct_NMEDIT"; then
7179   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7180 else
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7183 do
7184   IFS=$as_save_IFS
7185   test -z "$as_dir" && as_dir=.
7186     for ac_exec_ext in '' $ac_executable_extensions; do
7187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190     break 2
7191   fi
7192 done
7193   done
7194 IFS=$as_save_IFS
7195
7196 fi
7197 fi
7198 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7199 if test -n "$ac_ct_NMEDIT"; then
7200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7201 $as_echo "$ac_ct_NMEDIT" >&6; }
7202 else
7203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 $as_echo "no" >&6; }
7205 fi
7206
7207   if test "x$ac_ct_NMEDIT" = x; then
7208     NMEDIT=":"
7209   else
7210     case $cross_compiling:$ac_tool_warned in
7211 yes:)
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7214 ac_tool_warned=yes ;;
7215 esac
7216     NMEDIT=$ac_ct_NMEDIT
7217   fi
7218 else
7219   NMEDIT="$ac_cv_prog_NMEDIT"
7220 fi
7221
7222     if test -n "$ac_tool_prefix"; then
7223   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7224 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226 $as_echo_n "checking for $ac_word... " >&6; }
7227 if ${ac_cv_prog_LIPO+:} false; then :
7228   $as_echo_n "(cached) " >&6
7229 else
7230   if test -n "$LIPO"; then
7231   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7232 else
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236   IFS=$as_save_IFS
7237   test -z "$as_dir" && as_dir=.
7238     for ac_exec_ext in '' $ac_executable_extensions; do
7239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7240     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242     break 2
7243   fi
7244 done
7245   done
7246 IFS=$as_save_IFS
7247
7248 fi
7249 fi
7250 LIPO=$ac_cv_prog_LIPO
7251 if test -n "$LIPO"; then
7252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7253 $as_echo "$LIPO" >&6; }
7254 else
7255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 $as_echo "no" >&6; }
7257 fi
7258
7259
7260 fi
7261 if test -z "$ac_cv_prog_LIPO"; then
7262   ac_ct_LIPO=$LIPO
7263   # Extract the first word of "lipo", so it can be a program name with args.
7264 set dummy lipo; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7268   $as_echo_n "(cached) " >&6
7269 else
7270   if test -n "$ac_ct_LIPO"; then
7271   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7272 else
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276   IFS=$as_save_IFS
7277   test -z "$as_dir" && as_dir=.
7278     for ac_exec_ext in '' $ac_executable_extensions; do
7279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280     ac_cv_prog_ac_ct_LIPO="lipo"
7281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282     break 2
7283   fi
7284 done
7285   done
7286 IFS=$as_save_IFS
7287
7288 fi
7289 fi
7290 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7291 if test -n "$ac_ct_LIPO"; then
7292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7293 $as_echo "$ac_ct_LIPO" >&6; }
7294 else
7295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7297 fi
7298
7299   if test "x$ac_ct_LIPO" = x; then
7300     LIPO=":"
7301   else
7302     case $cross_compiling:$ac_tool_warned in
7303 yes:)
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7306 ac_tool_warned=yes ;;
7307 esac
7308     LIPO=$ac_ct_LIPO
7309   fi
7310 else
7311   LIPO="$ac_cv_prog_LIPO"
7312 fi
7313
7314     if test -n "$ac_tool_prefix"; then
7315   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7316 set dummy ${ac_tool_prefix}otool; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if ${ac_cv_prog_OTOOL+:} false; then :
7320   $as_echo_n "(cached) " >&6
7321 else
7322   if test -n "$OTOOL"; then
7323   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328   IFS=$as_save_IFS
7329   test -z "$as_dir" && as_dir=.
7330     for ac_exec_ext in '' $ac_executable_extensions; do
7331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334     break 2
7335   fi
7336 done
7337   done
7338 IFS=$as_save_IFS
7339
7340 fi
7341 fi
7342 OTOOL=$ac_cv_prog_OTOOL
7343 if test -n "$OTOOL"; then
7344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7345 $as_echo "$OTOOL" >&6; }
7346 else
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7349 fi
7350
7351
7352 fi
7353 if test -z "$ac_cv_prog_OTOOL"; then
7354   ac_ct_OTOOL=$OTOOL
7355   # Extract the first word of "otool", so it can be a program name with args.
7356 set dummy otool; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7360   $as_echo_n "(cached) " >&6
7361 else
7362   if test -n "$ac_ct_OTOOL"; then
7363   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368   IFS=$as_save_IFS
7369   test -z "$as_dir" && as_dir=.
7370     for ac_exec_ext in '' $ac_executable_extensions; do
7371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7372     ac_cv_prog_ac_ct_OTOOL="otool"
7373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374     break 2
7375   fi
7376 done
7377   done
7378 IFS=$as_save_IFS
7379
7380 fi
7381 fi
7382 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7383 if test -n "$ac_ct_OTOOL"; then
7384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7385 $as_echo "$ac_ct_OTOOL" >&6; }
7386 else
7387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 fi
7390
7391   if test "x$ac_ct_OTOOL" = x; then
7392     OTOOL=":"
7393   else
7394     case $cross_compiling:$ac_tool_warned in
7395 yes:)
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398 ac_tool_warned=yes ;;
7399 esac
7400     OTOOL=$ac_ct_OTOOL
7401   fi
7402 else
7403   OTOOL="$ac_cv_prog_OTOOL"
7404 fi
7405
7406     if test -n "$ac_tool_prefix"; then
7407   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7408 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if ${ac_cv_prog_OTOOL64+:} false; then :
7412   $as_echo_n "(cached) " >&6
7413 else
7414   if test -n "$OTOOL64"; then
7415   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7419 do
7420   IFS=$as_save_IFS
7421   test -z "$as_dir" && as_dir=.
7422     for ac_exec_ext in '' $ac_executable_extensions; do
7423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7424     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426     break 2
7427   fi
7428 done
7429   done
7430 IFS=$as_save_IFS
7431
7432 fi
7433 fi
7434 OTOOL64=$ac_cv_prog_OTOOL64
7435 if test -n "$OTOOL64"; then
7436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7437 $as_echo "$OTOOL64" >&6; }
7438 else
7439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7441 fi
7442
7443
7444 fi
7445 if test -z "$ac_cv_prog_OTOOL64"; then
7446   ac_ct_OTOOL64=$OTOOL64
7447   # Extract the first word of "otool64", so it can be a program name with args.
7448 set dummy otool64; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7452   $as_echo_n "(cached) " >&6
7453 else
7454   if test -n "$ac_ct_OTOOL64"; then
7455   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460   IFS=$as_save_IFS
7461   test -z "$as_dir" && as_dir=.
7462     for ac_exec_ext in '' $ac_executable_extensions; do
7463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464     ac_cv_prog_ac_ct_OTOOL64="otool64"
7465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466     break 2
7467   fi
7468 done
7469   done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7475 if test -n "$ac_ct_OTOOL64"; then
7476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7477 $as_echo "$ac_ct_OTOOL64" >&6; }
7478 else
7479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7481 fi
7482
7483   if test "x$ac_ct_OTOOL64" = x; then
7484     OTOOL64=":"
7485   else
7486     case $cross_compiling:$ac_tool_warned in
7487 yes:)
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7490 ac_tool_warned=yes ;;
7491 esac
7492     OTOOL64=$ac_ct_OTOOL64
7493   fi
7494 else
7495   OTOOL64="$ac_cv_prog_OTOOL64"
7496 fi
7497
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7525 $as_echo_n "checking for -single_module linker flag... " >&6; }
7526 if ${lt_cv_apple_cc_single_mod+:} false; then :
7527   $as_echo_n "(cached) " >&6
7528 else
7529   lt_cv_apple_cc_single_mod=no
7530       if test -z "${LT_MULTI_MODULE}"; then
7531         # By default we will add the -single_module flag. You can override
7532         # by either setting the environment variable LT_MULTI_MODULE
7533         # non-empty at configure time, or by adding -multi_module to the
7534         # link flags.
7535         rm -rf libconftest.dylib*
7536         echo "int foo(void){return 1;}" > conftest.c
7537         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7538 -dynamiclib -Wl,-single_module conftest.c" >&5
7539         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7540           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7541         _lt_result=$?
7542         # If there is a non-empty error log, and "single_module"
7543         # appears in it, assume the flag caused a linker warning
7544         if test -s conftest.err && $GREP single_module conftest.err; then
7545           cat conftest.err >&5
7546         # Otherwise, if the output was created with a 0 exit code from
7547         # the compiler, it worked.
7548         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7549           lt_cv_apple_cc_single_mod=yes
7550         else
7551           cat conftest.err >&5
7552         fi
7553         rm -rf libconftest.dylib*
7554         rm -f conftest.*
7555       fi
7556 fi
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7558 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7559
7560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7561 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7562 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7563   $as_echo_n "(cached) " >&6
7564 else
7565   lt_cv_ld_exported_symbols_list=no
7566       save_LDFLAGS=$LDFLAGS
7567       echo "_main" > conftest.sym
7568       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7569       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h.  */
7571
7572 int
7573 main ()
7574 {
7575
7576   ;
7577   return 0;
7578 }
7579 _ACEOF
7580 if ac_fn_c_try_link "$LINENO"; then :
7581   lt_cv_ld_exported_symbols_list=yes
7582 else
7583   lt_cv_ld_exported_symbols_list=no
7584 fi
7585 rm -f core conftest.err conftest.$ac_objext \
7586     conftest$ac_exeext conftest.$ac_ext
7587         LDFLAGS="$save_LDFLAGS"
7588
7589 fi
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7591 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7592
7593     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7594 $as_echo_n "checking for -force_load linker flag... " >&6; }
7595 if ${lt_cv_ld_force_load+:} false; then :
7596   $as_echo_n "(cached) " >&6
7597 else
7598   lt_cv_ld_force_load=no
7599       cat > conftest.c << _LT_EOF
7600 int forced_loaded() { return 2;}
7601 _LT_EOF
7602       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7603       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7604       echo "$AR cru libconftest.a conftest.o" >&5
7605       $AR cru libconftest.a conftest.o 2>&5
7606       echo "$RANLIB libconftest.a" >&5
7607       $RANLIB libconftest.a 2>&5
7608       cat > conftest.c << _LT_EOF
7609 int main() { return 0;}
7610 _LT_EOF
7611       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7612       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7613       _lt_result=$?
7614       if test -s conftest.err && $GREP force_load conftest.err; then
7615         cat conftest.err >&5
7616       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7617         lt_cv_ld_force_load=yes
7618       else
7619         cat conftest.err >&5
7620       fi
7621         rm -f conftest.err libconftest.a conftest conftest.c
7622         rm -rf conftest.dSYM
7623
7624 fi
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7626 $as_echo "$lt_cv_ld_force_load" >&6; }
7627     case $host_os in
7628     rhapsody* | darwin1.[012])
7629       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7630     darwin1.*)
7631       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7632     darwin*) # darwin 5.x on
7633       # if running on 10.5 or later, the deployment target defaults
7634       # to the OS version, if on x86, and 10.4, the deployment
7635       # target defaults to 10.4. Don't you love it?
7636       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7637         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7638           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7639         10.[012]*)
7640           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7641         10.*)
7642           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7643       esac
7644     ;;
7645   esac
7646     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7647       _lt_dar_single_mod='$single_module'
7648     fi
7649     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7650       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7651     else
7652       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7653     fi
7654     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7655       _lt_dsymutil='~$DSYMUTIL $lib || :'
7656     else
7657       _lt_dsymutil=
7658     fi
7659     ;;
7660   esac
7661
7662 ac_ext=c
7663 ac_cpp='$CPP $CPPFLAGS'
7664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7668 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7669 # On Suns, sometimes $CPP names a directory.
7670 if test -n "$CPP" && test -d "$CPP"; then
7671   CPP=
7672 fi
7673 if test -z "$CPP"; then
7674   if ${ac_cv_prog_CPP+:} false; then :
7675   $as_echo_n "(cached) " >&6
7676 else
7677       # Double quotes because CPP needs to be expanded
7678     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7679     do
7680       ac_preproc_ok=false
7681 for ac_c_preproc_warn_flag in '' yes
7682 do
7683   # Use a header file that comes with gcc, so configuring glibc
7684   # with a fresh cross-compiler works.
7685   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7686   # <limits.h> exists even on freestanding compilers.
7687   # On the NeXT, cc -E runs the code through the compiler's parser,
7688   # not just through cpp. "Syntax error" is here to catch this case.
7689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h.  */
7691 #ifdef __STDC__
7692 # include <limits.h>
7693 #else
7694 # include <assert.h>
7695 #endif
7696                      Syntax error
7697 _ACEOF
7698 if ac_fn_c_try_cpp "$LINENO"; then :
7699
7700 else
7701   # Broken: fails on valid input.
7702 continue
7703 fi
7704 rm -f conftest.err conftest.i conftest.$ac_ext
7705
7706   # OK, works on sane cases.  Now check whether nonexistent headers
7707   # can be detected and how.
7708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h.  */
7710 #include <ac_nonexistent.h>
7711 _ACEOF
7712 if ac_fn_c_try_cpp "$LINENO"; then :
7713   # Broken: success on invalid input.
7714 continue
7715 else
7716   # Passes both tests.
7717 ac_preproc_ok=:
7718 break
7719 fi
7720 rm -f conftest.err conftest.i conftest.$ac_ext
7721
7722 done
7723 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7724 rm -f conftest.i conftest.err conftest.$ac_ext
7725 if $ac_preproc_ok; then :
7726   break
7727 fi
7728
7729     done
7730     ac_cv_prog_CPP=$CPP
7731
7732 fi
7733   CPP=$ac_cv_prog_CPP
7734 else
7735   ac_cv_prog_CPP=$CPP
7736 fi
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7738 $as_echo "$CPP" >&6; }
7739 ac_preproc_ok=false
7740 for ac_c_preproc_warn_flag in '' yes
7741 do
7742   # Use a header file that comes with gcc, so configuring glibc
7743   # with a fresh cross-compiler works.
7744   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7745   # <limits.h> exists even on freestanding compilers.
7746   # On the NeXT, cc -E runs the code through the compiler's parser,
7747   # not just through cpp. "Syntax error" is here to catch this case.
7748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h.  */
7750 #ifdef __STDC__
7751 # include <limits.h>
7752 #else
7753 # include <assert.h>
7754 #endif
7755                      Syntax error
7756 _ACEOF
7757 if ac_fn_c_try_cpp "$LINENO"; then :
7758
7759 else
7760   # Broken: fails on valid input.
7761 continue
7762 fi
7763 rm -f conftest.err conftest.i conftest.$ac_ext
7764
7765   # OK, works on sane cases.  Now check whether nonexistent headers
7766   # can be detected and how.
7767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768 /* end confdefs.h.  */
7769 #include <ac_nonexistent.h>
7770 _ACEOF
7771 if ac_fn_c_try_cpp "$LINENO"; then :
7772   # Broken: success on invalid input.
7773 continue
7774 else
7775   # Passes both tests.
7776 ac_preproc_ok=:
7777 break
7778 fi
7779 rm -f conftest.err conftest.i conftest.$ac_ext
7780
7781 done
7782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7783 rm -f conftest.i conftest.err conftest.$ac_ext
7784 if $ac_preproc_ok; then :
7785
7786 else
7787   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7789 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7790 See \`config.log' for more details" "$LINENO" 5; }
7791 fi
7792
7793 ac_ext=c
7794 ac_cpp='$CPP $CPPFLAGS'
7795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7798
7799
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7801 $as_echo_n "checking for ANSI C header files... " >&6; }
7802 if ${ac_cv_header_stdc+:} false; then :
7803   $as_echo_n "(cached) " >&6
7804 else
7805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h.  */
7807 #include <stdlib.h>
7808 #include <stdarg.h>
7809 #include <string.h>
7810 #include <float.h>
7811
7812 int
7813 main ()
7814 {
7815
7816   ;
7817   return 0;
7818 }
7819 _ACEOF
7820 if ac_fn_c_try_compile "$LINENO"; then :
7821   ac_cv_header_stdc=yes
7822 else
7823   ac_cv_header_stdc=no
7824 fi
7825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826
7827 if test $ac_cv_header_stdc = yes; then
7828   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h.  */
7831 #include <string.h>
7832
7833 _ACEOF
7834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7835   $EGREP "memchr" >/dev/null 2>&1; then :
7836
7837 else
7838   ac_cv_header_stdc=no
7839 fi
7840 rm -f conftest*
7841
7842 fi
7843
7844 if test $ac_cv_header_stdc = yes; then
7845   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h.  */
7848 #include <stdlib.h>
7849
7850 _ACEOF
7851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7852   $EGREP "free" >/dev/null 2>&1; then :
7853
7854 else
7855   ac_cv_header_stdc=no
7856 fi
7857 rm -f conftest*
7858
7859 fi
7860
7861 if test $ac_cv_header_stdc = yes; then
7862   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7863   if test "$cross_compiling" = yes; then :
7864   :
7865 else
7866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h.  */
7868 #include <ctype.h>
7869 #include <stdlib.h>
7870 #if ((' ' & 0x0FF) == 0x020)
7871 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7872 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7873 #else
7874 # define ISLOWER(c) \
7875                    (('a' <= (c) && (c) <= 'i') \
7876                      || ('j' <= (c) && (c) <= 'r') \
7877                      || ('s' <= (c) && (c) <= 'z'))
7878 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7879 #endif
7880
7881 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7882 int
7883 main ()
7884 {
7885   int i;
7886   for (i = 0; i < 256; i++)
7887     if (XOR (islower (i), ISLOWER (i))
7888         || toupper (i) != TOUPPER (i))
7889       return 2;
7890   return 0;
7891 }
7892 _ACEOF
7893 if ac_fn_c_try_run "$LINENO"; then :
7894
7895 else
7896   ac_cv_header_stdc=no
7897 fi
7898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7899   conftest.$ac_objext conftest.beam conftest.$ac_ext
7900 fi
7901
7902 fi
7903 fi
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7905 $as_echo "$ac_cv_header_stdc" >&6; }
7906 if test $ac_cv_header_stdc = yes; then
7907
7908 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7909
7910 fi
7911
7912 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7913 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7914                   inttypes.h stdint.h unistd.h
7915 do :
7916   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7917 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7918 "
7919 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7920   cat >>confdefs.h <<_ACEOF
7921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7922 _ACEOF
7923
7924 fi
7925
7926 done
7927
7928
7929 for ac_header in dlfcn.h
7930 do :
7931   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7932 "
7933 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7934   cat >>confdefs.h <<_ACEOF
7935 #define HAVE_DLFCN_H 1
7936 _ACEOF
7937
7938 fi
7939
7940 done
7941
7942
7943
7944
7945 func_stripname_cnf ()
7946 {
7947   case ${2} in
7948   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7949   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7950   esac
7951 } # func_stripname_cnf
7952
7953
7954
7955
7956
7957 # Set options
7958
7959
7960
7961         enable_dlopen=no
7962
7963
7964   enable_win32_dll=no
7965
7966
7967             # Check whether --enable-shared was given.
7968 if test "${enable_shared+set}" = set; then :
7969   enableval=$enable_shared; p=${PACKAGE-default}
7970     case $enableval in
7971     yes) enable_shared=yes ;;
7972     no) enable_shared=no ;;
7973     *)
7974       enable_shared=no
7975       # Look at the argument we got.  We use all the common list separators.
7976       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7977       for pkg in $enableval; do
7978         IFS="$lt_save_ifs"
7979         if test "X$pkg" = "X$p"; then
7980           enable_shared=yes
7981         fi
7982       done
7983       IFS="$lt_save_ifs"
7984       ;;
7985     esac
7986 else
7987   enable_shared=yes
7988 fi
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998   # Check whether --enable-static was given.
7999 if test "${enable_static+set}" = set; then :
8000   enableval=$enable_static; p=${PACKAGE-default}
8001     case $enableval in
8002     yes) enable_static=yes ;;
8003     no) enable_static=no ;;
8004     *)
8005      enable_static=no
8006       # Look at the argument we got.  We use all the common list separators.
8007       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8008       for pkg in $enableval; do
8009         IFS="$lt_save_ifs"
8010         if test "X$pkg" = "X$p"; then
8011           enable_static=yes
8012         fi
8013       done
8014       IFS="$lt_save_ifs"
8015       ;;
8016     esac
8017 else
8018   enable_static=yes
8019 fi
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030 # Check whether --with-pic was given.
8031 if test "${with_pic+set}" = set; then :
8032   withval=$with_pic; lt_p=${PACKAGE-default}
8033     case $withval in
8034     yes|no) pic_mode=$withval ;;
8035     *)
8036       pic_mode=default
8037       # Look at the argument we got.  We use all the common list separators.
8038       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8039       for lt_pkg in $withval; do
8040         IFS="$lt_save_ifs"
8041         if test "X$lt_pkg" = "X$lt_p"; then
8042           pic_mode=yes
8043         fi
8044       done
8045       IFS="$lt_save_ifs"
8046       ;;
8047     esac
8048 else
8049   pic_mode=default
8050 fi
8051
8052
8053 test -z "$pic_mode" && pic_mode=default
8054
8055
8056
8057
8058
8059
8060
8061   # Check whether --enable-fast-install was given.
8062 if test "${enable_fast_install+set}" = set; then :
8063   enableval=$enable_fast_install; p=${PACKAGE-default}
8064     case $enableval in
8065     yes) enable_fast_install=yes ;;
8066     no) enable_fast_install=no ;;
8067     *)
8068       enable_fast_install=no
8069       # Look at the argument we got.  We use all the common list separators.
8070       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8071       for pkg in $enableval; do
8072         IFS="$lt_save_ifs"
8073         if test "X$pkg" = "X$p"; then
8074           enable_fast_install=yes
8075         fi
8076       done
8077       IFS="$lt_save_ifs"
8078       ;;
8079     esac
8080 else
8081   enable_fast_install=yes
8082 fi
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094 # This can be used to rebuild libtool when needed
8095 LIBTOOL_DEPS="$ltmain"
8096
8097 # Always use our own libtool.
8098 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129 test -z "$LN_S" && LN_S="ln -s"
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144 if test -n "${ZSH_VERSION+set}" ; then
8145    setopt NO_GLOB_SUBST
8146 fi
8147
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8149 $as_echo_n "checking for objdir... " >&6; }
8150 if ${lt_cv_objdir+:} false; then :
8151   $as_echo_n "(cached) " >&6
8152 else
8153   rm -f .libs 2>/dev/null
8154 mkdir .libs 2>/dev/null
8155 if test -d .libs; then
8156   lt_cv_objdir=.libs
8157 else
8158   # MS-DOS does not allow filenames that begin with a dot.
8159   lt_cv_objdir=_libs
8160 fi
8161 rmdir .libs 2>/dev/null
8162 fi
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8164 $as_echo "$lt_cv_objdir" >&6; }
8165 objdir=$lt_cv_objdir
8166
8167
8168
8169
8170
8171 cat >>confdefs.h <<_ACEOF
8172 #define LT_OBJDIR "$lt_cv_objdir/"
8173 _ACEOF
8174
8175
8176
8177
8178 case $host_os in
8179 aix3*)
8180   # AIX sometimes has problems with the GCC collect2 program.  For some
8181   # reason, if we set the COLLECT_NAMES environment variable, the problems
8182   # vanish in a puff of smoke.
8183   if test "X${COLLECT_NAMES+set}" != Xset; then
8184     COLLECT_NAMES=
8185     export COLLECT_NAMES
8186   fi
8187   ;;
8188 esac
8189
8190 # Global variables:
8191 ofile=libtool
8192 can_build_shared=yes
8193
8194 # All known linkers require a `.a' archive for static linking (except MSVC,
8195 # which needs '.lib').
8196 libext=a
8197
8198 with_gnu_ld="$lt_cv_prog_gnu_ld"
8199
8200 old_CC="$CC"
8201 old_CFLAGS="$CFLAGS"
8202
8203 # Set sane defaults for various variables
8204 test -z "$CC" && CC=cc
8205 test -z "$LTCC" && LTCC=$CC
8206 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8207 test -z "$LD" && LD=ld
8208 test -z "$ac_objext" && ac_objext=o
8209
8210 for cc_temp in $compiler""; do
8211   case $cc_temp in
8212     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8213     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8214     \-*) ;;
8215     *) break;;
8216   esac
8217 done
8218 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8219
8220
8221 # Only perform the check for file, if the check method requires it
8222 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8223 case $deplibs_check_method in
8224 file_magic*)
8225   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8227 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8228 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8229   $as_echo_n "(cached) " >&6
8230 else
8231   case $MAGIC_CMD in
8232 [\\/*] |  ?:[\\/]*)
8233   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8234   ;;
8235 *)
8236   lt_save_MAGIC_CMD="$MAGIC_CMD"
8237   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8238   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8239   for ac_dir in $ac_dummy; do
8240     IFS="$lt_save_ifs"
8241     test -z "$ac_dir" && ac_dir=.
8242     if test -f $ac_dir/${ac_tool_prefix}file; then
8243       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8244       if test -n "$file_magic_test_file"; then
8245         case $deplibs_check_method in
8246         "file_magic "*)
8247           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8248           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8249           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8250             $EGREP "$file_magic_regex" > /dev/null; then
8251             :
8252           else
8253             cat <<_LT_EOF 1>&2
8254
8255 *** Warning: the command libtool uses to detect shared libraries,
8256 *** $file_magic_cmd, produces output that libtool cannot recognize.
8257 *** The result is that libtool may fail to recognize shared libraries
8258 *** as such.  This will affect the creation of libtool libraries that
8259 *** depend on shared libraries, but programs linked with such libtool
8260 *** libraries will work regardless of this problem.  Nevertheless, you
8261 *** may want to report the problem to your system manager and/or to
8262 *** bug-libtool@gnu.org
8263
8264 _LT_EOF
8265           fi ;;
8266         esac
8267       fi
8268       break
8269     fi
8270   done
8271   IFS="$lt_save_ifs"
8272   MAGIC_CMD="$lt_save_MAGIC_CMD"
8273   ;;
8274 esac
8275 fi
8276
8277 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8278 if test -n "$MAGIC_CMD"; then
8279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8280 $as_echo "$MAGIC_CMD" >&6; }
8281 else
8282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 $as_echo "no" >&6; }
8284 fi
8285
8286
8287
8288
8289
8290 if test -z "$lt_cv_path_MAGIC_CMD"; then
8291   if test -n "$ac_tool_prefix"; then
8292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8293 $as_echo_n "checking for file... " >&6; }
8294 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8295   $as_echo_n "(cached) " >&6
8296 else
8297   case $MAGIC_CMD in
8298 [\\/*] |  ?:[\\/]*)
8299   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8300   ;;
8301 *)
8302   lt_save_MAGIC_CMD="$MAGIC_CMD"
8303   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8304   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8305   for ac_dir in $ac_dummy; do
8306     IFS="$lt_save_ifs"
8307     test -z "$ac_dir" && ac_dir=.
8308     if test -f $ac_dir/file; then
8309       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8310       if test -n "$file_magic_test_file"; then
8311         case $deplibs_check_method in
8312         "file_magic "*)
8313           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8314           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8315           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8316             $EGREP "$file_magic_regex" > /dev/null; then
8317             :
8318           else
8319             cat <<_LT_EOF 1>&2
8320
8321 *** Warning: the command libtool uses to detect shared libraries,
8322 *** $file_magic_cmd, produces output that libtool cannot recognize.
8323 *** The result is that libtool may fail to recognize shared libraries
8324 *** as such.  This will affect the creation of libtool libraries that
8325 *** depend on shared libraries, but programs linked with such libtool
8326 *** libraries will work regardless of this problem.  Nevertheless, you
8327 *** may want to report the problem to your system manager and/or to
8328 *** bug-libtool@gnu.org
8329
8330 _LT_EOF
8331           fi ;;
8332         esac
8333       fi
8334       break
8335     fi
8336   done
8337   IFS="$lt_save_ifs"
8338   MAGIC_CMD="$lt_save_MAGIC_CMD"
8339   ;;
8340 esac
8341 fi
8342
8343 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8344 if test -n "$MAGIC_CMD"; then
8345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8346 $as_echo "$MAGIC_CMD" >&6; }
8347 else
8348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349 $as_echo "no" >&6; }
8350 fi
8351
8352
8353   else
8354     MAGIC_CMD=:
8355   fi
8356 fi
8357
8358   fi
8359   ;;
8360 esac
8361
8362 # Use C for the default configuration in the libtool script
8363
8364 lt_save_CC="$CC"
8365 ac_ext=c
8366 ac_cpp='$CPP $CPPFLAGS'
8367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8370
8371
8372 # Source file extension for C test sources.
8373 ac_ext=c
8374
8375 # Object file extension for compiled C test sources.
8376 objext=o
8377 objext=$objext
8378
8379 # Code to be used in simple compile tests
8380 lt_simple_compile_test_code="int some_variable = 0;"
8381
8382 # Code to be used in simple link tests
8383 lt_simple_link_test_code='int main(){return(0);}'
8384
8385
8386
8387
8388
8389
8390
8391 # If no C compiler was specified, use CC.
8392 LTCC=${LTCC-"$CC"}
8393
8394 # If no C compiler flags were specified, use CFLAGS.
8395 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8396
8397 # Allow CC to be a program name with arguments.
8398 compiler=$CC
8399
8400 # Save the default compiler, since it gets overwritten when the other
8401 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8402 compiler_DEFAULT=$CC
8403
8404 # save warnings/boilerplate of simple test code
8405 ac_outfile=conftest.$ac_objext
8406 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8407 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8408 _lt_compiler_boilerplate=`cat conftest.err`
8409 $RM conftest*
8410
8411 ac_outfile=conftest.$ac_objext
8412 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8413 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8414 _lt_linker_boilerplate=`cat conftest.err`
8415 $RM -r conftest*
8416
8417
8418 ## CAVEAT EMPTOR:
8419 ## There is no encapsulation within the following macros, do not change
8420 ## the running order or otherwise move them around unless you know exactly
8421 ## what you are doing...
8422 if test -n "$compiler"; then
8423
8424 lt_prog_compiler_no_builtin_flag=
8425
8426 if test "$GCC" = yes; then
8427   case $cc_basename in
8428   nvcc*)
8429     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8430   *)
8431     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8432   esac
8433
8434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8435 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8436 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8437   $as_echo_n "(cached) " >&6
8438 else
8439   lt_cv_prog_compiler_rtti_exceptions=no
8440    ac_outfile=conftest.$ac_objext
8441    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8442    lt_compiler_flag="-fno-rtti -fno-exceptions"
8443    # Insert the option either (1) after the last *FLAGS variable, or
8444    # (2) before a word containing "conftest.", or (3) at the end.
8445    # Note that $ac_compile itself does not contain backslashes and begins
8446    # with a dollar sign (not a hyphen), so the echo should work correctly.
8447    # The option is referenced via a variable to avoid confusing sed.
8448    lt_compile=`echo "$ac_compile" | $SED \
8449    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8450    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8451    -e 's:$: $lt_compiler_flag:'`
8452    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8453    (eval "$lt_compile" 2>conftest.err)
8454    ac_status=$?
8455    cat conftest.err >&5
8456    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457    if (exit $ac_status) && test -s "$ac_outfile"; then
8458      # The compiler can only warn and ignore the option if not recognized
8459      # So say no if there are warnings other than the usual output.
8460      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8461      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8462      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8463        lt_cv_prog_compiler_rtti_exceptions=yes
8464      fi
8465    fi
8466    $RM conftest*
8467
8468 fi
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8470 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8471
8472 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8473     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8474 else
8475     :
8476 fi
8477
8478 fi
8479
8480
8481
8482
8483
8484
8485   lt_prog_compiler_wl=
8486 lt_prog_compiler_pic=
8487 lt_prog_compiler_static=
8488
8489
8490   if test "$GCC" = yes; then
8491     lt_prog_compiler_wl='-Wl,'
8492     lt_prog_compiler_static='-static'
8493
8494     case $host_os in
8495       aix*)
8496       # All AIX code is PIC.
8497       if test "$host_cpu" = ia64; then
8498         # AIX 5 now supports IA64 processor
8499         lt_prog_compiler_static='-Bstatic'
8500       fi
8501       ;;
8502
8503     amigaos*)
8504       case $host_cpu in
8505       powerpc)
8506             # see comment about AmigaOS4 .so support
8507             lt_prog_compiler_pic='-fPIC'
8508         ;;
8509       m68k)
8510             # FIXME: we need at least 68020 code to build shared libraries, but
8511             # adding the `-m68020' flag to GCC prevents building anything better,
8512             # like `-m68040'.
8513             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8514         ;;
8515       esac
8516       ;;
8517
8518     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8519       # PIC is the default for these OSes.
8520       ;;
8521
8522     mingw* | cygwin* | pw32* | os2* | cegcc*)
8523       # This hack is so that the source file can tell whether it is being
8524       # built for inclusion in a dll (and should export symbols for example).
8525       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8526       # (--disable-auto-import) libraries
8527       lt_prog_compiler_pic='-DDLL_EXPORT'
8528       ;;
8529
8530     darwin* | rhapsody*)
8531       # PIC is the default on this platform
8532       # Common symbols not allowed in MH_DYLIB files
8533       lt_prog_compiler_pic='-fno-common'
8534       ;;
8535
8536     haiku*)
8537       # PIC is the default for Haiku.
8538       # The "-static" flag exists, but is broken.
8539       lt_prog_compiler_static=
8540       ;;
8541
8542     hpux*)
8543       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8544       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8545       # sets the default TLS model and affects inlining.
8546       case $host_cpu in
8547       hppa*64*)
8548         # +Z the default
8549         ;;
8550       *)
8551         lt_prog_compiler_pic='-fPIC'
8552         ;;
8553       esac
8554       ;;
8555
8556     interix[3-9]*)
8557       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8558       # Instead, we relocate shared libraries at runtime.
8559       ;;
8560
8561     msdosdjgpp*)
8562       # Just because we use GCC doesn't mean we suddenly get shared libraries
8563       # on systems that don't support them.
8564       lt_prog_compiler_can_build_shared=no
8565       enable_shared=no
8566       ;;
8567
8568     *nto* | *qnx*)
8569       # QNX uses GNU C++, but need to define -shared option too, otherwise
8570       # it will coredump.
8571       lt_prog_compiler_pic='-fPIC -shared'
8572       ;;
8573
8574     sysv4*MP*)
8575       if test -d /usr/nec; then
8576         lt_prog_compiler_pic=-Kconform_pic
8577       fi
8578       ;;
8579
8580     *)
8581       lt_prog_compiler_pic='-fPIC'
8582       ;;
8583     esac
8584
8585     case $cc_basename in
8586     nvcc*) # Cuda Compiler Driver 2.2
8587       lt_prog_compiler_wl='-Xlinker '
8588       if test -n "$lt_prog_compiler_pic"; then
8589         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8590       fi
8591       ;;
8592     esac
8593   else
8594     # PORTME Check for flag to pass linker flags through the system compiler.
8595     case $host_os in
8596     aix*)
8597       lt_prog_compiler_wl='-Wl,'
8598       if test "$host_cpu" = ia64; then
8599         # AIX 5 now supports IA64 processor
8600         lt_prog_compiler_static='-Bstatic'
8601       else
8602         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8603       fi
8604       ;;
8605
8606     mingw* | cygwin* | pw32* | os2* | cegcc*)
8607       # This hack is so that the source file can tell whether it is being
8608       # built for inclusion in a dll (and should export symbols for example).
8609       lt_prog_compiler_pic='-DDLL_EXPORT'
8610       ;;
8611
8612     hpux9* | hpux10* | hpux11*)
8613       lt_prog_compiler_wl='-Wl,'
8614       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8615       # not for PA HP-UX.
8616       case $host_cpu in
8617       hppa*64*|ia64*)
8618         # +Z the default
8619         ;;
8620       *)
8621         lt_prog_compiler_pic='+Z'
8622         ;;
8623       esac
8624       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8625       lt_prog_compiler_static='${wl}-a ${wl}archive'
8626       ;;
8627
8628     irix5* | irix6* | nonstopux*)
8629       lt_prog_compiler_wl='-Wl,'
8630       # PIC (with -KPIC) is the default.
8631       lt_prog_compiler_static='-non_shared'
8632       ;;
8633
8634     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8635       case $cc_basename in
8636       # old Intel for x86_64 which still supported -KPIC.
8637       ecc*)
8638         lt_prog_compiler_wl='-Wl,'
8639         lt_prog_compiler_pic='-KPIC'
8640         lt_prog_compiler_static='-static'
8641         ;;
8642       # icc used to be incompatible with GCC.
8643       # ICC 10 doesn't accept -KPIC any more.
8644       icc* | ifort*)
8645         lt_prog_compiler_wl='-Wl,'
8646         lt_prog_compiler_pic='-fPIC'
8647         lt_prog_compiler_static='-static'
8648         ;;
8649       # Lahey Fortran 8.1.
8650       lf95*)
8651         lt_prog_compiler_wl='-Wl,'
8652         lt_prog_compiler_pic='--shared'
8653         lt_prog_compiler_static='--static'
8654         ;;
8655       nagfor*)
8656         # NAG Fortran compiler
8657         lt_prog_compiler_wl='-Wl,-Wl,,'
8658         lt_prog_compiler_pic='-PIC'
8659         lt_prog_compiler_static='-Bstatic'
8660         ;;
8661       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8662         # Portland Group compilers (*not* the Pentium gcc compiler,
8663         # which looks to be a dead project)
8664         lt_prog_compiler_wl='-Wl,'
8665         lt_prog_compiler_pic='-fpic'
8666         lt_prog_compiler_static='-Bstatic'
8667         ;;
8668       ccc*)
8669         lt_prog_compiler_wl='-Wl,'
8670         # All Alpha code is PIC.
8671         lt_prog_compiler_static='-non_shared'
8672         ;;
8673       xl* | bgxl* | bgf* | mpixl*)
8674         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8675         lt_prog_compiler_wl='-Wl,'
8676         lt_prog_compiler_pic='-qpic'
8677         lt_prog_compiler_static='-qstaticlink'
8678         ;;
8679       *)
8680         case `$CC -V 2>&1 | sed 5q` in
8681         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8682           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8683           lt_prog_compiler_pic='-KPIC'
8684           lt_prog_compiler_static='-Bstatic'
8685           lt_prog_compiler_wl=''
8686           ;;
8687         *Sun\ F* | *Sun*Fortran*)
8688           lt_prog_compiler_pic='-KPIC'
8689           lt_prog_compiler_static='-Bstatic'
8690           lt_prog_compiler_wl='-Qoption ld '
8691           ;;
8692         *Sun\ C*)
8693           # Sun C 5.9
8694           lt_prog_compiler_pic='-KPIC'
8695           lt_prog_compiler_static='-Bstatic'
8696           lt_prog_compiler_wl='-Wl,'
8697           ;;
8698         *Intel*\ [CF]*Compiler*)
8699           lt_prog_compiler_wl='-Wl,'
8700           lt_prog_compiler_pic='-fPIC'
8701           lt_prog_compiler_static='-static'
8702           ;;
8703         *Portland\ Group*)
8704           lt_prog_compiler_wl='-Wl,'
8705           lt_prog_compiler_pic='-fpic'
8706           lt_prog_compiler_static='-Bstatic'
8707           ;;
8708         esac
8709         ;;
8710       esac
8711       ;;
8712
8713     newsos6)
8714       lt_prog_compiler_pic='-KPIC'
8715       lt_prog_compiler_static='-Bstatic'
8716       ;;
8717
8718     *nto* | *qnx*)
8719       # QNX uses GNU C++, but need to define -shared option too, otherwise
8720       # it will coredump.
8721       lt_prog_compiler_pic='-fPIC -shared'
8722       ;;
8723
8724     osf3* | osf4* | osf5*)
8725       lt_prog_compiler_wl='-Wl,'
8726       # All OSF/1 code is PIC.
8727       lt_prog_compiler_static='-non_shared'
8728       ;;
8729
8730     rdos*)
8731       lt_prog_compiler_static='-non_shared'
8732       ;;
8733
8734     solaris*)
8735       lt_prog_compiler_pic='-KPIC'
8736       lt_prog_compiler_static='-Bstatic'
8737       case $cc_basename in
8738       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8739         lt_prog_compiler_wl='-Qoption ld ';;
8740       *)
8741         lt_prog_compiler_wl='-Wl,';;
8742       esac
8743       ;;
8744
8745     sunos4*)
8746       lt_prog_compiler_wl='-Qoption ld '
8747       lt_prog_compiler_pic='-PIC'
8748       lt_prog_compiler_static='-Bstatic'
8749       ;;
8750
8751     sysv4 | sysv4.2uw2* | sysv4.3*)
8752       lt_prog_compiler_wl='-Wl,'
8753       lt_prog_compiler_pic='-KPIC'
8754       lt_prog_compiler_static='-Bstatic'
8755       ;;
8756
8757     sysv4*MP*)
8758       if test -d /usr/nec ;then
8759         lt_prog_compiler_pic='-Kconform_pic'
8760         lt_prog_compiler_static='-Bstatic'
8761       fi
8762       ;;
8763
8764     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8765       lt_prog_compiler_wl='-Wl,'
8766       lt_prog_compiler_pic='-KPIC'
8767       lt_prog_compiler_static='-Bstatic'
8768       ;;
8769
8770     unicos*)
8771       lt_prog_compiler_wl='-Wl,'
8772       lt_prog_compiler_can_build_shared=no
8773       ;;
8774
8775     uts4*)
8776       lt_prog_compiler_pic='-pic'
8777       lt_prog_compiler_static='-Bstatic'
8778       ;;
8779
8780     *)
8781       lt_prog_compiler_can_build_shared=no
8782       ;;
8783     esac
8784   fi
8785
8786 case $host_os in
8787   # For platforms which do not support PIC, -DPIC is meaningless:
8788   *djgpp*)
8789     lt_prog_compiler_pic=
8790     ;;
8791   *)
8792     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8793     ;;
8794 esac
8795
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8797 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8798 if ${lt_cv_prog_compiler_pic+:} false; then :
8799   $as_echo_n "(cached) " >&6
8800 else
8801   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8802 fi
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8804 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8805 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8806
8807 #
8808 # Check to make sure the PIC flag actually works.
8809 #
8810 if test -n "$lt_prog_compiler_pic"; then
8811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8812 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8813 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8814   $as_echo_n "(cached) " >&6
8815 else
8816   lt_cv_prog_compiler_pic_works=no
8817    ac_outfile=conftest.$ac_objext
8818    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8819    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8820    # Insert the option either (1) after the last *FLAGS variable, or
8821    # (2) before a word containing "conftest.", or (3) at the end.
8822    # Note that $ac_compile itself does not contain backslashes and begins
8823    # with a dollar sign (not a hyphen), so the echo should work correctly.
8824    # The option is referenced via a variable to avoid confusing sed.
8825    lt_compile=`echo "$ac_compile" | $SED \
8826    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8827    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8828    -e 's:$: $lt_compiler_flag:'`
8829    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8830    (eval "$lt_compile" 2>conftest.err)
8831    ac_status=$?
8832    cat conftest.err >&5
8833    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834    if (exit $ac_status) && test -s "$ac_outfile"; then
8835      # The compiler can only warn and ignore the option if not recognized
8836      # So say no if there are warnings other than the usual output.
8837      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8838      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8839      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8840        lt_cv_prog_compiler_pic_works=yes
8841      fi
8842    fi
8843    $RM conftest*
8844
8845 fi
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8847 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8848
8849 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8850     case $lt_prog_compiler_pic in
8851      "" | " "*) ;;
8852      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8853      esac
8854 else
8855     lt_prog_compiler_pic=
8856      lt_prog_compiler_can_build_shared=no
8857 fi
8858
8859 fi
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871 #
8872 # Check to make sure the static flag actually works.
8873 #
8874 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8876 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8877 if ${lt_cv_prog_compiler_static_works+:} false; then :
8878   $as_echo_n "(cached) " >&6
8879 else
8880   lt_cv_prog_compiler_static_works=no
8881    save_LDFLAGS="$LDFLAGS"
8882    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8883    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8884    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8885      # The linker can only warn and ignore the option if not recognized
8886      # So say no if there are warnings
8887      if test -s conftest.err; then
8888        # Append any errors to the config.log.
8889        cat conftest.err 1>&5
8890        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8891        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8892        if diff conftest.exp conftest.er2 >/dev/null; then
8893          lt_cv_prog_compiler_static_works=yes
8894        fi
8895      else
8896        lt_cv_prog_compiler_static_works=yes
8897      fi
8898    fi
8899    $RM -r conftest*
8900    LDFLAGS="$save_LDFLAGS"
8901
8902 fi
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8904 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8905
8906 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8907     :
8908 else
8909     lt_prog_compiler_static=
8910 fi
8911
8912
8913
8914
8915
8916
8917
8918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8919 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8920 if ${lt_cv_prog_compiler_c_o+:} false; then :
8921   $as_echo_n "(cached) " >&6
8922 else
8923   lt_cv_prog_compiler_c_o=no
8924    $RM -r conftest 2>/dev/null
8925    mkdir conftest
8926    cd conftest
8927    mkdir out
8928    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8929
8930    lt_compiler_flag="-o out/conftest2.$ac_objext"
8931    # Insert the option either (1) after the last *FLAGS variable, or
8932    # (2) before a word containing "conftest.", or (3) at the end.
8933    # Note that $ac_compile itself does not contain backslashes and begins
8934    # with a dollar sign (not a hyphen), so the echo should work correctly.
8935    lt_compile=`echo "$ac_compile" | $SED \
8936    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8937    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8938    -e 's:$: $lt_compiler_flag:'`
8939    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8940    (eval "$lt_compile" 2>out/conftest.err)
8941    ac_status=$?
8942    cat out/conftest.err >&5
8943    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8945    then
8946      # The compiler can only warn and ignore the option if not recognized
8947      # So say no if there are warnings
8948      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8949      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8950      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8951        lt_cv_prog_compiler_c_o=yes
8952      fi
8953    fi
8954    chmod u+w . 2>&5
8955    $RM conftest*
8956    # SGI C++ compiler will create directory out/ii_files/ for
8957    # template instantiation
8958    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8959    $RM out/* && rmdir out
8960    cd ..
8961    $RM -r conftest
8962    $RM conftest*
8963
8964 fi
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8966 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8967
8968
8969
8970
8971
8972
8973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8974 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8975 if ${lt_cv_prog_compiler_c_o+:} false; then :
8976   $as_echo_n "(cached) " >&6
8977 else
8978   lt_cv_prog_compiler_c_o=no
8979    $RM -r conftest 2>/dev/null
8980    mkdir conftest
8981    cd conftest
8982    mkdir out
8983    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8984
8985    lt_compiler_flag="-o out/conftest2.$ac_objext"
8986    # Insert the option either (1) after the last *FLAGS variable, or
8987    # (2) before a word containing "conftest.", or (3) at the end.
8988    # Note that $ac_compile itself does not contain backslashes and begins
8989    # with a dollar sign (not a hyphen), so the echo should work correctly.
8990    lt_compile=`echo "$ac_compile" | $SED \
8991    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8992    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8993    -e 's:$: $lt_compiler_flag:'`
8994    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8995    (eval "$lt_compile" 2>out/conftest.err)
8996    ac_status=$?
8997    cat out/conftest.err >&5
8998    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9000    then
9001      # The compiler can only warn and ignore the option if not recognized
9002      # So say no if there are warnings
9003      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9004      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9005      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9006        lt_cv_prog_compiler_c_o=yes
9007      fi
9008    fi
9009    chmod u+w . 2>&5
9010    $RM conftest*
9011    # SGI C++ compiler will create directory out/ii_files/ for
9012    # template instantiation
9013    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9014    $RM out/* && rmdir out
9015    cd ..
9016    $RM -r conftest
9017    $RM conftest*
9018
9019 fi
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9021 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9022
9023
9024
9025
9026 hard_links="nottested"
9027 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9028   # do not overwrite the value of need_locks provided by the user
9029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9030 $as_echo_n "checking if we can lock with hard links... " >&6; }
9031   hard_links=yes
9032   $RM conftest*
9033   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9034   touch conftest.a
9035   ln conftest.a conftest.b 2>&5 || hard_links=no
9036   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9038 $as_echo "$hard_links" >&6; }
9039   if test "$hard_links" = no; then
9040     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9041 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9042     need_locks=warn
9043   fi
9044 else
9045   need_locks=no
9046 fi
9047
9048
9049
9050
9051
9052
9053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9054 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9055
9056   runpath_var=
9057   allow_undefined_flag=
9058   always_export_symbols=no
9059   archive_cmds=
9060   archive_expsym_cmds=
9061   compiler_needs_object=no
9062   enable_shared_with_static_runtimes=no
9063   export_dynamic_flag_spec=
9064   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9065   hardcode_automatic=no
9066   hardcode_direct=no
9067   hardcode_direct_absolute=no
9068   hardcode_libdir_flag_spec=
9069   hardcode_libdir_separator=
9070   hardcode_minus_L=no
9071   hardcode_shlibpath_var=unsupported
9072   inherit_rpath=no
9073   link_all_deplibs=unknown
9074   module_cmds=
9075   module_expsym_cmds=
9076   old_archive_from_new_cmds=
9077   old_archive_from_expsyms_cmds=
9078   thread_safe_flag_spec=
9079   whole_archive_flag_spec=
9080   # include_expsyms should be a list of space-separated symbols to be *always*
9081   # included in the symbol list
9082   include_expsyms=
9083   # exclude_expsyms can be an extended regexp of symbols to exclude
9084   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9085   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9086   # as well as any symbol that contains `d'.
9087   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9088   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9089   # platforms (ab)use it in PIC code, but their linkers get confused if
9090   # the symbol is explicitly referenced.  Since portable code cannot
9091   # rely on this symbol name, it's probably fine to never include it in
9092   # preloaded symbol tables.
9093   # Exclude shared library initialization/finalization symbols.
9094   extract_expsyms_cmds=
9095
9096   case $host_os in
9097   cygwin* | mingw* | pw32* | cegcc*)
9098     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9099     # When not using gcc, we currently assume that we are using
9100     # Microsoft Visual C++.
9101     if test "$GCC" != yes; then
9102       with_gnu_ld=no
9103     fi
9104     ;;
9105   interix*)
9106     # we just hope/assume this is gcc and not c89 (= MSVC++)
9107     with_gnu_ld=yes
9108     ;;
9109   openbsd*)
9110     with_gnu_ld=no
9111     ;;
9112   esac
9113
9114   ld_shlibs=yes
9115
9116   # On some targets, GNU ld is compatible enough with the native linker
9117   # that we're better off using the native interface for both.
9118   lt_use_gnu_ld_interface=no
9119   if test "$with_gnu_ld" = yes; then
9120     case $host_os in
9121       aix*)
9122         # The AIX port of GNU ld has always aspired to compatibility
9123         # with the native linker.  However, as the warning in the GNU ld
9124         # block says, versions before 2.19.5* couldn't really create working
9125         # shared libraries, regardless of the interface used.
9126         case `$LD -v 2>&1` in
9127           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9128           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9129           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9130           *)
9131             lt_use_gnu_ld_interface=yes
9132             ;;
9133         esac
9134         ;;
9135       *)
9136         lt_use_gnu_ld_interface=yes
9137         ;;
9138     esac
9139   fi
9140
9141   if test "$lt_use_gnu_ld_interface" = yes; then
9142     # If archive_cmds runs LD, not CC, wlarc should be empty
9143     wlarc='${wl}'
9144
9145     # Set some defaults for GNU ld with shared library support. These
9146     # are reset later if shared libraries are not supported. Putting them
9147     # here allows them to be overridden if necessary.
9148     runpath_var=LD_RUN_PATH
9149     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9150     export_dynamic_flag_spec='${wl}--export-dynamic'
9151     # ancient GNU ld didn't support --whole-archive et. al.
9152     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9153       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9154     else
9155       whole_archive_flag_spec=
9156     fi
9157     supports_anon_versioning=no
9158     case `$LD -v 2>&1` in
9159       *GNU\ gold*) supports_anon_versioning=yes ;;
9160       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9161       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9162       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9163       *\ 2.11.*) ;; # other 2.11 versions
9164       *) supports_anon_versioning=yes ;;
9165     esac
9166
9167     # See if GNU ld supports shared libraries.
9168     case $host_os in
9169     aix[3-9]*)
9170       # On AIX/PPC, the GNU linker is very broken
9171       if test "$host_cpu" != ia64; then
9172         ld_shlibs=no
9173         cat <<_LT_EOF 1>&2
9174
9175 *** Warning: the GNU linker, at least up to release 2.19, is reported
9176 *** to be unable to reliably create shared libraries on AIX.
9177 *** Therefore, libtool is disabling shared libraries support.  If you
9178 *** really care for shared libraries, you may want to install binutils
9179 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9180 *** You will then need to restart the configuration process.
9181
9182 _LT_EOF
9183       fi
9184       ;;
9185
9186     amigaos*)
9187       case $host_cpu in
9188       powerpc)
9189             # see comment about AmigaOS4 .so support
9190             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9191             archive_expsym_cmds=''
9192         ;;
9193       m68k)
9194             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)'
9195             hardcode_libdir_flag_spec='-L$libdir'
9196             hardcode_minus_L=yes
9197         ;;
9198       esac
9199       ;;
9200
9201     beos*)
9202       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9203         allow_undefined_flag=unsupported
9204         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9205         # support --undefined.  This deserves some investigation.  FIXME
9206         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9207       else
9208         ld_shlibs=no
9209       fi
9210       ;;
9211
9212     cygwin* | mingw* | pw32* | cegcc*)
9213       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9214       # as there is no search path for DLLs.
9215       hardcode_libdir_flag_spec='-L$libdir'
9216       export_dynamic_flag_spec='${wl}--export-all-symbols'
9217       allow_undefined_flag=unsupported
9218       always_export_symbols=no
9219       enable_shared_with_static_runtimes=yes
9220       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'
9221       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9222
9223       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9224         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9225         # If the export-symbols file already is a .def file (1st line
9226         # is EXPORTS), use it as is; otherwise, prepend...
9227         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9228           cp $export_symbols $output_objdir/$soname.def;
9229         else
9230           echo EXPORTS > $output_objdir/$soname.def;
9231           cat $export_symbols >> $output_objdir/$soname.def;
9232         fi~
9233         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9234       else
9235         ld_shlibs=no
9236       fi
9237       ;;
9238
9239     haiku*)
9240       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9241       link_all_deplibs=yes
9242       ;;
9243
9244     interix[3-9]*)
9245       hardcode_direct=no
9246       hardcode_shlibpath_var=no
9247       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9248       export_dynamic_flag_spec='${wl}-E'
9249       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9250       # Instead, shared libraries are loaded at an image base (0x10000000 by
9251       # default) and relocated if they conflict, which is a slow very memory
9252       # consuming and fragmenting process.  To avoid this, we pick a random,
9253       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9254       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9255       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9256       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'
9257       ;;
9258
9259     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9260       tmp_diet=no
9261       if test "$host_os" = linux-dietlibc; then
9262         case $cc_basename in
9263           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9264         esac
9265       fi
9266       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9267          && test "$tmp_diet" = no
9268       then
9269         tmp_addflag=' $pic_flag'
9270         tmp_sharedflag='-shared'
9271         case $cc_basename,$host_cpu in
9272         pgcc*)                          # Portland Group C compiler
9273           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'
9274           tmp_addflag=' $pic_flag'
9275           ;;
9276         pgf77* | pgf90* | pgf95* | pgfortran*)
9277                                         # Portland Group f77 and f90 compilers
9278           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'
9279           tmp_addflag=' $pic_flag -Mnomain' ;;
9280         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9281           tmp_addflag=' -i_dynamic' ;;
9282         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9283           tmp_addflag=' -i_dynamic -nofor_main' ;;
9284         ifc* | ifort*)                  # Intel Fortran compiler
9285           tmp_addflag=' -nofor_main' ;;
9286         lf95*)                          # Lahey Fortran 8.1
9287           whole_archive_flag_spec=
9288           tmp_sharedflag='--shared' ;;
9289         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9290           tmp_sharedflag='-qmkshrobj'
9291           tmp_addflag= ;;
9292         nvcc*)  # Cuda Compiler Driver 2.2
9293           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'
9294           compiler_needs_object=yes
9295           ;;
9296         esac
9297         case `$CC -V 2>&1 | sed 5q` in
9298         *Sun\ C*)                       # Sun C 5.9
9299           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'
9300           compiler_needs_object=yes
9301           tmp_sharedflag='-G' ;;
9302         *Sun\ F*)                       # Sun Fortran 8.3
9303           tmp_sharedflag='-G' ;;
9304         esac
9305         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9306
9307         if test "x$supports_anon_versioning" = xyes; then
9308           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9309             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9310             echo "local: *; };" >> $output_objdir/$libname.ver~
9311             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9312         fi
9313
9314         case $cc_basename in
9315         xlf* | bgf* | bgxlf* | mpixlf*)
9316           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9317           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9318           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9319           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9320           if test "x$supports_anon_versioning" = xyes; then
9321             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9322               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9323               echo "local: *; };" >> $output_objdir/$libname.ver~
9324               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9325           fi
9326           ;;
9327         esac
9328       else
9329         ld_shlibs=no
9330       fi
9331       ;;
9332
9333     netbsd*)
9334       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9335         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9336         wlarc=
9337       else
9338         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9339         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9340       fi
9341       ;;
9342
9343     solaris*)
9344       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9345         ld_shlibs=no
9346         cat <<_LT_EOF 1>&2
9347
9348 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9349 *** create shared libraries on Solaris systems.  Therefore, libtool
9350 *** is disabling shared libraries support.  We urge you to upgrade GNU
9351 *** binutils to release 2.9.1 or newer.  Another option is to modify
9352 *** your PATH or compiler configuration so that the native linker is
9353 *** used, and then restart.
9354
9355 _LT_EOF
9356       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9357         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9359       else
9360         ld_shlibs=no
9361       fi
9362       ;;
9363
9364     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9365       case `$LD -v 2>&1` in
9366         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9367         ld_shlibs=no
9368         cat <<_LT_EOF 1>&2
9369
9370 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9371 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9372 *** is disabling shared libraries support.  We urge you to upgrade GNU
9373 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9374 *** your PATH or compiler configuration so that the native linker is
9375 *** used, and then restart.
9376
9377 _LT_EOF
9378         ;;
9379         *)
9380           # For security reasons, it is highly recommended that you always
9381           # use absolute paths for naming shared libraries, and exclude the
9382           # DT_RUNPATH tag from executables and libraries.  But doing so
9383           # requires that you compile everything twice, which is a pain.
9384           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9385             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9386             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9387             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9388           else
9389             ld_shlibs=no
9390           fi
9391         ;;
9392       esac
9393       ;;
9394
9395     sunos4*)
9396       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9397       wlarc=
9398       hardcode_direct=yes
9399       hardcode_shlibpath_var=no
9400       ;;
9401
9402     *)
9403       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9404         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9406       else
9407         ld_shlibs=no
9408       fi
9409       ;;
9410     esac
9411
9412     if test "$ld_shlibs" = no; then
9413       runpath_var=
9414       hardcode_libdir_flag_spec=
9415       export_dynamic_flag_spec=
9416       whole_archive_flag_spec=
9417     fi
9418   else
9419     # PORTME fill in a description of your system's linker (not GNU ld)
9420     case $host_os in
9421     aix3*)
9422       allow_undefined_flag=unsupported
9423       always_export_symbols=yes
9424       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'
9425       # Note: this linker hardcodes the directories in LIBPATH if there
9426       # are no directories specified by -L.
9427       hardcode_minus_L=yes
9428       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9429         # Neither direct hardcoding nor static linking is supported with a
9430         # broken collect2.
9431         hardcode_direct=unsupported
9432       fi
9433       ;;
9434
9435     aix[4-9]*)
9436       if test "$host_cpu" = ia64; then
9437         # On IA64, the linker does run time linking by default, so we don't
9438         # have to do anything special.
9439         aix_use_runtimelinking=no
9440         exp_sym_flag='-Bexport'
9441         no_entry_flag=""
9442       else
9443         # If we're using GNU nm, then we don't want the "-C" option.
9444         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9445         # Also, AIX nm treats weak defined symbols like other global
9446         # defined symbols, whereas GNU nm marks them as "W".
9447         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9448           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9449         else
9450           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9451         fi
9452         aix_use_runtimelinking=no
9453
9454         # Test if we are trying to use run time linking or normal
9455         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9456         # need to do runtime linking.
9457         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9458           for ld_flag in $LDFLAGS; do
9459           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9460             aix_use_runtimelinking=yes
9461             break
9462           fi
9463           done
9464           ;;
9465         esac
9466
9467         exp_sym_flag='-bexport'
9468         no_entry_flag='-bnoentry'
9469       fi
9470
9471       # When large executables or shared objects are built, AIX ld can
9472       # have problems creating the table of contents.  If linking a library
9473       # or program results in "error TOC overflow" add -mminimal-toc to
9474       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9475       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9476
9477       archive_cmds=''
9478       hardcode_direct=yes
9479       hardcode_direct_absolute=yes
9480       hardcode_libdir_separator=':'
9481       link_all_deplibs=yes
9482       file_list_spec='${wl}-f,'
9483
9484       if test "$GCC" = yes; then
9485         case $host_os in aix4.[012]|aix4.[012].*)
9486         # We only want to do this on AIX 4.2 and lower, the check
9487         # below for broken collect2 doesn't work under 4.3+
9488           collect2name=`${CC} -print-prog-name=collect2`
9489           if test -f "$collect2name" &&
9490            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9491           then
9492           # We have reworked collect2
9493           :
9494           else
9495           # We have old collect2
9496           hardcode_direct=unsupported
9497           # It fails to find uninstalled libraries when the uninstalled
9498           # path is not listed in the libpath.  Setting hardcode_minus_L
9499           # to unsupported forces relinking
9500           hardcode_minus_L=yes
9501           hardcode_libdir_flag_spec='-L$libdir'
9502           hardcode_libdir_separator=
9503           fi
9504           ;;
9505         esac
9506         shared_flag='-shared'
9507         if test "$aix_use_runtimelinking" = yes; then
9508           shared_flag="$shared_flag "'${wl}-G'
9509         fi
9510       else
9511         # not using gcc
9512         if test "$host_cpu" = ia64; then
9513         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9514         # chokes on -Wl,-G. The following line is correct:
9515           shared_flag='-G'
9516         else
9517           if test "$aix_use_runtimelinking" = yes; then
9518             shared_flag='${wl}-G'
9519           else
9520             shared_flag='${wl}-bM:SRE'
9521           fi
9522         fi
9523       fi
9524
9525       export_dynamic_flag_spec='${wl}-bexpall'
9526       # It seems that -bexpall does not export symbols beginning with
9527       # underscore (_), so it is better to generate a list of symbols to export.
9528       always_export_symbols=yes
9529       if test "$aix_use_runtimelinking" = yes; then
9530         # Warning - without using the other runtime loading flags (-brtl),
9531         # -berok will link without error, but may produce a broken library.
9532         allow_undefined_flag='-berok'
9533         # Determine the default libpath from the value encoded in an
9534         # empty executable.
9535         if test "${lt_cv_aix_libpath+set}" = set; then
9536   aix_libpath=$lt_cv_aix_libpath
9537 else
9538   if ${lt_cv_aix_libpath_+:} false; then :
9539   $as_echo_n "(cached) " >&6
9540 else
9541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h.  */
9543
9544 int
9545 main ()
9546 {
9547
9548   ;
9549   return 0;
9550 }
9551 _ACEOF
9552 if ac_fn_c_try_link "$LINENO"; then :
9553
9554   lt_aix_libpath_sed='
9555       /Import File Strings/,/^$/ {
9556           /^0/ {
9557               s/^0  *\([^ ]*\) *$/\1/
9558               p
9559           }
9560       }'
9561   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9562   # Check for a 64-bit object if we didn't find anything.
9563   if test -z "$lt_cv_aix_libpath_"; then
9564     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9565   fi
9566 fi
9567 rm -f core conftest.err conftest.$ac_objext \
9568     conftest$ac_exeext conftest.$ac_ext
9569   if test -z "$lt_cv_aix_libpath_"; then
9570     lt_cv_aix_libpath_="/usr/lib:/lib"
9571   fi
9572
9573 fi
9574
9575   aix_libpath=$lt_cv_aix_libpath_
9576 fi
9577
9578         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9579         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9580       else
9581         if test "$host_cpu" = ia64; then
9582           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9583           allow_undefined_flag="-z nodefs"
9584           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"
9585         else
9586          # Determine the default libpath from the value encoded in an
9587          # empty executable.
9588          if test "${lt_cv_aix_libpath+set}" = set; then
9589   aix_libpath=$lt_cv_aix_libpath
9590 else
9591   if ${lt_cv_aix_libpath_+:} false; then :
9592   $as_echo_n "(cached) " >&6
9593 else
9594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595 /* end confdefs.h.  */
9596
9597 int
9598 main ()
9599 {
9600
9601   ;
9602   return 0;
9603 }
9604 _ACEOF
9605 if ac_fn_c_try_link "$LINENO"; then :
9606
9607   lt_aix_libpath_sed='
9608       /Import File Strings/,/^$/ {
9609           /^0/ {
9610               s/^0  *\([^ ]*\) *$/\1/
9611               p
9612           }
9613       }'
9614   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9615   # Check for a 64-bit object if we didn't find anything.
9616   if test -z "$lt_cv_aix_libpath_"; then
9617     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9618   fi
9619 fi
9620 rm -f core conftest.err conftest.$ac_objext \
9621     conftest$ac_exeext conftest.$ac_ext
9622   if test -z "$lt_cv_aix_libpath_"; then
9623     lt_cv_aix_libpath_="/usr/lib:/lib"
9624   fi
9625
9626 fi
9627
9628   aix_libpath=$lt_cv_aix_libpath_
9629 fi
9630
9631          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9632           # Warning - without using the other run time loading flags,
9633           # -berok will link without error, but may produce a broken library.
9634           no_undefined_flag=' ${wl}-bernotok'
9635           allow_undefined_flag=' ${wl}-berok'
9636           if test "$with_gnu_ld" = yes; then
9637             # We only use this code for GNU lds that support --whole-archive.
9638             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9639           else
9640             # Exported symbols can be pulled into shared objects from archives
9641             whole_archive_flag_spec='$convenience'
9642           fi
9643           archive_cmds_need_lc=yes
9644           # This is similar to how AIX traditionally builds its shared libraries.
9645           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9646         fi
9647       fi
9648       ;;
9649
9650     amigaos*)
9651       case $host_cpu in
9652       powerpc)
9653             # see comment about AmigaOS4 .so support
9654             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9655             archive_expsym_cmds=''
9656         ;;
9657       m68k)
9658             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)'
9659             hardcode_libdir_flag_spec='-L$libdir'
9660             hardcode_minus_L=yes
9661         ;;
9662       esac
9663       ;;
9664
9665     bsdi[45]*)
9666       export_dynamic_flag_spec=-rdynamic
9667       ;;
9668
9669     cygwin* | mingw* | pw32* | cegcc*)
9670       # When not using gcc, we currently assume that we are using
9671       # Microsoft Visual C++.
9672       # hardcode_libdir_flag_spec is actually meaningless, as there is
9673       # no search path for DLLs.
9674       case $cc_basename in
9675       cl*)
9676         # Native MSVC
9677         hardcode_libdir_flag_spec=' '
9678         allow_undefined_flag=unsupported
9679         always_export_symbols=yes
9680         file_list_spec='@'
9681         # Tell ltmain to make .lib files, not .a files.
9682         libext=lib
9683         # Tell ltmain to make .dll files, not .so files.
9684         shrext_cmds=".dll"
9685         # FIXME: Setting linknames here is a bad hack.
9686         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9687         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9688             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9689           else
9690             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9691           fi~
9692           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9693           linknames='
9694         # The linker will not automatically build a static lib if we build a DLL.
9695         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9696         enable_shared_with_static_runtimes=yes
9697         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9698         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9699         # Don't use ranlib
9700         old_postinstall_cmds='chmod 644 $oldlib'
9701         postlink_cmds='lt_outputfile="@OUTPUT@"~
9702           lt_tool_outputfile="@TOOL_OUTPUT@"~
9703           case $lt_outputfile in
9704             *.exe|*.EXE) ;;
9705             *)
9706               lt_outputfile="$lt_outputfile.exe"
9707               lt_tool_outputfile="$lt_tool_outputfile.exe"
9708               ;;
9709           esac~
9710           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9711             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9712             $RM "$lt_outputfile.manifest";
9713           fi'
9714         ;;
9715       *)
9716         # Assume MSVC wrapper
9717         hardcode_libdir_flag_spec=' '
9718         allow_undefined_flag=unsupported
9719         # Tell ltmain to make .lib files, not .a files.
9720         libext=lib
9721         # Tell ltmain to make .dll files, not .so files.
9722         shrext_cmds=".dll"
9723         # FIXME: Setting linknames here is a bad hack.
9724         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9725         # The linker will automatically build a .lib file if we build a DLL.
9726         old_archive_from_new_cmds='true'
9727         # FIXME: Should let the user specify the lib program.
9728         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9729         enable_shared_with_static_runtimes=yes
9730         ;;
9731       esac
9732       ;;
9733
9734     darwin* | rhapsody*)
9735
9736
9737   archive_cmds_need_lc=no
9738   hardcode_direct=no
9739   hardcode_automatic=yes
9740   hardcode_shlibpath_var=unsupported
9741   if test "$lt_cv_ld_force_load" = "yes"; then
9742     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\"`'
9743
9744   else
9745     whole_archive_flag_spec=''
9746   fi
9747   link_all_deplibs=yes
9748   allow_undefined_flag="$_lt_dar_allow_undefined"
9749   case $cc_basename in
9750      ifort*) _lt_dar_can_shared=yes ;;
9751      *) _lt_dar_can_shared=$GCC ;;
9752   esac
9753   if test "$_lt_dar_can_shared" = "yes"; then
9754     output_verbose_link_cmd=func_echo_all
9755     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9756     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9757     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}"
9758     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}"
9759
9760   else
9761   ld_shlibs=no
9762   fi
9763
9764       ;;
9765
9766     dgux*)
9767       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9768       hardcode_libdir_flag_spec='-L$libdir'
9769       hardcode_shlibpath_var=no
9770       ;;
9771
9772     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9773     # support.  Future versions do this automatically, but an explicit c++rt0.o
9774     # does not break anything, and helps significantly (at the cost of a little
9775     # extra space).
9776     freebsd2.2*)
9777       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9778       hardcode_libdir_flag_spec='-R$libdir'
9779       hardcode_direct=yes
9780       hardcode_shlibpath_var=no
9781       ;;
9782
9783     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9784     freebsd2.*)
9785       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9786       hardcode_direct=yes
9787       hardcode_minus_L=yes
9788       hardcode_shlibpath_var=no
9789       ;;
9790
9791     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9792     freebsd* | dragonfly*)
9793       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9794       hardcode_libdir_flag_spec='-R$libdir'
9795       hardcode_direct=yes
9796       hardcode_shlibpath_var=no
9797       ;;
9798
9799     hpux9*)
9800       if test "$GCC" = yes; then
9801         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9802       else
9803         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9804       fi
9805       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9806       hardcode_libdir_separator=:
9807       hardcode_direct=yes
9808
9809       # hardcode_minus_L: Not really in the search PATH,
9810       # but as the default location of the library.
9811       hardcode_minus_L=yes
9812       export_dynamic_flag_spec='${wl}-E'
9813       ;;
9814
9815     hpux10*)
9816       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9817         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9818       else
9819         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9820       fi
9821       if test "$with_gnu_ld" = no; then
9822         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9823         hardcode_libdir_separator=:
9824         hardcode_direct=yes
9825         hardcode_direct_absolute=yes
9826         export_dynamic_flag_spec='${wl}-E'
9827         # hardcode_minus_L: Not really in the search PATH,
9828         # but as the default location of the library.
9829         hardcode_minus_L=yes
9830       fi
9831       ;;
9832
9833     hpux11*)
9834       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9835         case $host_cpu in
9836         hppa*64*)
9837           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9838           ;;
9839         ia64*)
9840           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9841           ;;
9842         *)
9843           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9844           ;;
9845         esac
9846       else
9847         case $host_cpu in
9848         hppa*64*)
9849           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9850           ;;
9851         ia64*)
9852           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9853           ;;
9854         *)
9855
9856           # Older versions of the 11.00 compiler do not understand -b yet
9857           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9858           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9859 $as_echo_n "checking if $CC understands -b... " >&6; }
9860 if ${lt_cv_prog_compiler__b+:} false; then :
9861   $as_echo_n "(cached) " >&6
9862 else
9863   lt_cv_prog_compiler__b=no
9864    save_LDFLAGS="$LDFLAGS"
9865    LDFLAGS="$LDFLAGS -b"
9866    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9867    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9868      # The linker can only warn and ignore the option if not recognized
9869      # So say no if there are warnings
9870      if test -s conftest.err; then
9871        # Append any errors to the config.log.
9872        cat conftest.err 1>&5
9873        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9874        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9875        if diff conftest.exp conftest.er2 >/dev/null; then
9876          lt_cv_prog_compiler__b=yes
9877        fi
9878      else
9879        lt_cv_prog_compiler__b=yes
9880      fi
9881    fi
9882    $RM -r conftest*
9883    LDFLAGS="$save_LDFLAGS"
9884
9885 fi
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9887 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9888
9889 if test x"$lt_cv_prog_compiler__b" = xyes; then
9890     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9891 else
9892     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9893 fi
9894
9895           ;;
9896         esac
9897       fi
9898       if test "$with_gnu_ld" = no; then
9899         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9900         hardcode_libdir_separator=:
9901
9902         case $host_cpu in
9903         hppa*64*|ia64*)
9904           hardcode_direct=no
9905           hardcode_shlibpath_var=no
9906           ;;
9907         *)
9908           hardcode_direct=yes
9909           hardcode_direct_absolute=yes
9910           export_dynamic_flag_spec='${wl}-E'
9911
9912           # hardcode_minus_L: Not really in the search PATH,
9913           # but as the default location of the library.
9914           hardcode_minus_L=yes
9915           ;;
9916         esac
9917       fi
9918       ;;
9919
9920     irix5* | irix6* | nonstopux*)
9921       if test "$GCC" = yes; then
9922         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'
9923         # Try to use the -exported_symbol ld option, if it does not
9924         # work, assume that -exports_file does not work either and
9925         # implicitly export all symbols.
9926         # This should be the same for all languages, so no per-tag cache variable.
9927         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9928 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9929 if ${lt_cv_irix_exported_symbol+:} false; then :
9930   $as_echo_n "(cached) " >&6
9931 else
9932   save_LDFLAGS="$LDFLAGS"
9933            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9934            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h.  */
9936 int foo (void) { return 0; }
9937 _ACEOF
9938 if ac_fn_c_try_link "$LINENO"; then :
9939   lt_cv_irix_exported_symbol=yes
9940 else
9941   lt_cv_irix_exported_symbol=no
9942 fi
9943 rm -f core conftest.err conftest.$ac_objext \
9944     conftest$ac_exeext conftest.$ac_ext
9945            LDFLAGS="$save_LDFLAGS"
9946 fi
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9948 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9949         if test "$lt_cv_irix_exported_symbol" = yes; then
9950           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'
9951         fi
9952       else
9953         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'
9954         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'
9955       fi
9956       archive_cmds_need_lc='no'
9957       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9958       hardcode_libdir_separator=:
9959       inherit_rpath=yes
9960       link_all_deplibs=yes
9961       ;;
9962
9963     netbsd*)
9964       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9965         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9966       else
9967         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9968       fi
9969       hardcode_libdir_flag_spec='-R$libdir'
9970       hardcode_direct=yes
9971       hardcode_shlibpath_var=no
9972       ;;
9973
9974     newsos6)
9975       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9976       hardcode_direct=yes
9977       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9978       hardcode_libdir_separator=:
9979       hardcode_shlibpath_var=no
9980       ;;
9981
9982     *nto* | *qnx*)
9983       ;;
9984
9985     openbsd*)
9986       if test -f /usr/libexec/ld.so; then
9987         hardcode_direct=yes
9988         hardcode_shlibpath_var=no
9989         hardcode_direct_absolute=yes
9990         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9991           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9992           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9993           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9994           export_dynamic_flag_spec='${wl}-E'
9995         else
9996           case $host_os in
9997            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9998              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9999              hardcode_libdir_flag_spec='-R$libdir'
10000              ;;
10001            *)
10002              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10003              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10004              ;;
10005           esac
10006         fi
10007       else
10008         ld_shlibs=no
10009       fi
10010       ;;
10011
10012     os2*)
10013       hardcode_libdir_flag_spec='-L$libdir'
10014       hardcode_minus_L=yes
10015       allow_undefined_flag=unsupported
10016       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10017       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10018       ;;
10019
10020     osf3*)
10021       if test "$GCC" = yes; then
10022         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10023         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'
10024       else
10025         allow_undefined_flag=' -expect_unresolved \*'
10026         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'
10027       fi
10028       archive_cmds_need_lc='no'
10029       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10030       hardcode_libdir_separator=:
10031       ;;
10032
10033     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10034       if test "$GCC" = yes; then
10035         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10036         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'
10037         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10038       else
10039         allow_undefined_flag=' -expect_unresolved \*'
10040         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'
10041         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~
10042         $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'
10043
10044         # Both c and cxx compiler support -rpath directly
10045         hardcode_libdir_flag_spec='-rpath $libdir'
10046       fi
10047       archive_cmds_need_lc='no'
10048       hardcode_libdir_separator=:
10049       ;;
10050
10051     solaris*)
10052       no_undefined_flag=' -z defs'
10053       if test "$GCC" = yes; then
10054         wlarc='${wl}'
10055         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10056         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10057           $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'
10058       else
10059         case `$CC -V 2>&1` in
10060         *"Compilers 5.0"*)
10061           wlarc=''
10062           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10063           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10064           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10065           ;;
10066         *)
10067           wlarc='${wl}'
10068           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10069           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10070           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10071           ;;
10072         esac
10073       fi
10074       hardcode_libdir_flag_spec='-R$libdir'
10075       hardcode_shlibpath_var=no
10076       case $host_os in
10077       solaris2.[0-5] | solaris2.[0-5].*) ;;
10078       *)
10079         # The compiler driver will combine and reorder linker options,
10080         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10081         # but is careful enough not to reorder.
10082         # Supported since Solaris 2.6 (maybe 2.5.1?)
10083         if test "$GCC" = yes; then
10084           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10085         else
10086           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10087         fi
10088         ;;
10089       esac
10090       link_all_deplibs=yes
10091       ;;
10092
10093     sunos4*)
10094       if test "x$host_vendor" = xsequent; then
10095         # Use $CC to link under sequent, because it throws in some extra .o
10096         # files that make .init and .fini sections work.
10097         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10098       else
10099         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10100       fi
10101       hardcode_libdir_flag_spec='-L$libdir'
10102       hardcode_direct=yes
10103       hardcode_minus_L=yes
10104       hardcode_shlibpath_var=no
10105       ;;
10106
10107     sysv4)
10108       case $host_vendor in
10109         sni)
10110           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111           hardcode_direct=yes # is this really true???
10112         ;;
10113         siemens)
10114           ## LD is ld it makes a PLAMLIB
10115           ## CC just makes a GrossModule.
10116           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10117           reload_cmds='$CC -r -o $output$reload_objs'
10118           hardcode_direct=no
10119         ;;
10120         motorola)
10121           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10123         ;;
10124       esac
10125       runpath_var='LD_RUN_PATH'
10126       hardcode_shlibpath_var=no
10127       ;;
10128
10129     sysv4.3*)
10130       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10131       hardcode_shlibpath_var=no
10132       export_dynamic_flag_spec='-Bexport'
10133       ;;
10134
10135     sysv4*MP*)
10136       if test -d /usr/nec; then
10137         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138         hardcode_shlibpath_var=no
10139         runpath_var=LD_RUN_PATH
10140         hardcode_runpath_var=yes
10141         ld_shlibs=yes
10142       fi
10143       ;;
10144
10145     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10146       no_undefined_flag='${wl}-z,text'
10147       archive_cmds_need_lc=no
10148       hardcode_shlibpath_var=no
10149       runpath_var='LD_RUN_PATH'
10150
10151       if test "$GCC" = yes; then
10152         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154       else
10155         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10157       fi
10158       ;;
10159
10160     sysv5* | sco3.2v5* | sco5v6*)
10161       # Note: We can NOT use -z defs as we might desire, because we do not
10162       # link with -lc, and that would cause any symbols used from libc to
10163       # always be unresolved, which means just about no library would
10164       # ever link correctly.  If we're not using GNU ld we use -z text
10165       # though, which does catch some bad symbols but isn't as heavy-handed
10166       # as -z defs.
10167       no_undefined_flag='${wl}-z,text'
10168       allow_undefined_flag='${wl}-z,nodefs'
10169       archive_cmds_need_lc=no
10170       hardcode_shlibpath_var=no
10171       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10172       hardcode_libdir_separator=':'
10173       link_all_deplibs=yes
10174       export_dynamic_flag_spec='${wl}-Bexport'
10175       runpath_var='LD_RUN_PATH'
10176
10177       if test "$GCC" = yes; then
10178         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180       else
10181         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10183       fi
10184       ;;
10185
10186     uts4*)
10187       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10188       hardcode_libdir_flag_spec='-L$libdir'
10189       hardcode_shlibpath_var=no
10190       ;;
10191
10192     *)
10193       ld_shlibs=no
10194       ;;
10195     esac
10196
10197     if test x$host_vendor = xsni; then
10198       case $host in
10199       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10200         export_dynamic_flag_spec='${wl}-Blargedynsym'
10201         ;;
10202       esac
10203     fi
10204   fi
10205
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10207 $as_echo "$ld_shlibs" >&6; }
10208 test "$ld_shlibs" = no && can_build_shared=no
10209
10210 with_gnu_ld=$with_gnu_ld
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226 #
10227 # Do we need to explicitly link libc?
10228 #
10229 case "x$archive_cmds_need_lc" in
10230 x|xyes)
10231   # Assume -lc should be added
10232   archive_cmds_need_lc=yes
10233
10234   if test "$enable_shared" = yes && test "$GCC" = yes; then
10235     case $archive_cmds in
10236     *'~'*)
10237       # FIXME: we may have to deal with multi-command sequences.
10238       ;;
10239     '$CC '*)
10240       # Test whether the compiler implicitly links with -lc since on some
10241       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10242       # to ld, don't add -lc before -lgcc.
10243       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10244 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10245 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10246   $as_echo_n "(cached) " >&6
10247 else
10248   $RM conftest*
10249         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10250
10251         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10252   (eval $ac_compile) 2>&5
10253   ac_status=$?
10254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10255   test $ac_status = 0; } 2>conftest.err; then
10256           soname=conftest
10257           lib=conftest
10258           libobjs=conftest.$ac_objext
10259           deplibs=
10260           wl=$lt_prog_compiler_wl
10261           pic_flag=$lt_prog_compiler_pic
10262           compiler_flags=-v
10263           linker_flags=-v
10264           verstring=
10265           output_objdir=.
10266           libname=conftest
10267           lt_save_allow_undefined_flag=$allow_undefined_flag
10268           allow_undefined_flag=
10269           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10270   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10271   ac_status=$?
10272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10273   test $ac_status = 0; }
10274           then
10275             lt_cv_archive_cmds_need_lc=no
10276           else
10277             lt_cv_archive_cmds_need_lc=yes
10278           fi
10279           allow_undefined_flag=$lt_save_allow_undefined_flag
10280         else
10281           cat conftest.err 1>&5
10282         fi
10283         $RM conftest*
10284
10285 fi
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10287 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10288       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10289       ;;
10290     esac
10291   fi
10292   ;;
10293 esac
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10447 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10448
10449 if test "$GCC" = yes; then
10450   case $host_os in
10451     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10452     *) lt_awk_arg="/^libraries:/" ;;
10453   esac
10454   case $host_os in
10455     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10456     *) lt_sed_strip_eq="s,=/,/,g" ;;
10457   esac
10458   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10459   case $lt_search_path_spec in
10460   *\;*)
10461     # if the path contains ";" then we assume it to be the separator
10462     # otherwise default to the standard path separator (i.e. ":") - it is
10463     # assumed that no part of a normal pathname contains ";" but that should
10464     # okay in the real world where ";" in dirpaths is itself problematic.
10465     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10466     ;;
10467   *)
10468     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10469     ;;
10470   esac
10471   # Ok, now we have the path, separated by spaces, we can step through it
10472   # and add multilib dir if necessary.
10473   lt_tmp_lt_search_path_spec=
10474   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10475   for lt_sys_path in $lt_search_path_spec; do
10476     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10477       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10478     else
10479       test -d "$lt_sys_path" && \
10480         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10481     fi
10482   done
10483   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10484 BEGIN {RS=" "; FS="/|\n";} {
10485   lt_foo="";
10486   lt_count=0;
10487   for (lt_i = NF; lt_i > 0; lt_i--) {
10488     if ($lt_i != "" && $lt_i != ".") {
10489       if ($lt_i == "..") {
10490         lt_count++;
10491       } else {
10492         if (lt_count == 0) {
10493           lt_foo="/" $lt_i lt_foo;
10494         } else {
10495           lt_count--;
10496         }
10497       }
10498     }
10499   }
10500   if (lt_foo != "") { lt_freq[lt_foo]++; }
10501   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10502 }'`
10503   # AWK program above erroneously prepends '/' to C:/dos/paths
10504   # for these hosts.
10505   case $host_os in
10506     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10507       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10508   esac
10509   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10510 else
10511   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10512 fi
10513 library_names_spec=
10514 libname_spec='lib$name'
10515 soname_spec=
10516 shrext_cmds=".so"
10517 postinstall_cmds=
10518 postuninstall_cmds=
10519 finish_cmds=
10520 finish_eval=
10521 shlibpath_var=
10522 shlibpath_overrides_runpath=unknown
10523 version_type=none
10524 dynamic_linker="$host_os ld.so"
10525 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10526 need_lib_prefix=unknown
10527 hardcode_into_libs=no
10528
10529 # when you set need_version to no, make sure it does not cause -set_version
10530 # flags to be left without arguments
10531 need_version=unknown
10532
10533 case $host_os in
10534 aix3*)
10535   version_type=linux # correct to gnu/linux during the next big refactor
10536   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10537   shlibpath_var=LIBPATH
10538
10539   # AIX 3 has no versioning support, so we append a major version to the name.
10540   soname_spec='${libname}${release}${shared_ext}$major'
10541   ;;
10542
10543 aix[4-9]*)
10544   version_type=linux # correct to gnu/linux during the next big refactor
10545   need_lib_prefix=no
10546   need_version=no
10547   hardcode_into_libs=yes
10548   if test "$host_cpu" = ia64; then
10549     # AIX 5 supports IA64
10550     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10551     shlibpath_var=LD_LIBRARY_PATH
10552   else
10553     # With GCC up to 2.95.x, collect2 would create an import file
10554     # for dependence libraries.  The import file would start with
10555     # the line `#! .'.  This would cause the generated library to
10556     # depend on `.', always an invalid library.  This was fixed in
10557     # development snapshots of GCC prior to 3.0.
10558     case $host_os in
10559       aix4 | aix4.[01] | aix4.[01].*)
10560       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10561            echo ' yes '
10562            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10563         :
10564       else
10565         can_build_shared=no
10566       fi
10567       ;;
10568     esac
10569     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10570     # soname into executable. Probably we can add versioning support to
10571     # collect2, so additional links can be useful in future.
10572     if test "$aix_use_runtimelinking" = yes; then
10573       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10574       # instead of lib<name>.a to let people know that these are not
10575       # typical AIX shared libraries.
10576       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10577     else
10578       # We preserve .a as extension for shared libraries through AIX4.2
10579       # and later when we are not doing run time linking.
10580       library_names_spec='${libname}${release}.a $libname.a'
10581       soname_spec='${libname}${release}${shared_ext}$major'
10582     fi
10583     shlibpath_var=LIBPATH
10584   fi
10585   ;;
10586
10587 amigaos*)
10588   case $host_cpu in
10589   powerpc)
10590     # Since July 2007 AmigaOS4 officially supports .so libraries.
10591     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10592     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593     ;;
10594   m68k)
10595     library_names_spec='$libname.ixlibrary $libname.a'
10596     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10597     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10598     ;;
10599   esac
10600   ;;
10601
10602 beos*)
10603   library_names_spec='${libname}${shared_ext}'
10604   dynamic_linker="$host_os ld.so"
10605   shlibpath_var=LIBRARY_PATH
10606   ;;
10607
10608 bsdi[45]*)
10609   version_type=linux # correct to gnu/linux during the next big refactor
10610   need_version=no
10611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10612   soname_spec='${libname}${release}${shared_ext}$major'
10613   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10614   shlibpath_var=LD_LIBRARY_PATH
10615   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10616   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10617   # the default ld.so.conf also contains /usr/contrib/lib and
10618   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10619   # libtool to hard-code these into programs
10620   ;;
10621
10622 cygwin* | mingw* | pw32* | cegcc*)
10623   version_type=windows
10624   shrext_cmds=".dll"
10625   need_version=no
10626   need_lib_prefix=no
10627
10628   case $GCC,$cc_basename in
10629   yes,*)
10630     # gcc
10631     library_names_spec='$libname.dll.a'
10632     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10633     postinstall_cmds='base_file=`basename \${file}`~
10634       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10635       dldir=$destdir/`dirname \$dlpath`~
10636       test -d \$dldir || mkdir -p \$dldir~
10637       $install_prog $dir/$dlname \$dldir/$dlname~
10638       chmod a+x \$dldir/$dlname~
10639       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10640         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10641       fi'
10642     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10643       dlpath=$dir/\$dldll~
10644        $RM \$dlpath'
10645     shlibpath_overrides_runpath=yes
10646
10647     case $host_os in
10648     cygwin*)
10649       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10650       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10651
10652       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10653       ;;
10654     mingw* | cegcc*)
10655       # MinGW DLLs use traditional 'lib' prefix
10656       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10657       ;;
10658     pw32*)
10659       # pw32 DLLs use 'pw' prefix rather than 'lib'
10660       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10661       ;;
10662     esac
10663     dynamic_linker='Win32 ld.exe'
10664     ;;
10665
10666   *,cl*)
10667     # Native MSVC
10668     libname_spec='$name'
10669     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10670     library_names_spec='${libname}.dll.lib'
10671
10672     case $build_os in
10673     mingw*)
10674       sys_lib_search_path_spec=
10675       lt_save_ifs=$IFS
10676       IFS=';'
10677       for lt_path in $LIB
10678       do
10679         IFS=$lt_save_ifs
10680         # Let DOS variable expansion print the short 8.3 style file name.
10681         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10682         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10683       done
10684       IFS=$lt_save_ifs
10685       # Convert to MSYS style.
10686       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10687       ;;
10688     cygwin*)
10689       # Convert to unix form, then to dos form, then back to unix form
10690       # but this time dos style (no spaces!) so that the unix form looks
10691       # like /cygdrive/c/PROGRA~1:/cygdr...
10692       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10693       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10694       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10695       ;;
10696     *)
10697       sys_lib_search_path_spec="$LIB"
10698       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10699         # It is most probably a Windows format PATH.
10700         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10701       else
10702         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10703       fi
10704       # FIXME: find the short name or the path components, as spaces are
10705       # common. (e.g. "Program Files" -> "PROGRA~1")
10706       ;;
10707     esac
10708
10709     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10710     postinstall_cmds='base_file=`basename \${file}`~
10711       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10712       dldir=$destdir/`dirname \$dlpath`~
10713       test -d \$dldir || mkdir -p \$dldir~
10714       $install_prog $dir/$dlname \$dldir/$dlname'
10715     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10716       dlpath=$dir/\$dldll~
10717        $RM \$dlpath'
10718     shlibpath_overrides_runpath=yes
10719     dynamic_linker='Win32 link.exe'
10720     ;;
10721
10722   *)
10723     # Assume MSVC wrapper
10724     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10725     dynamic_linker='Win32 ld.exe'
10726     ;;
10727   esac
10728   # FIXME: first we should search . and the directory the executable is in
10729   shlibpath_var=PATH
10730   ;;
10731
10732 darwin* | rhapsody*)
10733   dynamic_linker="$host_os dyld"
10734   version_type=darwin
10735   need_lib_prefix=no
10736   need_version=no
10737   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10738   soname_spec='${libname}${release}${major}$shared_ext'
10739   shlibpath_overrides_runpath=yes
10740   shlibpath_var=DYLD_LIBRARY_PATH
10741   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10742
10743   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10744   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10745   ;;
10746
10747 dgux*)
10748   version_type=linux # correct to gnu/linux during the next big refactor
10749   need_lib_prefix=no
10750   need_version=no
10751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10752   soname_spec='${libname}${release}${shared_ext}$major'
10753   shlibpath_var=LD_LIBRARY_PATH
10754   ;;
10755
10756 freebsd* | dragonfly*)
10757   # DragonFly does not have aout.  When/if they implement a new
10758   # versioning mechanism, adjust this.
10759   if test -x /usr/bin/objformat; then
10760     objformat=`/usr/bin/objformat`
10761   else
10762     case $host_os in
10763     freebsd[23].*) objformat=aout ;;
10764     *) objformat=elf ;;
10765     esac
10766   fi
10767   version_type=freebsd-$objformat
10768   case $version_type in
10769     freebsd-elf*)
10770       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10771       need_version=no
10772       need_lib_prefix=no
10773       ;;
10774     freebsd-*)
10775       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10776       need_version=yes
10777       ;;
10778   esac
10779   shlibpath_var=LD_LIBRARY_PATH
10780   case $host_os in
10781   freebsd2.*)
10782     shlibpath_overrides_runpath=yes
10783     ;;
10784   freebsd3.[01]* | freebsdelf3.[01]*)
10785     shlibpath_overrides_runpath=yes
10786     hardcode_into_libs=yes
10787     ;;
10788   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10789   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10790     shlibpath_overrides_runpath=no
10791     hardcode_into_libs=yes
10792     ;;
10793   *) # from 4.6 on, and DragonFly
10794     shlibpath_overrides_runpath=yes
10795     hardcode_into_libs=yes
10796     ;;
10797   esac
10798   ;;
10799
10800 gnu*)
10801   version_type=linux # correct to gnu/linux during the next big refactor
10802   need_lib_prefix=no
10803   need_version=no
10804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10805   soname_spec='${libname}${release}${shared_ext}$major'
10806   shlibpath_var=LD_LIBRARY_PATH
10807   shlibpath_overrides_runpath=no
10808   hardcode_into_libs=yes
10809   ;;
10810
10811 haiku*)
10812   version_type=linux # correct to gnu/linux during the next big refactor
10813   need_lib_prefix=no
10814   need_version=no
10815   dynamic_linker="$host_os runtime_loader"
10816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10817   soname_spec='${libname}${release}${shared_ext}$major'
10818   shlibpath_var=LIBRARY_PATH
10819   shlibpath_overrides_runpath=yes
10820   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10821   hardcode_into_libs=yes
10822   ;;
10823
10824 hpux9* | hpux10* | hpux11*)
10825   # Give a soname corresponding to the major version so that dld.sl refuses to
10826   # link against other versions.
10827   version_type=sunos
10828   need_lib_prefix=no
10829   need_version=no
10830   case $host_cpu in
10831   ia64*)
10832     shrext_cmds='.so'
10833     hardcode_into_libs=yes
10834     dynamic_linker="$host_os dld.so"
10835     shlibpath_var=LD_LIBRARY_PATH
10836     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10837     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838     soname_spec='${libname}${release}${shared_ext}$major'
10839     if test "X$HPUX_IA64_MODE" = X32; then
10840       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10841     else
10842       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10843     fi
10844     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10845     ;;
10846   hppa*64*)
10847     shrext_cmds='.sl'
10848     hardcode_into_libs=yes
10849     dynamic_linker="$host_os dld.sl"
10850     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10851     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10852     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10853     soname_spec='${libname}${release}${shared_ext}$major'
10854     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10855     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10856     ;;
10857   *)
10858     shrext_cmds='.sl'
10859     dynamic_linker="$host_os dld.sl"
10860     shlibpath_var=SHLIB_PATH
10861     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10862     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10863     soname_spec='${libname}${release}${shared_ext}$major'
10864     ;;
10865   esac
10866   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10867   postinstall_cmds='chmod 555 $lib'
10868   # or fails outright, so override atomically:
10869   install_override_mode=555
10870   ;;
10871
10872 interix[3-9]*)
10873   version_type=linux # correct to gnu/linux during the next big refactor
10874   need_lib_prefix=no
10875   need_version=no
10876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10877   soname_spec='${libname}${release}${shared_ext}$major'
10878   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10879   shlibpath_var=LD_LIBRARY_PATH
10880   shlibpath_overrides_runpath=no
10881   hardcode_into_libs=yes
10882   ;;
10883
10884 irix5* | irix6* | nonstopux*)
10885   case $host_os in
10886     nonstopux*) version_type=nonstopux ;;
10887     *)
10888         if test "$lt_cv_prog_gnu_ld" = yes; then
10889                 version_type=linux # correct to gnu/linux during the next big refactor
10890         else
10891                 version_type=irix
10892         fi ;;
10893   esac
10894   need_lib_prefix=no
10895   need_version=no
10896   soname_spec='${libname}${release}${shared_ext}$major'
10897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10898   case $host_os in
10899   irix5* | nonstopux*)
10900     libsuff= shlibsuff=
10901     ;;
10902   *)
10903     case $LD in # libtool.m4 will add one of these switches to LD
10904     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10905       libsuff= shlibsuff= libmagic=32-bit;;
10906     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10907       libsuff=32 shlibsuff=N32 libmagic=N32;;
10908     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10909       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10910     *) libsuff= shlibsuff= libmagic=never-match;;
10911     esac
10912     ;;
10913   esac
10914   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10915   shlibpath_overrides_runpath=no
10916   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10917   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10918   hardcode_into_libs=yes
10919   ;;
10920
10921 # No shared lib support for Linux oldld, aout, or coff.
10922 linux*oldld* | linux*aout* | linux*coff*)
10923   dynamic_linker=no
10924   ;;
10925
10926 # This must be glibc/ELF.
10927 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10928   version_type=linux # correct to gnu/linux during the next big refactor
10929   need_lib_prefix=no
10930   need_version=no
10931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10932   soname_spec='${libname}${release}${shared_ext}$major'
10933   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10934   shlibpath_var=LD_LIBRARY_PATH
10935   shlibpath_overrides_runpath=no
10936
10937   # Some binutils ld are patched to set DT_RUNPATH
10938   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10939   $as_echo_n "(cached) " >&6
10940 else
10941   lt_cv_shlibpath_overrides_runpath=no
10942     save_LDFLAGS=$LDFLAGS
10943     save_libdir=$libdir
10944     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10945          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10946     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h.  */
10948
10949 int
10950 main ()
10951 {
10952
10953   ;
10954   return 0;
10955 }
10956 _ACEOF
10957 if ac_fn_c_try_link "$LINENO"; then :
10958   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10959   lt_cv_shlibpath_overrides_runpath=yes
10960 fi
10961 fi
10962 rm -f core conftest.err conftest.$ac_objext \
10963     conftest$ac_exeext conftest.$ac_ext
10964     LDFLAGS=$save_LDFLAGS
10965     libdir=$save_libdir
10966
10967 fi
10968
10969   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10970
10971   # This implies no fast_install, which is unacceptable.
10972   # Some rework will be needed to allow for fast_install
10973   # before this can be enabled.
10974   hardcode_into_libs=yes
10975
10976   # Append ld.so.conf contents to the search path
10977   if test -f /etc/ld.so.conf; then
10978     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' ' '`
10979     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10980   fi
10981
10982   # We used to test for /lib/ld.so.1 and disable shared libraries on
10983   # powerpc, because MkLinux only supported shared libraries with the
10984   # GNU dynamic linker.  Since this was broken with cross compilers,
10985   # most powerpc-linux boxes support dynamic linking these days and
10986   # people can always --disable-shared, the test was removed, and we
10987   # assume the GNU/Linux dynamic linker is in use.
10988   dynamic_linker='GNU/Linux ld.so'
10989   ;;
10990
10991 netbsd*)
10992   version_type=sunos
10993   need_lib_prefix=no
10994   need_version=no
10995   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10996     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10997     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10998     dynamic_linker='NetBSD (a.out) ld.so'
10999   else
11000     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11001     soname_spec='${libname}${release}${shared_ext}$major'
11002     dynamic_linker='NetBSD ld.elf_so'
11003   fi
11004   shlibpath_var=LD_LIBRARY_PATH
11005   shlibpath_overrides_runpath=yes
11006   hardcode_into_libs=yes
11007   ;;
11008
11009 newsos6)
11010   version_type=linux # correct to gnu/linux during the next big refactor
11011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11012   shlibpath_var=LD_LIBRARY_PATH
11013   shlibpath_overrides_runpath=yes
11014   ;;
11015
11016 *nto* | *qnx*)
11017   version_type=qnx
11018   need_lib_prefix=no
11019   need_version=no
11020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021   soname_spec='${libname}${release}${shared_ext}$major'
11022   shlibpath_var=LD_LIBRARY_PATH
11023   shlibpath_overrides_runpath=no
11024   hardcode_into_libs=yes
11025   dynamic_linker='ldqnx.so'
11026   ;;
11027
11028 openbsd*)
11029   version_type=sunos
11030   sys_lib_dlsearch_path_spec="/usr/lib"
11031   need_lib_prefix=no
11032   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11033   case $host_os in
11034     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11035     *)                          need_version=no  ;;
11036   esac
11037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11038   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11039   shlibpath_var=LD_LIBRARY_PATH
11040   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11041     case $host_os in
11042       openbsd2.[89] | openbsd2.[89].*)
11043         shlibpath_overrides_runpath=no
11044         ;;
11045       *)
11046         shlibpath_overrides_runpath=yes
11047         ;;
11048       esac
11049   else
11050     shlibpath_overrides_runpath=yes
11051   fi
11052   ;;
11053
11054 os2*)
11055   libname_spec='$name'
11056   shrext_cmds=".dll"
11057   need_lib_prefix=no
11058   library_names_spec='$libname${shared_ext} $libname.a'
11059   dynamic_linker='OS/2 ld.exe'
11060   shlibpath_var=LIBPATH
11061   ;;
11062
11063 osf3* | osf4* | osf5*)
11064   version_type=osf
11065   need_lib_prefix=no
11066   need_version=no
11067   soname_spec='${libname}${release}${shared_ext}$major'
11068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069   shlibpath_var=LD_LIBRARY_PATH
11070   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11071   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11072   ;;
11073
11074 rdos*)
11075   dynamic_linker=no
11076   ;;
11077
11078 solaris*)
11079   version_type=linux # correct to gnu/linux during the next big refactor
11080   need_lib_prefix=no
11081   need_version=no
11082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11083   soname_spec='${libname}${release}${shared_ext}$major'
11084   shlibpath_var=LD_LIBRARY_PATH
11085   shlibpath_overrides_runpath=yes
11086   hardcode_into_libs=yes
11087   # ldd complains unless libraries are executable
11088   postinstall_cmds='chmod +x $lib'
11089   ;;
11090
11091 sunos4*)
11092   version_type=sunos
11093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11094   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11095   shlibpath_var=LD_LIBRARY_PATH
11096   shlibpath_overrides_runpath=yes
11097   if test "$with_gnu_ld" = yes; then
11098     need_lib_prefix=no
11099   fi
11100   need_version=yes
11101   ;;
11102
11103 sysv4 | sysv4.3*)
11104   version_type=linux # correct to gnu/linux during the next big refactor
11105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11106   soname_spec='${libname}${release}${shared_ext}$major'
11107   shlibpath_var=LD_LIBRARY_PATH
11108   case $host_vendor in
11109     sni)
11110       shlibpath_overrides_runpath=no
11111       need_lib_prefix=no
11112       runpath_var=LD_RUN_PATH
11113       ;;
11114     siemens)
11115       need_lib_prefix=no
11116       ;;
11117     motorola)
11118       need_lib_prefix=no
11119       need_version=no
11120       shlibpath_overrides_runpath=no
11121       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11122       ;;
11123   esac
11124   ;;
11125
11126 sysv4*MP*)
11127   if test -d /usr/nec ;then
11128     version_type=linux # correct to gnu/linux during the next big refactor
11129     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11130     soname_spec='$libname${shared_ext}.$major'
11131     shlibpath_var=LD_LIBRARY_PATH
11132   fi
11133   ;;
11134
11135 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11136   version_type=freebsd-elf
11137   need_lib_prefix=no
11138   need_version=no
11139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11140   soname_spec='${libname}${release}${shared_ext}$major'
11141   shlibpath_var=LD_LIBRARY_PATH
11142   shlibpath_overrides_runpath=yes
11143   hardcode_into_libs=yes
11144   if test "$with_gnu_ld" = yes; then
11145     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11146   else
11147     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11148     case $host_os in
11149       sco3.2v5*)
11150         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11151         ;;
11152     esac
11153   fi
11154   sys_lib_dlsearch_path_spec='/usr/lib'
11155   ;;
11156
11157 tpf*)
11158   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11159   version_type=linux # correct to gnu/linux during the next big refactor
11160   need_lib_prefix=no
11161   need_version=no
11162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163   shlibpath_var=LD_LIBRARY_PATH
11164   shlibpath_overrides_runpath=no
11165   hardcode_into_libs=yes
11166   ;;
11167
11168 uts4*)
11169   version_type=linux # correct to gnu/linux during the next big refactor
11170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171   soname_spec='${libname}${release}${shared_ext}$major'
11172   shlibpath_var=LD_LIBRARY_PATH
11173   ;;
11174
11175 *)
11176   dynamic_linker=no
11177   ;;
11178 esac
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11180 $as_echo "$dynamic_linker" >&6; }
11181 test "$dynamic_linker" = no && can_build_shared=no
11182
11183 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11184 if test "$GCC" = yes; then
11185   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11186 fi
11187
11188 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11189   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11190 fi
11191 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11192   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11193 fi
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11287 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11288 hardcode_action=
11289 if test -n "$hardcode_libdir_flag_spec" ||
11290    test -n "$runpath_var" ||
11291    test "X$hardcode_automatic" = "Xyes" ; then
11292
11293   # We can hardcode non-existent directories.
11294   if test "$hardcode_direct" != no &&
11295      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11296      # have to relink, otherwise we might link with an installed library
11297      # when we should be linking with a yet-to-be-installed one
11298      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11299      test "$hardcode_minus_L" != no; then
11300     # Linking always hardcodes the temporary library directory.
11301     hardcode_action=relink
11302   else
11303     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11304     hardcode_action=immediate
11305   fi
11306 else
11307   # We cannot hardcode anything, or else we can only hardcode existing
11308   # directories.
11309   hardcode_action=unsupported
11310 fi
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11312 $as_echo "$hardcode_action" >&6; }
11313
11314 if test "$hardcode_action" = relink ||
11315    test "$inherit_rpath" = yes; then
11316   # Fast installation is not supported
11317   enable_fast_install=no
11318 elif test "$shlibpath_overrides_runpath" = yes ||
11319      test "$enable_shared" = no; then
11320   # Fast installation is not necessary
11321   enable_fast_install=needless
11322 fi
11323
11324
11325
11326
11327
11328
11329   if test "x$enable_dlopen" != xyes; then
11330   enable_dlopen=unknown
11331   enable_dlopen_self=unknown
11332   enable_dlopen_self_static=unknown
11333 else
11334   lt_cv_dlopen=no
11335   lt_cv_dlopen_libs=
11336
11337   case $host_os in
11338   beos*)
11339     lt_cv_dlopen="load_add_on"
11340     lt_cv_dlopen_libs=
11341     lt_cv_dlopen_self=yes
11342     ;;
11343
11344   mingw* | pw32* | cegcc*)
11345     lt_cv_dlopen="LoadLibrary"
11346     lt_cv_dlopen_libs=
11347     ;;
11348
11349   cygwin*)
11350     lt_cv_dlopen="dlopen"
11351     lt_cv_dlopen_libs=
11352     ;;
11353
11354   darwin*)
11355   # if libdl is installed we need to link against it
11356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11357 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11358 if ${ac_cv_lib_dl_dlopen+:} false; then :
11359   $as_echo_n "(cached) " >&6
11360 else
11361   ac_check_lib_save_LIBS=$LIBS
11362 LIBS="-ldl  $LIBS"
11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h.  */
11365
11366 /* Override any GCC internal prototype to avoid an error.
11367    Use char because int might match the return type of a GCC
11368    builtin and then its argument prototype would still apply.  */
11369 #ifdef __cplusplus
11370 extern "C"
11371 #endif
11372 char dlopen ();
11373 int
11374 main ()
11375 {
11376 return dlopen ();
11377   ;
11378   return 0;
11379 }
11380 _ACEOF
11381 if ac_fn_c_try_link "$LINENO"; then :
11382   ac_cv_lib_dl_dlopen=yes
11383 else
11384   ac_cv_lib_dl_dlopen=no
11385 fi
11386 rm -f core conftest.err conftest.$ac_objext \
11387     conftest$ac_exeext conftest.$ac_ext
11388 LIBS=$ac_check_lib_save_LIBS
11389 fi
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11391 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11392 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11393   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11394 else
11395
11396     lt_cv_dlopen="dyld"
11397     lt_cv_dlopen_libs=
11398     lt_cv_dlopen_self=yes
11399
11400 fi
11401
11402     ;;
11403
11404   *)
11405     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11406 if test "x$ac_cv_func_shl_load" = xyes; then :
11407   lt_cv_dlopen="shl_load"
11408 else
11409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11410 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11411 if ${ac_cv_lib_dld_shl_load+:} false; then :
11412   $as_echo_n "(cached) " >&6
11413 else
11414   ac_check_lib_save_LIBS=$LIBS
11415 LIBS="-ldld  $LIBS"
11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h.  */
11418
11419 /* Override any GCC internal prototype to avoid an error.
11420    Use char because int might match the return type of a GCC
11421    builtin and then its argument prototype would still apply.  */
11422 #ifdef __cplusplus
11423 extern "C"
11424 #endif
11425 char shl_load ();
11426 int
11427 main ()
11428 {
11429 return shl_load ();
11430   ;
11431   return 0;
11432 }
11433 _ACEOF
11434 if ac_fn_c_try_link "$LINENO"; then :
11435   ac_cv_lib_dld_shl_load=yes
11436 else
11437   ac_cv_lib_dld_shl_load=no
11438 fi
11439 rm -f core conftest.err conftest.$ac_objext \
11440     conftest$ac_exeext conftest.$ac_ext
11441 LIBS=$ac_check_lib_save_LIBS
11442 fi
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11444 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11445 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11446   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11447 else
11448   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11449 if test "x$ac_cv_func_dlopen" = xyes; then :
11450   lt_cv_dlopen="dlopen"
11451 else
11452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11453 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11454 if ${ac_cv_lib_dl_dlopen+:} false; then :
11455   $as_echo_n "(cached) " >&6
11456 else
11457   ac_check_lib_save_LIBS=$LIBS
11458 LIBS="-ldl  $LIBS"
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h.  */
11461
11462 /* Override any GCC internal prototype to avoid an error.
11463    Use char because int might match the return type of a GCC
11464    builtin and then its argument prototype would still apply.  */
11465 #ifdef __cplusplus
11466 extern "C"
11467 #endif
11468 char dlopen ();
11469 int
11470 main ()
11471 {
11472 return dlopen ();
11473   ;
11474   return 0;
11475 }
11476 _ACEOF
11477 if ac_fn_c_try_link "$LINENO"; then :
11478   ac_cv_lib_dl_dlopen=yes
11479 else
11480   ac_cv_lib_dl_dlopen=no
11481 fi
11482 rm -f core conftest.err conftest.$ac_objext \
11483     conftest$ac_exeext conftest.$ac_ext
11484 LIBS=$ac_check_lib_save_LIBS
11485 fi
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11487 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11488 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11489   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11490 else
11491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11492 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11493 if ${ac_cv_lib_svld_dlopen+:} false; then :
11494   $as_echo_n "(cached) " >&6
11495 else
11496   ac_check_lib_save_LIBS=$LIBS
11497 LIBS="-lsvld  $LIBS"
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h.  */
11500
11501 /* Override any GCC internal prototype to avoid an error.
11502    Use char because int might match the return type of a GCC
11503    builtin and then its argument prototype would still apply.  */
11504 #ifdef __cplusplus
11505 extern "C"
11506 #endif
11507 char dlopen ();
11508 int
11509 main ()
11510 {
11511 return dlopen ();
11512   ;
11513   return 0;
11514 }
11515 _ACEOF
11516 if ac_fn_c_try_link "$LINENO"; then :
11517   ac_cv_lib_svld_dlopen=yes
11518 else
11519   ac_cv_lib_svld_dlopen=no
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext \
11522     conftest$ac_exeext conftest.$ac_ext
11523 LIBS=$ac_check_lib_save_LIBS
11524 fi
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11526 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11527 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11528   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11529 else
11530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11531 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11532 if ${ac_cv_lib_dld_dld_link+:} false; then :
11533   $as_echo_n "(cached) " >&6
11534 else
11535   ac_check_lib_save_LIBS=$LIBS
11536 LIBS="-ldld  $LIBS"
11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h.  */
11539
11540 /* Override any GCC internal prototype to avoid an error.
11541    Use char because int might match the return type of a GCC
11542    builtin and then its argument prototype would still apply.  */
11543 #ifdef __cplusplus
11544 extern "C"
11545 #endif
11546 char dld_link ();
11547 int
11548 main ()
11549 {
11550 return dld_link ();
11551   ;
11552   return 0;
11553 }
11554 _ACEOF
11555 if ac_fn_c_try_link "$LINENO"; then :
11556   ac_cv_lib_dld_dld_link=yes
11557 else
11558   ac_cv_lib_dld_dld_link=no
11559 fi
11560 rm -f core conftest.err conftest.$ac_objext \
11561     conftest$ac_exeext conftest.$ac_ext
11562 LIBS=$ac_check_lib_save_LIBS
11563 fi
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11565 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11566 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11567   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11568 fi
11569
11570
11571 fi
11572
11573
11574 fi
11575
11576
11577 fi
11578
11579
11580 fi
11581
11582
11583 fi
11584
11585     ;;
11586   esac
11587
11588   if test "x$lt_cv_dlopen" != xno; then
11589     enable_dlopen=yes
11590   else
11591     enable_dlopen=no
11592   fi
11593
11594   case $lt_cv_dlopen in
11595   dlopen)
11596     save_CPPFLAGS="$CPPFLAGS"
11597     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11598
11599     save_LDFLAGS="$LDFLAGS"
11600     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11601
11602     save_LIBS="$LIBS"
11603     LIBS="$lt_cv_dlopen_libs $LIBS"
11604
11605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11606 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11607 if ${lt_cv_dlopen_self+:} false; then :
11608   $as_echo_n "(cached) " >&6
11609 else
11610           if test "$cross_compiling" = yes; then :
11611   lt_cv_dlopen_self=cross
11612 else
11613   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11614   lt_status=$lt_dlunknown
11615   cat > conftest.$ac_ext <<_LT_EOF
11616 #line $LINENO "configure"
11617 #include "confdefs.h"
11618
11619 #if HAVE_DLFCN_H
11620 #include <dlfcn.h>
11621 #endif
11622
11623 #include <stdio.h>
11624
11625 #ifdef RTLD_GLOBAL
11626 #  define LT_DLGLOBAL           RTLD_GLOBAL
11627 #else
11628 #  ifdef DL_GLOBAL
11629 #    define LT_DLGLOBAL         DL_GLOBAL
11630 #  else
11631 #    define LT_DLGLOBAL         0
11632 #  endif
11633 #endif
11634
11635 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11636    find out it does not work in some platform. */
11637 #ifndef LT_DLLAZY_OR_NOW
11638 #  ifdef RTLD_LAZY
11639 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11640 #  else
11641 #    ifdef DL_LAZY
11642 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11643 #    else
11644 #      ifdef RTLD_NOW
11645 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11646 #      else
11647 #        ifdef DL_NOW
11648 #          define LT_DLLAZY_OR_NOW      DL_NOW
11649 #        else
11650 #          define LT_DLLAZY_OR_NOW      0
11651 #        endif
11652 #      endif
11653 #    endif
11654 #  endif
11655 #endif
11656
11657 /* When -fvisbility=hidden is used, assume the code has been annotated
11658    correspondingly for the symbols needed.  */
11659 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11660 int fnord () __attribute__((visibility("default")));
11661 #endif
11662
11663 int fnord () { return 42; }
11664 int main ()
11665 {
11666   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11667   int status = $lt_dlunknown;
11668
11669   if (self)
11670     {
11671       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11672       else
11673         {
11674           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11675           else puts (dlerror ());
11676         }
11677       /* dlclose (self); */
11678     }
11679   else
11680     puts (dlerror ());
11681
11682   return status;
11683 }
11684 _LT_EOF
11685   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11686   (eval $ac_link) 2>&5
11687   ac_status=$?
11688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11689   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11690     (./conftest; exit; ) >&5 2>/dev/null
11691     lt_status=$?
11692     case x$lt_status in
11693       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11694       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11695       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11696     esac
11697   else :
11698     # compilation failed
11699     lt_cv_dlopen_self=no
11700   fi
11701 fi
11702 rm -fr conftest*
11703
11704
11705 fi
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11707 $as_echo "$lt_cv_dlopen_self" >&6; }
11708
11709     if test "x$lt_cv_dlopen_self" = xyes; then
11710       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11711       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11712 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11713 if ${lt_cv_dlopen_self_static+:} false; then :
11714   $as_echo_n "(cached) " >&6
11715 else
11716           if test "$cross_compiling" = yes; then :
11717   lt_cv_dlopen_self_static=cross
11718 else
11719   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11720   lt_status=$lt_dlunknown
11721   cat > conftest.$ac_ext <<_LT_EOF
11722 #line $LINENO "configure"
11723 #include "confdefs.h"
11724
11725 #if HAVE_DLFCN_H
11726 #include <dlfcn.h>
11727 #endif
11728
11729 #include <stdio.h>
11730
11731 #ifdef RTLD_GLOBAL
11732 #  define LT_DLGLOBAL           RTLD_GLOBAL
11733 #else
11734 #  ifdef DL_GLOBAL
11735 #    define LT_DLGLOBAL         DL_GLOBAL
11736 #  else
11737 #    define LT_DLGLOBAL         0
11738 #  endif
11739 #endif
11740
11741 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11742    find out it does not work in some platform. */
11743 #ifndef LT_DLLAZY_OR_NOW
11744 #  ifdef RTLD_LAZY
11745 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11746 #  else
11747 #    ifdef DL_LAZY
11748 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11749 #    else
11750 #      ifdef RTLD_NOW
11751 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11752 #      else
11753 #        ifdef DL_NOW
11754 #          define LT_DLLAZY_OR_NOW      DL_NOW
11755 #        else
11756 #          define LT_DLLAZY_OR_NOW      0
11757 #        endif
11758 #      endif
11759 #    endif
11760 #  endif
11761 #endif
11762
11763 /* When -fvisbility=hidden is used, assume the code has been annotated
11764    correspondingly for the symbols needed.  */
11765 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11766 int fnord () __attribute__((visibility("default")));
11767 #endif
11768
11769 int fnord () { return 42; }
11770 int main ()
11771 {
11772   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11773   int status = $lt_dlunknown;
11774
11775   if (self)
11776     {
11777       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11778       else
11779         {
11780           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11781           else puts (dlerror ());
11782         }
11783       /* dlclose (self); */
11784     }
11785   else
11786     puts (dlerror ());
11787
11788   return status;
11789 }
11790 _LT_EOF
11791   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11792   (eval $ac_link) 2>&5
11793   ac_status=$?
11794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11795   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11796     (./conftest; exit; ) >&5 2>/dev/null
11797     lt_status=$?
11798     case x$lt_status in
11799       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11800       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11801       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11802     esac
11803   else :
11804     # compilation failed
11805     lt_cv_dlopen_self_static=no
11806   fi
11807 fi
11808 rm -fr conftest*
11809
11810
11811 fi
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11813 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11814     fi
11815
11816     CPPFLAGS="$save_CPPFLAGS"
11817     LDFLAGS="$save_LDFLAGS"
11818     LIBS="$save_LIBS"
11819     ;;
11820   esac
11821
11822   case $lt_cv_dlopen_self in
11823   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11824   *) enable_dlopen_self=unknown ;;
11825   esac
11826
11827   case $lt_cv_dlopen_self_static in
11828   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11829   *) enable_dlopen_self_static=unknown ;;
11830   esac
11831 fi
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849 striplib=
11850 old_striplib=
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11852 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11853 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11854   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11855   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11857 $as_echo "yes" >&6; }
11858 else
11859 # FIXME - insert some real tests, host_os isn't really good enough
11860   case $host_os in
11861   darwin*)
11862     if test -n "$STRIP" ; then
11863       striplib="$STRIP -x"
11864       old_striplib="$STRIP -S"
11865       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11866 $as_echo "yes" >&6; }
11867     else
11868       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11870     fi
11871     ;;
11872   *)
11873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874 $as_echo "no" >&6; }
11875     ;;
11876   esac
11877 fi
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890   # Report which library types will actually be built
11891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11892 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11894 $as_echo "$can_build_shared" >&6; }
11895
11896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11897 $as_echo_n "checking whether to build shared libraries... " >&6; }
11898   test "$can_build_shared" = "no" && enable_shared=no
11899
11900   # On AIX, shared libraries and static libraries use the same namespace, and
11901   # are all built from PIC.
11902   case $host_os in
11903   aix3*)
11904     test "$enable_shared" = yes && enable_static=no
11905     if test -n "$RANLIB"; then
11906       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11907       postinstall_cmds='$RANLIB $lib'
11908     fi
11909     ;;
11910
11911   aix[4-9]*)
11912     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11913       test "$enable_shared" = yes && enable_static=no
11914     fi
11915     ;;
11916   esac
11917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11918 $as_echo "$enable_shared" >&6; }
11919
11920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11921 $as_echo_n "checking whether to build static libraries... " >&6; }
11922   # Make sure either enable_shared or enable_static is yes.
11923   test "$enable_shared" = yes || enable_static=yes
11924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11925 $as_echo "$enable_static" >&6; }
11926
11927
11928
11929
11930 fi
11931 ac_ext=c
11932 ac_cpp='$CPP $CPPFLAGS'
11933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11936
11937 CC="$lt_save_CC"
11938
11939       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11940     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11941     (test "X$CXX" != "Xg++"))) ; then
11942   ac_ext=cpp
11943 ac_cpp='$CXXCPP $CPPFLAGS'
11944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11948 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11949 if test -z "$CXXCPP"; then
11950   if ${ac_cv_prog_CXXCPP+:} false; then :
11951   $as_echo_n "(cached) " >&6
11952 else
11953       # Double quotes because CXXCPP needs to be expanded
11954     for CXXCPP in "$CXX -E" "/lib/cpp"
11955     do
11956       ac_preproc_ok=false
11957 for ac_cxx_preproc_warn_flag in '' yes
11958 do
11959   # Use a header file that comes with gcc, so configuring glibc
11960   # with a fresh cross-compiler works.
11961   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11962   # <limits.h> exists even on freestanding compilers.
11963   # On the NeXT, cc -E runs the code through the compiler's parser,
11964   # not just through cpp. "Syntax error" is here to catch this case.
11965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h.  */
11967 #ifdef __STDC__
11968 # include <limits.h>
11969 #else
11970 # include <assert.h>
11971 #endif
11972                      Syntax error
11973 _ACEOF
11974 if ac_fn_cxx_try_cpp "$LINENO"; then :
11975
11976 else
11977   # Broken: fails on valid input.
11978 continue
11979 fi
11980 rm -f conftest.err conftest.i conftest.$ac_ext
11981
11982   # OK, works on sane cases.  Now check whether nonexistent headers
11983   # can be detected and how.
11984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h.  */
11986 #include <ac_nonexistent.h>
11987 _ACEOF
11988 if ac_fn_cxx_try_cpp "$LINENO"; then :
11989   # Broken: success on invalid input.
11990 continue
11991 else
11992   # Passes both tests.
11993 ac_preproc_ok=:
11994 break
11995 fi
11996 rm -f conftest.err conftest.i conftest.$ac_ext
11997
11998 done
11999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12000 rm -f conftest.i conftest.err conftest.$ac_ext
12001 if $ac_preproc_ok; then :
12002   break
12003 fi
12004
12005     done
12006     ac_cv_prog_CXXCPP=$CXXCPP
12007
12008 fi
12009   CXXCPP=$ac_cv_prog_CXXCPP
12010 else
12011   ac_cv_prog_CXXCPP=$CXXCPP
12012 fi
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12014 $as_echo "$CXXCPP" >&6; }
12015 ac_preproc_ok=false
12016 for ac_cxx_preproc_warn_flag in '' yes
12017 do
12018   # Use a header file that comes with gcc, so configuring glibc
12019   # with a fresh cross-compiler works.
12020   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12021   # <limits.h> exists even on freestanding compilers.
12022   # On the NeXT, cc -E runs the code through the compiler's parser,
12023   # not just through cpp. "Syntax error" is here to catch this case.
12024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h.  */
12026 #ifdef __STDC__
12027 # include <limits.h>
12028 #else
12029 # include <assert.h>
12030 #endif
12031                      Syntax error
12032 _ACEOF
12033 if ac_fn_cxx_try_cpp "$LINENO"; then :
12034
12035 else
12036   # Broken: fails on valid input.
12037 continue
12038 fi
12039 rm -f conftest.err conftest.i conftest.$ac_ext
12040
12041   # OK, works on sane cases.  Now check whether nonexistent headers
12042   # can be detected and how.
12043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h.  */
12045 #include <ac_nonexistent.h>
12046 _ACEOF
12047 if ac_fn_cxx_try_cpp "$LINENO"; then :
12048   # Broken: success on invalid input.
12049 continue
12050 else
12051   # Passes both tests.
12052 ac_preproc_ok=:
12053 break
12054 fi
12055 rm -f conftest.err conftest.i conftest.$ac_ext
12056
12057 done
12058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12059 rm -f conftest.i conftest.err conftest.$ac_ext
12060 if $ac_preproc_ok; then :
12061
12062 else
12063   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12065 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12066 See \`config.log' for more details" "$LINENO" 5; }
12067 fi
12068
12069 ac_ext=c
12070 ac_cpp='$CPP $CPPFLAGS'
12071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12074
12075 else
12076   _lt_caught_CXX_error=yes
12077 fi
12078
12079 ac_ext=cpp
12080 ac_cpp='$CXXCPP $CPPFLAGS'
12081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12084
12085 archive_cmds_need_lc_CXX=no
12086 allow_undefined_flag_CXX=
12087 always_export_symbols_CXX=no
12088 archive_expsym_cmds_CXX=
12089 compiler_needs_object_CXX=no
12090 export_dynamic_flag_spec_CXX=
12091 hardcode_direct_CXX=no
12092 hardcode_direct_absolute_CXX=no
12093 hardcode_libdir_flag_spec_CXX=
12094 hardcode_libdir_separator_CXX=
12095 hardcode_minus_L_CXX=no
12096 hardcode_shlibpath_var_CXX=unsupported
12097 hardcode_automatic_CXX=no
12098 inherit_rpath_CXX=no
12099 module_cmds_CXX=
12100 module_expsym_cmds_CXX=
12101 link_all_deplibs_CXX=unknown
12102 old_archive_cmds_CXX=$old_archive_cmds
12103 reload_flag_CXX=$reload_flag
12104 reload_cmds_CXX=$reload_cmds
12105 no_undefined_flag_CXX=
12106 whole_archive_flag_spec_CXX=
12107 enable_shared_with_static_runtimes_CXX=no
12108
12109 # Source file extension for C++ test sources.
12110 ac_ext=cpp
12111
12112 # Object file extension for compiled C++ test sources.
12113 objext=o
12114 objext_CXX=$objext
12115
12116 # No sense in running all these tests if we already determined that
12117 # the CXX compiler isn't working.  Some variables (like enable_shared)
12118 # are currently assumed to apply to all compilers on this platform,
12119 # and will be corrupted by setting them based on a non-working compiler.
12120 if test "$_lt_caught_CXX_error" != yes; then
12121   # Code to be used in simple compile tests
12122   lt_simple_compile_test_code="int some_variable = 0;"
12123
12124   # Code to be used in simple link tests
12125   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12126
12127   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12128
12129
12130
12131
12132
12133
12134 # If no C compiler was specified, use CC.
12135 LTCC=${LTCC-"$CC"}
12136
12137 # If no C compiler flags were specified, use CFLAGS.
12138 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12139
12140 # Allow CC to be a program name with arguments.
12141 compiler=$CC
12142
12143
12144   # save warnings/boilerplate of simple test code
12145   ac_outfile=conftest.$ac_objext
12146 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12147 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12148 _lt_compiler_boilerplate=`cat conftest.err`
12149 $RM conftest*
12150
12151   ac_outfile=conftest.$ac_objext
12152 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12153 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12154 _lt_linker_boilerplate=`cat conftest.err`
12155 $RM -r conftest*
12156
12157
12158   # Allow CC to be a program name with arguments.
12159   lt_save_CC=$CC
12160   lt_save_CFLAGS=$CFLAGS
12161   lt_save_LD=$LD
12162   lt_save_GCC=$GCC
12163   GCC=$GXX
12164   lt_save_with_gnu_ld=$with_gnu_ld
12165   lt_save_path_LD=$lt_cv_path_LD
12166   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12167     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12168   else
12169     $as_unset lt_cv_prog_gnu_ld
12170   fi
12171   if test -n "${lt_cv_path_LDCXX+set}"; then
12172     lt_cv_path_LD=$lt_cv_path_LDCXX
12173   else
12174     $as_unset lt_cv_path_LD
12175   fi
12176   test -z "${LDCXX+set}" || LD=$LDCXX
12177   CC=${CXX-"c++"}
12178   CFLAGS=$CXXFLAGS
12179   compiler=$CC
12180   compiler_CXX=$CC
12181   for cc_temp in $compiler""; do
12182   case $cc_temp in
12183     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12184     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12185     \-*) ;;
12186     *) break;;
12187   esac
12188 done
12189 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12190
12191
12192   if test -n "$compiler"; then
12193     # We don't want -fno-exception when compiling C++ code, so set the
12194     # no_builtin_flag separately
12195     if test "$GXX" = yes; then
12196       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12197     else
12198       lt_prog_compiler_no_builtin_flag_CXX=
12199     fi
12200
12201     if test "$GXX" = yes; then
12202       # Set up default GNU C++ configuration
12203
12204
12205
12206 # Check whether --with-gnu-ld was given.
12207 if test "${with_gnu_ld+set}" = set; then :
12208   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12209 else
12210   with_gnu_ld=no
12211 fi
12212
12213 ac_prog=ld
12214 if test "$GCC" = yes; then
12215   # Check if gcc -print-prog-name=ld gives a path.
12216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12217 $as_echo_n "checking for ld used by $CC... " >&6; }
12218   case $host in
12219   *-*-mingw*)
12220     # gcc leaves a trailing carriage return which upsets mingw
12221     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12222   *)
12223     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12224   esac
12225   case $ac_prog in
12226     # Accept absolute paths.
12227     [\\/]* | ?:[\\/]*)
12228       re_direlt='/[^/][^/]*/\.\./'
12229       # Canonicalize the pathname of ld
12230       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12231       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12232         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12233       done
12234       test -z "$LD" && LD="$ac_prog"
12235       ;;
12236   "")
12237     # If it fails, then pretend we aren't using GCC.
12238     ac_prog=ld
12239     ;;
12240   *)
12241     # If it is relative, then search for the first ld in PATH.
12242     with_gnu_ld=unknown
12243     ;;
12244   esac
12245 elif test "$with_gnu_ld" = yes; then
12246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12247 $as_echo_n "checking for GNU ld... " >&6; }
12248 else
12249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12250 $as_echo_n "checking for non-GNU ld... " >&6; }
12251 fi
12252 if ${lt_cv_path_LD+:} false; then :
12253   $as_echo_n "(cached) " >&6
12254 else
12255   if test -z "$LD"; then
12256   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12257   for ac_dir in $PATH; do
12258     IFS="$lt_save_ifs"
12259     test -z "$ac_dir" && ac_dir=.
12260     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12261       lt_cv_path_LD="$ac_dir/$ac_prog"
12262       # Check to see if the program is GNU ld.  I'd rather use --version,
12263       # but apparently some variants of GNU ld only accept -v.
12264       # Break only if it was the GNU/non-GNU ld that we prefer.
12265       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12266       *GNU* | *'with BFD'*)
12267         test "$with_gnu_ld" != no && break
12268         ;;
12269       *)
12270         test "$with_gnu_ld" != yes && break
12271         ;;
12272       esac
12273     fi
12274   done
12275   IFS="$lt_save_ifs"
12276 else
12277   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12278 fi
12279 fi
12280
12281 LD="$lt_cv_path_LD"
12282 if test -n "$LD"; then
12283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12284 $as_echo "$LD" >&6; }
12285 else
12286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12288 fi
12289 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12291 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12292 if ${lt_cv_prog_gnu_ld+:} false; then :
12293   $as_echo_n "(cached) " >&6
12294 else
12295   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12296 case `$LD -v 2>&1 </dev/null` in
12297 *GNU* | *'with BFD'*)
12298   lt_cv_prog_gnu_ld=yes
12299   ;;
12300 *)
12301   lt_cv_prog_gnu_ld=no
12302   ;;
12303 esac
12304 fi
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12306 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12307 with_gnu_ld=$lt_cv_prog_gnu_ld
12308
12309
12310
12311
12312
12313
12314
12315       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12316       # archiving commands below assume that GNU ld is being used.
12317       if test "$with_gnu_ld" = yes; then
12318         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12319         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'
12320
12321         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12322         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12323
12324         # If archive_cmds runs LD, not CC, wlarc should be empty
12325         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12326         #     investigate it a little bit more. (MM)
12327         wlarc='${wl}'
12328
12329         # ancient GNU ld didn't support --whole-archive et. al.
12330         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12331           $GREP 'no-whole-archive' > /dev/null; then
12332           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12333         else
12334           whole_archive_flag_spec_CXX=
12335         fi
12336       else
12337         with_gnu_ld=no
12338         wlarc=
12339
12340         # A generic and very simple default shared library creation
12341         # command for GNU C++ for the case where it uses the native
12342         # linker, instead of GNU ld.  If possible, this setting should
12343         # overridden to take advantage of the native linker features on
12344         # the platform it is being used on.
12345         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12346       fi
12347
12348       # Commands to make compiler produce verbose output that lists
12349       # what "hidden" libraries, object files and flags are used when
12350       # linking a shared library.
12351       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12352
12353     else
12354       GXX=no
12355       with_gnu_ld=no
12356       wlarc=
12357     fi
12358
12359     # PORTME: fill in a description of your system's C++ link characteristics
12360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12361 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12362     ld_shlibs_CXX=yes
12363     case $host_os in
12364       aix3*)
12365         # FIXME: insert proper C++ library support
12366         ld_shlibs_CXX=no
12367         ;;
12368       aix[4-9]*)
12369         if test "$host_cpu" = ia64; then
12370           # On IA64, the linker does run time linking by default, so we don't
12371           # have to do anything special.
12372           aix_use_runtimelinking=no
12373           exp_sym_flag='-Bexport'
12374           no_entry_flag=""
12375         else
12376           aix_use_runtimelinking=no
12377
12378           # Test if we are trying to use run time linking or normal
12379           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12380           # need to do runtime linking.
12381           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12382             for ld_flag in $LDFLAGS; do
12383               case $ld_flag in
12384               *-brtl*)
12385                 aix_use_runtimelinking=yes
12386                 break
12387                 ;;
12388               esac
12389             done
12390             ;;
12391           esac
12392
12393           exp_sym_flag='-bexport'
12394           no_entry_flag='-bnoentry'
12395         fi
12396
12397         # When large executables or shared objects are built, AIX ld can
12398         # have problems creating the table of contents.  If linking a library
12399         # or program results in "error TOC overflow" add -mminimal-toc to
12400         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12401         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12402
12403         archive_cmds_CXX=''
12404         hardcode_direct_CXX=yes
12405         hardcode_direct_absolute_CXX=yes
12406         hardcode_libdir_separator_CXX=':'
12407         link_all_deplibs_CXX=yes
12408         file_list_spec_CXX='${wl}-f,'
12409
12410         if test "$GXX" = yes; then
12411           case $host_os in aix4.[012]|aix4.[012].*)
12412           # We only want to do this on AIX 4.2 and lower, the check
12413           # below for broken collect2 doesn't work under 4.3+
12414           collect2name=`${CC} -print-prog-name=collect2`
12415           if test -f "$collect2name" &&
12416              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12417           then
12418             # We have reworked collect2
12419             :
12420           else
12421             # We have old collect2
12422             hardcode_direct_CXX=unsupported
12423             # It fails to find uninstalled libraries when the uninstalled
12424             # path is not listed in the libpath.  Setting hardcode_minus_L
12425             # to unsupported forces relinking
12426             hardcode_minus_L_CXX=yes
12427             hardcode_libdir_flag_spec_CXX='-L$libdir'
12428             hardcode_libdir_separator_CXX=
12429           fi
12430           esac
12431           shared_flag='-shared'
12432           if test "$aix_use_runtimelinking" = yes; then
12433             shared_flag="$shared_flag "'${wl}-G'
12434           fi
12435         else
12436           # not using gcc
12437           if test "$host_cpu" = ia64; then
12438           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12439           # chokes on -Wl,-G. The following line is correct:
12440           shared_flag='-G'
12441           else
12442             if test "$aix_use_runtimelinking" = yes; then
12443               shared_flag='${wl}-G'
12444             else
12445               shared_flag='${wl}-bM:SRE'
12446             fi
12447           fi
12448         fi
12449
12450         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12451         # It seems that -bexpall does not export symbols beginning with
12452         # underscore (_), so it is better to generate a list of symbols to
12453         # export.
12454         always_export_symbols_CXX=yes
12455         if test "$aix_use_runtimelinking" = yes; then
12456           # Warning - without using the other runtime loading flags (-brtl),
12457           # -berok will link without error, but may produce a broken library.
12458           allow_undefined_flag_CXX='-berok'
12459           # Determine the default libpath from the value encoded in an empty
12460           # executable.
12461           if test "${lt_cv_aix_libpath+set}" = set; then
12462   aix_libpath=$lt_cv_aix_libpath
12463 else
12464   if ${lt_cv_aix_libpath__CXX+:} false; then :
12465   $as_echo_n "(cached) " >&6
12466 else
12467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h.  */
12469
12470 int
12471 main ()
12472 {
12473
12474   ;
12475   return 0;
12476 }
12477 _ACEOF
12478 if ac_fn_cxx_try_link "$LINENO"; then :
12479
12480   lt_aix_libpath_sed='
12481       /Import File Strings/,/^$/ {
12482           /^0/ {
12483               s/^0  *\([^ ]*\) *$/\1/
12484               p
12485           }
12486       }'
12487   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12488   # Check for a 64-bit object if we didn't find anything.
12489   if test -z "$lt_cv_aix_libpath__CXX"; then
12490     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12491   fi
12492 fi
12493 rm -f core conftest.err conftest.$ac_objext \
12494     conftest$ac_exeext conftest.$ac_ext
12495   if test -z "$lt_cv_aix_libpath__CXX"; then
12496     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12497   fi
12498
12499 fi
12500
12501   aix_libpath=$lt_cv_aix_libpath__CXX
12502 fi
12503
12504           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12505
12506           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12507         else
12508           if test "$host_cpu" = ia64; then
12509             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12510             allow_undefined_flag_CXX="-z nodefs"
12511             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"
12512           else
12513             # Determine the default libpath from the value encoded in an
12514             # empty executable.
12515             if test "${lt_cv_aix_libpath+set}" = set; then
12516   aix_libpath=$lt_cv_aix_libpath
12517 else
12518   if ${lt_cv_aix_libpath__CXX+:} false; then :
12519   $as_echo_n "(cached) " >&6
12520 else
12521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h.  */
12523
12524 int
12525 main ()
12526 {
12527
12528   ;
12529   return 0;
12530 }
12531 _ACEOF
12532 if ac_fn_cxx_try_link "$LINENO"; then :
12533
12534   lt_aix_libpath_sed='
12535       /Import File Strings/,/^$/ {
12536           /^0/ {
12537               s/^0  *\([^ ]*\) *$/\1/
12538               p
12539           }
12540       }'
12541   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12542   # Check for a 64-bit object if we didn't find anything.
12543   if test -z "$lt_cv_aix_libpath__CXX"; then
12544     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12545   fi
12546 fi
12547 rm -f core conftest.err conftest.$ac_objext \
12548     conftest$ac_exeext conftest.$ac_ext
12549   if test -z "$lt_cv_aix_libpath__CXX"; then
12550     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12551   fi
12552
12553 fi
12554
12555   aix_libpath=$lt_cv_aix_libpath__CXX
12556 fi
12557
12558             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12559             # Warning - without using the other run time loading flags,
12560             # -berok will link without error, but may produce a broken library.
12561             no_undefined_flag_CXX=' ${wl}-bernotok'
12562             allow_undefined_flag_CXX=' ${wl}-berok'
12563             if test "$with_gnu_ld" = yes; then
12564               # We only use this code for GNU lds that support --whole-archive.
12565               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12566             else
12567               # Exported symbols can be pulled into shared objects from archives
12568               whole_archive_flag_spec_CXX='$convenience'
12569             fi
12570             archive_cmds_need_lc_CXX=yes
12571             # This is similar to how AIX traditionally builds its shared
12572             # libraries.
12573             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12574           fi
12575         fi
12576         ;;
12577
12578       beos*)
12579         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12580           allow_undefined_flag_CXX=unsupported
12581           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12582           # support --undefined.  This deserves some investigation.  FIXME
12583           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12584         else
12585           ld_shlibs_CXX=no
12586         fi
12587         ;;
12588
12589       chorus*)
12590         case $cc_basename in
12591           *)
12592           # FIXME: insert proper C++ library support
12593           ld_shlibs_CXX=no
12594           ;;
12595         esac
12596         ;;
12597
12598       cygwin* | mingw* | pw32* | cegcc*)
12599         case $GXX,$cc_basename in
12600         ,cl* | no,cl*)
12601           # Native MSVC
12602           # hardcode_libdir_flag_spec is actually meaningless, as there is
12603           # no search path for DLLs.
12604           hardcode_libdir_flag_spec_CXX=' '
12605           allow_undefined_flag_CXX=unsupported
12606           always_export_symbols_CXX=yes
12607           file_list_spec_CXX='@'
12608           # Tell ltmain to make .lib files, not .a files.
12609           libext=lib
12610           # Tell ltmain to make .dll files, not .so files.
12611           shrext_cmds=".dll"
12612           # FIXME: Setting linknames here is a bad hack.
12613           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12614           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12615               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12616             else
12617               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12618             fi~
12619             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12620             linknames='
12621           # The linker will not automatically build a static lib if we build a DLL.
12622           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12623           enable_shared_with_static_runtimes_CXX=yes
12624           # Don't use ranlib
12625           old_postinstall_cmds_CXX='chmod 644 $oldlib'
12626           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12627             lt_tool_outputfile="@TOOL_OUTPUT@"~
12628             case $lt_outputfile in
12629               *.exe|*.EXE) ;;
12630               *)
12631                 lt_outputfile="$lt_outputfile.exe"
12632                 lt_tool_outputfile="$lt_tool_outputfile.exe"
12633                 ;;
12634             esac~
12635             func_to_tool_file "$lt_outputfile"~
12636             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12637               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12638               $RM "$lt_outputfile.manifest";
12639             fi'
12640           ;;
12641         *)
12642           # g++
12643           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12644           # as there is no search path for DLLs.
12645           hardcode_libdir_flag_spec_CXX='-L$libdir'
12646           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12647           allow_undefined_flag_CXX=unsupported
12648           always_export_symbols_CXX=no
12649           enable_shared_with_static_runtimes_CXX=yes
12650
12651           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12652             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'
12653             # If the export-symbols file already is a .def file (1st line
12654             # is EXPORTS), use it as is; otherwise, prepend...
12655             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12656               cp $export_symbols $output_objdir/$soname.def;
12657             else
12658               echo EXPORTS > $output_objdir/$soname.def;
12659               cat $export_symbols >> $output_objdir/$soname.def;
12660             fi~
12661             $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'
12662           else
12663             ld_shlibs_CXX=no
12664           fi
12665           ;;
12666         esac
12667         ;;
12668       darwin* | rhapsody*)
12669
12670
12671   archive_cmds_need_lc_CXX=no
12672   hardcode_direct_CXX=no
12673   hardcode_automatic_CXX=yes
12674   hardcode_shlibpath_var_CXX=unsupported
12675   if test "$lt_cv_ld_force_load" = "yes"; then
12676     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\"`'
12677
12678   else
12679     whole_archive_flag_spec_CXX=''
12680   fi
12681   link_all_deplibs_CXX=yes
12682   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12683   case $cc_basename in
12684      ifort*) _lt_dar_can_shared=yes ;;
12685      *) _lt_dar_can_shared=$GCC ;;
12686   esac
12687   if test "$_lt_dar_can_shared" = "yes"; then
12688     output_verbose_link_cmd=func_echo_all
12689     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}"
12690     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12691     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}"
12692     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}"
12693        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12694       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}"
12695       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}"
12696     fi
12697
12698   else
12699   ld_shlibs_CXX=no
12700   fi
12701
12702         ;;
12703
12704       dgux*)
12705         case $cc_basename in
12706           ec++*)
12707             # FIXME: insert proper C++ library support
12708             ld_shlibs_CXX=no
12709             ;;
12710           ghcx*)
12711             # Green Hills C++ Compiler
12712             # FIXME: insert proper C++ library support
12713             ld_shlibs_CXX=no
12714             ;;
12715           *)
12716             # FIXME: insert proper C++ library support
12717             ld_shlibs_CXX=no
12718             ;;
12719         esac
12720         ;;
12721
12722       freebsd2.*)
12723         # C++ shared libraries reported to be fairly broken before
12724         # switch to ELF
12725         ld_shlibs_CXX=no
12726         ;;
12727
12728       freebsd-elf*)
12729         archive_cmds_need_lc_CXX=no
12730         ;;
12731
12732       freebsd* | dragonfly*)
12733         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12734         # conventions
12735         ld_shlibs_CXX=yes
12736         ;;
12737
12738       gnu*)
12739         ;;
12740
12741       haiku*)
12742         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12743         link_all_deplibs_CXX=yes
12744         ;;
12745
12746       hpux9*)
12747         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12748         hardcode_libdir_separator_CXX=:
12749         export_dynamic_flag_spec_CXX='${wl}-E'
12750         hardcode_direct_CXX=yes
12751         hardcode_minus_L_CXX=yes # Not in the search PATH,
12752                                              # but as the default
12753                                              # location of the library.
12754
12755         case $cc_basename in
12756           CC*)
12757             # FIXME: insert proper C++ library support
12758             ld_shlibs_CXX=no
12759             ;;
12760           aCC*)
12761             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12762             # Commands to make compiler produce verbose output that lists
12763             # what "hidden" libraries, object files and flags are used when
12764             # linking a shared library.
12765             #
12766             # There doesn't appear to be a way to prevent this compiler from
12767             # explicitly linking system object files so we need to strip them
12768             # from the output so that they don't get included in the library
12769             # dependencies.
12770             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"'
12771             ;;
12772           *)
12773             if test "$GXX" = yes; then
12774               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12775             else
12776               # FIXME: insert proper C++ library support
12777               ld_shlibs_CXX=no
12778             fi
12779             ;;
12780         esac
12781         ;;
12782
12783       hpux10*|hpux11*)
12784         if test $with_gnu_ld = no; then
12785           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12786           hardcode_libdir_separator_CXX=:
12787
12788           case $host_cpu in
12789             hppa*64*|ia64*)
12790               ;;
12791             *)
12792               export_dynamic_flag_spec_CXX='${wl}-E'
12793               ;;
12794           esac
12795         fi
12796         case $host_cpu in
12797           hppa*64*|ia64*)
12798             hardcode_direct_CXX=no
12799             hardcode_shlibpath_var_CXX=no
12800             ;;
12801           *)
12802             hardcode_direct_CXX=yes
12803             hardcode_direct_absolute_CXX=yes
12804             hardcode_minus_L_CXX=yes # Not in the search PATH,
12805                                                  # but as the default
12806                                                  # location of the library.
12807             ;;
12808         esac
12809
12810         case $cc_basename in
12811           CC*)
12812             # FIXME: insert proper C++ library support
12813             ld_shlibs_CXX=no
12814             ;;
12815           aCC*)
12816             case $host_cpu in
12817               hppa*64*)
12818                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12819                 ;;
12820               ia64*)
12821                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12822                 ;;
12823               *)
12824                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12825                 ;;
12826             esac
12827             # Commands to make compiler produce verbose output that lists
12828             # what "hidden" libraries, object files and flags are used when
12829             # linking a shared library.
12830             #
12831             # There doesn't appear to be a way to prevent this compiler from
12832             # explicitly linking system object files so we need to strip them
12833             # from the output so that they don't get included in the library
12834             # dependencies.
12835             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"'
12836             ;;
12837           *)
12838             if test "$GXX" = yes; then
12839               if test $with_gnu_ld = no; then
12840                 case $host_cpu in
12841                   hppa*64*)
12842                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12843                     ;;
12844                   ia64*)
12845                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12846                     ;;
12847                   *)
12848                     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'
12849                     ;;
12850                 esac
12851               fi
12852             else
12853               # FIXME: insert proper C++ library support
12854               ld_shlibs_CXX=no
12855             fi
12856             ;;
12857         esac
12858         ;;
12859
12860       interix[3-9]*)
12861         hardcode_direct_CXX=no
12862         hardcode_shlibpath_var_CXX=no
12863         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12864         export_dynamic_flag_spec_CXX='${wl}-E'
12865         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12866         # Instead, shared libraries are loaded at an image base (0x10000000 by
12867         # default) and relocated if they conflict, which is a slow very memory
12868         # consuming and fragmenting process.  To avoid this, we pick a random,
12869         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12870         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12871         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'
12872         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'
12873         ;;
12874       irix5* | irix6*)
12875         case $cc_basename in
12876           CC*)
12877             # SGI C++
12878             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'
12879
12880             # Archives containing C++ object files must be created using
12881             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12882             # necessary to make sure instantiated templates are included
12883             # in the archive.
12884             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12885             ;;
12886           *)
12887             if test "$GXX" = yes; then
12888               if test "$with_gnu_ld" = no; then
12889                 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'
12890               else
12891                 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'
12892               fi
12893             fi
12894             link_all_deplibs_CXX=yes
12895             ;;
12896         esac
12897         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12898         hardcode_libdir_separator_CXX=:
12899         inherit_rpath_CXX=yes
12900         ;;
12901
12902       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12903         case $cc_basename in
12904           KCC*)
12905             # Kuck and Associates, Inc. (KAI) C++ Compiler
12906
12907             # KCC will only create a shared library if the output file
12908             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12909             # to its proper name (with version) after linking.
12910             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'
12911             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'
12912             # Commands to make compiler produce verbose output that lists
12913             # what "hidden" libraries, object files and flags are used when
12914             # linking a shared library.
12915             #
12916             # There doesn't appear to be a way to prevent this compiler from
12917             # explicitly linking system object files so we need to strip them
12918             # from the output so that they don't get included in the library
12919             # dependencies.
12920             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"'
12921
12922             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12923             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12924
12925             # Archives containing C++ object files must be created using
12926             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12927             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12928             ;;
12929           icpc* | ecpc* )
12930             # Intel C++
12931             with_gnu_ld=yes
12932             # version 8.0 and above of icpc choke on multiply defined symbols
12933             # if we add $predep_objects and $postdep_objects, however 7.1 and
12934             # earlier do not add the objects themselves.
12935             case `$CC -V 2>&1` in
12936               *"Version 7."*)
12937                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12938                 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'
12939                 ;;
12940               *)  # Version 8.0 or newer
12941                 tmp_idyn=
12942                 case $host_cpu in
12943                   ia64*) tmp_idyn=' -i_dynamic';;
12944                 esac
12945                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12946                 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'
12947                 ;;
12948             esac
12949             archive_cmds_need_lc_CXX=no
12950             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12951             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12952             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12953             ;;
12954           pgCC* | pgcpp*)
12955             # Portland Group C++ compiler
12956             case `$CC -V` in
12957             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12958               prelink_cmds_CXX='tpldir=Template.dir~
12959                 rm -rf $tpldir~
12960                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12961                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12962               old_archive_cmds_CXX='tpldir=Template.dir~
12963                 rm -rf $tpldir~
12964                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12965                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12966                 $RANLIB $oldlib'
12967               archive_cmds_CXX='tpldir=Template.dir~
12968                 rm -rf $tpldir~
12969                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12970                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12971               archive_expsym_cmds_CXX='tpldir=Template.dir~
12972                 rm -rf $tpldir~
12973                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12974                 $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'
12975               ;;
12976             *) # Version 6 and above use weak symbols
12977               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12978               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'
12979               ;;
12980             esac
12981
12982             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12983             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12984             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'
12985             ;;
12986           cxx*)
12987             # Compaq C++
12988             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12989             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'
12990
12991             runpath_var=LD_RUN_PATH
12992             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12993             hardcode_libdir_separator_CXX=:
12994
12995             # Commands to make compiler produce verbose output that lists
12996             # what "hidden" libraries, object files and flags are used when
12997             # linking a shared library.
12998             #
12999             # There doesn't appear to be a way to prevent this compiler from
13000             # explicitly linking system object files so we need to strip them
13001             # from the output so that they don't get included in the library
13002             # dependencies.
13003             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'
13004             ;;
13005           xl* | mpixl* | bgxl*)
13006             # IBM XL 8.0 on PPC, with GNU ld
13007             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13008             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13009             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13010             if test "x$supports_anon_versioning" = xyes; then
13011               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13012                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13013                 echo "local: *; };" >> $output_objdir/$libname.ver~
13014                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13015             fi
13016             ;;
13017           *)
13018             case `$CC -V 2>&1 | sed 5q` in
13019             *Sun\ C*)
13020               # Sun C++ 5.9
13021               no_undefined_flag_CXX=' -zdefs'
13022               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13023               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'
13024               hardcode_libdir_flag_spec_CXX='-R$libdir'
13025               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'
13026               compiler_needs_object_CXX=yes
13027
13028               # Not sure whether something based on
13029               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13030               # would be better.
13031               output_verbose_link_cmd='func_echo_all'
13032
13033               # Archives containing C++ object files must be created using
13034               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13035               # necessary to make sure instantiated templates are included
13036               # in the archive.
13037               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13038               ;;
13039             esac
13040             ;;
13041         esac
13042         ;;
13043
13044       lynxos*)
13045         # FIXME: insert proper C++ library support
13046         ld_shlibs_CXX=no
13047         ;;
13048
13049       m88k*)
13050         # FIXME: insert proper C++ library support
13051         ld_shlibs_CXX=no
13052         ;;
13053
13054       mvs*)
13055         case $cc_basename in
13056           cxx*)
13057             # FIXME: insert proper C++ library support
13058             ld_shlibs_CXX=no
13059             ;;
13060           *)
13061             # FIXME: insert proper C++ library support
13062             ld_shlibs_CXX=no
13063             ;;
13064         esac
13065         ;;
13066
13067       netbsd*)
13068         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13069           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13070           wlarc=
13071           hardcode_libdir_flag_spec_CXX='-R$libdir'
13072           hardcode_direct_CXX=yes
13073           hardcode_shlibpath_var_CXX=no
13074         fi
13075         # Workaround some broken pre-1.5 toolchains
13076         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13077         ;;
13078
13079       *nto* | *qnx*)
13080         ld_shlibs_CXX=yes
13081         ;;
13082
13083       openbsd2*)
13084         # C++ shared libraries are fairly broken
13085         ld_shlibs_CXX=no
13086         ;;
13087
13088       openbsd*)
13089         if test -f /usr/libexec/ld.so; then
13090           hardcode_direct_CXX=yes
13091           hardcode_shlibpath_var_CXX=no
13092           hardcode_direct_absolute_CXX=yes
13093           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13094           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13095           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13096             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13097             export_dynamic_flag_spec_CXX='${wl}-E'
13098             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13099           fi
13100           output_verbose_link_cmd=func_echo_all
13101         else
13102           ld_shlibs_CXX=no
13103         fi
13104         ;;
13105
13106       osf3* | osf4* | osf5*)
13107         case $cc_basename in
13108           KCC*)
13109             # Kuck and Associates, Inc. (KAI) C++ Compiler
13110
13111             # KCC will only create a shared library if the output file
13112             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13113             # to its proper name (with version) after linking.
13114             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'
13115
13116             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13117             hardcode_libdir_separator_CXX=:
13118
13119             # Archives containing C++ object files must be created using
13120             # the KAI C++ compiler.
13121             case $host in
13122               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13123               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13124             esac
13125             ;;
13126           RCC*)
13127             # Rational C++ 2.4.1
13128             # FIXME: insert proper C++ library support
13129             ld_shlibs_CXX=no
13130             ;;
13131           cxx*)
13132             case $host in
13133               osf3*)
13134                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13135                 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'
13136                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13137                 ;;
13138               *)
13139                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13140                 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'
13141                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13142                   echo "-hidden">> $lib.exp~
13143                   $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~
13144                   $RM $lib.exp'
13145                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13146                 ;;
13147             esac
13148
13149             hardcode_libdir_separator_CXX=:
13150
13151             # Commands to make compiler produce verbose output that lists
13152             # what "hidden" libraries, object files and flags are used when
13153             # linking a shared library.
13154             #
13155             # There doesn't appear to be a way to prevent this compiler from
13156             # explicitly linking system object files so we need to strip them
13157             # from the output so that they don't get included in the library
13158             # dependencies.
13159             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"'
13160             ;;
13161           *)
13162             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13163               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13164               case $host in
13165                 osf3*)
13166                   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'
13167                   ;;
13168                 *)
13169                   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'
13170                   ;;
13171               esac
13172
13173               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13174               hardcode_libdir_separator_CXX=:
13175
13176               # Commands to make compiler produce verbose output that lists
13177               # what "hidden" libraries, object files and flags are used when
13178               # linking a shared library.
13179               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13180
13181             else
13182               # FIXME: insert proper C++ library support
13183               ld_shlibs_CXX=no
13184             fi
13185             ;;
13186         esac
13187         ;;
13188
13189       psos*)
13190         # FIXME: insert proper C++ library support
13191         ld_shlibs_CXX=no
13192         ;;
13193
13194       sunos4*)
13195         case $cc_basename in
13196           CC*)
13197             # Sun C++ 4.x
13198             # FIXME: insert proper C++ library support
13199             ld_shlibs_CXX=no
13200             ;;
13201           lcc*)
13202             # Lucid
13203             # FIXME: insert proper C++ library support
13204             ld_shlibs_CXX=no
13205             ;;
13206           *)
13207             # FIXME: insert proper C++ library support
13208             ld_shlibs_CXX=no
13209             ;;
13210         esac
13211         ;;
13212
13213       solaris*)
13214         case $cc_basename in
13215           CC* | sunCC*)
13216             # Sun C++ 4.2, 5.x and Centerline C++
13217             archive_cmds_need_lc_CXX=yes
13218             no_undefined_flag_CXX=' -zdefs'
13219             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13220             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13221               $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'
13222
13223             hardcode_libdir_flag_spec_CXX='-R$libdir'
13224             hardcode_shlibpath_var_CXX=no
13225             case $host_os in
13226               solaris2.[0-5] | solaris2.[0-5].*) ;;
13227               *)
13228                 # The compiler driver will combine and reorder linker options,
13229                 # but understands `-z linker_flag'.
13230                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13231                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13232                 ;;
13233             esac
13234             link_all_deplibs_CXX=yes
13235
13236             output_verbose_link_cmd='func_echo_all'
13237
13238             # Archives containing C++ object files must be created using
13239             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13240             # necessary to make sure instantiated templates are included
13241             # in the archive.
13242             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13243             ;;
13244           gcx*)
13245             # Green Hills C++ Compiler
13246             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13247
13248             # The C++ compiler must be used to create the archive.
13249             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13250             ;;
13251           *)
13252             # GNU C++ compiler with Solaris linker
13253             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13254               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13255               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13256                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13257                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13258                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13259
13260                 # Commands to make compiler produce verbose output that lists
13261                 # what "hidden" libraries, object files and flags are used when
13262                 # linking a shared library.
13263                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13264               else
13265                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13266                 # platform.
13267                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13268                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13269                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13270
13271                 # Commands to make compiler produce verbose output that lists
13272                 # what "hidden" libraries, object files and flags are used when
13273                 # linking a shared library.
13274                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13275               fi
13276
13277               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13278               case $host_os in
13279                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13280                 *)
13281                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13282                   ;;
13283               esac
13284             fi
13285             ;;
13286         esac
13287         ;;
13288
13289     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13290       no_undefined_flag_CXX='${wl}-z,text'
13291       archive_cmds_need_lc_CXX=no
13292       hardcode_shlibpath_var_CXX=no
13293       runpath_var='LD_RUN_PATH'
13294
13295       case $cc_basename in
13296         CC*)
13297           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13298           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13299           ;;
13300         *)
13301           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13302           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13303           ;;
13304       esac
13305       ;;
13306
13307       sysv5* | sco3.2v5* | sco5v6*)
13308         # Note: We can NOT use -z defs as we might desire, because we do not
13309         # link with -lc, and that would cause any symbols used from libc to
13310         # always be unresolved, which means just about no library would
13311         # ever link correctly.  If we're not using GNU ld we use -z text
13312         # though, which does catch some bad symbols but isn't as heavy-handed
13313         # as -z defs.
13314         no_undefined_flag_CXX='${wl}-z,text'
13315         allow_undefined_flag_CXX='${wl}-z,nodefs'
13316         archive_cmds_need_lc_CXX=no
13317         hardcode_shlibpath_var_CXX=no
13318         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13319         hardcode_libdir_separator_CXX=':'
13320         link_all_deplibs_CXX=yes
13321         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13322         runpath_var='LD_RUN_PATH'
13323
13324         case $cc_basename in
13325           CC*)
13326             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13328             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13329               '"$old_archive_cmds_CXX"
13330             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13331               '"$reload_cmds_CXX"
13332             ;;
13333           *)
13334             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13335             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13336             ;;
13337         esac
13338       ;;
13339
13340       tandem*)
13341         case $cc_basename in
13342           NCC*)
13343             # NonStop-UX NCC 3.20
13344             # FIXME: insert proper C++ library support
13345             ld_shlibs_CXX=no
13346             ;;
13347           *)
13348             # FIXME: insert proper C++ library support
13349             ld_shlibs_CXX=no
13350             ;;
13351         esac
13352         ;;
13353
13354       vxworks*)
13355         # FIXME: insert proper C++ library support
13356         ld_shlibs_CXX=no
13357         ;;
13358
13359       *)
13360         # FIXME: insert proper C++ library support
13361         ld_shlibs_CXX=no
13362         ;;
13363     esac
13364
13365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13366 $as_echo "$ld_shlibs_CXX" >&6; }
13367     test "$ld_shlibs_CXX" = no && can_build_shared=no
13368
13369     GCC_CXX="$GXX"
13370     LD_CXX="$LD"
13371
13372     ## CAVEAT EMPTOR:
13373     ## There is no encapsulation within the following macros, do not change
13374     ## the running order or otherwise move them around unless you know exactly
13375     ## what you are doing...
13376     # Dependencies to place before and after the object being linked:
13377 predep_objects_CXX=
13378 postdep_objects_CXX=
13379 predeps_CXX=
13380 postdeps_CXX=
13381 compiler_lib_search_path_CXX=
13382
13383 cat > conftest.$ac_ext <<_LT_EOF
13384 class Foo
13385 {
13386 public:
13387   Foo (void) { a = 0; }
13388 private:
13389   int a;
13390 };
13391 _LT_EOF
13392
13393
13394 _lt_libdeps_save_CFLAGS=$CFLAGS
13395 case "$CC $CFLAGS " in #(
13396 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13397 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13398 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13399 esac
13400
13401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13402   (eval $ac_compile) 2>&5
13403   ac_status=$?
13404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13405   test $ac_status = 0; }; then
13406   # Parse the compiler output and extract the necessary
13407   # objects, libraries and library flags.
13408
13409   # Sentinel used to keep track of whether or not we are before
13410   # the conftest object file.
13411   pre_test_object_deps_done=no
13412
13413   for p in `eval "$output_verbose_link_cmd"`; do
13414     case ${prev}${p} in
13415
13416     -L* | -R* | -l*)
13417        # Some compilers place space between "-{L,R}" and the path.
13418        # Remove the space.
13419        if test $p = "-L" ||
13420           test $p = "-R"; then
13421          prev=$p
13422          continue
13423        fi
13424
13425        # Expand the sysroot to ease extracting the directories later.
13426        if test -z "$prev"; then
13427          case $p in
13428          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13429          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13430          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13431          esac
13432        fi
13433        case $p in
13434        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13435        esac
13436        if test "$pre_test_object_deps_done" = no; then
13437          case ${prev} in
13438          -L | -R)
13439            # Internal compiler library paths should come after those
13440            # provided the user.  The postdeps already come after the
13441            # user supplied libs so there is no need to process them.
13442            if test -z "$compiler_lib_search_path_CXX"; then
13443              compiler_lib_search_path_CXX="${prev}${p}"
13444            else
13445              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13446            fi
13447            ;;
13448          # The "-l" case would never come before the object being
13449          # linked, so don't bother handling this case.
13450          esac
13451        else
13452          if test -z "$postdeps_CXX"; then
13453            postdeps_CXX="${prev}${p}"
13454          else
13455            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13456          fi
13457        fi
13458        prev=
13459        ;;
13460
13461     *.lto.$objext) ;; # Ignore GCC LTO objects
13462     *.$objext)
13463        # This assumes that the test object file only shows up
13464        # once in the compiler output.
13465        if test "$p" = "conftest.$objext"; then
13466          pre_test_object_deps_done=yes
13467          continue
13468        fi
13469
13470        if test "$pre_test_object_deps_done" = no; then
13471          if test -z "$predep_objects_CXX"; then
13472            predep_objects_CXX="$p"
13473          else
13474            predep_objects_CXX="$predep_objects_CXX $p"
13475          fi
13476        else
13477          if test -z "$postdep_objects_CXX"; then
13478            postdep_objects_CXX="$p"
13479          else
13480            postdep_objects_CXX="$postdep_objects_CXX $p"
13481          fi
13482        fi
13483        ;;
13484
13485     *) ;; # Ignore the rest.
13486
13487     esac
13488   done
13489
13490   # Clean up.
13491   rm -f a.out a.exe
13492 else
13493   echo "libtool.m4: error: problem compiling CXX test program"
13494 fi
13495
13496 $RM -f confest.$objext
13497 CFLAGS=$_lt_libdeps_save_CFLAGS
13498
13499 # PORTME: override above test on systems where it is broken
13500 case $host_os in
13501 interix[3-9]*)
13502   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13503   # hack all around it, let's just trust "g++" to DTRT.
13504   predep_objects_CXX=
13505   postdep_objects_CXX=
13506   postdeps_CXX=
13507   ;;
13508
13509 linux*)
13510   case `$CC -V 2>&1 | sed 5q` in
13511   *Sun\ C*)
13512     # Sun C++ 5.9
13513
13514     # The more standards-conforming stlport4 library is
13515     # incompatible with the Cstd library. Avoid specifying
13516     # it if it's in CXXFLAGS. Ignore libCrun as
13517     # -library=stlport4 depends on it.
13518     case " $CXX $CXXFLAGS " in
13519     *" -library=stlport4 "*)
13520       solaris_use_stlport4=yes
13521       ;;
13522     esac
13523
13524     if test "$solaris_use_stlport4" != yes; then
13525       postdeps_CXX='-library=Cstd -library=Crun'
13526     fi
13527     ;;
13528   esac
13529   ;;
13530
13531 solaris*)
13532   case $cc_basename in
13533   CC* | sunCC*)
13534     # The more standards-conforming stlport4 library is
13535     # incompatible with the Cstd library. Avoid specifying
13536     # it if it's in CXXFLAGS. Ignore libCrun as
13537     # -library=stlport4 depends on it.
13538     case " $CXX $CXXFLAGS " in
13539     *" -library=stlport4 "*)
13540       solaris_use_stlport4=yes
13541       ;;
13542     esac
13543
13544     # Adding this requires a known-good setup of shared libraries for
13545     # Sun compiler versions before 5.6, else PIC objects from an old
13546     # archive will be linked into the output, leading to subtle bugs.
13547     if test "$solaris_use_stlport4" != yes; then
13548       postdeps_CXX='-library=Cstd -library=Crun'
13549     fi
13550     ;;
13551   esac
13552   ;;
13553 esac
13554
13555
13556 case " $postdeps_CXX " in
13557 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13558 esac
13559  compiler_lib_search_dirs_CXX=
13560 if test -n "${compiler_lib_search_path_CXX}"; then
13561  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13562 fi
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594     lt_prog_compiler_wl_CXX=
13595 lt_prog_compiler_pic_CXX=
13596 lt_prog_compiler_static_CXX=
13597
13598
13599   # C++ specific cases for pic, static, wl, etc.
13600   if test "$GXX" = yes; then
13601     lt_prog_compiler_wl_CXX='-Wl,'
13602     lt_prog_compiler_static_CXX='-static'
13603
13604     case $host_os in
13605     aix*)
13606       # All AIX code is PIC.
13607       if test "$host_cpu" = ia64; then
13608         # AIX 5 now supports IA64 processor
13609         lt_prog_compiler_static_CXX='-Bstatic'
13610       fi
13611       ;;
13612
13613     amigaos*)
13614       case $host_cpu in
13615       powerpc)
13616             # see comment about AmigaOS4 .so support
13617             lt_prog_compiler_pic_CXX='-fPIC'
13618         ;;
13619       m68k)
13620             # FIXME: we need at least 68020 code to build shared libraries, but
13621             # adding the `-m68020' flag to GCC prevents building anything better,
13622             # like `-m68040'.
13623             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13624         ;;
13625       esac
13626       ;;
13627
13628     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13629       # PIC is the default for these OSes.
13630       ;;
13631     mingw* | cygwin* | os2* | pw32* | cegcc*)
13632       # This hack is so that the source file can tell whether it is being
13633       # built for inclusion in a dll (and should export symbols for example).
13634       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13635       # (--disable-auto-import) libraries
13636       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13637       ;;
13638     darwin* | rhapsody*)
13639       # PIC is the default on this platform
13640       # Common symbols not allowed in MH_DYLIB files
13641       lt_prog_compiler_pic_CXX='-fno-common'
13642       ;;
13643     *djgpp*)
13644       # DJGPP does not support shared libraries at all
13645       lt_prog_compiler_pic_CXX=
13646       ;;
13647     haiku*)
13648       # PIC is the default for Haiku.
13649       # The "-static" flag exists, but is broken.
13650       lt_prog_compiler_static_CXX=
13651       ;;
13652     interix[3-9]*)
13653       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13654       # Instead, we relocate shared libraries at runtime.
13655       ;;
13656     sysv4*MP*)
13657       if test -d /usr/nec; then
13658         lt_prog_compiler_pic_CXX=-Kconform_pic
13659       fi
13660       ;;
13661     hpux*)
13662       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13663       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13664       # sets the default TLS model and affects inlining.
13665       case $host_cpu in
13666       hppa*64*)
13667         ;;
13668       *)
13669         lt_prog_compiler_pic_CXX='-fPIC'
13670         ;;
13671       esac
13672       ;;
13673     *qnx* | *nto*)
13674       # QNX uses GNU C++, but need to define -shared option too, otherwise
13675       # it will coredump.
13676       lt_prog_compiler_pic_CXX='-fPIC -shared'
13677       ;;
13678     *)
13679       lt_prog_compiler_pic_CXX='-fPIC'
13680       ;;
13681     esac
13682   else
13683     case $host_os in
13684       aix[4-9]*)
13685         # All AIX code is PIC.
13686         if test "$host_cpu" = ia64; then
13687           # AIX 5 now supports IA64 processor
13688           lt_prog_compiler_static_CXX='-Bstatic'
13689         else
13690           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13691         fi
13692         ;;
13693       chorus*)
13694         case $cc_basename in
13695         cxch68*)
13696           # Green Hills C++ Compiler
13697           # _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"
13698           ;;
13699         esac
13700         ;;
13701       mingw* | cygwin* | os2* | pw32* | cegcc*)
13702         # This hack is so that the source file can tell whether it is being
13703         # built for inclusion in a dll (and should export symbols for example).
13704         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13705         ;;
13706       dgux*)
13707         case $cc_basename in
13708           ec++*)
13709             lt_prog_compiler_pic_CXX='-KPIC'
13710             ;;
13711           ghcx*)
13712             # Green Hills C++ Compiler
13713             lt_prog_compiler_pic_CXX='-pic'
13714             ;;
13715           *)
13716             ;;
13717         esac
13718         ;;
13719       freebsd* | dragonfly*)
13720         # FreeBSD uses GNU C++
13721         ;;
13722       hpux9* | hpux10* | hpux11*)
13723         case $cc_basename in
13724           CC*)
13725             lt_prog_compiler_wl_CXX='-Wl,'
13726             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13727             if test "$host_cpu" != ia64; then
13728               lt_prog_compiler_pic_CXX='+Z'
13729             fi
13730             ;;
13731           aCC*)
13732             lt_prog_compiler_wl_CXX='-Wl,'
13733             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13734             case $host_cpu in
13735             hppa*64*|ia64*)
13736               # +Z the default
13737               ;;
13738             *)
13739               lt_prog_compiler_pic_CXX='+Z'
13740               ;;
13741             esac
13742             ;;
13743           *)
13744             ;;
13745         esac
13746         ;;
13747       interix*)
13748         # This is c89, which is MS Visual C++ (no shared libs)
13749         # Anyone wants to do a port?
13750         ;;
13751       irix5* | irix6* | nonstopux*)
13752         case $cc_basename in
13753           CC*)
13754             lt_prog_compiler_wl_CXX='-Wl,'
13755             lt_prog_compiler_static_CXX='-non_shared'
13756             # CC pic flag -KPIC is the default.
13757             ;;
13758           *)
13759             ;;
13760         esac
13761         ;;
13762       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13763         case $cc_basename in
13764           KCC*)
13765             # KAI C++ Compiler
13766             lt_prog_compiler_wl_CXX='--backend -Wl,'
13767             lt_prog_compiler_pic_CXX='-fPIC'
13768             ;;
13769           ecpc* )
13770             # old Intel C++ for x86_64 which still supported -KPIC.
13771             lt_prog_compiler_wl_CXX='-Wl,'
13772             lt_prog_compiler_pic_CXX='-KPIC'
13773             lt_prog_compiler_static_CXX='-static'
13774             ;;
13775           icpc* )
13776             # Intel C++, used to be incompatible with GCC.
13777             # ICC 10 doesn't accept -KPIC any more.
13778             lt_prog_compiler_wl_CXX='-Wl,'
13779             lt_prog_compiler_pic_CXX='-fPIC'
13780             lt_prog_compiler_static_CXX='-static'
13781             ;;
13782           pgCC* | pgcpp*)
13783             # Portland Group C++ compiler
13784             lt_prog_compiler_wl_CXX='-Wl,'
13785             lt_prog_compiler_pic_CXX='-fpic'
13786             lt_prog_compiler_static_CXX='-Bstatic'
13787             ;;
13788           cxx*)
13789             # Compaq C++
13790             # Make sure the PIC flag is empty.  It appears that all Alpha
13791             # Linux and Compaq Tru64 Unix objects are PIC.
13792             lt_prog_compiler_pic_CXX=
13793             lt_prog_compiler_static_CXX='-non_shared'
13794             ;;
13795           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13796             # IBM XL 8.0, 9.0 on PPC and BlueGene
13797             lt_prog_compiler_wl_CXX='-Wl,'
13798             lt_prog_compiler_pic_CXX='-qpic'
13799             lt_prog_compiler_static_CXX='-qstaticlink'
13800             ;;
13801           *)
13802             case `$CC -V 2>&1 | sed 5q` in
13803             *Sun\ C*)
13804               # Sun C++ 5.9
13805               lt_prog_compiler_pic_CXX='-KPIC'
13806               lt_prog_compiler_static_CXX='-Bstatic'
13807               lt_prog_compiler_wl_CXX='-Qoption ld '
13808               ;;
13809             esac
13810             ;;
13811         esac
13812         ;;
13813       lynxos*)
13814         ;;
13815       m88k*)
13816         ;;
13817       mvs*)
13818         case $cc_basename in
13819           cxx*)
13820             lt_prog_compiler_pic_CXX='-W c,exportall'
13821             ;;
13822           *)
13823             ;;
13824         esac
13825         ;;
13826       netbsd*)
13827         ;;
13828       *qnx* | *nto*)
13829         # QNX uses GNU C++, but need to define -shared option too, otherwise
13830         # it will coredump.
13831         lt_prog_compiler_pic_CXX='-fPIC -shared'
13832         ;;
13833       osf3* | osf4* | osf5*)
13834         case $cc_basename in
13835           KCC*)
13836             lt_prog_compiler_wl_CXX='--backend -Wl,'
13837             ;;
13838           RCC*)
13839             # Rational C++ 2.4.1
13840             lt_prog_compiler_pic_CXX='-pic'
13841             ;;
13842           cxx*)
13843             # Digital/Compaq C++
13844             lt_prog_compiler_wl_CXX='-Wl,'
13845             # Make sure the PIC flag is empty.  It appears that all Alpha
13846             # Linux and Compaq Tru64 Unix objects are PIC.
13847             lt_prog_compiler_pic_CXX=
13848             lt_prog_compiler_static_CXX='-non_shared'
13849             ;;
13850           *)
13851             ;;
13852         esac
13853         ;;
13854       psos*)
13855         ;;
13856       solaris*)
13857         case $cc_basename in
13858           CC* | sunCC*)
13859             # Sun C++ 4.2, 5.x and Centerline C++
13860             lt_prog_compiler_pic_CXX='-KPIC'
13861             lt_prog_compiler_static_CXX='-Bstatic'
13862             lt_prog_compiler_wl_CXX='-Qoption ld '
13863             ;;
13864           gcx*)
13865             # Green Hills C++ Compiler
13866             lt_prog_compiler_pic_CXX='-PIC'
13867             ;;
13868           *)
13869             ;;
13870         esac
13871         ;;
13872       sunos4*)
13873         case $cc_basename in
13874           CC*)
13875             # Sun C++ 4.x
13876             lt_prog_compiler_pic_CXX='-pic'
13877             lt_prog_compiler_static_CXX='-Bstatic'
13878             ;;
13879           lcc*)
13880             # Lucid
13881             lt_prog_compiler_pic_CXX='-pic'
13882             ;;
13883           *)
13884             ;;
13885         esac
13886         ;;
13887       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13888         case $cc_basename in
13889           CC*)
13890             lt_prog_compiler_wl_CXX='-Wl,'
13891             lt_prog_compiler_pic_CXX='-KPIC'
13892             lt_prog_compiler_static_CXX='-Bstatic'
13893             ;;
13894         esac
13895         ;;
13896       tandem*)
13897         case $cc_basename in
13898           NCC*)
13899             # NonStop-UX NCC 3.20
13900             lt_prog_compiler_pic_CXX='-KPIC'
13901             ;;
13902           *)
13903             ;;
13904         esac
13905         ;;
13906       vxworks*)
13907         ;;
13908       *)
13909         lt_prog_compiler_can_build_shared_CXX=no
13910         ;;
13911     esac
13912   fi
13913
13914 case $host_os in
13915   # For platforms which do not support PIC, -DPIC is meaningless:
13916   *djgpp*)
13917     lt_prog_compiler_pic_CXX=
13918     ;;
13919   *)
13920     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13921     ;;
13922 esac
13923
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13925 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13926 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13927   $as_echo_n "(cached) " >&6
13928 else
13929   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13930 fi
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13932 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13933 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13934
13935 #
13936 # Check to make sure the PIC flag actually works.
13937 #
13938 if test -n "$lt_prog_compiler_pic_CXX"; then
13939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13940 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13941 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13942   $as_echo_n "(cached) " >&6
13943 else
13944   lt_cv_prog_compiler_pic_works_CXX=no
13945    ac_outfile=conftest.$ac_objext
13946    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13947    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13948    # Insert the option either (1) after the last *FLAGS variable, or
13949    # (2) before a word containing "conftest.", or (3) at the end.
13950    # Note that $ac_compile itself does not contain backslashes and begins
13951    # with a dollar sign (not a hyphen), so the echo should work correctly.
13952    # The option is referenced via a variable to avoid confusing sed.
13953    lt_compile=`echo "$ac_compile" | $SED \
13954    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13955    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13956    -e 's:$: $lt_compiler_flag:'`
13957    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13958    (eval "$lt_compile" 2>conftest.err)
13959    ac_status=$?
13960    cat conftest.err >&5
13961    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962    if (exit $ac_status) && test -s "$ac_outfile"; then
13963      # The compiler can only warn and ignore the option if not recognized
13964      # So say no if there are warnings other than the usual output.
13965      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13966      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13967      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13968        lt_cv_prog_compiler_pic_works_CXX=yes
13969      fi
13970    fi
13971    $RM conftest*
13972
13973 fi
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13975 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13976
13977 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13978     case $lt_prog_compiler_pic_CXX in
13979      "" | " "*) ;;
13980      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13981      esac
13982 else
13983     lt_prog_compiler_pic_CXX=
13984      lt_prog_compiler_can_build_shared_CXX=no
13985 fi
13986
13987 fi
13988
13989
13990
13991
13992
13993 #
13994 # Check to make sure the static flag actually works.
13995 #
13996 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13998 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13999 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14000   $as_echo_n "(cached) " >&6
14001 else
14002   lt_cv_prog_compiler_static_works_CXX=no
14003    save_LDFLAGS="$LDFLAGS"
14004    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14005    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14006    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14007      # The linker can only warn and ignore the option if not recognized
14008      # So say no if there are warnings
14009      if test -s conftest.err; then
14010        # Append any errors to the config.log.
14011        cat conftest.err 1>&5
14012        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14013        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14014        if diff conftest.exp conftest.er2 >/dev/null; then
14015          lt_cv_prog_compiler_static_works_CXX=yes
14016        fi
14017      else
14018        lt_cv_prog_compiler_static_works_CXX=yes
14019      fi
14020    fi
14021    $RM -r conftest*
14022    LDFLAGS="$save_LDFLAGS"
14023
14024 fi
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14026 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14027
14028 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14029     :
14030 else
14031     lt_prog_compiler_static_CXX=
14032 fi
14033
14034
14035
14036
14037     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14038 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14039 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14040   $as_echo_n "(cached) " >&6
14041 else
14042   lt_cv_prog_compiler_c_o_CXX=no
14043    $RM -r conftest 2>/dev/null
14044    mkdir conftest
14045    cd conftest
14046    mkdir out
14047    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14048
14049    lt_compiler_flag="-o out/conftest2.$ac_objext"
14050    # Insert the option either (1) after the last *FLAGS variable, or
14051    # (2) before a word containing "conftest.", or (3) at the end.
14052    # Note that $ac_compile itself does not contain backslashes and begins
14053    # with a dollar sign (not a hyphen), so the echo should work correctly.
14054    lt_compile=`echo "$ac_compile" | $SED \
14055    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14056    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14057    -e 's:$: $lt_compiler_flag:'`
14058    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14059    (eval "$lt_compile" 2>out/conftest.err)
14060    ac_status=$?
14061    cat out/conftest.err >&5
14062    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14064    then
14065      # The compiler can only warn and ignore the option if not recognized
14066      # So say no if there are warnings
14067      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14068      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14069      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14070        lt_cv_prog_compiler_c_o_CXX=yes
14071      fi
14072    fi
14073    chmod u+w . 2>&5
14074    $RM conftest*
14075    # SGI C++ compiler will create directory out/ii_files/ for
14076    # template instantiation
14077    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14078    $RM out/* && rmdir out
14079    cd ..
14080    $RM -r conftest
14081    $RM conftest*
14082
14083 fi
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14085 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14086
14087
14088
14089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14090 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14091 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14092   $as_echo_n "(cached) " >&6
14093 else
14094   lt_cv_prog_compiler_c_o_CXX=no
14095    $RM -r conftest 2>/dev/null
14096    mkdir conftest
14097    cd conftest
14098    mkdir out
14099    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14100
14101    lt_compiler_flag="-o out/conftest2.$ac_objext"
14102    # Insert the option either (1) after the last *FLAGS variable, or
14103    # (2) before a word containing "conftest.", or (3) at the end.
14104    # Note that $ac_compile itself does not contain backslashes and begins
14105    # with a dollar sign (not a hyphen), so the echo should work correctly.
14106    lt_compile=`echo "$ac_compile" | $SED \
14107    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14108    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14109    -e 's:$: $lt_compiler_flag:'`
14110    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14111    (eval "$lt_compile" 2>out/conftest.err)
14112    ac_status=$?
14113    cat out/conftest.err >&5
14114    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14116    then
14117      # The compiler can only warn and ignore the option if not recognized
14118      # So say no if there are warnings
14119      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14120      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14121      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14122        lt_cv_prog_compiler_c_o_CXX=yes
14123      fi
14124    fi
14125    chmod u+w . 2>&5
14126    $RM conftest*
14127    # SGI C++ compiler will create directory out/ii_files/ for
14128    # template instantiation
14129    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14130    $RM out/* && rmdir out
14131    cd ..
14132    $RM -r conftest
14133    $RM conftest*
14134
14135 fi
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14137 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14138
14139
14140
14141
14142 hard_links="nottested"
14143 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14144   # do not overwrite the value of need_locks provided by the user
14145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14146 $as_echo_n "checking if we can lock with hard links... " >&6; }
14147   hard_links=yes
14148   $RM conftest*
14149   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14150   touch conftest.a
14151   ln conftest.a conftest.b 2>&5 || hard_links=no
14152   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14154 $as_echo "$hard_links" >&6; }
14155   if test "$hard_links" = no; then
14156     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14157 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14158     need_locks=warn
14159   fi
14160 else
14161   need_locks=no
14162 fi
14163
14164
14165
14166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14167 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14168
14169   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14170   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14171   case $host_os in
14172   aix[4-9]*)
14173     # If we're using GNU nm, then we don't want the "-C" option.
14174     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14175     # Also, AIX nm treats weak defined symbols like other global defined
14176     # symbols, whereas GNU nm marks them as "W".
14177     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14178       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14179     else
14180       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14181     fi
14182     ;;
14183   pw32*)
14184     export_symbols_cmds_CXX="$ltdll_cmds"
14185     ;;
14186   cygwin* | mingw* | cegcc*)
14187     case $cc_basename in
14188     cl*)
14189       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14190       ;;
14191     *)
14192       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'
14193       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14194       ;;
14195     esac
14196     ;;
14197   *)
14198     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14199     ;;
14200   esac
14201
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14203 $as_echo "$ld_shlibs_CXX" >&6; }
14204 test "$ld_shlibs_CXX" = no && can_build_shared=no
14205
14206 with_gnu_ld_CXX=$with_gnu_ld
14207
14208
14209
14210
14211
14212
14213 #
14214 # Do we need to explicitly link libc?
14215 #
14216 case "x$archive_cmds_need_lc_CXX" in
14217 x|xyes)
14218   # Assume -lc should be added
14219   archive_cmds_need_lc_CXX=yes
14220
14221   if test "$enable_shared" = yes && test "$GCC" = yes; then
14222     case $archive_cmds_CXX in
14223     *'~'*)
14224       # FIXME: we may have to deal with multi-command sequences.
14225       ;;
14226     '$CC '*)
14227       # Test whether the compiler implicitly links with -lc since on some
14228       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14229       # to ld, don't add -lc before -lgcc.
14230       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14231 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14232 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14233   $as_echo_n "(cached) " >&6
14234 else
14235   $RM conftest*
14236         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14237
14238         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14239   (eval $ac_compile) 2>&5
14240   ac_status=$?
14241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14242   test $ac_status = 0; } 2>conftest.err; then
14243           soname=conftest
14244           lib=conftest
14245           libobjs=conftest.$ac_objext
14246           deplibs=
14247           wl=$lt_prog_compiler_wl_CXX
14248           pic_flag=$lt_prog_compiler_pic_CXX
14249           compiler_flags=-v
14250           linker_flags=-v
14251           verstring=
14252           output_objdir=.
14253           libname=conftest
14254           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14255           allow_undefined_flag_CXX=
14256           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14257   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14258   ac_status=$?
14259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14260   test $ac_status = 0; }
14261           then
14262             lt_cv_archive_cmds_need_lc_CXX=no
14263           else
14264             lt_cv_archive_cmds_need_lc_CXX=yes
14265           fi
14266           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14267         else
14268           cat conftest.err 1>&5
14269         fi
14270         $RM conftest*
14271
14272 fi
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14274 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14275       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14276       ;;
14277     esac
14278   fi
14279   ;;
14280 esac
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14344 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14345
14346 library_names_spec=
14347 libname_spec='lib$name'
14348 soname_spec=
14349 shrext_cmds=".so"
14350 postinstall_cmds=
14351 postuninstall_cmds=
14352 finish_cmds=
14353 finish_eval=
14354 shlibpath_var=
14355 shlibpath_overrides_runpath=unknown
14356 version_type=none
14357 dynamic_linker="$host_os ld.so"
14358 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14359 need_lib_prefix=unknown
14360 hardcode_into_libs=no
14361
14362 # when you set need_version to no, make sure it does not cause -set_version
14363 # flags to be left without arguments
14364 need_version=unknown
14365
14366 case $host_os in
14367 aix3*)
14368   version_type=linux # correct to gnu/linux during the next big refactor
14369   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14370   shlibpath_var=LIBPATH
14371
14372   # AIX 3 has no versioning support, so we append a major version to the name.
14373   soname_spec='${libname}${release}${shared_ext}$major'
14374   ;;
14375
14376 aix[4-9]*)
14377   version_type=linux # correct to gnu/linux during the next big refactor
14378   need_lib_prefix=no
14379   need_version=no
14380   hardcode_into_libs=yes
14381   if test "$host_cpu" = ia64; then
14382     # AIX 5 supports IA64
14383     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14384     shlibpath_var=LD_LIBRARY_PATH
14385   else
14386     # With GCC up to 2.95.x, collect2 would create an import file
14387     # for dependence libraries.  The import file would start with
14388     # the line `#! .'.  This would cause the generated library to
14389     # depend on `.', always an invalid library.  This was fixed in
14390     # development snapshots of GCC prior to 3.0.
14391     case $host_os in
14392       aix4 | aix4.[01] | aix4.[01].*)
14393       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14394            echo ' yes '
14395            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14396         :
14397       else
14398         can_build_shared=no
14399       fi
14400       ;;
14401     esac
14402     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14403     # soname into executable. Probably we can add versioning support to
14404     # collect2, so additional links can be useful in future.
14405     if test "$aix_use_runtimelinking" = yes; then
14406       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14407       # instead of lib<name>.a to let people know that these are not
14408       # typical AIX shared libraries.
14409       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14410     else
14411       # We preserve .a as extension for shared libraries through AIX4.2
14412       # and later when we are not doing run time linking.
14413       library_names_spec='${libname}${release}.a $libname.a'
14414       soname_spec='${libname}${release}${shared_ext}$major'
14415     fi
14416     shlibpath_var=LIBPATH
14417   fi
14418   ;;
14419
14420 amigaos*)
14421   case $host_cpu in
14422   powerpc)
14423     # Since July 2007 AmigaOS4 officially supports .so libraries.
14424     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14426     ;;
14427   m68k)
14428     library_names_spec='$libname.ixlibrary $libname.a'
14429     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14430     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14431     ;;
14432   esac
14433   ;;
14434
14435 beos*)
14436   library_names_spec='${libname}${shared_ext}'
14437   dynamic_linker="$host_os ld.so"
14438   shlibpath_var=LIBRARY_PATH
14439   ;;
14440
14441 bsdi[45]*)
14442   version_type=linux # correct to gnu/linux during the next big refactor
14443   need_version=no
14444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14445   soname_spec='${libname}${release}${shared_ext}$major'
14446   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14447   shlibpath_var=LD_LIBRARY_PATH
14448   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14449   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14450   # the default ld.so.conf also contains /usr/contrib/lib and
14451   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14452   # libtool to hard-code these into programs
14453   ;;
14454
14455 cygwin* | mingw* | pw32* | cegcc*)
14456   version_type=windows
14457   shrext_cmds=".dll"
14458   need_version=no
14459   need_lib_prefix=no
14460
14461   case $GCC,$cc_basename in
14462   yes,*)
14463     # gcc
14464     library_names_spec='$libname.dll.a'
14465     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14466     postinstall_cmds='base_file=`basename \${file}`~
14467       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14468       dldir=$destdir/`dirname \$dlpath`~
14469       test -d \$dldir || mkdir -p \$dldir~
14470       $install_prog $dir/$dlname \$dldir/$dlname~
14471       chmod a+x \$dldir/$dlname~
14472       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14473         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14474       fi'
14475     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14476       dlpath=$dir/\$dldll~
14477        $RM \$dlpath'
14478     shlibpath_overrides_runpath=yes
14479
14480     case $host_os in
14481     cygwin*)
14482       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14483       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14484
14485       ;;
14486     mingw* | cegcc*)
14487       # MinGW DLLs use traditional 'lib' prefix
14488       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14489       ;;
14490     pw32*)
14491       # pw32 DLLs use 'pw' prefix rather than 'lib'
14492       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14493       ;;
14494     esac
14495     dynamic_linker='Win32 ld.exe'
14496     ;;
14497
14498   *,cl*)
14499     # Native MSVC
14500     libname_spec='$name'
14501     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14502     library_names_spec='${libname}.dll.lib'
14503
14504     case $build_os in
14505     mingw*)
14506       sys_lib_search_path_spec=
14507       lt_save_ifs=$IFS
14508       IFS=';'
14509       for lt_path in $LIB
14510       do
14511         IFS=$lt_save_ifs
14512         # Let DOS variable expansion print the short 8.3 style file name.
14513         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14514         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14515       done
14516       IFS=$lt_save_ifs
14517       # Convert to MSYS style.
14518       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14519       ;;
14520     cygwin*)
14521       # Convert to unix form, then to dos form, then back to unix form
14522       # but this time dos style (no spaces!) so that the unix form looks
14523       # like /cygdrive/c/PROGRA~1:/cygdr...
14524       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14525       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14526       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14527       ;;
14528     *)
14529       sys_lib_search_path_spec="$LIB"
14530       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14531         # It is most probably a Windows format PATH.
14532         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14533       else
14534         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14535       fi
14536       # FIXME: find the short name or the path components, as spaces are
14537       # common. (e.g. "Program Files" -> "PROGRA~1")
14538       ;;
14539     esac
14540
14541     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14542     postinstall_cmds='base_file=`basename \${file}`~
14543       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14544       dldir=$destdir/`dirname \$dlpath`~
14545       test -d \$dldir || mkdir -p \$dldir~
14546       $install_prog $dir/$dlname \$dldir/$dlname'
14547     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14548       dlpath=$dir/\$dldll~
14549        $RM \$dlpath'
14550     shlibpath_overrides_runpath=yes
14551     dynamic_linker='Win32 link.exe'
14552     ;;
14553
14554   *)
14555     # Assume MSVC wrapper
14556     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14557     dynamic_linker='Win32 ld.exe'
14558     ;;
14559   esac
14560   # FIXME: first we should search . and the directory the executable is in
14561   shlibpath_var=PATH
14562   ;;
14563
14564 darwin* | rhapsody*)
14565   dynamic_linker="$host_os dyld"
14566   version_type=darwin
14567   need_lib_prefix=no
14568   need_version=no
14569   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14570   soname_spec='${libname}${release}${major}$shared_ext'
14571   shlibpath_overrides_runpath=yes
14572   shlibpath_var=DYLD_LIBRARY_PATH
14573   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14574
14575   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14576   ;;
14577
14578 dgux*)
14579   version_type=linux # correct to gnu/linux during the next big refactor
14580   need_lib_prefix=no
14581   need_version=no
14582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14583   soname_spec='${libname}${release}${shared_ext}$major'
14584   shlibpath_var=LD_LIBRARY_PATH
14585   ;;
14586
14587 freebsd* | dragonfly*)
14588   # DragonFly does not have aout.  When/if they implement a new
14589   # versioning mechanism, adjust this.
14590   if test -x /usr/bin/objformat; then
14591     objformat=`/usr/bin/objformat`
14592   else
14593     case $host_os in
14594     freebsd[23].*) objformat=aout ;;
14595     *) objformat=elf ;;
14596     esac
14597   fi
14598   version_type=freebsd-$objformat
14599   case $version_type in
14600     freebsd-elf*)
14601       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14602       need_version=no
14603       need_lib_prefix=no
14604       ;;
14605     freebsd-*)
14606       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14607       need_version=yes
14608       ;;
14609   esac
14610   shlibpath_var=LD_LIBRARY_PATH
14611   case $host_os in
14612   freebsd2.*)
14613     shlibpath_overrides_runpath=yes
14614     ;;
14615   freebsd3.[01]* | freebsdelf3.[01]*)
14616     shlibpath_overrides_runpath=yes
14617     hardcode_into_libs=yes
14618     ;;
14619   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14620   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14621     shlibpath_overrides_runpath=no
14622     hardcode_into_libs=yes
14623     ;;
14624   *) # from 4.6 on, and DragonFly
14625     shlibpath_overrides_runpath=yes
14626     hardcode_into_libs=yes
14627     ;;
14628   esac
14629   ;;
14630
14631 gnu*)
14632   version_type=linux # correct to gnu/linux during the next big refactor
14633   need_lib_prefix=no
14634   need_version=no
14635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14636   soname_spec='${libname}${release}${shared_ext}$major'
14637   shlibpath_var=LD_LIBRARY_PATH
14638   shlibpath_overrides_runpath=no
14639   hardcode_into_libs=yes
14640   ;;
14641
14642 haiku*)
14643   version_type=linux # correct to gnu/linux during the next big refactor
14644   need_lib_prefix=no
14645   need_version=no
14646   dynamic_linker="$host_os runtime_loader"
14647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14648   soname_spec='${libname}${release}${shared_ext}$major'
14649   shlibpath_var=LIBRARY_PATH
14650   shlibpath_overrides_runpath=yes
14651   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14652   hardcode_into_libs=yes
14653   ;;
14654
14655 hpux9* | hpux10* | hpux11*)
14656   # Give a soname corresponding to the major version so that dld.sl refuses to
14657   # link against other versions.
14658   version_type=sunos
14659   need_lib_prefix=no
14660   need_version=no
14661   case $host_cpu in
14662   ia64*)
14663     shrext_cmds='.so'
14664     hardcode_into_libs=yes
14665     dynamic_linker="$host_os dld.so"
14666     shlibpath_var=LD_LIBRARY_PATH
14667     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14668     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14669     soname_spec='${libname}${release}${shared_ext}$major'
14670     if test "X$HPUX_IA64_MODE" = X32; then
14671       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14672     else
14673       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14674     fi
14675     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14676     ;;
14677   hppa*64*)
14678     shrext_cmds='.sl'
14679     hardcode_into_libs=yes
14680     dynamic_linker="$host_os dld.sl"
14681     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14682     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14683     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14684     soname_spec='${libname}${release}${shared_ext}$major'
14685     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14686     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14687     ;;
14688   *)
14689     shrext_cmds='.sl'
14690     dynamic_linker="$host_os dld.sl"
14691     shlibpath_var=SHLIB_PATH
14692     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14693     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694     soname_spec='${libname}${release}${shared_ext}$major'
14695     ;;
14696   esac
14697   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14698   postinstall_cmds='chmod 555 $lib'
14699   # or fails outright, so override atomically:
14700   install_override_mode=555
14701   ;;
14702
14703 interix[3-9]*)
14704   version_type=linux # correct to gnu/linux during the next big refactor
14705   need_lib_prefix=no
14706   need_version=no
14707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14708   soname_spec='${libname}${release}${shared_ext}$major'
14709   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14710   shlibpath_var=LD_LIBRARY_PATH
14711   shlibpath_overrides_runpath=no
14712   hardcode_into_libs=yes
14713   ;;
14714
14715 irix5* | irix6* | nonstopux*)
14716   case $host_os in
14717     nonstopux*) version_type=nonstopux ;;
14718     *)
14719         if test "$lt_cv_prog_gnu_ld" = yes; then
14720                 version_type=linux # correct to gnu/linux during the next big refactor
14721         else
14722                 version_type=irix
14723         fi ;;
14724   esac
14725   need_lib_prefix=no
14726   need_version=no
14727   soname_spec='${libname}${release}${shared_ext}$major'
14728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14729   case $host_os in
14730   irix5* | nonstopux*)
14731     libsuff= shlibsuff=
14732     ;;
14733   *)
14734     case $LD in # libtool.m4 will add one of these switches to LD
14735     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14736       libsuff= shlibsuff= libmagic=32-bit;;
14737     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14738       libsuff=32 shlibsuff=N32 libmagic=N32;;
14739     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14740       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14741     *) libsuff= shlibsuff= libmagic=never-match;;
14742     esac
14743     ;;
14744   esac
14745   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14746   shlibpath_overrides_runpath=no
14747   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14748   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14749   hardcode_into_libs=yes
14750   ;;
14751
14752 # No shared lib support for Linux oldld, aout, or coff.
14753 linux*oldld* | linux*aout* | linux*coff*)
14754   dynamic_linker=no
14755   ;;
14756
14757 # This must be glibc/ELF.
14758 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14759   version_type=linux # correct to gnu/linux during the next big refactor
14760   need_lib_prefix=no
14761   need_version=no
14762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14763   soname_spec='${libname}${release}${shared_ext}$major'
14764   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14765   shlibpath_var=LD_LIBRARY_PATH
14766   shlibpath_overrides_runpath=no
14767
14768   # Some binutils ld are patched to set DT_RUNPATH
14769   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14770   $as_echo_n "(cached) " >&6
14771 else
14772   lt_cv_shlibpath_overrides_runpath=no
14773     save_LDFLAGS=$LDFLAGS
14774     save_libdir=$libdir
14775     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14776          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14777     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14778 /* end confdefs.h.  */
14779
14780 int
14781 main ()
14782 {
14783
14784   ;
14785   return 0;
14786 }
14787 _ACEOF
14788 if ac_fn_cxx_try_link "$LINENO"; then :
14789   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14790   lt_cv_shlibpath_overrides_runpath=yes
14791 fi
14792 fi
14793 rm -f core conftest.err conftest.$ac_objext \
14794     conftest$ac_exeext conftest.$ac_ext
14795     LDFLAGS=$save_LDFLAGS
14796     libdir=$save_libdir
14797
14798 fi
14799
14800   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14801
14802   # This implies no fast_install, which is unacceptable.
14803   # Some rework will be needed to allow for fast_install
14804   # before this can be enabled.
14805   hardcode_into_libs=yes
14806
14807   # Append ld.so.conf contents to the search path
14808   if test -f /etc/ld.so.conf; then
14809     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' ' '`
14810     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14811   fi
14812
14813   # We used to test for /lib/ld.so.1 and disable shared libraries on
14814   # powerpc, because MkLinux only supported shared libraries with the
14815   # GNU dynamic linker.  Since this was broken with cross compilers,
14816   # most powerpc-linux boxes support dynamic linking these days and
14817   # people can always --disable-shared, the test was removed, and we
14818   # assume the GNU/Linux dynamic linker is in use.
14819   dynamic_linker='GNU/Linux ld.so'
14820   ;;
14821
14822 netbsd*)
14823   version_type=sunos
14824   need_lib_prefix=no
14825   need_version=no
14826   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14827     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14828     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14829     dynamic_linker='NetBSD (a.out) ld.so'
14830   else
14831     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14832     soname_spec='${libname}${release}${shared_ext}$major'
14833     dynamic_linker='NetBSD ld.elf_so'
14834   fi
14835   shlibpath_var=LD_LIBRARY_PATH
14836   shlibpath_overrides_runpath=yes
14837   hardcode_into_libs=yes
14838   ;;
14839
14840 newsos6)
14841   version_type=linux # correct to gnu/linux during the next big refactor
14842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14843   shlibpath_var=LD_LIBRARY_PATH
14844   shlibpath_overrides_runpath=yes
14845   ;;
14846
14847 *nto* | *qnx*)
14848   version_type=qnx
14849   need_lib_prefix=no
14850   need_version=no
14851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14852   soname_spec='${libname}${release}${shared_ext}$major'
14853   shlibpath_var=LD_LIBRARY_PATH
14854   shlibpath_overrides_runpath=no
14855   hardcode_into_libs=yes
14856   dynamic_linker='ldqnx.so'
14857   ;;
14858
14859 openbsd*)
14860   version_type=sunos
14861   sys_lib_dlsearch_path_spec="/usr/lib"
14862   need_lib_prefix=no
14863   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14864   case $host_os in
14865     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14866     *)                          need_version=no  ;;
14867   esac
14868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14869   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14870   shlibpath_var=LD_LIBRARY_PATH
14871   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14872     case $host_os in
14873       openbsd2.[89] | openbsd2.[89].*)
14874         shlibpath_overrides_runpath=no
14875         ;;
14876       *)
14877         shlibpath_overrides_runpath=yes
14878         ;;
14879       esac
14880   else
14881     shlibpath_overrides_runpath=yes
14882   fi
14883   ;;
14884
14885 os2*)
14886   libname_spec='$name'
14887   shrext_cmds=".dll"
14888   need_lib_prefix=no
14889   library_names_spec='$libname${shared_ext} $libname.a'
14890   dynamic_linker='OS/2 ld.exe'
14891   shlibpath_var=LIBPATH
14892   ;;
14893
14894 osf3* | osf4* | osf5*)
14895   version_type=osf
14896   need_lib_prefix=no
14897   need_version=no
14898   soname_spec='${libname}${release}${shared_ext}$major'
14899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14900   shlibpath_var=LD_LIBRARY_PATH
14901   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14902   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14903   ;;
14904
14905 rdos*)
14906   dynamic_linker=no
14907   ;;
14908
14909 solaris*)
14910   version_type=linux # correct to gnu/linux during the next big refactor
14911   need_lib_prefix=no
14912   need_version=no
14913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14914   soname_spec='${libname}${release}${shared_ext}$major'
14915   shlibpath_var=LD_LIBRARY_PATH
14916   shlibpath_overrides_runpath=yes
14917   hardcode_into_libs=yes
14918   # ldd complains unless libraries are executable
14919   postinstall_cmds='chmod +x $lib'
14920   ;;
14921
14922 sunos4*)
14923   version_type=sunos
14924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14925   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14926   shlibpath_var=LD_LIBRARY_PATH
14927   shlibpath_overrides_runpath=yes
14928   if test "$with_gnu_ld" = yes; then
14929     need_lib_prefix=no
14930   fi
14931   need_version=yes
14932   ;;
14933
14934 sysv4 | sysv4.3*)
14935   version_type=linux # correct to gnu/linux during the next big refactor
14936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937   soname_spec='${libname}${release}${shared_ext}$major'
14938   shlibpath_var=LD_LIBRARY_PATH
14939   case $host_vendor in
14940     sni)
14941       shlibpath_overrides_runpath=no
14942       need_lib_prefix=no
14943       runpath_var=LD_RUN_PATH
14944       ;;
14945     siemens)
14946       need_lib_prefix=no
14947       ;;
14948     motorola)
14949       need_lib_prefix=no
14950       need_version=no
14951       shlibpath_overrides_runpath=no
14952       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14953       ;;
14954   esac
14955   ;;
14956
14957 sysv4*MP*)
14958   if test -d /usr/nec ;then
14959     version_type=linux # correct to gnu/linux during the next big refactor
14960     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14961     soname_spec='$libname${shared_ext}.$major'
14962     shlibpath_var=LD_LIBRARY_PATH
14963   fi
14964   ;;
14965
14966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14967   version_type=freebsd-elf
14968   need_lib_prefix=no
14969   need_version=no
14970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14971   soname_spec='${libname}${release}${shared_ext}$major'
14972   shlibpath_var=LD_LIBRARY_PATH
14973   shlibpath_overrides_runpath=yes
14974   hardcode_into_libs=yes
14975   if test "$with_gnu_ld" = yes; then
14976     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14977   else
14978     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14979     case $host_os in
14980       sco3.2v5*)
14981         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14982         ;;
14983     esac
14984   fi
14985   sys_lib_dlsearch_path_spec='/usr/lib'
14986   ;;
14987
14988 tpf*)
14989   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14990   version_type=linux # correct to gnu/linux during the next big refactor
14991   need_lib_prefix=no
14992   need_version=no
14993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14994   shlibpath_var=LD_LIBRARY_PATH
14995   shlibpath_overrides_runpath=no
14996   hardcode_into_libs=yes
14997   ;;
14998
14999 uts4*)
15000   version_type=linux # correct to gnu/linux during the next big refactor
15001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15002   soname_spec='${libname}${release}${shared_ext}$major'
15003   shlibpath_var=LD_LIBRARY_PATH
15004   ;;
15005
15006 *)
15007   dynamic_linker=no
15008   ;;
15009 esac
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15011 $as_echo "$dynamic_linker" >&6; }
15012 test "$dynamic_linker" = no && can_build_shared=no
15013
15014 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15015 if test "$GCC" = yes; then
15016   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15017 fi
15018
15019 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15020   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15021 fi
15022 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15023   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15024 fi
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15064 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15065 hardcode_action_CXX=
15066 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15067    test -n "$runpath_var_CXX" ||
15068    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15069
15070   # We can hardcode non-existent directories.
15071   if test "$hardcode_direct_CXX" != no &&
15072      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15073      # have to relink, otherwise we might link with an installed library
15074      # when we should be linking with a yet-to-be-installed one
15075      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15076      test "$hardcode_minus_L_CXX" != no; then
15077     # Linking always hardcodes the temporary library directory.
15078     hardcode_action_CXX=relink
15079   else
15080     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15081     hardcode_action_CXX=immediate
15082   fi
15083 else
15084   # We cannot hardcode anything, or else we can only hardcode existing
15085   # directories.
15086   hardcode_action_CXX=unsupported
15087 fi
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15089 $as_echo "$hardcode_action_CXX" >&6; }
15090
15091 if test "$hardcode_action_CXX" = relink ||
15092    test "$inherit_rpath_CXX" = yes; then
15093   # Fast installation is not supported
15094   enable_fast_install=no
15095 elif test "$shlibpath_overrides_runpath" = yes ||
15096      test "$enable_shared" = no; then
15097   # Fast installation is not necessary
15098   enable_fast_install=needless
15099 fi
15100
15101
15102
15103
15104
15105
15106
15107   fi # test -n "$compiler"
15108
15109   CC=$lt_save_CC
15110   CFLAGS=$lt_save_CFLAGS
15111   LDCXX=$LD
15112   LD=$lt_save_LD
15113   GCC=$lt_save_GCC
15114   with_gnu_ld=$lt_save_with_gnu_ld
15115   lt_cv_path_LDCXX=$lt_cv_path_LD
15116   lt_cv_path_LD=$lt_save_path_LD
15117   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15118   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15119 fi # test "$_lt_caught_CXX_error" != yes
15120
15121 ac_ext=c
15122 ac_cpp='$CPP $CPPFLAGS'
15123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141         ac_config_commands="$ac_config_commands libtool"
15142
15143
15144
15145
15146 # Only expand once:
15147
15148
15149
15150 if test -n "$ac_tool_prefix"; then
15151   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15152 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15154 $as_echo_n "checking for $ac_word... " >&6; }
15155 if ${ac_cv_prog_RANLIB+:} false; then :
15156   $as_echo_n "(cached) " >&6
15157 else
15158   if test -n "$RANLIB"; then
15159   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15160 else
15161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15162 for as_dir in $PATH
15163 do
15164   IFS=$as_save_IFS
15165   test -z "$as_dir" && as_dir=.
15166     for ac_exec_ext in '' $ac_executable_extensions; do
15167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15168     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15170     break 2
15171   fi
15172 done
15173   done
15174 IFS=$as_save_IFS
15175
15176 fi
15177 fi
15178 RANLIB=$ac_cv_prog_RANLIB
15179 if test -n "$RANLIB"; then
15180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15181 $as_echo "$RANLIB" >&6; }
15182 else
15183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15184 $as_echo "no" >&6; }
15185 fi
15186
15187
15188 fi
15189 if test -z "$ac_cv_prog_RANLIB"; then
15190   ac_ct_RANLIB=$RANLIB
15191   # Extract the first word of "ranlib", so it can be a program name with args.
15192 set dummy ranlib; ac_word=$2
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15194 $as_echo_n "checking for $ac_word... " >&6; }
15195 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15196   $as_echo_n "(cached) " >&6
15197 else
15198   if test -n "$ac_ct_RANLIB"; then
15199   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15200 else
15201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15202 for as_dir in $PATH
15203 do
15204   IFS=$as_save_IFS
15205   test -z "$as_dir" && as_dir=.
15206     for ac_exec_ext in '' $ac_executable_extensions; do
15207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15208     ac_cv_prog_ac_ct_RANLIB="ranlib"
15209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15210     break 2
15211   fi
15212 done
15213   done
15214 IFS=$as_save_IFS
15215
15216 fi
15217 fi
15218 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15219 if test -n "$ac_ct_RANLIB"; then
15220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15221 $as_echo "$ac_ct_RANLIB" >&6; }
15222 else
15223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15224 $as_echo "no" >&6; }
15225 fi
15226
15227   if test "x$ac_ct_RANLIB" = x; then
15228     RANLIB=":"
15229   else
15230     case $cross_compiling:$ac_tool_warned in
15231 yes:)
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15234 ac_tool_warned=yes ;;
15235 esac
15236     RANLIB=$ac_ct_RANLIB
15237   fi
15238 else
15239   RANLIB="$ac_cv_prog_RANLIB"
15240 fi
15241
15242
15243 # Check whether --enable-largefile was given.
15244 if test "${enable_largefile+set}" = set; then :
15245   enableval=$enable_largefile;
15246 fi
15247
15248 if test "$enable_largefile" != no; then
15249
15250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15251 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15252 if ${ac_cv_sys_largefile_CC+:} false; then :
15253   $as_echo_n "(cached) " >&6
15254 else
15255   ac_cv_sys_largefile_CC=no
15256      if test "$GCC" != yes; then
15257        ac_save_CC=$CC
15258        while :; do
15259          # IRIX 6.2 and later do not support large files by default,
15260          # so use the C compiler's -n32 option if that helps.
15261          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262 /* end confdefs.h.  */
15263 #include <sys/types.h>
15264  /* Check that off_t can represent 2**63 - 1 correctly.
15265     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15266     since some C++ compilers masquerading as C compilers
15267     incorrectly reject 9223372036854775807.  */
15268 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15269   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15270                        && LARGE_OFF_T % 2147483647 == 1)
15271                       ? 1 : -1];
15272 int
15273 main ()
15274 {
15275
15276   ;
15277   return 0;
15278 }
15279 _ACEOF
15280          if ac_fn_c_try_compile "$LINENO"; then :
15281   break
15282 fi
15283 rm -f core conftest.err conftest.$ac_objext
15284          CC="$CC -n32"
15285          if ac_fn_c_try_compile "$LINENO"; then :
15286   ac_cv_sys_largefile_CC=' -n32'; break
15287 fi
15288 rm -f core conftest.err conftest.$ac_objext
15289          break
15290        done
15291        CC=$ac_save_CC
15292        rm -f conftest.$ac_ext
15293     fi
15294 fi
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15296 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15297   if test "$ac_cv_sys_largefile_CC" != no; then
15298     CC=$CC$ac_cv_sys_largefile_CC
15299   fi
15300
15301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15302 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15303 if ${ac_cv_sys_file_offset_bits+:} false; then :
15304   $as_echo_n "(cached) " >&6
15305 else
15306   while :; do
15307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15308 /* end confdefs.h.  */
15309 #include <sys/types.h>
15310  /* Check that off_t can represent 2**63 - 1 correctly.
15311     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15312     since some C++ compilers masquerading as C compilers
15313     incorrectly reject 9223372036854775807.  */
15314 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15315   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15316                        && LARGE_OFF_T % 2147483647 == 1)
15317                       ? 1 : -1];
15318 int
15319 main ()
15320 {
15321
15322   ;
15323   return 0;
15324 }
15325 _ACEOF
15326 if ac_fn_c_try_compile "$LINENO"; then :
15327   ac_cv_sys_file_offset_bits=no; break
15328 fi
15329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h.  */
15332 #define _FILE_OFFSET_BITS 64
15333 #include <sys/types.h>
15334  /* Check that off_t can represent 2**63 - 1 correctly.
15335     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15336     since some C++ compilers masquerading as C compilers
15337     incorrectly reject 9223372036854775807.  */
15338 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15339   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15340                        && LARGE_OFF_T % 2147483647 == 1)
15341                       ? 1 : -1];
15342 int
15343 main ()
15344 {
15345
15346   ;
15347   return 0;
15348 }
15349 _ACEOF
15350 if ac_fn_c_try_compile "$LINENO"; then :
15351   ac_cv_sys_file_offset_bits=64; break
15352 fi
15353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15354   ac_cv_sys_file_offset_bits=unknown
15355   break
15356 done
15357 fi
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15359 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15360 case $ac_cv_sys_file_offset_bits in #(
15361   no | unknown) ;;
15362   *)
15363 cat >>confdefs.h <<_ACEOF
15364 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15365 _ACEOF
15366 ;;
15367 esac
15368 rm -rf conftest*
15369   if test $ac_cv_sys_file_offset_bits = unknown; then
15370     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15371 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15372 if ${ac_cv_sys_large_files+:} false; then :
15373   $as_echo_n "(cached) " >&6
15374 else
15375   while :; do
15376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h.  */
15378 #include <sys/types.h>
15379  /* Check that off_t can represent 2**63 - 1 correctly.
15380     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15381     since some C++ compilers masquerading as C compilers
15382     incorrectly reject 9223372036854775807.  */
15383 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15384   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15385                        && LARGE_OFF_T % 2147483647 == 1)
15386                       ? 1 : -1];
15387 int
15388 main ()
15389 {
15390
15391   ;
15392   return 0;
15393 }
15394 _ACEOF
15395 if ac_fn_c_try_compile "$LINENO"; then :
15396   ac_cv_sys_large_files=no; break
15397 fi
15398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15400 /* end confdefs.h.  */
15401 #define _LARGE_FILES 1
15402 #include <sys/types.h>
15403  /* Check that off_t can represent 2**63 - 1 correctly.
15404     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15405     since some C++ compilers masquerading as C compilers
15406     incorrectly reject 9223372036854775807.  */
15407 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15408   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15409                        && LARGE_OFF_T % 2147483647 == 1)
15410                       ? 1 : -1];
15411 int
15412 main ()
15413 {
15414
15415   ;
15416   return 0;
15417 }
15418 _ACEOF
15419 if ac_fn_c_try_compile "$LINENO"; then :
15420   ac_cv_sys_large_files=1; break
15421 fi
15422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15423   ac_cv_sys_large_files=unknown
15424   break
15425 done
15426 fi
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15428 $as_echo "$ac_cv_sys_large_files" >&6; }
15429 case $ac_cv_sys_large_files in #(
15430   no | unknown) ;;
15431   *)
15432 cat >>confdefs.h <<_ACEOF
15433 #define _LARGE_FILES $ac_cv_sys_large_files
15434 _ACEOF
15435 ;;
15436 esac
15437 rm -rf conftest*
15438   fi
15439
15440
15441 fi
15442
15443 if test "$ac_cv_sys_largefile_CC" != no; then
15444    CXX=$CXX$ac_cv_sys_largefile_CC
15445 fi
15446
15447
15448
15449 # Check whether --with-openssl was given.
15450 if test "${with_openssl+set}" = set; then :
15451   withval=$with_openssl;
15452         if test "$withval" = "yes"; then
15453             if test -d /var/local/ssl/include ; then
15454                 openssl_prefix=/var/local/ssl
15455             elif test -d /var/local/include/openssl ; then
15456                 openssl_prefix=/var/local
15457             elif test -d /usr/local/ssl/include ; then
15458                 openssl_prefix=/usr/local/ssl
15459             elif test -d /usr/lib/ssl/include ; then
15460                 openssl_prefix=/usr/lib/ssl
15461             elif test -d /usr/include/openssl ; then
15462                 openssl_prefix=/usr
15463             else
15464                 openssl_prefix=""
15465             fi
15466             openssl_requested="yes"
15467         elif test -d "$withval"; then
15468             openssl_prefix="$withval"
15469             openssl_requested="yes"
15470         else
15471             openssl_prefix=""
15472             openssl_requested="no"
15473         fi
15474
15475 else
15476
15477                 if test -d /var/local/ssl/include ; then
15478             openssl_prefix=/var/local/ssl
15479         elif test -d /var/local/include/openssl ; then
15480             openssl_prefix=/var/local
15481         elif test -d /usr/local/ssl/include ; then
15482             openssl_prefix=/usr/local/ssl
15483         elif test -d /usr/lib/ssl/include ; then
15484             openssl_prefix=/usr/lib/ssl
15485         elif test -d /usr/include/openssl ; then
15486             openssl_prefix=/usr
15487         else
15488             openssl_prefix=""
15489         fi
15490
15491
15492 fi
15493
15494
15495     OPENSSL_CPPFLAGS=""
15496     OPENSSL_LDFLAGS=""
15497     OPENSSL_VERSION=""
15498
15499                 run_openssl_test="no"
15500
15501     if test -n "$openssl_prefix"; then
15502         openssl_include_dir="$openssl_prefix/include"
15503         openssl_ldflags="-L$openssl_prefix/lib64 -L$openssl_prefix/lib"
15504         run_openssl_test="yes"
15505     elif test "$openssl_requested" = "yes"; then
15506         if test -n "$openssl_include_dir" -a -n "$openssl_lib_flags"; then
15507             run_openssl_test="yes"
15508         fi
15509     else
15510         run_openssl_test="no"
15511     fi
15512
15513     openssl_libs="-lssl -lcrypto"
15514
15515                 if test "$run_openssl_test" = "yes"; then
15516
15517         saved_CPPFLAGS="$CPPFLAGS"
15518         CPPFLAGS="$CPPFLAGS -I$openssl_include_dir"
15519
15520         saved_LDFLAGS="$LDFLAGS"
15521         LDFLAGS="$LDFLAGS $openssl_ldflags"
15522
15523         saved_LIBS="$LIBS"
15524         LIBS="$openssl_libs $LIBS"
15525
15526                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers in $openssl_include_dir" >&5
15527 $as_echo_n "checking for OpenSSL headers in $openssl_include_dir... " >&6; }
15528
15529         ac_ext=c
15530 ac_cpp='$CPP $CPPFLAGS'
15531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15534
15535         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15536 /* end confdefs.h.  */
15537
15538
15539 #include <openssl/opensslv.h>
15540 #include <openssl/ssl.h>
15541 #include <openssl/crypto.h>
15542
15543 int
15544 main ()
15545 {
15546
15547
15548   ;
15549   return 0;
15550 }
15551 _ACEOF
15552 if ac_fn_c_try_compile "$LINENO"; then :
15553
15554             OPENSSL_CPPFLAGS="-I$openssl_include_dir"
15555             openssl_header_found="yes"
15556             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15557 $as_echo "found" >&6; }
15558
15559 else
15560
15561             openssl_header_found="no"
15562             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15563 $as_echo "not found" >&6; }
15564
15565
15566 fi
15567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15568         ac_ext=c
15569 ac_cpp='$CPP $CPPFLAGS'
15570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15573
15574
15575                                 if test "$openssl_header_found" = "yes"; then
15576
15577             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL libraries" >&5
15578 $as_echo_n "checking for OpenSSL libraries... " >&6; }
15579
15580             ac_ext=c
15581 ac_cpp='$CPP $CPPFLAGS'
15582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15585
15586             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h.  */
15588
15589
15590 #include <openssl/opensslv.h>
15591 #include <openssl/ssl.h>
15592 #include <openssl/crypto.h>
15593 #if (OPENSSL_VERSION_NUMBER < 0x0090700f)
15594 #endif
15595
15596 int
15597 main ()
15598 {
15599
15600 SSL_library_init();
15601 SSLeay();
15602
15603
15604   ;
15605   return 0;
15606 }
15607 _ACEOF
15608 if ac_fn_c_try_link "$LINENO"; then :
15609
15610                 OPENSSL_LDFLAGS="$openssl_ldflags"
15611                 OPENSSL_LIBS="$openssl_libs"
15612                 openssl_lib_found="yes"
15613                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15614 $as_echo "found" >&6; }
15615
15616 else
15617
15618                 openssl_lib_found="no"
15619                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15620 $as_echo "not found" >&6; }
15621
15622
15623 fi
15624 rm -f core conftest.err conftest.$ac_objext \
15625     conftest$ac_exeext conftest.$ac_ext
15626             ac_ext=c
15627 ac_cpp='$CPP $CPPFLAGS'
15628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15631
15632         fi
15633
15634         CPPFLAGS="$saved_CPPFLAGS"
15635         LDFLAGS="$saved_LDFLAGS"
15636         LIBS="$saved_LIBS"
15637     fi
15638
15639     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
15640 $as_echo_n "checking for OpenSSL... " >&6; }
15641
15642     if test "$run_openssl_test" = "yes"; then
15643         if test "$openssl_header_found" = "yes" -a "$openssl_lib_found" = "yes"; then
15644
15645
15646
15647
15648
15649             HAVE_OPENSSL="yes"
15650         else
15651             HAVE_OPENSSL="no"
15652         fi
15653
15654         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OPENSSL" >&5
15655 $as_echo "$HAVE_OPENSSL" >&6; }
15656
15657                                 if test "$HAVE_OPENSSL" = "yes"; then
15658
15659             openssl_version_req=0.9.7
15660
15661             if test  -n "$openssl_version_req"; then
15662
15663                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenSSL version is >= $openssl_version_req" >&5
15664 $as_echo_n "checking if OpenSSL version is >= $openssl_version_req... " >&6; }
15665
15666                 if test -f "$openssl_include_dir/openssl/opensslv.h"; then
15667
15668                     OPENSSL_VERSION=`grep OPENSSL_VERSION_TEXT $openssl_include_dir/openssl/opensslv.h \
15669                                     | grep -v fips | grep -v PTEXT | cut -f 2 | tr -d \"`
15670
15671
15672                                         openssl_version_req_major=`expr $openssl_version_req : '\([0-9]*\)'`
15673                     openssl_version_req_minor=`expr $openssl_version_req : '[0-9]*\.\([0-9]*\)'`
15674                     openssl_version_req_revision=`expr $openssl_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
15675                     openssl_version_req_patch=`expr $openssl_version_req : '[0-9]*\.[0-9]*\.[0-9]*\([a-z]*\)'`
15676                     if test "x$openssl_version_req_revision" = "x"; then
15677                         openssl_version_req_revision="0"
15678                     fi
15679                     if test "x$openssl_version_req_patch" = "x"; then
15680                         openssl_version_req_patch="\`"
15681                     fi
15682
15683                     openssl_version_req_number=`expr $openssl_version_req_major \* $((0x10000000)) \
15684                                                \+ $openssl_version_req_minor \* $((0x100000)) \
15685                                                \+ $openssl_version_req_revision \* $((0x1000)) \
15686                                                \+ $((1 + $(printf "%d" \'$openssl_version_req_patch) - $(printf "%d" \'a))) \* $((0x10)) \
15687                                                \+ $((0xf))`
15688
15689                                         openssl_version_number=`expr $(($(grep OPENSSL_VERSION_NUMBER $openssl_include_dir/openssl/opensslv.h | cut -f 2 | tr -d L)))`
15690
15691                     openssl_version_check=`expr $openssl_version_number \>\= $openssl_version_req_number`
15692                     if test "$openssl_version_check" = "1"; then
15693                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15694 $as_echo "yes" >&6; }
15695                     else
15696                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15697 $as_echo "no" >&6; }
15698                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found $OPENSSL_VERSION, which is older than required. Possible compilation failure." >&5
15699 $as_echo "$as_me: WARNING: Found $OPENSSL_VERSION, which is older than required. Possible compilation failure." >&2;}
15700                     fi
15701                 else
15702                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15703 $as_echo "no" >&6; }
15704                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing header openssl/opensslv.h. Unable to determine OpenSSL version." >&5
15705 $as_echo "$as_me: WARNING: Missing header openssl/opensslv.h. Unable to determine OpenSSL version." >&2;}
15706                 fi
15707             fi
15708         fi
15709
15710     else
15711         HAVE_OPENSSL="no"
15712         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_OPENSSL" >&5
15713 $as_echo "$HAVE_OPENSSL" >&6; }
15714
15715         if test "$openssl_requested" = "yes"; then
15716             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL support requested but headers or library not found. Specify valid prefix of OpenSSL using --with-openssl=[DIR]" >&5
15717 $as_echo "$as_me: WARNING: OpenSSL support requested but headers or library not found. Specify valid prefix of OpenSSL using --with-openssl=[DIR]" >&2;}
15718         fi
15719     fi
15720     if test "$HAVE_OPENSSL" = "yes"; then
15721         CPPFLAGS="$CPPFLAGS $OPENSSL_CPPFLAGS -DHAVE_SSL=1"
15722         LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS $OPENSSL_LIBS"
15723     fi
15724
15725
15726
15727 # Check whether --with-expat was given.
15728 if test "${with_expat+set}" = set; then :
15729   withval=$with_expat;
15730         if test "$withval" = "yes"; then
15731             if test -f /usr/local/include/expat.h ; then
15732                 expat_prefix=/usr/local
15733             elif test -f /usr/include/expat.h ; then
15734                 expat_prefix=/usr
15735             else
15736                 expat_prefix=""
15737             fi
15738             expat_requested="yes"
15739         elif test -d "$withval"; then
15740             expat_prefix="$withval"
15741             expat_requested="yes"
15742         else
15743             expat_prefix=""
15744             expat_requested="no"
15745         fi
15746
15747 else
15748
15749 #        dnl Default behavior is implicit yes
15750 #        if test -f /usr/local/include/expat.h ; then
15751 #            expat_prefix=/usr/local
15752 #        elif test -f /usr/include/expat.h ; then
15753 #            expat_prefix=/usr
15754 #        else
15755 #            expat_prefix=""
15756 #        fi
15757                 expat_prefix=""
15758         expat_requested="no"
15759
15760
15761 fi
15762
15763
15764
15765 # Check whether --with-expat-inc was given.
15766 if test "${with_expat_inc+set}" = set; then :
15767   withval=$with_expat_inc; expat_include_dir="$withval"
15768 else
15769   expat_include_dir=""
15770
15771 fi
15772
15773
15774 # Check whether --with-expat-lib was given.
15775 if test "${with_expat_lib+set}" = set; then :
15776   withval=$with_expat_lib; expat_lib_flags="$withval"
15777 else
15778   expat_lib_flags=""
15779
15780 fi
15781
15782
15783     EXPAT_CFLAGS=""
15784     EXPAT_LDFLAGS=""
15785     EXPAT_VERSION=""
15786
15787                 run_expat_test="no"
15788
15789     if test -n "$expat_prefix"; then
15790         expat_include_dir="$expat_prefix/include"
15791         expat_lib_flags="-L$expat_prefix/lib64 -L$expat_prefix/lib -lexpat"
15792         run_expat_test="yes"
15793     elif test "$expat_requested" = "yes"; then
15794         if test -n "$expat_include_dir" -a -n "$expat_lib_flags"; then
15795             run_expat_test="yes"
15796         fi
15797     else
15798         run_expat_test="no"
15799     fi
15800
15801                 if test "$run_expat_test" = "yes"; then
15802
15803         saved_CPPFLAGS="$CPPFLAGS"
15804         CPPFLAGS="$CPPFLAGS -I$expat_include_dir"
15805
15806         saved_LDFLAGS="$LDFLAGS"
15807         LDFLAGS="$LDFLAGS $expat_lib_flags"
15808
15809                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat XML Parser headers in $expat_include_dir" >&5
15810 $as_echo_n "checking for Expat XML Parser headers in $expat_include_dir... " >&6; }
15811
15812         ac_ext=cpp
15813 ac_cpp='$CXXCPP $CPPFLAGS'
15814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15817
15818         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819 /* end confdefs.h.  */
15820
15821
15822 #include <expat.h>
15823
15824 int
15825 main ()
15826 {
15827
15828
15829   ;
15830   return 0;
15831 }
15832 _ACEOF
15833 if ac_fn_cxx_try_compile "$LINENO"; then :
15834
15835             EXPAT_CFLAGS="-I$expat_include_dir"
15836             expat_header_found="yes"
15837             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15838 $as_echo "found" >&6; }
15839
15840 else
15841
15842             expat_header_found="no"
15843             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15844 $as_echo "not found" >&6; }
15845
15846
15847 fi
15848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15849         ac_ext=c
15850 ac_cpp='$CPP $CPPFLAGS'
15851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15854
15855
15856                                 if test "$expat_header_found" = "yes"; then
15857
15858             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat XML Parser libraries" >&5
15859 $as_echo_n "checking for Expat XML Parser libraries... " >&6; }
15860
15861             ac_ext=cpp
15862 ac_cpp='$CXXCPP $CPPFLAGS'
15863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15866
15867             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15868 /* end confdefs.h.  */
15869
15870
15871 #include <expat.h>
15872
15873 int
15874 main ()
15875 {
15876
15877 XML_Parser p = XML_ParserCreate(NULL);
15878 XML_ParserFree(p);
15879 p = NULL;
15880
15881
15882   ;
15883   return 0;
15884 }
15885 _ACEOF
15886 if ac_fn_cxx_try_link "$LINENO"; then :
15887
15888                 EXPAT_LDFLAGS="$expat_lib_flags"
15889                 expat_lib_found="yes"
15890                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15891 $as_echo "found" >&6; }
15892
15893 else
15894
15895                 expat_lib_found="no"
15896                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15897 $as_echo "not found" >&6; }
15898
15899
15900 fi
15901 rm -f core conftest.err conftest.$ac_objext \
15902     conftest$ac_exeext conftest.$ac_ext
15903             ac_ext=c
15904 ac_cpp='$CPP $CPPFLAGS'
15905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15908
15909         fi
15910
15911         CPPFLAGS="$saved_CPPFLAGS"
15912         LDFLAGS="$saved_LDFLAGS"
15913     fi
15914
15915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat XML Parser" >&5
15916 $as_echo_n "checking for Expat XML Parser... " >&6; }
15917
15918     if test "$run_expat_test" = "yes"; then
15919         if test "$expat_header_found" = "yes" -a "$expat_lib_found" = "yes"; then
15920
15921
15922
15923
15924             HAVE_EXPAT="yes"
15925         else
15926             HAVE_EXPAT="no"
15927         fi
15928
15929         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_EXPAT" >&5
15930 $as_echo "$HAVE_EXPAT" >&6; }
15931
15932                                 if test "$HAVE_EXPAT" = "yes"; then
15933
15934             expat_version_req=
15935
15936             if test  -n "$expat_version_req"; then
15937
15938                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Expat XML Parser version is >= $expat_version_req" >&5
15939 $as_echo_n "checking if Expat XML Parser version is >= $expat_version_req... " >&6; }
15940
15941                 if test -f "$expat_include_dir/expat.h"; then
15942
15943                     expat_major=`cat $expat_include_dir/expat.h | \
15944                                     grep '^#define.*XML_MAJOR_VERSION.*[0-9]$' | \
15945                                     sed -e 's/#define XML_MAJOR_VERSION.//'`
15946
15947                     expat_minor=`cat $expat_include_dir/expat.h | \
15948                                     grep '^#define.*XML_MINOR_VERSION.*[0-9]$' | \
15949                                     sed -e 's/#define XML_MINOR_VERSION.//'`
15950
15951                     expat_revision=`cat $expat_include_dir/expat.h | \
15952                                     grep '^#define.*XML_MICRO_VERSION.*[0-9]$' | \
15953                                     sed -e 's/#define XML_MICRO_VERSION.//'`
15954
15955                     EXPAT_VERSION="$expat_major.$expat_minor.$expat_revision"
15956
15957
15958                                         expat_version_req_major=`expr $expat_version_req : '\([0-9]*\)'`
15959                     expat_version_req_minor=`expr $expat_version_req : '[0-9]*\.\([0-9]*\)'`
15960                     expat_version_req_revision=`expr $expat_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
15961                     if test "x$expat_version_req_revision" = "x"; then
15962                         expat_version_req_revision="0"
15963                     fi
15964
15965                     expat_version_req_number=`expr $expat_version_req_major \* 10000 \
15966                                                \+ $expat_version_req_minor \* 100 \
15967                                                \+ $expat_version_req_revision`
15968
15969                                         expat_version_number=`expr $expat_major \* 10000 \
15970                                           \+ $expat_minor \* 100 \
15971                                            \+ $expat_revision`
15972
15973                     expat_version_check=`expr $expat_version_number \>\= $expat_version_req_number`
15974                     if test "$expat_version_check" = "1"; then
15975                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15976 $as_echo "yes" >&6; }
15977                     else
15978                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15979 $as_echo "no" >&6; }
15980                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found Expat XML Parser $EXPAT_VERSION, which is older than required. Possible compilation failure." >&5
15981 $as_echo "$as_me: WARNING: Found Expat XML Parser $EXPAT_VERSION, which is older than required. Possible compilation failure." >&2;}
15982                     fi
15983                 else
15984                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15985 $as_echo "no" >&6; }
15986                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing expat.h header. Unable to determine Expat version." >&5
15987 $as_echo "$as_me: WARNING: Missing expat.h header. Unable to determine Expat version." >&2;}
15988                 fi
15989             fi
15990         fi
15991
15992     else
15993         HAVE_EXPAT="no"
15994         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_EXPAT" >&5
15995 $as_echo "$HAVE_EXPAT" >&6; }
15996
15997         if test "$expat_requested" = "yes"; then
15998             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expat XML Parser support requested but headers or library not found. Specify valid prefix of Expat using --with-expat=[DIR] or provide include directory and linker flags using --with-expat-inc and --with-expat-lib" >&5
15999 $as_echo "$as_me: WARNING: Expat XML Parser support requested but headers or library not found. Specify valid prefix of Expat using --with-expat=[DIR] or provide include directory and linker flags using --with-expat-inc and --with-expat-lib" >&2;}
16000         fi
16001     fi
16002     if test "$HAVE_EXPAT" = "yes"; then
16003         CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS -DHAVE_EXPAT=1"
16004         LDFLAGS="$LDFLAGS $EXPAT_LDFLAGS"
16005     fi
16006
16007
16008 #    AC_REQUIRE([ACX_PTHREAD])
16009
16010
16011 # Check whether --with-xerces was given.
16012 if test "${with_xerces+set}" = set; then :
16013   withval=$with_xerces;
16014         if test "$withval" = "yes"; then
16015             if test -d /usr/local/include/xercesc ; then
16016                 xerces_prefix=/usr/local
16017             elif test -d /usr/include/xercesc ; then
16018                 xerces_prefix=/usr
16019             else
16020                 xerces_prefix=""
16021             fi
16022             xerces_requested="yes"
16023         elif test -d "$withval"; then
16024             xerces_prefix="$withval"
16025             xerces_requested="yes"
16026         else
16027             xerces_prefix=""
16028             xerces_requested="no"
16029         fi
16030
16031 else
16032
16033 #        dnl Default behavior is implicit yes
16034 #        if test -d /usr/local/include/xercesc ; then
16035 #            xerces_prefix=/usr/local
16036 #        elif test -d /usr/include/xercesc ; then
16037 #            xerces_prefix=/usr
16038 #        else
16039 #            xerces_prefix=""
16040 #        fi
16041                 xerces_prefix=""
16042         xerces_requested="no"
16043
16044
16045 fi
16046
16047
16048
16049 # Check whether --with-xerces-inc was given.
16050 if test "${with_xerces_inc+set}" = set; then :
16051   withval=$with_xerces_inc; xerces_include_dir="$withval"
16052 else
16053   xerces_include_dir=""
16054
16055 fi
16056
16057
16058 # Check whether --with-xerces-lib was given.
16059 if test "${with_xerces_lib+set}" = set; then :
16060   withval=$with_xerces_lib; xerces_ldflags="$withval"
16061 else
16062   xerces_ldflags=""
16063
16064 fi
16065
16066
16067     XERCES_CPPFLAGS=""
16068     XERCES_LDFLAGS=""
16069     XERCES_VERSION=""
16070
16071                 run_xerces_test="no"
16072
16073     if test -n "$xerces_prefix"; then
16074         xerces_include_dir="$xerces_prefix/include"
16075         xerces_include_dir2="$xerces_prefix/include/xercesc"
16076         xerces_ldflags="-L$xerces_prefix/lib"
16077         run_xerces_test="yes"
16078     elif test "$xerces_requested" = "yes"; then
16079         if test -n "$xerces_include_dir" -a -n "$xerces_lib_flags"; then
16080             xerces_include_dir2="$xerces_include_dir/xercesc"
16081             run_xerces_test="yes"
16082         fi
16083     else
16084         run_xerces_test="no"
16085     fi
16086
16087     xerces_libs="-lxerces-c"
16088
16089                 if test "$run_xerces_test" = "yes"; then
16090
16091         saved_CPPFLAGS="$CPPFLAGS"
16092         CPPFLAGS="$CPPFLAGS -I$xerces_include_dir -I$xerces_include_dir2"
16093
16094         saved_LDFLAGS="$LDFLAGS"
16095         LDFLAGS="$xerces_ldflags $PTHREAD_LDFLAGS $LDFLAGS"
16096
16097         saved_LIBS="$LIBS"
16098         LIBS="$xerces_libs $PTHREAD_LIBS $LIBS"
16099
16100                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xerces C++ Parser headers in $xerces_include_dir and $xerces_include_dir2" >&5
16101 $as_echo_n "checking for Xerces C++ Parser headers in $xerces_include_dir and $xerces_include_dir2... " >&6; }
16102
16103         ac_ext=cpp
16104 ac_cpp='$CXXCPP $CPPFLAGS'
16105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16108
16109         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16110 /* end confdefs.h.  */
16111
16112
16113 #include <xercesc/util/XercesDefs.hpp>
16114 #include <xercesc/util/PlatformUtils.hpp>
16115
16116 int
16117 main ()
16118 {
16119
16120
16121   ;
16122   return 0;
16123 }
16124 _ACEOF
16125 if ac_fn_cxx_try_compile "$LINENO"; then :
16126
16127             XERCES_CPPFLAGS="-I$xerces_include_dir -I$xerces_include_dir2"
16128             xerces_header_found="yes"
16129             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16130 $as_echo "found" >&6; }
16131
16132 else
16133
16134             xerces_header_found="no"
16135             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16136 $as_echo "not found" >&6; }
16137
16138
16139 fi
16140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16141         ac_ext=c
16142 ac_cpp='$CPP $CPPFLAGS'
16143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16146
16147
16148                                 if test "$xerces_header_found" = "yes"; then
16149
16150             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xerces C++ Parser libraries" >&5
16151 $as_echo_n "checking for Xerces C++ Parser libraries... " >&6; }
16152
16153             ac_ext=cpp
16154 ac_cpp='$CXXCPP $CPPFLAGS'
16155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16158
16159             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16160 /* end confdefs.h.  */
16161
16162
16163 #include <xercesc/util/XercesDefs.hpp>
16164 #include <xercesc/util/PlatformUtils.hpp>
16165 #if (_XERCES_VERSION >= 20200)
16166 XERCES_CPP_NAMESPACE_USE
16167 #endif
16168
16169 int
16170 main ()
16171 {
16172
16173 XMLPlatformUtils::Initialize();
16174
16175
16176   ;
16177   return 0;
16178 }
16179 _ACEOF
16180 if ac_fn_cxx_try_link "$LINENO"; then :
16181
16182                 XERCES_LDFLAGS="$xerces_ldflags $PTHREAD_LDFLAGS"
16183                 XERCES_LIBS="$xerces_libs $PTHREAD_LIBS"
16184                 xerces_lib_found="yes"
16185                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
16186 $as_echo "found" >&6; }
16187
16188 else
16189
16190                 xerces_lib_found="no"
16191                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
16192 $as_echo "not found" >&6; }
16193
16194
16195 fi
16196 rm -f core conftest.err conftest.$ac_objext \
16197     conftest$ac_exeext conftest.$ac_ext
16198             ac_ext=c
16199 ac_cpp='$CPP $CPPFLAGS'
16200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16203
16204         fi
16205
16206         CPPFLAGS="$saved_CPPFLAGS"
16207         LDFLAGS="$saved_LDFLAGS"
16208         LIBS="$saved_LIBS"
16209     fi
16210
16211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xerces C++ Parser" >&5
16212 $as_echo_n "checking for Xerces C++ Parser... " >&6; }
16213
16214     if test "$run_xerces_test" = "yes"; then
16215         if test "$xerces_header_found" = "yes" -a "$xerces_lib_found" = "yes"; then
16216
16217
16218
16219
16220
16221             HAVE_XERCES="yes"
16222         else
16223             HAVE_XERCES="no"
16224         fi
16225
16226         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XERCES" >&5
16227 $as_echo "$HAVE_XERCES" >&6; }
16228
16229                                 if test "$HAVE_XERCES" = "yes"; then
16230
16231             xerces_version_req=
16232
16233             if test  -n "$xerces_version_req"; then
16234
16235                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xerces C++ Parser version is >= $xerces_version_req" >&5
16236 $as_echo_n "checking if Xerces C++ Parser version is >= $xerces_version_req... " >&6; }
16237
16238                 if test -f "$xerces_include_dir2/util/XercesVersion.hpp"; then
16239
16240                     xerces_major=`cat $xerces_include_dir2/util/XercesVersion.hpp | \
16241                                     grep '^#define.*XERCES_VERSION_MAJOR.*[0-9]$' | \
16242                                     sed -e 's/#define XERCES_VERSION_MAJOR.//'`
16243
16244                     xerces_minor=`cat $xerces_include_dir2/util/XercesVersion.hpp | \
16245                                     grep '^#define.*XERCES_VERSION_MINOR.*[0-9]$' | \
16246                                     sed -e 's/#define XERCES_VERSION_MINOR.//'`
16247
16248                     xerces_revision=`cat $xerces_include_dir2/util/XercesVersion.hpp | \
16249                                     grep '^#define.*XERCES_VERSION_REVISION.*[0-9]$' | \
16250                                     sed -e 's/#define XERCES_VERSION_REVISION.//'`
16251
16252                     XERCES_VERSION="$xerces_major.$xerces_minor.$xerces_revision"
16253
16254
16255                                         xerces_version_req_major=`expr $xerces_version_req : '\([0-9]*\)'`
16256                     xerces_version_req_minor=`expr $xerces_version_req : '[0-9]*\.\([0-9]*\)'`
16257                     xerces_version_req_revision=`expr $xerces_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
16258                     if test "x$xerces_version_req_revision" = "x"; then
16259                         xerces_version_req_revision="0"
16260                     fi
16261
16262                     xerces_version_req_number=`expr $xerces_version_req_major \* 10000 \
16263                                                \+ $xerces_version_req_minor \* 100 \
16264                                                \+ $xerces_version_req_revision`
16265
16266                                         xerces_version_number=`expr $xerces_major \* 10000 \
16267                                           \+ $xerces_minor \* 100 \
16268                                            \+ $xerces_revision`
16269
16270                     xerces_version_check=`expr $xerces_version_number \>\= $xerces_version_req_number`
16271                     if test "$xerces_version_check" = "1"; then
16272                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16273 $as_echo "yes" >&6; }
16274                     else
16275                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16276 $as_echo "no" >&6; }
16277                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found Xerces C++ Parser $XERCES_VERSION, which is older than required. Possible compilation failure." >&5
16278 $as_echo "$as_me: WARNING: Found Xerces C++ Parser $XERCES_VERSION, which is older than required. Possible compilation failure." >&2;}
16279                     fi
16280                 else
16281                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16282 $as_echo "no" >&6; }
16283                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing header XercesVersion.hpp. Unable to determine Xerces version." >&5
16284 $as_echo "$as_me: WARNING: Missing header XercesVersion.hpp. Unable to determine Xerces version." >&2;}
16285                 fi
16286             fi
16287         fi
16288
16289     else
16290         HAVE_XERCES="no"
16291         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XERCES" >&5
16292 $as_echo "$HAVE_XERCES" >&6; }
16293
16294         if test "$xerces_requested" = "yes"; then
16295             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Xerces C++ Parser support requested but headers or library not found. Specify valid prefix of Xerces C++ using --with-xerces=[DIR] or provide include directory and linker flags using --with-xerces-inc and --with-xerces-lib" >&5
16296 $as_echo "$as_me: WARNING: Xerces C++ Parser support requested but headers or library not found. Specify valid prefix of Xerces C++ using --with-xerces=[DIR] or provide include directory and linker flags using --with-xerces-inc and --with-xerces-lib" >&2;}
16297         fi
16298     fi
16299     if test "$HAVE_XERCES" = "yes"; then
16300         CPPFLAGS="$CPPFLAGS $XERCES_CPPFLAGS -DHAVE_XERCES_C=1"
16301         LDFLAGS="$LDFLAGS $XERCES_LDFLAGS $XERCES_LIBS"
16302     fi
16303
16304 #AM_PATH_PYTHON([2.3], , [:])
16305
16306     az_python_use=false
16307      if test x"$az_python_use" = x"true"; then
16308   PYTHON_USE_TRUE=
16309   PYTHON_USE_FALSE='#'
16310 else
16311   PYTHON_USE_TRUE='#'
16312   PYTHON_USE_FALSE=
16313 fi
16314
16315
16316
16317
16318
16319     # unless PYTHON was supplied to us (as a precious variable),
16320     # see if --with-python[=PythonExecutablePath], --with-python,
16321     # --without-python or --with-python=no was given.
16322     if test -z "$PYTHON"
16323     then
16324         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-python" >&5
16325 $as_echo_n "checking for --with-python... " >&6; }
16326
16327 # Check whether --with-python was given.
16328 if test "${with_python+set}" = set; then :
16329   withval=$with_python;
16330                 if test "$withval" = "yes"
16331                 then
16332                     # "yes" was specified, but we don't have a path
16333                     # for the executable.
16334                     # So, let's searth the PATH Environment Variable.
16335                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16336 $as_echo "yes" >&6; }
16337                     # Extract the first word of "python", so it can be a program name with args.
16338 set dummy python; ac_word=$2
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16340 $as_echo_n "checking for $ac_word... " >&6; }
16341 if ${ac_cv_path_PYTHON+:} false; then :
16342   $as_echo_n "(cached) " >&6
16343 else
16344   case $PYTHON in
16345   [\\/]* | ?:[\\/]*)
16346   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
16347   ;;
16348   *)
16349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16350 for as_dir in $PATH
16351 do
16352   IFS=$as_save_IFS
16353   test -z "$as_dir" && as_dir=.
16354     for ac_exec_ext in '' $ac_executable_extensions; do
16355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16356     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
16357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16358     break 2
16359   fi
16360 done
16361   done
16362 IFS=$as_save_IFS
16363
16364   ;;
16365 esac
16366 fi
16367 PYTHON=$ac_cv_path_PYTHON
16368 if test -n "$PYTHON"; then
16369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16370 $as_echo "$PYTHON" >&6; }
16371 else
16372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16373 $as_echo "no" >&6; }
16374 fi
16375
16376
16377                     if test -z "$PYTHON"
16378                     then
16379                         as_fn_error $? "no path to python found" "$LINENO" 5
16380                     fi
16381                     az_python_use=true
16382                      if test x"$az_python_use" = x"true"; then
16383   PYTHON_USE_TRUE=
16384   PYTHON_USE_FALSE='#'
16385 else
16386   PYTHON_USE_TRUE='#'
16387   PYTHON_USE_FALSE=
16388 fi
16389
16390
16391
16392     if test -n "$PYTHON"
16393     then
16394         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python include directory" >&5
16395 $as_echo_n "checking for python include directory... " >&6; }
16396         az_python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
16397         if test -z "$az_python_prefix"
16398         then
16399             as_fn_error $? "Python Prefix is not known" "$LINENO" 5
16400         fi
16401         python_path=
16402         az_python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
16403         az_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
16404         az_python_includespec="-I`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_inc();'`"
16405         if test x"$python_prefix" != x"$python_execprefix"; then
16406             az_python_execspec="-I${az_python_execprefix}/include/python${az_python_version}"
16407             az_python_includespec="${az_python_includespec} $az_python_execspec"
16408         fi
16409         az_python_ccshared=`${PYTHON} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('CFLAGSFORSHARED')"`
16410         az_python_cspec="${az_python_ccshared} ${az_python_includespec}"
16411         PYTHON_CSPEC=${az_python_cspec}
16412
16413         PYTHON_CPPFLAGS=${az_python_includespec}
16414
16415         PYTHON_SHORTVERSION="${az_python_version}"
16416
16417         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16418 $as_echo "$PYTHON_CPPFLAGS" >&6; }
16419     fi
16420
16421
16422
16423     if test -n "$PYTHON"
16424     then
16425         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python linker flags" >&5
16426 $as_echo_n "checking for python linker flags... " >&6; }
16427
16428
16429     if test -z "$PYTHON"
16430     then
16431         as_fn_error $? "Python Executable not found" "$LINENO" 5
16432     else
16433         cat >conftest.py <<_ACEOF
16434
16435 import sys
16436 import distutils.sysconfig
16437 strUseFrameWork = "--enable-framework"
16438 dictConfig = distutils.sysconfig.get_config_vars( )
16439 strConfigArgs = dictConfig.get("CONFIG_ARGS")
16440 strLinkSpec =  dictConfig.get('LDFLAGS')
16441 if -1 ==  strConfigArgs.find(strUseFrameWork):
16442     strLibPL = dictConfig.get("LIBPL")
16443     if strLibPL and (strLibPL != ""):
16444         strLinkSpec += " -L%s" % (strLibPL)
16445     strSys = dictConfig.get("SYSLIBS")
16446     if strSys and (strSys != ""):
16447         strLinkSpec += " %s" % (strSys)
16448     strSHL = dictConfig.get("SHLIBS")
16449     if strSHL and (strSHL != ""):
16450         strLinkSpec += " %s" % (strSHL)
16451     # Construct the Python Library Name.
16452     strTmplte = " -lpython%d.%d"
16453     if (sys.platform == "win32") or (sys.platform == "os2emx"):
16454         strTmplte = " -lpython%d%d"
16455     strWrk = strTmplte % ( (sys.hexversion >> 24),
16456                             ((sys.hexversion >> 16) & 0xff))
16457     strLinkSpec += strWrk
16458 else:
16459     # This is not ideal since it changes the search path
16460     # for Frameworks which could have side-effects on
16461     # other included Frameworks.  However, it is necessary
16462     # where someone has installed more than one frameworked
16463     # Python.  Frameworks are really only used in MacOSX.
16464     strLibFW = dictConfig.get("PYTHONFRAMEWORKPREFIX")
16465     if strLibFW and (strLibFW != ""):
16466         strLinkSpec += " -F%s" % (strLibFW)
16467 strLinkSpec += " %s" % (dictConfig.get('LINKFORSHARED'))
16468 print strLinkSpec
16469
16470 _ACEOF
16471         az_python_output=`$PYTHON conftest.py`
16472         az_python_cc=$?
16473         rm conftest.py
16474         if test -f "conftest.pyc"
16475         then
16476             rm conftest.pyc
16477         fi
16478     fi
16479
16480         PYTHON_LSPEC=${az_python_output}
16481
16482         az_python_ldflags=`${PYTHON} -c "import distutils.sysconfig; \
16483                 print '-L' + distutils.sysconfig.get_python_lib(), '-lpython' + \
16484                 distutils.sysconfig.get_config_var('VERSION');"`
16485         PYTHON_LDFLAGS=${az_python_ldflags}
16486
16487         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16488 $as_echo "$PYTHON_LDFLAGS" >&6; }
16489     fi
16490
16491
16492     if test -z "$PYTHON"
16493     then
16494         as_fn_error $? "Python Executable Path is not known" "$LINENO" 5
16495     fi
16496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python extension install directory" >&5
16497 $as_echo_n "checking for python extension install directory... " >&6; }
16498     ax_python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
16499     ax_python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
16500     PYTHON_PREFIX="${ax_python_prefix}"
16501
16502     PYTHON_EXECPREFIX="${ax_python_execprefix}"
16503
16504     PYTHON_EXECDIR=`$PYTHON -c "import distutils.sysconfig; \
16505                 print distutils.sysconfig.get_python_lib();"`
16506
16507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXECDIR" >&5
16508 $as_echo "$PYTHON_EXECDIR" >&6; }
16509
16510                 elif test "$withval" = "no"
16511                 then
16512                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16513 $as_echo "no" >&6; }
16514                     az_python_use=false
16515                      if test x"$az_python_use" = x"true"; then
16516   PYTHON_USE_TRUE=
16517   PYTHON_USE_FALSE='#'
16518 else
16519   PYTHON_USE_TRUE='#'
16520   PYTHON_USE_FALSE=
16521 fi
16522
16523                 else
16524                     # $withval must be the executable path then.
16525                     PYTHON="${withval}"
16526
16527                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
16528 $as_echo "$withval" >&6; }
16529                     az_python_use=true
16530                      if test x"$az_python_use" = x"true"; then
16531   PYTHON_USE_TRUE=
16532   PYTHON_USE_FALSE='#'
16533 else
16534   PYTHON_USE_TRUE='#'
16535   PYTHON_USE_FALSE=
16536 fi
16537
16538
16539
16540     if test -n "$PYTHON"
16541     then
16542         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python include directory" >&5
16543 $as_echo_n "checking for python include directory... " >&6; }
16544         az_python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
16545         if test -z "$az_python_prefix"
16546         then
16547             as_fn_error $? "Python Prefix is not known" "$LINENO" 5
16548         fi
16549         python_path=
16550         az_python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
16551         az_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
16552         az_python_includespec="-I`$PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_inc();'`"
16553         if test x"$python_prefix" != x"$python_execprefix"; then
16554             az_python_execspec="-I${az_python_execprefix}/include/python${az_python_version}"
16555             az_python_includespec="${az_python_includespec} $az_python_execspec"
16556         fi
16557         az_python_ccshared=`${PYTHON} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('CFLAGSFORSHARED')"`
16558         az_python_cspec="${az_python_ccshared} ${az_python_includespec}"
16559         PYTHON_CSPEC=${az_python_cspec}
16560
16561         PYTHON_CPPFLAGS=${az_python_includespec}
16562
16563         PYTHON_SHORTVERSION="${az_python_version}"
16564
16565         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
16566 $as_echo "$PYTHON_CPPFLAGS" >&6; }
16567     fi
16568
16569
16570
16571     if test -n "$PYTHON"
16572     then
16573         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python linker flags" >&5
16574 $as_echo_n "checking for python linker flags... " >&6; }
16575
16576
16577     if test -z "$PYTHON"
16578     then
16579         as_fn_error $? "Python Executable not found" "$LINENO" 5
16580     else
16581         cat >conftest.py <<_ACEOF
16582
16583 import sys
16584 import distutils.sysconfig
16585 strUseFrameWork = "--enable-framework"
16586 dictConfig = distutils.sysconfig.get_config_vars( )
16587 strConfigArgs = dictConfig.get("CONFIG_ARGS")
16588 strLinkSpec =  dictConfig.get('LDFLAGS')
16589 if -1 ==  strConfigArgs.find(strUseFrameWork):
16590     strLibPL = dictConfig.get("LIBPL")
16591     if strLibPL and (strLibPL != ""):
16592         strLinkSpec += " -L%s" % (strLibPL)
16593     strSys = dictConfig.get("SYSLIBS")
16594     if strSys and (strSys != ""):
16595         strLinkSpec += " %s" % (strSys)
16596     strSHL = dictConfig.get("SHLIBS")
16597     if strSHL and (strSHL != ""):
16598         strLinkSpec += " %s" % (strSHL)
16599     # Construct the Python Library Name.
16600     strTmplte = " -lpython%d.%d"
16601     if (sys.platform == "win32") or (sys.platform == "os2emx"):
16602         strTmplte = " -lpython%d%d"
16603     strWrk = strTmplte % ( (sys.hexversion >> 24),
16604                             ((sys.hexversion >> 16) & 0xff))
16605     strLinkSpec += strWrk
16606 else:
16607     # This is not ideal since it changes the search path
16608     # for Frameworks which could have side-effects on
16609     # other included Frameworks.  However, it is necessary
16610     # where someone has installed more than one frameworked
16611     # Python.  Frameworks are really only used in MacOSX.
16612     strLibFW = dictConfig.get("PYTHONFRAMEWORKPREFIX")
16613     if strLibFW and (strLibFW != ""):
16614         strLinkSpec += " -F%s" % (strLibFW)
16615 strLinkSpec += " %s" % (dictConfig.get('LINKFORSHARED'))
16616 print strLinkSpec
16617
16618 _ACEOF
16619         az_python_output=`$PYTHON conftest.py`
16620         az_python_cc=$?
16621         rm conftest.py
16622         if test -f "conftest.pyc"
16623         then
16624             rm conftest.pyc
16625         fi
16626     fi
16627
16628         PYTHON_LSPEC=${az_python_output}
16629
16630         az_python_ldflags=`${PYTHON} -c "import distutils.sysconfig; \
16631                 print '-L' + distutils.sysconfig.get_python_lib(), '-lpython' + \
16632                 distutils.sysconfig.get_config_var('VERSION');"`
16633         PYTHON_LDFLAGS=${az_python_ldflags}
16634
16635         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
16636 $as_echo "$PYTHON_LDFLAGS" >&6; }
16637     fi
16638
16639
16640     if test -z "$PYTHON"
16641     then
16642         as_fn_error $? "Python Executable Path is not known" "$LINENO" 5
16643     fi
16644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python extension install directory" >&5
16645 $as_echo_n "checking for python extension install directory... " >&6; }
16646     ax_python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
16647     ax_python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
16648     PYTHON_PREFIX="${ax_python_prefix}"
16649
16650     PYTHON_EXECPREFIX="${ax_python_execprefix}"
16651
16652     PYTHON_EXECDIR=`$PYTHON -c "import distutils.sysconfig; \
16653                 print distutils.sysconfig.get_python_lib();"`
16654
16655     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXECDIR" >&5
16656 $as_echo "$PYTHON_EXECDIR" >&6; }
16657
16658                 fi
16659
16660 else
16661
16662                 # --with-python was not specified.
16663                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16664 $as_echo "no" >&6; }
16665                 az_python_use=false
16666                  if test x"$az_python_use" = x"true"; then
16667   PYTHON_USE_TRUE=
16668   PYTHON_USE_FALSE='#'
16669 else
16670   PYTHON_USE_TRUE='#'
16671   PYTHON_USE_FALSE=
16672 fi
16673
16674
16675
16676 fi
16677
16678     fi
16679
16680
16681  if test "$PYTHON" != :; then
16682   HAVE_PYTHON_TRUE=
16683   HAVE_PYTHON_FALSE='#'
16684 else
16685   HAVE_PYTHON_TRUE='#'
16686   HAVE_PYTHON_FALSE=
16687 fi
16688
16689 # Check whether --enable-freedist was given.
16690 if test "${enable_freedist+set}" = set; then :
16691   enableval=$enable_freedist; case "${enableval}" in
16692        yes) freedist=true
16693        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: BSD licensed ASDCPlib creation ENABLED." >&5
16694 $as_echo "$as_me: WARNING: BSD licensed ASDCPlib creation ENABLED." >&2;} ;;
16695        no)  freedist=false ;;
16696        *) as_fn_error $? "bad value ${enableval} for --enable-freedist" "$LINENO" 5 ;;
16697      esac
16698 else
16699   freedist=false
16700 fi
16701
16702       if test x$freedist = xtrue; then
16703   FREEDIST_TRUE=
16704   FREEDIST_FALSE='#'
16705 else
16706   FREEDIST_TRUE='#'
16707   FREEDIST_FALSE=
16708 fi
16709
16710 # Check whether --enable-dev-headers was given.
16711 if test "${enable_dev_headers+set}" = set; then :
16712   enableval=$enable_dev_headers; case "${enableval}" in
16713        yes) dev_headers=true ;;
16714        no)  dev_headers=false ;;
16715        *) as_fn_error $? "bad value ${enableval} for --enable-dev-headers" "$LINENO" 5 ;;
16716      esac
16717 else
16718   dev_headers=false
16719 fi
16720
16721       if test x$dev_headers = xtrue; then
16722   DEV_HEADERS_TRUE=
16723   DEV_HEADERS_FALSE='#'
16724 else
16725   DEV_HEADERS_TRUE='#'
16726   DEV_HEADERS_FALSE=
16727 fi
16728
16729 # Check whether --enable-random-case-UUID was given.
16730 if test "${enable_random_case_UUID+set}" = set; then :
16731   enableval=$enable_random_case_UUID; case "${enableval}" in
16732        yes) random_case_UUID=true ;;
16733        no)  random_case_UUID=false ;;
16734        *) as_fn_error $? "bad value ${enableval} for --enable-random-case-UUID" "$LINENO" 5 ;;
16735      esac
16736 else
16737   random_case_UUID=false
16738 fi
16739
16740       if test x$random_case_UUID = xtrue; then
16741   ENABLE_RANDOM_UUID_TRUE=
16742   ENABLE_RANDOM_UUID_FALSE='#'
16743 else
16744   ENABLE_RANDOM_UUID_TRUE='#'
16745   ENABLE_RANDOM_UUID_FALSE=
16746 fi
16747
16748 # Check whether --enable-as-02 was given.
16749 if test "${enable_as_02+set}" = set; then :
16750   enableval=$enable_as_02; case "${enableval}" in
16751        yes) as_02_use=true ;;
16752        no)  as_02_use=false ;;
16753        *) as_fn_error $? "bad value ${enableval} for --enable-as-02" "$LINENO" 5 ;;
16754      esac
16755 else
16756   as_02_use=false
16757 fi
16758
16759       if test x$as_02_use = xtrue; then
16760   USE_AS_02_TRUE=
16761   USE_AS_02_FALSE='#'
16762 else
16763   USE_AS_02_TRUE='#'
16764   USE_AS_02_FALSE=
16765 fi
16766
16767 # Check whether --enable-phdr was given.
16768 if test "${enable_phdr+set}" = set; then :
16769   enableval=$enable_phdr; case "${enableval}" in
16770        yes) phdr_use=true ;;
16771        no)  phdr_use=false ;;
16772        *) as_fn_error $? "bad value ${enableval} for --enable-phdr" "$LINENO" 5 ;;
16773      esac
16774 else
16775   phdr_use=false
16776 fi
16777
16778       if test x$phdr_use = xtrue; then
16779   USE_PHDR_TRUE=
16780   USE_PHDR_FALSE='#'
16781 else
16782   USE_PHDR_TRUE='#'
16783   USE_PHDR_FALSE=
16784 fi
16785
16786
16787 # Checks for libraries.
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16789 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16790 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16791   $as_echo_n "(cached) " >&6
16792 else
16793   ac_check_lib_save_LIBS=$LIBS
16794 LIBS="-lpthread  $LIBS"
16795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16796 /* end confdefs.h.  */
16797
16798 /* Override any GCC internal prototype to avoid an error.
16799    Use char because int might match the return type of a GCC
16800    builtin and then its argument prototype would still apply.  */
16801 #ifdef __cplusplus
16802 extern "C"
16803 #endif
16804 char pthread_create ();
16805 int
16806 main ()
16807 {
16808 return pthread_create ();
16809   ;
16810   return 0;
16811 }
16812 _ACEOF
16813 if ac_fn_c_try_link "$LINENO"; then :
16814   ac_cv_lib_pthread_pthread_create=yes
16815 else
16816   ac_cv_lib_pthread_pthread_create=no
16817 fi
16818 rm -f core conftest.err conftest.$ac_objext \
16819     conftest$ac_exeext conftest.$ac_ext
16820 LIBS=$ac_check_lib_save_LIBS
16821 fi
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16823 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16824 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16825   cat >>confdefs.h <<_ACEOF
16826 #define HAVE_LIBPTHREAD 1
16827 _ACEOF
16828
16829   LIBS="-lpthread $LIBS"
16830
16831 fi
16832
16833
16834 # Checks for header files.
16835 #AC_HEADER_DIRENT
16836 #AC_HEADER_STDC
16837 #AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h wchar.h])
16838
16839 # Checks for typedefs, structures, and compiler characteristics.
16840 #AC_C_CONST
16841 #AC_C_INLINE
16842 #AC_TYPE_OFF_T
16843 #AC_TYPE_SIZE_T
16844 #AC_STRUCT_TM
16845
16846 # Checks for library functions.
16847 #AC_FUNC_CLOSEDIR_VOID
16848 #AC_FUNC_MALLOC
16849 #AC_FUNC_MEMCMP
16850 #AC_FUNC_STAT
16851 #AC_CHECK_FUNCS([getcwd memset regcomp strchr strerror strrchr strstr strtol])
16852
16853 ac_config_files="$ac_config_files Makefile src/Makefile win32/Makefile win32/Makefile.mak:win32/Makefile.wmk"
16854
16855 cat >confcache <<\_ACEOF
16856 # This file is a shell script that caches the results of configure
16857 # tests run on this system so they can be shared between configure
16858 # scripts and configure runs, see configure's option --config-cache.
16859 # It is not useful on other systems.  If it contains results you don't
16860 # want to keep, you may remove or edit it.
16861 #
16862 # config.status only pays attention to the cache file if you give it
16863 # the --recheck option to rerun configure.
16864 #
16865 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16866 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16867 # following values.
16868
16869 _ACEOF
16870
16871 # The following way of writing the cache mishandles newlines in values,
16872 # but we know of no workaround that is simple, portable, and efficient.
16873 # So, we kill variables containing newlines.
16874 # Ultrix sh set writes to stderr and can't be redirected directly,
16875 # and sets the high bit in the cache file unless we assign to the vars.
16876 (
16877   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16878     eval ac_val=\$$ac_var
16879     case $ac_val in #(
16880     *${as_nl}*)
16881       case $ac_var in #(
16882       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16883 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16884       esac
16885       case $ac_var in #(
16886       _ | IFS | as_nl) ;; #(
16887       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16888       *) { eval $ac_var=; unset $ac_var;} ;;
16889       esac ;;
16890     esac
16891   done
16892
16893   (set) 2>&1 |
16894     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16895     *${as_nl}ac_space=\ *)
16896       # `set' does not quote correctly, so add quotes: double-quote
16897       # substitution turns \\\\ into \\, and sed turns \\ into \.
16898       sed -n \
16899         "s/'/'\\\\''/g;
16900           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16901       ;; #(
16902     *)
16903       # `set' quotes correctly as required by POSIX, so do not add quotes.
16904       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16905       ;;
16906     esac |
16907     sort
16908 ) |
16909   sed '
16910      /^ac_cv_env_/b end
16911      t clear
16912      :clear
16913      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16914      t end
16915      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16916      :end' >>confcache
16917 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16918   if test -w "$cache_file"; then
16919     if test "x$cache_file" != "x/dev/null"; then
16920       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16921 $as_echo "$as_me: updating cache $cache_file" >&6;}
16922       if test ! -f "$cache_file" || test -h "$cache_file"; then
16923         cat confcache >"$cache_file"
16924       else
16925         case $cache_file in #(
16926         */* | ?:*)
16927           mv -f confcache "$cache_file"$$ &&
16928           mv -f "$cache_file"$$ "$cache_file" ;; #(
16929         *)
16930           mv -f confcache "$cache_file" ;;
16931         esac
16932       fi
16933     fi
16934   else
16935     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16936 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16937   fi
16938 fi
16939 rm -f confcache
16940
16941 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16942 # Let make expand exec_prefix.
16943 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16944
16945 # Transform confdefs.h into DEFS.
16946 # Protect against shell expansion while executing Makefile rules.
16947 # Protect against Makefile macro expansion.
16948 #
16949 # If the first sed substitution is executed (which looks for macros that
16950 # take arguments), then branch to the quote section.  Otherwise,
16951 # look for a macro that doesn't take arguments.
16952 ac_script='
16953 :mline
16954 /\\$/{
16955  N
16956  s,\\\n,,
16957  b mline
16958 }
16959 t clear
16960 :clear
16961 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
16962 t quote
16963 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
16964 t quote
16965 b any
16966 :quote
16967 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16968 s/\[/\\&/g
16969 s/\]/\\&/g
16970 s/\$/$$/g
16971 H
16972 :any
16973 ${
16974         g
16975         s/^\n//
16976         s/\n/ /g
16977         p
16978 }
16979 '
16980 DEFS=`sed -n "$ac_script" confdefs.h`
16981
16982
16983 ac_libobjs=
16984 ac_ltlibobjs=
16985 U=
16986 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16987   # 1. Remove the extension, and $U if already installed.
16988   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16989   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16990   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16991   #    will be set to the directory where LIBOBJS objects are built.
16992   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16993   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16994 done
16995 LIBOBJS=$ac_libobjs
16996
16997 LTLIBOBJS=$ac_ltlibobjs
16998
16999
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17001 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17002    if test -n "$am_sleep_pid"; then
17003      # Hide warnings about reused PIDs.
17004      wait $am_sleep_pid 2>/dev/null
17005    fi
17006    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17007 $as_echo "done" >&6; }
17008  if test -n "$EXEEXT"; then
17009   am__EXEEXT_TRUE=
17010   am__EXEEXT_FALSE='#'
17011 else
17012   am__EXEEXT_TRUE='#'
17013   am__EXEEXT_FALSE=
17014 fi
17015
17016 if test -z "${OPENBSD_HOST_TRUE}" && test -z "${OPENBSD_HOST_FALSE}"; then
17017   as_fn_error $? "conditional \"OPENBSD_HOST\" was never defined.
17018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17019 fi
17020 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17021   as_fn_error $? "conditional \"AMDEP\" was never defined.
17022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17023 fi
17024 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17025   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17027 fi
17028 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17029   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17031 fi
17032 if test -z "${PYTHON_USE_TRUE}" && test -z "${PYTHON_USE_FALSE}"; then
17033   as_fn_error $? "conditional \"PYTHON_USE\" was never defined.
17034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17035 fi
17036 if test -z "${PYTHON_USE_TRUE}" && test -z "${PYTHON_USE_FALSE}"; then
17037   as_fn_error $? "conditional \"PYTHON_USE\" was never defined.
17038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17039 fi
17040 if test -z "${PYTHON_USE_TRUE}" && test -z "${PYTHON_USE_FALSE}"; then
17041   as_fn_error $? "conditional \"PYTHON_USE\" was never defined.
17042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17043 fi
17044 if test -z "${PYTHON_USE_TRUE}" && test -z "${PYTHON_USE_FALSE}"; then
17045   as_fn_error $? "conditional \"PYTHON_USE\" was never defined.
17046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17047 fi
17048 if test -z "${PYTHON_USE_TRUE}" && test -z "${PYTHON_USE_FALSE}"; then
17049   as_fn_error $? "conditional \"PYTHON_USE\" was never defined.
17050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17051 fi
17052 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17053   as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
17054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17055 fi
17056 if test -z "${FREEDIST_TRUE}" && test -z "${FREEDIST_FALSE}"; then
17057   as_fn_error $? "conditional \"FREEDIST\" was never defined.
17058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17059 fi
17060 if test -z "${DEV_HEADERS_TRUE}" && test -z "${DEV_HEADERS_FALSE}"; then
17061   as_fn_error $? "conditional \"DEV_HEADERS\" was never defined.
17062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17063 fi
17064 if test -z "${ENABLE_RANDOM_UUID_TRUE}" && test -z "${ENABLE_RANDOM_UUID_FALSE}"; then
17065   as_fn_error $? "conditional \"ENABLE_RANDOM_UUID\" was never defined.
17066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17067 fi
17068 if test -z "${USE_AS_02_TRUE}" && test -z "${USE_AS_02_FALSE}"; then
17069   as_fn_error $? "conditional \"USE_AS_02\" was never defined.
17070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17071 fi
17072 if test -z "${USE_PHDR_TRUE}" && test -z "${USE_PHDR_FALSE}"; then
17073   as_fn_error $? "conditional \"USE_PHDR\" was never defined.
17074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17075 fi
17076
17077 : "${CONFIG_STATUS=./config.status}"
17078 ac_write_fail=0
17079 ac_clean_files_save=$ac_clean_files
17080 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17082 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17083 as_write_fail=0
17084 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17085 #! $SHELL
17086 # Generated by $as_me.
17087 # Run this file to recreate the current configuration.
17088 # Compiler output produced by configure, useful for debugging
17089 # configure, is in config.log if it exists.
17090
17091 debug=false
17092 ac_cs_recheck=false
17093 ac_cs_silent=false
17094
17095 SHELL=\${CONFIG_SHELL-$SHELL}
17096 export SHELL
17097 _ASEOF
17098 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17099 ## -------------------- ##
17100 ## M4sh Initialization. ##
17101 ## -------------------- ##
17102
17103 # Be more Bourne compatible
17104 DUALCASE=1; export DUALCASE # for MKS sh
17105 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17106   emulate sh
17107   NULLCMD=:
17108   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17109   # is contrary to our usage.  Disable this feature.
17110   alias -g '${1+"$@"}'='"$@"'
17111   setopt NO_GLOB_SUBST
17112 else
17113   case `(set -o) 2>/dev/null` in #(
17114   *posix*) :
17115     set -o posix ;; #(
17116   *) :
17117      ;;
17118 esac
17119 fi
17120
17121
17122 as_nl='
17123 '
17124 export as_nl
17125 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17126 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17127 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17128 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17129 # Prefer a ksh shell builtin over an external printf program on Solaris,
17130 # but without wasting forks for bash or zsh.
17131 if test -z "$BASH_VERSION$ZSH_VERSION" \
17132     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17133   as_echo='print -r --'
17134   as_echo_n='print -rn --'
17135 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17136   as_echo='printf %s\n'
17137   as_echo_n='printf %s'
17138 else
17139   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17140     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17141     as_echo_n='/usr/ucb/echo -n'
17142   else
17143     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17144     as_echo_n_body='eval
17145       arg=$1;
17146       case $arg in #(
17147       *"$as_nl"*)
17148         expr "X$arg" : "X\\(.*\\)$as_nl";
17149         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17150       esac;
17151       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17152     '
17153     export as_echo_n_body
17154     as_echo_n='sh -c $as_echo_n_body as_echo'
17155   fi
17156   export as_echo_body
17157   as_echo='sh -c $as_echo_body as_echo'
17158 fi
17159
17160 # The user is always right.
17161 if test "${PATH_SEPARATOR+set}" != set; then
17162   PATH_SEPARATOR=:
17163   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17164     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17165       PATH_SEPARATOR=';'
17166   }
17167 fi
17168
17169
17170 # IFS
17171 # We need space, tab and new line, in precisely that order.  Quoting is
17172 # there to prevent editors from complaining about space-tab.
17173 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17174 # splitting by setting IFS to empty value.)
17175 IFS=" ""        $as_nl"
17176
17177 # Find who we are.  Look in the path if we contain no directory separator.
17178 as_myself=
17179 case $0 in #((
17180   *[\\/]* ) as_myself=$0 ;;
17181   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17182 for as_dir in $PATH
17183 do
17184   IFS=$as_save_IFS
17185   test -z "$as_dir" && as_dir=.
17186     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17187   done
17188 IFS=$as_save_IFS
17189
17190      ;;
17191 esac
17192 # We did not find ourselves, most probably we were run as `sh COMMAND'
17193 # in which case we are not to be found in the path.
17194 if test "x$as_myself" = x; then
17195   as_myself=$0
17196 fi
17197 if test ! -f "$as_myself"; then
17198   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17199   exit 1
17200 fi
17201
17202 # Unset variables that we do not need and which cause bugs (e.g. in
17203 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17204 # suppresses any "Segmentation fault" message there.  '((' could
17205 # trigger a bug in pdksh 5.2.14.
17206 for as_var in BASH_ENV ENV MAIL MAILPATH
17207 do eval test x\${$as_var+set} = xset \
17208   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17209 done
17210 PS1='$ '
17211 PS2='> '
17212 PS4='+ '
17213
17214 # NLS nuisances.
17215 LC_ALL=C
17216 export LC_ALL
17217 LANGUAGE=C
17218 export LANGUAGE
17219
17220 # CDPATH.
17221 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17222
17223
17224 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17225 # ----------------------------------------
17226 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17227 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17228 # script with STATUS, using 1 if that was 0.
17229 as_fn_error ()
17230 {
17231   as_status=$1; test $as_status -eq 0 && as_status=1
17232   if test "$4"; then
17233     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17234     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17235   fi
17236   $as_echo "$as_me: error: $2" >&2
17237   as_fn_exit $as_status
17238 } # as_fn_error
17239
17240
17241 # as_fn_set_status STATUS
17242 # -----------------------
17243 # Set $? to STATUS, without forking.
17244 as_fn_set_status ()
17245 {
17246   return $1
17247 } # as_fn_set_status
17248
17249 # as_fn_exit STATUS
17250 # -----------------
17251 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17252 as_fn_exit ()
17253 {
17254   set +e
17255   as_fn_set_status $1
17256   exit $1
17257 } # as_fn_exit
17258
17259 # as_fn_unset VAR
17260 # ---------------
17261 # Portably unset VAR.
17262 as_fn_unset ()
17263 {
17264   { eval $1=; unset $1;}
17265 }
17266 as_unset=as_fn_unset
17267 # as_fn_append VAR VALUE
17268 # ----------------------
17269 # Append the text in VALUE to the end of the definition contained in VAR. Take
17270 # advantage of any shell optimizations that allow amortized linear growth over
17271 # repeated appends, instead of the typical quadratic growth present in naive
17272 # implementations.
17273 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17274   eval 'as_fn_append ()
17275   {
17276     eval $1+=\$2
17277   }'
17278 else
17279   as_fn_append ()
17280   {
17281     eval $1=\$$1\$2
17282   }
17283 fi # as_fn_append
17284
17285 # as_fn_arith ARG...
17286 # ------------------
17287 # Perform arithmetic evaluation on the ARGs, and store the result in the
17288 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17289 # must be portable across $(()) and expr.
17290 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17291   eval 'as_fn_arith ()
17292   {
17293     as_val=$(( $* ))
17294   }'
17295 else
17296   as_fn_arith ()
17297   {
17298     as_val=`expr "$@" || test $? -eq 1`
17299   }
17300 fi # as_fn_arith
17301
17302
17303 if expr a : '\(a\)' >/dev/null 2>&1 &&
17304    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17305   as_expr=expr
17306 else
17307   as_expr=false
17308 fi
17309
17310 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17311   as_basename=basename
17312 else
17313   as_basename=false
17314 fi
17315
17316 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17317   as_dirname=dirname
17318 else
17319   as_dirname=false
17320 fi
17321
17322 as_me=`$as_basename -- "$0" ||
17323 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17324          X"$0" : 'X\(//\)$' \| \
17325          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17326 $as_echo X/"$0" |
17327     sed '/^.*\/\([^/][^/]*\)\/*$/{
17328             s//\1/
17329             q
17330           }
17331           /^X\/\(\/\/\)$/{
17332             s//\1/
17333             q
17334           }
17335           /^X\/\(\/\).*/{
17336             s//\1/
17337             q
17338           }
17339           s/.*/./; q'`
17340
17341 # Avoid depending upon Character Ranges.
17342 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17343 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17344 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17345 as_cr_digits='0123456789'
17346 as_cr_alnum=$as_cr_Letters$as_cr_digits
17347
17348 ECHO_C= ECHO_N= ECHO_T=
17349 case `echo -n x` in #(((((
17350 -n*)
17351   case `echo 'xy\c'` in
17352   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17353   xy)  ECHO_C='\c';;
17354   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17355        ECHO_T=' ';;
17356   esac;;
17357 *)
17358   ECHO_N='-n';;
17359 esac
17360
17361 rm -f conf$$ conf$$.exe conf$$.file
17362 if test -d conf$$.dir; then
17363   rm -f conf$$.dir/conf$$.file
17364 else
17365   rm -f conf$$.dir
17366   mkdir conf$$.dir 2>/dev/null
17367 fi
17368 if (echo >conf$$.file) 2>/dev/null; then
17369   if ln -s conf$$.file conf$$ 2>/dev/null; then
17370     as_ln_s='ln -s'
17371     # ... but there are two gotchas:
17372     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17373     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17374     # In both cases, we have to default to `cp -pR'.
17375     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17376       as_ln_s='cp -pR'
17377   elif ln conf$$.file conf$$ 2>/dev/null; then
17378     as_ln_s=ln
17379   else
17380     as_ln_s='cp -pR'
17381   fi
17382 else
17383   as_ln_s='cp -pR'
17384 fi
17385 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17386 rmdir conf$$.dir 2>/dev/null
17387
17388
17389 # as_fn_mkdir_p
17390 # -------------
17391 # Create "$as_dir" as a directory, including parents if necessary.
17392 as_fn_mkdir_p ()
17393 {
17394
17395   case $as_dir in #(
17396   -*) as_dir=./$as_dir;;
17397   esac
17398   test -d "$as_dir" || eval $as_mkdir_p || {
17399     as_dirs=
17400     while :; do
17401       case $as_dir in #(
17402       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17403       *) as_qdir=$as_dir;;
17404       esac
17405       as_dirs="'$as_qdir' $as_dirs"
17406       as_dir=`$as_dirname -- "$as_dir" ||
17407 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17408          X"$as_dir" : 'X\(//\)[^/]' \| \
17409          X"$as_dir" : 'X\(//\)$' \| \
17410          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17411 $as_echo X"$as_dir" |
17412     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17413             s//\1/
17414             q
17415           }
17416           /^X\(\/\/\)[^/].*/{
17417             s//\1/
17418             q
17419           }
17420           /^X\(\/\/\)$/{
17421             s//\1/
17422             q
17423           }
17424           /^X\(\/\).*/{
17425             s//\1/
17426             q
17427           }
17428           s/.*/./; q'`
17429       test -d "$as_dir" && break
17430     done
17431     test -z "$as_dirs" || eval "mkdir $as_dirs"
17432   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17433
17434
17435 } # as_fn_mkdir_p
17436 if mkdir -p . 2>/dev/null; then
17437   as_mkdir_p='mkdir -p "$as_dir"'
17438 else
17439   test -d ./-p && rmdir ./-p
17440   as_mkdir_p=false
17441 fi
17442
17443
17444 # as_fn_executable_p FILE
17445 # -----------------------
17446 # Test if FILE is an executable regular file.
17447 as_fn_executable_p ()
17448 {
17449   test -f "$1" && test -x "$1"
17450 } # as_fn_executable_p
17451 as_test_x='test -x'
17452 as_executable_p=as_fn_executable_p
17453
17454 # Sed expression to map a string onto a valid CPP name.
17455 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17456
17457 # Sed expression to map a string onto a valid variable name.
17458 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17459
17460
17461 exec 6>&1
17462 ## ----------------------------------- ##
17463 ## Main body of $CONFIG_STATUS script. ##
17464 ## ----------------------------------- ##
17465 _ASEOF
17466 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17467
17468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17469 # Save the log message, to keep $0 and so on meaningful, and to
17470 # report actual input values of CONFIG_FILES etc. instead of their
17471 # values after options handling.
17472 ac_log="
17473 This file was extended by asdcplib $as_me 2.5.11, which was
17474 generated by GNU Autoconf 2.69.  Invocation command line was
17475
17476   CONFIG_FILES    = $CONFIG_FILES
17477   CONFIG_HEADERS  = $CONFIG_HEADERS
17478   CONFIG_LINKS    = $CONFIG_LINKS
17479   CONFIG_COMMANDS = $CONFIG_COMMANDS
17480   $ $0 $@
17481
17482 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17483 "
17484
17485 _ACEOF
17486
17487 case $ac_config_files in *"
17488 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17489 esac
17490
17491
17492
17493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17494 # Files that config.status was made for.
17495 config_files="$ac_config_files"
17496 config_commands="$ac_config_commands"
17497
17498 _ACEOF
17499
17500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17501 ac_cs_usage="\
17502 \`$as_me' instantiates files and other configuration actions
17503 from templates according to the current configuration.  Unless the files
17504 and actions are specified as TAGs, all are instantiated by default.
17505
17506 Usage: $0 [OPTION]... [TAG]...
17507
17508   -h, --help       print this help, then exit
17509   -V, --version    print version number and configuration settings, then exit
17510       --config     print configuration, then exit
17511   -q, --quiet, --silent
17512                    do not print progress messages
17513   -d, --debug      don't remove temporary files
17514       --recheck    update $as_me by reconfiguring in the same conditions
17515       --file=FILE[:TEMPLATE]
17516                    instantiate the configuration file FILE
17517
17518 Configuration files:
17519 $config_files
17520
17521 Configuration commands:
17522 $config_commands
17523
17524 Report bugs to <asdcplib@cinecert.com>."
17525
17526 _ACEOF
17527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17528 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17529 ac_cs_version="\\
17530 asdcplib config.status 2.5.11
17531 configured by $0, generated by GNU Autoconf 2.69,
17532   with options \\"\$ac_cs_config\\"
17533
17534 Copyright (C) 2012 Free Software Foundation, Inc.
17535 This config.status script is free software; the Free Software Foundation
17536 gives unlimited permission to copy, distribute and modify it."
17537
17538 ac_pwd='$ac_pwd'
17539 srcdir='$srcdir'
17540 INSTALL='$INSTALL'
17541 MKDIR_P='$MKDIR_P'
17542 AWK='$AWK'
17543 test -n "\$AWK" || AWK=awk
17544 _ACEOF
17545
17546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17547 # The default lists apply if the user does not specify any file.
17548 ac_need_defaults=:
17549 while test $# != 0
17550 do
17551   case $1 in
17552   --*=?*)
17553     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17554     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17555     ac_shift=:
17556     ;;
17557   --*=)
17558     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17559     ac_optarg=
17560     ac_shift=:
17561     ;;
17562   *)
17563     ac_option=$1
17564     ac_optarg=$2
17565     ac_shift=shift
17566     ;;
17567   esac
17568
17569   case $ac_option in
17570   # Handling of the options.
17571   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17572     ac_cs_recheck=: ;;
17573   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17574     $as_echo "$ac_cs_version"; exit ;;
17575   --config | --confi | --conf | --con | --co | --c )
17576     $as_echo "$ac_cs_config"; exit ;;
17577   --debug | --debu | --deb | --de | --d | -d )
17578     debug=: ;;
17579   --file | --fil | --fi | --f )
17580     $ac_shift
17581     case $ac_optarg in
17582     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17583     '') as_fn_error $? "missing file argument" ;;
17584     esac
17585     as_fn_append CONFIG_FILES " '$ac_optarg'"
17586     ac_need_defaults=false;;
17587   --he | --h |  --help | --hel | -h )
17588     $as_echo "$ac_cs_usage"; exit ;;
17589   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17590   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17591     ac_cs_silent=: ;;
17592
17593   # This is an error.
17594   -*) as_fn_error $? "unrecognized option: \`$1'
17595 Try \`$0 --help' for more information." ;;
17596
17597   *) as_fn_append ac_config_targets " $1"
17598      ac_need_defaults=false ;;
17599
17600   esac
17601   shift
17602 done
17603
17604 ac_configure_extra_args=
17605
17606 if $ac_cs_silent; then
17607   exec 6>/dev/null
17608   ac_configure_extra_args="$ac_configure_extra_args --silent"
17609 fi
17610
17611 _ACEOF
17612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17613 if \$ac_cs_recheck; then
17614   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17615   shift
17616   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17617   CONFIG_SHELL='$SHELL'
17618   export CONFIG_SHELL
17619   exec "\$@"
17620 fi
17621
17622 _ACEOF
17623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17624 exec 5>>config.log
17625 {
17626   echo
17627   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17628 ## Running $as_me. ##
17629 _ASBOX
17630   $as_echo "$ac_log"
17631 } >&5
17632
17633 _ACEOF
17634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17635 #
17636 # INIT-COMMANDS
17637 #
17638 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17639
17640
17641 # The HP-UX ksh and POSIX shell print the target directory to stdout
17642 # if CDPATH is set.
17643 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17644
17645 sed_quote_subst='$sed_quote_subst'
17646 double_quote_subst='$double_quote_subst'
17647 delay_variable_subst='$delay_variable_subst'
17648 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17649 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17650 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17651 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17652 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17653 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17654 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17655 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17656 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17657 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17658 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17659 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17660 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17661 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17662 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17663 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17664 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17665 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17666 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17667 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17668 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17669 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17670 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17671 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17672 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17673 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17674 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17675 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17676 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17677 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17678 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17679 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17680 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17681 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17682 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17683 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17684 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17685 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17686 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17687 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17688 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17689 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17690 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17691 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17692 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17693 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17694 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17695 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17696 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17697 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17698 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17699 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17700 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17701 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17702 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17703 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17704 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"`'
17705 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17706 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17707 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17708 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17709 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17710 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17711 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17712 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17713 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17714 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17715 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17716 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17717 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17718 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17719 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17720 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17721 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17722 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17723 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17724 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17725 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17726 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17727 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17728 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17729 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17730 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17731 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17732 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17733 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17734 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17735 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17736 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17737 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17738 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17739 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17740 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17741 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17742 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17743 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17744 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17745 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17746 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17747 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17748 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17749 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17750 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17751 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17752 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17753 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17754 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17755 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17756 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17757 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17758 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17759 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17760 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17761 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17762 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17763 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17764 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17765 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17766 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17767 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17768 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17769 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17770 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17771 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17772 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17773 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17774 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17775 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17776 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17777 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17778 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17779 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17780 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17781 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17782 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17783 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17784 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17785 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17786 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17787 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17788 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17789 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17790 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17791 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17792 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17793 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17794 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17795 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17796 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17797 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17798 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17799 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17800 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17801 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17802 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17803 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17804 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17805 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17806 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17807 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17808 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17809 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17810 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17811 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17812 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17813 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17814 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17815 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17816 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17817 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17818 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17819 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17820 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17821 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17822 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17823 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17824 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17825 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17826 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17827 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17828 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17829 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17830 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17831 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17832
17833 LTCC='$LTCC'
17834 LTCFLAGS='$LTCFLAGS'
17835 compiler='$compiler_DEFAULT'
17836
17837 # A function that is used when there is no print builtin or printf.
17838 func_fallback_echo ()
17839 {
17840   eval 'cat <<_LTECHO_EOF
17841 \$1
17842 _LTECHO_EOF'
17843 }
17844
17845 # Quote evaled strings.
17846 for var in SHELL \
17847 ECHO \
17848 PATH_SEPARATOR \
17849 SED \
17850 GREP \
17851 EGREP \
17852 FGREP \
17853 LD \
17854 NM \
17855 LN_S \
17856 lt_SP2NL \
17857 lt_NL2SP \
17858 reload_flag \
17859 OBJDUMP \
17860 deplibs_check_method \
17861 file_magic_cmd \
17862 file_magic_glob \
17863 want_nocaseglob \
17864 DLLTOOL \
17865 sharedlib_from_linklib_cmd \
17866 AR \
17867 AR_FLAGS \
17868 archiver_list_spec \
17869 STRIP \
17870 RANLIB \
17871 CC \
17872 CFLAGS \
17873 compiler \
17874 lt_cv_sys_global_symbol_pipe \
17875 lt_cv_sys_global_symbol_to_cdecl \
17876 lt_cv_sys_global_symbol_to_c_name_address \
17877 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17878 nm_file_list_spec \
17879 lt_prog_compiler_no_builtin_flag \
17880 lt_prog_compiler_pic \
17881 lt_prog_compiler_wl \
17882 lt_prog_compiler_static \
17883 lt_cv_prog_compiler_c_o \
17884 need_locks \
17885 MANIFEST_TOOL \
17886 DSYMUTIL \
17887 NMEDIT \
17888 LIPO \
17889 OTOOL \
17890 OTOOL64 \
17891 shrext_cmds \
17892 export_dynamic_flag_spec \
17893 whole_archive_flag_spec \
17894 compiler_needs_object \
17895 with_gnu_ld \
17896 allow_undefined_flag \
17897 no_undefined_flag \
17898 hardcode_libdir_flag_spec \
17899 hardcode_libdir_separator \
17900 exclude_expsyms \
17901 include_expsyms \
17902 file_list_spec \
17903 variables_saved_for_relink \
17904 libname_spec \
17905 library_names_spec \
17906 soname_spec \
17907 install_override_mode \
17908 finish_eval \
17909 old_striplib \
17910 striplib \
17911 compiler_lib_search_dirs \
17912 predep_objects \
17913 postdep_objects \
17914 predeps \
17915 postdeps \
17916 compiler_lib_search_path \
17917 LD_CXX \
17918 reload_flag_CXX \
17919 compiler_CXX \
17920 lt_prog_compiler_no_builtin_flag_CXX \
17921 lt_prog_compiler_pic_CXX \
17922 lt_prog_compiler_wl_CXX \
17923 lt_prog_compiler_static_CXX \
17924 lt_cv_prog_compiler_c_o_CXX \
17925 export_dynamic_flag_spec_CXX \
17926 whole_archive_flag_spec_CXX \
17927 compiler_needs_object_CXX \
17928 with_gnu_ld_CXX \
17929 allow_undefined_flag_CXX \
17930 no_undefined_flag_CXX \
17931 hardcode_libdir_flag_spec_CXX \
17932 hardcode_libdir_separator_CXX \
17933 exclude_expsyms_CXX \
17934 include_expsyms_CXX \
17935 file_list_spec_CXX \
17936 compiler_lib_search_dirs_CXX \
17937 predep_objects_CXX \
17938 postdep_objects_CXX \
17939 predeps_CXX \
17940 postdeps_CXX \
17941 compiler_lib_search_path_CXX; do
17942     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17943     *[\\\\\\\`\\"\\\$]*)
17944       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17945       ;;
17946     *)
17947       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17948       ;;
17949     esac
17950 done
17951
17952 # Double-quote double-evaled strings.
17953 for var in reload_cmds \
17954 old_postinstall_cmds \
17955 old_postuninstall_cmds \
17956 old_archive_cmds \
17957 extract_expsyms_cmds \
17958 old_archive_from_new_cmds \
17959 old_archive_from_expsyms_cmds \
17960 archive_cmds \
17961 archive_expsym_cmds \
17962 module_cmds \
17963 module_expsym_cmds \
17964 export_symbols_cmds \
17965 prelink_cmds \
17966 postlink_cmds \
17967 postinstall_cmds \
17968 postuninstall_cmds \
17969 finish_cmds \
17970 sys_lib_search_path_spec \
17971 sys_lib_dlsearch_path_spec \
17972 reload_cmds_CXX \
17973 old_archive_cmds_CXX \
17974 old_archive_from_new_cmds_CXX \
17975 old_archive_from_expsyms_cmds_CXX \
17976 archive_cmds_CXX \
17977 archive_expsym_cmds_CXX \
17978 module_cmds_CXX \
17979 module_expsym_cmds_CXX \
17980 export_symbols_cmds_CXX \
17981 prelink_cmds_CXX \
17982 postlink_cmds_CXX; do
17983     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17984     *[\\\\\\\`\\"\\\$]*)
17985       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17986       ;;
17987     *)
17988       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17989       ;;
17990     esac
17991 done
17992
17993 ac_aux_dir='$ac_aux_dir'
17994 xsi_shell='$xsi_shell'
17995 lt_shell_append='$lt_shell_append'
17996
17997 # See if we are running on zsh, and set the options which allow our
17998 # commands through without removal of \ escapes INIT.
17999 if test -n "\${ZSH_VERSION+set}" ; then
18000    setopt NO_GLOB_SUBST
18001 fi
18002
18003
18004     PACKAGE='$PACKAGE'
18005     VERSION='$VERSION'
18006     TIMESTAMP='$TIMESTAMP'
18007     RM='$RM'
18008     ofile='$ofile'
18009
18010
18011
18012
18013
18014
18015 _ACEOF
18016
18017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18018
18019 # Handling of arguments.
18020 for ac_config_target in $ac_config_targets
18021 do
18022   case $ac_config_target in
18023     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18024     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18025     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18026     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18027     "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
18028     "win32/Makefile.mak") CONFIG_FILES="$CONFIG_FILES win32/Makefile.mak:win32/Makefile.wmk" ;;
18029
18030   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18031   esac
18032 done
18033
18034
18035 # If the user did not use the arguments to specify the items to instantiate,
18036 # then the envvar interface is used.  Set only those that are not.
18037 # We use the long form for the default assignment because of an extremely
18038 # bizarre bug on SunOS 4.1.3.
18039 if $ac_need_defaults; then
18040   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18041   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18042 fi
18043
18044 # Have a temporary directory for convenience.  Make it in the build tree
18045 # simply because there is no reason against having it here, and in addition,
18046 # creating and moving files from /tmp can sometimes cause problems.
18047 # Hook for its removal unless debugging.
18048 # Note that there is a small window in which the directory will not be cleaned:
18049 # after its creation but before its name has been assigned to `$tmp'.
18050 $debug ||
18051 {
18052   tmp= ac_tmp=
18053   trap 'exit_status=$?
18054   : "${ac_tmp:=$tmp}"
18055   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18056 ' 0
18057   trap 'as_fn_exit 1' 1 2 13 15
18058 }
18059 # Create a (secure) tmp directory for tmp files.
18060
18061 {
18062   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18063   test -d "$tmp"
18064 }  ||
18065 {
18066   tmp=./conf$$-$RANDOM
18067   (umask 077 && mkdir "$tmp")
18068 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18069 ac_tmp=$tmp
18070
18071 # Set up the scripts for CONFIG_FILES section.
18072 # No need to generate them if there are no CONFIG_FILES.
18073 # This happens for instance with `./config.status config.h'.
18074 if test -n "$CONFIG_FILES"; then
18075
18076
18077 ac_cr=`echo X | tr X '\015'`
18078 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18079 # But we know of no other shell where ac_cr would be empty at this
18080 # point, so we can use a bashism as a fallback.
18081 if test "x$ac_cr" = x; then
18082   eval ac_cr=\$\'\\r\'
18083 fi
18084 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18085 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18086   ac_cs_awk_cr='\\r'
18087 else
18088   ac_cs_awk_cr=$ac_cr
18089 fi
18090
18091 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18092 _ACEOF
18093
18094
18095 {
18096   echo "cat >conf$$subs.awk <<_ACEOF" &&
18097   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18098   echo "_ACEOF"
18099 } >conf$$subs.sh ||
18100   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18101 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18102 ac_delim='%!_!# '
18103 for ac_last_try in false false false false false :; do
18104   . ./conf$$subs.sh ||
18105     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18106
18107   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18108   if test $ac_delim_n = $ac_delim_num; then
18109     break
18110   elif $ac_last_try; then
18111     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18112   else
18113     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18114   fi
18115 done
18116 rm -f conf$$subs.sh
18117
18118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18119 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18120 _ACEOF
18121 sed -n '
18122 h
18123 s/^/S["/; s/!.*/"]=/
18124 p
18125 g
18126 s/^[^!]*!//
18127 :repl
18128 t repl
18129 s/'"$ac_delim"'$//
18130 t delim
18131 :nl
18132 h
18133 s/\(.\{148\}\)..*/\1/
18134 t more1
18135 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18136 p
18137 n
18138 b repl
18139 :more1
18140 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18141 p
18142 g
18143 s/.\{148\}//
18144 t nl
18145 :delim
18146 h
18147 s/\(.\{148\}\)..*/\1/
18148 t more2
18149 s/["\\]/\\&/g; s/^/"/; s/$/"/
18150 p
18151 b
18152 :more2
18153 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18154 p
18155 g
18156 s/.\{148\}//
18157 t delim
18158 ' <conf$$subs.awk | sed '
18159 /^[^""]/{
18160   N
18161   s/\n//
18162 }
18163 ' >>$CONFIG_STATUS || ac_write_fail=1
18164 rm -f conf$$subs.awk
18165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18166 _ACAWK
18167 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18168   for (key in S) S_is_set[key] = 1
18169   FS = "\a"
18170
18171 }
18172 {
18173   line = $ 0
18174   nfields = split(line, field, "@")
18175   substed = 0
18176   len = length(field[1])
18177   for (i = 2; i < nfields; i++) {
18178     key = field[i]
18179     keylen = length(key)
18180     if (S_is_set[key]) {
18181       value = S[key]
18182       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18183       len += length(value) + length(field[++i])
18184       substed = 1
18185     } else
18186       len += 1 + keylen
18187   }
18188
18189   print line
18190 }
18191
18192 _ACAWK
18193 _ACEOF
18194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18195 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18196   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18197 else
18198   cat
18199 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18200   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18201 _ACEOF
18202
18203 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18204 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18205 # trailing colons and then remove the whole line if VPATH becomes empty
18206 # (actually we leave an empty line to preserve line numbers).
18207 if test "x$srcdir" = x.; then
18208   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18209 h
18210 s///
18211 s/^/:/
18212 s/[      ]*$/:/
18213 s/:\$(srcdir):/:/g
18214 s/:\${srcdir}:/:/g
18215 s/:@srcdir@:/:/g
18216 s/^:*//
18217 s/:*$//
18218 x
18219 s/\(=[   ]*\).*/\1/
18220 G
18221 s/\n//
18222 s/^[^=]*=[       ]*$//
18223 }'
18224 fi
18225
18226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18227 fi # test -n "$CONFIG_FILES"
18228
18229
18230 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
18231 shift
18232 for ac_tag
18233 do
18234   case $ac_tag in
18235   :[FHLC]) ac_mode=$ac_tag; continue;;
18236   esac
18237   case $ac_mode$ac_tag in
18238   :[FHL]*:*);;
18239   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18240   :[FH]-) ac_tag=-:-;;
18241   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18242   esac
18243   ac_save_IFS=$IFS
18244   IFS=:
18245   set x $ac_tag
18246   IFS=$ac_save_IFS
18247   shift
18248   ac_file=$1
18249   shift
18250
18251   case $ac_mode in
18252   :L) ac_source=$1;;
18253   :[FH])
18254     ac_file_inputs=
18255     for ac_f
18256     do
18257       case $ac_f in
18258       -) ac_f="$ac_tmp/stdin";;
18259       *) # Look for the file first in the build tree, then in the source tree
18260          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18261          # because $ac_f cannot contain `:'.
18262          test -f "$ac_f" ||
18263            case $ac_f in
18264            [\\/$]*) false;;
18265            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18266            esac ||
18267            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18268       esac
18269       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18270       as_fn_append ac_file_inputs " '$ac_f'"
18271     done
18272
18273     # Let's still pretend it is `configure' which instantiates (i.e., don't
18274     # use $as_me), people would be surprised to read:
18275     #    /* config.h.  Generated by config.status.  */
18276     configure_input='Generated from '`
18277           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18278         `' by configure.'
18279     if test x"$ac_file" != x-; then
18280       configure_input="$ac_file.  $configure_input"
18281       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18282 $as_echo "$as_me: creating $ac_file" >&6;}
18283     fi
18284     # Neutralize special characters interpreted by sed in replacement strings.
18285     case $configure_input in #(
18286     *\&* | *\|* | *\\* )
18287        ac_sed_conf_input=`$as_echo "$configure_input" |
18288        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18289     *) ac_sed_conf_input=$configure_input;;
18290     esac
18291
18292     case $ac_tag in
18293     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18294       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18295     esac
18296     ;;
18297   esac
18298
18299   ac_dir=`$as_dirname -- "$ac_file" ||
18300 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18301          X"$ac_file" : 'X\(//\)[^/]' \| \
18302          X"$ac_file" : 'X\(//\)$' \| \
18303          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18304 $as_echo X"$ac_file" |
18305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18306             s//\1/
18307             q
18308           }
18309           /^X\(\/\/\)[^/].*/{
18310             s//\1/
18311             q
18312           }
18313           /^X\(\/\/\)$/{
18314             s//\1/
18315             q
18316           }
18317           /^X\(\/\).*/{
18318             s//\1/
18319             q
18320           }
18321           s/.*/./; q'`
18322   as_dir="$ac_dir"; as_fn_mkdir_p
18323   ac_builddir=.
18324
18325 case "$ac_dir" in
18326 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18327 *)
18328   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18329   # A ".." for each directory in $ac_dir_suffix.
18330   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18331   case $ac_top_builddir_sub in
18332   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18333   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18334   esac ;;
18335 esac
18336 ac_abs_top_builddir=$ac_pwd
18337 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18338 # for backward compatibility:
18339 ac_top_builddir=$ac_top_build_prefix
18340
18341 case $srcdir in
18342   .)  # We are building in place.
18343     ac_srcdir=.
18344     ac_top_srcdir=$ac_top_builddir_sub
18345     ac_abs_top_srcdir=$ac_pwd ;;
18346   [\\/]* | ?:[\\/]* )  # Absolute name.
18347     ac_srcdir=$srcdir$ac_dir_suffix;
18348     ac_top_srcdir=$srcdir
18349     ac_abs_top_srcdir=$srcdir ;;
18350   *) # Relative name.
18351     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18352     ac_top_srcdir=$ac_top_build_prefix$srcdir
18353     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18354 esac
18355 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18356
18357
18358   case $ac_mode in
18359   :F)
18360   #
18361   # CONFIG_FILE
18362   #
18363
18364   case $INSTALL in
18365   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18366   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18367   esac
18368   ac_MKDIR_P=$MKDIR_P
18369   case $MKDIR_P in
18370   [\\/$]* | ?:[\\/]* ) ;;
18371   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18372   esac
18373 _ACEOF
18374
18375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18376 # If the template does not know about datarootdir, expand it.
18377 # FIXME: This hack should be removed a few years after 2.60.
18378 ac_datarootdir_hack=; ac_datarootdir_seen=
18379 ac_sed_dataroot='
18380 /datarootdir/ {
18381   p
18382   q
18383 }
18384 /@datadir@/p
18385 /@docdir@/p
18386 /@infodir@/p
18387 /@localedir@/p
18388 /@mandir@/p'
18389 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18390 *datarootdir*) ac_datarootdir_seen=yes;;
18391 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18392   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18393 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18394 _ACEOF
18395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18396   ac_datarootdir_hack='
18397   s&@datadir@&$datadir&g
18398   s&@docdir@&$docdir&g
18399   s&@infodir@&$infodir&g
18400   s&@localedir@&$localedir&g
18401   s&@mandir@&$mandir&g
18402   s&\\\${datarootdir}&$datarootdir&g' ;;
18403 esac
18404 _ACEOF
18405
18406 # Neutralize VPATH when `$srcdir' = `.'.
18407 # Shell code in configure.ac might set extrasub.
18408 # FIXME: do we really want to maintain this feature?
18409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18410 ac_sed_extra="$ac_vpsub
18411 $extrasub
18412 _ACEOF
18413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18414 :t
18415 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18416 s|@configure_input@|$ac_sed_conf_input|;t t
18417 s&@top_builddir@&$ac_top_builddir_sub&;t t
18418 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18419 s&@srcdir@&$ac_srcdir&;t t
18420 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18421 s&@top_srcdir@&$ac_top_srcdir&;t t
18422 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18423 s&@builddir@&$ac_builddir&;t t
18424 s&@abs_builddir@&$ac_abs_builddir&;t t
18425 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18426 s&@INSTALL@&$ac_INSTALL&;t t
18427 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18428 $ac_datarootdir_hack
18429 "
18430 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18431   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18432
18433 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18434   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18435   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18436       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18437   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18438 which seems to be undefined.  Please make sure it is defined" >&5
18439 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18440 which seems to be undefined.  Please make sure it is defined" >&2;}
18441
18442   rm -f "$ac_tmp/stdin"
18443   case $ac_file in
18444   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18445   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18446   esac \
18447   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18448  ;;
18449
18450
18451   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18452 $as_echo "$as_me: executing $ac_file commands" >&6;}
18453  ;;
18454   esac
18455
18456
18457   case $ac_file$ac_mode in
18458     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18459   # Older Autoconf quotes --file arguments for eval, but not when files
18460   # are listed without --file.  Let's play safe and only enable the eval
18461   # if we detect the quoting.
18462   case $CONFIG_FILES in
18463   *\'*) eval set x "$CONFIG_FILES" ;;
18464   *)   set x $CONFIG_FILES ;;
18465   esac
18466   shift
18467   for mf
18468   do
18469     # Strip MF so we end up with the name of the file.
18470     mf=`echo "$mf" | sed -e 's/:.*$//'`
18471     # Check whether this is an Automake generated Makefile or not.
18472     # We used to match only the files named 'Makefile.in', but
18473     # some people rename them; so instead we look at the file content.
18474     # Grep'ing the first line is not enough: some people post-process
18475     # each Makefile.in and add a new line on top of each file to say so.
18476     # Grep'ing the whole file is not good either: AIX grep has a line
18477     # limit of 2048, but all sed's we know have understand at least 4000.
18478     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18479       dirpart=`$as_dirname -- "$mf" ||
18480 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18481          X"$mf" : 'X\(//\)[^/]' \| \
18482          X"$mf" : 'X\(//\)$' \| \
18483          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18484 $as_echo X"$mf" |
18485     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18486             s//\1/
18487             q
18488           }
18489           /^X\(\/\/\)[^/].*/{
18490             s//\1/
18491             q
18492           }
18493           /^X\(\/\/\)$/{
18494             s//\1/
18495             q
18496           }
18497           /^X\(\/\).*/{
18498             s//\1/
18499             q
18500           }
18501           s/.*/./; q'`
18502     else
18503       continue
18504     fi
18505     # Extract the definition of DEPDIR, am__include, and am__quote
18506     # from the Makefile without running 'make'.
18507     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18508     test -z "$DEPDIR" && continue
18509     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18510     test -z "$am__include" && continue
18511     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18512     # Find all dependency output files, they are included files with
18513     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18514     # simplest approach to changing $(DEPDIR) to its actual value in the
18515     # expansion.
18516     for file in `sed -n "
18517       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18518          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18519       # Make sure the directory exists.
18520       test -f "$dirpart/$file" && continue
18521       fdir=`$as_dirname -- "$file" ||
18522 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18523          X"$file" : 'X\(//\)[^/]' \| \
18524          X"$file" : 'X\(//\)$' \| \
18525          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18526 $as_echo X"$file" |
18527     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18528             s//\1/
18529             q
18530           }
18531           /^X\(\/\/\)[^/].*/{
18532             s//\1/
18533             q
18534           }
18535           /^X\(\/\/\)$/{
18536             s//\1/
18537             q
18538           }
18539           /^X\(\/\).*/{
18540             s//\1/
18541             q
18542           }
18543           s/.*/./; q'`
18544       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18545       # echo "creating $dirpart/$file"
18546       echo '# dummy' > "$dirpart/$file"
18547     done
18548   done
18549 }
18550  ;;
18551     "libtool":C)
18552
18553     # See if we are running on zsh, and set the options which allow our
18554     # commands through without removal of \ escapes.
18555     if test -n "${ZSH_VERSION+set}" ; then
18556       setopt NO_GLOB_SUBST
18557     fi
18558
18559     cfgfile="${ofile}T"
18560     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18561     $RM "$cfgfile"
18562
18563     cat <<_LT_EOF >> "$cfgfile"
18564 #! $SHELL
18565
18566 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18567 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18568 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18569 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18570 #
18571 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18572 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18573 #                 Foundation, Inc.
18574 #   Written by Gordon Matzigkeit, 1996
18575 #
18576 #   This file is part of GNU Libtool.
18577 #
18578 # GNU Libtool is free software; you can redistribute it and/or
18579 # modify it under the terms of the GNU General Public License as
18580 # published by the Free Software Foundation; either version 2 of
18581 # the License, or (at your option) any later version.
18582 #
18583 # As a special exception to the GNU General Public License,
18584 # if you distribute this file as part of a program or library that
18585 # is built using GNU Libtool, you may include this file under the
18586 # same distribution terms that you use for the rest of that program.
18587 #
18588 # GNU Libtool is distributed in the hope that it will be useful,
18589 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18590 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18591 # GNU General Public License for more details.
18592 #
18593 # You should have received a copy of the GNU General Public License
18594 # along with GNU Libtool; see the file COPYING.  If not, a copy
18595 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18596 # obtained by writing to the Free Software Foundation, Inc.,
18597 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18598
18599
18600 # The names of the tagged configurations supported by this script.
18601 available_tags="CXX "
18602
18603 # ### BEGIN LIBTOOL CONFIG
18604
18605 # Which release of libtool.m4 was used?
18606 macro_version=$macro_version
18607 macro_revision=$macro_revision
18608
18609 # Whether or not to build shared libraries.
18610 build_libtool_libs=$enable_shared
18611
18612 # Whether or not to build static libraries.
18613 build_old_libs=$enable_static
18614
18615 # What type of objects to build.
18616 pic_mode=$pic_mode
18617
18618 # Whether or not to optimize for fast installation.
18619 fast_install=$enable_fast_install
18620
18621 # Shell to use when invoking shell scripts.
18622 SHELL=$lt_SHELL
18623
18624 # An echo program that protects backslashes.
18625 ECHO=$lt_ECHO
18626
18627 # The PATH separator for the build system.
18628 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18629
18630 # The host system.
18631 host_alias=$host_alias
18632 host=$host
18633 host_os=$host_os
18634
18635 # The build system.
18636 build_alias=$build_alias
18637 build=$build
18638 build_os=$build_os
18639
18640 # A sed program that does not truncate output.
18641 SED=$lt_SED
18642
18643 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18644 Xsed="\$SED -e 1s/^X//"
18645
18646 # A grep program that handles long lines.
18647 GREP=$lt_GREP
18648
18649 # An ERE matcher.
18650 EGREP=$lt_EGREP
18651
18652 # A literal string matcher.
18653 FGREP=$lt_FGREP
18654
18655 # A BSD- or MS-compatible name lister.
18656 NM=$lt_NM
18657
18658 # Whether we need soft or hard links.
18659 LN_S=$lt_LN_S
18660
18661 # What is the maximum length of a command?
18662 max_cmd_len=$max_cmd_len
18663
18664 # Object file suffix (normally "o").
18665 objext=$ac_objext
18666
18667 # Executable file suffix (normally "").
18668 exeext=$exeext
18669
18670 # whether the shell understands "unset".
18671 lt_unset=$lt_unset
18672
18673 # turn spaces into newlines.
18674 SP2NL=$lt_lt_SP2NL
18675
18676 # turn newlines into spaces.
18677 NL2SP=$lt_lt_NL2SP
18678
18679 # convert \$build file names to \$host format.
18680 to_host_file_cmd=$lt_cv_to_host_file_cmd
18681
18682 # convert \$build files to toolchain format.
18683 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18684
18685 # An object symbol dumper.
18686 OBJDUMP=$lt_OBJDUMP
18687
18688 # Method to check whether dependent libraries are shared objects.
18689 deplibs_check_method=$lt_deplibs_check_method
18690
18691 # Command to use when deplibs_check_method = "file_magic".
18692 file_magic_cmd=$lt_file_magic_cmd
18693
18694 # How to find potential files when deplibs_check_method = "file_magic".
18695 file_magic_glob=$lt_file_magic_glob
18696
18697 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18698 want_nocaseglob=$lt_want_nocaseglob
18699
18700 # DLL creation program.
18701 DLLTOOL=$lt_DLLTOOL
18702
18703 # Command to associate shared and link libraries.
18704 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18705
18706 # The archiver.
18707 AR=$lt_AR
18708
18709 # Flags to create an archive.
18710 AR_FLAGS=$lt_AR_FLAGS
18711
18712 # How to feed a file listing to the archiver.
18713 archiver_list_spec=$lt_archiver_list_spec
18714
18715 # A symbol stripping program.
18716 STRIP=$lt_STRIP
18717
18718 # Commands used to install an old-style archive.
18719 RANLIB=$lt_RANLIB
18720 old_postinstall_cmds=$lt_old_postinstall_cmds
18721 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18722
18723 # Whether to use a lock for old archive extraction.
18724 lock_old_archive_extraction=$lock_old_archive_extraction
18725
18726 # A C compiler.
18727 LTCC=$lt_CC
18728
18729 # LTCC compiler flags.
18730 LTCFLAGS=$lt_CFLAGS
18731
18732 # Take the output of nm and produce a listing of raw symbols and C names.
18733 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18734
18735 # Transform the output of nm in a proper C declaration.
18736 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18737
18738 # Transform the output of nm in a C name address pair.
18739 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18740
18741 # Transform the output of nm in a C name address pair when lib prefix is needed.
18742 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18743
18744 # Specify filename containing input files for \$NM.
18745 nm_file_list_spec=$lt_nm_file_list_spec
18746
18747 # The root where to search for dependent libraries,and in which our libraries should be installed.
18748 lt_sysroot=$lt_sysroot
18749
18750 # The name of the directory that contains temporary libtool files.
18751 objdir=$objdir
18752
18753 # Used to examine libraries when file_magic_cmd begins with "file".
18754 MAGIC_CMD=$MAGIC_CMD
18755
18756 # Must we lock files when doing compilation?
18757 need_locks=$lt_need_locks
18758
18759 # Manifest tool.
18760 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18761
18762 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18763 DSYMUTIL=$lt_DSYMUTIL
18764
18765 # Tool to change global to local symbols on Mac OS X.
18766 NMEDIT=$lt_NMEDIT
18767
18768 # Tool to manipulate fat objects and archives on Mac OS X.
18769 LIPO=$lt_LIPO
18770
18771 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18772 OTOOL=$lt_OTOOL
18773
18774 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18775 OTOOL64=$lt_OTOOL64
18776
18777 # Old archive suffix (normally "a").
18778 libext=$libext
18779
18780 # Shared library suffix (normally ".so").
18781 shrext_cmds=$lt_shrext_cmds
18782
18783 # The commands to extract the exported symbol list from a shared archive.
18784 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18785
18786 # Variables whose values should be saved in libtool wrapper scripts and
18787 # restored at link time.
18788 variables_saved_for_relink=$lt_variables_saved_for_relink
18789
18790 # Do we need the "lib" prefix for modules?
18791 need_lib_prefix=$need_lib_prefix
18792
18793 # Do we need a version for libraries?
18794 need_version=$need_version
18795
18796 # Library versioning type.
18797 version_type=$version_type
18798
18799 # Shared library runtime path variable.
18800 runpath_var=$runpath_var
18801
18802 # Shared library path variable.
18803 shlibpath_var=$shlibpath_var
18804
18805 # Is shlibpath searched before the hard-coded library search path?
18806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18807
18808 # Format of library name prefix.
18809 libname_spec=$lt_libname_spec
18810
18811 # List of archive names.  First name is the real one, the rest are links.
18812 # The last name is the one that the linker finds with -lNAME
18813 library_names_spec=$lt_library_names_spec
18814
18815 # The coded name of the library, if different from the real name.
18816 soname_spec=$lt_soname_spec
18817
18818 # Permission mode override for installation of shared libraries.
18819 install_override_mode=$lt_install_override_mode
18820
18821 # Command to use after installation of a shared archive.
18822 postinstall_cmds=$lt_postinstall_cmds
18823
18824 # Command to use after uninstallation of a shared archive.
18825 postuninstall_cmds=$lt_postuninstall_cmds
18826
18827 # Commands used to finish a libtool library installation in a directory.
18828 finish_cmds=$lt_finish_cmds
18829
18830 # As "finish_cmds", except a single script fragment to be evaled but
18831 # not shown.
18832 finish_eval=$lt_finish_eval
18833
18834 # Whether we should hardcode library paths into libraries.
18835 hardcode_into_libs=$hardcode_into_libs
18836
18837 # Compile-time system search path for libraries.
18838 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18839
18840 # Run-time system search path for libraries.
18841 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18842
18843 # Whether dlopen is supported.
18844 dlopen_support=$enable_dlopen
18845
18846 # Whether dlopen of programs is supported.
18847 dlopen_self=$enable_dlopen_self
18848
18849 # Whether dlopen of statically linked programs is supported.
18850 dlopen_self_static=$enable_dlopen_self_static
18851
18852 # Commands to strip libraries.
18853 old_striplib=$lt_old_striplib
18854 striplib=$lt_striplib
18855
18856
18857 # The linker used to build libraries.
18858 LD=$lt_LD
18859
18860 # How to create reloadable object files.
18861 reload_flag=$lt_reload_flag
18862 reload_cmds=$lt_reload_cmds
18863
18864 # Commands used to build an old-style archive.
18865 old_archive_cmds=$lt_old_archive_cmds
18866
18867 # A language specific compiler.
18868 CC=$lt_compiler
18869
18870 # Is the compiler the GNU compiler?
18871 with_gcc=$GCC
18872
18873 # Compiler flag to turn off builtin functions.
18874 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18875
18876 # Additional compiler flags for building library objects.
18877 pic_flag=$lt_lt_prog_compiler_pic
18878
18879 # How to pass a linker flag through the compiler.
18880 wl=$lt_lt_prog_compiler_wl
18881
18882 # Compiler flag to prevent dynamic linking.
18883 link_static_flag=$lt_lt_prog_compiler_static
18884
18885 # Does compiler simultaneously support -c and -o options?
18886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18887
18888 # Whether or not to add -lc for building shared libraries.
18889 build_libtool_need_lc=$archive_cmds_need_lc
18890
18891 # Whether or not to disallow shared libs when runtime libs are static.
18892 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18893
18894 # Compiler flag to allow reflexive dlopens.
18895 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18896
18897 # Compiler flag to generate shared objects directly from archives.
18898 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18899
18900 # Whether the compiler copes with passing no objects directly.
18901 compiler_needs_object=$lt_compiler_needs_object
18902
18903 # Create an old-style archive from a shared archive.
18904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18905
18906 # Create a temporary old-style archive to link instead of a shared archive.
18907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18908
18909 # Commands used to build a shared archive.
18910 archive_cmds=$lt_archive_cmds
18911 archive_expsym_cmds=$lt_archive_expsym_cmds
18912
18913 # Commands used to build a loadable module if different from building
18914 # a shared archive.
18915 module_cmds=$lt_module_cmds
18916 module_expsym_cmds=$lt_module_expsym_cmds
18917
18918 # Whether we are building with GNU ld or not.
18919 with_gnu_ld=$lt_with_gnu_ld
18920
18921 # Flag that allows shared libraries with undefined symbols to be built.
18922 allow_undefined_flag=$lt_allow_undefined_flag
18923
18924 # Flag that enforces no undefined symbols.
18925 no_undefined_flag=$lt_no_undefined_flag
18926
18927 # Flag to hardcode \$libdir into a binary during linking.
18928 # This must work even if \$libdir does not exist
18929 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18930
18931 # Whether we need a single "-rpath" flag with a separated argument.
18932 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18933
18934 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18935 # DIR into the resulting binary.
18936 hardcode_direct=$hardcode_direct
18937
18938 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18939 # DIR into the resulting binary and the resulting library dependency is
18940 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18941 # library is relocated.
18942 hardcode_direct_absolute=$hardcode_direct_absolute
18943
18944 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18945 # into the resulting binary.
18946 hardcode_minus_L=$hardcode_minus_L
18947
18948 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18949 # into the resulting binary.
18950 hardcode_shlibpath_var=$hardcode_shlibpath_var
18951
18952 # Set to "yes" if building a shared library automatically hardcodes DIR
18953 # into the library and all subsequent libraries and executables linked
18954 # against it.
18955 hardcode_automatic=$hardcode_automatic
18956
18957 # Set to yes if linker adds runtime paths of dependent libraries
18958 # to runtime path list.
18959 inherit_rpath=$inherit_rpath
18960
18961 # Whether libtool must link a program against all its dependency libraries.
18962 link_all_deplibs=$link_all_deplibs
18963
18964 # Set to "yes" if exported symbols are required.
18965 always_export_symbols=$always_export_symbols
18966
18967 # The commands to list exported symbols.
18968 export_symbols_cmds=$lt_export_symbols_cmds
18969
18970 # Symbols that should not be listed in the preloaded symbols.
18971 exclude_expsyms=$lt_exclude_expsyms
18972
18973 # Symbols that must always be exported.
18974 include_expsyms=$lt_include_expsyms
18975
18976 # Commands necessary for linking programs (against libraries) with templates.
18977 prelink_cmds=$lt_prelink_cmds
18978
18979 # Commands necessary for finishing linking programs.
18980 postlink_cmds=$lt_postlink_cmds
18981
18982 # Specify filename containing input files.
18983 file_list_spec=$lt_file_list_spec
18984
18985 # How to hardcode a shared library path into an executable.
18986 hardcode_action=$hardcode_action
18987
18988 # The directories searched by this compiler when creating a shared library.
18989 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18990
18991 # Dependencies to place before and after the objects being linked to
18992 # create a shared library.
18993 predep_objects=$lt_predep_objects
18994 postdep_objects=$lt_postdep_objects
18995 predeps=$lt_predeps
18996 postdeps=$lt_postdeps
18997
18998 # The library search path used internally by the compiler when linking
18999 # a shared library.
19000 compiler_lib_search_path=$lt_compiler_lib_search_path
19001
19002 # ### END LIBTOOL CONFIG
19003
19004 _LT_EOF
19005
19006   case $host_os in
19007   aix3*)
19008     cat <<\_LT_EOF >> "$cfgfile"
19009 # AIX sometimes has problems with the GCC collect2 program.  For some
19010 # reason, if we set the COLLECT_NAMES environment variable, the problems
19011 # vanish in a puff of smoke.
19012 if test "X${COLLECT_NAMES+set}" != Xset; then
19013   COLLECT_NAMES=
19014   export COLLECT_NAMES
19015 fi
19016 _LT_EOF
19017     ;;
19018   esac
19019
19020
19021 ltmain="$ac_aux_dir/ltmain.sh"
19022
19023
19024   # We use sed instead of cat because bash on DJGPP gets confused if
19025   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19026   # text mode, it properly converts lines to CR/LF.  This bash problem
19027   # is reportedly fixed, but why not run on old versions too?
19028   sed '$q' "$ltmain" >> "$cfgfile" \
19029      || (rm -f "$cfgfile"; exit 1)
19030
19031   if test x"$xsi_shell" = xyes; then
19032   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19033 func_dirname ()\
19034 {\
19035 \    case ${1} in\
19036 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19037 \      *  ) func_dirname_result="${3}" ;;\
19038 \    esac\
19039 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19040   && mv -f "$cfgfile.tmp" "$cfgfile" \
19041     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19042 test 0 -eq $? || _lt_function_replace_fail=:
19043
19044
19045   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19046 func_basename ()\
19047 {\
19048 \    func_basename_result="${1##*/}"\
19049 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19050   && mv -f "$cfgfile.tmp" "$cfgfile" \
19051     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19052 test 0 -eq $? || _lt_function_replace_fail=:
19053
19054
19055   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19056 func_dirname_and_basename ()\
19057 {\
19058 \    case ${1} in\
19059 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19060 \      *  ) func_dirname_result="${3}" ;;\
19061 \    esac\
19062 \    func_basename_result="${1##*/}"\
19063 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19064   && mv -f "$cfgfile.tmp" "$cfgfile" \
19065     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19066 test 0 -eq $? || _lt_function_replace_fail=:
19067
19068
19069   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19070 func_stripname ()\
19071 {\
19072 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19073 \    # positional parameters, so assign one to ordinary parameter first.\
19074 \    func_stripname_result=${3}\
19075 \    func_stripname_result=${func_stripname_result#"${1}"}\
19076 \    func_stripname_result=${func_stripname_result%"${2}"}\
19077 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19078   && mv -f "$cfgfile.tmp" "$cfgfile" \
19079     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19080 test 0 -eq $? || _lt_function_replace_fail=:
19081
19082
19083   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19084 func_split_long_opt ()\
19085 {\
19086 \    func_split_long_opt_name=${1%%=*}\
19087 \    func_split_long_opt_arg=${1#*=}\
19088 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19089   && mv -f "$cfgfile.tmp" "$cfgfile" \
19090     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19091 test 0 -eq $? || _lt_function_replace_fail=:
19092
19093
19094   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19095 func_split_short_opt ()\
19096 {\
19097 \    func_split_short_opt_arg=${1#??}\
19098 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19099 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19100   && mv -f "$cfgfile.tmp" "$cfgfile" \
19101     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19102 test 0 -eq $? || _lt_function_replace_fail=:
19103
19104
19105   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19106 func_lo2o ()\
19107 {\
19108 \    case ${1} in\
19109 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19110 \      *)    func_lo2o_result=${1} ;;\
19111 \    esac\
19112 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19113   && mv -f "$cfgfile.tmp" "$cfgfile" \
19114     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19115 test 0 -eq $? || _lt_function_replace_fail=:
19116
19117
19118   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19119 func_xform ()\
19120 {\
19121     func_xform_result=${1%.*}.lo\
19122 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19123   && mv -f "$cfgfile.tmp" "$cfgfile" \
19124     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19125 test 0 -eq $? || _lt_function_replace_fail=:
19126
19127
19128   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19129 func_arith ()\
19130 {\
19131     func_arith_result=$(( $* ))\
19132 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19133   && mv -f "$cfgfile.tmp" "$cfgfile" \
19134     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19135 test 0 -eq $? || _lt_function_replace_fail=:
19136
19137
19138   sed -e '/^func_len ()$/,/^} # func_len /c\
19139 func_len ()\
19140 {\
19141     func_len_result=${#1}\
19142 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19143   && mv -f "$cfgfile.tmp" "$cfgfile" \
19144     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19145 test 0 -eq $? || _lt_function_replace_fail=:
19146
19147 fi
19148
19149 if test x"$lt_shell_append" = xyes; then
19150   sed -e '/^func_append ()$/,/^} # func_append /c\
19151 func_append ()\
19152 {\
19153     eval "${1}+=\\${2}"\
19154 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19155   && mv -f "$cfgfile.tmp" "$cfgfile" \
19156     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19157 test 0 -eq $? || _lt_function_replace_fail=:
19158
19159
19160   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19161 func_append_quoted ()\
19162 {\
19163 \    func_quote_for_eval "${2}"\
19164 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19165 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19166   && mv -f "$cfgfile.tmp" "$cfgfile" \
19167     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19168 test 0 -eq $? || _lt_function_replace_fail=:
19169
19170
19171   # Save a `func_append' function call where possible by direct use of '+='
19172   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19173     && mv -f "$cfgfile.tmp" "$cfgfile" \
19174       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19175   test 0 -eq $? || _lt_function_replace_fail=:
19176 else
19177   # Save a `func_append' function call even when '+=' is not available
19178   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19179     && mv -f "$cfgfile.tmp" "$cfgfile" \
19180       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19181   test 0 -eq $? || _lt_function_replace_fail=:
19182 fi
19183
19184 if test x"$_lt_function_replace_fail" = x":"; then
19185   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19186 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19187 fi
19188
19189
19190    mv -f "$cfgfile" "$ofile" ||
19191     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19192   chmod +x "$ofile"
19193
19194
19195     cat <<_LT_EOF >> "$ofile"
19196
19197 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19198
19199 # The linker used to build libraries.
19200 LD=$lt_LD_CXX
19201
19202 # How to create reloadable object files.
19203 reload_flag=$lt_reload_flag_CXX
19204 reload_cmds=$lt_reload_cmds_CXX
19205
19206 # Commands used to build an old-style archive.
19207 old_archive_cmds=$lt_old_archive_cmds_CXX
19208
19209 # A language specific compiler.
19210 CC=$lt_compiler_CXX
19211
19212 # Is the compiler the GNU compiler?
19213 with_gcc=$GCC_CXX
19214
19215 # Compiler flag to turn off builtin functions.
19216 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19217
19218 # Additional compiler flags for building library objects.
19219 pic_flag=$lt_lt_prog_compiler_pic_CXX
19220
19221 # How to pass a linker flag through the compiler.
19222 wl=$lt_lt_prog_compiler_wl_CXX
19223
19224 # Compiler flag to prevent dynamic linking.
19225 link_static_flag=$lt_lt_prog_compiler_static_CXX
19226
19227 # Does compiler simultaneously support -c and -o options?
19228 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19229
19230 # Whether or not to add -lc for building shared libraries.
19231 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19232
19233 # Whether or not to disallow shared libs when runtime libs are static.
19234 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19235
19236 # Compiler flag to allow reflexive dlopens.
19237 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19238
19239 # Compiler flag to generate shared objects directly from archives.
19240 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19241
19242 # Whether the compiler copes with passing no objects directly.
19243 compiler_needs_object=$lt_compiler_needs_object_CXX
19244
19245 # Create an old-style archive from a shared archive.
19246 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19247
19248 # Create a temporary old-style archive to link instead of a shared archive.
19249 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19250
19251 # Commands used to build a shared archive.
19252 archive_cmds=$lt_archive_cmds_CXX
19253 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19254
19255 # Commands used to build a loadable module if different from building
19256 # a shared archive.
19257 module_cmds=$lt_module_cmds_CXX
19258 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19259
19260 # Whether we are building with GNU ld or not.
19261 with_gnu_ld=$lt_with_gnu_ld_CXX
19262
19263 # Flag that allows shared libraries with undefined symbols to be built.
19264 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19265
19266 # Flag that enforces no undefined symbols.
19267 no_undefined_flag=$lt_no_undefined_flag_CXX
19268
19269 # Flag to hardcode \$libdir into a binary during linking.
19270 # This must work even if \$libdir does not exist
19271 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19272
19273 # Whether we need a single "-rpath" flag with a separated argument.
19274 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19275
19276 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19277 # DIR into the resulting binary.
19278 hardcode_direct=$hardcode_direct_CXX
19279
19280 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19281 # DIR into the resulting binary and the resulting library dependency is
19282 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19283 # library is relocated.
19284 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19285
19286 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19287 # into the resulting binary.
19288 hardcode_minus_L=$hardcode_minus_L_CXX
19289
19290 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19291 # into the resulting binary.
19292 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19293
19294 # Set to "yes" if building a shared library automatically hardcodes DIR
19295 # into the library and all subsequent libraries and executables linked
19296 # against it.
19297 hardcode_automatic=$hardcode_automatic_CXX
19298
19299 # Set to yes if linker adds runtime paths of dependent libraries
19300 # to runtime path list.
19301 inherit_rpath=$inherit_rpath_CXX
19302
19303 # Whether libtool must link a program against all its dependency libraries.
19304 link_all_deplibs=$link_all_deplibs_CXX
19305
19306 # Set to "yes" if exported symbols are required.
19307 always_export_symbols=$always_export_symbols_CXX
19308
19309 # The commands to list exported symbols.
19310 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19311
19312 # Symbols that should not be listed in the preloaded symbols.
19313 exclude_expsyms=$lt_exclude_expsyms_CXX
19314
19315 # Symbols that must always be exported.
19316 include_expsyms=$lt_include_expsyms_CXX
19317
19318 # Commands necessary for linking programs (against libraries) with templates.
19319 prelink_cmds=$lt_prelink_cmds_CXX
19320
19321 # Commands necessary for finishing linking programs.
19322 postlink_cmds=$lt_postlink_cmds_CXX
19323
19324 # Specify filename containing input files.
19325 file_list_spec=$lt_file_list_spec_CXX
19326
19327 # How to hardcode a shared library path into an executable.
19328 hardcode_action=$hardcode_action_CXX
19329
19330 # The directories searched by this compiler when creating a shared library.
19331 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19332
19333 # Dependencies to place before and after the objects being linked to
19334 # create a shared library.
19335 predep_objects=$lt_predep_objects_CXX
19336 postdep_objects=$lt_postdep_objects_CXX
19337 predeps=$lt_predeps_CXX
19338 postdeps=$lt_postdeps_CXX
19339
19340 # The library search path used internally by the compiler when linking
19341 # a shared library.
19342 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19343
19344 # ### END LIBTOOL TAG CONFIG: CXX
19345 _LT_EOF
19346
19347  ;;
19348
19349   esac
19350 done # for ac_tag
19351
19352
19353 as_fn_exit 0
19354 _ACEOF
19355 ac_clean_files=$ac_clean_files_save
19356
19357 test $ac_write_fail = 0 ||
19358   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19359
19360
19361 # configure is writing to config.log, and then calls config.status.
19362 # config.status does its own redirection, appending to config.log.
19363 # Unfortunately, on DOS this fails, as config.log is still kept open
19364 # by configure, so config.status won't be able to write to it; its
19365 # output is simply discarded.  So we exec the FD to /dev/null,
19366 # effectively closing config.log, so it can be properly (re)opened and
19367 # appended to by config.status.  When coming back to configure, we
19368 # need to make the FD available again.
19369 if test "$no_create" != yes; then
19370   ac_cs_success=:
19371   ac_config_status_args=
19372   test "$silent" = yes &&
19373     ac_config_status_args="$ac_config_status_args --quiet"
19374   exec 5>/dev/null
19375   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19376   exec 5>>config.log
19377   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19378   # would make configure fail if this is the last instruction.
19379   $ac_cs_success || as_fn_exit 1
19380 fi
19381 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19382   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19383 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19384 fi
19385