More detailed error message.
[rtaudio-cdist.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for RtAudio 5.0.0.
4 #
5 # Report bugs to <gary@music.mcgill.ca>.
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: gary@music.mcgill.ca 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='RtAudio'
592 PACKAGE_TARNAME='rtaudio'
593 PACKAGE_VERSION='5.0.0'
594 PACKAGE_STRING='RtAudio 5.0.0'
595 PACKAGE_BUGREPORT='gary@music.mcgill.ca'
596 PACKAGE_URL=''
597
598 ac_unique_file="RtAudio.cpp"
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 objects
640 req
641 api
642 MAKE_DOC_FALSE
643 MAKE_DOC_TRUE
644 DOXYGEN
645 CXXCPP
646 CPP
647 LT_SYS_LIBRARY_PATH
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 MANIFEST_TOOL
654 RANLIB
655 LN_S
656 NM
657 ac_ct_DUMPBIN
658 DUMPBIN
659 LD
660 FGREP
661 EGREP
662 GREP
663 SED
664 host_os
665 host_vendor
666 host_cpu
667 host
668 build_os
669 build_vendor
670 build_cpu
671 build
672 LIBTOOL
673 OBJDUMP
674 DLLTOOL
675 AS
676 ac_ct_AR
677 AR
678 am__fastdepCXX_FALSE
679 am__fastdepCXX_TRUE
680 CXXDEPMODE
681 ac_ct_CXX
682 CXXFLAGS
683 CXX
684 PKG_CONFIG_LIBDIR
685 PKG_CONFIG_PATH
686 PKG_CONFIG
687 GXX
688 MAINT
689 MAINTAINER_MODE_FALSE
690 MAINTAINER_MODE_TRUE
691 am__fastdepCC_FALSE
692 am__fastdepCC_TRUE
693 CCDEPMODE
694 am__nodep
695 AMDEPBACKSLASH
696 AMDEP_FALSE
697 AMDEP_TRUE
698 am__quote
699 am__include
700 DEPDIR
701 OBJEXT
702 EXEEXT
703 ac_ct_CC
704 CPPFLAGS
705 LDFLAGS
706 CFLAGS
707 CC
708 SO_VERSION
709 AM_BACKSLASH
710 AM_DEFAULT_VERBOSITY
711 AM_DEFAULT_V
712 AM_V
713 am__untar
714 am__tar
715 AMTAR
716 am__leading_dot
717 SET_MAKE
718 AWK
719 mkdir_p
720 MKDIR_P
721 INSTALL_STRIP_PROGRAM
722 STRIP
723 install_sh
724 MAKEINFO
725 AUTOHEADER
726 AUTOMAKE
727 AUTOCONF
728 ACLOCAL
729 VERSION
730 PACKAGE
731 CYGPATH_W
732 am__isrc
733 INSTALL_DATA
734 INSTALL_SCRIPT
735 INSTALL_PROGRAM
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 runstatedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL'
775 ac_subst_files=''
776 ac_user_opts='
777 enable_option_checking
778 enable_silent_rules
779 enable_dependency_tracking
780 enable_maintainer_mode
781 enable_debug
782 enable_shared
783 enable_static
784 with_pic
785 enable_fast_install
786 with_aix_soname
787 with_gnu_ld
788 with_sysroot
789 enable_libtool_lock
790 with_jack
791 with_alsa
792 with_pulse
793 with_oss
794 with_core
795 with_asio
796 with_ds
797 with_wasapi
798 '
799       ac_precious_vars='build_alias
800 host_alias
801 target_alias
802 CC
803 CFLAGS
804 LDFLAGS
805 LIBS
806 CPPFLAGS
807 PKG_CONFIG
808 PKG_CONFIG_PATH
809 PKG_CONFIG_LIBDIR
810 CXX
811 CXXFLAGS
812 CCC
813 LT_SYS_LIBRARY_PATH
814 CPP
815 CXXCPP'
816
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 ac_unrecognized_opts=
822 ac_unrecognized_sep=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 runstatedir='${localstatedir}/run'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871   # If the previous option needs an argument, assign it.
872   if test -n "$ac_prev"; then
873     eval $ac_prev=\$ac_option
874     ac_prev=
875     continue
876   fi
877
878   case $ac_option in
879   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880   *=)   ac_optarg= ;;
881   *)    ac_optarg=yes ;;
882   esac
883
884   # Accept the important Cygnus configure options, so we can diagnose typos.
885
886   case $ac_dashdash$ac_option in
887   --)
888     ac_dashdash=yes ;;
889
890   -bindir | --bindir | --bindi | --bind | --bin | --bi)
891     ac_prev=bindir ;;
892   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893     bindir=$ac_optarg ;;
894
895   -build | --build | --buil | --bui | --bu)
896     ac_prev=build_alias ;;
897   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898     build_alias=$ac_optarg ;;
899
900   -cache-file | --cache-file | --cache-fil | --cache-fi \
901   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902     ac_prev=cache_file ;;
903   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905     cache_file=$ac_optarg ;;
906
907   --config-cache | -C)
908     cache_file=config.cache ;;
909
910   -datadir | --datadir | --datadi | --datad)
911     ac_prev=datadir ;;
912   -datadir=* | --datadir=* | --datadi=* | --datad=*)
913     datadir=$ac_optarg ;;
914
915   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916   | --dataroo | --dataro | --datar)
917     ac_prev=datarootdir ;;
918   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920     datarootdir=$ac_optarg ;;
921
922   -disable-* | --disable-*)
923     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924     # Reject names that are not valid shell variable names.
925     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926       as_fn_error $? "invalid feature name: $ac_useropt"
927     ac_useropt_orig=$ac_useropt
928     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929     case $ac_user_opts in
930       *"
931 "enable_$ac_useropt"
932 "*) ;;
933       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934          ac_unrecognized_sep=', ';;
935     esac
936     eval enable_$ac_useropt=no ;;
937
938   -docdir | --docdir | --docdi | --doc | --do)
939     ac_prev=docdir ;;
940   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941     docdir=$ac_optarg ;;
942
943   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944     ac_prev=dvidir ;;
945   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946     dvidir=$ac_optarg ;;
947
948   -enable-* | --enable-*)
949     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950     # Reject names that are not valid shell variable names.
951     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952       as_fn_error $? "invalid feature name: $ac_useropt"
953     ac_useropt_orig=$ac_useropt
954     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955     case $ac_user_opts in
956       *"
957 "enable_$ac_useropt"
958 "*) ;;
959       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960          ac_unrecognized_sep=', ';;
961     esac
962     eval enable_$ac_useropt=\$ac_optarg ;;
963
964   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966   | --exec | --exe | --ex)
967     ac_prev=exec_prefix ;;
968   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970   | --exec=* | --exe=* | --ex=*)
971     exec_prefix=$ac_optarg ;;
972
973   -gas | --gas | --ga | --g)
974     # Obsolete; use --with-gas.
975     with_gas=yes ;;
976
977   -help | --help | --hel | --he | -h)
978     ac_init_help=long ;;
979   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980     ac_init_help=recursive ;;
981   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982     ac_init_help=short ;;
983
984   -host | --host | --hos | --ho)
985     ac_prev=host_alias ;;
986   -host=* | --host=* | --hos=* | --ho=*)
987     host_alias=$ac_optarg ;;
988
989   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990     ac_prev=htmldir ;;
991   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992   | --ht=*)
993     htmldir=$ac_optarg ;;
994
995   -includedir | --includedir | --includedi | --included | --include \
996   | --includ | --inclu | --incl | --inc)
997     ac_prev=includedir ;;
998   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999   | --includ=* | --inclu=* | --incl=* | --inc=*)
1000     includedir=$ac_optarg ;;
1001
1002   -infodir | --infodir | --infodi | --infod | --info | --inf)
1003     ac_prev=infodir ;;
1004   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005     infodir=$ac_optarg ;;
1006
1007   -libdir | --libdir | --libdi | --libd)
1008     ac_prev=libdir ;;
1009   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010     libdir=$ac_optarg ;;
1011
1012   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013   | --libexe | --libex | --libe)
1014     ac_prev=libexecdir ;;
1015   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016   | --libexe=* | --libex=* | --libe=*)
1017     libexecdir=$ac_optarg ;;
1018
1019   -localedir | --localedir | --localedi | --localed | --locale)
1020     ac_prev=localedir ;;
1021   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022     localedir=$ac_optarg ;;
1023
1024   -localstatedir | --localstatedir | --localstatedi | --localstated \
1025   | --localstate | --localstat | --localsta | --localst | --locals)
1026     ac_prev=localstatedir ;;
1027   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029     localstatedir=$ac_optarg ;;
1030
1031   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032     ac_prev=mandir ;;
1033   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034     mandir=$ac_optarg ;;
1035
1036   -nfp | --nfp | --nf)
1037     # Obsolete; use --without-fp.
1038     with_fp=no ;;
1039
1040   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041   | --no-cr | --no-c | -n)
1042     no_create=yes ;;
1043
1044   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046     no_recursion=yes ;;
1047
1048   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050   | --oldin | --oldi | --old | --ol | --o)
1051     ac_prev=oldincludedir ;;
1052   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055     oldincludedir=$ac_optarg ;;
1056
1057   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058     ac_prev=prefix ;;
1059   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060     prefix=$ac_optarg ;;
1061
1062   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063   | --program-pre | --program-pr | --program-p)
1064     ac_prev=program_prefix ;;
1065   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067     program_prefix=$ac_optarg ;;
1068
1069   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070   | --program-suf | --program-su | --program-s)
1071     ac_prev=program_suffix ;;
1072   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074     program_suffix=$ac_optarg ;;
1075
1076   -program-transform-name | --program-transform-name \
1077   | --program-transform-nam | --program-transform-na \
1078   | --program-transform-n | --program-transform- \
1079   | --program-transform | --program-transfor \
1080   | --program-transfo | --program-transf \
1081   | --program-trans | --program-tran \
1082   | --progr-tra | --program-tr | --program-t)
1083     ac_prev=program_transform_name ;;
1084   -program-transform-name=* | --program-transform-name=* \
1085   | --program-transform-nam=* | --program-transform-na=* \
1086   | --program-transform-n=* | --program-transform-=* \
1087   | --program-transform=* | --program-transfor=* \
1088   | --program-transfo=* | --program-transf=* \
1089   | --program-trans=* | --program-tran=* \
1090   | --progr-tra=* | --program-tr=* | --program-t=*)
1091     program_transform_name=$ac_optarg ;;
1092
1093   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094     ac_prev=pdfdir ;;
1095   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096     pdfdir=$ac_optarg ;;
1097
1098   -psdir | --psdir | --psdi | --psd | --ps)
1099     ac_prev=psdir ;;
1100   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101     psdir=$ac_optarg ;;
1102
1103   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104   | -silent | --silent | --silen | --sile | --sil)
1105     silent=yes ;;
1106
1107   -runstatedir | --runstatedir | --runstatedi | --runstated \
1108   | --runstate | --runstat | --runsta | --runst | --runs \
1109   | --run | --ru | --r)
1110     ac_prev=runstatedir ;;
1111   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1112   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1113   | --run=* | --ru=* | --r=*)
1114     runstatedir=$ac_optarg ;;
1115
1116   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117     ac_prev=sbindir ;;
1118   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119   | --sbi=* | --sb=*)
1120     sbindir=$ac_optarg ;;
1121
1122   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124   | --sharedst | --shareds | --shared | --share | --shar \
1125   | --sha | --sh)
1126     ac_prev=sharedstatedir ;;
1127   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130   | --sha=* | --sh=*)
1131     sharedstatedir=$ac_optarg ;;
1132
1133   -site | --site | --sit)
1134     ac_prev=site ;;
1135   -site=* | --site=* | --sit=*)
1136     site=$ac_optarg ;;
1137
1138   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139     ac_prev=srcdir ;;
1140   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141     srcdir=$ac_optarg ;;
1142
1143   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144   | --syscon | --sysco | --sysc | --sys | --sy)
1145     ac_prev=sysconfdir ;;
1146   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148     sysconfdir=$ac_optarg ;;
1149
1150   -target | --target | --targe | --targ | --tar | --ta | --t)
1151     ac_prev=target_alias ;;
1152   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153     target_alias=$ac_optarg ;;
1154
1155   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156     verbose=yes ;;
1157
1158   -version | --version | --versio | --versi | --vers | -V)
1159     ac_init_version=: ;;
1160
1161   -with-* | --with-*)
1162     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165       as_fn_error $? "invalid package name: $ac_useropt"
1166     ac_useropt_orig=$ac_useropt
1167     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168     case $ac_user_opts in
1169       *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173          ac_unrecognized_sep=', ';;
1174     esac
1175     eval with_$ac_useropt=\$ac_optarg ;;
1176
1177   -without-* | --without-*)
1178     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179     # Reject names that are not valid shell variable names.
1180     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181       as_fn_error $? "invalid package name: $ac_useropt"
1182     ac_useropt_orig=$ac_useropt
1183     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184     case $ac_user_opts in
1185       *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189          ac_unrecognized_sep=', ';;
1190     esac
1191     eval with_$ac_useropt=no ;;
1192
1193   --x)
1194     # Obsolete; use --with-x.
1195     with_x=yes ;;
1196
1197   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198   | --x-incl | --x-inc | --x-in | --x-i)
1199     ac_prev=x_includes ;;
1200   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202     x_includes=$ac_optarg ;;
1203
1204   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206     ac_prev=x_libraries ;;
1207   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209     x_libraries=$ac_optarg ;;
1210
1211   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1212 Try \`$0 --help' for more information"
1213     ;;
1214
1215   *=*)
1216     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217     # Reject names that are not valid shell variable names.
1218     case $ac_envvar in #(
1219       '' | [0-9]* | *[!_$as_cr_alnum]* )
1220       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1221     esac
1222     eval $ac_envvar=\$ac_optarg
1223     export $ac_envvar ;;
1224
1225   *)
1226     # FIXME: should be removed in autoconf 3.0.
1227     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231     ;;
1232
1233   esac
1234 done
1235
1236 if test -n "$ac_prev"; then
1237   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238   as_fn_error $? "missing argument to $ac_option"
1239 fi
1240
1241 if test -n "$ac_unrecognized_opts"; then
1242   case $enable_option_checking in
1243     no) ;;
1244     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246   esac
1247 fi
1248
1249 # Check all directory arguments for consistency.
1250 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251                 datadir sysconfdir sharedstatedir localstatedir includedir \
1252                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253                 libdir localedir mandir runstatedir
1254 do
1255   eval ac_val=\$$ac_var
1256   # Remove trailing slashes.
1257   case $ac_val in
1258     */ )
1259       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260       eval $ac_var=\$ac_val;;
1261   esac
1262   # Be sure to have absolute directory names.
1263   case $ac_val in
1264     [\\/$]* | ?:[\\/]* )  continue;;
1265     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266   esac
1267   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1268 done
1269
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1276
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279   if test "x$build_alias" = x; then
1280     cross_compiling=maybe
1281   elif test "x$build_alias" != "x$host_alias"; then
1282     cross_compiling=yes
1283   fi
1284 fi
1285
1286 ac_tool_prefix=
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1288
1289 test "$silent" = yes && exec 6>/dev/null
1290
1291
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295   as_fn_error $? "working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297   as_fn_error $? "pwd does not report name of working directory"
1298
1299
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302   ac_srcdir_defaulted=yes
1303   # Try the directory containing this script, then the parent directory.
1304   ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306          X"$as_myself" : 'X\(//\)[^/]' \| \
1307          X"$as_myself" : 'X\(//\)$' \| \
1308          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311             s//\1/
1312             q
1313           }
1314           /^X\(\/\/\)[^/].*/{
1315             s//\1/
1316             q
1317           }
1318           /^X\(\/\/\)$/{
1319             s//\1/
1320             q
1321           }
1322           /^X\(\/\).*/{
1323             s//\1/
1324             q
1325           }
1326           s/.*/./; q'`
1327   srcdir=$ac_confdir
1328   if test ! -r "$srcdir/$ac_unique_file"; then
1329     srcdir=..
1330   fi
1331 else
1332   ac_srcdir_defaulted=no
1333 fi
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1337 fi
1338 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339 ac_abs_confdir=`(
1340         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341         pwd)`
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1344   srcdir=.
1345 fi
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1349 case $srcdir in
1350 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351 esac
1352 for ac_var in $ac_precious_vars; do
1353   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354   eval ac_env_${ac_var}_value=\$${ac_var}
1355   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 done
1358
1359 #
1360 # Report the --help message.
1361 #
1362 if test "$ac_init_help" = "long"; then
1363   # Omit some internal or obsolete options to make the list less imposing.
1364   # This message is too long to be a string in the A/UX 3.1 sh.
1365   cat <<_ACEOF
1366 \`configure' configures RtAudio 5.0.0 to adapt to many kinds of systems.
1367
1368 Usage: $0 [OPTION]... [VAR=VALUE]...
1369
1370 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371 VAR=VALUE.  See below for descriptions of some of the useful variables.
1372
1373 Defaults for the options are specified in brackets.
1374
1375 Configuration:
1376   -h, --help              display this help and exit
1377       --help=short        display options specific to this package
1378       --help=recursive    display the short help of all the included packages
1379   -V, --version           display version information and exit
1380   -q, --quiet, --silent   do not print \`checking ...' messages
1381       --cache-file=FILE   cache test results in FILE [disabled]
1382   -C, --config-cache      alias for \`--cache-file=config.cache'
1383   -n, --no-create         do not create output files
1384       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1385
1386 Installation directories:
1387   --prefix=PREFIX         install architecture-independent files in PREFIX
1388                           [$ac_default_prefix]
1389   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1390                           [PREFIX]
1391
1392 By default, \`make install' will install all the files in
1393 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1394 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1395 for instance \`--prefix=\$HOME'.
1396
1397 For better control, use the options below.
1398
1399 Fine tuning of the installation directories:
1400   --bindir=DIR            user executables [EPREFIX/bin]
1401   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1402   --libexecdir=DIR        program executables [EPREFIX/libexec]
1403   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1404   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1405   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1406   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1407   --libdir=DIR            object code libraries [EPREFIX/lib]
1408   --includedir=DIR        C header files [PREFIX/include]
1409   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1410   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1411   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1412   --infodir=DIR           info documentation [DATAROOTDIR/info]
1413   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1414   --mandir=DIR            man documentation [DATAROOTDIR/man]
1415   --docdir=DIR            documentation root [DATAROOTDIR/doc/rtaudio]
1416   --htmldir=DIR           html documentation [DOCDIR]
1417   --dvidir=DIR            dvi documentation [DOCDIR]
1418   --pdfdir=DIR            pdf documentation [DOCDIR]
1419   --psdir=DIR             ps documentation [DOCDIR]
1420 _ACEOF
1421
1422   cat <<\_ACEOF
1423
1424 Program names:
1425   --program-prefix=PREFIX            prepend PREFIX to installed program names
1426   --program-suffix=SUFFIX            append SUFFIX to installed program names
1427   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1428
1429 System types:
1430   --build=BUILD     configure for building on BUILD [guessed]
1431   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1432 _ACEOF
1433 fi
1434
1435 if test -n "$ac_init_help"; then
1436   case $ac_init_help in
1437      short | recursive ) echo "Configuration of RtAudio 5.0.0:";;
1438    esac
1439   cat <<\_ACEOF
1440
1441 Optional Features:
1442   --disable-option-checking  ignore unrecognized --enable/--with options
1443   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1444   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1445   --enable-silent-rules   less verbose build output (undo: "make V=1")
1446   --disable-silent-rules  verbose build output (undo: "make V=0")
1447   --enable-dependency-tracking
1448                           do not reject slow dependency extractors
1449   --disable-dependency-tracking
1450                           speeds up one-time build
1451   --enable-maintainer-mode
1452                           enable make rules and dependencies not useful (and
1453                           sometimes confusing) to the casual installer
1454   --enable-debug          enable various debug output
1455   --enable-shared[=PKGS]  build shared libraries [default=yes]
1456   --enable-static[=PKGS]  build static libraries [default=yes]
1457   --enable-fast-install[=PKGS]
1458                           optimize for fast installation [default=yes]
1459   --disable-libtool-lock  avoid locking (might break parallel builds)
1460
1461 Optional Packages:
1462   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1463   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1464   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1465                           both]
1466   --with-aix-soname=aix|svr4|both
1467                           shared library versioning (aka "SONAME") variant to
1468                           provide on AIX, [default=aix].
1469   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1470   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1471                           compiler's sysroot if not specified).
1472   --with-jack = choose JACK server support (mac and linux only)
1473   --with-alsa = choose native ALSA API support (linux only)
1474   --with-pulse = choose PulseAudio API support (linux only)
1475   --with-oss = choose OSS API support (unixes)
1476   --with-core = choose CoreAudio API support (mac only)
1477   --with-asio = choose ASIO API support (windoze only)
1478   --with-ds = choose DirectSound API support (windoze only)
1479   --with-wasapi = choose Windows Audio Session API support (windoze only)
1480
1481 Some influential environment variables:
1482   CC          C compiler command
1483   CFLAGS      C compiler flags
1484   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1485               nonstandard directory <lib dir>
1486   LIBS        libraries to pass to the linker, e.g. -l<library>
1487   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1488               you have headers in a nonstandard directory <include dir>
1489   PKG_CONFIG  path to pkg-config utility
1490   PKG_CONFIG_PATH
1491               directories to add to pkg-config's search path
1492   PKG_CONFIG_LIBDIR
1493               path overriding pkg-config's built-in search path
1494   CXX         C++ compiler command
1495   CXXFLAGS    C++ compiler flags
1496   LT_SYS_LIBRARY_PATH
1497               User-defined run-time library search path.
1498   CPP         C preprocessor
1499   CXXCPP      C++ preprocessor
1500
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1503
1504 Report bugs to <gary@music.mcgill.ca>.
1505 _ACEOF
1506 ac_status=$?
1507 fi
1508
1509 if test "$ac_init_help" = "recursive"; then
1510   # If there are subdirs, report their specific --help.
1511   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512     test -d "$ac_dir" ||
1513       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514       continue
1515     ac_builddir=.
1516
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *)
1520   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521   # A ".." for each directory in $ac_dir_suffix.
1522   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523   case $ac_top_builddir_sub in
1524   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526   esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1532
1533 case $srcdir in
1534   .)  # We are building in place.
1535     ac_srcdir=.
1536     ac_top_srcdir=$ac_top_builddir_sub
1537     ac_abs_top_srcdir=$ac_pwd ;;
1538   [\\/]* | ?:[\\/]* )  # Absolute name.
1539     ac_srcdir=$srcdir$ac_dir_suffix;
1540     ac_top_srcdir=$srcdir
1541     ac_abs_top_srcdir=$srcdir ;;
1542   *) # Relative name.
1543     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544     ac_top_srcdir=$ac_top_build_prefix$srcdir
1545     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549     cd "$ac_dir" || { ac_status=$?; continue; }
1550     # Check for guested configure.
1551     if test -f "$ac_srcdir/configure.gnu"; then
1552       echo &&
1553       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554     elif test -f "$ac_srcdir/configure"; then
1555       echo &&
1556       $SHELL "$ac_srcdir/configure" --help=recursive
1557     else
1558       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559     fi || ac_status=$?
1560     cd "$ac_pwd" || { ac_status=$?; break; }
1561   done
1562 fi
1563
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566   cat <<\_ACEOF
1567 RtAudio configure 5.0.0
1568 generated by GNU Autoconf 2.69
1569
1570 Copyright (C) 2012 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574   exit
1575 fi
1576
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1580
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1585 {
1586   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587   rm -f conftest.$ac_objext
1588   if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591   *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595   (eval "$ac_compile") 2>conftest.err
1596   ac_status=$?
1597   if test -s conftest.err; then
1598     grep -v '^ *+' conftest.err >conftest.er1
1599     cat conftest.er1 >&5
1600     mv -f conftest.er1 conftest.err
1601   fi
1602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603   test $ac_status = 0; } && {
1604          test -z "$ac_c_werror_flag" ||
1605          test ! -s conftest.err
1606        } && test -s conftest.$ac_objext; then :
1607   ac_retval=0
1608 else
1609   $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612         ac_retval=1
1613 fi
1614   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615   as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_compile
1618
1619 # ac_fn_c_try_run LINENO
1620 # ----------------------
1621 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1622 # that executables *can* be run.
1623 ac_fn_c_try_run ()
1624 {
1625   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626   if { { ac_try="$ac_link"
1627 case "(($ac_try" in
1628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629   *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633   (eval "$ac_link") 2>&5
1634   ac_status=$?
1635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1637   { { case "(($ac_try" in
1638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639   *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643   (eval "$ac_try") 2>&5
1644   ac_status=$?
1645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646   test $ac_status = 0; }; }; then :
1647   ac_retval=0
1648 else
1649   $as_echo "$as_me: program exited with status $ac_status" >&5
1650        $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1652
1653        ac_retval=$ac_status
1654 fi
1655   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657   as_fn_set_status $ac_retval
1658
1659 } # ac_fn_c_try_run
1660
1661 # ac_fn_cxx_try_compile LINENO
1662 # ----------------------------
1663 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_cxx_try_compile ()
1665 {
1666   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667   rm -f conftest.$ac_objext
1668   if { { ac_try="$ac_compile"
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_compile") 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_cxx_werror_flag" ||
1685          test ! -s conftest.err
1686        } && test -s conftest.$ac_objext; then :
1687   ac_retval=0
1688 else
1689   $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692         ac_retval=1
1693 fi
1694   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695   as_fn_set_status $ac_retval
1696
1697 } # ac_fn_cxx_try_compile
1698
1699 # ac_fn_c_try_link LINENO
1700 # -----------------------
1701 # Try to link conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_link ()
1703 {
1704   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705   rm -f conftest.$ac_objext conftest$ac_exeext
1706   if { { ac_try="$ac_link"
1707 case "(($ac_try" in
1708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709   *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713   (eval "$ac_link") 2>conftest.err
1714   ac_status=$?
1715   if test -s conftest.err; then
1716     grep -v '^ *+' conftest.err >conftest.er1
1717     cat conftest.er1 >&5
1718     mv -f conftest.er1 conftest.err
1719   fi
1720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721   test $ac_status = 0; } && {
1722          test -z "$ac_c_werror_flag" ||
1723          test ! -s conftest.err
1724        } && test -s conftest$ac_exeext && {
1725          test "$cross_compiling" = yes ||
1726          test -x conftest$ac_exeext
1727        }; then :
1728   ac_retval=0
1729 else
1730   $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733         ac_retval=1
1734 fi
1735   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737   # interfere with the next link command; also delete a directory that is
1738   # left behind by Apple's compiler.  We do this before executing the actions.
1739   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741   as_fn_set_status $ac_retval
1742
1743 } # ac_fn_c_try_link
1744
1745 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1746 # -------------------------------------------------------
1747 # Tests whether HEADER exists and can be compiled using the include files in
1748 # INCLUDES, setting the cache variable VAR accordingly.
1749 ac_fn_c_check_header_compile ()
1750 {
1751   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if eval \${$3+:} false; then :
1755   $as_echo_n "(cached) " >&6
1756 else
1757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h.  */
1759 $4
1760 #include <$2>
1761 _ACEOF
1762 if ac_fn_c_try_compile "$LINENO"; then :
1763   eval "$3=yes"
1764 else
1765   eval "$3=no"
1766 fi
1767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768 fi
1769 eval ac_res=\$$3
1770                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1772   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773
1774 } # ac_fn_c_check_header_compile
1775
1776 # ac_fn_c_try_cpp LINENO
1777 # ----------------------
1778 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1779 ac_fn_c_try_cpp ()
1780 {
1781   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782   if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1790   ac_status=$?
1791   if test -s conftest.err; then
1792     grep -v '^ *+' conftest.err >conftest.er1
1793     cat conftest.er1 >&5
1794     mv -f conftest.er1 conftest.err
1795   fi
1796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797   test $ac_status = 0; } > conftest.i && {
1798          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1799          test ! -s conftest.err
1800        }; then :
1801   ac_retval=0
1802 else
1803   $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806     ac_retval=1
1807 fi
1808   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809   as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_cpp
1812
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1817 {
1818   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822   $as_echo_n "(cached) " >&6
1823 else
1824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h.  */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1828 #define $2 innocuous_$2
1829
1830 /* System header to define __stub macros and hopefully few prototypes,
1831     which can conflict with char $2 (); below.
1832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833     <limits.h> exists even on freestanding compilers.  */
1834
1835 #ifdef __STDC__
1836 # include <limits.h>
1837 #else
1838 # include <assert.h>
1839 #endif
1840
1841 #undef $2
1842
1843 /* Override any GCC internal prototype to avoid an error.
1844    Use char because int might match the return type of a GCC
1845    builtin and then its argument prototype would still apply.  */
1846 #ifdef __cplusplus
1847 extern "C"
1848 #endif
1849 char $2 ();
1850 /* The GNU C library defines this for functions which it implements
1851     to always fail with ENOSYS.  Some functions are actually named
1852     something starting with __ and the normal name is an alias.  */
1853 #if defined __stub_$2 || defined __stub___$2
1854 choke me
1855 #endif
1856
1857 int
1858 main ()
1859 {
1860 return $2 ();
1861   ;
1862   return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_link "$LINENO"; then :
1866   eval "$3=yes"
1867 else
1868   eval "$3=no"
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext \
1871     conftest$ac_exeext conftest.$ac_ext
1872 fi
1873 eval ac_res=\$$3
1874                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_check_func
1879
1880 # ac_fn_cxx_try_cpp LINENO
1881 # ------------------------
1882 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_cpp ()
1884 {
1885   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886   if { { ac_try="$ac_cpp conftest.$ac_ext"
1887 case "(($ac_try" in
1888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889   *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1894   ac_status=$?
1895   if test -s conftest.err; then
1896     grep -v '^ *+' conftest.err >conftest.er1
1897     cat conftest.er1 >&5
1898     mv -f conftest.er1 conftest.err
1899   fi
1900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901   test $ac_status = 0; } > conftest.i && {
1902          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1903          test ! -s conftest.err
1904        }; then :
1905   ac_retval=0
1906 else
1907   $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1909
1910     ac_retval=1
1911 fi
1912   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913   as_fn_set_status $ac_retval
1914
1915 } # ac_fn_cxx_try_cpp
1916
1917 # ac_fn_cxx_try_link LINENO
1918 # -------------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_link ()
1921 {
1922   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923   rm -f conftest.$ac_objext conftest$ac_exeext
1924   if { { ac_try="$ac_link"
1925 case "(($ac_try" in
1926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927   *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931   (eval "$ac_link") 2>conftest.err
1932   ac_status=$?
1933   if test -s conftest.err; then
1934     grep -v '^ *+' conftest.err >conftest.er1
1935     cat conftest.er1 >&5
1936     mv -f conftest.er1 conftest.err
1937   fi
1938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939   test $ac_status = 0; } && {
1940          test -z "$ac_cxx_werror_flag" ||
1941          test ! -s conftest.err
1942        } && test -s conftest$ac_exeext && {
1943          test "$cross_compiling" = yes ||
1944          test -x conftest$ac_exeext
1945        }; then :
1946   ac_retval=0
1947 else
1948   $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1950
1951         ac_retval=1
1952 fi
1953   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955   # interfere with the next link command; also delete a directory that is
1956   # left behind by Apple's compiler.  We do this before executing the actions.
1957   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959   as_fn_set_status $ac_retval
1960
1961 } # ac_fn_cxx_try_link
1962
1963 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1964 # -------------------------------------------------------
1965 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1966 # the include files in INCLUDES and setting the cache variable VAR
1967 # accordingly.
1968 ac_fn_c_check_header_mongrel ()
1969 {
1970   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971   if eval \${$3+:} false; then :
1972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if eval \${$3+:} false; then :
1975   $as_echo_n "(cached) " >&6
1976 fi
1977 eval ac_res=\$$3
1978                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 else
1981   # Is the header compilable?
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1983 $as_echo_n "checking $2 usability... " >&6; }
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h.  */
1986 $4
1987 #include <$2>
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990   ac_header_compiler=yes
1991 else
1992   ac_header_compiler=no
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1996 $as_echo "$ac_header_compiler" >&6; }
1997
1998 # Is the header present?
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2000 $as_echo_n "checking $2 presence... " >&6; }
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h.  */
2003 #include <$2>
2004 _ACEOF
2005 if ac_fn_c_try_cpp "$LINENO"; then :
2006   ac_header_preproc=yes
2007 else
2008   ac_header_preproc=no
2009 fi
2010 rm -f conftest.err conftest.i conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2012 $as_echo "$ac_header_preproc" >&6; }
2013
2014 # So?  What about this header?
2015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2016   yes:no: )
2017     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2018 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2019     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2020 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2021     ;;
2022   no:yes:* )
2023     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2024 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2025     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2026 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2027     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2028 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2029     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2030 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2031     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2033 ( $as_echo "## ----------------------------------- ##
2034 ## Report this to gary@music.mcgill.ca ##
2035 ## ----------------------------------- ##"
2036      ) | sed "s/^/$as_me: WARNING:     /" >&2
2037     ;;
2038 esac
2039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042   $as_echo_n "(cached) " >&6
2043 else
2044   eval "$3=\$ac_header_compiler"
2045 fi
2046 eval ac_res=\$$3
2047                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049 fi
2050   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051
2052 } # ac_fn_c_check_header_mongrel
2053 cat >config.log <<_ACEOF
2054 This file contains any messages produced by compilers while
2055 running configure, to aid debugging if configure makes a mistake.
2056
2057 It was created by RtAudio $as_me 5.0.0, which was
2058 generated by GNU Autoconf 2.69.  Invocation command line was
2059
2060   $ $0 $@
2061
2062 _ACEOF
2063 exec 5>>config.log
2064 {
2065 cat <<_ASUNAME
2066 ## --------- ##
2067 ## Platform. ##
2068 ## --------- ##
2069
2070 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2071 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2072 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2073 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2074 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2075
2076 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2077 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2078
2079 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2080 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2081 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2082 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2083 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2084 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2085 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2086
2087 _ASUNAME
2088
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2091 do
2092   IFS=$as_save_IFS
2093   test -z "$as_dir" && as_dir=.
2094     $as_echo "PATH: $as_dir"
2095   done
2096 IFS=$as_save_IFS
2097
2098 } >&5
2099
2100 cat >&5 <<_ACEOF
2101
2102
2103 ## ----------- ##
2104 ## Core tests. ##
2105 ## ----------- ##
2106
2107 _ACEOF
2108
2109
2110 # Keep a trace of the command line.
2111 # Strip out --no-create and --no-recursion so they do not pile up.
2112 # Strip out --silent because we don't want to record it for future runs.
2113 # Also quote any args containing shell meta-characters.
2114 # Make two passes to allow for proper duplicate-argument suppression.
2115 ac_configure_args=
2116 ac_configure_args0=
2117 ac_configure_args1=
2118 ac_must_keep_next=false
2119 for ac_pass in 1 2
2120 do
2121   for ac_arg
2122   do
2123     case $ac_arg in
2124     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2125     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2126     | -silent | --silent | --silen | --sile | --sil)
2127       continue ;;
2128     *\'*)
2129       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2130     esac
2131     case $ac_pass in
2132     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2133     2)
2134       as_fn_append ac_configure_args1 " '$ac_arg'"
2135       if test $ac_must_keep_next = true; then
2136         ac_must_keep_next=false # Got value, back to normal.
2137       else
2138         case $ac_arg in
2139           *=* | --config-cache | -C | -disable-* | --disable-* \
2140           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2141           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2142           | -with-* | --with-* | -without-* | --without-* | --x)
2143             case "$ac_configure_args0 " in
2144               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2145             esac
2146             ;;
2147           -* ) ac_must_keep_next=true ;;
2148         esac
2149       fi
2150       as_fn_append ac_configure_args " '$ac_arg'"
2151       ;;
2152     esac
2153   done
2154 done
2155 { ac_configure_args0=; unset ac_configure_args0;}
2156 { ac_configure_args1=; unset ac_configure_args1;}
2157
2158 # When interrupted or exit'd, cleanup temporary files, and complete
2159 # config.log.  We remove comments because anyway the quotes in there
2160 # would cause problems or look ugly.
2161 # WARNING: Use '\'' to represent an apostrophe within the trap.
2162 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2163 trap 'exit_status=$?
2164   # Save into config.log some information that might help in debugging.
2165   {
2166     echo
2167
2168     $as_echo "## ---------------- ##
2169 ## Cache variables. ##
2170 ## ---------------- ##"
2171     echo
2172     # The following way of writing the cache mishandles newlines in values,
2173 (
2174   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2175     eval ac_val=\$$ac_var
2176     case $ac_val in #(
2177     *${as_nl}*)
2178       case $ac_var in #(
2179       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2180 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2181       esac
2182       case $ac_var in #(
2183       _ | IFS | as_nl) ;; #(
2184       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2185       *) { eval $ac_var=; unset $ac_var;} ;;
2186       esac ;;
2187     esac
2188   done
2189   (set) 2>&1 |
2190     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2191     *${as_nl}ac_space=\ *)
2192       sed -n \
2193         "s/'\''/'\''\\\\'\'''\''/g;
2194           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2195       ;; #(
2196     *)
2197       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2198       ;;
2199     esac |
2200     sort
2201 )
2202     echo
2203
2204     $as_echo "## ----------------- ##
2205 ## Output variables. ##
2206 ## ----------------- ##"
2207     echo
2208     for ac_var in $ac_subst_vars
2209     do
2210       eval ac_val=\$$ac_var
2211       case $ac_val in
2212       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2213       esac
2214       $as_echo "$ac_var='\''$ac_val'\''"
2215     done | sort
2216     echo
2217
2218     if test -n "$ac_subst_files"; then
2219       $as_echo "## ------------------- ##
2220 ## File substitutions. ##
2221 ## ------------------- ##"
2222       echo
2223       for ac_var in $ac_subst_files
2224       do
2225         eval ac_val=\$$ac_var
2226         case $ac_val in
2227         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2228         esac
2229         $as_echo "$ac_var='\''$ac_val'\''"
2230       done | sort
2231       echo
2232     fi
2233
2234     if test -s confdefs.h; then
2235       $as_echo "## ----------- ##
2236 ## confdefs.h. ##
2237 ## ----------- ##"
2238       echo
2239       cat confdefs.h
2240       echo
2241     fi
2242     test "$ac_signal" != 0 &&
2243       $as_echo "$as_me: caught signal $ac_signal"
2244     $as_echo "$as_me: exit $exit_status"
2245   } >&5
2246   rm -f core *.core core.conftest.* &&
2247     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2248     exit $exit_status
2249 ' 0
2250 for ac_signal in 1 2 13 15; do
2251   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2252 done
2253 ac_signal=0
2254
2255 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2256 rm -f -r conftest* confdefs.h
2257
2258 $as_echo "/* confdefs.h */" > confdefs.h
2259
2260 # Predefined preprocessor variables.
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_NAME "$PACKAGE_NAME"
2264 _ACEOF
2265
2266 cat >>confdefs.h <<_ACEOF
2267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2268 _ACEOF
2269
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2272 _ACEOF
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_STRING "$PACKAGE_STRING"
2276 _ACEOF
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2280 _ACEOF
2281
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_URL "$PACKAGE_URL"
2284 _ACEOF
2285
2286
2287 # Let the site file select an alternate cache file if it wants to.
2288 # Prefer an explicitly selected file to automatically selected ones.
2289 ac_site_file1=NONE
2290 ac_site_file2=NONE
2291 if test -n "$CONFIG_SITE"; then
2292   # We do not want a PATH search for config.site.
2293   case $CONFIG_SITE in #((
2294     -*)  ac_site_file1=./$CONFIG_SITE;;
2295     */*) ac_site_file1=$CONFIG_SITE;;
2296     *)   ac_site_file1=./$CONFIG_SITE;;
2297   esac
2298 elif test "x$prefix" != xNONE; then
2299   ac_site_file1=$prefix/share/config.site
2300   ac_site_file2=$prefix/etc/config.site
2301 else
2302   ac_site_file1=$ac_default_prefix/share/config.site
2303   ac_site_file2=$ac_default_prefix/etc/config.site
2304 fi
2305 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2306 do
2307   test "x$ac_site_file" = xNONE && continue
2308   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2309     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2310 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2311     sed 's/^/| /' "$ac_site_file" >&5
2312     . "$ac_site_file" \
2313       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2315 as_fn_error $? "failed to load site script $ac_site_file
2316 See \`config.log' for more details" "$LINENO" 5; }
2317   fi
2318 done
2319
2320 if test -r "$cache_file"; then
2321   # Some versions of bash will fail to source /dev/null (special files
2322   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2323   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2324     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2325 $as_echo "$as_me: loading cache $cache_file" >&6;}
2326     case $cache_file in
2327       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2328       *)                      . "./$cache_file";;
2329     esac
2330   fi
2331 else
2332   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2333 $as_echo "$as_me: creating cache $cache_file" >&6;}
2334   >$cache_file
2335 fi
2336
2337 # Check that the precious variables saved in the cache have kept the same
2338 # value.
2339 ac_cache_corrupted=false
2340 for ac_var in $ac_precious_vars; do
2341   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2342   eval ac_new_set=\$ac_env_${ac_var}_set
2343   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2344   eval ac_new_val=\$ac_env_${ac_var}_value
2345   case $ac_old_set,$ac_new_set in
2346     set,)
2347       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2348 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2349       ac_cache_corrupted=: ;;
2350     ,set)
2351       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2352 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2353       ac_cache_corrupted=: ;;
2354     ,);;
2355     *)
2356       if test "x$ac_old_val" != "x$ac_new_val"; then
2357         # differences in whitespace do not lead to failure.
2358         ac_old_val_w=`echo x $ac_old_val`
2359         ac_new_val_w=`echo x $ac_new_val`
2360         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2361           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2362 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2363           ac_cache_corrupted=:
2364         else
2365           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2366 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2367           eval $ac_var=\$ac_old_val
2368         fi
2369         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2370 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2371         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2372 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2373       fi;;
2374   esac
2375   # Pass precious variables to config.status.
2376   if test "$ac_new_set" = set; then
2377     case $ac_new_val in
2378     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2379     *) ac_arg=$ac_var=$ac_new_val ;;
2380     esac
2381     case " $ac_configure_args " in
2382       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2383       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2384     esac
2385   fi
2386 done
2387 if $ac_cache_corrupted; then
2388   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2390   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2391 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2392   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2393 fi
2394 ## -------------------- ##
2395 ## Main body of script. ##
2396 ## -------------------- ##
2397
2398 ac_ext=c
2399 ac_cpp='$CPP $CPPFLAGS'
2400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2403
2404
2405 ac_aux_dir=
2406 for ac_dir in config "$srcdir"/config; do
2407   if test -f "$ac_dir/install-sh"; then
2408     ac_aux_dir=$ac_dir
2409     ac_install_sh="$ac_aux_dir/install-sh -c"
2410     break
2411   elif test -f "$ac_dir/install.sh"; then
2412     ac_aux_dir=$ac_dir
2413     ac_install_sh="$ac_aux_dir/install.sh -c"
2414     break
2415   elif test -f "$ac_dir/shtool"; then
2416     ac_aux_dir=$ac_dir
2417     ac_install_sh="$ac_aux_dir/shtool install -c"
2418     break
2419   fi
2420 done
2421 if test -z "$ac_aux_dir"; then
2422   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2423 fi
2424
2425 # These three variables are undocumented and unsupported,
2426 # and are intended to be withdrawn in a future Autoconf release.
2427 # They can cause serious problems if a builder's source tree is in a directory
2428 # whose full name contains unusual characters.
2429 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2430 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2431 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2432
2433
2434
2435 ac_config_files="$ac_config_files rtaudio.pc Makefile tests/Makefile doc/Makefile doc/doxygen/Doxyfile"
2436
2437 am__api_version='1.15'
2438
2439 # Find a good install program.  We prefer a C program (faster),
2440 # so one script is as good as another.  But avoid the broken or
2441 # incompatible versions:
2442 # SysV /etc/install, /usr/sbin/install
2443 # SunOS /usr/etc/install
2444 # IRIX /sbin/install
2445 # AIX /bin/install
2446 # AmigaOS /C/install, which installs bootblocks on floppy discs
2447 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2448 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2449 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2450 # OS/2's system install, which has a completely different semantic
2451 # ./install, which can be erroneously created by make from ./install.sh.
2452 # Reject install programs that cannot install multiple files.
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2454 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2455 if test -z "$INSTALL"; then
2456 if ${ac_cv_path_install+:} false; then :
2457   $as_echo_n "(cached) " >&6
2458 else
2459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
2462   IFS=$as_save_IFS
2463   test -z "$as_dir" && as_dir=.
2464     # Account for people who put trailing slashes in PATH elements.
2465 case $as_dir/ in #((
2466   ./ | .// | /[cC]/* | \
2467   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2468   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2469   /usr/ucb/* ) ;;
2470   *)
2471     # OSF1 and SCO ODT 3.0 have their own names for install.
2472     # Don't use installbsd from OSF since it installs stuff as root
2473     # by default.
2474     for ac_prog in ginstall scoinst install; do
2475       for ac_exec_ext in '' $ac_executable_extensions; do
2476         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2477           if test $ac_prog = install &&
2478             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479             # AIX install.  It has an incompatible calling convention.
2480             :
2481           elif test $ac_prog = install &&
2482             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2483             # program-specific install script used by HP pwplus--don't use.
2484             :
2485           else
2486             rm -rf conftest.one conftest.two conftest.dir
2487             echo one > conftest.one
2488             echo two > conftest.two
2489             mkdir conftest.dir
2490             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2491               test -s conftest.one && test -s conftest.two &&
2492               test -s conftest.dir/conftest.one &&
2493               test -s conftest.dir/conftest.two
2494             then
2495               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2496               break 3
2497             fi
2498           fi
2499         fi
2500       done
2501     done
2502     ;;
2503 esac
2504
2505   done
2506 IFS=$as_save_IFS
2507
2508 rm -rf conftest.one conftest.two conftest.dir
2509
2510 fi
2511   if test "${ac_cv_path_install+set}" = set; then
2512     INSTALL=$ac_cv_path_install
2513   else
2514     # As a last resort, use the slow shell script.  Don't cache a
2515     # value for INSTALL within a source directory, because that will
2516     # break other packages using the cache if that directory is
2517     # removed, or if the value is a relative name.
2518     INSTALL=$ac_install_sh
2519   fi
2520 fi
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2522 $as_echo "$INSTALL" >&6; }
2523
2524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2525 # It thinks the first close brace ends the variable substitution.
2526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2527
2528 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2529
2530 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2531
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2533 $as_echo_n "checking whether build environment is sane... " >&6; }
2534 # Reject unsafe characters in $srcdir or the absolute working directory
2535 # name.  Accept space and tab only in the latter.
2536 am_lf='
2537 '
2538 case `pwd` in
2539   *[\\\"\#\$\&\'\`$am_lf]*)
2540     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2541 esac
2542 case $srcdir in
2543   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2544     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2545 esac
2546
2547 # Do 'set' in a subshell so we don't clobber the current shell's
2548 # arguments.  Must try -L first in case configure is actually a
2549 # symlink; some systems play weird games with the mod time of symlinks
2550 # (eg FreeBSD returns the mod time of the symlink's containing
2551 # directory).
2552 if (
2553    am_has_slept=no
2554    for am_try in 1 2; do
2555      echo "timestamp, slept: $am_has_slept" > conftest.file
2556      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2557      if test "$*" = "X"; then
2558         # -L didn't work.
2559         set X `ls -t "$srcdir/configure" conftest.file`
2560      fi
2561      if test "$*" != "X $srcdir/configure conftest.file" \
2562         && test "$*" != "X conftest.file $srcdir/configure"; then
2563
2564         # If neither matched, then we have a broken ls.  This can happen
2565         # if, for instance, CONFIG_SHELL is bash and it inherits a
2566         # broken ls alias from the environment.  This has actually
2567         # happened.  Such a system could not be considered "sane".
2568         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2569   alias in your environment" "$LINENO" 5
2570      fi
2571      if test "$2" = conftest.file || test $am_try -eq 2; then
2572        break
2573      fi
2574      # Just in case.
2575      sleep 1
2576      am_has_slept=yes
2577    done
2578    test "$2" = conftest.file
2579    )
2580 then
2581    # Ok.
2582    :
2583 else
2584    as_fn_error $? "newly created file is older than distributed files!
2585 Check your system clock" "$LINENO" 5
2586 fi
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2588 $as_echo "yes" >&6; }
2589 # If we didn't sleep, we still need to ensure time stamps of config.status and
2590 # generated files are strictly newer.
2591 am_sleep_pid=
2592 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2593   ( sleep 1 ) &
2594   am_sleep_pid=$!
2595 fi
2596
2597 rm -f conftest.file
2598
2599 test "$program_prefix" != NONE &&
2600   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2601 # Use a double $ so make ignores it.
2602 test "$program_suffix" != NONE &&
2603   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2604 # Double any \ or $.
2605 # By default was `s,x,x', remove it if useless.
2606 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2607 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2608
2609 # Expand $ac_aux_dir to an absolute path.
2610 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2611
2612 if test x"${MISSING+set}" != xset; then
2613   case $am_aux_dir in
2614   *\ * | *\     *)
2615     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2616   *)
2617     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2618   esac
2619 fi
2620 # Use eval to expand $SHELL
2621 if eval "$MISSING --is-lightweight"; then
2622   am_missing_run="$MISSING "
2623 else
2624   am_missing_run=
2625   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2626 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2627 fi
2628
2629 if test x"${install_sh+set}" != xset; then
2630   case $am_aux_dir in
2631   *\ * | *\     *)
2632     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2633   *)
2634     install_sh="\${SHELL} $am_aux_dir/install-sh"
2635   esac
2636 fi
2637
2638 # Installed binaries are usually stripped using 'strip' when the user
2639 # run "make install-strip".  However 'strip' might not be the right
2640 # tool to use in cross-compilation environments, therefore Automake
2641 # will honor the 'STRIP' environment variable to overrule this program.
2642 if test "$cross_compiling" != no; then
2643   if test -n "$ac_tool_prefix"; then
2644   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2645 set dummy ${ac_tool_prefix}strip; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if ${ac_cv_prog_STRIP+:} false; then :
2649   $as_echo_n "(cached) " >&6
2650 else
2651   if test -n "$STRIP"; then
2652   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657   IFS=$as_save_IFS
2658   test -z "$as_dir" && as_dir=.
2659     for ac_exec_ext in '' $ac_executable_extensions; do
2660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663     break 2
2664   fi
2665 done
2666   done
2667 IFS=$as_save_IFS
2668
2669 fi
2670 fi
2671 STRIP=$ac_cv_prog_STRIP
2672 if test -n "$STRIP"; then
2673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2674 $as_echo "$STRIP" >&6; }
2675 else
2676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2678 fi
2679
2680
2681 fi
2682 if test -z "$ac_cv_prog_STRIP"; then
2683   ac_ct_STRIP=$STRIP
2684   # Extract the first word of "strip", so it can be a program name with args.
2685 set dummy strip; ac_word=$2
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2689   $as_echo_n "(cached) " >&6
2690 else
2691   if test -n "$ac_ct_STRIP"; then
2692   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697   IFS=$as_save_IFS
2698   test -z "$as_dir" && as_dir=.
2699     for ac_exec_ext in '' $ac_executable_extensions; do
2700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2701     ac_cv_prog_ac_ct_STRIP="strip"
2702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703     break 2
2704   fi
2705 done
2706   done
2707 IFS=$as_save_IFS
2708
2709 fi
2710 fi
2711 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2712 if test -n "$ac_ct_STRIP"; then
2713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2714 $as_echo "$ac_ct_STRIP" >&6; }
2715 else
2716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 $as_echo "no" >&6; }
2718 fi
2719
2720   if test "x$ac_ct_STRIP" = x; then
2721     STRIP=":"
2722   else
2723     case $cross_compiling:$ac_tool_warned in
2724 yes:)
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2727 ac_tool_warned=yes ;;
2728 esac
2729     STRIP=$ac_ct_STRIP
2730   fi
2731 else
2732   STRIP="$ac_cv_prog_STRIP"
2733 fi
2734
2735 fi
2736 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2737
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2739 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2740 if test -z "$MKDIR_P"; then
2741   if ${ac_cv_path_mkdir+:} false; then :
2742   $as_echo_n "(cached) " >&6
2743 else
2744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2746 do
2747   IFS=$as_save_IFS
2748   test -z "$as_dir" && as_dir=.
2749     for ac_prog in mkdir gmkdir; do
2750          for ac_exec_ext in '' $ac_executable_extensions; do
2751            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2752            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2753              'mkdir (GNU coreutils) '* | \
2754              'mkdir (coreutils) '* | \
2755              'mkdir (fileutils) '4.1*)
2756                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2757                break 3;;
2758            esac
2759          done
2760        done
2761   done
2762 IFS=$as_save_IFS
2763
2764 fi
2765
2766   test -d ./--version && rmdir ./--version
2767   if test "${ac_cv_path_mkdir+set}" = set; then
2768     MKDIR_P="$ac_cv_path_mkdir -p"
2769   else
2770     # As a last resort, use the slow shell script.  Don't cache a
2771     # value for MKDIR_P within a source directory, because that will
2772     # break other packages using the cache if that directory is
2773     # removed, or if the value is a relative name.
2774     MKDIR_P="$ac_install_sh -d"
2775   fi
2776 fi
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2778 $as_echo "$MKDIR_P" >&6; }
2779
2780 for ac_prog in gawk mawk nawk awk
2781 do
2782   # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if ${ac_cv_prog_AWK+:} false; then :
2787   $as_echo_n "(cached) " >&6
2788 else
2789   if test -n "$AWK"; then
2790   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797     for ac_exec_ext in '' $ac_executable_extensions; do
2798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2799     ac_cv_prog_AWK="$ac_prog"
2800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801     break 2
2802   fi
2803 done
2804   done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 AWK=$ac_cv_prog_AWK
2810 if test -n "$AWK"; then
2811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2812 $as_echo "$AWK" >&6; }
2813 else
2814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2816 fi
2817
2818
2819   test -n "$AWK" && break
2820 done
2821
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2823 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2824 set x ${MAKE-make}
2825 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2826 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2827   $as_echo_n "(cached) " >&6
2828 else
2829   cat >conftest.make <<\_ACEOF
2830 SHELL = /bin/sh
2831 all:
2832         @echo '@@@%%%=$(MAKE)=@@@%%%'
2833 _ACEOF
2834 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2835 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2836   *@@@%%%=?*=@@@%%%*)
2837     eval ac_cv_prog_make_${ac_make}_set=yes;;
2838   *)
2839     eval ac_cv_prog_make_${ac_make}_set=no;;
2840 esac
2841 rm -f conftest.make
2842 fi
2843 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2845 $as_echo "yes" >&6; }
2846   SET_MAKE=
2847 else
2848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 $as_echo "no" >&6; }
2850   SET_MAKE="MAKE=${MAKE-make}"
2851 fi
2852
2853 rm -rf .tst 2>/dev/null
2854 mkdir .tst 2>/dev/null
2855 if test -d .tst; then
2856   am__leading_dot=.
2857 else
2858   am__leading_dot=_
2859 fi
2860 rmdir .tst 2>/dev/null
2861
2862 # Check whether --enable-silent-rules was given.
2863 if test "${enable_silent_rules+set}" = set; then :
2864   enableval=$enable_silent_rules;
2865 fi
2866
2867 case $enable_silent_rules in # (((
2868   yes) AM_DEFAULT_VERBOSITY=0;;
2869    no) AM_DEFAULT_VERBOSITY=1;;
2870     *) AM_DEFAULT_VERBOSITY=1;;
2871 esac
2872 am_make=${MAKE-make}
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2874 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2875 if ${am_cv_make_support_nested_variables+:} false; then :
2876   $as_echo_n "(cached) " >&6
2877 else
2878   if $as_echo 'TRUE=$(BAR$(V))
2879 BAR0=false
2880 BAR1=true
2881 V=1
2882 am__doit:
2883         @$(TRUE)
2884 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2885   am_cv_make_support_nested_variables=yes
2886 else
2887   am_cv_make_support_nested_variables=no
2888 fi
2889 fi
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2891 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2892 if test $am_cv_make_support_nested_variables = yes; then
2893     AM_V='$(V)'
2894   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2895 else
2896   AM_V=$AM_DEFAULT_VERBOSITY
2897   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2898 fi
2899 AM_BACKSLASH='\'
2900
2901 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2902   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2903   # is not polluted with repeated "-I."
2904   am__isrc=' -I$(srcdir)'
2905   # test to see if srcdir already configured
2906   if test -f $srcdir/config.status; then
2907     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2908   fi
2909 fi
2910
2911 # test whether we have cygpath
2912 if test -z "$CYGPATH_W"; then
2913   if (cygpath --version) >/dev/null 2>/dev/null; then
2914     CYGPATH_W='cygpath -w'
2915   else
2916     CYGPATH_W=echo
2917   fi
2918 fi
2919
2920
2921 # Define the identity of the package.
2922  PACKAGE='rtaudio'
2923  VERSION='5.0.0'
2924
2925
2926 cat >>confdefs.h <<_ACEOF
2927 #define PACKAGE "$PACKAGE"
2928 _ACEOF
2929
2930
2931 cat >>confdefs.h <<_ACEOF
2932 #define VERSION "$VERSION"
2933 _ACEOF
2934
2935 # Some tools Automake needs.
2936
2937 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2938
2939
2940 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2941
2942
2943 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2944
2945
2946 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2947
2948
2949 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2950
2951 # For better backward compatibility.  To be removed once Automake 1.9.x
2952 # dies out for good.  For more background, see:
2953 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2954 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2955 mkdir_p='$(MKDIR_P)'
2956
2957 # We need awk for the "check" target (and possibly the TAP driver).  The
2958 # system "awk" is bad on some platforms.
2959 # Always define AMTAR for backward compatibility.  Yes, it's still used
2960 # in the wild :-(  We should find a proper way to deprecate it ...
2961 AMTAR='$${TAR-tar}'
2962
2963
2964 # We'll loop over all known methods to create a tar archive until one works.
2965 _am_tools='gnutar  pax cpio none'
2966
2967 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2968
2969
2970
2971
2972
2973
2974 # POSIX will say in a future version that running "rm -f" with no argument
2975 # is OK; and we want to be able to make that assumption in our Makefile
2976 # recipes.  So use an aggressive probe to check that the usage we want is
2977 # actually supported "in the wild" to an acceptable degree.
2978 # See automake bug#10828.
2979 # To make any issue more visible, cause the running configure to be aborted
2980 # by default if the 'rm' program in use doesn't match our expectations; the
2981 # user can still override this though.
2982 if rm -f && rm -fr && rm -rf; then : OK; else
2983   cat >&2 <<'END'
2984 Oops!
2985
2986 Your 'rm' program seems unable to run without file operands specified
2987 on the command line, even when the '-f' option is present.  This is contrary
2988 to the behaviour of most rm programs out there, and not conforming with
2989 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2990
2991 Please tell bug-automake@gnu.org about your system, including the value
2992 of your $PATH and any error possibly output before this message.  This
2993 can help us improve future automake versions.
2994
2995 END
2996   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2997     echo 'Configuration will proceed anyway, since you have set the' >&2
2998     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2999     echo >&2
3000   else
3001     cat >&2 <<'END'
3002 Aborting the configuration process, to ensure you take notice of the issue.
3003
3004 You can download and install GNU coreutils to get an 'rm' implementation
3005 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3006
3007 If you want to complete the configuration process using your problematic
3008 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3009 to "yes", and re-run configure.
3010
3011 END
3012     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3013   fi
3014 fi
3015
3016
3017 # libtool version: current:revision:age
3018 #
3019 # If the library source code has changed at all since the last update, then
3020 # increment revision (`c:r:a' becomes `c:r+1:a').
3021 #
3022 # If any interfaces have been added, removed, or changed since the last update,
3023 # increment current, and set revision to 0.
3024 #
3025 # If any interfaces have been added since the last public release, then
3026 # increment age.
3027 #
3028 # If any interfaces have been removed since the last public release, then set
3029 # age to 0.
3030
3031
3032
3033
3034
3035
3036
3037 SO_VERSION=6:0:0
3038
3039
3040 # Check version number coherency between RtAudio.h and configure.ac
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that version numbers are coherent" >&5
3042 $as_echo_n "checking that version numbers are coherent... " >&6; }
3043 DEPDIR="${am__leading_dot}deps"
3044
3045 ac_config_commands="$ac_config_commands depfiles"
3046
3047
3048 am_make=${MAKE-make}
3049 cat > confinc << 'END'
3050 am__doit:
3051         @echo this is the am__doit target
3052 .PHONY: am__doit
3053 END
3054 # If we don't find an include directive, just comment out the code.
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3056 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3057 am__include="#"
3058 am__quote=
3059 _am_result=none
3060 # First try GNU make style include.
3061 echo "include confinc" > confmf
3062 # Ignore all kinds of additional output from 'make'.
3063 case `$am_make -s -f confmf 2> /dev/null` in #(
3064 *the\ am__doit\ target*)
3065   am__include=include
3066   am__quote=
3067   _am_result=GNU
3068   ;;
3069 esac
3070 # Now try BSD make style include.
3071 if test "$am__include" = "#"; then
3072    echo '.include "confinc"' > confmf
3073    case `$am_make -s -f confmf 2> /dev/null` in #(
3074    *the\ am__doit\ target*)
3075      am__include=.include
3076      am__quote="\""
3077      _am_result=BSD
3078      ;;
3079    esac
3080 fi
3081
3082
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3084 $as_echo "$_am_result" >&6; }
3085 rm -f confinc confmf
3086
3087 # Check whether --enable-dependency-tracking was given.
3088 if test "${enable_dependency_tracking+set}" = set; then :
3089   enableval=$enable_dependency_tracking;
3090 fi
3091
3092 if test "x$enable_dependency_tracking" != xno; then
3093   am_depcomp="$ac_aux_dir/depcomp"
3094   AMDEPBACKSLASH='\'
3095   am__nodep='_no'
3096 fi
3097  if test "x$enable_dependency_tracking" != xno; then
3098   AMDEP_TRUE=
3099   AMDEP_FALSE='#'
3100 else
3101   AMDEP_TRUE='#'
3102   AMDEP_FALSE=
3103 fi
3104
3105
3106 ac_ext=c
3107 ac_cpp='$CPP $CPPFLAGS'
3108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111 if test -n "$ac_tool_prefix"; then
3112   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3113 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if ${ac_cv_prog_CC+:} false; then :
3117   $as_echo_n "(cached) " >&6
3118 else
3119   if test -n "$CC"; then
3120   ac_cv_prog_CC="$CC" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125   IFS=$as_save_IFS
3126   test -z "$as_dir" && as_dir=.
3127     for ac_exec_ext in '' $ac_executable_extensions; do
3128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131     break 2
3132   fi
3133 done
3134   done
3135 IFS=$as_save_IFS
3136
3137 fi
3138 fi
3139 CC=$ac_cv_prog_CC
3140 if test -n "$CC"; then
3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3143 else
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 fi
3147
3148
3149 fi
3150 if test -z "$ac_cv_prog_CC"; then
3151   ac_ct_CC=$CC
3152   # Extract the first word of "gcc", so it can be a program name with args.
3153 set dummy gcc; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3157   $as_echo_n "(cached) " >&6
3158 else
3159   if test -n "$ac_ct_CC"; then
3160   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165   IFS=$as_save_IFS
3166   test -z "$as_dir" && as_dir=.
3167     for ac_exec_ext in '' $ac_executable_extensions; do
3168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169     ac_cv_prog_ac_ct_CC="gcc"
3170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171     break 2
3172   fi
3173 done
3174   done
3175 IFS=$as_save_IFS
3176
3177 fi
3178 fi
3179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3180 if test -n "$ac_ct_CC"; then
3181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3182 $as_echo "$ac_ct_CC" >&6; }
3183 else
3184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3187
3188   if test "x$ac_ct_CC" = x; then
3189     CC=""
3190   else
3191     case $cross_compiling:$ac_tool_warned in
3192 yes:)
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3195 ac_tool_warned=yes ;;
3196 esac
3197     CC=$ac_ct_CC
3198   fi
3199 else
3200   CC="$ac_cv_prog_CC"
3201 fi
3202
3203 if test -z "$CC"; then
3204           if test -n "$ac_tool_prefix"; then
3205     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3206 set dummy ${ac_tool_prefix}cc; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if ${ac_cv_prog_CC+:} false; then :
3210   $as_echo_n "(cached) " >&6
3211 else
3212   if test -n "$CC"; then
3213   ac_cv_prog_CC="$CC" # Let the user override the test.
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3217 do
3218   IFS=$as_save_IFS
3219   test -z "$as_dir" && as_dir=.
3220     for ac_exec_ext in '' $ac_executable_extensions; do
3221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222     ac_cv_prog_CC="${ac_tool_prefix}cc"
3223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224     break 2
3225   fi
3226 done
3227   done
3228 IFS=$as_save_IFS
3229
3230 fi
3231 fi
3232 CC=$ac_cv_prog_CC
3233 if test -n "$CC"; then
3234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3235 $as_echo "$CC" >&6; }
3236 else
3237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3239 fi
3240
3241
3242   fi
3243 fi
3244 if test -z "$CC"; then
3245   # Extract the first word of "cc", so it can be a program name with args.
3246 set dummy cc; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_prog_CC+:} false; then :
3250   $as_echo_n "(cached) " >&6
3251 else
3252   if test -n "$CC"; then
3253   ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255   ac_prog_rejected=no
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259   IFS=$as_save_IFS
3260   test -z "$as_dir" && as_dir=.
3261     for ac_exec_ext in '' $ac_executable_extensions; do
3262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3264        ac_prog_rejected=yes
3265        continue
3266      fi
3267     ac_cv_prog_CC="cc"
3268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3269     break 2
3270   fi
3271 done
3272   done
3273 IFS=$as_save_IFS
3274
3275 if test $ac_prog_rejected = yes; then
3276   # We found a bogon in the path, so make sure we never use it.
3277   set dummy $ac_cv_prog_CC
3278   shift
3279   if test $# != 0; then
3280     # We chose a different compiler from the bogus one.
3281     # However, it has the same basename, so the bogon will be chosen
3282     # first if we set CC to just the basename; use the full file name.
3283     shift
3284     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3285   fi
3286 fi
3287 fi
3288 fi
3289 CC=$ac_cv_prog_CC
3290 if test -n "$CC"; then
3291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3292 $as_echo "$CC" >&6; }
3293 else
3294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 fi
3297
3298
3299 fi
3300 if test -z "$CC"; then
3301   if test -n "$ac_tool_prefix"; then
3302   for ac_prog in cl.exe
3303   do
3304     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_prog_CC+:} false; then :
3309   $as_echo_n "(cached) " >&6
3310 else
3311   if test -n "$CC"; then
3312   ac_cv_prog_CC="$CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317   IFS=$as_save_IFS
3318   test -z "$as_dir" && as_dir=.
3319     for ac_exec_ext in '' $ac_executable_extensions; do
3320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323     break 2
3324   fi
3325 done
3326   done
3327 IFS=$as_save_IFS
3328
3329 fi
3330 fi
3331 CC=$ac_cv_prog_CC
3332 if test -n "$CC"; then
3333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3335 else
3336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 fi
3339
3340
3341     test -n "$CC" && break
3342   done
3343 fi
3344 if test -z "$CC"; then
3345   ac_ct_CC=$CC
3346   for ac_prog in cl.exe
3347 do
3348   # Extract the first word of "$ac_prog", so it can be a program name with args.
3349 set dummy $ac_prog; ac_word=$2
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3353   $as_echo_n "(cached) " >&6
3354 else
3355   if test -n "$ac_ct_CC"; then
3356   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3357 else
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3360 do
3361   IFS=$as_save_IFS
3362   test -z "$as_dir" && as_dir=.
3363     for ac_exec_ext in '' $ac_executable_extensions; do
3364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365     ac_cv_prog_ac_ct_CC="$ac_prog"
3366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367     break 2
3368   fi
3369 done
3370   done
3371 IFS=$as_save_IFS
3372
3373 fi
3374 fi
3375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3376 if test -n "$ac_ct_CC"; then
3377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3378 $as_echo "$ac_ct_CC" >&6; }
3379 else
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 $as_echo "no" >&6; }
3382 fi
3383
3384
3385   test -n "$ac_ct_CC" && break
3386 done
3387
3388   if test "x$ac_ct_CC" = x; then
3389     CC=""
3390   else
3391     case $cross_compiling:$ac_tool_warned in
3392 yes:)
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3395 ac_tool_warned=yes ;;
3396 esac
3397     CC=$ac_ct_CC
3398   fi
3399 fi
3400
3401 fi
3402
3403
3404 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406 as_fn_error $? "no acceptable C compiler found in \$PATH
3407 See \`config.log' for more details" "$LINENO" 5; }
3408
3409 # Provide some information about the compiler.
3410 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3411 set X $ac_compile
3412 ac_compiler=$2
3413 for ac_option in --version -v -V -qversion; do
3414   { { ac_try="$ac_compiler $ac_option >&5"
3415 case "(($ac_try" in
3416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417   *) ac_try_echo=$ac_try;;
3418 esac
3419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 $as_echo "$ac_try_echo"; } >&5
3421   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3422   ac_status=$?
3423   if test -s conftest.err; then
3424     sed '10a\
3425 ... rest of stderr output deleted ...
3426          10q' conftest.err >conftest.er1
3427     cat conftest.er1 >&5
3428   fi
3429   rm -f conftest.er1 conftest.err
3430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431   test $ac_status = 0; }
3432 done
3433
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h.  */
3436
3437 int
3438 main ()
3439 {
3440
3441   ;
3442   return 0;
3443 }
3444 _ACEOF
3445 ac_clean_files_save=$ac_clean_files
3446 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3447 # Try to create an executable without -o first, disregard a.out.
3448 # It will help us diagnose broken compilers, and finding out an intuition
3449 # of exeext.
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3451 $as_echo_n "checking whether the C compiler works... " >&6; }
3452 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3453
3454 # The possible output files:
3455 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3456
3457 ac_rmfiles=
3458 for ac_file in $ac_files
3459 do
3460   case $ac_file in
3461     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3462     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3463   esac
3464 done
3465 rm -f $ac_rmfiles
3466
3467 if { { ac_try="$ac_link_default"
3468 case "(($ac_try" in
3469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470   *) ac_try_echo=$ac_try;;
3471 esac
3472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473 $as_echo "$ac_try_echo"; } >&5
3474   (eval "$ac_link_default") 2>&5
3475   ac_status=$?
3476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477   test $ac_status = 0; }; then :
3478   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3479 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3480 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3481 # so that the user can short-circuit this test for compilers unknown to
3482 # Autoconf.
3483 for ac_file in $ac_files ''
3484 do
3485   test -f "$ac_file" || continue
3486   case $ac_file in
3487     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3488         ;;
3489     [ab].out )
3490         # We found the default executable, but exeext='' is most
3491         # certainly right.
3492         break;;
3493     *.* )
3494         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3495         then :; else
3496            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3497         fi
3498         # We set ac_cv_exeext here because the later test for it is not
3499         # safe: cross compilers may not add the suffix if given an `-o'
3500         # argument, so we may need to know it at that point already.
3501         # Even if this section looks crufty: it has the advantage of
3502         # actually working.
3503         break;;
3504     * )
3505         break;;
3506   esac
3507 done
3508 test "$ac_cv_exeext" = no && ac_cv_exeext=
3509
3510 else
3511   ac_file=''
3512 fi
3513 if test -z "$ac_file"; then :
3514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 $as_echo "no" >&6; }
3516 $as_echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521 as_fn_error 77 "C compiler cannot create executables
3522 See \`config.log' for more details" "$LINENO" 5; }
3523 else
3524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3525 $as_echo "yes" >&6; }
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3528 $as_echo_n "checking for C compiler default output file name... " >&6; }
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3530 $as_echo "$ac_file" >&6; }
3531 ac_exeext=$ac_cv_exeext
3532
3533 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3534 ac_clean_files=$ac_clean_files_save
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3536 $as_echo_n "checking for suffix of executables... " >&6; }
3537 if { { ac_try="$ac_link"
3538 case "(($ac_try" in
3539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540   *) ac_try_echo=$ac_try;;
3541 esac
3542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543 $as_echo "$ac_try_echo"; } >&5
3544   (eval "$ac_link") 2>&5
3545   ac_status=$?
3546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547   test $ac_status = 0; }; then :
3548   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3549 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3550 # work properly (i.e., refer to `conftest.exe'), while it won't with
3551 # `rm'.
3552 for ac_file in conftest.exe conftest conftest.*; do
3553   test -f "$ac_file" || continue
3554   case $ac_file in
3555     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3556     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3557           break;;
3558     * ) break;;
3559   esac
3560 done
3561 else
3562   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3565 See \`config.log' for more details" "$LINENO" 5; }
3566 fi
3567 rm -f conftest conftest$ac_cv_exeext
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3569 $as_echo "$ac_cv_exeext" >&6; }
3570
3571 rm -f conftest.$ac_ext
3572 EXEEXT=$ac_cv_exeext
3573 ac_exeext=$EXEEXT
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h.  */
3576 #include <stdio.h>
3577 int
3578 main ()
3579 {
3580 FILE *f = fopen ("conftest.out", "w");
3581  return ferror (f) || fclose (f) != 0;
3582
3583   ;
3584   return 0;
3585 }
3586 _ACEOF
3587 ac_clean_files="$ac_clean_files conftest.out"
3588 # Check that the compiler produces executables we can run.  If not, either
3589 # the compiler is broken, or we cross compile.
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3591 $as_echo_n "checking whether we are cross compiling... " >&6; }
3592 if test "$cross_compiling" != yes; then
3593   { { ac_try="$ac_link"
3594 case "(($ac_try" in
3595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596   *) ac_try_echo=$ac_try;;
3597 esac
3598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
3600   (eval "$ac_link") 2>&5
3601   ac_status=$?
3602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603   test $ac_status = 0; }
3604   if { ac_try='./conftest$ac_cv_exeext'
3605   { { case "(($ac_try" in
3606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607   *) ac_try_echo=$ac_try;;
3608 esac
3609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610 $as_echo "$ac_try_echo"; } >&5
3611   (eval "$ac_try") 2>&5
3612   ac_status=$?
3613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614   test $ac_status = 0; }; }; then
3615     cross_compiling=no
3616   else
3617     if test "$cross_compiling" = maybe; then
3618         cross_compiling=yes
3619     else
3620         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 as_fn_error $? "cannot run C compiled programs.
3623 If you meant to cross compile, use \`--host'.
3624 See \`config.log' for more details" "$LINENO" 5; }
3625     fi
3626   fi
3627 fi
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3629 $as_echo "$cross_compiling" >&6; }
3630
3631 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3632 ac_clean_files=$ac_clean_files_save
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3634 $as_echo_n "checking for suffix of object files... " >&6; }
3635 if ${ac_cv_objext+:} false; then :
3636   $as_echo_n "(cached) " >&6
3637 else
3638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h.  */
3640
3641 int
3642 main ()
3643 {
3644
3645   ;
3646   return 0;
3647 }
3648 _ACEOF
3649 rm -f conftest.o conftest.obj
3650 if { { ac_try="$ac_compile"
3651 case "(($ac_try" in
3652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653   *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657   (eval "$ac_compile") 2>&5
3658   ac_status=$?
3659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660   test $ac_status = 0; }; then :
3661   for ac_file in conftest.o conftest.obj conftest.*; do
3662   test -f "$ac_file" || continue;
3663   case $ac_file in
3664     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3665     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3666        break;;
3667   esac
3668 done
3669 else
3670   $as_echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3672
3673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675 as_fn_error $? "cannot compute suffix of object files: cannot compile
3676 See \`config.log' for more details" "$LINENO" 5; }
3677 fi
3678 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3679 fi
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3681 $as_echo "$ac_cv_objext" >&6; }
3682 OBJEXT=$ac_cv_objext
3683 ac_objext=$OBJEXT
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3685 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3686 if ${ac_cv_c_compiler_gnu+:} false; then :
3687   $as_echo_n "(cached) " >&6
3688 else
3689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h.  */
3691
3692 int
3693 main ()
3694 {
3695 #ifndef __GNUC__
3696        choke me
3697 #endif
3698
3699   ;
3700   return 0;
3701 }
3702 _ACEOF
3703 if ac_fn_c_try_compile "$LINENO"; then :
3704   ac_compiler_gnu=yes
3705 else
3706   ac_compiler_gnu=no
3707 fi
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3710
3711 fi
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3713 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3714 if test $ac_compiler_gnu = yes; then
3715   GCC=yes
3716 else
3717   GCC=
3718 fi
3719 ac_test_CFLAGS=${CFLAGS+set}
3720 ac_save_CFLAGS=$CFLAGS
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3722 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3723 if ${ac_cv_prog_cc_g+:} false; then :
3724   $as_echo_n "(cached) " >&6
3725 else
3726   ac_save_c_werror_flag=$ac_c_werror_flag
3727    ac_c_werror_flag=yes
3728    ac_cv_prog_cc_g=no
3729    CFLAGS="-g"
3730    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h.  */
3732
3733 int
3734 main ()
3735 {
3736
3737   ;
3738   return 0;
3739 }
3740 _ACEOF
3741 if ac_fn_c_try_compile "$LINENO"; then :
3742   ac_cv_prog_cc_g=yes
3743 else
3744   CFLAGS=""
3745       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h.  */
3747
3748 int
3749 main ()
3750 {
3751
3752   ;
3753   return 0;
3754 }
3755 _ACEOF
3756 if ac_fn_c_try_compile "$LINENO"; then :
3757
3758 else
3759   ac_c_werror_flag=$ac_save_c_werror_flag
3760          CFLAGS="-g"
3761          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h.  */
3763
3764 int
3765 main ()
3766 {
3767
3768   ;
3769   return 0;
3770 }
3771 _ACEOF
3772 if ac_fn_c_try_compile "$LINENO"; then :
3773   ac_cv_prog_cc_g=yes
3774 fi
3775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776 fi
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 fi
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780    ac_c_werror_flag=$ac_save_c_werror_flag
3781 fi
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3783 $as_echo "$ac_cv_prog_cc_g" >&6; }
3784 if test "$ac_test_CFLAGS" = set; then
3785   CFLAGS=$ac_save_CFLAGS
3786 elif test $ac_cv_prog_cc_g = yes; then
3787   if test "$GCC" = yes; then
3788     CFLAGS="-g -O2"
3789   else
3790     CFLAGS="-g"
3791   fi
3792 else
3793   if test "$GCC" = yes; then
3794     CFLAGS="-O2"
3795   else
3796     CFLAGS=
3797   fi
3798 fi
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3800 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3801 if ${ac_cv_prog_cc_c89+:} false; then :
3802   $as_echo_n "(cached) " >&6
3803 else
3804   ac_cv_prog_cc_c89=no
3805 ac_save_CC=$CC
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h.  */
3808 #include <stdarg.h>
3809 #include <stdio.h>
3810 struct stat;
3811 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3812 struct buf { int x; };
3813 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3814 static char *e (p, i)
3815      char **p;
3816      int i;
3817 {
3818   return p[i];
3819 }
3820 static char *f (char * (*g) (char **, int), char **p, ...)
3821 {
3822   char *s;
3823   va_list v;
3824   va_start (v,p);
3825   s = g (p, va_arg (v,int));
3826   va_end (v);
3827   return s;
3828 }
3829
3830 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3831    function prototypes and stuff, but not '\xHH' hex character constants.
3832    These don't provoke an error unfortunately, instead are silently treated
3833    as 'x'.  The following induces an error, until -std is added to get
3834    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3835    array size at least.  It's necessary to write '\x00'==0 to get something
3836    that's true only with -std.  */
3837 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3838
3839 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3840    inside strings and character constants.  */
3841 #define FOO(x) 'x'
3842 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3843
3844 int test (int i, double x);
3845 struct s1 {int (*f) (int a);};
3846 struct s2 {int (*f) (double a);};
3847 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3848 int argc;
3849 char **argv;
3850 int
3851 main ()
3852 {
3853 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3854   ;
3855   return 0;
3856 }
3857 _ACEOF
3858 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3859         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3860 do
3861   CC="$ac_save_CC $ac_arg"
3862   if ac_fn_c_try_compile "$LINENO"; then :
3863   ac_cv_prog_cc_c89=$ac_arg
3864 fi
3865 rm -f core conftest.err conftest.$ac_objext
3866   test "x$ac_cv_prog_cc_c89" != "xno" && break
3867 done
3868 rm -f conftest.$ac_ext
3869 CC=$ac_save_CC
3870
3871 fi
3872 # AC_CACHE_VAL
3873 case "x$ac_cv_prog_cc_c89" in
3874   x)
3875     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3876 $as_echo "none needed" >&6; } ;;
3877   xno)
3878     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3879 $as_echo "unsupported" >&6; } ;;
3880   *)
3881     CC="$CC $ac_cv_prog_cc_c89"
3882     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3883 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3884 esac
3885 if test "x$ac_cv_prog_cc_c89" != xno; then :
3886
3887 fi
3888
3889 ac_ext=c
3890 ac_cpp='$CPP $CPPFLAGS'
3891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
3895 ac_ext=c
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3901 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3902 if ${am_cv_prog_cc_c_o+:} false; then :
3903   $as_echo_n "(cached) " >&6
3904 else
3905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h.  */
3907
3908 int
3909 main ()
3910 {
3911
3912   ;
3913   return 0;
3914 }
3915 _ACEOF
3916   # Make sure it works both with $CC and with simple cc.
3917   # Following AC_PROG_CC_C_O, we do the test twice because some
3918   # compilers refuse to overwrite an existing .o file with -o,
3919   # though they will create one.
3920   am_cv_prog_cc_c_o=yes
3921   for am_i in 1 2; do
3922     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3923    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3924    ac_status=$?
3925    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926    (exit $ac_status); } \
3927          && test -f conftest2.$ac_objext; then
3928       : OK
3929     else
3930       am_cv_prog_cc_c_o=no
3931       break
3932     fi
3933   done
3934   rm -f core conftest*
3935   unset am_i
3936 fi
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3938 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3939 if test "$am_cv_prog_cc_c_o" != yes; then
3940    # Losing compiler, so override with the script.
3941    # FIXME: It is wrong to rewrite CC.
3942    # But if we don't then we get into trouble of one sort or another.
3943    # A longer-term fix would be to have automake use am__CC in this case,
3944    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3945    CC="$am_aux_dir/compile $CC"
3946 fi
3947 ac_ext=c
3948 ac_cpp='$CPP $CPPFLAGS'
3949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952
3953
3954 depcc="$CC"   am_compiler_list=
3955
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3957 $as_echo_n "checking dependency style of $depcc... " >&6; }
3958 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3959   $as_echo_n "(cached) " >&6
3960 else
3961   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3962   # We make a subdir and do the tests there.  Otherwise we can end up
3963   # making bogus files that we don't know about and never remove.  For
3964   # instance it was reported that on HP-UX the gcc test will end up
3965   # making a dummy file named 'D' -- because '-MD' means "put the output
3966   # in D".
3967   rm -rf conftest.dir
3968   mkdir conftest.dir
3969   # Copy depcomp to subdir because otherwise we won't find it if we're
3970   # using a relative directory.
3971   cp "$am_depcomp" conftest.dir
3972   cd conftest.dir
3973   # We will build objects and dependencies in a subdirectory because
3974   # it helps to detect inapplicable dependency modes.  For instance
3975   # both Tru64's cc and ICC support -MD to output dependencies as a
3976   # side effect of compilation, but ICC will put the dependencies in
3977   # the current directory while Tru64 will put them in the object
3978   # directory.
3979   mkdir sub
3980
3981   am_cv_CC_dependencies_compiler_type=none
3982   if test "$am_compiler_list" = ""; then
3983      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3984   fi
3985   am__universal=false
3986   case " $depcc " in #(
3987      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3988      esac
3989
3990   for depmode in $am_compiler_list; do
3991     # Setup a source with many dependencies, because some compilers
3992     # like to wrap large dependency lists on column 80 (with \), and
3993     # we should not choose a depcomp mode which is confused by this.
3994     #
3995     # We need to recreate these files for each test, as the compiler may
3996     # overwrite some of them when testing with obscure command lines.
3997     # This happens at least with the AIX C compiler.
3998     : > sub/conftest.c
3999     for i in 1 2 3 4 5 6; do
4000       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4001       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4002       # Solaris 10 /bin/sh.
4003       echo '/* dummy */' > sub/conftst$i.h
4004     done
4005     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4006
4007     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4008     # mode.  It turns out that the SunPro C++ compiler does not properly
4009     # handle '-M -o', and we need to detect this.  Also, some Intel
4010     # versions had trouble with output in subdirs.
4011     am__obj=sub/conftest.${OBJEXT-o}
4012     am__minus_obj="-o $am__obj"
4013     case $depmode in
4014     gcc)
4015       # This depmode causes a compiler race in universal mode.
4016       test "$am__universal" = false || continue
4017       ;;
4018     nosideeffect)
4019       # After this tag, mechanisms are not by side-effect, so they'll
4020       # only be used when explicitly requested.
4021       if test "x$enable_dependency_tracking" = xyes; then
4022         continue
4023       else
4024         break
4025       fi
4026       ;;
4027     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4028       # This compiler won't grok '-c -o', but also, the minuso test has
4029       # not run yet.  These depmodes are late enough in the game, and
4030       # so weak that their functioning should not be impacted.
4031       am__obj=conftest.${OBJEXT-o}
4032       am__minus_obj=
4033       ;;
4034     none) break ;;
4035     esac
4036     if depmode=$depmode \
4037        source=sub/conftest.c object=$am__obj \
4038        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4039        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4040          >/dev/null 2>conftest.err &&
4041        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4042        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4043        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4044        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4045       # icc doesn't choke on unknown options, it will just issue warnings
4046       # or remarks (even with -Werror).  So we grep stderr for any message
4047       # that says an option was ignored or not supported.
4048       # When given -MP, icc 7.0 and 7.1 complain thusly:
4049       #   icc: Command line warning: ignoring option '-M'; no argument required
4050       # The diagnosis changed in icc 8.0:
4051       #   icc: Command line remark: option '-MP' not supported
4052       if (grep 'ignoring option' conftest.err ||
4053           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4054         am_cv_CC_dependencies_compiler_type=$depmode
4055         break
4056       fi
4057     fi
4058   done
4059
4060   cd ..
4061   rm -rf conftest.dir
4062 else
4063   am_cv_CC_dependencies_compiler_type=none
4064 fi
4065
4066 fi
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4068 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4069 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4070
4071  if
4072   test "x$enable_dependency_tracking" != xno \
4073   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4074   am__fastdepCC_TRUE=
4075   am__fastdepCC_FALSE='#'
4076 else
4077   am__fastdepCC_TRUE='#'
4078   am__fastdepCC_FALSE=
4079 fi
4080
4081
4082
4083 # Enable some nice automake features if they are available
4084
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4086 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4087     # Check whether --enable-maintainer-mode was given.
4088 if test "${enable_maintainer_mode+set}" = set; then :
4089   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4090 else
4091   USE_MAINTAINER_MODE=no
4092 fi
4093
4094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4095 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4096    if test $USE_MAINTAINER_MODE = yes; then
4097   MAINTAINER_MODE_TRUE=
4098   MAINTAINER_MODE_FALSE='#'
4099 else
4100   MAINTAINER_MODE_TRUE='#'
4101   MAINTAINER_MODE_FALSE=
4102 fi
4103
4104   MAINT=$MAINTAINER_MODE_TRUE
4105
4106
4107 # Check whether --enable-silent-rules was given.
4108 if test "${enable_silent_rules+set}" = set; then :
4109   enableval=$enable_silent_rules;
4110 fi
4111
4112 case $enable_silent_rules in # (((
4113   yes) AM_DEFAULT_VERBOSITY=0;;
4114    no) AM_DEFAULT_VERBOSITY=1;;
4115     *) AM_DEFAULT_VERBOSITY=0;;
4116 esac
4117 am_make=${MAKE-make}
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4119 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4120 if ${am_cv_make_support_nested_variables+:} false; then :
4121   $as_echo_n "(cached) " >&6
4122 else
4123   if $as_echo 'TRUE=$(BAR$(V))
4124 BAR0=false
4125 BAR1=true
4126 V=1
4127 am__doit:
4128         @$(TRUE)
4129 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4130   am_cv_make_support_nested_variables=yes
4131 else
4132   am_cv_make_support_nested_variables=no
4133 fi
4134 fi
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4136 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4137 if test $am_cv_make_support_nested_variables = yes; then
4138     AM_V='$(V)'
4139   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4140 else
4141   AM_V=$AM_DEFAULT_VERBOSITY
4142   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4143 fi
4144 AM_BACKSLASH='\'
4145
4146
4147 # Fill GXX with something before test.
4148 GXX="no"
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4161         if test -n "$ac_tool_prefix"; then
4162   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4163 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 $as_echo_n "checking for $ac_word... " >&6; }
4166 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4167   $as_echo_n "(cached) " >&6
4168 else
4169   case $PKG_CONFIG in
4170   [\\/]* | ?:[\\/]*)
4171   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4172   ;;
4173   *)
4174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4176 do
4177   IFS=$as_save_IFS
4178   test -z "$as_dir" && as_dir=.
4179     for ac_exec_ext in '' $ac_executable_extensions; do
4180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183     break 2
4184   fi
4185 done
4186   done
4187 IFS=$as_save_IFS
4188
4189   ;;
4190 esac
4191 fi
4192 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4193 if test -n "$PKG_CONFIG"; then
4194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4195 $as_echo "$PKG_CONFIG" >&6; }
4196 else
4197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4199 fi
4200
4201
4202 fi
4203 if test -z "$ac_cv_path_PKG_CONFIG"; then
4204   ac_pt_PKG_CONFIG=$PKG_CONFIG
4205   # Extract the first word of "pkg-config", so it can be a program name with args.
4206 set dummy pkg-config; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4210   $as_echo_n "(cached) " >&6
4211 else
4212   case $ac_pt_PKG_CONFIG in
4213   [\\/]* | ?:[\\/]*)
4214   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4215   ;;
4216   *)
4217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4219 do
4220   IFS=$as_save_IFS
4221   test -z "$as_dir" && as_dir=.
4222     for ac_exec_ext in '' $ac_executable_extensions; do
4223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4224     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226     break 2
4227   fi
4228 done
4229   done
4230 IFS=$as_save_IFS
4231
4232   ;;
4233 esac
4234 fi
4235 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4236 if test -n "$ac_pt_PKG_CONFIG"; then
4237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4238 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4239 else
4240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241 $as_echo "no" >&6; }
4242 fi
4243
4244   if test "x$ac_pt_PKG_CONFIG" = x; then
4245     PKG_CONFIG=""
4246   else
4247     case $cross_compiling:$ac_tool_warned in
4248 yes:)
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4251 ac_tool_warned=yes ;;
4252 esac
4253     PKG_CONFIG=$ac_pt_PKG_CONFIG
4254   fi
4255 else
4256   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4257 fi
4258
4259 fi
4260 if test -n "$PKG_CONFIG"; then
4261         _pkg_min_version=0.9.0
4262         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4263 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4264         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4265                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4266 $as_echo "yes" >&6; }
4267         else
4268                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269 $as_echo "no" >&6; }
4270                 PKG_CONFIG=""
4271         fi
4272 fi
4273
4274
4275
4276 # Check for debug
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile debug version" >&5
4278 $as_echo_n "checking whether to compile debug version... " >&6; }
4279 # Check whether --enable-debug was given.
4280 if test "${enable_debug+set}" = set; then :
4281   enableval=$enable_debug; : ${CXXFLAGS="-g -O0"}; $as_echo "#define __RTAUDIO_DEBUG__ 1" >>confdefs.h
4282
4283 else
4284   : ${CXXFLAGS="-O3"}
4285 fi
4286
4287
4288 # Checks for programs.
4289 ac_ext=cpp
4290 ac_cpp='$CXXCPP $CPPFLAGS'
4291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4294 if test -z "$CXX"; then
4295   if test -n "$CCC"; then
4296     CXX=$CCC
4297   else
4298     if test -n "$ac_tool_prefix"; then
4299   for ac_prog in g++ CC c++ cxx
4300   do
4301     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 $as_echo_n "checking for $ac_word... " >&6; }
4305 if ${ac_cv_prog_CXX+:} false; then :
4306   $as_echo_n "(cached) " >&6
4307 else
4308   if test -n "$CXX"; then
4309   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4313 do
4314   IFS=$as_save_IFS
4315   test -z "$as_dir" && as_dir=.
4316     for ac_exec_ext in '' $ac_executable_extensions; do
4317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4318     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320     break 2
4321   fi
4322 done
4323   done
4324 IFS=$as_save_IFS
4325
4326 fi
4327 fi
4328 CXX=$ac_cv_prog_CXX
4329 if test -n "$CXX"; then
4330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4331 $as_echo "$CXX" >&6; }
4332 else
4333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4335 fi
4336
4337
4338     test -n "$CXX" && break
4339   done
4340 fi
4341 if test -z "$CXX"; then
4342   ac_ct_CXX=$CXX
4343   for ac_prog in g++ CC c++ cxx
4344 do
4345   # Extract the first word of "$ac_prog", so it can be a program name with args.
4346 set dummy $ac_prog; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4350   $as_echo_n "(cached) " >&6
4351 else
4352   if test -n "$ac_ct_CXX"; then
4353   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358   IFS=$as_save_IFS
4359   test -z "$as_dir" && as_dir=.
4360     for ac_exec_ext in '' $ac_executable_extensions; do
4361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4362     ac_cv_prog_ac_ct_CXX="$ac_prog"
4363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364     break 2
4365   fi
4366 done
4367   done
4368 IFS=$as_save_IFS
4369
4370 fi
4371 fi
4372 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4373 if test -n "$ac_ct_CXX"; then
4374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4375 $as_echo "$ac_ct_CXX" >&6; }
4376 else
4377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4379 fi
4380
4381
4382   test -n "$ac_ct_CXX" && break
4383 done
4384
4385   if test "x$ac_ct_CXX" = x; then
4386     CXX="g++"
4387   else
4388     case $cross_compiling:$ac_tool_warned in
4389 yes:)
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4392 ac_tool_warned=yes ;;
4393 esac
4394     CXX=$ac_ct_CXX
4395   fi
4396 fi
4397
4398   fi
4399 fi
4400 # Provide some information about the compiler.
4401 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4402 set X $ac_compile
4403 ac_compiler=$2
4404 for ac_option in --version -v -V -qversion; do
4405   { { ac_try="$ac_compiler $ac_option >&5"
4406 case "(($ac_try" in
4407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408   *) ac_try_echo=$ac_try;;
4409 esac
4410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4411 $as_echo "$ac_try_echo"; } >&5
4412   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4413   ac_status=$?
4414   if test -s conftest.err; then
4415     sed '10a\
4416 ... rest of stderr output deleted ...
4417          10q' conftest.err >conftest.er1
4418     cat conftest.er1 >&5
4419   fi
4420   rm -f conftest.er1 conftest.err
4421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422   test $ac_status = 0; }
4423 done
4424
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4426 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4427 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4428   $as_echo_n "(cached) " >&6
4429 else
4430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h.  */
4432
4433 int
4434 main ()
4435 {
4436 #ifndef __GNUC__
4437        choke me
4438 #endif
4439
4440   ;
4441   return 0;
4442 }
4443 _ACEOF
4444 if ac_fn_cxx_try_compile "$LINENO"; then :
4445   ac_compiler_gnu=yes
4446 else
4447   ac_compiler_gnu=no
4448 fi
4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4451
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4454 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4455 if test $ac_compiler_gnu = yes; then
4456   GXX=yes
4457 else
4458   GXX=
4459 fi
4460 ac_test_CXXFLAGS=${CXXFLAGS+set}
4461 ac_save_CXXFLAGS=$CXXFLAGS
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4463 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4464 if ${ac_cv_prog_cxx_g+:} false; then :
4465   $as_echo_n "(cached) " >&6
4466 else
4467   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4468    ac_cxx_werror_flag=yes
4469    ac_cv_prog_cxx_g=no
4470    CXXFLAGS="-g"
4471    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h.  */
4473
4474 int
4475 main ()
4476 {
4477
4478   ;
4479   return 0;
4480 }
4481 _ACEOF
4482 if ac_fn_cxx_try_compile "$LINENO"; then :
4483   ac_cv_prog_cxx_g=yes
4484 else
4485   CXXFLAGS=""
4486       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h.  */
4488
4489 int
4490 main ()
4491 {
4492
4493   ;
4494   return 0;
4495 }
4496 _ACEOF
4497 if ac_fn_cxx_try_compile "$LINENO"; then :
4498
4499 else
4500   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4501          CXXFLAGS="-g"
4502          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h.  */
4504
4505 int
4506 main ()
4507 {
4508
4509   ;
4510   return 0;
4511 }
4512 _ACEOF
4513 if ac_fn_cxx_try_compile "$LINENO"; then :
4514   ac_cv_prog_cxx_g=yes
4515 fi
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 fi
4518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4519 fi
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4522 fi
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4524 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4525 if test "$ac_test_CXXFLAGS" = set; then
4526   CXXFLAGS=$ac_save_CXXFLAGS
4527 elif test $ac_cv_prog_cxx_g = yes; then
4528   if test "$GXX" = yes; then
4529     CXXFLAGS="-g -O2"
4530   else
4531     CXXFLAGS="-g"
4532   fi
4533 else
4534   if test "$GXX" = yes; then
4535     CXXFLAGS="-O2"
4536   else
4537     CXXFLAGS=
4538   fi
4539 fi
4540 ac_ext=c
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545
4546 depcc="$CXX"  am_compiler_list=
4547
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4549 $as_echo_n "checking dependency style of $depcc... " >&6; }
4550 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4551   $as_echo_n "(cached) " >&6
4552 else
4553   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4554   # We make a subdir and do the tests there.  Otherwise we can end up
4555   # making bogus files that we don't know about and never remove.  For
4556   # instance it was reported that on HP-UX the gcc test will end up
4557   # making a dummy file named 'D' -- because '-MD' means "put the output
4558   # in D".
4559   rm -rf conftest.dir
4560   mkdir conftest.dir
4561   # Copy depcomp to subdir because otherwise we won't find it if we're
4562   # using a relative directory.
4563   cp "$am_depcomp" conftest.dir
4564   cd conftest.dir
4565   # We will build objects and dependencies in a subdirectory because
4566   # it helps to detect inapplicable dependency modes.  For instance
4567   # both Tru64's cc and ICC support -MD to output dependencies as a
4568   # side effect of compilation, but ICC will put the dependencies in
4569   # the current directory while Tru64 will put them in the object
4570   # directory.
4571   mkdir sub
4572
4573   am_cv_CXX_dependencies_compiler_type=none
4574   if test "$am_compiler_list" = ""; then
4575      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4576   fi
4577   am__universal=false
4578   case " $depcc " in #(
4579      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4580      esac
4581
4582   for depmode in $am_compiler_list; do
4583     # Setup a source with many dependencies, because some compilers
4584     # like to wrap large dependency lists on column 80 (with \), and
4585     # we should not choose a depcomp mode which is confused by this.
4586     #
4587     # We need to recreate these files for each test, as the compiler may
4588     # overwrite some of them when testing with obscure command lines.
4589     # This happens at least with the AIX C compiler.
4590     : > sub/conftest.c
4591     for i in 1 2 3 4 5 6; do
4592       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4593       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4594       # Solaris 10 /bin/sh.
4595       echo '/* dummy */' > sub/conftst$i.h
4596     done
4597     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4598
4599     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4600     # mode.  It turns out that the SunPro C++ compiler does not properly
4601     # handle '-M -o', and we need to detect this.  Also, some Intel
4602     # versions had trouble with output in subdirs.
4603     am__obj=sub/conftest.${OBJEXT-o}
4604     am__minus_obj="-o $am__obj"
4605     case $depmode in
4606     gcc)
4607       # This depmode causes a compiler race in universal mode.
4608       test "$am__universal" = false || continue
4609       ;;
4610     nosideeffect)
4611       # After this tag, mechanisms are not by side-effect, so they'll
4612       # only be used when explicitly requested.
4613       if test "x$enable_dependency_tracking" = xyes; then
4614         continue
4615       else
4616         break
4617       fi
4618       ;;
4619     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4620       # This compiler won't grok '-c -o', but also, the minuso test has
4621       # not run yet.  These depmodes are late enough in the game, and
4622       # so weak that their functioning should not be impacted.
4623       am__obj=conftest.${OBJEXT-o}
4624       am__minus_obj=
4625       ;;
4626     none) break ;;
4627     esac
4628     if depmode=$depmode \
4629        source=sub/conftest.c object=$am__obj \
4630        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4631        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4632          >/dev/null 2>conftest.err &&
4633        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4634        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4635        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4636        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4637       # icc doesn't choke on unknown options, it will just issue warnings
4638       # or remarks (even with -Werror).  So we grep stderr for any message
4639       # that says an option was ignored or not supported.
4640       # When given -MP, icc 7.0 and 7.1 complain thusly:
4641       #   icc: Command line warning: ignoring option '-M'; no argument required
4642       # The diagnosis changed in icc 8.0:
4643       #   icc: Command line remark: option '-MP' not supported
4644       if (grep 'ignoring option' conftest.err ||
4645           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4646         am_cv_CXX_dependencies_compiler_type=$depmode
4647         break
4648       fi
4649     fi
4650   done
4651
4652   cd ..
4653   rm -rf conftest.dir
4654 else
4655   am_cv_CXX_dependencies_compiler_type=none
4656 fi
4657
4658 fi
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4660 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4661 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4662
4663  if
4664   test "x$enable_dependency_tracking" != xno \
4665   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4666   am__fastdepCXX_TRUE=
4667   am__fastdepCXX_FALSE='#'
4668 else
4669   am__fastdepCXX_TRUE='#'
4670   am__fastdepCXX_FALSE=
4671 fi
4672
4673
4674 if test -n "$ac_tool_prefix"; then
4675   for ac_prog in ar lib "link -lib"
4676   do
4677     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4678 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if ${ac_cv_prog_AR+:} false; then :
4682   $as_echo_n "(cached) " >&6
4683 else
4684   if test -n "$AR"; then
4685   ac_cv_prog_AR="$AR" # Let the user override the test.
4686 else
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690   IFS=$as_save_IFS
4691   test -z "$as_dir" && as_dir=.
4692     for ac_exec_ext in '' $ac_executable_extensions; do
4693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4694     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4696     break 2
4697   fi
4698 done
4699   done
4700 IFS=$as_save_IFS
4701
4702 fi
4703 fi
4704 AR=$ac_cv_prog_AR
4705 if test -n "$AR"; then
4706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4707 $as_echo "$AR" >&6; }
4708 else
4709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4711 fi
4712
4713
4714     test -n "$AR" && break
4715   done
4716 fi
4717 if test -z "$AR"; then
4718   ac_ct_AR=$AR
4719   for ac_prog in ar lib "link -lib"
4720 do
4721   # Extract the first word of "$ac_prog", so it can be a program name with args.
4722 set dummy $ac_prog; ac_word=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4726   $as_echo_n "(cached) " >&6
4727 else
4728   if test -n "$ac_ct_AR"; then
4729   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734   IFS=$as_save_IFS
4735   test -z "$as_dir" && as_dir=.
4736     for ac_exec_ext in '' $ac_executable_extensions; do
4737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738     ac_cv_prog_ac_ct_AR="$ac_prog"
4739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740     break 2
4741   fi
4742 done
4743   done
4744 IFS=$as_save_IFS
4745
4746 fi
4747 fi
4748 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4749 if test -n "$ac_ct_AR"; then
4750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4751 $as_echo "$ac_ct_AR" >&6; }
4752 else
4753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4755 fi
4756
4757
4758   test -n "$ac_ct_AR" && break
4759 done
4760
4761   if test "x$ac_ct_AR" = x; then
4762     AR="false"
4763   else
4764     case $cross_compiling:$ac_tool_warned in
4765 yes:)
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4768 ac_tool_warned=yes ;;
4769 esac
4770     AR=$ac_ct_AR
4771   fi
4772 fi
4773
4774 : ${AR=ar}
4775
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4777 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4778 if ${am_cv_ar_interface+:} false; then :
4779   $as_echo_n "(cached) " >&6
4780 else
4781   ac_ext=c
4782 ac_cpp='$CPP $CPPFLAGS'
4783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4786
4787    am_cv_ar_interface=ar
4788    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h.  */
4790 int some_variable = 0;
4791 _ACEOF
4792 if ac_fn_c_try_compile "$LINENO"; then :
4793   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4794       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4795   (eval $am_ar_try) 2>&5
4796   ac_status=$?
4797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4798   test $ac_status = 0; }
4799       if test "$ac_status" -eq 0; then
4800         am_cv_ar_interface=ar
4801       else
4802         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4803         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4804   (eval $am_ar_try) 2>&5
4805   ac_status=$?
4806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4807   test $ac_status = 0; }
4808         if test "$ac_status" -eq 0; then
4809           am_cv_ar_interface=lib
4810         else
4811           am_cv_ar_interface=unknown
4812         fi
4813       fi
4814       rm -f conftest.lib libconftest.a
4815
4816 fi
4817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818    ac_ext=c
4819 ac_cpp='$CPP $CPPFLAGS'
4820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4823
4824 fi
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4826 $as_echo "$am_cv_ar_interface" >&6; }
4827
4828 case $am_cv_ar_interface in
4829 ar)
4830   ;;
4831 lib)
4832   # Microsoft lib, so override with the ar-lib wrapper script.
4833   # FIXME: It is wrong to rewrite AR.
4834   # But if we don't then we get into trouble of one sort or another.
4835   # A longer-term fix would be to have automake use am__AR in this case,
4836   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4837   # similar.
4838   AR="$am_aux_dir/ar-lib $AR"
4839   ;;
4840 unknown)
4841   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4842   ;;
4843 esac
4844
4845 # Extract the first word of "ar", so it can be a program name with args.
4846 set dummy ar; ac_word=$2
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 $as_echo_n "checking for $ac_word... " >&6; }
4849 if ${ac_cv_path_AR+:} false; then :
4850   $as_echo_n "(cached) " >&6
4851 else
4852   case $AR in
4853   [\\/]* | ?:[\\/]*)
4854   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4855   ;;
4856   *)
4857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4859 do
4860   IFS=$as_save_IFS
4861   test -z "$as_dir" && as_dir=.
4862     for ac_exec_ext in '' $ac_executable_extensions; do
4863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866     break 2
4867   fi
4868 done
4869   done
4870 IFS=$as_save_IFS
4871
4872   test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
4873   ;;
4874 esac
4875 fi
4876 AR=$ac_cv_path_AR
4877 if test -n "$AR"; then
4878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4879 $as_echo "$AR" >&6; }
4880 else
4881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4883 fi
4884
4885
4886 if [ $AR = "no" ] ; then
4887     as_fn_error $? "\"Could not find ar - needed to create a library\"" "$LINENO" 5;
4888 fi
4889
4890 # Initialize libtool
4891 case `pwd` in
4892   *\ * | *\     *)
4893     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4894 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4895 esac
4896
4897
4898
4899 macro_version='2.4.6'
4900 macro_revision='2.4.6'
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914 ltmain=$ac_aux_dir/ltmain.sh
4915
4916 # Make sure we can run config.sub.
4917 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4918   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4919
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4921 $as_echo_n "checking build system type... " >&6; }
4922 if ${ac_cv_build+:} false; then :
4923   $as_echo_n "(cached) " >&6
4924 else
4925   ac_build_alias=$build_alias
4926 test "x$ac_build_alias" = x &&
4927   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4928 test "x$ac_build_alias" = x &&
4929   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4930 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4931   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4932
4933 fi
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4935 $as_echo "$ac_cv_build" >&6; }
4936 case $ac_cv_build in
4937 *-*-*) ;;
4938 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4939 esac
4940 build=$ac_cv_build
4941 ac_save_IFS=$IFS; IFS='-'
4942 set x $ac_cv_build
4943 shift
4944 build_cpu=$1
4945 build_vendor=$2
4946 shift; shift
4947 # Remember, the first character of IFS is used to create $*,
4948 # except with old shells:
4949 build_os=$*
4950 IFS=$ac_save_IFS
4951 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4952
4953
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4955 $as_echo_n "checking host system type... " >&6; }
4956 if ${ac_cv_host+:} false; then :
4957   $as_echo_n "(cached) " >&6
4958 else
4959   if test "x$host_alias" = x; then
4960   ac_cv_host=$ac_cv_build
4961 else
4962   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4963     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4964 fi
4965
4966 fi
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4968 $as_echo "$ac_cv_host" >&6; }
4969 case $ac_cv_host in
4970 *-*-*) ;;
4971 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4972 esac
4973 host=$ac_cv_host
4974 ac_save_IFS=$IFS; IFS='-'
4975 set x $ac_cv_host
4976 shift
4977 host_cpu=$1
4978 host_vendor=$2
4979 shift; shift
4980 # Remember, the first character of IFS is used to create $*,
4981 # except with old shells:
4982 host_os=$*
4983 IFS=$ac_save_IFS
4984 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4985
4986
4987 # Backslashify metacharacters that are still active within
4988 # double-quoted strings.
4989 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4990
4991 # Same as above, but do not quote variable references.
4992 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4993
4994 # Sed substitution to delay expansion of an escaped shell variable in a
4995 # double_quote_subst'ed string.
4996 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4997
4998 # Sed substitution to delay expansion of an escaped single quote.
4999 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5000
5001 # Sed substitution to avoid accidental globbing in evaled expressions
5002 no_glob_subst='s/\*/\\\*/g'
5003
5004 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5005 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5006 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5007
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5009 $as_echo_n "checking how to print strings... " >&6; }
5010 # Test print first, because it will be a builtin if present.
5011 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5012    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5013   ECHO='print -r --'
5014 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5015   ECHO='printf %s\n'
5016 else
5017   # Use this function as a fallback that always works.
5018   func_fallback_echo ()
5019   {
5020     eval 'cat <<_LTECHO_EOF
5021 $1
5022 _LTECHO_EOF'
5023   }
5024   ECHO='func_fallback_echo'
5025 fi
5026
5027 # func_echo_all arg...
5028 # Invoke $ECHO with all args, space-separated.
5029 func_echo_all ()
5030 {
5031     $ECHO ""
5032 }
5033
5034 case $ECHO in
5035   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5036 $as_echo "printf" >&6; } ;;
5037   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5038 $as_echo "print -r" >&6; } ;;
5039   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5040 $as_echo "cat" >&6; } ;;
5041 esac
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5057 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5058 if ${ac_cv_path_SED+:} false; then :
5059   $as_echo_n "(cached) " >&6
5060 else
5061             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5062      for ac_i in 1 2 3 4 5 6 7; do
5063        ac_script="$ac_script$as_nl$ac_script"
5064      done
5065      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5066      { ac_script=; unset ac_script;}
5067      if test -z "$SED"; then
5068   ac_path_SED_found=false
5069   # Loop through the user's path and test for each of PROGNAME-LIST
5070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075     for ac_prog in sed gsed; do
5076     for ac_exec_ext in '' $ac_executable_extensions; do
5077       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5078       as_fn_executable_p "$ac_path_SED" || continue
5079 # Check for GNU ac_path_SED and select it if it is found.
5080   # Check for GNU $ac_path_SED
5081 case `"$ac_path_SED" --version 2>&1` in
5082 *GNU*)
5083   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5084 *)
5085   ac_count=0
5086   $as_echo_n 0123456789 >"conftest.in"
5087   while :
5088   do
5089     cat "conftest.in" "conftest.in" >"conftest.tmp"
5090     mv "conftest.tmp" "conftest.in"
5091     cp "conftest.in" "conftest.nl"
5092     $as_echo '' >> "conftest.nl"
5093     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5094     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5095     as_fn_arith $ac_count + 1 && ac_count=$as_val
5096     if test $ac_count -gt ${ac_path_SED_max-0}; then
5097       # Best one so far, save it but keep looking for a better one
5098       ac_cv_path_SED="$ac_path_SED"
5099       ac_path_SED_max=$ac_count
5100     fi
5101     # 10*(2^10) chars as input seems more than enough
5102     test $ac_count -gt 10 && break
5103   done
5104   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5105 esac
5106
5107       $ac_path_SED_found && break 3
5108     done
5109   done
5110   done
5111 IFS=$as_save_IFS
5112   if test -z "$ac_cv_path_SED"; then
5113     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5114   fi
5115 else
5116   ac_cv_path_SED=$SED
5117 fi
5118
5119 fi
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5121 $as_echo "$ac_cv_path_SED" >&6; }
5122  SED="$ac_cv_path_SED"
5123   rm -f conftest.sed
5124
5125 test -z "$SED" && SED=sed
5126 Xsed="$SED -e 1s/^X//"
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5139 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5140 if ${ac_cv_path_GREP+:} false; then :
5141   $as_echo_n "(cached) " >&6
5142 else
5143   if test -z "$GREP"; then
5144   ac_path_GREP_found=false
5145   # Loop through the user's path and test for each of PROGNAME-LIST
5146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5148 do
5149   IFS=$as_save_IFS
5150   test -z "$as_dir" && as_dir=.
5151     for ac_prog in grep ggrep; do
5152     for ac_exec_ext in '' $ac_executable_extensions; do
5153       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5154       as_fn_executable_p "$ac_path_GREP" || continue
5155 # Check for GNU ac_path_GREP and select it if it is found.
5156   # Check for GNU $ac_path_GREP
5157 case `"$ac_path_GREP" --version 2>&1` in
5158 *GNU*)
5159   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5160 *)
5161   ac_count=0
5162   $as_echo_n 0123456789 >"conftest.in"
5163   while :
5164   do
5165     cat "conftest.in" "conftest.in" >"conftest.tmp"
5166     mv "conftest.tmp" "conftest.in"
5167     cp "conftest.in" "conftest.nl"
5168     $as_echo 'GREP' >> "conftest.nl"
5169     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5170     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5171     as_fn_arith $ac_count + 1 && ac_count=$as_val
5172     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5173       # Best one so far, save it but keep looking for a better one
5174       ac_cv_path_GREP="$ac_path_GREP"
5175       ac_path_GREP_max=$ac_count
5176     fi
5177     # 10*(2^10) chars as input seems more than enough
5178     test $ac_count -gt 10 && break
5179   done
5180   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5181 esac
5182
5183       $ac_path_GREP_found && break 3
5184     done
5185   done
5186   done
5187 IFS=$as_save_IFS
5188   if test -z "$ac_cv_path_GREP"; then
5189     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5190   fi
5191 else
5192   ac_cv_path_GREP=$GREP
5193 fi
5194
5195 fi
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5197 $as_echo "$ac_cv_path_GREP" >&6; }
5198  GREP="$ac_cv_path_GREP"
5199
5200
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5202 $as_echo_n "checking for egrep... " >&6; }
5203 if ${ac_cv_path_EGREP+:} false; then :
5204   $as_echo_n "(cached) " >&6
5205 else
5206   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5207    then ac_cv_path_EGREP="$GREP -E"
5208    else
5209      if test -z "$EGREP"; then
5210   ac_path_EGREP_found=false
5211   # Loop through the user's path and test for each of PROGNAME-LIST
5212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5214 do
5215   IFS=$as_save_IFS
5216   test -z "$as_dir" && as_dir=.
5217     for ac_prog in egrep; do
5218     for ac_exec_ext in '' $ac_executable_extensions; do
5219       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5220       as_fn_executable_p "$ac_path_EGREP" || continue
5221 # Check for GNU ac_path_EGREP and select it if it is found.
5222   # Check for GNU $ac_path_EGREP
5223 case `"$ac_path_EGREP" --version 2>&1` in
5224 *GNU*)
5225   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5226 *)
5227   ac_count=0
5228   $as_echo_n 0123456789 >"conftest.in"
5229   while :
5230   do
5231     cat "conftest.in" "conftest.in" >"conftest.tmp"
5232     mv "conftest.tmp" "conftest.in"
5233     cp "conftest.in" "conftest.nl"
5234     $as_echo 'EGREP' >> "conftest.nl"
5235     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5236     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5237     as_fn_arith $ac_count + 1 && ac_count=$as_val
5238     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5239       # Best one so far, save it but keep looking for a better one
5240       ac_cv_path_EGREP="$ac_path_EGREP"
5241       ac_path_EGREP_max=$ac_count
5242     fi
5243     # 10*(2^10) chars as input seems more than enough
5244     test $ac_count -gt 10 && break
5245   done
5246   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5247 esac
5248
5249       $ac_path_EGREP_found && break 3
5250     done
5251   done
5252   done
5253 IFS=$as_save_IFS
5254   if test -z "$ac_cv_path_EGREP"; then
5255     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5256   fi
5257 else
5258   ac_cv_path_EGREP=$EGREP
5259 fi
5260
5261    fi
5262 fi
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5264 $as_echo "$ac_cv_path_EGREP" >&6; }
5265  EGREP="$ac_cv_path_EGREP"
5266
5267
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5269 $as_echo_n "checking for fgrep... " >&6; }
5270 if ${ac_cv_path_FGREP+:} false; then :
5271   $as_echo_n "(cached) " >&6
5272 else
5273   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5274    then ac_cv_path_FGREP="$GREP -F"
5275    else
5276      if test -z "$FGREP"; then
5277   ac_path_FGREP_found=false
5278   # Loop through the user's path and test for each of PROGNAME-LIST
5279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5281 do
5282   IFS=$as_save_IFS
5283   test -z "$as_dir" && as_dir=.
5284     for ac_prog in fgrep; do
5285     for ac_exec_ext in '' $ac_executable_extensions; do
5286       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5287       as_fn_executable_p "$ac_path_FGREP" || continue
5288 # Check for GNU ac_path_FGREP and select it if it is found.
5289   # Check for GNU $ac_path_FGREP
5290 case `"$ac_path_FGREP" --version 2>&1` in
5291 *GNU*)
5292   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5293 *)
5294   ac_count=0
5295   $as_echo_n 0123456789 >"conftest.in"
5296   while :
5297   do
5298     cat "conftest.in" "conftest.in" >"conftest.tmp"
5299     mv "conftest.tmp" "conftest.in"
5300     cp "conftest.in" "conftest.nl"
5301     $as_echo 'FGREP' >> "conftest.nl"
5302     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5303     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5304     as_fn_arith $ac_count + 1 && ac_count=$as_val
5305     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5306       # Best one so far, save it but keep looking for a better one
5307       ac_cv_path_FGREP="$ac_path_FGREP"
5308       ac_path_FGREP_max=$ac_count
5309     fi
5310     # 10*(2^10) chars as input seems more than enough
5311     test $ac_count -gt 10 && break
5312   done
5313   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5314 esac
5315
5316       $ac_path_FGREP_found && break 3
5317     done
5318   done
5319   done
5320 IFS=$as_save_IFS
5321   if test -z "$ac_cv_path_FGREP"; then
5322     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5323   fi
5324 else
5325   ac_cv_path_FGREP=$FGREP
5326 fi
5327
5328    fi
5329 fi
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5331 $as_echo "$ac_cv_path_FGREP" >&6; }
5332  FGREP="$ac_cv_path_FGREP"
5333
5334
5335 test -z "$GREP" && GREP=grep
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355 # Check whether --with-gnu-ld was given.
5356 if test "${with_gnu_ld+set}" = set; then :
5357   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5358 else
5359   with_gnu_ld=no
5360 fi
5361
5362 ac_prog=ld
5363 if test yes = "$GCC"; then
5364   # Check if gcc -print-prog-name=ld gives a path.
5365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5366 $as_echo_n "checking for ld used by $CC... " >&6; }
5367   case $host in
5368   *-*-mingw*)
5369     # gcc leaves a trailing carriage return, which upsets mingw
5370     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5371   *)
5372     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5373   esac
5374   case $ac_prog in
5375     # Accept absolute paths.
5376     [\\/]* | ?:[\\/]*)
5377       re_direlt='/[^/][^/]*/\.\./'
5378       # Canonicalize the pathname of ld
5379       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5380       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5381         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5382       done
5383       test -z "$LD" && LD=$ac_prog
5384       ;;
5385   "")
5386     # If it fails, then pretend we aren't using GCC.
5387     ac_prog=ld
5388     ;;
5389   *)
5390     # If it is relative, then search for the first ld in PATH.
5391     with_gnu_ld=unknown
5392     ;;
5393   esac
5394 elif test yes = "$with_gnu_ld"; then
5395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5396 $as_echo_n "checking for GNU ld... " >&6; }
5397 else
5398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5399 $as_echo_n "checking for non-GNU ld... " >&6; }
5400 fi
5401 if ${lt_cv_path_LD+:} false; then :
5402   $as_echo_n "(cached) " >&6
5403 else
5404   if test -z "$LD"; then
5405   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5406   for ac_dir in $PATH; do
5407     IFS=$lt_save_ifs
5408     test -z "$ac_dir" && ac_dir=.
5409     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5410       lt_cv_path_LD=$ac_dir/$ac_prog
5411       # Check to see if the program is GNU ld.  I'd rather use --version,
5412       # but apparently some variants of GNU ld only accept -v.
5413       # Break only if it was the GNU/non-GNU ld that we prefer.
5414       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5415       *GNU* | *'with BFD'*)
5416         test no != "$with_gnu_ld" && break
5417         ;;
5418       *)
5419         test yes != "$with_gnu_ld" && break
5420         ;;
5421       esac
5422     fi
5423   done
5424   IFS=$lt_save_ifs
5425 else
5426   lt_cv_path_LD=$LD # Let the user override the test with a path.
5427 fi
5428 fi
5429
5430 LD=$lt_cv_path_LD
5431 if test -n "$LD"; then
5432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5433 $as_echo "$LD" >&6; }
5434 else
5435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5437 fi
5438 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5440 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5441 if ${lt_cv_prog_gnu_ld+:} false; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5445 case `$LD -v 2>&1 </dev/null` in
5446 *GNU* | *'with BFD'*)
5447   lt_cv_prog_gnu_ld=yes
5448   ;;
5449 *)
5450   lt_cv_prog_gnu_ld=no
5451   ;;
5452 esac
5453 fi
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5455 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5456 with_gnu_ld=$lt_cv_prog_gnu_ld
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5467 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5468 if ${lt_cv_path_NM+:} false; then :
5469   $as_echo_n "(cached) " >&6
5470 else
5471   if test -n "$NM"; then
5472   # Let the user override the test.
5473   lt_cv_path_NM=$NM
5474 else
5475   lt_nm_to_check=${ac_tool_prefix}nm
5476   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5477     lt_nm_to_check="$lt_nm_to_check nm"
5478   fi
5479   for lt_tmp_nm in $lt_nm_to_check; do
5480     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5481     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5482       IFS=$lt_save_ifs
5483       test -z "$ac_dir" && ac_dir=.
5484       tmp_nm=$ac_dir/$lt_tmp_nm
5485       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5486         # Check to see if the nm accepts a BSD-compat flag.
5487         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5488         #   nm: unknown option "B" ignored
5489         # Tru64's nm complains that /dev/null is an invalid object file
5490         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5491         case $build_os in
5492         mingw*) lt_bad_file=conftest.nm/nofile ;;
5493         *) lt_bad_file=/dev/null ;;
5494         esac
5495         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5496         *$lt_bad_file* | *'Invalid file or object type'*)
5497           lt_cv_path_NM="$tmp_nm -B"
5498           break 2
5499           ;;
5500         *)
5501           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5502           */dev/null*)
5503             lt_cv_path_NM="$tmp_nm -p"
5504             break 2
5505             ;;
5506           *)
5507             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5508             continue # so that we can try to find one that supports BSD flags
5509             ;;
5510           esac
5511           ;;
5512         esac
5513       fi
5514     done
5515     IFS=$lt_save_ifs
5516   done
5517   : ${lt_cv_path_NM=no}
5518 fi
5519 fi
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5521 $as_echo "$lt_cv_path_NM" >&6; }
5522 if test no != "$lt_cv_path_NM"; then
5523   NM=$lt_cv_path_NM
5524 else
5525   # Didn't find any BSD compatible name lister, look for dumpbin.
5526   if test -n "$DUMPBIN"; then :
5527     # Let the user override the test.
5528   else
5529     if test -n "$ac_tool_prefix"; then
5530   for ac_prog in dumpbin "link -dump"
5531   do
5532     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5533 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_prog_DUMPBIN+:} false; then :
5537   $as_echo_n "(cached) " >&6
5538 else
5539   if test -n "$DUMPBIN"; then
5540   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545   IFS=$as_save_IFS
5546   test -z "$as_dir" && as_dir=.
5547     for ac_exec_ext in '' $ac_executable_extensions; do
5548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551     break 2
5552   fi
5553 done
5554   done
5555 IFS=$as_save_IFS
5556
5557 fi
5558 fi
5559 DUMPBIN=$ac_cv_prog_DUMPBIN
5560 if test -n "$DUMPBIN"; then
5561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5562 $as_echo "$DUMPBIN" >&6; }
5563 else
5564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5566 fi
5567
5568
5569     test -n "$DUMPBIN" && break
5570   done
5571 fi
5572 if test -z "$DUMPBIN"; then
5573   ac_ct_DUMPBIN=$DUMPBIN
5574   for ac_prog in dumpbin "link -dump"
5575 do
5576   # Extract the first word of "$ac_prog", so it can be a program name with args.
5577 set dummy $ac_prog; ac_word=$2
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5581   $as_echo_n "(cached) " >&6
5582 else
5583   if test -n "$ac_ct_DUMPBIN"; then
5584   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5585 else
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589   IFS=$as_save_IFS
5590   test -z "$as_dir" && as_dir=.
5591     for ac_exec_ext in '' $ac_executable_extensions; do
5592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595     break 2
5596   fi
5597 done
5598   done
5599 IFS=$as_save_IFS
5600
5601 fi
5602 fi
5603 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5604 if test -n "$ac_ct_DUMPBIN"; then
5605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5606 $as_echo "$ac_ct_DUMPBIN" >&6; }
5607 else
5608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5610 fi
5611
5612
5613   test -n "$ac_ct_DUMPBIN" && break
5614 done
5615
5616   if test "x$ac_ct_DUMPBIN" = x; then
5617     DUMPBIN=":"
5618   else
5619     case $cross_compiling:$ac_tool_warned in
5620 yes:)
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5623 ac_tool_warned=yes ;;
5624 esac
5625     DUMPBIN=$ac_ct_DUMPBIN
5626   fi
5627 fi
5628
5629     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5630     *COFF*)
5631       DUMPBIN="$DUMPBIN -symbols -headers"
5632       ;;
5633     *)
5634       DUMPBIN=:
5635       ;;
5636     esac
5637   fi
5638
5639   if test : != "$DUMPBIN"; then
5640     NM=$DUMPBIN
5641   fi
5642 fi
5643 test -z "$NM" && NM=nm
5644
5645
5646
5647
5648
5649
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5651 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5652 if ${lt_cv_nm_interface+:} false; then :
5653   $as_echo_n "(cached) " >&6
5654 else
5655   lt_cv_nm_interface="BSD nm"
5656   echo "int some_variable = 0;" > conftest.$ac_ext
5657   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5658   (eval "$ac_compile" 2>conftest.err)
5659   cat conftest.err >&5
5660   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5661   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5662   cat conftest.err >&5
5663   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5664   cat conftest.out >&5
5665   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5666     lt_cv_nm_interface="MS dumpbin"
5667   fi
5668   rm -f conftest*
5669 fi
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5671 $as_echo "$lt_cv_nm_interface" >&6; }
5672
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5674 $as_echo_n "checking whether ln -s works... " >&6; }
5675 LN_S=$as_ln_s
5676 if test "$LN_S" = "ln -s"; then
5677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5678 $as_echo "yes" >&6; }
5679 else
5680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5681 $as_echo "no, using $LN_S" >&6; }
5682 fi
5683
5684 # find the maximum length of command line arguments
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5686 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5687 if ${lt_cv_sys_max_cmd_len+:} false; then :
5688   $as_echo_n "(cached) " >&6
5689 else
5690     i=0
5691   teststring=ABCD
5692
5693   case $build_os in
5694   msdosdjgpp*)
5695     # On DJGPP, this test can blow up pretty badly due to problems in libc
5696     # (any single argument exceeding 2000 bytes causes a buffer overrun
5697     # during glob expansion).  Even if it were fixed, the result of this
5698     # check would be larger than it should be.
5699     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5700     ;;
5701
5702   gnu*)
5703     # Under GNU Hurd, this test is not required because there is
5704     # no limit to the length of command line arguments.
5705     # Libtool will interpret -1 as no limit whatsoever
5706     lt_cv_sys_max_cmd_len=-1;
5707     ;;
5708
5709   cygwin* | mingw* | cegcc*)
5710     # On Win9x/ME, this test blows up -- it succeeds, but takes
5711     # about 5 minutes as the teststring grows exponentially.
5712     # Worse, since 9x/ME are not pre-emptively multitasking,
5713     # you end up with a "frozen" computer, even though with patience
5714     # the test eventually succeeds (with a max line length of 256k).
5715     # Instead, let's just punt: use the minimum linelength reported by
5716     # all of the supported platforms: 8192 (on NT/2K/XP).
5717     lt_cv_sys_max_cmd_len=8192;
5718     ;;
5719
5720   mint*)
5721     # On MiNT this can take a long time and run out of memory.
5722     lt_cv_sys_max_cmd_len=8192;
5723     ;;
5724
5725   amigaos*)
5726     # On AmigaOS with pdksh, this test takes hours, literally.
5727     # So we just punt and use a minimum line length of 8192.
5728     lt_cv_sys_max_cmd_len=8192;
5729     ;;
5730
5731   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5732     # This has been around since 386BSD, at least.  Likely further.
5733     if test -x /sbin/sysctl; then
5734       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5735     elif test -x /usr/sbin/sysctl; then
5736       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5737     else
5738       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5739     fi
5740     # And add a safety zone
5741     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5742     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5743     ;;
5744
5745   interix*)
5746     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5747     lt_cv_sys_max_cmd_len=196608
5748     ;;
5749
5750   os2*)
5751     # The test takes a long time on OS/2.
5752     lt_cv_sys_max_cmd_len=8192
5753     ;;
5754
5755   osf*)
5756     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5757     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5758     # nice to cause kernel panics so lets avoid the loop below.
5759     # First set a reasonable default.
5760     lt_cv_sys_max_cmd_len=16384
5761     #
5762     if test -x /sbin/sysconfig; then
5763       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5764         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5765       esac
5766     fi
5767     ;;
5768   sco3.2v5*)
5769     lt_cv_sys_max_cmd_len=102400
5770     ;;
5771   sysv5* | sco5v6* | sysv4.2uw2*)
5772     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5773     if test -n "$kargmax"; then
5774       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5775     else
5776       lt_cv_sys_max_cmd_len=32768
5777     fi
5778     ;;
5779   *)
5780     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5781     if test -n "$lt_cv_sys_max_cmd_len" && \
5782        test undefined != "$lt_cv_sys_max_cmd_len"; then
5783       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5784       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5785     else
5786       # Make teststring a little bigger before we do anything with it.
5787       # a 1K string should be a reasonable start.
5788       for i in 1 2 3 4 5 6 7 8; do
5789         teststring=$teststring$teststring
5790       done
5791       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5792       # If test is not a shell built-in, we'll probably end up computing a
5793       # maximum length that is only half of the actual maximum length, but
5794       # we can't tell.
5795       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5796                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5797               test 17 != "$i" # 1/2 MB should be enough
5798       do
5799         i=`expr $i + 1`
5800         teststring=$teststring$teststring
5801       done
5802       # Only check the string length outside the loop.
5803       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5804       teststring=
5805       # Add a significant safety factor because C++ compilers can tack on
5806       # massive amounts of additional arguments before passing them to the
5807       # linker.  It appears as though 1/2 is a usable value.
5808       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5809     fi
5810     ;;
5811   esac
5812
5813 fi
5814
5815 if test -n "$lt_cv_sys_max_cmd_len"; then
5816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5817 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5818 else
5819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5820 $as_echo "none" >&6; }
5821 fi
5822 max_cmd_len=$lt_cv_sys_max_cmd_len
5823
5824
5825
5826
5827
5828
5829 : ${CP="cp -f"}
5830 : ${MV="mv -f"}
5831 : ${RM="rm -f"}
5832
5833 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5834   lt_unset=unset
5835 else
5836   lt_unset=false
5837 fi
5838
5839
5840
5841
5842
5843 # test EBCDIC or ASCII
5844 case `echo X|tr X '\101'` in
5845  A) # ASCII based system
5846     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5847   lt_SP2NL='tr \040 \012'
5848   lt_NL2SP='tr \015\012 \040\040'
5849   ;;
5850  *) # EBCDIC based system
5851   lt_SP2NL='tr \100 \n'
5852   lt_NL2SP='tr \r\n \100\100'
5853   ;;
5854 esac
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5865 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5866 if ${lt_cv_to_host_file_cmd+:} false; then :
5867   $as_echo_n "(cached) " >&6
5868 else
5869   case $host in
5870   *-*-mingw* )
5871     case $build in
5872       *-*-mingw* ) # actually msys
5873         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5874         ;;
5875       *-*-cygwin* )
5876         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5877         ;;
5878       * ) # otherwise, assume *nix
5879         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5880         ;;
5881     esac
5882     ;;
5883   *-*-cygwin* )
5884     case $build in
5885       *-*-mingw* ) # actually msys
5886         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5887         ;;
5888       *-*-cygwin* )
5889         lt_cv_to_host_file_cmd=func_convert_file_noop
5890         ;;
5891       * ) # otherwise, assume *nix
5892         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5893         ;;
5894     esac
5895     ;;
5896   * ) # unhandled hosts (and "normal" native builds)
5897     lt_cv_to_host_file_cmd=func_convert_file_noop
5898     ;;
5899 esac
5900
5901 fi
5902
5903 to_host_file_cmd=$lt_cv_to_host_file_cmd
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5905 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5906
5907
5908
5909
5910
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5912 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5913 if ${lt_cv_to_tool_file_cmd+:} false; then :
5914   $as_echo_n "(cached) " >&6
5915 else
5916   #assume ordinary cross tools, or native build.
5917 lt_cv_to_tool_file_cmd=func_convert_file_noop
5918 case $host in
5919   *-*-mingw* )
5920     case $build in
5921       *-*-mingw* ) # actually msys
5922         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5923         ;;
5924     esac
5925     ;;
5926 esac
5927
5928 fi
5929
5930 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5932 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5933
5934
5935
5936
5937
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5939 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5940 if ${lt_cv_ld_reload_flag+:} false; then :
5941   $as_echo_n "(cached) " >&6
5942 else
5943   lt_cv_ld_reload_flag='-r'
5944 fi
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5946 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5947 reload_flag=$lt_cv_ld_reload_flag
5948 case $reload_flag in
5949 "" | " "*) ;;
5950 *) reload_flag=" $reload_flag" ;;
5951 esac
5952 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5953 case $host_os in
5954   cygwin* | mingw* | pw32* | cegcc*)
5955     if test yes != "$GCC"; then
5956       reload_cmds=false
5957     fi
5958     ;;
5959   darwin*)
5960     if test yes = "$GCC"; then
5961       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5962     else
5963       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5964     fi
5965     ;;
5966 esac
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976 if test -n "$ac_tool_prefix"; then
5977   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5978 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 $as_echo_n "checking for $ac_word... " >&6; }
5981 if ${ac_cv_prog_OBJDUMP+:} false; then :
5982   $as_echo_n "(cached) " >&6
5983 else
5984   if test -n "$OBJDUMP"; then
5985   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5989 do
5990   IFS=$as_save_IFS
5991   test -z "$as_dir" && as_dir=.
5992     for ac_exec_ext in '' $ac_executable_extensions; do
5993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5996     break 2
5997   fi
5998 done
5999   done
6000 IFS=$as_save_IFS
6001
6002 fi
6003 fi
6004 OBJDUMP=$ac_cv_prog_OBJDUMP
6005 if test -n "$OBJDUMP"; then
6006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6007 $as_echo "$OBJDUMP" >&6; }
6008 else
6009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6011 fi
6012
6013
6014 fi
6015 if test -z "$ac_cv_prog_OBJDUMP"; then
6016   ac_ct_OBJDUMP=$OBJDUMP
6017   # Extract the first word of "objdump", so it can be a program name with args.
6018 set dummy objdump; ac_word=$2
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6020 $as_echo_n "checking for $ac_word... " >&6; }
6021 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6022   $as_echo_n "(cached) " >&6
6023 else
6024   if test -n "$ac_ct_OBJDUMP"; then
6025   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6026 else
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 for as_dir in $PATH
6029 do
6030   IFS=$as_save_IFS
6031   test -z "$as_dir" && as_dir=.
6032     for ac_exec_ext in '' $ac_executable_extensions; do
6033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6034     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6036     break 2
6037   fi
6038 done
6039   done
6040 IFS=$as_save_IFS
6041
6042 fi
6043 fi
6044 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6045 if test -n "$ac_ct_OBJDUMP"; then
6046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6047 $as_echo "$ac_ct_OBJDUMP" >&6; }
6048 else
6049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050 $as_echo "no" >&6; }
6051 fi
6052
6053   if test "x$ac_ct_OBJDUMP" = x; then
6054     OBJDUMP="false"
6055   else
6056     case $cross_compiling:$ac_tool_warned in
6057 yes:)
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6060 ac_tool_warned=yes ;;
6061 esac
6062     OBJDUMP=$ac_ct_OBJDUMP
6063   fi
6064 else
6065   OBJDUMP="$ac_cv_prog_OBJDUMP"
6066 fi
6067
6068 test -z "$OBJDUMP" && OBJDUMP=objdump
6069
6070
6071
6072
6073
6074
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6076 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6077 if ${lt_cv_deplibs_check_method+:} false; then :
6078   $as_echo_n "(cached) " >&6
6079 else
6080   lt_cv_file_magic_cmd='$MAGIC_CMD'
6081 lt_cv_file_magic_test_file=
6082 lt_cv_deplibs_check_method='unknown'
6083 # Need to set the preceding variable on all platforms that support
6084 # interlibrary dependencies.
6085 # 'none' -- dependencies not supported.
6086 # 'unknown' -- same as none, but documents that we really don't know.
6087 # 'pass_all' -- all dependencies passed with no checks.
6088 # 'test_compile' -- check by making test program.
6089 # 'file_magic [[regex]]' -- check by looking for files in library path
6090 # that responds to the $file_magic_cmd with a given extended regex.
6091 # If you have 'file' or equivalent on your system and you're not sure
6092 # whether 'pass_all' will *always* work, you probably want this one.
6093
6094 case $host_os in
6095 aix[4-9]*)
6096   lt_cv_deplibs_check_method=pass_all
6097   ;;
6098
6099 beos*)
6100   lt_cv_deplibs_check_method=pass_all
6101   ;;
6102
6103 bsdi[45]*)
6104   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6105   lt_cv_file_magic_cmd='/usr/bin/file -L'
6106   lt_cv_file_magic_test_file=/shlib/libc.so
6107   ;;
6108
6109 cygwin*)
6110   # func_win32_libid is a shell function defined in ltmain.sh
6111   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6112   lt_cv_file_magic_cmd='func_win32_libid'
6113   ;;
6114
6115 mingw* | pw32*)
6116   # Base MSYS/MinGW do not provide the 'file' command needed by
6117   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6118   # unless we find 'file', for example because we are cross-compiling.
6119   if ( file / ) >/dev/null 2>&1; then
6120     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6121     lt_cv_file_magic_cmd='func_win32_libid'
6122   else
6123     # Keep this pattern in sync with the one in func_win32_libid.
6124     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6125     lt_cv_file_magic_cmd='$OBJDUMP -f'
6126   fi
6127   ;;
6128
6129 cegcc*)
6130   # use the weaker test based on 'objdump'. See mingw*.
6131   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6132   lt_cv_file_magic_cmd='$OBJDUMP -f'
6133   ;;
6134
6135 darwin* | rhapsody*)
6136   lt_cv_deplibs_check_method=pass_all
6137   ;;
6138
6139 freebsd* | dragonfly*)
6140   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6141     case $host_cpu in
6142     i*86 )
6143       # Not sure whether the presence of OpenBSD here was a mistake.
6144       # Let's accept both of them until this is cleared up.
6145       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6146       lt_cv_file_magic_cmd=/usr/bin/file
6147       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6148       ;;
6149     esac
6150   else
6151     lt_cv_deplibs_check_method=pass_all
6152   fi
6153   ;;
6154
6155 haiku*)
6156   lt_cv_deplibs_check_method=pass_all
6157   ;;
6158
6159 hpux10.20* | hpux11*)
6160   lt_cv_file_magic_cmd=/usr/bin/file
6161   case $host_cpu in
6162   ia64*)
6163     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6164     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6165     ;;
6166   hppa*64*)
6167     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]'
6168     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6169     ;;
6170   *)
6171     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6172     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6173     ;;
6174   esac
6175   ;;
6176
6177 interix[3-9]*)
6178   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6179   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6180   ;;
6181
6182 irix5* | irix6* | nonstopux*)
6183   case $LD in
6184   *-32|*"-32 ") libmagic=32-bit;;
6185   *-n32|*"-n32 ") libmagic=N32;;
6186   *-64|*"-64 ") libmagic=64-bit;;
6187   *) libmagic=never-match;;
6188   esac
6189   lt_cv_deplibs_check_method=pass_all
6190   ;;
6191
6192 # This must be glibc/ELF.
6193 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6194   lt_cv_deplibs_check_method=pass_all
6195   ;;
6196
6197 netbsd* | netbsdelf*-gnu)
6198   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6199     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6200   else
6201     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6202   fi
6203   ;;
6204
6205 newos6*)
6206   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6207   lt_cv_file_magic_cmd=/usr/bin/file
6208   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6209   ;;
6210
6211 *nto* | *qnx*)
6212   lt_cv_deplibs_check_method=pass_all
6213   ;;
6214
6215 openbsd* | bitrig*)
6216   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6217     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6218   else
6219     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6220   fi
6221   ;;
6222
6223 osf3* | osf4* | osf5*)
6224   lt_cv_deplibs_check_method=pass_all
6225   ;;
6226
6227 rdos*)
6228   lt_cv_deplibs_check_method=pass_all
6229   ;;
6230
6231 solaris*)
6232   lt_cv_deplibs_check_method=pass_all
6233   ;;
6234
6235 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6236   lt_cv_deplibs_check_method=pass_all
6237   ;;
6238
6239 sysv4 | sysv4.3*)
6240   case $host_vendor in
6241   motorola)
6242     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]'
6243     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6244     ;;
6245   ncr)
6246     lt_cv_deplibs_check_method=pass_all
6247     ;;
6248   sequent)
6249     lt_cv_file_magic_cmd='/bin/file'
6250     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6251     ;;
6252   sni)
6253     lt_cv_file_magic_cmd='/bin/file'
6254     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6255     lt_cv_file_magic_test_file=/lib/libc.so
6256     ;;
6257   siemens)
6258     lt_cv_deplibs_check_method=pass_all
6259     ;;
6260   pc)
6261     lt_cv_deplibs_check_method=pass_all
6262     ;;
6263   esac
6264   ;;
6265
6266 tpf*)
6267   lt_cv_deplibs_check_method=pass_all
6268   ;;
6269 os2*)
6270   lt_cv_deplibs_check_method=pass_all
6271   ;;
6272 esac
6273
6274 fi
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6276 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6277
6278 file_magic_glob=
6279 want_nocaseglob=no
6280 if test "$build" = "$host"; then
6281   case $host_os in
6282   mingw* | pw32*)
6283     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6284       want_nocaseglob=yes
6285     else
6286       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6287     fi
6288     ;;
6289   esac
6290 fi
6291
6292 file_magic_cmd=$lt_cv_file_magic_cmd
6293 deplibs_check_method=$lt_cv_deplibs_check_method
6294 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317 if test -n "$ac_tool_prefix"; then
6318   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6319 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321 $as_echo_n "checking for $ac_word... " >&6; }
6322 if ${ac_cv_prog_DLLTOOL+:} false; then :
6323   $as_echo_n "(cached) " >&6
6324 else
6325   if test -n "$DLLTOOL"; then
6326   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331   IFS=$as_save_IFS
6332   test -z "$as_dir" && as_dir=.
6333     for ac_exec_ext in '' $ac_executable_extensions; do
6334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337     break 2
6338   fi
6339 done
6340   done
6341 IFS=$as_save_IFS
6342
6343 fi
6344 fi
6345 DLLTOOL=$ac_cv_prog_DLLTOOL
6346 if test -n "$DLLTOOL"; then
6347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6348 $as_echo "$DLLTOOL" >&6; }
6349 else
6350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351 $as_echo "no" >&6; }
6352 fi
6353
6354
6355 fi
6356 if test -z "$ac_cv_prog_DLLTOOL"; then
6357   ac_ct_DLLTOOL=$DLLTOOL
6358   # Extract the first word of "dlltool", so it can be a program name with args.
6359 set dummy dlltool; ac_word=$2
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361 $as_echo_n "checking for $ac_word... " >&6; }
6362 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6363   $as_echo_n "(cached) " >&6
6364 else
6365   if test -n "$ac_ct_DLLTOOL"; then
6366   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6367 else
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371   IFS=$as_save_IFS
6372   test -z "$as_dir" && as_dir=.
6373     for ac_exec_ext in '' $ac_executable_extensions; do
6374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6375     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377     break 2
6378   fi
6379 done
6380   done
6381 IFS=$as_save_IFS
6382
6383 fi
6384 fi
6385 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6386 if test -n "$ac_ct_DLLTOOL"; then
6387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6388 $as_echo "$ac_ct_DLLTOOL" >&6; }
6389 else
6390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6392 fi
6393
6394   if test "x$ac_ct_DLLTOOL" = x; then
6395     DLLTOOL="false"
6396   else
6397     case $cross_compiling:$ac_tool_warned in
6398 yes:)
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6401 ac_tool_warned=yes ;;
6402 esac
6403     DLLTOOL=$ac_ct_DLLTOOL
6404   fi
6405 else
6406   DLLTOOL="$ac_cv_prog_DLLTOOL"
6407 fi
6408
6409 test -z "$DLLTOOL" && DLLTOOL=dlltool
6410
6411
6412
6413
6414
6415
6416
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6418 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6419 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6420   $as_echo_n "(cached) " >&6
6421 else
6422   lt_cv_sharedlib_from_linklib_cmd='unknown'
6423
6424 case $host_os in
6425 cygwin* | mingw* | pw32* | cegcc*)
6426   # two different shell functions defined in ltmain.sh;
6427   # decide which one to use based on capabilities of $DLLTOOL
6428   case `$DLLTOOL --help 2>&1` in
6429   *--identify-strict*)
6430     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6431     ;;
6432   *)
6433     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6434     ;;
6435   esac
6436   ;;
6437 *)
6438   # fallback: assume linklib IS sharedlib
6439   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6440   ;;
6441 esac
6442
6443 fi
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6445 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6446 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6447 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6448
6449
6450
6451
6452
6453
6454
6455 if test -n "$ac_tool_prefix"; then
6456   for ac_prog in ar
6457   do
6458     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461 $as_echo_n "checking for $ac_word... " >&6; }
6462 if ${ac_cv_prog_AR+:} false; then :
6463   $as_echo_n "(cached) " >&6
6464 else
6465   if test -n "$AR"; then
6466   ac_cv_prog_AR="$AR" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471   IFS=$as_save_IFS
6472   test -z "$as_dir" && as_dir=.
6473     for ac_exec_ext in '' $ac_executable_extensions; do
6474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477     break 2
6478   fi
6479 done
6480   done
6481 IFS=$as_save_IFS
6482
6483 fi
6484 fi
6485 AR=$ac_cv_prog_AR
6486 if test -n "$AR"; then
6487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6488 $as_echo "$AR" >&6; }
6489 else
6490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491 $as_echo "no" >&6; }
6492 fi
6493
6494
6495     test -n "$AR" && break
6496   done
6497 fi
6498 if test -z "$AR"; then
6499   ac_ct_AR=$AR
6500   for ac_prog in ar
6501 do
6502   # Extract the first word of "$ac_prog", so it can be a program name with args.
6503 set dummy $ac_prog; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6507   $as_echo_n "(cached) " >&6
6508 else
6509   if test -n "$ac_ct_AR"; then
6510   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515   IFS=$as_save_IFS
6516   test -z "$as_dir" && as_dir=.
6517     for ac_exec_ext in '' $ac_executable_extensions; do
6518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519     ac_cv_prog_ac_ct_AR="$ac_prog"
6520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521     break 2
6522   fi
6523 done
6524   done
6525 IFS=$as_save_IFS
6526
6527 fi
6528 fi
6529 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6530 if test -n "$ac_ct_AR"; then
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6532 $as_echo "$ac_ct_AR" >&6; }
6533 else
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6536 fi
6537
6538
6539   test -n "$ac_ct_AR" && break
6540 done
6541
6542   if test "x$ac_ct_AR" = x; then
6543     AR="false"
6544   else
6545     case $cross_compiling:$ac_tool_warned in
6546 yes:)
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6549 ac_tool_warned=yes ;;
6550 esac
6551     AR=$ac_ct_AR
6552   fi
6553 fi
6554
6555 : ${AR=ar}
6556 : ${AR_FLAGS=cru}
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6569 $as_echo_n "checking for archiver @FILE support... " >&6; }
6570 if ${lt_cv_ar_at_file+:} false; then :
6571   $as_echo_n "(cached) " >&6
6572 else
6573   lt_cv_ar_at_file=no
6574    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h.  */
6576
6577 int
6578 main ()
6579 {
6580
6581   ;
6582   return 0;
6583 }
6584 _ACEOF
6585 if ac_fn_c_try_compile "$LINENO"; then :
6586   echo conftest.$ac_objext > conftest.lst
6587       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6588       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6589   (eval $lt_ar_try) 2>&5
6590   ac_status=$?
6591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6592   test $ac_status = 0; }
6593       if test 0 -eq "$ac_status"; then
6594         # Ensure the archiver fails upon bogus file names.
6595         rm -f conftest.$ac_objext libconftest.a
6596         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6597   (eval $lt_ar_try) 2>&5
6598   ac_status=$?
6599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6600   test $ac_status = 0; }
6601         if test 0 -ne "$ac_status"; then
6602           lt_cv_ar_at_file=@
6603         fi
6604       fi
6605       rm -f conftest.* libconftest.a
6606
6607 fi
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609
6610 fi
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6612 $as_echo "$lt_cv_ar_at_file" >&6; }
6613
6614 if test no = "$lt_cv_ar_at_file"; then
6615   archiver_list_spec=
6616 else
6617   archiver_list_spec=$lt_cv_ar_at_file
6618 fi
6619
6620
6621
6622
6623
6624
6625
6626 if test -n "$ac_tool_prefix"; then
6627   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}strip; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_prog_STRIP+:} false; then :
6632   $as_echo_n "(cached) " >&6
6633 else
6634   if test -n "$STRIP"; then
6635   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640   IFS=$as_save_IFS
6641   test -z "$as_dir" && as_dir=.
6642     for ac_exec_ext in '' $ac_executable_extensions; do
6643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646     break 2
6647   fi
6648 done
6649   done
6650 IFS=$as_save_IFS
6651
6652 fi
6653 fi
6654 STRIP=$ac_cv_prog_STRIP
6655 if test -n "$STRIP"; then
6656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6657 $as_echo "$STRIP" >&6; }
6658 else
6659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6661 fi
6662
6663
6664 fi
6665 if test -z "$ac_cv_prog_STRIP"; then
6666   ac_ct_STRIP=$STRIP
6667   # Extract the first word of "strip", so it can be a program name with args.
6668 set dummy strip; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6672   $as_echo_n "(cached) " >&6
6673 else
6674   if test -n "$ac_ct_STRIP"; then
6675   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680   IFS=$as_save_IFS
6681   test -z "$as_dir" && as_dir=.
6682     for ac_exec_ext in '' $ac_executable_extensions; do
6683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6684     ac_cv_prog_ac_ct_STRIP="strip"
6685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686     break 2
6687   fi
6688 done
6689   done
6690 IFS=$as_save_IFS
6691
6692 fi
6693 fi
6694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6695 if test -n "$ac_ct_STRIP"; then
6696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6697 $as_echo "$ac_ct_STRIP" >&6; }
6698 else
6699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6701 fi
6702
6703   if test "x$ac_ct_STRIP" = x; then
6704     STRIP=":"
6705   else
6706     case $cross_compiling:$ac_tool_warned in
6707 yes:)
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned=yes ;;
6711 esac
6712     STRIP=$ac_ct_STRIP
6713   fi
6714 else
6715   STRIP="$ac_cv_prog_STRIP"
6716 fi
6717
6718 test -z "$STRIP" && STRIP=:
6719
6720
6721
6722
6723
6724
6725 if test -n "$ac_tool_prefix"; then
6726   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6727 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729 $as_echo_n "checking for $ac_word... " >&6; }
6730 if ${ac_cv_prog_RANLIB+:} false; then :
6731   $as_echo_n "(cached) " >&6
6732 else
6733   if test -n "$RANLIB"; then
6734   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739   IFS=$as_save_IFS
6740   test -z "$as_dir" && as_dir=.
6741     for ac_exec_ext in '' $ac_executable_extensions; do
6742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745     break 2
6746   fi
6747 done
6748   done
6749 IFS=$as_save_IFS
6750
6751 fi
6752 fi
6753 RANLIB=$ac_cv_prog_RANLIB
6754 if test -n "$RANLIB"; then
6755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6756 $as_echo "$RANLIB" >&6; }
6757 else
6758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 $as_echo "no" >&6; }
6760 fi
6761
6762
6763 fi
6764 if test -z "$ac_cv_prog_RANLIB"; then
6765   ac_ct_RANLIB=$RANLIB
6766   # Extract the first word of "ranlib", so it can be a program name with args.
6767 set dummy ranlib; ac_word=$2
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769 $as_echo_n "checking for $ac_word... " >&6; }
6770 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6771   $as_echo_n "(cached) " >&6
6772 else
6773   if test -n "$ac_ct_RANLIB"; then
6774   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6775 else
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779   IFS=$as_save_IFS
6780   test -z "$as_dir" && as_dir=.
6781     for ac_exec_ext in '' $ac_executable_extensions; do
6782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6783     ac_cv_prog_ac_ct_RANLIB="ranlib"
6784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785     break 2
6786   fi
6787 done
6788   done
6789 IFS=$as_save_IFS
6790
6791 fi
6792 fi
6793 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6794 if test -n "$ac_ct_RANLIB"; then
6795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6796 $as_echo "$ac_ct_RANLIB" >&6; }
6797 else
6798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6800 fi
6801
6802   if test "x$ac_ct_RANLIB" = x; then
6803     RANLIB=":"
6804   else
6805     case $cross_compiling:$ac_tool_warned in
6806 yes:)
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6809 ac_tool_warned=yes ;;
6810 esac
6811     RANLIB=$ac_ct_RANLIB
6812   fi
6813 else
6814   RANLIB="$ac_cv_prog_RANLIB"
6815 fi
6816
6817 test -z "$RANLIB" && RANLIB=:
6818
6819
6820
6821
6822
6823
6824 # Determine commands to create old-style static archives.
6825 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6826 old_postinstall_cmds='chmod 644 $oldlib'
6827 old_postuninstall_cmds=
6828
6829 if test -n "$RANLIB"; then
6830   case $host_os in
6831   bitrig* | openbsd*)
6832     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6833     ;;
6834   *)
6835     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6836     ;;
6837   esac
6838   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6839 fi
6840
6841 case $host_os in
6842   darwin*)
6843     lock_old_archive_extraction=yes ;;
6844   *)
6845     lock_old_archive_extraction=no ;;
6846 esac
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886 # If no C compiler was specified, use CC.
6887 LTCC=${LTCC-"$CC"}
6888
6889 # If no C compiler flags were specified, use CFLAGS.
6890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6891
6892 # Allow CC to be a program name with arguments.
6893 compiler=$CC
6894
6895
6896 # Check for command to grab the raw symbol name followed by C symbol from nm.
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6898 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6899 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6900   $as_echo_n "(cached) " >&6
6901 else
6902
6903 # These are sane defaults that work on at least a few old systems.
6904 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6905
6906 # Character class describing NM global symbol codes.
6907 symcode='[BCDEGRST]'
6908
6909 # Regexp to match symbols that can be accessed directly from C.
6910 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6911
6912 # Define system-specific variables.
6913 case $host_os in
6914 aix*)
6915   symcode='[BCDT]'
6916   ;;
6917 cygwin* | mingw* | pw32* | cegcc*)
6918   symcode='[ABCDGISTW]'
6919   ;;
6920 hpux*)
6921   if test ia64 = "$host_cpu"; then
6922     symcode='[ABCDEGRST]'
6923   fi
6924   ;;
6925 irix* | nonstopux*)
6926   symcode='[BCDEGRST]'
6927   ;;
6928 osf*)
6929   symcode='[BCDEGQRST]'
6930   ;;
6931 solaris*)
6932   symcode='[BDRT]'
6933   ;;
6934 sco3.2v5*)
6935   symcode='[DT]'
6936   ;;
6937 sysv4.2uw2*)
6938   symcode='[DT]'
6939   ;;
6940 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6941   symcode='[ABDT]'
6942   ;;
6943 sysv4)
6944   symcode='[DFNSTU]'
6945   ;;
6946 esac
6947
6948 # If we're using GNU nm, then use its standard symbol codes.
6949 case `$NM -V 2>&1` in
6950 *GNU* | *'with BFD'*)
6951   symcode='[ABCDGIRSTW]' ;;
6952 esac
6953
6954 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6955   # Gets list of data symbols to import.
6956   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6957   # Adjust the below global symbol transforms to fixup imported variables.
6958   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6959   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6960   lt_c_name_lib_hook="\
6961   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6962   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6963 else
6964   # Disable hooks by default.
6965   lt_cv_sys_global_symbol_to_import=
6966   lt_cdecl_hook=
6967   lt_c_name_hook=
6968   lt_c_name_lib_hook=
6969 fi
6970
6971 # Transform an extracted symbol line into a proper C declaration.
6972 # Some systems (esp. on ia64) link data and code symbols differently,
6973 # so use this general approach.
6974 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6975 $lt_cdecl_hook\
6976 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6977 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6978
6979 # Transform an extracted symbol line into symbol name and symbol address
6980 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6981 $lt_c_name_hook\
6982 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6983 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6984
6985 # Transform an extracted symbol line into symbol name with lib prefix and
6986 # symbol address.
6987 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6988 $lt_c_name_lib_hook\
6989 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6990 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6991 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6992
6993 # Handle CRLF in mingw tool chain
6994 opt_cr=
6995 case $build_os in
6996 mingw*)
6997   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6998   ;;
6999 esac
7000
7001 # Try without a prefix underscore, then with it.
7002 for ac_symprfx in "" "_"; do
7003
7004   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7005   symxfrm="\\1 $ac_symprfx\\2 \\2"
7006
7007   # Write the raw and C identifiers.
7008   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7009     # Fake it for dumpbin and say T for any non-static function,
7010     # D for any global variable and I for any imported variable.
7011     # Also find C++ and __fastcall symbols from MSVC++,
7012     # which start with @ or ?.
7013     lt_cv_sys_global_symbol_pipe="$AWK '"\
7014 "     {last_section=section; section=\$ 3};"\
7015 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7016 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7017 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7018 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7019 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7020 "     \$ 0!~/External *\|/{next};"\
7021 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7022 "     {if(hide[section]) next};"\
7023 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7024 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7025 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7026 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7027 "     ' prfx=^$ac_symprfx"
7028   else
7029     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7030   fi
7031   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7032
7033   # Check to see that the pipe works correctly.
7034   pipe_works=no
7035
7036   rm -f conftest*
7037   cat > conftest.$ac_ext <<_LT_EOF
7038 #ifdef __cplusplus
7039 extern "C" {
7040 #endif
7041 char nm_test_var;
7042 void nm_test_func(void);
7043 void nm_test_func(void){}
7044 #ifdef __cplusplus
7045 }
7046 #endif
7047 int main(){nm_test_var='a';nm_test_func();return(0);}
7048 _LT_EOF
7049
7050   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7051   (eval $ac_compile) 2>&5
7052   ac_status=$?
7053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054   test $ac_status = 0; }; then
7055     # Now try to grab the symbols.
7056     nlist=conftest.nm
7057     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7058   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7059   ac_status=$?
7060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7061   test $ac_status = 0; } && test -s "$nlist"; then
7062       # Try sorting and uniquifying the output.
7063       if sort "$nlist" | uniq > "$nlist"T; then
7064         mv -f "$nlist"T "$nlist"
7065       else
7066         rm -f "$nlist"T
7067       fi
7068
7069       # Make sure that we snagged all the symbols we need.
7070       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7071         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7072           cat <<_LT_EOF > conftest.$ac_ext
7073 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7074 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7075 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7076    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7077 # define LT_DLSYM_CONST
7078 #elif defined __osf__
7079 /* This system does not cope well with relocations in const data.  */
7080 # define LT_DLSYM_CONST
7081 #else
7082 # define LT_DLSYM_CONST const
7083 #endif
7084
7085 #ifdef __cplusplus
7086 extern "C" {
7087 #endif
7088
7089 _LT_EOF
7090           # Now generate the symbol file.
7091           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7092
7093           cat <<_LT_EOF >> conftest.$ac_ext
7094
7095 /* The mapping between symbol names and symbols.  */
7096 LT_DLSYM_CONST struct {
7097   const char *name;
7098   void       *address;
7099 }
7100 lt__PROGRAM__LTX_preloaded_symbols[] =
7101 {
7102   { "@PROGRAM@", (void *) 0 },
7103 _LT_EOF
7104           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7105           cat <<\_LT_EOF >> conftest.$ac_ext
7106   {0, (void *) 0}
7107 };
7108
7109 /* This works around a problem in FreeBSD linker */
7110 #ifdef FREEBSD_WORKAROUND
7111 static const void *lt_preloaded_setup() {
7112   return lt__PROGRAM__LTX_preloaded_symbols;
7113 }
7114 #endif
7115
7116 #ifdef __cplusplus
7117 }
7118 #endif
7119 _LT_EOF
7120           # Now try linking the two files.
7121           mv conftest.$ac_objext conftstm.$ac_objext
7122           lt_globsym_save_LIBS=$LIBS
7123           lt_globsym_save_CFLAGS=$CFLAGS
7124           LIBS=conftstm.$ac_objext
7125           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7126           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7127   (eval $ac_link) 2>&5
7128   ac_status=$?
7129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7130   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7131             pipe_works=yes
7132           fi
7133           LIBS=$lt_globsym_save_LIBS
7134           CFLAGS=$lt_globsym_save_CFLAGS
7135         else
7136           echo "cannot find nm_test_func in $nlist" >&5
7137         fi
7138       else
7139         echo "cannot find nm_test_var in $nlist" >&5
7140       fi
7141     else
7142       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7143     fi
7144   else
7145     echo "$progname: failed program was:" >&5
7146     cat conftest.$ac_ext >&5
7147   fi
7148   rm -rf conftest* conftst*
7149
7150   # Do not use the global_symbol_pipe unless it works.
7151   if test yes = "$pipe_works"; then
7152     break
7153   else
7154     lt_cv_sys_global_symbol_pipe=
7155   fi
7156 done
7157
7158 fi
7159
7160 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7161   lt_cv_sys_global_symbol_to_cdecl=
7162 fi
7163 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7165 $as_echo "failed" >&6; }
7166 else
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7168 $as_echo "ok" >&6; }
7169 fi
7170
7171 # Response file support.
7172 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7173   nm_file_list_spec='@'
7174 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7175   nm_file_list_spec='@'
7176 fi
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7215 $as_echo_n "checking for sysroot... " >&6; }
7216
7217 # Check whether --with-sysroot was given.
7218 if test "${with_sysroot+set}" = set; then :
7219   withval=$with_sysroot;
7220 else
7221   with_sysroot=no
7222 fi
7223
7224
7225 lt_sysroot=
7226 case $with_sysroot in #(
7227  yes)
7228    if test yes = "$GCC"; then
7229      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7230    fi
7231    ;; #(
7232  /*)
7233    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7234    ;; #(
7235  no|'')
7236    ;; #(
7237  *)
7238    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7239 $as_echo "$with_sysroot" >&6; }
7240    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7241    ;;
7242 esac
7243
7244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7245 $as_echo "${lt_sysroot:-no}" >&6; }
7246
7247
7248
7249
7250
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7252 $as_echo_n "checking for a working dd... " >&6; }
7253 if ${ac_cv_path_lt_DD+:} false; then :
7254   $as_echo_n "(cached) " >&6
7255 else
7256   printf 0123456789abcdef0123456789abcdef >conftest.i
7257 cat conftest.i conftest.i >conftest2.i
7258 : ${lt_DD:=$DD}
7259 if test -z "$lt_DD"; then
7260   ac_path_lt_DD_found=false
7261   # Loop through the user's path and test for each of PROGNAME-LIST
7262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7264 do
7265   IFS=$as_save_IFS
7266   test -z "$as_dir" && as_dir=.
7267     for ac_prog in dd; do
7268     for ac_exec_ext in '' $ac_executable_extensions; do
7269       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7270       as_fn_executable_p "$ac_path_lt_DD" || continue
7271 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7272   cmp -s conftest.i conftest.out \
7273   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7274 fi
7275       $ac_path_lt_DD_found && break 3
7276     done
7277   done
7278   done
7279 IFS=$as_save_IFS
7280   if test -z "$ac_cv_path_lt_DD"; then
7281     :
7282   fi
7283 else
7284   ac_cv_path_lt_DD=$lt_DD
7285 fi
7286
7287 rm -f conftest.i conftest2.i conftest.out
7288 fi
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7290 $as_echo "$ac_cv_path_lt_DD" >&6; }
7291
7292
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7294 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7295 if ${lt_cv_truncate_bin+:} false; then :
7296   $as_echo_n "(cached) " >&6
7297 else
7298   printf 0123456789abcdef0123456789abcdef >conftest.i
7299 cat conftest.i conftest.i >conftest2.i
7300 lt_cv_truncate_bin=
7301 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7302   cmp -s conftest.i conftest.out \
7303   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7304 fi
7305 rm -f conftest.i conftest2.i conftest.out
7306 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7307 fi
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7309 $as_echo "$lt_cv_truncate_bin" >&6; }
7310
7311
7312
7313
7314
7315
7316
7317 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7318 func_cc_basename ()
7319 {
7320     for cc_temp in $*""; do
7321       case $cc_temp in
7322         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7323         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7324         \-*) ;;
7325         *) break;;
7326       esac
7327     done
7328     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7329 }
7330
7331 # Check whether --enable-libtool-lock was given.
7332 if test "${enable_libtool_lock+set}" = set; then :
7333   enableval=$enable_libtool_lock;
7334 fi
7335
7336 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7337
7338 # Some flags need to be propagated to the compiler or linker for good
7339 # libtool support.
7340 case $host in
7341 ia64-*-hpux*)
7342   # Find out what ABI is being produced by ac_compile, and set mode
7343   # options accordingly.
7344   echo 'int i;' > conftest.$ac_ext
7345   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7346   (eval $ac_compile) 2>&5
7347   ac_status=$?
7348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7349   test $ac_status = 0; }; then
7350     case `/usr/bin/file conftest.$ac_objext` in
7351       *ELF-32*)
7352         HPUX_IA64_MODE=32
7353         ;;
7354       *ELF-64*)
7355         HPUX_IA64_MODE=64
7356         ;;
7357     esac
7358   fi
7359   rm -rf conftest*
7360   ;;
7361 *-*-irix6*)
7362   # Find out what ABI is being produced by ac_compile, and set linker
7363   # options accordingly.
7364   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7365   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7366   (eval $ac_compile) 2>&5
7367   ac_status=$?
7368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7369   test $ac_status = 0; }; then
7370     if test yes = "$lt_cv_prog_gnu_ld"; then
7371       case `/usr/bin/file conftest.$ac_objext` in
7372         *32-bit*)
7373           LD="${LD-ld} -melf32bsmip"
7374           ;;
7375         *N32*)
7376           LD="${LD-ld} -melf32bmipn32"
7377           ;;
7378         *64-bit*)
7379           LD="${LD-ld} -melf64bmip"
7380         ;;
7381       esac
7382     else
7383       case `/usr/bin/file conftest.$ac_objext` in
7384         *32-bit*)
7385           LD="${LD-ld} -32"
7386           ;;
7387         *N32*)
7388           LD="${LD-ld} -n32"
7389           ;;
7390         *64-bit*)
7391           LD="${LD-ld} -64"
7392           ;;
7393       esac
7394     fi
7395   fi
7396   rm -rf conftest*
7397   ;;
7398
7399 mips64*-*linux*)
7400   # Find out what ABI is being produced by ac_compile, and set linker
7401   # options accordingly.
7402   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7403   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7404   (eval $ac_compile) 2>&5
7405   ac_status=$?
7406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7407   test $ac_status = 0; }; then
7408     emul=elf
7409     case `/usr/bin/file conftest.$ac_objext` in
7410       *32-bit*)
7411         emul="${emul}32"
7412         ;;
7413       *64-bit*)
7414         emul="${emul}64"
7415         ;;
7416     esac
7417     case `/usr/bin/file conftest.$ac_objext` in
7418       *MSB*)
7419         emul="${emul}btsmip"
7420         ;;
7421       *LSB*)
7422         emul="${emul}ltsmip"
7423         ;;
7424     esac
7425     case `/usr/bin/file conftest.$ac_objext` in
7426       *N32*)
7427         emul="${emul}n32"
7428         ;;
7429     esac
7430     LD="${LD-ld} -m $emul"
7431   fi
7432   rm -rf conftest*
7433   ;;
7434
7435 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7436 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7437   # Find out what ABI is being produced by ac_compile, and set linker
7438   # options accordingly.  Note that the listed cases only cover the
7439   # situations where additional linker options are needed (such as when
7440   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7441   # vice versa); the common cases where no linker options are needed do
7442   # not appear in the list.
7443   echo 'int i;' > conftest.$ac_ext
7444   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7445   (eval $ac_compile) 2>&5
7446   ac_status=$?
7447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448   test $ac_status = 0; }; then
7449     case `/usr/bin/file conftest.o` in
7450       *32-bit*)
7451         case $host in
7452           x86_64-*kfreebsd*-gnu)
7453             LD="${LD-ld} -m elf_i386_fbsd"
7454             ;;
7455           x86_64-*linux*)
7456             case `/usr/bin/file conftest.o` in
7457               *x86-64*)
7458                 LD="${LD-ld} -m elf32_x86_64"
7459                 ;;
7460               *)
7461                 LD="${LD-ld} -m elf_i386"
7462                 ;;
7463             esac
7464             ;;
7465           powerpc64le-*linux*)
7466             LD="${LD-ld} -m elf32lppclinux"
7467             ;;
7468           powerpc64-*linux*)
7469             LD="${LD-ld} -m elf32ppclinux"
7470             ;;
7471           s390x-*linux*)
7472             LD="${LD-ld} -m elf_s390"
7473             ;;
7474           sparc64-*linux*)
7475             LD="${LD-ld} -m elf32_sparc"
7476             ;;
7477         esac
7478         ;;
7479       *64-bit*)
7480         case $host in
7481           x86_64-*kfreebsd*-gnu)
7482             LD="${LD-ld} -m elf_x86_64_fbsd"
7483             ;;
7484           x86_64-*linux*)
7485             LD="${LD-ld} -m elf_x86_64"
7486             ;;
7487           powerpcle-*linux*)
7488             LD="${LD-ld} -m elf64lppc"
7489             ;;
7490           powerpc-*linux*)
7491             LD="${LD-ld} -m elf64ppc"
7492             ;;
7493           s390*-*linux*|s390*-*tpf*)
7494             LD="${LD-ld} -m elf64_s390"
7495             ;;
7496           sparc*-*linux*)
7497             LD="${LD-ld} -m elf64_sparc"
7498             ;;
7499         esac
7500         ;;
7501     esac
7502   fi
7503   rm -rf conftest*
7504   ;;
7505
7506 *-*-sco3.2v5*)
7507   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7508   SAVE_CFLAGS=$CFLAGS
7509   CFLAGS="$CFLAGS -belf"
7510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7511 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7512 if ${lt_cv_cc_needs_belf+:} false; then :
7513   $as_echo_n "(cached) " >&6
7514 else
7515   ac_ext=c
7516 ac_cpp='$CPP $CPPFLAGS'
7517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7520
7521      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h.  */
7523
7524 int
7525 main ()
7526 {
7527
7528   ;
7529   return 0;
7530 }
7531 _ACEOF
7532 if ac_fn_c_try_link "$LINENO"; then :
7533   lt_cv_cc_needs_belf=yes
7534 else
7535   lt_cv_cc_needs_belf=no
7536 fi
7537 rm -f core conftest.err conftest.$ac_objext \
7538     conftest$ac_exeext conftest.$ac_ext
7539      ac_ext=c
7540 ac_cpp='$CPP $CPPFLAGS'
7541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7544
7545 fi
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7547 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7548   if test yes != "$lt_cv_cc_needs_belf"; then
7549     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7550     CFLAGS=$SAVE_CFLAGS
7551   fi
7552   ;;
7553 *-*solaris*)
7554   # Find out what ABI is being produced by ac_compile, and set linker
7555   # options accordingly.
7556   echo 'int i;' > conftest.$ac_ext
7557   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7558   (eval $ac_compile) 2>&5
7559   ac_status=$?
7560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7561   test $ac_status = 0; }; then
7562     case `/usr/bin/file conftest.o` in
7563     *64-bit*)
7564       case $lt_cv_prog_gnu_ld in
7565       yes*)
7566         case $host in
7567         i?86-*-solaris*|x86_64-*-solaris*)
7568           LD="${LD-ld} -m elf_x86_64"
7569           ;;
7570         sparc*-*-solaris*)
7571           LD="${LD-ld} -m elf64_sparc"
7572           ;;
7573         esac
7574         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7575         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7576           LD=${LD-ld}_sol2
7577         fi
7578         ;;
7579       *)
7580         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7581           LD="${LD-ld} -64"
7582         fi
7583         ;;
7584       esac
7585       ;;
7586     esac
7587   fi
7588   rm -rf conftest*
7589   ;;
7590 esac
7591
7592 need_locks=$enable_libtool_lock
7593
7594 if test -n "$ac_tool_prefix"; then
7595   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7596 set dummy ${ac_tool_prefix}mt; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7600   $as_echo_n "(cached) " >&6
7601 else
7602   if test -n "$MANIFEST_TOOL"; then
7603   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7604 else
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7607 do
7608   IFS=$as_save_IFS
7609   test -z "$as_dir" && as_dir=.
7610     for ac_exec_ext in '' $ac_executable_extensions; do
7611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7612     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614     break 2
7615   fi
7616 done
7617   done
7618 IFS=$as_save_IFS
7619
7620 fi
7621 fi
7622 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7623 if test -n "$MANIFEST_TOOL"; then
7624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7625 $as_echo "$MANIFEST_TOOL" >&6; }
7626 else
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628 $as_echo "no" >&6; }
7629 fi
7630
7631
7632 fi
7633 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7634   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7635   # Extract the first word of "mt", so it can be a program name with args.
7636 set dummy mt; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7640   $as_echo_n "(cached) " >&6
7641 else
7642   if test -n "$ac_ct_MANIFEST_TOOL"; then
7643   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7644 else
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648   IFS=$as_save_IFS
7649   test -z "$as_dir" && as_dir=.
7650     for ac_exec_ext in '' $ac_executable_extensions; do
7651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654     break 2
7655   fi
7656 done
7657   done
7658 IFS=$as_save_IFS
7659
7660 fi
7661 fi
7662 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7663 if test -n "$ac_ct_MANIFEST_TOOL"; then
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7665 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7666 else
7667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7669 fi
7670
7671   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7672     MANIFEST_TOOL=":"
7673   else
7674     case $cross_compiling:$ac_tool_warned in
7675 yes:)
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7678 ac_tool_warned=yes ;;
7679 esac
7680     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7681   fi
7682 else
7683   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7684 fi
7685
7686 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7688 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7689 if ${lt_cv_path_mainfest_tool+:} false; then :
7690   $as_echo_n "(cached) " >&6
7691 else
7692   lt_cv_path_mainfest_tool=no
7693   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7694   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7695   cat conftest.err >&5
7696   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7697     lt_cv_path_mainfest_tool=yes
7698   fi
7699   rm -f conftest*
7700 fi
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7702 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7703 if test yes != "$lt_cv_path_mainfest_tool"; then
7704   MANIFEST_TOOL=:
7705 fi
7706
7707
7708
7709
7710
7711
7712   case $host_os in
7713     rhapsody* | darwin*)
7714     if test -n "$ac_tool_prefix"; then
7715   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7716 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7720   $as_echo_n "(cached) " >&6
7721 else
7722   if test -n "$DSYMUTIL"; then
7723   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728   IFS=$as_save_IFS
7729   test -z "$as_dir" && as_dir=.
7730     for ac_exec_ext in '' $ac_executable_extensions; do
7731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7732     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734     break 2
7735   fi
7736 done
7737   done
7738 IFS=$as_save_IFS
7739
7740 fi
7741 fi
7742 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7743 if test -n "$DSYMUTIL"; then
7744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7745 $as_echo "$DSYMUTIL" >&6; }
7746 else
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7749 fi
7750
7751
7752 fi
7753 if test -z "$ac_cv_prog_DSYMUTIL"; then
7754   ac_ct_DSYMUTIL=$DSYMUTIL
7755   # Extract the first word of "dsymutil", so it can be a program name with args.
7756 set dummy dsymutil; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7760   $as_echo_n "(cached) " >&6
7761 else
7762   if test -n "$ac_ct_DSYMUTIL"; then
7763   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7767 do
7768   IFS=$as_save_IFS
7769   test -z "$as_dir" && as_dir=.
7770     for ac_exec_ext in '' $ac_executable_extensions; do
7771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774     break 2
7775   fi
7776 done
7777   done
7778 IFS=$as_save_IFS
7779
7780 fi
7781 fi
7782 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7783 if test -n "$ac_ct_DSYMUTIL"; then
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7785 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7786 else
7787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7789 fi
7790
7791   if test "x$ac_ct_DSYMUTIL" = x; then
7792     DSYMUTIL=":"
7793   else
7794     case $cross_compiling:$ac_tool_warned in
7795 yes:)
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7798 ac_tool_warned=yes ;;
7799 esac
7800     DSYMUTIL=$ac_ct_DSYMUTIL
7801   fi
7802 else
7803   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7804 fi
7805
7806     if test -n "$ac_tool_prefix"; then
7807   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7808 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810 $as_echo_n "checking for $ac_word... " >&6; }
7811 if ${ac_cv_prog_NMEDIT+:} false; then :
7812   $as_echo_n "(cached) " >&6
7813 else
7814   if test -n "$NMEDIT"; then
7815   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7816 else
7817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818 for as_dir in $PATH
7819 do
7820   IFS=$as_save_IFS
7821   test -z "$as_dir" && as_dir=.
7822     for ac_exec_ext in '' $ac_executable_extensions; do
7823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7824     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7826     break 2
7827   fi
7828 done
7829   done
7830 IFS=$as_save_IFS
7831
7832 fi
7833 fi
7834 NMEDIT=$ac_cv_prog_NMEDIT
7835 if test -n "$NMEDIT"; then
7836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7837 $as_echo "$NMEDIT" >&6; }
7838 else
7839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7841 fi
7842
7843
7844 fi
7845 if test -z "$ac_cv_prog_NMEDIT"; then
7846   ac_ct_NMEDIT=$NMEDIT
7847   # Extract the first word of "nmedit", so it can be a program name with args.
7848 set dummy nmedit; ac_word=$2
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850 $as_echo_n "checking for $ac_word... " >&6; }
7851 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7852   $as_echo_n "(cached) " >&6
7853 else
7854   if test -n "$ac_ct_NMEDIT"; then
7855   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7856 else
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 for as_dir in $PATH
7859 do
7860   IFS=$as_save_IFS
7861   test -z "$as_dir" && as_dir=.
7862     for ac_exec_ext in '' $ac_executable_extensions; do
7863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7864     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866     break 2
7867   fi
7868 done
7869   done
7870 IFS=$as_save_IFS
7871
7872 fi
7873 fi
7874 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7875 if test -n "$ac_ct_NMEDIT"; then
7876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7877 $as_echo "$ac_ct_NMEDIT" >&6; }
7878 else
7879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7881 fi
7882
7883   if test "x$ac_ct_NMEDIT" = x; then
7884     NMEDIT=":"
7885   else
7886     case $cross_compiling:$ac_tool_warned in
7887 yes:)
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7890 ac_tool_warned=yes ;;
7891 esac
7892     NMEDIT=$ac_ct_NMEDIT
7893   fi
7894 else
7895   NMEDIT="$ac_cv_prog_NMEDIT"
7896 fi
7897
7898     if test -n "$ac_tool_prefix"; then
7899   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7900 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if ${ac_cv_prog_LIPO+:} false; then :
7904   $as_echo_n "(cached) " >&6
7905 else
7906   if test -n "$LIPO"; then
7907   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912   IFS=$as_save_IFS
7913   test -z "$as_dir" && as_dir=.
7914     for ac_exec_ext in '' $ac_executable_extensions; do
7915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7916     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918     break 2
7919   fi
7920 done
7921   done
7922 IFS=$as_save_IFS
7923
7924 fi
7925 fi
7926 LIPO=$ac_cv_prog_LIPO
7927 if test -n "$LIPO"; then
7928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7929 $as_echo "$LIPO" >&6; }
7930 else
7931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7933 fi
7934
7935
7936 fi
7937 if test -z "$ac_cv_prog_LIPO"; then
7938   ac_ct_LIPO=$LIPO
7939   # Extract the first word of "lipo", so it can be a program name with args.
7940 set dummy lipo; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7944   $as_echo_n "(cached) " >&6
7945 else
7946   if test -n "$ac_ct_LIPO"; then
7947   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7948 else
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH
7951 do
7952   IFS=$as_save_IFS
7953   test -z "$as_dir" && as_dir=.
7954     for ac_exec_ext in '' $ac_executable_extensions; do
7955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956     ac_cv_prog_ac_ct_LIPO="lipo"
7957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958     break 2
7959   fi
7960 done
7961   done
7962 IFS=$as_save_IFS
7963
7964 fi
7965 fi
7966 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7967 if test -n "$ac_ct_LIPO"; then
7968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7969 $as_echo "$ac_ct_LIPO" >&6; }
7970 else
7971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7973 fi
7974
7975   if test "x$ac_ct_LIPO" = x; then
7976     LIPO=":"
7977   else
7978     case $cross_compiling:$ac_tool_warned in
7979 yes:)
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7982 ac_tool_warned=yes ;;
7983 esac
7984     LIPO=$ac_ct_LIPO
7985   fi
7986 else
7987   LIPO="$ac_cv_prog_LIPO"
7988 fi
7989
7990     if test -n "$ac_tool_prefix"; then
7991   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7992 set dummy ${ac_tool_prefix}otool; ac_word=$2
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994 $as_echo_n "checking for $ac_word... " >&6; }
7995 if ${ac_cv_prog_OTOOL+:} false; then :
7996   $as_echo_n "(cached) " >&6
7997 else
7998   if test -n "$OTOOL"; then
7999   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8000 else
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8003 do
8004   IFS=$as_save_IFS
8005   test -z "$as_dir" && as_dir=.
8006     for ac_exec_ext in '' $ac_executable_extensions; do
8007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8008     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010     break 2
8011   fi
8012 done
8013   done
8014 IFS=$as_save_IFS
8015
8016 fi
8017 fi
8018 OTOOL=$ac_cv_prog_OTOOL
8019 if test -n "$OTOOL"; then
8020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8021 $as_echo "$OTOOL" >&6; }
8022 else
8023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }
8025 fi
8026
8027
8028 fi
8029 if test -z "$ac_cv_prog_OTOOL"; then
8030   ac_ct_OTOOL=$OTOOL
8031   # Extract the first word of "otool", so it can be a program name with args.
8032 set dummy otool; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8036   $as_echo_n "(cached) " >&6
8037 else
8038   if test -n "$ac_ct_OTOOL"; then
8039   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8040 else
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8043 do
8044   IFS=$as_save_IFS
8045   test -z "$as_dir" && as_dir=.
8046     for ac_exec_ext in '' $ac_executable_extensions; do
8047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048     ac_cv_prog_ac_ct_OTOOL="otool"
8049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050     break 2
8051   fi
8052 done
8053   done
8054 IFS=$as_save_IFS
8055
8056 fi
8057 fi
8058 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8059 if test -n "$ac_ct_OTOOL"; then
8060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8061 $as_echo "$ac_ct_OTOOL" >&6; }
8062 else
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8065 fi
8066
8067   if test "x$ac_ct_OTOOL" = x; then
8068     OTOOL=":"
8069   else
8070     case $cross_compiling:$ac_tool_warned in
8071 yes:)
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8074 ac_tool_warned=yes ;;
8075 esac
8076     OTOOL=$ac_ct_OTOOL
8077   fi
8078 else
8079   OTOOL="$ac_cv_prog_OTOOL"
8080 fi
8081
8082     if test -n "$ac_tool_prefix"; then
8083   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8084 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086 $as_echo_n "checking for $ac_word... " >&6; }
8087 if ${ac_cv_prog_OTOOL64+:} false; then :
8088   $as_echo_n "(cached) " >&6
8089 else
8090   if test -n "$OTOOL64"; then
8091   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8092 else
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 for as_dir in $PATH
8095 do
8096   IFS=$as_save_IFS
8097   test -z "$as_dir" && as_dir=.
8098     for ac_exec_ext in '' $ac_executable_extensions; do
8099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8100     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8102     break 2
8103   fi
8104 done
8105   done
8106 IFS=$as_save_IFS
8107
8108 fi
8109 fi
8110 OTOOL64=$ac_cv_prog_OTOOL64
8111 if test -n "$OTOOL64"; then
8112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8113 $as_echo "$OTOOL64" >&6; }
8114 else
8115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8117 fi
8118
8119
8120 fi
8121 if test -z "$ac_cv_prog_OTOOL64"; then
8122   ac_ct_OTOOL64=$OTOOL64
8123   # Extract the first word of "otool64", so it can be a program name with args.
8124 set dummy otool64; ac_word=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 $as_echo_n "checking for $ac_word... " >&6; }
8127 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8128   $as_echo_n "(cached) " >&6
8129 else
8130   if test -n "$ac_ct_OTOOL64"; then
8131   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8132 else
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8135 do
8136   IFS=$as_save_IFS
8137   test -z "$as_dir" && as_dir=.
8138     for ac_exec_ext in '' $ac_executable_extensions; do
8139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140     ac_cv_prog_ac_ct_OTOOL64="otool64"
8141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142     break 2
8143   fi
8144 done
8145   done
8146 IFS=$as_save_IFS
8147
8148 fi
8149 fi
8150 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8151 if test -n "$ac_ct_OTOOL64"; then
8152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8153 $as_echo "$ac_ct_OTOOL64" >&6; }
8154 else
8155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8157 fi
8158
8159   if test "x$ac_ct_OTOOL64" = x; then
8160     OTOOL64=":"
8161   else
8162     case $cross_compiling:$ac_tool_warned in
8163 yes:)
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8166 ac_tool_warned=yes ;;
8167 esac
8168     OTOOL64=$ac_ct_OTOOL64
8169   fi
8170 else
8171   OTOOL64="$ac_cv_prog_OTOOL64"
8172 fi
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8201 $as_echo_n "checking for -single_module linker flag... " >&6; }
8202 if ${lt_cv_apple_cc_single_mod+:} false; then :
8203   $as_echo_n "(cached) " >&6
8204 else
8205   lt_cv_apple_cc_single_mod=no
8206       if test -z "$LT_MULTI_MODULE"; then
8207         # By default we will add the -single_module flag. You can override
8208         # by either setting the environment variable LT_MULTI_MODULE
8209         # non-empty at configure time, or by adding -multi_module to the
8210         # link flags.
8211         rm -rf libconftest.dylib*
8212         echo "int foo(void){return 1;}" > conftest.c
8213         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8214 -dynamiclib -Wl,-single_module conftest.c" >&5
8215         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8216           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8217         _lt_result=$?
8218         # If there is a non-empty error log, and "single_module"
8219         # appears in it, assume the flag caused a linker warning
8220         if test -s conftest.err && $GREP single_module conftest.err; then
8221           cat conftest.err >&5
8222         # Otherwise, if the output was created with a 0 exit code from
8223         # the compiler, it worked.
8224         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8225           lt_cv_apple_cc_single_mod=yes
8226         else
8227           cat conftest.err >&5
8228         fi
8229         rm -rf libconftest.dylib*
8230         rm -f conftest.*
8231       fi
8232 fi
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8234 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8235
8236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8237 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8238 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8239   $as_echo_n "(cached) " >&6
8240 else
8241   lt_cv_ld_exported_symbols_list=no
8242       save_LDFLAGS=$LDFLAGS
8243       echo "_main" > conftest.sym
8244       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8245       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h.  */
8247
8248 int
8249 main ()
8250 {
8251
8252   ;
8253   return 0;
8254 }
8255 _ACEOF
8256 if ac_fn_c_try_link "$LINENO"; then :
8257   lt_cv_ld_exported_symbols_list=yes
8258 else
8259   lt_cv_ld_exported_symbols_list=no
8260 fi
8261 rm -f core conftest.err conftest.$ac_objext \
8262     conftest$ac_exeext conftest.$ac_ext
8263         LDFLAGS=$save_LDFLAGS
8264
8265 fi
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8267 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8268
8269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8270 $as_echo_n "checking for -force_load linker flag... " >&6; }
8271 if ${lt_cv_ld_force_load+:} false; then :
8272   $as_echo_n "(cached) " >&6
8273 else
8274   lt_cv_ld_force_load=no
8275       cat > conftest.c << _LT_EOF
8276 int forced_loaded() { return 2;}
8277 _LT_EOF
8278       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8279       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8280       echo "$AR cru libconftest.a conftest.o" >&5
8281       $AR cru libconftest.a conftest.o 2>&5
8282       echo "$RANLIB libconftest.a" >&5
8283       $RANLIB libconftest.a 2>&5
8284       cat > conftest.c << _LT_EOF
8285 int main() { return 0;}
8286 _LT_EOF
8287       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8288       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8289       _lt_result=$?
8290       if test -s conftest.err && $GREP force_load conftest.err; then
8291         cat conftest.err >&5
8292       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8293         lt_cv_ld_force_load=yes
8294       else
8295         cat conftest.err >&5
8296       fi
8297         rm -f conftest.err libconftest.a conftest conftest.c
8298         rm -rf conftest.dSYM
8299
8300 fi
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8302 $as_echo "$lt_cv_ld_force_load" >&6; }
8303     case $host_os in
8304     rhapsody* | darwin1.[012])
8305       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8306     darwin1.*)
8307       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8308     darwin*) # darwin 5.x on
8309       # if running on 10.5 or later, the deployment target defaults
8310       # to the OS version, if on x86, and 10.4, the deployment
8311       # target defaults to 10.4. Don't you love it?
8312       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8313         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8314           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8315         10.[012][,.]*)
8316           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8317         10.*)
8318           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8319       esac
8320     ;;
8321   esac
8322     if test yes = "$lt_cv_apple_cc_single_mod"; then
8323       _lt_dar_single_mod='$single_module'
8324     fi
8325     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8326       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8327     else
8328       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8329     fi
8330     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8331       _lt_dsymutil='~$DSYMUTIL $lib || :'
8332     else
8333       _lt_dsymutil=
8334     fi
8335     ;;
8336   esac
8337
8338 # func_munge_path_list VARIABLE PATH
8339 # -----------------------------------
8340 # VARIABLE is name of variable containing _space_ separated list of
8341 # directories to be munged by the contents of PATH, which is string
8342 # having a format:
8343 # "DIR[:DIR]:"
8344 #       string "DIR[ DIR]" will be prepended to VARIABLE
8345 # ":DIR[:DIR]"
8346 #       string "DIR[ DIR]" will be appended to VARIABLE
8347 # "DIRP[:DIRP]::[DIRA:]DIRA"
8348 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8349 #       "DIRA[ DIRA]" will be appended to VARIABLE
8350 # "DIR[:DIR]"
8351 #       VARIABLE will be replaced by "DIR[ DIR]"
8352 func_munge_path_list ()
8353 {
8354     case x$2 in
8355     x)
8356         ;;
8357     *:)
8358         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8359         ;;
8360     x:*)
8361         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8362         ;;
8363     *::*)
8364         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8365         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8366         ;;
8367     *)
8368         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8369         ;;
8370     esac
8371 }
8372
8373 ac_ext=c
8374 ac_cpp='$CPP $CPPFLAGS'
8375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8379 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8380 # On Suns, sometimes $CPP names a directory.
8381 if test -n "$CPP" && test -d "$CPP"; then
8382   CPP=
8383 fi
8384 if test -z "$CPP"; then
8385   if ${ac_cv_prog_CPP+:} false; then :
8386   $as_echo_n "(cached) " >&6
8387 else
8388       # Double quotes because CPP needs to be expanded
8389     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8390     do
8391       ac_preproc_ok=false
8392 for ac_c_preproc_warn_flag in '' yes
8393 do
8394   # Use a header file that comes with gcc, so configuring glibc
8395   # with a fresh cross-compiler works.
8396   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8397   # <limits.h> exists even on freestanding compilers.
8398   # On the NeXT, cc -E runs the code through the compiler's parser,
8399   # not just through cpp. "Syntax error" is here to catch this case.
8400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h.  */
8402 #ifdef __STDC__
8403 # include <limits.h>
8404 #else
8405 # include <assert.h>
8406 #endif
8407                      Syntax error
8408 _ACEOF
8409 if ac_fn_c_try_cpp "$LINENO"; then :
8410
8411 else
8412   # Broken: fails on valid input.
8413 continue
8414 fi
8415 rm -f conftest.err conftest.i conftest.$ac_ext
8416
8417   # OK, works on sane cases.  Now check whether nonexistent headers
8418   # can be detected and how.
8419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h.  */
8421 #include <ac_nonexistent.h>
8422 _ACEOF
8423 if ac_fn_c_try_cpp "$LINENO"; then :
8424   # Broken: success on invalid input.
8425 continue
8426 else
8427   # Passes both tests.
8428 ac_preproc_ok=:
8429 break
8430 fi
8431 rm -f conftest.err conftest.i conftest.$ac_ext
8432
8433 done
8434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8435 rm -f conftest.i conftest.err conftest.$ac_ext
8436 if $ac_preproc_ok; then :
8437   break
8438 fi
8439
8440     done
8441     ac_cv_prog_CPP=$CPP
8442
8443 fi
8444   CPP=$ac_cv_prog_CPP
8445 else
8446   ac_cv_prog_CPP=$CPP
8447 fi
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8449 $as_echo "$CPP" >&6; }
8450 ac_preproc_ok=false
8451 for ac_c_preproc_warn_flag in '' yes
8452 do
8453   # Use a header file that comes with gcc, so configuring glibc
8454   # with a fresh cross-compiler works.
8455   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8456   # <limits.h> exists even on freestanding compilers.
8457   # On the NeXT, cc -E runs the code through the compiler's parser,
8458   # not just through cpp. "Syntax error" is here to catch this case.
8459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h.  */
8461 #ifdef __STDC__
8462 # include <limits.h>
8463 #else
8464 # include <assert.h>
8465 #endif
8466                      Syntax error
8467 _ACEOF
8468 if ac_fn_c_try_cpp "$LINENO"; then :
8469
8470 else
8471   # Broken: fails on valid input.
8472 continue
8473 fi
8474 rm -f conftest.err conftest.i conftest.$ac_ext
8475
8476   # OK, works on sane cases.  Now check whether nonexistent headers
8477   # can be detected and how.
8478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h.  */
8480 #include <ac_nonexistent.h>
8481 _ACEOF
8482 if ac_fn_c_try_cpp "$LINENO"; then :
8483   # Broken: success on invalid input.
8484 continue
8485 else
8486   # Passes both tests.
8487 ac_preproc_ok=:
8488 break
8489 fi
8490 rm -f conftest.err conftest.i conftest.$ac_ext
8491
8492 done
8493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8494 rm -f conftest.i conftest.err conftest.$ac_ext
8495 if $ac_preproc_ok; then :
8496
8497 else
8498   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8500 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8501 See \`config.log' for more details" "$LINENO" 5; }
8502 fi
8503
8504 ac_ext=c
8505 ac_cpp='$CPP $CPPFLAGS'
8506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8509
8510
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8512 $as_echo_n "checking for ANSI C header files... " >&6; }
8513 if ${ac_cv_header_stdc+:} false; then :
8514   $as_echo_n "(cached) " >&6
8515 else
8516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h.  */
8518 #include <stdlib.h>
8519 #include <stdarg.h>
8520 #include <string.h>
8521 #include <float.h>
8522
8523 int
8524 main ()
8525 {
8526
8527   ;
8528   return 0;
8529 }
8530 _ACEOF
8531 if ac_fn_c_try_compile "$LINENO"; then :
8532   ac_cv_header_stdc=yes
8533 else
8534   ac_cv_header_stdc=no
8535 fi
8536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537
8538 if test $ac_cv_header_stdc = yes; then
8539   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h.  */
8542 #include <string.h>
8543
8544 _ACEOF
8545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8546   $EGREP "memchr" >/dev/null 2>&1; then :
8547
8548 else
8549   ac_cv_header_stdc=no
8550 fi
8551 rm -f conftest*
8552
8553 fi
8554
8555 if test $ac_cv_header_stdc = yes; then
8556   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h.  */
8559 #include <stdlib.h>
8560
8561 _ACEOF
8562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8563   $EGREP "free" >/dev/null 2>&1; then :
8564
8565 else
8566   ac_cv_header_stdc=no
8567 fi
8568 rm -f conftest*
8569
8570 fi
8571
8572 if test $ac_cv_header_stdc = yes; then
8573   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8574   if test "$cross_compiling" = yes; then :
8575   :
8576 else
8577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578 /* end confdefs.h.  */
8579 #include <ctype.h>
8580 #include <stdlib.h>
8581 #if ((' ' & 0x0FF) == 0x020)
8582 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8583 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8584 #else
8585 # define ISLOWER(c) \
8586                    (('a' <= (c) && (c) <= 'i') \
8587                      || ('j' <= (c) && (c) <= 'r') \
8588                      || ('s' <= (c) && (c) <= 'z'))
8589 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8590 #endif
8591
8592 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8593 int
8594 main ()
8595 {
8596   int i;
8597   for (i = 0; i < 256; i++)
8598     if (XOR (islower (i), ISLOWER (i))
8599         || toupper (i) != TOUPPER (i))
8600       return 2;
8601   return 0;
8602 }
8603 _ACEOF
8604 if ac_fn_c_try_run "$LINENO"; then :
8605
8606 else
8607   ac_cv_header_stdc=no
8608 fi
8609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8610   conftest.$ac_objext conftest.beam conftest.$ac_ext
8611 fi
8612
8613 fi
8614 fi
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8616 $as_echo "$ac_cv_header_stdc" >&6; }
8617 if test $ac_cv_header_stdc = yes; then
8618
8619 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8620
8621 fi
8622
8623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8624 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8625                   inttypes.h stdint.h unistd.h
8626 do :
8627   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8628 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8629 "
8630 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8631   cat >>confdefs.h <<_ACEOF
8632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8633 _ACEOF
8634
8635 fi
8636
8637 done
8638
8639
8640 for ac_header in dlfcn.h
8641 do :
8642   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8643 "
8644 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8645   cat >>confdefs.h <<_ACEOF
8646 #define HAVE_DLFCN_H 1
8647 _ACEOF
8648
8649 fi
8650
8651 done
8652
8653
8654
8655
8656 func_stripname_cnf ()
8657 {
8658   case $2 in
8659   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8660   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8661   esac
8662 } # func_stripname_cnf
8663
8664
8665
8666
8667
8668 # Set options
8669 enable_win32_dll=yes
8670
8671 case $host in
8672 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8673   if test -n "$ac_tool_prefix"; then
8674   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8675 set dummy ${ac_tool_prefix}as; ac_word=$2
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8677 $as_echo_n "checking for $ac_word... " >&6; }
8678 if ${ac_cv_prog_AS+:} false; then :
8679   $as_echo_n "(cached) " >&6
8680 else
8681   if test -n "$AS"; then
8682   ac_cv_prog_AS="$AS" # Let the user override the test.
8683 else
8684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8685 for as_dir in $PATH
8686 do
8687   IFS=$as_save_IFS
8688   test -z "$as_dir" && as_dir=.
8689     for ac_exec_ext in '' $ac_executable_extensions; do
8690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8691     ac_cv_prog_AS="${ac_tool_prefix}as"
8692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8693     break 2
8694   fi
8695 done
8696   done
8697 IFS=$as_save_IFS
8698
8699 fi
8700 fi
8701 AS=$ac_cv_prog_AS
8702 if test -n "$AS"; then
8703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8704 $as_echo "$AS" >&6; }
8705 else
8706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8707 $as_echo "no" >&6; }
8708 fi
8709
8710
8711 fi
8712 if test -z "$ac_cv_prog_AS"; then
8713   ac_ct_AS=$AS
8714   # Extract the first word of "as", so it can be a program name with args.
8715 set dummy as; ac_word=$2
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8717 $as_echo_n "checking for $ac_word... " >&6; }
8718 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8719   $as_echo_n "(cached) " >&6
8720 else
8721   if test -n "$ac_ct_AS"; then
8722   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8723 else
8724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8725 for as_dir in $PATH
8726 do
8727   IFS=$as_save_IFS
8728   test -z "$as_dir" && as_dir=.
8729     for ac_exec_ext in '' $ac_executable_extensions; do
8730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8731     ac_cv_prog_ac_ct_AS="as"
8732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8733     break 2
8734   fi
8735 done
8736   done
8737 IFS=$as_save_IFS
8738
8739 fi
8740 fi
8741 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8742 if test -n "$ac_ct_AS"; then
8743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8744 $as_echo "$ac_ct_AS" >&6; }
8745 else
8746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8747 $as_echo "no" >&6; }
8748 fi
8749
8750   if test "x$ac_ct_AS" = x; then
8751     AS="false"
8752   else
8753     case $cross_compiling:$ac_tool_warned in
8754 yes:)
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8757 ac_tool_warned=yes ;;
8758 esac
8759     AS=$ac_ct_AS
8760   fi
8761 else
8762   AS="$ac_cv_prog_AS"
8763 fi
8764
8765   if test -n "$ac_tool_prefix"; then
8766   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8767 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8769 $as_echo_n "checking for $ac_word... " >&6; }
8770 if ${ac_cv_prog_DLLTOOL+:} false; then :
8771   $as_echo_n "(cached) " >&6
8772 else
8773   if test -n "$DLLTOOL"; then
8774   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8775 else
8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777 for as_dir in $PATH
8778 do
8779   IFS=$as_save_IFS
8780   test -z "$as_dir" && as_dir=.
8781     for ac_exec_ext in '' $ac_executable_extensions; do
8782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8783     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8785     break 2
8786   fi
8787 done
8788   done
8789 IFS=$as_save_IFS
8790
8791 fi
8792 fi
8793 DLLTOOL=$ac_cv_prog_DLLTOOL
8794 if test -n "$DLLTOOL"; then
8795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8796 $as_echo "$DLLTOOL" >&6; }
8797 else
8798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8800 fi
8801
8802
8803 fi
8804 if test -z "$ac_cv_prog_DLLTOOL"; then
8805   ac_ct_DLLTOOL=$DLLTOOL
8806   # Extract the first word of "dlltool", so it can be a program name with args.
8807 set dummy dlltool; ac_word=$2
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8809 $as_echo_n "checking for $ac_word... " >&6; }
8810 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8811   $as_echo_n "(cached) " >&6
8812 else
8813   if test -n "$ac_ct_DLLTOOL"; then
8814   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8815 else
8816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817 for as_dir in $PATH
8818 do
8819   IFS=$as_save_IFS
8820   test -z "$as_dir" && as_dir=.
8821     for ac_exec_ext in '' $ac_executable_extensions; do
8822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8823     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8825     break 2
8826   fi
8827 done
8828   done
8829 IFS=$as_save_IFS
8830
8831 fi
8832 fi
8833 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8834 if test -n "$ac_ct_DLLTOOL"; then
8835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8836 $as_echo "$ac_ct_DLLTOOL" >&6; }
8837 else
8838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839 $as_echo "no" >&6; }
8840 fi
8841
8842   if test "x$ac_ct_DLLTOOL" = x; then
8843     DLLTOOL="false"
8844   else
8845     case $cross_compiling:$ac_tool_warned in
8846 yes:)
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8849 ac_tool_warned=yes ;;
8850 esac
8851     DLLTOOL=$ac_ct_DLLTOOL
8852   fi
8853 else
8854   DLLTOOL="$ac_cv_prog_DLLTOOL"
8855 fi
8856
8857   if test -n "$ac_tool_prefix"; then
8858   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8859 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if ${ac_cv_prog_OBJDUMP+:} false; then :
8863   $as_echo_n "(cached) " >&6
8864 else
8865   if test -n "$OBJDUMP"; then
8866   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8867 else
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869 for as_dir in $PATH
8870 do
8871   IFS=$as_save_IFS
8872   test -z "$as_dir" && as_dir=.
8873     for ac_exec_ext in '' $ac_executable_extensions; do
8874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8875     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8877     break 2
8878   fi
8879 done
8880   done
8881 IFS=$as_save_IFS
8882
8883 fi
8884 fi
8885 OBJDUMP=$ac_cv_prog_OBJDUMP
8886 if test -n "$OBJDUMP"; then
8887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8888 $as_echo "$OBJDUMP" >&6; }
8889 else
8890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891 $as_echo "no" >&6; }
8892 fi
8893
8894
8895 fi
8896 if test -z "$ac_cv_prog_OBJDUMP"; then
8897   ac_ct_OBJDUMP=$OBJDUMP
8898   # Extract the first word of "objdump", so it can be a program name with args.
8899 set dummy objdump; ac_word=$2
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8901 $as_echo_n "checking for $ac_word... " >&6; }
8902 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8903   $as_echo_n "(cached) " >&6
8904 else
8905   if test -n "$ac_ct_OBJDUMP"; then
8906   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8907 else
8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909 for as_dir in $PATH
8910 do
8911   IFS=$as_save_IFS
8912   test -z "$as_dir" && as_dir=.
8913     for ac_exec_ext in '' $ac_executable_extensions; do
8914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8915     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8917     break 2
8918   fi
8919 done
8920   done
8921 IFS=$as_save_IFS
8922
8923 fi
8924 fi
8925 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8926 if test -n "$ac_ct_OBJDUMP"; then
8927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8928 $as_echo "$ac_ct_OBJDUMP" >&6; }
8929 else
8930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931 $as_echo "no" >&6; }
8932 fi
8933
8934   if test "x$ac_ct_OBJDUMP" = x; then
8935     OBJDUMP="false"
8936   else
8937     case $cross_compiling:$ac_tool_warned in
8938 yes:)
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8941 ac_tool_warned=yes ;;
8942 esac
8943     OBJDUMP=$ac_ct_OBJDUMP
8944   fi
8945 else
8946   OBJDUMP="$ac_cv_prog_OBJDUMP"
8947 fi
8948
8949   ;;
8950 esac
8951
8952 test -z "$AS" && AS=as
8953
8954
8955
8956
8957
8958 test -z "$DLLTOOL" && DLLTOOL=dlltool
8959
8960
8961
8962
8963
8964 test -z "$OBJDUMP" && OBJDUMP=objdump
8965
8966
8967
8968
8969
8970
8971
8972         enable_dlopen=no
8973
8974
8975
8976             # Check whether --enable-shared was given.
8977 if test "${enable_shared+set}" = set; then :
8978   enableval=$enable_shared; p=${PACKAGE-default}
8979     case $enableval in
8980     yes) enable_shared=yes ;;
8981     no) enable_shared=no ;;
8982     *)
8983       enable_shared=no
8984       # Look at the argument we got.  We use all the common list separators.
8985       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8986       for pkg in $enableval; do
8987         IFS=$lt_save_ifs
8988         if test "X$pkg" = "X$p"; then
8989           enable_shared=yes
8990         fi
8991       done
8992       IFS=$lt_save_ifs
8993       ;;
8994     esac
8995 else
8996   enable_shared=yes
8997 fi
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007   # Check whether --enable-static was given.
9008 if test "${enable_static+set}" = set; then :
9009   enableval=$enable_static; p=${PACKAGE-default}
9010     case $enableval in
9011     yes) enable_static=yes ;;
9012     no) enable_static=no ;;
9013     *)
9014      enable_static=no
9015       # Look at the argument we got.  We use all the common list separators.
9016       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9017       for pkg in $enableval; do
9018         IFS=$lt_save_ifs
9019         if test "X$pkg" = "X$p"; then
9020           enable_static=yes
9021         fi
9022       done
9023       IFS=$lt_save_ifs
9024       ;;
9025     esac
9026 else
9027   enable_static=yes
9028 fi
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039 # Check whether --with-pic was given.
9040 if test "${with_pic+set}" = set; then :
9041   withval=$with_pic; lt_p=${PACKAGE-default}
9042     case $withval in
9043     yes|no) pic_mode=$withval ;;
9044     *)
9045       pic_mode=default
9046       # Look at the argument we got.  We use all the common list separators.
9047       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9048       for lt_pkg in $withval; do
9049         IFS=$lt_save_ifs
9050         if test "X$lt_pkg" = "X$lt_p"; then
9051           pic_mode=yes
9052         fi
9053       done
9054       IFS=$lt_save_ifs
9055       ;;
9056     esac
9057 else
9058   pic_mode=default
9059 fi
9060
9061
9062
9063
9064
9065
9066
9067
9068   # Check whether --enable-fast-install was given.
9069 if test "${enable_fast_install+set}" = set; then :
9070   enableval=$enable_fast_install; p=${PACKAGE-default}
9071     case $enableval in
9072     yes) enable_fast_install=yes ;;
9073     no) enable_fast_install=no ;;
9074     *)
9075       enable_fast_install=no
9076       # Look at the argument we got.  We use all the common list separators.
9077       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9078       for pkg in $enableval; do
9079         IFS=$lt_save_ifs
9080         if test "X$pkg" = "X$p"; then
9081           enable_fast_install=yes
9082         fi
9083       done
9084       IFS=$lt_save_ifs
9085       ;;
9086     esac
9087 else
9088   enable_fast_install=yes
9089 fi
9090
9091
9092
9093
9094
9095
9096
9097
9098   shared_archive_member_spec=
9099 case $host,$enable_shared in
9100 power*-*-aix[5-9]*,yes)
9101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9102 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9103
9104 # Check whether --with-aix-soname was given.
9105 if test "${with_aix_soname+set}" = set; then :
9106   withval=$with_aix_soname; case $withval in
9107     aix|svr4|both)
9108       ;;
9109     *)
9110       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9111       ;;
9112     esac
9113     lt_cv_with_aix_soname=$with_aix_soname
9114 else
9115   if ${lt_cv_with_aix_soname+:} false; then :
9116   $as_echo_n "(cached) " >&6
9117 else
9118   lt_cv_with_aix_soname=aix
9119 fi
9120
9121     with_aix_soname=$lt_cv_with_aix_soname
9122 fi
9123
9124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9125 $as_echo "$with_aix_soname" >&6; }
9126   if test aix != "$with_aix_soname"; then
9127     # For the AIX way of multilib, we name the shared archive member
9128     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9129     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9130     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9131     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9132     if test 64 = "${OBJECT_MODE-32}"; then
9133       shared_archive_member_spec=shr_64
9134     else
9135       shared_archive_member_spec=shr
9136     fi
9137   fi
9138   ;;
9139 *)
9140   with_aix_soname=aix
9141   ;;
9142 esac
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153 # This can be used to rebuild libtool when needed
9154 LIBTOOL_DEPS=$ltmain
9155
9156 # Always use our own libtool.
9157 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188 test -z "$LN_S" && LN_S="ln -s"
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203 if test -n "${ZSH_VERSION+set}"; then
9204    setopt NO_GLOB_SUBST
9205 fi
9206
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9208 $as_echo_n "checking for objdir... " >&6; }
9209 if ${lt_cv_objdir+:} false; then :
9210   $as_echo_n "(cached) " >&6
9211 else
9212   rm -f .libs 2>/dev/null
9213 mkdir .libs 2>/dev/null
9214 if test -d .libs; then
9215   lt_cv_objdir=.libs
9216 else
9217   # MS-DOS does not allow filenames that begin with a dot.
9218   lt_cv_objdir=_libs
9219 fi
9220 rmdir .libs 2>/dev/null
9221 fi
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9223 $as_echo "$lt_cv_objdir" >&6; }
9224 objdir=$lt_cv_objdir
9225
9226
9227
9228
9229
9230 cat >>confdefs.h <<_ACEOF
9231 #define LT_OBJDIR "$lt_cv_objdir/"
9232 _ACEOF
9233
9234
9235
9236
9237 case $host_os in
9238 aix3*)
9239   # AIX sometimes has problems with the GCC collect2 program.  For some
9240   # reason, if we set the COLLECT_NAMES environment variable, the problems
9241   # vanish in a puff of smoke.
9242   if test set != "${COLLECT_NAMES+set}"; then
9243     COLLECT_NAMES=
9244     export COLLECT_NAMES
9245   fi
9246   ;;
9247 esac
9248
9249 # Global variables:
9250 ofile=libtool
9251 can_build_shared=yes
9252
9253 # All known linkers require a '.a' archive for static linking (except MSVC,
9254 # which needs '.lib').
9255 libext=a
9256
9257 with_gnu_ld=$lt_cv_prog_gnu_ld
9258
9259 old_CC=$CC
9260 old_CFLAGS=$CFLAGS
9261
9262 # Set sane defaults for various variables
9263 test -z "$CC" && CC=cc
9264 test -z "$LTCC" && LTCC=$CC
9265 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9266 test -z "$LD" && LD=ld
9267 test -z "$ac_objext" && ac_objext=o
9268
9269 func_cc_basename $compiler
9270 cc_basename=$func_cc_basename_result
9271
9272
9273 # Only perform the check for file, if the check method requires it
9274 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9275 case $deplibs_check_method in
9276 file_magic*)
9277   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9279 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9280 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9281   $as_echo_n "(cached) " >&6
9282 else
9283   case $MAGIC_CMD in
9284 [\\/*] |  ?:[\\/]*)
9285   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9286   ;;
9287 *)
9288   lt_save_MAGIC_CMD=$MAGIC_CMD
9289   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9290   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9291   for ac_dir in $ac_dummy; do
9292     IFS=$lt_save_ifs
9293     test -z "$ac_dir" && ac_dir=.
9294     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9295       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9296       if test -n "$file_magic_test_file"; then
9297         case $deplibs_check_method in
9298         "file_magic "*)
9299           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9300           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9301           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9302             $EGREP "$file_magic_regex" > /dev/null; then
9303             :
9304           else
9305             cat <<_LT_EOF 1>&2
9306
9307 *** Warning: the command libtool uses to detect shared libraries,
9308 *** $file_magic_cmd, produces output that libtool cannot recognize.
9309 *** The result is that libtool may fail to recognize shared libraries
9310 *** as such.  This will affect the creation of libtool libraries that
9311 *** depend on shared libraries, but programs linked with such libtool
9312 *** libraries will work regardless of this problem.  Nevertheless, you
9313 *** may want to report the problem to your system manager and/or to
9314 *** bug-libtool@gnu.org
9315
9316 _LT_EOF
9317           fi ;;
9318         esac
9319       fi
9320       break
9321     fi
9322   done
9323   IFS=$lt_save_ifs
9324   MAGIC_CMD=$lt_save_MAGIC_CMD
9325   ;;
9326 esac
9327 fi
9328
9329 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9330 if test -n "$MAGIC_CMD"; then
9331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9332 $as_echo "$MAGIC_CMD" >&6; }
9333 else
9334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9335 $as_echo "no" >&6; }
9336 fi
9337
9338
9339
9340
9341
9342 if test -z "$lt_cv_path_MAGIC_CMD"; then
9343   if test -n "$ac_tool_prefix"; then
9344     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9345 $as_echo_n "checking for file... " >&6; }
9346 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9347   $as_echo_n "(cached) " >&6
9348 else
9349   case $MAGIC_CMD in
9350 [\\/*] |  ?:[\\/]*)
9351   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9352   ;;
9353 *)
9354   lt_save_MAGIC_CMD=$MAGIC_CMD
9355   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9356   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9357   for ac_dir in $ac_dummy; do
9358     IFS=$lt_save_ifs
9359     test -z "$ac_dir" && ac_dir=.
9360     if test -f "$ac_dir/file"; then
9361       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9362       if test -n "$file_magic_test_file"; then
9363         case $deplibs_check_method in
9364         "file_magic "*)
9365           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9366           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9367           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9368             $EGREP "$file_magic_regex" > /dev/null; then
9369             :
9370           else
9371             cat <<_LT_EOF 1>&2
9372
9373 *** Warning: the command libtool uses to detect shared libraries,
9374 *** $file_magic_cmd, produces output that libtool cannot recognize.
9375 *** The result is that libtool may fail to recognize shared libraries
9376 *** as such.  This will affect the creation of libtool libraries that
9377 *** depend on shared libraries, but programs linked with such libtool
9378 *** libraries will work regardless of this problem.  Nevertheless, you
9379 *** may want to report the problem to your system manager and/or to
9380 *** bug-libtool@gnu.org
9381
9382 _LT_EOF
9383           fi ;;
9384         esac
9385       fi
9386       break
9387     fi
9388   done
9389   IFS=$lt_save_ifs
9390   MAGIC_CMD=$lt_save_MAGIC_CMD
9391   ;;
9392 esac
9393 fi
9394
9395 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9396 if test -n "$MAGIC_CMD"; then
9397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9398 $as_echo "$MAGIC_CMD" >&6; }
9399 else
9400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401 $as_echo "no" >&6; }
9402 fi
9403
9404
9405   else
9406     MAGIC_CMD=:
9407   fi
9408 fi
9409
9410   fi
9411   ;;
9412 esac
9413
9414 # Use C for the default configuration in the libtool script
9415
9416 lt_save_CC=$CC
9417 ac_ext=c
9418 ac_cpp='$CPP $CPPFLAGS'
9419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9422
9423
9424 # Source file extension for C test sources.
9425 ac_ext=c
9426
9427 # Object file extension for compiled C test sources.
9428 objext=o
9429 objext=$objext
9430
9431 # Code to be used in simple compile tests
9432 lt_simple_compile_test_code="int some_variable = 0;"
9433
9434 # Code to be used in simple link tests
9435 lt_simple_link_test_code='int main(){return(0);}'
9436
9437
9438
9439
9440
9441
9442
9443 # If no C compiler was specified, use CC.
9444 LTCC=${LTCC-"$CC"}
9445
9446 # If no C compiler flags were specified, use CFLAGS.
9447 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9448
9449 # Allow CC to be a program name with arguments.
9450 compiler=$CC
9451
9452 # Save the default compiler, since it gets overwritten when the other
9453 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9454 compiler_DEFAULT=$CC
9455
9456 # save warnings/boilerplate of simple test code
9457 ac_outfile=conftest.$ac_objext
9458 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9459 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9460 _lt_compiler_boilerplate=`cat conftest.err`
9461 $RM conftest*
9462
9463 ac_outfile=conftest.$ac_objext
9464 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9465 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9466 _lt_linker_boilerplate=`cat conftest.err`
9467 $RM -r conftest*
9468
9469
9470 ## CAVEAT EMPTOR:
9471 ## There is no encapsulation within the following macros, do not change
9472 ## the running order or otherwise move them around unless you know exactly
9473 ## what you are doing...
9474 if test -n "$compiler"; then
9475
9476 lt_prog_compiler_no_builtin_flag=
9477
9478 if test yes = "$GCC"; then
9479   case $cc_basename in
9480   nvcc*)
9481     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9482   *)
9483     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9484   esac
9485
9486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9487 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9488 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9489   $as_echo_n "(cached) " >&6
9490 else
9491   lt_cv_prog_compiler_rtti_exceptions=no
9492    ac_outfile=conftest.$ac_objext
9493    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9494    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9495    # Insert the option either (1) after the last *FLAGS variable, or
9496    # (2) before a word containing "conftest.", or (3) at the end.
9497    # Note that $ac_compile itself does not contain backslashes and begins
9498    # with a dollar sign (not a hyphen), so the echo should work correctly.
9499    # The option is referenced via a variable to avoid confusing sed.
9500    lt_compile=`echo "$ac_compile" | $SED \
9501    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9502    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9503    -e 's:$: $lt_compiler_flag:'`
9504    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9505    (eval "$lt_compile" 2>conftest.err)
9506    ac_status=$?
9507    cat conftest.err >&5
9508    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509    if (exit $ac_status) && test -s "$ac_outfile"; then
9510      # The compiler can only warn and ignore the option if not recognized
9511      # So say no if there are warnings other than the usual output.
9512      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9513      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9514      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9515        lt_cv_prog_compiler_rtti_exceptions=yes
9516      fi
9517    fi
9518    $RM conftest*
9519
9520 fi
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9522 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9523
9524 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9525     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9526 else
9527     :
9528 fi
9529
9530 fi
9531
9532
9533
9534
9535
9536
9537   lt_prog_compiler_wl=
9538 lt_prog_compiler_pic=
9539 lt_prog_compiler_static=
9540
9541
9542   if test yes = "$GCC"; then
9543     lt_prog_compiler_wl='-Wl,'
9544     lt_prog_compiler_static='-static'
9545
9546     case $host_os in
9547       aix*)
9548       # All AIX code is PIC.
9549       if test ia64 = "$host_cpu"; then
9550         # AIX 5 now supports IA64 processor
9551         lt_prog_compiler_static='-Bstatic'
9552       fi
9553       lt_prog_compiler_pic='-fPIC'
9554       ;;
9555
9556     amigaos*)
9557       case $host_cpu in
9558       powerpc)
9559             # see comment about AmigaOS4 .so support
9560             lt_prog_compiler_pic='-fPIC'
9561         ;;
9562       m68k)
9563             # FIXME: we need at least 68020 code to build shared libraries, but
9564             # adding the '-m68020' flag to GCC prevents building anything better,
9565             # like '-m68040'.
9566             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9567         ;;
9568       esac
9569       ;;
9570
9571     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9572       # PIC is the default for these OSes.
9573       ;;
9574
9575     mingw* | cygwin* | pw32* | os2* | cegcc*)
9576       # This hack is so that the source file can tell whether it is being
9577       # built for inclusion in a dll (and should export symbols for example).
9578       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9579       # (--disable-auto-import) libraries
9580       lt_prog_compiler_pic='-DDLL_EXPORT'
9581       case $host_os in
9582       os2*)
9583         lt_prog_compiler_static='$wl-static'
9584         ;;
9585       esac
9586       ;;
9587
9588     darwin* | rhapsody*)
9589       # PIC is the default on this platform
9590       # Common symbols not allowed in MH_DYLIB files
9591       lt_prog_compiler_pic='-fno-common'
9592       ;;
9593
9594     haiku*)
9595       # PIC is the default for Haiku.
9596       # The "-static" flag exists, but is broken.
9597       lt_prog_compiler_static=
9598       ;;
9599
9600     hpux*)
9601       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9602       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9603       # sets the default TLS model and affects inlining.
9604       case $host_cpu in
9605       hppa*64*)
9606         # +Z the default
9607         ;;
9608       *)
9609         lt_prog_compiler_pic='-fPIC'
9610         ;;
9611       esac
9612       ;;
9613
9614     interix[3-9]*)
9615       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9616       # Instead, we relocate shared libraries at runtime.
9617       ;;
9618
9619     msdosdjgpp*)
9620       # Just because we use GCC doesn't mean we suddenly get shared libraries
9621       # on systems that don't support them.
9622       lt_prog_compiler_can_build_shared=no
9623       enable_shared=no
9624       ;;
9625
9626     *nto* | *qnx*)
9627       # QNX uses GNU C++, but need to define -shared option too, otherwise
9628       # it will coredump.
9629       lt_prog_compiler_pic='-fPIC -shared'
9630       ;;
9631
9632     sysv4*MP*)
9633       if test -d /usr/nec; then
9634         lt_prog_compiler_pic=-Kconform_pic
9635       fi
9636       ;;
9637
9638     *)
9639       lt_prog_compiler_pic='-fPIC'
9640       ;;
9641     esac
9642
9643     case $cc_basename in
9644     nvcc*) # Cuda Compiler Driver 2.2
9645       lt_prog_compiler_wl='-Xlinker '
9646       if test -n "$lt_prog_compiler_pic"; then
9647         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9648       fi
9649       ;;
9650     esac
9651   else
9652     # PORTME Check for flag to pass linker flags through the system compiler.
9653     case $host_os in
9654     aix*)
9655       lt_prog_compiler_wl='-Wl,'
9656       if test ia64 = "$host_cpu"; then
9657         # AIX 5 now supports IA64 processor
9658         lt_prog_compiler_static='-Bstatic'
9659       else
9660         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9661       fi
9662       ;;
9663
9664     darwin* | rhapsody*)
9665       # PIC is the default on this platform
9666       # Common symbols not allowed in MH_DYLIB files
9667       lt_prog_compiler_pic='-fno-common'
9668       case $cc_basename in
9669       nagfor*)
9670         # NAG Fortran compiler
9671         lt_prog_compiler_wl='-Wl,-Wl,,'
9672         lt_prog_compiler_pic='-PIC'
9673         lt_prog_compiler_static='-Bstatic'
9674         ;;
9675       esac
9676       ;;
9677
9678     mingw* | cygwin* | pw32* | os2* | cegcc*)
9679       # This hack is so that the source file can tell whether it is being
9680       # built for inclusion in a dll (and should export symbols for example).
9681       lt_prog_compiler_pic='-DDLL_EXPORT'
9682       case $host_os in
9683       os2*)
9684         lt_prog_compiler_static='$wl-static'
9685         ;;
9686       esac
9687       ;;
9688
9689     hpux9* | hpux10* | hpux11*)
9690       lt_prog_compiler_wl='-Wl,'
9691       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9692       # not for PA HP-UX.
9693       case $host_cpu in
9694       hppa*64*|ia64*)
9695         # +Z the default
9696         ;;
9697       *)
9698         lt_prog_compiler_pic='+Z'
9699         ;;
9700       esac
9701       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9702       lt_prog_compiler_static='$wl-a ${wl}archive'
9703       ;;
9704
9705     irix5* | irix6* | nonstopux*)
9706       lt_prog_compiler_wl='-Wl,'
9707       # PIC (with -KPIC) is the default.
9708       lt_prog_compiler_static='-non_shared'
9709       ;;
9710
9711     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9712       case $cc_basename in
9713       # old Intel for x86_64, which still supported -KPIC.
9714       ecc*)
9715         lt_prog_compiler_wl='-Wl,'
9716         lt_prog_compiler_pic='-KPIC'
9717         lt_prog_compiler_static='-static'
9718         ;;
9719       # icc used to be incompatible with GCC.
9720       # ICC 10 doesn't accept -KPIC any more.
9721       icc* | ifort*)
9722         lt_prog_compiler_wl='-Wl,'
9723         lt_prog_compiler_pic='-fPIC'
9724         lt_prog_compiler_static='-static'
9725         ;;
9726       # Lahey Fortran 8.1.
9727       lf95*)
9728         lt_prog_compiler_wl='-Wl,'
9729         lt_prog_compiler_pic='--shared'
9730         lt_prog_compiler_static='--static'
9731         ;;
9732       nagfor*)
9733         # NAG Fortran compiler
9734         lt_prog_compiler_wl='-Wl,-Wl,,'
9735         lt_prog_compiler_pic='-PIC'
9736         lt_prog_compiler_static='-Bstatic'
9737         ;;
9738       tcc*)
9739         # Fabrice Bellard et al's Tiny C Compiler
9740         lt_prog_compiler_wl='-Wl,'
9741         lt_prog_compiler_pic='-fPIC'
9742         lt_prog_compiler_static='-static'
9743         ;;
9744       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9745         # Portland Group compilers (*not* the Pentium gcc compiler,
9746         # which looks to be a dead project)
9747         lt_prog_compiler_wl='-Wl,'
9748         lt_prog_compiler_pic='-fpic'
9749         lt_prog_compiler_static='-Bstatic'
9750         ;;
9751       ccc*)
9752         lt_prog_compiler_wl='-Wl,'
9753         # All Alpha code is PIC.
9754         lt_prog_compiler_static='-non_shared'
9755         ;;
9756       xl* | bgxl* | bgf* | mpixl*)
9757         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9758         lt_prog_compiler_wl='-Wl,'
9759         lt_prog_compiler_pic='-qpic'
9760         lt_prog_compiler_static='-qstaticlink'
9761         ;;
9762       *)
9763         case `$CC -V 2>&1 | sed 5q` in
9764         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9765           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9766           lt_prog_compiler_pic='-KPIC'
9767           lt_prog_compiler_static='-Bstatic'
9768           lt_prog_compiler_wl=''
9769           ;;
9770         *Sun\ F* | *Sun*Fortran*)
9771           lt_prog_compiler_pic='-KPIC'
9772           lt_prog_compiler_static='-Bstatic'
9773           lt_prog_compiler_wl='-Qoption ld '
9774           ;;
9775         *Sun\ C*)
9776           # Sun C 5.9
9777           lt_prog_compiler_pic='-KPIC'
9778           lt_prog_compiler_static='-Bstatic'
9779           lt_prog_compiler_wl='-Wl,'
9780           ;;
9781         *Intel*\ [CF]*Compiler*)
9782           lt_prog_compiler_wl='-Wl,'
9783           lt_prog_compiler_pic='-fPIC'
9784           lt_prog_compiler_static='-static'
9785           ;;
9786         *Portland\ Group*)
9787           lt_prog_compiler_wl='-Wl,'
9788           lt_prog_compiler_pic='-fpic'
9789           lt_prog_compiler_static='-Bstatic'
9790           ;;
9791         esac
9792         ;;
9793       esac
9794       ;;
9795
9796     newsos6)
9797       lt_prog_compiler_pic='-KPIC'
9798       lt_prog_compiler_static='-Bstatic'
9799       ;;
9800
9801     *nto* | *qnx*)
9802       # QNX uses GNU C++, but need to define -shared option too, otherwise
9803       # it will coredump.
9804       lt_prog_compiler_pic='-fPIC -shared'
9805       ;;
9806
9807     osf3* | osf4* | osf5*)
9808       lt_prog_compiler_wl='-Wl,'
9809       # All OSF/1 code is PIC.
9810       lt_prog_compiler_static='-non_shared'
9811       ;;
9812
9813     rdos*)
9814       lt_prog_compiler_static='-non_shared'
9815       ;;
9816
9817     solaris*)
9818       lt_prog_compiler_pic='-KPIC'
9819       lt_prog_compiler_static='-Bstatic'
9820       case $cc_basename in
9821       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9822         lt_prog_compiler_wl='-Qoption ld ';;
9823       *)
9824         lt_prog_compiler_wl='-Wl,';;
9825       esac
9826       ;;
9827
9828     sunos4*)
9829       lt_prog_compiler_wl='-Qoption ld '
9830       lt_prog_compiler_pic='-PIC'
9831       lt_prog_compiler_static='-Bstatic'
9832       ;;
9833
9834     sysv4 | sysv4.2uw2* | sysv4.3*)
9835       lt_prog_compiler_wl='-Wl,'
9836       lt_prog_compiler_pic='-KPIC'
9837       lt_prog_compiler_static='-Bstatic'
9838       ;;
9839
9840     sysv4*MP*)
9841       if test -d /usr/nec; then
9842         lt_prog_compiler_pic='-Kconform_pic'
9843         lt_prog_compiler_static='-Bstatic'
9844       fi
9845       ;;
9846
9847     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9848       lt_prog_compiler_wl='-Wl,'
9849       lt_prog_compiler_pic='-KPIC'
9850       lt_prog_compiler_static='-Bstatic'
9851       ;;
9852
9853     unicos*)
9854       lt_prog_compiler_wl='-Wl,'
9855       lt_prog_compiler_can_build_shared=no
9856       ;;
9857
9858     uts4*)
9859       lt_prog_compiler_pic='-pic'
9860       lt_prog_compiler_static='-Bstatic'
9861       ;;
9862
9863     *)
9864       lt_prog_compiler_can_build_shared=no
9865       ;;
9866     esac
9867   fi
9868
9869 case $host_os in
9870   # For platforms that do not support PIC, -DPIC is meaningless:
9871   *djgpp*)
9872     lt_prog_compiler_pic=
9873     ;;
9874   *)
9875     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9876     ;;
9877 esac
9878
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9880 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9881 if ${lt_cv_prog_compiler_pic+:} false; then :
9882   $as_echo_n "(cached) " >&6
9883 else
9884   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9885 fi
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9887 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9888 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9889
9890 #
9891 # Check to make sure the PIC flag actually works.
9892 #
9893 if test -n "$lt_prog_compiler_pic"; then
9894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9895 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9896 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9897   $as_echo_n "(cached) " >&6
9898 else
9899   lt_cv_prog_compiler_pic_works=no
9900    ac_outfile=conftest.$ac_objext
9901    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9902    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9903    # Insert the option either (1) after the last *FLAGS variable, or
9904    # (2) before a word containing "conftest.", or (3) at the end.
9905    # Note that $ac_compile itself does not contain backslashes and begins
9906    # with a dollar sign (not a hyphen), so the echo should work correctly.
9907    # The option is referenced via a variable to avoid confusing sed.
9908    lt_compile=`echo "$ac_compile" | $SED \
9909    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9910    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9911    -e 's:$: $lt_compiler_flag:'`
9912    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9913    (eval "$lt_compile" 2>conftest.err)
9914    ac_status=$?
9915    cat conftest.err >&5
9916    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917    if (exit $ac_status) && test -s "$ac_outfile"; then
9918      # The compiler can only warn and ignore the option if not recognized
9919      # So say no if there are warnings other than the usual output.
9920      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9921      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9922      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9923        lt_cv_prog_compiler_pic_works=yes
9924      fi
9925    fi
9926    $RM conftest*
9927
9928 fi
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9930 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9931
9932 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9933     case $lt_prog_compiler_pic in
9934      "" | " "*) ;;
9935      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9936      esac
9937 else
9938     lt_prog_compiler_pic=
9939      lt_prog_compiler_can_build_shared=no
9940 fi
9941
9942 fi
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954 #
9955 # Check to make sure the static flag actually works.
9956 #
9957 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9959 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9960 if ${lt_cv_prog_compiler_static_works+:} false; then :
9961   $as_echo_n "(cached) " >&6
9962 else
9963   lt_cv_prog_compiler_static_works=no
9964    save_LDFLAGS=$LDFLAGS
9965    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9966    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9967    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9968      # The linker can only warn and ignore the option if not recognized
9969      # So say no if there are warnings
9970      if test -s conftest.err; then
9971        # Append any errors to the config.log.
9972        cat conftest.err 1>&5
9973        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9974        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9975        if diff conftest.exp conftest.er2 >/dev/null; then
9976          lt_cv_prog_compiler_static_works=yes
9977        fi
9978      else
9979        lt_cv_prog_compiler_static_works=yes
9980      fi
9981    fi
9982    $RM -r conftest*
9983    LDFLAGS=$save_LDFLAGS
9984
9985 fi
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9987 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9988
9989 if test yes = "$lt_cv_prog_compiler_static_works"; then
9990     :
9991 else
9992     lt_prog_compiler_static=
9993 fi
9994
9995
9996
9997
9998
9999
10000
10001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10002 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10003 if ${lt_cv_prog_compiler_c_o+:} false; then :
10004   $as_echo_n "(cached) " >&6
10005 else
10006   lt_cv_prog_compiler_c_o=no
10007    $RM -r conftest 2>/dev/null
10008    mkdir conftest
10009    cd conftest
10010    mkdir out
10011    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10012
10013    lt_compiler_flag="-o out/conftest2.$ac_objext"
10014    # Insert the option either (1) after the last *FLAGS variable, or
10015    # (2) before a word containing "conftest.", or (3) at the end.
10016    # Note that $ac_compile itself does not contain backslashes and begins
10017    # with a dollar sign (not a hyphen), so the echo should work correctly.
10018    lt_compile=`echo "$ac_compile" | $SED \
10019    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10020    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10021    -e 's:$: $lt_compiler_flag:'`
10022    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10023    (eval "$lt_compile" 2>out/conftest.err)
10024    ac_status=$?
10025    cat out/conftest.err >&5
10026    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10028    then
10029      # The compiler can only warn and ignore the option if not recognized
10030      # So say no if there are warnings
10031      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10032      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10033      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10034        lt_cv_prog_compiler_c_o=yes
10035      fi
10036    fi
10037    chmod u+w . 2>&5
10038    $RM conftest*
10039    # SGI C++ compiler will create directory out/ii_files/ for
10040    # template instantiation
10041    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10042    $RM out/* && rmdir out
10043    cd ..
10044    $RM -r conftest
10045    $RM conftest*
10046
10047 fi
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10049 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10050
10051
10052
10053
10054
10055
10056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10057 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10058 if ${lt_cv_prog_compiler_c_o+:} false; then :
10059   $as_echo_n "(cached) " >&6
10060 else
10061   lt_cv_prog_compiler_c_o=no
10062    $RM -r conftest 2>/dev/null
10063    mkdir conftest
10064    cd conftest
10065    mkdir out
10066    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10067
10068    lt_compiler_flag="-o out/conftest2.$ac_objext"
10069    # Insert the option either (1) after the last *FLAGS variable, or
10070    # (2) before a word containing "conftest.", or (3) at the end.
10071    # Note that $ac_compile itself does not contain backslashes and begins
10072    # with a dollar sign (not a hyphen), so the echo should work correctly.
10073    lt_compile=`echo "$ac_compile" | $SED \
10074    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10075    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10076    -e 's:$: $lt_compiler_flag:'`
10077    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10078    (eval "$lt_compile" 2>out/conftest.err)
10079    ac_status=$?
10080    cat out/conftest.err >&5
10081    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10083    then
10084      # The compiler can only warn and ignore the option if not recognized
10085      # So say no if there are warnings
10086      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10087      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10088      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10089        lt_cv_prog_compiler_c_o=yes
10090      fi
10091    fi
10092    chmod u+w . 2>&5
10093    $RM conftest*
10094    # SGI C++ compiler will create directory out/ii_files/ for
10095    # template instantiation
10096    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10097    $RM out/* && rmdir out
10098    cd ..
10099    $RM -r conftest
10100    $RM conftest*
10101
10102 fi
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10104 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10105
10106
10107
10108
10109 hard_links=nottested
10110 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10111   # do not overwrite the value of need_locks provided by the user
10112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10113 $as_echo_n "checking if we can lock with hard links... " >&6; }
10114   hard_links=yes
10115   $RM conftest*
10116   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10117   touch conftest.a
10118   ln conftest.a conftest.b 2>&5 || hard_links=no
10119   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10121 $as_echo "$hard_links" >&6; }
10122   if test no = "$hard_links"; then
10123     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10124 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10125     need_locks=warn
10126   fi
10127 else
10128   need_locks=no
10129 fi
10130
10131
10132
10133
10134
10135
10136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10137 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10138
10139   runpath_var=
10140   allow_undefined_flag=
10141   always_export_symbols=no
10142   archive_cmds=
10143   archive_expsym_cmds=
10144   compiler_needs_object=no
10145   enable_shared_with_static_runtimes=no
10146   export_dynamic_flag_spec=
10147   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10148   hardcode_automatic=no
10149   hardcode_direct=no
10150   hardcode_direct_absolute=no
10151   hardcode_libdir_flag_spec=
10152   hardcode_libdir_separator=
10153   hardcode_minus_L=no
10154   hardcode_shlibpath_var=unsupported
10155   inherit_rpath=no
10156   link_all_deplibs=unknown
10157   module_cmds=
10158   module_expsym_cmds=
10159   old_archive_from_new_cmds=
10160   old_archive_from_expsyms_cmds=
10161   thread_safe_flag_spec=
10162   whole_archive_flag_spec=
10163   # include_expsyms should be a list of space-separated symbols to be *always*
10164   # included in the symbol list
10165   include_expsyms=
10166   # exclude_expsyms can be an extended regexp of symbols to exclude
10167   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10168   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10169   # as well as any symbol that contains 'd'.
10170   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10171   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10172   # platforms (ab)use it in PIC code, but their linkers get confused if
10173   # the symbol is explicitly referenced.  Since portable code cannot
10174   # rely on this symbol name, it's probably fine to never include it in
10175   # preloaded symbol tables.
10176   # Exclude shared library initialization/finalization symbols.
10177   extract_expsyms_cmds=
10178
10179   case $host_os in
10180   cygwin* | mingw* | pw32* | cegcc*)
10181     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10182     # When not using gcc, we currently assume that we are using
10183     # Microsoft Visual C++.
10184     if test yes != "$GCC"; then
10185       with_gnu_ld=no
10186     fi
10187     ;;
10188   interix*)
10189     # we just hope/assume this is gcc and not c89 (= MSVC++)
10190     with_gnu_ld=yes
10191     ;;
10192   openbsd* | bitrig*)
10193     with_gnu_ld=no
10194     ;;
10195   linux* | k*bsd*-gnu | gnu*)
10196     link_all_deplibs=no
10197     ;;
10198   esac
10199
10200   ld_shlibs=yes
10201
10202   # On some targets, GNU ld is compatible enough with the native linker
10203   # that we're better off using the native interface for both.
10204   lt_use_gnu_ld_interface=no
10205   if test yes = "$with_gnu_ld"; then
10206     case $host_os in
10207       aix*)
10208         # The AIX port of GNU ld has always aspired to compatibility
10209         # with the native linker.  However, as the warning in the GNU ld
10210         # block says, versions before 2.19.5* couldn't really create working
10211         # shared libraries, regardless of the interface used.
10212         case `$LD -v 2>&1` in
10213           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10214           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10215           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10216           *)
10217             lt_use_gnu_ld_interface=yes
10218             ;;
10219         esac
10220         ;;
10221       *)
10222         lt_use_gnu_ld_interface=yes
10223         ;;
10224     esac
10225   fi
10226
10227   if test yes = "$lt_use_gnu_ld_interface"; then
10228     # If archive_cmds runs LD, not CC, wlarc should be empty
10229     wlarc='$wl'
10230
10231     # Set some defaults for GNU ld with shared library support. These
10232     # are reset later if shared libraries are not supported. Putting them
10233     # here allows them to be overridden if necessary.
10234     runpath_var=LD_RUN_PATH
10235     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10236     export_dynamic_flag_spec='$wl--export-dynamic'
10237     # ancient GNU ld didn't support --whole-archive et. al.
10238     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10239       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10240     else
10241       whole_archive_flag_spec=
10242     fi
10243     supports_anon_versioning=no
10244     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10245       *GNU\ gold*) supports_anon_versioning=yes ;;
10246       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10247       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10248       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10249       *\ 2.11.*) ;; # other 2.11 versions
10250       *) supports_anon_versioning=yes ;;
10251     esac
10252
10253     # See if GNU ld supports shared libraries.
10254     case $host_os in
10255     aix[3-9]*)
10256       # On AIX/PPC, the GNU linker is very broken
10257       if test ia64 != "$host_cpu"; then
10258         ld_shlibs=no
10259         cat <<_LT_EOF 1>&2
10260
10261 *** Warning: the GNU linker, at least up to release 2.19, is reported
10262 *** to be unable to reliably create shared libraries on AIX.
10263 *** Therefore, libtool is disabling shared libraries support.  If you
10264 *** really care for shared libraries, you may want to install binutils
10265 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10266 *** You will then need to restart the configuration process.
10267
10268 _LT_EOF
10269       fi
10270       ;;
10271
10272     amigaos*)
10273       case $host_cpu in
10274       powerpc)
10275             # see comment about AmigaOS4 .so support
10276             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10277             archive_expsym_cmds=''
10278         ;;
10279       m68k)
10280             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)'
10281             hardcode_libdir_flag_spec='-L$libdir'
10282             hardcode_minus_L=yes
10283         ;;
10284       esac
10285       ;;
10286
10287     beos*)
10288       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10289         allow_undefined_flag=unsupported
10290         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10291         # support --undefined.  This deserves some investigation.  FIXME
10292         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10293       else
10294         ld_shlibs=no
10295       fi
10296       ;;
10297
10298     cygwin* | mingw* | pw32* | cegcc*)
10299       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10300       # as there is no search path for DLLs.
10301       hardcode_libdir_flag_spec='-L$libdir'
10302       export_dynamic_flag_spec='$wl--export-all-symbols'
10303       allow_undefined_flag=unsupported
10304       always_export_symbols=no
10305       enable_shared_with_static_runtimes=yes
10306       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'
10307       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10308
10309       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10310         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10311         # If the export-symbols file already is a .def file, use it as
10312         # is; otherwise, prepend EXPORTS...
10313         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10314           cp $export_symbols $output_objdir/$soname.def;
10315         else
10316           echo EXPORTS > $output_objdir/$soname.def;
10317           cat $export_symbols >> $output_objdir/$soname.def;
10318         fi~
10319         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10320       else
10321         ld_shlibs=no
10322       fi
10323       ;;
10324
10325     haiku*)
10326       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10327       link_all_deplibs=yes
10328       ;;
10329
10330     os2*)
10331       hardcode_libdir_flag_spec='-L$libdir'
10332       hardcode_minus_L=yes
10333       allow_undefined_flag=unsupported
10334       shrext_cmds=.dll
10335       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10336         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10337         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10338         $ECHO EXPORTS >> $output_objdir/$libname.def~
10339         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10340         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10341         emximp -o $lib $output_objdir/$libname.def'
10342       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10343         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10344         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10345         $ECHO EXPORTS >> $output_objdir/$libname.def~
10346         prefix_cmds="$SED"~
10347         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10348           prefix_cmds="$prefix_cmds -e 1d";
10349         fi~
10350         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10351         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10352         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10353         emximp -o $lib $output_objdir/$libname.def'
10354       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10355       enable_shared_with_static_runtimes=yes
10356       ;;
10357
10358     interix[3-9]*)
10359       hardcode_direct=no
10360       hardcode_shlibpath_var=no
10361       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10362       export_dynamic_flag_spec='$wl-E'
10363       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10364       # Instead, shared libraries are loaded at an image base (0x10000000 by
10365       # default) and relocated if they conflict, which is a slow very memory
10366       # consuming and fragmenting process.  To avoid this, we pick a random,
10367       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10368       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10369       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10370       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'
10371       ;;
10372
10373     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10374       tmp_diet=no
10375       if test linux-dietlibc = "$host_os"; then
10376         case $cc_basename in
10377           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10378         esac
10379       fi
10380       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10381          && test no = "$tmp_diet"
10382       then
10383         tmp_addflag=' $pic_flag'
10384         tmp_sharedflag='-shared'
10385         case $cc_basename,$host_cpu in
10386         pgcc*)                          # Portland Group C compiler
10387           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'
10388           tmp_addflag=' $pic_flag'
10389           ;;
10390         pgf77* | pgf90* | pgf95* | pgfortran*)
10391                                         # Portland Group f77 and f90 compilers
10392           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'
10393           tmp_addflag=' $pic_flag -Mnomain' ;;
10394         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10395           tmp_addflag=' -i_dynamic' ;;
10396         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10397           tmp_addflag=' -i_dynamic -nofor_main' ;;
10398         ifc* | ifort*)                  # Intel Fortran compiler
10399           tmp_addflag=' -nofor_main' ;;
10400         lf95*)                          # Lahey Fortran 8.1
10401           whole_archive_flag_spec=
10402           tmp_sharedflag='--shared' ;;
10403         nagfor*)                        # NAGFOR 5.3
10404           tmp_sharedflag='-Wl,-shared' ;;
10405         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10406           tmp_sharedflag='-qmkshrobj'
10407           tmp_addflag= ;;
10408         nvcc*)  # Cuda Compiler Driver 2.2
10409           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'
10410           compiler_needs_object=yes
10411           ;;
10412         esac
10413         case `$CC -V 2>&1 | sed 5q` in
10414         *Sun\ C*)                       # Sun C 5.9
10415           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'
10416           compiler_needs_object=yes
10417           tmp_sharedflag='-G' ;;
10418         *Sun\ F*)                       # Sun Fortran 8.3
10419           tmp_sharedflag='-G' ;;
10420         esac
10421         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10422
10423         if test yes = "$supports_anon_versioning"; then
10424           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10425             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10426             echo "local: *; };" >> $output_objdir/$libname.ver~
10427             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10428         fi
10429
10430         case $cc_basename in
10431         tcc*)
10432           export_dynamic_flag_spec='-rdynamic'
10433           ;;
10434         xlf* | bgf* | bgxlf* | mpixlf*)
10435           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10436           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10437           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10438           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10439           if test yes = "$supports_anon_versioning"; then
10440             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10441               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10442               echo "local: *; };" >> $output_objdir/$libname.ver~
10443               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10444           fi
10445           ;;
10446         esac
10447       else
10448         ld_shlibs=no
10449       fi
10450       ;;
10451
10452     netbsd* | netbsdelf*-gnu)
10453       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10454         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10455         wlarc=
10456       else
10457         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10458         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10459       fi
10460       ;;
10461
10462     solaris*)
10463       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10464         ld_shlibs=no
10465         cat <<_LT_EOF 1>&2
10466
10467 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10468 *** create shared libraries on Solaris systems.  Therefore, libtool
10469 *** is disabling shared libraries support.  We urge you to upgrade GNU
10470 *** binutils to release 2.9.1 or newer.  Another option is to modify
10471 *** your PATH or compiler configuration so that the native linker is
10472 *** used, and then restart.
10473
10474 _LT_EOF
10475       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10476         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10477         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10478       else
10479         ld_shlibs=no
10480       fi
10481       ;;
10482
10483     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10484       case `$LD -v 2>&1` in
10485         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10486         ld_shlibs=no
10487         cat <<_LT_EOF 1>&2
10488
10489 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10490 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10491 *** is disabling shared libraries support.  We urge you to upgrade GNU
10492 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10493 *** your PATH or compiler configuration so that the native linker is
10494 *** used, and then restart.
10495
10496 _LT_EOF
10497         ;;
10498         *)
10499           # For security reasons, it is highly recommended that you always
10500           # use absolute paths for naming shared libraries, and exclude the
10501           # DT_RUNPATH tag from executables and libraries.  But doing so
10502           # requires that you compile everything twice, which is a pain.
10503           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10504             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10505             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10506             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10507           else
10508             ld_shlibs=no
10509           fi
10510         ;;
10511       esac
10512       ;;
10513
10514     sunos4*)
10515       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10516       wlarc=
10517       hardcode_direct=yes
10518       hardcode_shlibpath_var=no
10519       ;;
10520
10521     *)
10522       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10523         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10524         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10525       else
10526         ld_shlibs=no
10527       fi
10528       ;;
10529     esac
10530
10531     if test no = "$ld_shlibs"; then
10532       runpath_var=
10533       hardcode_libdir_flag_spec=
10534       export_dynamic_flag_spec=
10535       whole_archive_flag_spec=
10536     fi
10537   else
10538     # PORTME fill in a description of your system's linker (not GNU ld)
10539     case $host_os in
10540     aix3*)
10541       allow_undefined_flag=unsupported
10542       always_export_symbols=yes
10543       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'
10544       # Note: this linker hardcodes the directories in LIBPATH if there
10545       # are no directories specified by -L.
10546       hardcode_minus_L=yes
10547       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10548         # Neither direct hardcoding nor static linking is supported with a
10549         # broken collect2.
10550         hardcode_direct=unsupported
10551       fi
10552       ;;
10553
10554     aix[4-9]*)
10555       if test ia64 = "$host_cpu"; then
10556         # On IA64, the linker does run time linking by default, so we don't
10557         # have to do anything special.
10558         aix_use_runtimelinking=no
10559         exp_sym_flag='-Bexport'
10560         no_entry_flag=
10561       else
10562         # If we're using GNU nm, then we don't want the "-C" option.
10563         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10564         # Without the "-l" option, or with the "-B" option, AIX nm treats
10565         # weak defined symbols like other global defined symbols, whereas
10566         # GNU nm marks them as "W".
10567         # While the 'weak' keyword is ignored in the Export File, we need
10568         # it in the Import File for the 'aix-soname' feature, so we have
10569         # to replace the "-B" option with "-P" for AIX nm.
10570         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10571           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10572         else
10573           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10574         fi
10575         aix_use_runtimelinking=no
10576
10577         # Test if we are trying to use run time linking or normal
10578         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10579         # have runtime linking enabled, and use it for executables.
10580         # For shared libraries, we enable/disable runtime linking
10581         # depending on the kind of the shared library created -
10582         # when "with_aix_soname,aix_use_runtimelinking" is:
10583         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10584         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10585         #            lib.a           static archive
10586         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10587         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10588         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10589         #            lib.a(lib.so.V) shared, rtl:no
10590         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10591         #            lib.a           static archive
10592         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10593           for ld_flag in $LDFLAGS; do
10594           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10595             aix_use_runtimelinking=yes
10596             break
10597           fi
10598           done
10599           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10600             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10601             # so we don't have lib.a shared libs to link our executables.
10602             # We have to force runtime linking in this case.
10603             aix_use_runtimelinking=yes
10604             LDFLAGS="$LDFLAGS -Wl,-brtl"
10605           fi
10606           ;;
10607         esac
10608
10609         exp_sym_flag='-bexport'
10610         no_entry_flag='-bnoentry'
10611       fi
10612
10613       # When large executables or shared objects are built, AIX ld can
10614       # have problems creating the table of contents.  If linking a library
10615       # or program results in "error TOC overflow" add -mminimal-toc to
10616       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10617       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10618
10619       archive_cmds=''
10620       hardcode_direct=yes
10621       hardcode_direct_absolute=yes
10622       hardcode_libdir_separator=':'
10623       link_all_deplibs=yes
10624       file_list_spec='$wl-f,'
10625       case $with_aix_soname,$aix_use_runtimelinking in
10626       aix,*) ;; # traditional, no import file
10627       svr4,* | *,yes) # use import file
10628         # The Import File defines what to hardcode.
10629         hardcode_direct=no
10630         hardcode_direct_absolute=no
10631         ;;
10632       esac
10633
10634       if test yes = "$GCC"; then
10635         case $host_os in aix4.[012]|aix4.[012].*)
10636         # We only want to do this on AIX 4.2 and lower, the check
10637         # below for broken collect2 doesn't work under 4.3+
10638           collect2name=`$CC -print-prog-name=collect2`
10639           if test -f "$collect2name" &&
10640            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10641           then
10642           # We have reworked collect2
10643           :
10644           else
10645           # We have old collect2
10646           hardcode_direct=unsupported
10647           # It fails to find uninstalled libraries when the uninstalled
10648           # path is not listed in the libpath.  Setting hardcode_minus_L
10649           # to unsupported forces relinking
10650           hardcode_minus_L=yes
10651           hardcode_libdir_flag_spec='-L$libdir'
10652           hardcode_libdir_separator=
10653           fi
10654           ;;
10655         esac
10656         shared_flag='-shared'
10657         if test yes = "$aix_use_runtimelinking"; then
10658           shared_flag="$shared_flag "'$wl-G'
10659         fi
10660         # Need to ensure runtime linking is disabled for the traditional
10661         # shared library, or the linker may eventually find shared libraries
10662         # /with/ Import File - we do not want to mix them.
10663         shared_flag_aix='-shared'
10664         shared_flag_svr4='-shared $wl-G'
10665       else
10666         # not using gcc
10667         if test ia64 = "$host_cpu"; then
10668         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10669         # chokes on -Wl,-G. The following line is correct:
10670           shared_flag='-G'
10671         else
10672           if test yes = "$aix_use_runtimelinking"; then
10673             shared_flag='$wl-G'
10674           else
10675             shared_flag='$wl-bM:SRE'
10676           fi
10677           shared_flag_aix='$wl-bM:SRE'
10678           shared_flag_svr4='$wl-G'
10679         fi
10680       fi
10681
10682       export_dynamic_flag_spec='$wl-bexpall'
10683       # It seems that -bexpall does not export symbols beginning with
10684       # underscore (_), so it is better to generate a list of symbols to export.
10685       always_export_symbols=yes
10686       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10687         # Warning - without using the other runtime loading flags (-brtl),
10688         # -berok will link without error, but may produce a broken library.
10689         allow_undefined_flag='-berok'
10690         # Determine the default libpath from the value encoded in an
10691         # empty executable.
10692         if test set = "${lt_cv_aix_libpath+set}"; then
10693   aix_libpath=$lt_cv_aix_libpath
10694 else
10695   if ${lt_cv_aix_libpath_+:} false; then :
10696   $as_echo_n "(cached) " >&6
10697 else
10698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h.  */
10700
10701 int
10702 main ()
10703 {
10704
10705   ;
10706   return 0;
10707 }
10708 _ACEOF
10709 if ac_fn_c_try_link "$LINENO"; then :
10710
10711   lt_aix_libpath_sed='
10712       /Import File Strings/,/^$/ {
10713           /^0/ {
10714               s/^0  *\([^ ]*\) *$/\1/
10715               p
10716           }
10717       }'
10718   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10719   # Check for a 64-bit object if we didn't find anything.
10720   if test -z "$lt_cv_aix_libpath_"; then
10721     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10722   fi
10723 fi
10724 rm -f core conftest.err conftest.$ac_objext \
10725     conftest$ac_exeext conftest.$ac_ext
10726   if test -z "$lt_cv_aix_libpath_"; then
10727     lt_cv_aix_libpath_=/usr/lib:/lib
10728   fi
10729
10730 fi
10731
10732   aix_libpath=$lt_cv_aix_libpath_
10733 fi
10734
10735         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10736         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10737       else
10738         if test ia64 = "$host_cpu"; then
10739           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10740           allow_undefined_flag="-z nodefs"
10741           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"
10742         else
10743          # Determine the default libpath from the value encoded in an
10744          # empty executable.
10745          if test set = "${lt_cv_aix_libpath+set}"; then
10746   aix_libpath=$lt_cv_aix_libpath
10747 else
10748   if ${lt_cv_aix_libpath_+:} false; then :
10749   $as_echo_n "(cached) " >&6
10750 else
10751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h.  */
10753
10754 int
10755 main ()
10756 {
10757
10758   ;
10759   return 0;
10760 }
10761 _ACEOF
10762 if ac_fn_c_try_link "$LINENO"; then :
10763
10764   lt_aix_libpath_sed='
10765       /Import File Strings/,/^$/ {
10766           /^0/ {
10767               s/^0  *\([^ ]*\) *$/\1/
10768               p
10769           }
10770       }'
10771   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10772   # Check for a 64-bit object if we didn't find anything.
10773   if test -z "$lt_cv_aix_libpath_"; then
10774     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10775   fi
10776 fi
10777 rm -f core conftest.err conftest.$ac_objext \
10778     conftest$ac_exeext conftest.$ac_ext
10779   if test -z "$lt_cv_aix_libpath_"; then
10780     lt_cv_aix_libpath_=/usr/lib:/lib
10781   fi
10782
10783 fi
10784
10785   aix_libpath=$lt_cv_aix_libpath_
10786 fi
10787
10788          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10789           # Warning - without using the other run time loading flags,
10790           # -berok will link without error, but may produce a broken library.
10791           no_undefined_flag=' $wl-bernotok'
10792           allow_undefined_flag=' $wl-berok'
10793           if test yes = "$with_gnu_ld"; then
10794             # We only use this code for GNU lds that support --whole-archive.
10795             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10796           else
10797             # Exported symbols can be pulled into shared objects from archives
10798             whole_archive_flag_spec='$convenience'
10799           fi
10800           archive_cmds_need_lc=yes
10801           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10802           # -brtl affects multiple linker settings, -berok does not and is overridden later
10803           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10804           if test svr4 != "$with_aix_soname"; then
10805             # This is similar to how AIX traditionally builds its shared libraries.
10806             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10807           fi
10808           if test aix != "$with_aix_soname"; then
10809             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10810           else
10811             # used by -dlpreopen to get the symbols
10812             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10813           fi
10814           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10815         fi
10816       fi
10817       ;;
10818
10819     amigaos*)
10820       case $host_cpu in
10821       powerpc)
10822             # see comment about AmigaOS4 .so support
10823             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10824             archive_expsym_cmds=''
10825         ;;
10826       m68k)
10827             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)'
10828             hardcode_libdir_flag_spec='-L$libdir'
10829             hardcode_minus_L=yes
10830         ;;
10831       esac
10832       ;;
10833
10834     bsdi[45]*)
10835       export_dynamic_flag_spec=-rdynamic
10836       ;;
10837
10838     cygwin* | mingw* | pw32* | cegcc*)
10839       # When not using gcc, we currently assume that we are using
10840       # Microsoft Visual C++.
10841       # hardcode_libdir_flag_spec is actually meaningless, as there is
10842       # no search path for DLLs.
10843       case $cc_basename in
10844       cl*)
10845         # Native MSVC
10846         hardcode_libdir_flag_spec=' '
10847         allow_undefined_flag=unsupported
10848         always_export_symbols=yes
10849         file_list_spec='@'
10850         # Tell ltmain to make .lib files, not .a files.
10851         libext=lib
10852         # Tell ltmain to make .dll files, not .so files.
10853         shrext_cmds=.dll
10854         # FIXME: Setting linknames here is a bad hack.
10855         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10856         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10857             cp "$export_symbols" "$output_objdir/$soname.def";
10858             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10859           else
10860             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10861           fi~
10862           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10863           linknames='
10864         # The linker will not automatically build a static lib if we build a DLL.
10865         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10866         enable_shared_with_static_runtimes=yes
10867         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10868         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10869         # Don't use ranlib
10870         old_postinstall_cmds='chmod 644 $oldlib'
10871         postlink_cmds='lt_outputfile="@OUTPUT@"~
10872           lt_tool_outputfile="@TOOL_OUTPUT@"~
10873           case $lt_outputfile in
10874             *.exe|*.EXE) ;;
10875             *)
10876               lt_outputfile=$lt_outputfile.exe
10877               lt_tool_outputfile=$lt_tool_outputfile.exe
10878               ;;
10879           esac~
10880           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10881             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10882             $RM "$lt_outputfile.manifest";
10883           fi'
10884         ;;
10885       *)
10886         # Assume MSVC wrapper
10887         hardcode_libdir_flag_spec=' '
10888         allow_undefined_flag=unsupported
10889         # Tell ltmain to make .lib files, not .a files.
10890         libext=lib
10891         # Tell ltmain to make .dll files, not .so files.
10892         shrext_cmds=.dll
10893         # FIXME: Setting linknames here is a bad hack.
10894         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10895         # The linker will automatically build a .lib file if we build a DLL.
10896         old_archive_from_new_cmds='true'
10897         # FIXME: Should let the user specify the lib program.
10898         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10899         enable_shared_with_static_runtimes=yes
10900         ;;
10901       esac
10902       ;;
10903
10904     darwin* | rhapsody*)
10905
10906
10907   archive_cmds_need_lc=no
10908   hardcode_direct=no
10909   hardcode_automatic=yes
10910   hardcode_shlibpath_var=unsupported
10911   if test yes = "$lt_cv_ld_force_load"; then
10912     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\"`'
10913
10914   else
10915     whole_archive_flag_spec=''
10916   fi
10917   link_all_deplibs=yes
10918   allow_undefined_flag=$_lt_dar_allow_undefined
10919   case $cc_basename in
10920      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10921      *) _lt_dar_can_shared=$GCC ;;
10922   esac
10923   if test yes = "$_lt_dar_can_shared"; then
10924     output_verbose_link_cmd=func_echo_all
10925     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10926     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10927     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"
10928     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"
10929
10930   else
10931   ld_shlibs=no
10932   fi
10933
10934       ;;
10935
10936     dgux*)
10937       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10938       hardcode_libdir_flag_spec='-L$libdir'
10939       hardcode_shlibpath_var=no
10940       ;;
10941
10942     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10943     # support.  Future versions do this automatically, but an explicit c++rt0.o
10944     # does not break anything, and helps significantly (at the cost of a little
10945     # extra space).
10946     freebsd2.2*)
10947       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10948       hardcode_libdir_flag_spec='-R$libdir'
10949       hardcode_direct=yes
10950       hardcode_shlibpath_var=no
10951       ;;
10952
10953     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10954     freebsd2.*)
10955       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10956       hardcode_direct=yes
10957       hardcode_minus_L=yes
10958       hardcode_shlibpath_var=no
10959       ;;
10960
10961     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10962     freebsd* | dragonfly*)
10963       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10964       hardcode_libdir_flag_spec='-R$libdir'
10965       hardcode_direct=yes
10966       hardcode_shlibpath_var=no
10967       ;;
10968
10969     hpux9*)
10970       if test yes = "$GCC"; then
10971         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10972       else
10973         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10974       fi
10975       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10976       hardcode_libdir_separator=:
10977       hardcode_direct=yes
10978
10979       # hardcode_minus_L: Not really in the search PATH,
10980       # but as the default location of the library.
10981       hardcode_minus_L=yes
10982       export_dynamic_flag_spec='$wl-E'
10983       ;;
10984
10985     hpux10*)
10986       if test yes,no = "$GCC,$with_gnu_ld"; then
10987         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10988       else
10989         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10990       fi
10991       if test no = "$with_gnu_ld"; then
10992         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10993         hardcode_libdir_separator=:
10994         hardcode_direct=yes
10995         hardcode_direct_absolute=yes
10996         export_dynamic_flag_spec='$wl-E'
10997         # hardcode_minus_L: Not really in the search PATH,
10998         # but as the default location of the library.
10999         hardcode_minus_L=yes
11000       fi
11001       ;;
11002
11003     hpux11*)
11004       if test yes,no = "$GCC,$with_gnu_ld"; then
11005         case $host_cpu in
11006         hppa*64*)
11007           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11008           ;;
11009         ia64*)
11010           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11011           ;;
11012         *)
11013           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11014           ;;
11015         esac
11016       else
11017         case $host_cpu in
11018         hppa*64*)
11019           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11020           ;;
11021         ia64*)
11022           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11023           ;;
11024         *)
11025
11026           # Older versions of the 11.00 compiler do not understand -b yet
11027           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11028           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11029 $as_echo_n "checking if $CC understands -b... " >&6; }
11030 if ${lt_cv_prog_compiler__b+:} false; then :
11031   $as_echo_n "(cached) " >&6
11032 else
11033   lt_cv_prog_compiler__b=no
11034    save_LDFLAGS=$LDFLAGS
11035    LDFLAGS="$LDFLAGS -b"
11036    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11037    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11038      # The linker can only warn and ignore the option if not recognized
11039      # So say no if there are warnings
11040      if test -s conftest.err; then
11041        # Append any errors to the config.log.
11042        cat conftest.err 1>&5
11043        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11044        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11045        if diff conftest.exp conftest.er2 >/dev/null; then
11046          lt_cv_prog_compiler__b=yes
11047        fi
11048      else
11049        lt_cv_prog_compiler__b=yes
11050      fi
11051    fi
11052    $RM -r conftest*
11053    LDFLAGS=$save_LDFLAGS
11054
11055 fi
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11057 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11058
11059 if test yes = "$lt_cv_prog_compiler__b"; then
11060     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11061 else
11062     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11063 fi
11064
11065           ;;
11066         esac
11067       fi
11068       if test no = "$with_gnu_ld"; then
11069         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11070         hardcode_libdir_separator=:
11071
11072         case $host_cpu in
11073         hppa*64*|ia64*)
11074           hardcode_direct=no
11075           hardcode_shlibpath_var=no
11076           ;;
11077         *)
11078           hardcode_direct=yes
11079           hardcode_direct_absolute=yes
11080           export_dynamic_flag_spec='$wl-E'
11081
11082           # hardcode_minus_L: Not really in the search PATH,
11083           # but as the default location of the library.
11084           hardcode_minus_L=yes
11085           ;;
11086         esac
11087       fi
11088       ;;
11089
11090     irix5* | irix6* | nonstopux*)
11091       if test yes = "$GCC"; then
11092         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'
11093         # Try to use the -exported_symbol ld option, if it does not
11094         # work, assume that -exports_file does not work either and
11095         # implicitly export all symbols.
11096         # This should be the same for all languages, so no per-tag cache variable.
11097         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11098 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11099 if ${lt_cv_irix_exported_symbol+:} false; then :
11100   $as_echo_n "(cached) " >&6
11101 else
11102   save_LDFLAGS=$LDFLAGS
11103            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11104            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h.  */
11106 int foo (void) { return 0; }
11107 _ACEOF
11108 if ac_fn_c_try_link "$LINENO"; then :
11109   lt_cv_irix_exported_symbol=yes
11110 else
11111   lt_cv_irix_exported_symbol=no
11112 fi
11113 rm -f core conftest.err conftest.$ac_objext \
11114     conftest$ac_exeext conftest.$ac_ext
11115            LDFLAGS=$save_LDFLAGS
11116 fi
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11118 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11119         if test yes = "$lt_cv_irix_exported_symbol"; then
11120           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'
11121         fi
11122         link_all_deplibs=no
11123       else
11124         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'
11125         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'
11126       fi
11127       archive_cmds_need_lc='no'
11128       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11129       hardcode_libdir_separator=:
11130       inherit_rpath=yes
11131       link_all_deplibs=yes
11132       ;;
11133
11134     linux*)
11135       case $cc_basename in
11136       tcc*)
11137         # Fabrice Bellard et al's Tiny C Compiler
11138         ld_shlibs=yes
11139         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11140         ;;
11141       esac
11142       ;;
11143
11144     netbsd* | netbsdelf*-gnu)
11145       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11146         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11147       else
11148         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11149       fi
11150       hardcode_libdir_flag_spec='-R$libdir'
11151       hardcode_direct=yes
11152       hardcode_shlibpath_var=no
11153       ;;
11154
11155     newsos6)
11156       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11157       hardcode_direct=yes
11158       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11159       hardcode_libdir_separator=:
11160       hardcode_shlibpath_var=no
11161       ;;
11162
11163     *nto* | *qnx*)
11164       ;;
11165
11166     openbsd* | bitrig*)
11167       if test -f /usr/libexec/ld.so; then
11168         hardcode_direct=yes
11169         hardcode_shlibpath_var=no
11170         hardcode_direct_absolute=yes
11171         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11172           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11173           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11174           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11175           export_dynamic_flag_spec='$wl-E'
11176         else
11177           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11178           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11179         fi
11180       else
11181         ld_shlibs=no
11182       fi
11183       ;;
11184
11185     os2*)
11186       hardcode_libdir_flag_spec='-L$libdir'
11187       hardcode_minus_L=yes
11188       allow_undefined_flag=unsupported
11189       shrext_cmds=.dll
11190       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11191         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11192         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11193         $ECHO EXPORTS >> $output_objdir/$libname.def~
11194         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11195         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11196         emximp -o $lib $output_objdir/$libname.def'
11197       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11198         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11199         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11200         $ECHO EXPORTS >> $output_objdir/$libname.def~
11201         prefix_cmds="$SED"~
11202         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11203           prefix_cmds="$prefix_cmds -e 1d";
11204         fi~
11205         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11206         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11207         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11208         emximp -o $lib $output_objdir/$libname.def'
11209       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11210       enable_shared_with_static_runtimes=yes
11211       ;;
11212
11213     osf3*)
11214       if test yes = "$GCC"; then
11215         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11216         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'
11217       else
11218         allow_undefined_flag=' -expect_unresolved \*'
11219         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'
11220       fi
11221       archive_cmds_need_lc='no'
11222       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11223       hardcode_libdir_separator=:
11224       ;;
11225
11226     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11227       if test yes = "$GCC"; then
11228         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11229         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'
11230         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11231       else
11232         allow_undefined_flag=' -expect_unresolved \*'
11233         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'
11234         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~
11235           $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'
11236
11237         # Both c and cxx compiler support -rpath directly
11238         hardcode_libdir_flag_spec='-rpath $libdir'
11239       fi
11240       archive_cmds_need_lc='no'
11241       hardcode_libdir_separator=:
11242       ;;
11243
11244     solaris*)
11245       no_undefined_flag=' -z defs'
11246       if test yes = "$GCC"; then
11247         wlarc='$wl'
11248         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11249         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11250           $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'
11251       else
11252         case `$CC -V 2>&1` in
11253         *"Compilers 5.0"*)
11254           wlarc=''
11255           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11256           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11257             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11258           ;;
11259         *)
11260           wlarc='$wl'
11261           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11262           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11263             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11264           ;;
11265         esac
11266       fi
11267       hardcode_libdir_flag_spec='-R$libdir'
11268       hardcode_shlibpath_var=no
11269       case $host_os in
11270       solaris2.[0-5] | solaris2.[0-5].*) ;;
11271       *)
11272         # The compiler driver will combine and reorder linker options,
11273         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11274         # but is careful enough not to reorder.
11275         # Supported since Solaris 2.6 (maybe 2.5.1?)
11276         if test yes = "$GCC"; then
11277           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11278         else
11279           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11280         fi
11281         ;;
11282       esac
11283       link_all_deplibs=yes
11284       ;;
11285
11286     sunos4*)
11287       if test sequent = "$host_vendor"; then
11288         # Use $CC to link under sequent, because it throws in some extra .o
11289         # files that make .init and .fini sections work.
11290         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11291       else
11292         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11293       fi
11294       hardcode_libdir_flag_spec='-L$libdir'
11295       hardcode_direct=yes
11296       hardcode_minus_L=yes
11297       hardcode_shlibpath_var=no
11298       ;;
11299
11300     sysv4)
11301       case $host_vendor in
11302         sni)
11303           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11304           hardcode_direct=yes # is this really true???
11305         ;;
11306         siemens)
11307           ## LD is ld it makes a PLAMLIB
11308           ## CC just makes a GrossModule.
11309           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11310           reload_cmds='$CC -r -o $output$reload_objs'
11311           hardcode_direct=no
11312         ;;
11313         motorola)
11314           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11315           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11316         ;;
11317       esac
11318       runpath_var='LD_RUN_PATH'
11319       hardcode_shlibpath_var=no
11320       ;;
11321
11322     sysv4.3*)
11323       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11324       hardcode_shlibpath_var=no
11325       export_dynamic_flag_spec='-Bexport'
11326       ;;
11327
11328     sysv4*MP*)
11329       if test -d /usr/nec; then
11330         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11331         hardcode_shlibpath_var=no
11332         runpath_var=LD_RUN_PATH
11333         hardcode_runpath_var=yes
11334         ld_shlibs=yes
11335       fi
11336       ;;
11337
11338     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11339       no_undefined_flag='$wl-z,text'
11340       archive_cmds_need_lc=no
11341       hardcode_shlibpath_var=no
11342       runpath_var='LD_RUN_PATH'
11343
11344       if test yes = "$GCC"; then
11345         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11346         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11347       else
11348         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11349         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11350       fi
11351       ;;
11352
11353     sysv5* | sco3.2v5* | sco5v6*)
11354       # Note: We CANNOT use -z defs as we might desire, because we do not
11355       # link with -lc, and that would cause any symbols used from libc to
11356       # always be unresolved, which means just about no library would
11357       # ever link correctly.  If we're not using GNU ld we use -z text
11358       # though, which does catch some bad symbols but isn't as heavy-handed
11359       # as -z defs.
11360       no_undefined_flag='$wl-z,text'
11361       allow_undefined_flag='$wl-z,nodefs'
11362       archive_cmds_need_lc=no
11363       hardcode_shlibpath_var=no
11364       hardcode_libdir_flag_spec='$wl-R,$libdir'
11365       hardcode_libdir_separator=':'
11366       link_all_deplibs=yes
11367       export_dynamic_flag_spec='$wl-Bexport'
11368       runpath_var='LD_RUN_PATH'
11369
11370       if test yes = "$GCC"; then
11371         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11372         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11373       else
11374         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11375         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11376       fi
11377       ;;
11378
11379     uts4*)
11380       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11381       hardcode_libdir_flag_spec='-L$libdir'
11382       hardcode_shlibpath_var=no
11383       ;;
11384
11385     *)
11386       ld_shlibs=no
11387       ;;
11388     esac
11389
11390     if test sni = "$host_vendor"; then
11391       case $host in
11392       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11393         export_dynamic_flag_spec='$wl-Blargedynsym'
11394         ;;
11395       esac
11396     fi
11397   fi
11398
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11400 $as_echo "$ld_shlibs" >&6; }
11401 test no = "$ld_shlibs" && can_build_shared=no
11402
11403 with_gnu_ld=$with_gnu_ld
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419 #
11420 # Do we need to explicitly link libc?
11421 #
11422 case "x$archive_cmds_need_lc" in
11423 x|xyes)
11424   # Assume -lc should be added
11425   archive_cmds_need_lc=yes
11426
11427   if test yes,yes = "$GCC,$enable_shared"; then
11428     case $archive_cmds in
11429     *'~'*)
11430       # FIXME: we may have to deal with multi-command sequences.
11431       ;;
11432     '$CC '*)
11433       # Test whether the compiler implicitly links with -lc since on some
11434       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11435       # to ld, don't add -lc before -lgcc.
11436       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11437 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11438 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11439   $as_echo_n "(cached) " >&6
11440 else
11441   $RM conftest*
11442         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11443
11444         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11445   (eval $ac_compile) 2>&5
11446   ac_status=$?
11447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11448   test $ac_status = 0; } 2>conftest.err; then
11449           soname=conftest
11450           lib=conftest
11451           libobjs=conftest.$ac_objext
11452           deplibs=
11453           wl=$lt_prog_compiler_wl
11454           pic_flag=$lt_prog_compiler_pic
11455           compiler_flags=-v
11456           linker_flags=-v
11457           verstring=
11458           output_objdir=.
11459           libname=conftest
11460           lt_save_allow_undefined_flag=$allow_undefined_flag
11461           allow_undefined_flag=
11462           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11463   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11464   ac_status=$?
11465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11466   test $ac_status = 0; }
11467           then
11468             lt_cv_archive_cmds_need_lc=no
11469           else
11470             lt_cv_archive_cmds_need_lc=yes
11471           fi
11472           allow_undefined_flag=$lt_save_allow_undefined_flag
11473         else
11474           cat conftest.err 1>&5
11475         fi
11476         $RM conftest*
11477
11478 fi
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11480 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11481       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11482       ;;
11483     esac
11484   fi
11485   ;;
11486 esac
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11640 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11641
11642 if test yes = "$GCC"; then
11643   case $host_os in
11644     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11645     *) lt_awk_arg='/^libraries:/' ;;
11646   esac
11647   case $host_os in
11648     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11649     *) lt_sed_strip_eq='s|=/|/|g' ;;
11650   esac
11651   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11652   case $lt_search_path_spec in
11653   *\;*)
11654     # if the path contains ";" then we assume it to be the separator
11655     # otherwise default to the standard path separator (i.e. ":") - it is
11656     # assumed that no part of a normal pathname contains ";" but that should
11657     # okay in the real world where ";" in dirpaths is itself problematic.
11658     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11659     ;;
11660   *)
11661     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11662     ;;
11663   esac
11664   # Ok, now we have the path, separated by spaces, we can step through it
11665   # and add multilib dir if necessary...
11666   lt_tmp_lt_search_path_spec=
11667   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11668   # ...but if some path component already ends with the multilib dir we assume
11669   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11670   case "$lt_multi_os_dir; $lt_search_path_spec " in
11671   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11672     lt_multi_os_dir=
11673     ;;
11674   esac
11675   for lt_sys_path in $lt_search_path_spec; do
11676     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11677       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11678     elif test -n "$lt_multi_os_dir"; then
11679       test -d "$lt_sys_path" && \
11680         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11681     fi
11682   done
11683   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11684 BEGIN {RS = " "; FS = "/|\n";} {
11685   lt_foo = "";
11686   lt_count = 0;
11687   for (lt_i = NF; lt_i > 0; lt_i--) {
11688     if ($lt_i != "" && $lt_i != ".") {
11689       if ($lt_i == "..") {
11690         lt_count++;
11691       } else {
11692         if (lt_count == 0) {
11693           lt_foo = "/" $lt_i lt_foo;
11694         } else {
11695           lt_count--;
11696         }
11697       }
11698     }
11699   }
11700   if (lt_foo != "") { lt_freq[lt_foo]++; }
11701   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11702 }'`
11703   # AWK program above erroneously prepends '/' to C:/dos/paths
11704   # for these hosts.
11705   case $host_os in
11706     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11707       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11708   esac
11709   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11710 else
11711   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11712 fi
11713 library_names_spec=
11714 libname_spec='lib$name'
11715 soname_spec=
11716 shrext_cmds=.so
11717 postinstall_cmds=
11718 postuninstall_cmds=
11719 finish_cmds=
11720 finish_eval=
11721 shlibpath_var=
11722 shlibpath_overrides_runpath=unknown
11723 version_type=none
11724 dynamic_linker="$host_os ld.so"
11725 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11726 need_lib_prefix=unknown
11727 hardcode_into_libs=no
11728
11729 # when you set need_version to no, make sure it does not cause -set_version
11730 # flags to be left without arguments
11731 need_version=unknown
11732
11733
11734
11735 case $host_os in
11736 aix3*)
11737   version_type=linux # correct to gnu/linux during the next big refactor
11738   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11739   shlibpath_var=LIBPATH
11740
11741   # AIX 3 has no versioning support, so we append a major version to the name.
11742   soname_spec='$libname$release$shared_ext$major'
11743   ;;
11744
11745 aix[4-9]*)
11746   version_type=linux # correct to gnu/linux during the next big refactor
11747   need_lib_prefix=no
11748   need_version=no
11749   hardcode_into_libs=yes
11750   if test ia64 = "$host_cpu"; then
11751     # AIX 5 supports IA64
11752     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11753     shlibpath_var=LD_LIBRARY_PATH
11754   else
11755     # With GCC up to 2.95.x, collect2 would create an import file
11756     # for dependence libraries.  The import file would start with
11757     # the line '#! .'.  This would cause the generated library to
11758     # depend on '.', always an invalid library.  This was fixed in
11759     # development snapshots of GCC prior to 3.0.
11760     case $host_os in
11761       aix4 | aix4.[01] | aix4.[01].*)
11762       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11763            echo ' yes '
11764            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11765         :
11766       else
11767         can_build_shared=no
11768       fi
11769       ;;
11770     esac
11771     # Using Import Files as archive members, it is possible to support
11772     # filename-based versioning of shared library archives on AIX. While
11773     # this would work for both with and without runtime linking, it will
11774     # prevent static linking of such archives. So we do filename-based
11775     # shared library versioning with .so extension only, which is used
11776     # when both runtime linking and shared linking is enabled.
11777     # Unfortunately, runtime linking may impact performance, so we do
11778     # not want this to be the default eventually. Also, we use the
11779     # versioned .so libs for executables only if there is the -brtl
11780     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11781     # To allow for filename-based versioning support, we need to create
11782     # libNAME.so.V as an archive file, containing:
11783     # *) an Import File, referring to the versioned filename of the
11784     #    archive as well as the shared archive member, telling the
11785     #    bitwidth (32 or 64) of that shared object, and providing the
11786     #    list of exported symbols of that shared object, eventually
11787     #    decorated with the 'weak' keyword
11788     # *) the shared object with the F_LOADONLY flag set, to really avoid
11789     #    it being seen by the linker.
11790     # At run time we better use the real file rather than another symlink,
11791     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11792
11793     case $with_aix_soname,$aix_use_runtimelinking in
11794     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11795     # soname into executable. Probably we can add versioning support to
11796     # collect2, so additional links can be useful in future.
11797     aix,yes) # traditional libtool
11798       dynamic_linker='AIX unversionable lib.so'
11799       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11800       # instead of lib<name>.a to let people know that these are not
11801       # typical AIX shared libraries.
11802       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11803       ;;
11804     aix,no) # traditional AIX only
11805       dynamic_linker='AIX lib.a(lib.so.V)'
11806       # We preserve .a as extension for shared libraries through AIX4.2
11807       # and later when we are not doing run time linking.
11808       library_names_spec='$libname$release.a $libname.a'
11809       soname_spec='$libname$release$shared_ext$major'
11810       ;;
11811     svr4,*) # full svr4 only
11812       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11813       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11814       # We do not specify a path in Import Files, so LIBPATH fires.
11815       shlibpath_overrides_runpath=yes
11816       ;;
11817     *,yes) # both, prefer svr4
11818       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11819       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11820       # unpreferred sharedlib libNAME.a needs extra handling
11821       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11822       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11823       # We do not specify a path in Import Files, so LIBPATH fires.
11824       shlibpath_overrides_runpath=yes
11825       ;;
11826     *,no) # both, prefer aix
11827       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11828       library_names_spec='$libname$release.a $libname.a'
11829       soname_spec='$libname$release$shared_ext$major'
11830       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11831       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11832       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11833       ;;
11834     esac
11835     shlibpath_var=LIBPATH
11836   fi
11837   ;;
11838
11839 amigaos*)
11840   case $host_cpu in
11841   powerpc)
11842     # Since July 2007 AmigaOS4 officially supports .so libraries.
11843     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11844     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11845     ;;
11846   m68k)
11847     library_names_spec='$libname.ixlibrary $libname.a'
11848     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11849     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11850     ;;
11851   esac
11852   ;;
11853
11854 beos*)
11855   library_names_spec='$libname$shared_ext'
11856   dynamic_linker="$host_os ld.so"
11857   shlibpath_var=LIBRARY_PATH
11858   ;;
11859
11860 bsdi[45]*)
11861   version_type=linux # correct to gnu/linux during the next big refactor
11862   need_version=no
11863   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11864   soname_spec='$libname$release$shared_ext$major'
11865   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11866   shlibpath_var=LD_LIBRARY_PATH
11867   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11868   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11869   # the default ld.so.conf also contains /usr/contrib/lib and
11870   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11871   # libtool to hard-code these into programs
11872   ;;
11873
11874 cygwin* | mingw* | pw32* | cegcc*)
11875   version_type=windows
11876   shrext_cmds=.dll
11877   need_version=no
11878   need_lib_prefix=no
11879
11880   case $GCC,$cc_basename in
11881   yes,*)
11882     # gcc
11883     library_names_spec='$libname.dll.a'
11884     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11885     postinstall_cmds='base_file=`basename \$file`~
11886       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11887       dldir=$destdir/`dirname \$dlpath`~
11888       test -d \$dldir || mkdir -p \$dldir~
11889       $install_prog $dir/$dlname \$dldir/$dlname~
11890       chmod a+x \$dldir/$dlname~
11891       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11892         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11893       fi'
11894     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11895       dlpath=$dir/\$dldll~
11896        $RM \$dlpath'
11897     shlibpath_overrides_runpath=yes
11898
11899     case $host_os in
11900     cygwin*)
11901       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11902       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11903
11904       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11905       ;;
11906     mingw* | cegcc*)
11907       # MinGW DLLs use traditional 'lib' prefix
11908       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11909       ;;
11910     pw32*)
11911       # pw32 DLLs use 'pw' prefix rather than 'lib'
11912       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11913       ;;
11914     esac
11915     dynamic_linker='Win32 ld.exe'
11916     ;;
11917
11918   *,cl*)
11919     # Native MSVC
11920     libname_spec='$name'
11921     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11922     library_names_spec='$libname.dll.lib'
11923
11924     case $build_os in
11925     mingw*)
11926       sys_lib_search_path_spec=
11927       lt_save_ifs=$IFS
11928       IFS=';'
11929       for lt_path in $LIB
11930       do
11931         IFS=$lt_save_ifs
11932         # Let DOS variable expansion print the short 8.3 style file name.
11933         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11934         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11935       done
11936       IFS=$lt_save_ifs
11937       # Convert to MSYS style.
11938       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11939       ;;
11940     cygwin*)
11941       # Convert to unix form, then to dos form, then back to unix form
11942       # but this time dos style (no spaces!) so that the unix form looks
11943       # like /cygdrive/c/PROGRA~1:/cygdr...
11944       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11945       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11946       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11947       ;;
11948     *)
11949       sys_lib_search_path_spec=$LIB
11950       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11951         # It is most probably a Windows format PATH.
11952         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11953       else
11954         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11955       fi
11956       # FIXME: find the short name or the path components, as spaces are
11957       # common. (e.g. "Program Files" -> "PROGRA~1")
11958       ;;
11959     esac
11960
11961     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11962     postinstall_cmds='base_file=`basename \$file`~
11963       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11964       dldir=$destdir/`dirname \$dlpath`~
11965       test -d \$dldir || mkdir -p \$dldir~
11966       $install_prog $dir/$dlname \$dldir/$dlname'
11967     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11968       dlpath=$dir/\$dldll~
11969        $RM \$dlpath'
11970     shlibpath_overrides_runpath=yes
11971     dynamic_linker='Win32 link.exe'
11972     ;;
11973
11974   *)
11975     # Assume MSVC wrapper
11976     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11977     dynamic_linker='Win32 ld.exe'
11978     ;;
11979   esac
11980   # FIXME: first we should search . and the directory the executable is in
11981   shlibpath_var=PATH
11982   ;;
11983
11984 darwin* | rhapsody*)
11985   dynamic_linker="$host_os dyld"
11986   version_type=darwin
11987   need_lib_prefix=no
11988   need_version=no
11989   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11990   soname_spec='$libname$release$major$shared_ext'
11991   shlibpath_overrides_runpath=yes
11992   shlibpath_var=DYLD_LIBRARY_PATH
11993   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11994
11995   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11996   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11997   ;;
11998
11999 dgux*)
12000   version_type=linux # correct to gnu/linux during the next big refactor
12001   need_lib_prefix=no
12002   need_version=no
12003   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12004   soname_spec='$libname$release$shared_ext$major'
12005   shlibpath_var=LD_LIBRARY_PATH
12006   ;;
12007
12008 freebsd* | dragonfly*)
12009   # DragonFly does not have aout.  When/if they implement a new
12010   # versioning mechanism, adjust this.
12011   if test -x /usr/bin/objformat; then
12012     objformat=`/usr/bin/objformat`
12013   else
12014     case $host_os in
12015     freebsd[23].*) objformat=aout ;;
12016     *) objformat=elf ;;
12017     esac
12018   fi
12019   version_type=freebsd-$objformat
12020   case $version_type in
12021     freebsd-elf*)
12022       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12023       soname_spec='$libname$release$shared_ext$major'
12024       need_version=no
12025       need_lib_prefix=no
12026       ;;
12027     freebsd-*)
12028       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12029       need_version=yes
12030       ;;
12031   esac
12032   shlibpath_var=LD_LIBRARY_PATH
12033   case $host_os in
12034   freebsd2.*)
12035     shlibpath_overrides_runpath=yes
12036     ;;
12037   freebsd3.[01]* | freebsdelf3.[01]*)
12038     shlibpath_overrides_runpath=yes
12039     hardcode_into_libs=yes
12040     ;;
12041   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12042   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12043     shlibpath_overrides_runpath=no
12044     hardcode_into_libs=yes
12045     ;;
12046   *) # from 4.6 on, and DragonFly
12047     shlibpath_overrides_runpath=yes
12048     hardcode_into_libs=yes
12049     ;;
12050   esac
12051   ;;
12052
12053 haiku*)
12054   version_type=linux # correct to gnu/linux during the next big refactor
12055   need_lib_prefix=no
12056   need_version=no
12057   dynamic_linker="$host_os runtime_loader"
12058   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12059   soname_spec='$libname$release$shared_ext$major'
12060   shlibpath_var=LIBRARY_PATH
12061   shlibpath_overrides_runpath=no
12062   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12063   hardcode_into_libs=yes
12064   ;;
12065
12066 hpux9* | hpux10* | hpux11*)
12067   # Give a soname corresponding to the major version so that dld.sl refuses to
12068   # link against other versions.
12069   version_type=sunos
12070   need_lib_prefix=no
12071   need_version=no
12072   case $host_cpu in
12073   ia64*)
12074     shrext_cmds='.so'
12075     hardcode_into_libs=yes
12076     dynamic_linker="$host_os dld.so"
12077     shlibpath_var=LD_LIBRARY_PATH
12078     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12079     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12080     soname_spec='$libname$release$shared_ext$major'
12081     if test 32 = "$HPUX_IA64_MODE"; then
12082       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12083       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12084     else
12085       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12086       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12087     fi
12088     ;;
12089   hppa*64*)
12090     shrext_cmds='.sl'
12091     hardcode_into_libs=yes
12092     dynamic_linker="$host_os dld.sl"
12093     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12094     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12095     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12096     soname_spec='$libname$release$shared_ext$major'
12097     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12098     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12099     ;;
12100   *)
12101     shrext_cmds='.sl'
12102     dynamic_linker="$host_os dld.sl"
12103     shlibpath_var=SHLIB_PATH
12104     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12105     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12106     soname_spec='$libname$release$shared_ext$major'
12107     ;;
12108   esac
12109   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12110   postinstall_cmds='chmod 555 $lib'
12111   # or fails outright, so override atomically:
12112   install_override_mode=555
12113   ;;
12114
12115 interix[3-9]*)
12116   version_type=linux # correct to gnu/linux during the next big refactor
12117   need_lib_prefix=no
12118   need_version=no
12119   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12120   soname_spec='$libname$release$shared_ext$major'
12121   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12122   shlibpath_var=LD_LIBRARY_PATH
12123   shlibpath_overrides_runpath=no
12124   hardcode_into_libs=yes
12125   ;;
12126
12127 irix5* | irix6* | nonstopux*)
12128   case $host_os in
12129     nonstopux*) version_type=nonstopux ;;
12130     *)
12131         if test yes = "$lt_cv_prog_gnu_ld"; then
12132                 version_type=linux # correct to gnu/linux during the next big refactor
12133         else
12134                 version_type=irix
12135         fi ;;
12136   esac
12137   need_lib_prefix=no
12138   need_version=no
12139   soname_spec='$libname$release$shared_ext$major'
12140   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12141   case $host_os in
12142   irix5* | nonstopux*)
12143     libsuff= shlibsuff=
12144     ;;
12145   *)
12146     case $LD in # libtool.m4 will add one of these switches to LD
12147     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12148       libsuff= shlibsuff= libmagic=32-bit;;
12149     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12150       libsuff=32 shlibsuff=N32 libmagic=N32;;
12151     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12152       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12153     *) libsuff= shlibsuff= libmagic=never-match;;
12154     esac
12155     ;;
12156   esac
12157   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12158   shlibpath_overrides_runpath=no
12159   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12160   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12161   hardcode_into_libs=yes
12162   ;;
12163
12164 # No shared lib support for Linux oldld, aout, or coff.
12165 linux*oldld* | linux*aout* | linux*coff*)
12166   dynamic_linker=no
12167   ;;
12168
12169 linux*android*)
12170   version_type=none # Android doesn't support versioned libraries.
12171   need_lib_prefix=no
12172   need_version=no
12173   library_names_spec='$libname$release$shared_ext'
12174   soname_spec='$libname$release$shared_ext'
12175   finish_cmds=
12176   shlibpath_var=LD_LIBRARY_PATH
12177   shlibpath_overrides_runpath=yes
12178
12179   # This implies no fast_install, which is unacceptable.
12180   # Some rework will be needed to allow for fast_install
12181   # before this can be enabled.
12182   hardcode_into_libs=yes
12183
12184   dynamic_linker='Android linker'
12185   # Don't embed -rpath directories since the linker doesn't support them.
12186   hardcode_libdir_flag_spec='-L$libdir'
12187   ;;
12188
12189 # This must be glibc/ELF.
12190 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12191   version_type=linux # correct to gnu/linux during the next big refactor
12192   need_lib_prefix=no
12193   need_version=no
12194   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12195   soname_spec='$libname$release$shared_ext$major'
12196   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12197   shlibpath_var=LD_LIBRARY_PATH
12198   shlibpath_overrides_runpath=no
12199
12200   # Some binutils ld are patched to set DT_RUNPATH
12201   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12202   $as_echo_n "(cached) " >&6
12203 else
12204   lt_cv_shlibpath_overrides_runpath=no
12205     save_LDFLAGS=$LDFLAGS
12206     save_libdir=$libdir
12207     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12208          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12209     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h.  */
12211
12212 int
12213 main ()
12214 {
12215
12216   ;
12217   return 0;
12218 }
12219 _ACEOF
12220 if ac_fn_c_try_link "$LINENO"; then :
12221   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12222   lt_cv_shlibpath_overrides_runpath=yes
12223 fi
12224 fi
12225 rm -f core conftest.err conftest.$ac_objext \
12226     conftest$ac_exeext conftest.$ac_ext
12227     LDFLAGS=$save_LDFLAGS
12228     libdir=$save_libdir
12229
12230 fi
12231
12232   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12233
12234   # This implies no fast_install, which is unacceptable.
12235   # Some rework will be needed to allow for fast_install
12236   # before this can be enabled.
12237   hardcode_into_libs=yes
12238
12239   # Ideally, we could use ldconfig to report *all* directores which are
12240   # searched for libraries, however this is still not possible.  Aside from not
12241   # being certain /sbin/ldconfig is available, command
12242   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12243   # even though it is searched at run-time.  Try to do the best guess by
12244   # appending ld.so.conf contents (and includes) to the search path.
12245   if test -f /etc/ld.so.conf; then
12246     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' ' '`
12247     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12248   fi
12249
12250   # We used to test for /lib/ld.so.1 and disable shared libraries on
12251   # powerpc, because MkLinux only supported shared libraries with the
12252   # GNU dynamic linker.  Since this was broken with cross compilers,
12253   # most powerpc-linux boxes support dynamic linking these days and
12254   # people can always --disable-shared, the test was removed, and we
12255   # assume the GNU/Linux dynamic linker is in use.
12256   dynamic_linker='GNU/Linux ld.so'
12257   ;;
12258
12259 netbsdelf*-gnu)
12260   version_type=linux
12261   need_lib_prefix=no
12262   need_version=no
12263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12264   soname_spec='${libname}${release}${shared_ext}$major'
12265   shlibpath_var=LD_LIBRARY_PATH
12266   shlibpath_overrides_runpath=no
12267   hardcode_into_libs=yes
12268   dynamic_linker='NetBSD ld.elf_so'
12269   ;;
12270
12271 netbsd*)
12272   version_type=sunos
12273   need_lib_prefix=no
12274   need_version=no
12275   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12276     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12277     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12278     dynamic_linker='NetBSD (a.out) ld.so'
12279   else
12280     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12281     soname_spec='$libname$release$shared_ext$major'
12282     dynamic_linker='NetBSD ld.elf_so'
12283   fi
12284   shlibpath_var=LD_LIBRARY_PATH
12285   shlibpath_overrides_runpath=yes
12286   hardcode_into_libs=yes
12287   ;;
12288
12289 newsos6)
12290   version_type=linux # correct to gnu/linux during the next big refactor
12291   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12292   shlibpath_var=LD_LIBRARY_PATH
12293   shlibpath_overrides_runpath=yes
12294   ;;
12295
12296 *nto* | *qnx*)
12297   version_type=qnx
12298   need_lib_prefix=no
12299   need_version=no
12300   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12301   soname_spec='$libname$release$shared_ext$major'
12302   shlibpath_var=LD_LIBRARY_PATH
12303   shlibpath_overrides_runpath=no
12304   hardcode_into_libs=yes
12305   dynamic_linker='ldqnx.so'
12306   ;;
12307
12308 openbsd* | bitrig*)
12309   version_type=sunos
12310   sys_lib_dlsearch_path_spec=/usr/lib
12311   need_lib_prefix=no
12312   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12313     need_version=no
12314   else
12315     need_version=yes
12316   fi
12317   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12318   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12319   shlibpath_var=LD_LIBRARY_PATH
12320   shlibpath_overrides_runpath=yes
12321   ;;
12322
12323 os2*)
12324   libname_spec='$name'
12325   version_type=windows
12326   shrext_cmds=.dll
12327   need_version=no
12328   need_lib_prefix=no
12329   # OS/2 can only load a DLL with a base name of 8 characters or less.
12330   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12331     v=$($ECHO $release$versuffix | tr -d .-);
12332     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12333     $ECHO $n$v`$shared_ext'
12334   library_names_spec='${libname}_dll.$libext'
12335   dynamic_linker='OS/2 ld.exe'
12336   shlibpath_var=BEGINLIBPATH
12337   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12338   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12339   postinstall_cmds='base_file=`basename \$file`~
12340     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12341     dldir=$destdir/`dirname \$dlpath`~
12342     test -d \$dldir || mkdir -p \$dldir~
12343     $install_prog $dir/$dlname \$dldir/$dlname~
12344     chmod a+x \$dldir/$dlname~
12345     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12346       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12347     fi'
12348   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12349     dlpath=$dir/\$dldll~
12350     $RM \$dlpath'
12351   ;;
12352
12353 osf3* | osf4* | osf5*)
12354   version_type=osf
12355   need_lib_prefix=no
12356   need_version=no
12357   soname_spec='$libname$release$shared_ext$major'
12358   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12359   shlibpath_var=LD_LIBRARY_PATH
12360   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12361   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12362   ;;
12363
12364 rdos*)
12365   dynamic_linker=no
12366   ;;
12367
12368 solaris*)
12369   version_type=linux # correct to gnu/linux during the next big refactor
12370   need_lib_prefix=no
12371   need_version=no
12372   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12373   soname_spec='$libname$release$shared_ext$major'
12374   shlibpath_var=LD_LIBRARY_PATH
12375   shlibpath_overrides_runpath=yes
12376   hardcode_into_libs=yes
12377   # ldd complains unless libraries are executable
12378   postinstall_cmds='chmod +x $lib'
12379   ;;
12380
12381 sunos4*)
12382   version_type=sunos
12383   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12384   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12385   shlibpath_var=LD_LIBRARY_PATH
12386   shlibpath_overrides_runpath=yes
12387   if test yes = "$with_gnu_ld"; then
12388     need_lib_prefix=no
12389   fi
12390   need_version=yes
12391   ;;
12392
12393 sysv4 | sysv4.3*)
12394   version_type=linux # correct to gnu/linux during the next big refactor
12395   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12396   soname_spec='$libname$release$shared_ext$major'
12397   shlibpath_var=LD_LIBRARY_PATH
12398   case $host_vendor in
12399     sni)
12400       shlibpath_overrides_runpath=no
12401       need_lib_prefix=no
12402       runpath_var=LD_RUN_PATH
12403       ;;
12404     siemens)
12405       need_lib_prefix=no
12406       ;;
12407     motorola)
12408       need_lib_prefix=no
12409       need_version=no
12410       shlibpath_overrides_runpath=no
12411       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12412       ;;
12413   esac
12414   ;;
12415
12416 sysv4*MP*)
12417   if test -d /usr/nec; then
12418     version_type=linux # correct to gnu/linux during the next big refactor
12419     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12420     soname_spec='$libname$shared_ext.$major'
12421     shlibpath_var=LD_LIBRARY_PATH
12422   fi
12423   ;;
12424
12425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12426   version_type=sco
12427   need_lib_prefix=no
12428   need_version=no
12429   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12430   soname_spec='$libname$release$shared_ext$major'
12431   shlibpath_var=LD_LIBRARY_PATH
12432   shlibpath_overrides_runpath=yes
12433   hardcode_into_libs=yes
12434   if test yes = "$with_gnu_ld"; then
12435     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12436   else
12437     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12438     case $host_os in
12439       sco3.2v5*)
12440         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12441         ;;
12442     esac
12443   fi
12444   sys_lib_dlsearch_path_spec='/usr/lib'
12445   ;;
12446
12447 tpf*)
12448   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12449   version_type=linux # correct to gnu/linux during the next big refactor
12450   need_lib_prefix=no
12451   need_version=no
12452   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12453   shlibpath_var=LD_LIBRARY_PATH
12454   shlibpath_overrides_runpath=no
12455   hardcode_into_libs=yes
12456   ;;
12457
12458 uts4*)
12459   version_type=linux # correct to gnu/linux during the next big refactor
12460   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12461   soname_spec='$libname$release$shared_ext$major'
12462   shlibpath_var=LD_LIBRARY_PATH
12463   ;;
12464
12465 *)
12466   dynamic_linker=no
12467   ;;
12468 esac
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12470 $as_echo "$dynamic_linker" >&6; }
12471 test no = "$dynamic_linker" && can_build_shared=no
12472
12473 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12474 if test yes = "$GCC"; then
12475   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12476 fi
12477
12478 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12479   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12480 fi
12481
12482 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12483   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12484 fi
12485
12486 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12487 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12488
12489 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12490 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12491
12492 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12493 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12592 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12593 hardcode_action=
12594 if test -n "$hardcode_libdir_flag_spec" ||
12595    test -n "$runpath_var" ||
12596    test yes = "$hardcode_automatic"; then
12597
12598   # We can hardcode non-existent directories.
12599   if test no != "$hardcode_direct" &&
12600      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12601      # have to relink, otherwise we might link with an installed library
12602      # when we should be linking with a yet-to-be-installed one
12603      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12604      test no != "$hardcode_minus_L"; then
12605     # Linking always hardcodes the temporary library directory.
12606     hardcode_action=relink
12607   else
12608     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12609     hardcode_action=immediate
12610   fi
12611 else
12612   # We cannot hardcode anything, or else we can only hardcode existing
12613   # directories.
12614   hardcode_action=unsupported
12615 fi
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12617 $as_echo "$hardcode_action" >&6; }
12618
12619 if test relink = "$hardcode_action" ||
12620    test yes = "$inherit_rpath"; then
12621   # Fast installation is not supported
12622   enable_fast_install=no
12623 elif test yes = "$shlibpath_overrides_runpath" ||
12624      test no = "$enable_shared"; then
12625   # Fast installation is not necessary
12626   enable_fast_install=needless
12627 fi
12628
12629
12630
12631
12632
12633
12634   if test yes != "$enable_dlopen"; then
12635   enable_dlopen=unknown
12636   enable_dlopen_self=unknown
12637   enable_dlopen_self_static=unknown
12638 else
12639   lt_cv_dlopen=no
12640   lt_cv_dlopen_libs=
12641
12642   case $host_os in
12643   beos*)
12644     lt_cv_dlopen=load_add_on
12645     lt_cv_dlopen_libs=
12646     lt_cv_dlopen_self=yes
12647     ;;
12648
12649   mingw* | pw32* | cegcc*)
12650     lt_cv_dlopen=LoadLibrary
12651     lt_cv_dlopen_libs=
12652     ;;
12653
12654   cygwin*)
12655     lt_cv_dlopen=dlopen
12656     lt_cv_dlopen_libs=
12657     ;;
12658
12659   darwin*)
12660     # if libdl is installed we need to link against it
12661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12662 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12663 if ${ac_cv_lib_dl_dlopen+:} false; then :
12664   $as_echo_n "(cached) " >&6
12665 else
12666   ac_check_lib_save_LIBS=$LIBS
12667 LIBS="-ldl  $LIBS"
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h.  */
12670
12671 /* Override any GCC internal prototype to avoid an error.
12672    Use char because int might match the return type of a GCC
12673    builtin and then its argument prototype would still apply.  */
12674 #ifdef __cplusplus
12675 extern "C"
12676 #endif
12677 char dlopen ();
12678 int
12679 main ()
12680 {
12681 return dlopen ();
12682   ;
12683   return 0;
12684 }
12685 _ACEOF
12686 if ac_fn_c_try_link "$LINENO"; then :
12687   ac_cv_lib_dl_dlopen=yes
12688 else
12689   ac_cv_lib_dl_dlopen=no
12690 fi
12691 rm -f core conftest.err conftest.$ac_objext \
12692     conftest$ac_exeext conftest.$ac_ext
12693 LIBS=$ac_check_lib_save_LIBS
12694 fi
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12696 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12697 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12698   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12699 else
12700
12701     lt_cv_dlopen=dyld
12702     lt_cv_dlopen_libs=
12703     lt_cv_dlopen_self=yes
12704
12705 fi
12706
12707     ;;
12708
12709   tpf*)
12710     # Don't try to run any link tests for TPF.  We know it's impossible
12711     # because TPF is a cross-compiler, and we know how we open DSOs.
12712     lt_cv_dlopen=dlopen
12713     lt_cv_dlopen_libs=
12714     lt_cv_dlopen_self=no
12715     ;;
12716
12717   *)
12718     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12719 if test "x$ac_cv_func_shl_load" = xyes; then :
12720   lt_cv_dlopen=shl_load
12721 else
12722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12723 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12724 if ${ac_cv_lib_dld_shl_load+:} false; then :
12725   $as_echo_n "(cached) " >&6
12726 else
12727   ac_check_lib_save_LIBS=$LIBS
12728 LIBS="-ldld  $LIBS"
12729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730 /* end confdefs.h.  */
12731
12732 /* Override any GCC internal prototype to avoid an error.
12733    Use char because int might match the return type of a GCC
12734    builtin and then its argument prototype would still apply.  */
12735 #ifdef __cplusplus
12736 extern "C"
12737 #endif
12738 char shl_load ();
12739 int
12740 main ()
12741 {
12742 return shl_load ();
12743   ;
12744   return 0;
12745 }
12746 _ACEOF
12747 if ac_fn_c_try_link "$LINENO"; then :
12748   ac_cv_lib_dld_shl_load=yes
12749 else
12750   ac_cv_lib_dld_shl_load=no
12751 fi
12752 rm -f core conftest.err conftest.$ac_objext \
12753     conftest$ac_exeext conftest.$ac_ext
12754 LIBS=$ac_check_lib_save_LIBS
12755 fi
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12757 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12758 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12759   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12760 else
12761   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12762 if test "x$ac_cv_func_dlopen" = xyes; then :
12763   lt_cv_dlopen=dlopen
12764 else
12765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12766 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12767 if ${ac_cv_lib_dl_dlopen+:} false; then :
12768   $as_echo_n "(cached) " >&6
12769 else
12770   ac_check_lib_save_LIBS=$LIBS
12771 LIBS="-ldl  $LIBS"
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h.  */
12774
12775 /* Override any GCC internal prototype to avoid an error.
12776    Use char because int might match the return type of a GCC
12777    builtin and then its argument prototype would still apply.  */
12778 #ifdef __cplusplus
12779 extern "C"
12780 #endif
12781 char dlopen ();
12782 int
12783 main ()
12784 {
12785 return dlopen ();
12786   ;
12787   return 0;
12788 }
12789 _ACEOF
12790 if ac_fn_c_try_link "$LINENO"; then :
12791   ac_cv_lib_dl_dlopen=yes
12792 else
12793   ac_cv_lib_dl_dlopen=no
12794 fi
12795 rm -f core conftest.err conftest.$ac_objext \
12796     conftest$ac_exeext conftest.$ac_ext
12797 LIBS=$ac_check_lib_save_LIBS
12798 fi
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12800 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12801 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12802   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12803 else
12804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12805 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12806 if ${ac_cv_lib_svld_dlopen+:} false; then :
12807   $as_echo_n "(cached) " >&6
12808 else
12809   ac_check_lib_save_LIBS=$LIBS
12810 LIBS="-lsvld  $LIBS"
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h.  */
12813
12814 /* Override any GCC internal prototype to avoid an error.
12815    Use char because int might match the return type of a GCC
12816    builtin and then its argument prototype would still apply.  */
12817 #ifdef __cplusplus
12818 extern "C"
12819 #endif
12820 char dlopen ();
12821 int
12822 main ()
12823 {
12824 return dlopen ();
12825   ;
12826   return 0;
12827 }
12828 _ACEOF
12829 if ac_fn_c_try_link "$LINENO"; then :
12830   ac_cv_lib_svld_dlopen=yes
12831 else
12832   ac_cv_lib_svld_dlopen=no
12833 fi
12834 rm -f core conftest.err conftest.$ac_objext \
12835     conftest$ac_exeext conftest.$ac_ext
12836 LIBS=$ac_check_lib_save_LIBS
12837 fi
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12839 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12840 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12841   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12842 else
12843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12844 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12845 if ${ac_cv_lib_dld_dld_link+:} false; then :
12846   $as_echo_n "(cached) " >&6
12847 else
12848   ac_check_lib_save_LIBS=$LIBS
12849 LIBS="-ldld  $LIBS"
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h.  */
12852
12853 /* Override any GCC internal prototype to avoid an error.
12854    Use char because int might match the return type of a GCC
12855    builtin and then its argument prototype would still apply.  */
12856 #ifdef __cplusplus
12857 extern "C"
12858 #endif
12859 char dld_link ();
12860 int
12861 main ()
12862 {
12863 return dld_link ();
12864   ;
12865   return 0;
12866 }
12867 _ACEOF
12868 if ac_fn_c_try_link "$LINENO"; then :
12869   ac_cv_lib_dld_dld_link=yes
12870 else
12871   ac_cv_lib_dld_dld_link=no
12872 fi
12873 rm -f core conftest.err conftest.$ac_objext \
12874     conftest$ac_exeext conftest.$ac_ext
12875 LIBS=$ac_check_lib_save_LIBS
12876 fi
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12878 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12879 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12880   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12881 fi
12882
12883
12884 fi
12885
12886
12887 fi
12888
12889
12890 fi
12891
12892
12893 fi
12894
12895
12896 fi
12897
12898     ;;
12899   esac
12900
12901   if test no = "$lt_cv_dlopen"; then
12902     enable_dlopen=no
12903   else
12904     enable_dlopen=yes
12905   fi
12906
12907   case $lt_cv_dlopen in
12908   dlopen)
12909     save_CPPFLAGS=$CPPFLAGS
12910     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12911
12912     save_LDFLAGS=$LDFLAGS
12913     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12914
12915     save_LIBS=$LIBS
12916     LIBS="$lt_cv_dlopen_libs $LIBS"
12917
12918     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12919 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12920 if ${lt_cv_dlopen_self+:} false; then :
12921   $as_echo_n "(cached) " >&6
12922 else
12923           if test yes = "$cross_compiling"; then :
12924   lt_cv_dlopen_self=cross
12925 else
12926   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12927   lt_status=$lt_dlunknown
12928   cat > conftest.$ac_ext <<_LT_EOF
12929 #line $LINENO "configure"
12930 #include "confdefs.h"
12931
12932 #if HAVE_DLFCN_H
12933 #include <dlfcn.h>
12934 #endif
12935
12936 #include <stdio.h>
12937
12938 #ifdef RTLD_GLOBAL
12939 #  define LT_DLGLOBAL           RTLD_GLOBAL
12940 #else
12941 #  ifdef DL_GLOBAL
12942 #    define LT_DLGLOBAL         DL_GLOBAL
12943 #  else
12944 #    define LT_DLGLOBAL         0
12945 #  endif
12946 #endif
12947
12948 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12949    find out it does not work in some platform. */
12950 #ifndef LT_DLLAZY_OR_NOW
12951 #  ifdef RTLD_LAZY
12952 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12953 #  else
12954 #    ifdef DL_LAZY
12955 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12956 #    else
12957 #      ifdef RTLD_NOW
12958 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12959 #      else
12960 #        ifdef DL_NOW
12961 #          define LT_DLLAZY_OR_NOW      DL_NOW
12962 #        else
12963 #          define LT_DLLAZY_OR_NOW      0
12964 #        endif
12965 #      endif
12966 #    endif
12967 #  endif
12968 #endif
12969
12970 /* When -fvisibility=hidden is used, assume the code has been annotated
12971    correspondingly for the symbols needed.  */
12972 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12973 int fnord () __attribute__((visibility("default")));
12974 #endif
12975
12976 int fnord () { return 42; }
12977 int main ()
12978 {
12979   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12980   int status = $lt_dlunknown;
12981
12982   if (self)
12983     {
12984       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12985       else
12986         {
12987           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12988           else puts (dlerror ());
12989         }
12990       /* dlclose (self); */
12991     }
12992   else
12993     puts (dlerror ());
12994
12995   return status;
12996 }
12997 _LT_EOF
12998   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12999   (eval $ac_link) 2>&5
13000   ac_status=$?
13001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13002   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13003     (./conftest; exit; ) >&5 2>/dev/null
13004     lt_status=$?
13005     case x$lt_status in
13006       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13007       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13008       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13009     esac
13010   else :
13011     # compilation failed
13012     lt_cv_dlopen_self=no
13013   fi
13014 fi
13015 rm -fr conftest*
13016
13017
13018 fi
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13020 $as_echo "$lt_cv_dlopen_self" >&6; }
13021
13022     if test yes = "$lt_cv_dlopen_self"; then
13023       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13024       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13025 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13026 if ${lt_cv_dlopen_self_static+:} false; then :
13027   $as_echo_n "(cached) " >&6
13028 else
13029           if test yes = "$cross_compiling"; then :
13030   lt_cv_dlopen_self_static=cross
13031 else
13032   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13033   lt_status=$lt_dlunknown
13034   cat > conftest.$ac_ext <<_LT_EOF
13035 #line $LINENO "configure"
13036 #include "confdefs.h"
13037
13038 #if HAVE_DLFCN_H
13039 #include <dlfcn.h>
13040 #endif
13041
13042 #include <stdio.h>
13043
13044 #ifdef RTLD_GLOBAL
13045 #  define LT_DLGLOBAL           RTLD_GLOBAL
13046 #else
13047 #  ifdef DL_GLOBAL
13048 #    define LT_DLGLOBAL         DL_GLOBAL
13049 #  else
13050 #    define LT_DLGLOBAL         0
13051 #  endif
13052 #endif
13053
13054 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13055    find out it does not work in some platform. */
13056 #ifndef LT_DLLAZY_OR_NOW
13057 #  ifdef RTLD_LAZY
13058 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13059 #  else
13060 #    ifdef DL_LAZY
13061 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13062 #    else
13063 #      ifdef RTLD_NOW
13064 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13065 #      else
13066 #        ifdef DL_NOW
13067 #          define LT_DLLAZY_OR_NOW      DL_NOW
13068 #        else
13069 #          define LT_DLLAZY_OR_NOW      0
13070 #        endif
13071 #      endif
13072 #    endif
13073 #  endif
13074 #endif
13075
13076 /* When -fvisibility=hidden is used, assume the code has been annotated
13077    correspondingly for the symbols needed.  */
13078 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13079 int fnord () __attribute__((visibility("default")));
13080 #endif
13081
13082 int fnord () { return 42; }
13083 int main ()
13084 {
13085   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13086   int status = $lt_dlunknown;
13087
13088   if (self)
13089     {
13090       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13091       else
13092         {
13093           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13094           else puts (dlerror ());
13095         }
13096       /* dlclose (self); */
13097     }
13098   else
13099     puts (dlerror ());
13100
13101   return status;
13102 }
13103 _LT_EOF
13104   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13105   (eval $ac_link) 2>&5
13106   ac_status=$?
13107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13108   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13109     (./conftest; exit; ) >&5 2>/dev/null
13110     lt_status=$?
13111     case x$lt_status in
13112       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13113       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13114       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13115     esac
13116   else :
13117     # compilation failed
13118     lt_cv_dlopen_self_static=no
13119   fi
13120 fi
13121 rm -fr conftest*
13122
13123
13124 fi
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13126 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13127     fi
13128
13129     CPPFLAGS=$save_CPPFLAGS
13130     LDFLAGS=$save_LDFLAGS
13131     LIBS=$save_LIBS
13132     ;;
13133   esac
13134
13135   case $lt_cv_dlopen_self in
13136   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13137   *) enable_dlopen_self=unknown ;;
13138   esac
13139
13140   case $lt_cv_dlopen_self_static in
13141   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13142   *) enable_dlopen_self_static=unknown ;;
13143   esac
13144 fi
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162 striplib=
13163 old_striplib=
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13165 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13166 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13167   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13168   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13170 $as_echo "yes" >&6; }
13171 else
13172 # FIXME - insert some real tests, host_os isn't really good enough
13173   case $host_os in
13174   darwin*)
13175     if test -n "$STRIP"; then
13176       striplib="$STRIP -x"
13177       old_striplib="$STRIP -S"
13178       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13179 $as_echo "yes" >&6; }
13180     else
13181       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13182 $as_echo "no" >&6; }
13183     fi
13184     ;;
13185   *)
13186     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187 $as_echo "no" >&6; }
13188     ;;
13189   esac
13190 fi
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203   # Report what library types will actually be built
13204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13205 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13207 $as_echo "$can_build_shared" >&6; }
13208
13209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13210 $as_echo_n "checking whether to build shared libraries... " >&6; }
13211   test no = "$can_build_shared" && enable_shared=no
13212
13213   # On AIX, shared libraries and static libraries use the same namespace, and
13214   # are all built from PIC.
13215   case $host_os in
13216   aix3*)
13217     test yes = "$enable_shared" && enable_static=no
13218     if test -n "$RANLIB"; then
13219       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13220       postinstall_cmds='$RANLIB $lib'
13221     fi
13222     ;;
13223
13224   aix[4-9]*)
13225     if test ia64 != "$host_cpu"; then
13226       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13227       yes,aix,yes) ;;                   # shared object as lib.so file only
13228       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13229       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13230       esac
13231     fi
13232     ;;
13233   esac
13234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13235 $as_echo "$enable_shared" >&6; }
13236
13237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13238 $as_echo_n "checking whether to build static libraries... " >&6; }
13239   # Make sure either enable_shared or enable_static is yes.
13240   test yes = "$enable_shared" || enable_static=yes
13241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13242 $as_echo "$enable_static" >&6; }
13243
13244
13245
13246
13247 fi
13248 ac_ext=c
13249 ac_cpp='$CPP $CPPFLAGS'
13250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13253
13254 CC=$lt_save_CC
13255
13256       if test -n "$CXX" && ( test no != "$CXX" &&
13257     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13258     (test g++ != "$CXX"))); then
13259   ac_ext=cpp
13260 ac_cpp='$CXXCPP $CPPFLAGS'
13261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13265 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13266 if test -z "$CXXCPP"; then
13267   if ${ac_cv_prog_CXXCPP+:} false; then :
13268   $as_echo_n "(cached) " >&6
13269 else
13270       # Double quotes because CXXCPP needs to be expanded
13271     for CXXCPP in "$CXX -E" "/lib/cpp"
13272     do
13273       ac_preproc_ok=false
13274 for ac_cxx_preproc_warn_flag in '' yes
13275 do
13276   # Use a header file that comes with gcc, so configuring glibc
13277   # with a fresh cross-compiler works.
13278   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13279   # <limits.h> exists even on freestanding compilers.
13280   # On the NeXT, cc -E runs the code through the compiler's parser,
13281   # not just through cpp. "Syntax error" is here to catch this case.
13282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h.  */
13284 #ifdef __STDC__
13285 # include <limits.h>
13286 #else
13287 # include <assert.h>
13288 #endif
13289                      Syntax error
13290 _ACEOF
13291 if ac_fn_cxx_try_cpp "$LINENO"; then :
13292
13293 else
13294   # Broken: fails on valid input.
13295 continue
13296 fi
13297 rm -f conftest.err conftest.i conftest.$ac_ext
13298
13299   # OK, works on sane cases.  Now check whether nonexistent headers
13300   # can be detected and how.
13301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h.  */
13303 #include <ac_nonexistent.h>
13304 _ACEOF
13305 if ac_fn_cxx_try_cpp "$LINENO"; then :
13306   # Broken: success on invalid input.
13307 continue
13308 else
13309   # Passes both tests.
13310 ac_preproc_ok=:
13311 break
13312 fi
13313 rm -f conftest.err conftest.i conftest.$ac_ext
13314
13315 done
13316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13317 rm -f conftest.i conftest.err conftest.$ac_ext
13318 if $ac_preproc_ok; then :
13319   break
13320 fi
13321
13322     done
13323     ac_cv_prog_CXXCPP=$CXXCPP
13324
13325 fi
13326   CXXCPP=$ac_cv_prog_CXXCPP
13327 else
13328   ac_cv_prog_CXXCPP=$CXXCPP
13329 fi
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13331 $as_echo "$CXXCPP" >&6; }
13332 ac_preproc_ok=false
13333 for ac_cxx_preproc_warn_flag in '' yes
13334 do
13335   # Use a header file that comes with gcc, so configuring glibc
13336   # with a fresh cross-compiler works.
13337   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13338   # <limits.h> exists even on freestanding compilers.
13339   # On the NeXT, cc -E runs the code through the compiler's parser,
13340   # not just through cpp. "Syntax error" is here to catch this case.
13341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h.  */
13343 #ifdef __STDC__
13344 # include <limits.h>
13345 #else
13346 # include <assert.h>
13347 #endif
13348                      Syntax error
13349 _ACEOF
13350 if ac_fn_cxx_try_cpp "$LINENO"; then :
13351
13352 else
13353   # Broken: fails on valid input.
13354 continue
13355 fi
13356 rm -f conftest.err conftest.i conftest.$ac_ext
13357
13358   # OK, works on sane cases.  Now check whether nonexistent headers
13359   # can be detected and how.
13360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h.  */
13362 #include <ac_nonexistent.h>
13363 _ACEOF
13364 if ac_fn_cxx_try_cpp "$LINENO"; then :
13365   # Broken: success on invalid input.
13366 continue
13367 else
13368   # Passes both tests.
13369 ac_preproc_ok=:
13370 break
13371 fi
13372 rm -f conftest.err conftest.i conftest.$ac_ext
13373
13374 done
13375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13376 rm -f conftest.i conftest.err conftest.$ac_ext
13377 if $ac_preproc_ok; then :
13378
13379 else
13380   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13382 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13383 See \`config.log' for more details" "$LINENO" 5; }
13384 fi
13385
13386 ac_ext=c
13387 ac_cpp='$CPP $CPPFLAGS'
13388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13391
13392 else
13393   _lt_caught_CXX_error=yes
13394 fi
13395
13396 ac_ext=cpp
13397 ac_cpp='$CXXCPP $CPPFLAGS'
13398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13401
13402 archive_cmds_need_lc_CXX=no
13403 allow_undefined_flag_CXX=
13404 always_export_symbols_CXX=no
13405 archive_expsym_cmds_CXX=
13406 compiler_needs_object_CXX=no
13407 export_dynamic_flag_spec_CXX=
13408 hardcode_direct_CXX=no
13409 hardcode_direct_absolute_CXX=no
13410 hardcode_libdir_flag_spec_CXX=
13411 hardcode_libdir_separator_CXX=
13412 hardcode_minus_L_CXX=no
13413 hardcode_shlibpath_var_CXX=unsupported
13414 hardcode_automatic_CXX=no
13415 inherit_rpath_CXX=no
13416 module_cmds_CXX=
13417 module_expsym_cmds_CXX=
13418 link_all_deplibs_CXX=unknown
13419 old_archive_cmds_CXX=$old_archive_cmds
13420 reload_flag_CXX=$reload_flag
13421 reload_cmds_CXX=$reload_cmds
13422 no_undefined_flag_CXX=
13423 whole_archive_flag_spec_CXX=
13424 enable_shared_with_static_runtimes_CXX=no
13425
13426 # Source file extension for C++ test sources.
13427 ac_ext=cpp
13428
13429 # Object file extension for compiled C++ test sources.
13430 objext=o
13431 objext_CXX=$objext
13432
13433 # No sense in running all these tests if we already determined that
13434 # the CXX compiler isn't working.  Some variables (like enable_shared)
13435 # are currently assumed to apply to all compilers on this platform,
13436 # and will be corrupted by setting them based on a non-working compiler.
13437 if test yes != "$_lt_caught_CXX_error"; then
13438   # Code to be used in simple compile tests
13439   lt_simple_compile_test_code="int some_variable = 0;"
13440
13441   # Code to be used in simple link tests
13442   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13443
13444   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13445
13446
13447
13448
13449
13450
13451 # If no C compiler was specified, use CC.
13452 LTCC=${LTCC-"$CC"}
13453
13454 # If no C compiler flags were specified, use CFLAGS.
13455 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13456
13457 # Allow CC to be a program name with arguments.
13458 compiler=$CC
13459
13460
13461   # save warnings/boilerplate of simple test code
13462   ac_outfile=conftest.$ac_objext
13463 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13464 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13465 _lt_compiler_boilerplate=`cat conftest.err`
13466 $RM conftest*
13467
13468   ac_outfile=conftest.$ac_objext
13469 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13470 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13471 _lt_linker_boilerplate=`cat conftest.err`
13472 $RM -r conftest*
13473
13474
13475   # Allow CC to be a program name with arguments.
13476   lt_save_CC=$CC
13477   lt_save_CFLAGS=$CFLAGS
13478   lt_save_LD=$LD
13479   lt_save_GCC=$GCC
13480   GCC=$GXX
13481   lt_save_with_gnu_ld=$with_gnu_ld
13482   lt_save_path_LD=$lt_cv_path_LD
13483   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13484     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13485   else
13486     $as_unset lt_cv_prog_gnu_ld
13487   fi
13488   if test -n "${lt_cv_path_LDCXX+set}"; then
13489     lt_cv_path_LD=$lt_cv_path_LDCXX
13490   else
13491     $as_unset lt_cv_path_LD
13492   fi
13493   test -z "${LDCXX+set}" || LD=$LDCXX
13494   CC=${CXX-"c++"}
13495   CFLAGS=$CXXFLAGS
13496   compiler=$CC
13497   compiler_CXX=$CC
13498   func_cc_basename $compiler
13499 cc_basename=$func_cc_basename_result
13500
13501
13502   if test -n "$compiler"; then
13503     # We don't want -fno-exception when compiling C++ code, so set the
13504     # no_builtin_flag separately
13505     if test yes = "$GXX"; then
13506       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13507     else
13508       lt_prog_compiler_no_builtin_flag_CXX=
13509     fi
13510
13511     if test yes = "$GXX"; then
13512       # Set up default GNU C++ configuration
13513
13514
13515
13516 # Check whether --with-gnu-ld was given.
13517 if test "${with_gnu_ld+set}" = set; then :
13518   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13519 else
13520   with_gnu_ld=no
13521 fi
13522
13523 ac_prog=ld
13524 if test yes = "$GCC"; then
13525   # Check if gcc -print-prog-name=ld gives a path.
13526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13527 $as_echo_n "checking for ld used by $CC... " >&6; }
13528   case $host in
13529   *-*-mingw*)
13530     # gcc leaves a trailing carriage return, which upsets mingw
13531     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13532   *)
13533     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13534   esac
13535   case $ac_prog in
13536     # Accept absolute paths.
13537     [\\/]* | ?:[\\/]*)
13538       re_direlt='/[^/][^/]*/\.\./'
13539       # Canonicalize the pathname of ld
13540       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13541       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13542         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13543       done
13544       test -z "$LD" && LD=$ac_prog
13545       ;;
13546   "")
13547     # If it fails, then pretend we aren't using GCC.
13548     ac_prog=ld
13549     ;;
13550   *)
13551     # If it is relative, then search for the first ld in PATH.
13552     with_gnu_ld=unknown
13553     ;;
13554   esac
13555 elif test yes = "$with_gnu_ld"; then
13556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13557 $as_echo_n "checking for GNU ld... " >&6; }
13558 else
13559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13560 $as_echo_n "checking for non-GNU ld... " >&6; }
13561 fi
13562 if ${lt_cv_path_LD+:} false; then :
13563   $as_echo_n "(cached) " >&6
13564 else
13565   if test -z "$LD"; then
13566   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13567   for ac_dir in $PATH; do
13568     IFS=$lt_save_ifs
13569     test -z "$ac_dir" && ac_dir=.
13570     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13571       lt_cv_path_LD=$ac_dir/$ac_prog
13572       # Check to see if the program is GNU ld.  I'd rather use --version,
13573       # but apparently some variants of GNU ld only accept -v.
13574       # Break only if it was the GNU/non-GNU ld that we prefer.
13575       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13576       *GNU* | *'with BFD'*)
13577         test no != "$with_gnu_ld" && break
13578         ;;
13579       *)
13580         test yes != "$with_gnu_ld" && break
13581         ;;
13582       esac
13583     fi
13584   done
13585   IFS=$lt_save_ifs
13586 else
13587   lt_cv_path_LD=$LD # Let the user override the test with a path.
13588 fi
13589 fi
13590
13591 LD=$lt_cv_path_LD
13592 if test -n "$LD"; then
13593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13594 $as_echo "$LD" >&6; }
13595 else
13596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597 $as_echo "no" >&6; }
13598 fi
13599 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13601 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13602 if ${lt_cv_prog_gnu_ld+:} false; then :
13603   $as_echo_n "(cached) " >&6
13604 else
13605   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13606 case `$LD -v 2>&1 </dev/null` in
13607 *GNU* | *'with BFD'*)
13608   lt_cv_prog_gnu_ld=yes
13609   ;;
13610 *)
13611   lt_cv_prog_gnu_ld=no
13612   ;;
13613 esac
13614 fi
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13616 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13617 with_gnu_ld=$lt_cv_prog_gnu_ld
13618
13619
13620
13621
13622
13623
13624
13625       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13626       # archiving commands below assume that GNU ld is being used.
13627       if test yes = "$with_gnu_ld"; then
13628         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13629         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'
13630
13631         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13632         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13633
13634         # If archive_cmds runs LD, not CC, wlarc should be empty
13635         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13636         #     investigate it a little bit more. (MM)
13637         wlarc='$wl'
13638
13639         # ancient GNU ld didn't support --whole-archive et. al.
13640         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13641           $GREP 'no-whole-archive' > /dev/null; then
13642           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13643         else
13644           whole_archive_flag_spec_CXX=
13645         fi
13646       else
13647         with_gnu_ld=no
13648         wlarc=
13649
13650         # A generic and very simple default shared library creation
13651         # command for GNU C++ for the case where it uses the native
13652         # linker, instead of GNU ld.  If possible, this setting should
13653         # overridden to take advantage of the native linker features on
13654         # the platform it is being used on.
13655         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13656       fi
13657
13658       # Commands to make compiler produce verbose output that lists
13659       # what "hidden" libraries, object files and flags are used when
13660       # linking a shared library.
13661       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13662
13663     else
13664       GXX=no
13665       with_gnu_ld=no
13666       wlarc=
13667     fi
13668
13669     # PORTME: fill in a description of your system's C++ link characteristics
13670     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13671 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13672     ld_shlibs_CXX=yes
13673     case $host_os in
13674       aix3*)
13675         # FIXME: insert proper C++ library support
13676         ld_shlibs_CXX=no
13677         ;;
13678       aix[4-9]*)
13679         if test ia64 = "$host_cpu"; then
13680           # On IA64, the linker does run time linking by default, so we don't
13681           # have to do anything special.
13682           aix_use_runtimelinking=no
13683           exp_sym_flag='-Bexport'
13684           no_entry_flag=
13685         else
13686           aix_use_runtimelinking=no
13687
13688           # Test if we are trying to use run time linking or normal
13689           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13690           # have runtime linking enabled, and use it for executables.
13691           # For shared libraries, we enable/disable runtime linking
13692           # depending on the kind of the shared library created -
13693           # when "with_aix_soname,aix_use_runtimelinking" is:
13694           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13695           # "aix,yes"  lib.so          shared, rtl:yes, for executables
13696           #            lib.a           static archive
13697           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13698           #            lib.a(lib.so.V) shared, rtl:no,  for executables
13699           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13700           #            lib.a(lib.so.V) shared, rtl:no
13701           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13702           #            lib.a           static archive
13703           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13704             for ld_flag in $LDFLAGS; do
13705               case $ld_flag in
13706               *-brtl*)
13707                 aix_use_runtimelinking=yes
13708                 break
13709                 ;;
13710               esac
13711             done
13712             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13713               # With aix-soname=svr4, we create the lib.so.V shared archives only,
13714               # so we don't have lib.a shared libs to link our executables.
13715               # We have to force runtime linking in this case.
13716               aix_use_runtimelinking=yes
13717               LDFLAGS="$LDFLAGS -Wl,-brtl"
13718             fi
13719             ;;
13720           esac
13721
13722           exp_sym_flag='-bexport'
13723           no_entry_flag='-bnoentry'
13724         fi
13725
13726         # When large executables or shared objects are built, AIX ld can
13727         # have problems creating the table of contents.  If linking a library
13728         # or program results in "error TOC overflow" add -mminimal-toc to
13729         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13730         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13731
13732         archive_cmds_CXX=''
13733         hardcode_direct_CXX=yes
13734         hardcode_direct_absolute_CXX=yes
13735         hardcode_libdir_separator_CXX=':'
13736         link_all_deplibs_CXX=yes
13737         file_list_spec_CXX='$wl-f,'
13738         case $with_aix_soname,$aix_use_runtimelinking in
13739         aix,*) ;;       # no import file
13740         svr4,* | *,yes) # use import file
13741           # The Import File defines what to hardcode.
13742           hardcode_direct_CXX=no
13743           hardcode_direct_absolute_CXX=no
13744           ;;
13745         esac
13746
13747         if test yes = "$GXX"; then
13748           case $host_os in aix4.[012]|aix4.[012].*)
13749           # We only want to do this on AIX 4.2 and lower, the check
13750           # below for broken collect2 doesn't work under 4.3+
13751           collect2name=`$CC -print-prog-name=collect2`
13752           if test -f "$collect2name" &&
13753              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13754           then
13755             # We have reworked collect2
13756             :
13757           else
13758             # We have old collect2
13759             hardcode_direct_CXX=unsupported
13760             # It fails to find uninstalled libraries when the uninstalled
13761             # path is not listed in the libpath.  Setting hardcode_minus_L
13762             # to unsupported forces relinking
13763             hardcode_minus_L_CXX=yes
13764             hardcode_libdir_flag_spec_CXX='-L$libdir'
13765             hardcode_libdir_separator_CXX=
13766           fi
13767           esac
13768           shared_flag='-shared'
13769           if test yes = "$aix_use_runtimelinking"; then
13770             shared_flag=$shared_flag' $wl-G'
13771           fi
13772           # Need to ensure runtime linking is disabled for the traditional
13773           # shared library, or the linker may eventually find shared libraries
13774           # /with/ Import File - we do not want to mix them.
13775           shared_flag_aix='-shared'
13776           shared_flag_svr4='-shared $wl-G'
13777         else
13778           # not using gcc
13779           if test ia64 = "$host_cpu"; then
13780           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13781           # chokes on -Wl,-G. The following line is correct:
13782           shared_flag='-G'
13783           else
13784             if test yes = "$aix_use_runtimelinking"; then
13785               shared_flag='$wl-G'
13786             else
13787               shared_flag='$wl-bM:SRE'
13788             fi
13789             shared_flag_aix='$wl-bM:SRE'
13790             shared_flag_svr4='$wl-G'
13791           fi
13792         fi
13793
13794         export_dynamic_flag_spec_CXX='$wl-bexpall'
13795         # It seems that -bexpall does not export symbols beginning with
13796         # underscore (_), so it is better to generate a list of symbols to
13797         # export.
13798         always_export_symbols_CXX=yes
13799         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13800           # Warning - without using the other runtime loading flags (-brtl),
13801           # -berok will link without error, but may produce a broken library.
13802           # The "-G" linker flag allows undefined symbols.
13803           no_undefined_flag_CXX='-bernotok'
13804           # Determine the default libpath from the value encoded in an empty
13805           # executable.
13806           if test set = "${lt_cv_aix_libpath+set}"; then
13807   aix_libpath=$lt_cv_aix_libpath
13808 else
13809   if ${lt_cv_aix_libpath__CXX+:} false; then :
13810   $as_echo_n "(cached) " >&6
13811 else
13812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h.  */
13814
13815 int
13816 main ()
13817 {
13818
13819   ;
13820   return 0;
13821 }
13822 _ACEOF
13823 if ac_fn_cxx_try_link "$LINENO"; then :
13824
13825   lt_aix_libpath_sed='
13826       /Import File Strings/,/^$/ {
13827           /^0/ {
13828               s/^0  *\([^ ]*\) *$/\1/
13829               p
13830           }
13831       }'
13832   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13833   # Check for a 64-bit object if we didn't find anything.
13834   if test -z "$lt_cv_aix_libpath__CXX"; then
13835     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13836   fi
13837 fi
13838 rm -f core conftest.err conftest.$ac_objext \
13839     conftest$ac_exeext conftest.$ac_ext
13840   if test -z "$lt_cv_aix_libpath__CXX"; then
13841     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13842   fi
13843
13844 fi
13845
13846   aix_libpath=$lt_cv_aix_libpath__CXX
13847 fi
13848
13849           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13850
13851           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13852         else
13853           if test ia64 = "$host_cpu"; then
13854             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13855             allow_undefined_flag_CXX="-z nodefs"
13856             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"
13857           else
13858             # Determine the default libpath from the value encoded in an
13859             # empty executable.
13860             if test set = "${lt_cv_aix_libpath+set}"; then
13861   aix_libpath=$lt_cv_aix_libpath
13862 else
13863   if ${lt_cv_aix_libpath__CXX+:} false; then :
13864   $as_echo_n "(cached) " >&6
13865 else
13866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867 /* end confdefs.h.  */
13868
13869 int
13870 main ()
13871 {
13872
13873   ;
13874   return 0;
13875 }
13876 _ACEOF
13877 if ac_fn_cxx_try_link "$LINENO"; then :
13878
13879   lt_aix_libpath_sed='
13880       /Import File Strings/,/^$/ {
13881           /^0/ {
13882               s/^0  *\([^ ]*\) *$/\1/
13883               p
13884           }
13885       }'
13886   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13887   # Check for a 64-bit object if we didn't find anything.
13888   if test -z "$lt_cv_aix_libpath__CXX"; then
13889     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13890   fi
13891 fi
13892 rm -f core conftest.err conftest.$ac_objext \
13893     conftest$ac_exeext conftest.$ac_ext
13894   if test -z "$lt_cv_aix_libpath__CXX"; then
13895     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13896   fi
13897
13898 fi
13899
13900   aix_libpath=$lt_cv_aix_libpath__CXX
13901 fi
13902
13903             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13904             # Warning - without using the other run time loading flags,
13905             # -berok will link without error, but may produce a broken library.
13906             no_undefined_flag_CXX=' $wl-bernotok'
13907             allow_undefined_flag_CXX=' $wl-berok'
13908             if test yes = "$with_gnu_ld"; then
13909               # We only use this code for GNU lds that support --whole-archive.
13910               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13911             else
13912               # Exported symbols can be pulled into shared objects from archives
13913               whole_archive_flag_spec_CXX='$convenience'
13914             fi
13915             archive_cmds_need_lc_CXX=yes
13916             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13917             # -brtl affects multiple linker settings, -berok does not and is overridden later
13918             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13919             if test svr4 != "$with_aix_soname"; then
13920               # This is similar to how AIX traditionally builds its shared
13921               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13922               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13923             fi
13924             if test aix != "$with_aix_soname"; then
13925               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13926             else
13927               # used by -dlpreopen to get the symbols
13928               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13929             fi
13930             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13931           fi
13932         fi
13933         ;;
13934
13935       beos*)
13936         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13937           allow_undefined_flag_CXX=unsupported
13938           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13939           # support --undefined.  This deserves some investigation.  FIXME
13940           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13941         else
13942           ld_shlibs_CXX=no
13943         fi
13944         ;;
13945
13946       chorus*)
13947         case $cc_basename in
13948           *)
13949           # FIXME: insert proper C++ library support
13950           ld_shlibs_CXX=no
13951           ;;
13952         esac
13953         ;;
13954
13955       cygwin* | mingw* | pw32* | cegcc*)
13956         case $GXX,$cc_basename in
13957         ,cl* | no,cl*)
13958           # Native MSVC
13959           # hardcode_libdir_flag_spec is actually meaningless, as there is
13960           # no search path for DLLs.
13961           hardcode_libdir_flag_spec_CXX=' '
13962           allow_undefined_flag_CXX=unsupported
13963           always_export_symbols_CXX=yes
13964           file_list_spec_CXX='@'
13965           # Tell ltmain to make .lib files, not .a files.
13966           libext=lib
13967           # Tell ltmain to make .dll files, not .so files.
13968           shrext_cmds=.dll
13969           # FIXME: Setting linknames here is a bad hack.
13970           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13971           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13972               cp "$export_symbols" "$output_objdir/$soname.def";
13973               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13974             else
13975               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13976             fi~
13977             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13978             linknames='
13979           # The linker will not automatically build a static lib if we build a DLL.
13980           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13981           enable_shared_with_static_runtimes_CXX=yes
13982           # Don't use ranlib
13983           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13984           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13985             lt_tool_outputfile="@TOOL_OUTPUT@"~
13986             case $lt_outputfile in
13987               *.exe|*.EXE) ;;
13988               *)
13989                 lt_outputfile=$lt_outputfile.exe
13990                 lt_tool_outputfile=$lt_tool_outputfile.exe
13991                 ;;
13992             esac~
13993             func_to_tool_file "$lt_outputfile"~
13994             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13995               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13996               $RM "$lt_outputfile.manifest";
13997             fi'
13998           ;;
13999         *)
14000           # g++
14001           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14002           # as there is no search path for DLLs.
14003           hardcode_libdir_flag_spec_CXX='-L$libdir'
14004           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14005           allow_undefined_flag_CXX=unsupported
14006           always_export_symbols_CXX=no
14007           enable_shared_with_static_runtimes_CXX=yes
14008
14009           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14010             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'
14011             # If the export-symbols file already is a .def file, use it as
14012             # is; otherwise, prepend EXPORTS...
14013             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14014               cp $export_symbols $output_objdir/$soname.def;
14015             else
14016               echo EXPORTS > $output_objdir/$soname.def;
14017               cat $export_symbols >> $output_objdir/$soname.def;
14018             fi~
14019             $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'
14020           else
14021             ld_shlibs_CXX=no
14022           fi
14023           ;;
14024         esac
14025         ;;
14026       darwin* | rhapsody*)
14027
14028
14029   archive_cmds_need_lc_CXX=no
14030   hardcode_direct_CXX=no
14031   hardcode_automatic_CXX=yes
14032   hardcode_shlibpath_var_CXX=unsupported
14033   if test yes = "$lt_cv_ld_force_load"; then
14034     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\"`'
14035
14036   else
14037     whole_archive_flag_spec_CXX=''
14038   fi
14039   link_all_deplibs_CXX=yes
14040   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14041   case $cc_basename in
14042      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14043      *) _lt_dar_can_shared=$GCC ;;
14044   esac
14045   if test yes = "$_lt_dar_can_shared"; then
14046     output_verbose_link_cmd=func_echo_all
14047     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"
14048     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14049     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"
14050     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"
14051        if test yes != "$lt_cv_apple_cc_single_mod"; then
14052       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"
14053       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"
14054     fi
14055
14056   else
14057   ld_shlibs_CXX=no
14058   fi
14059
14060         ;;
14061
14062       os2*)
14063         hardcode_libdir_flag_spec_CXX='-L$libdir'
14064         hardcode_minus_L_CXX=yes
14065         allow_undefined_flag_CXX=unsupported
14066         shrext_cmds=.dll
14067         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14068           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14069           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14070           $ECHO EXPORTS >> $output_objdir/$libname.def~
14071           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14072           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14073           emximp -o $lib $output_objdir/$libname.def'
14074         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14075           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14076           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14077           $ECHO EXPORTS >> $output_objdir/$libname.def~
14078           prefix_cmds="$SED"~
14079           if test EXPORTS = "`$SED 1q $export_symbols`"; then
14080             prefix_cmds="$prefix_cmds -e 1d";
14081           fi~
14082           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14083           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14084           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14085           emximp -o $lib $output_objdir/$libname.def'
14086         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14087         enable_shared_with_static_runtimes_CXX=yes
14088         ;;
14089
14090       dgux*)
14091         case $cc_basename in
14092           ec++*)
14093             # FIXME: insert proper C++ library support
14094             ld_shlibs_CXX=no
14095             ;;
14096           ghcx*)
14097             # Green Hills C++ Compiler
14098             # FIXME: insert proper C++ library support
14099             ld_shlibs_CXX=no
14100             ;;
14101           *)
14102             # FIXME: insert proper C++ library support
14103             ld_shlibs_CXX=no
14104             ;;
14105         esac
14106         ;;
14107
14108       freebsd2.*)
14109         # C++ shared libraries reported to be fairly broken before
14110         # switch to ELF
14111         ld_shlibs_CXX=no
14112         ;;
14113
14114       freebsd-elf*)
14115         archive_cmds_need_lc_CXX=no
14116         ;;
14117
14118       freebsd* | dragonfly*)
14119         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14120         # conventions
14121         ld_shlibs_CXX=yes
14122         ;;
14123
14124       haiku*)
14125         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14126         link_all_deplibs_CXX=yes
14127         ;;
14128
14129       hpux9*)
14130         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14131         hardcode_libdir_separator_CXX=:
14132         export_dynamic_flag_spec_CXX='$wl-E'
14133         hardcode_direct_CXX=yes
14134         hardcode_minus_L_CXX=yes # Not in the search PATH,
14135                                              # but as the default
14136                                              # location of the library.
14137
14138         case $cc_basename in
14139           CC*)
14140             # FIXME: insert proper C++ library support
14141             ld_shlibs_CXX=no
14142             ;;
14143           aCC*)
14144             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14145             # Commands to make compiler produce verbose output that lists
14146             # what "hidden" libraries, object files and flags are used when
14147             # linking a shared library.
14148             #
14149             # There doesn't appear to be a way to prevent this compiler from
14150             # explicitly linking system object files so we need to strip them
14151             # from the output so that they don't get included in the library
14152             # dependencies.
14153             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"'
14154             ;;
14155           *)
14156             if test yes = "$GXX"; then
14157               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14158             else
14159               # FIXME: insert proper C++ library support
14160               ld_shlibs_CXX=no
14161             fi
14162             ;;
14163         esac
14164         ;;
14165
14166       hpux10*|hpux11*)
14167         if test no = "$with_gnu_ld"; then
14168           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14169           hardcode_libdir_separator_CXX=:
14170
14171           case $host_cpu in
14172             hppa*64*|ia64*)
14173               ;;
14174             *)
14175               export_dynamic_flag_spec_CXX='$wl-E'
14176               ;;
14177           esac
14178         fi
14179         case $host_cpu in
14180           hppa*64*|ia64*)
14181             hardcode_direct_CXX=no
14182             hardcode_shlibpath_var_CXX=no
14183             ;;
14184           *)
14185             hardcode_direct_CXX=yes
14186             hardcode_direct_absolute_CXX=yes
14187             hardcode_minus_L_CXX=yes # Not in the search PATH,
14188                                                  # but as the default
14189                                                  # location of the library.
14190             ;;
14191         esac
14192
14193         case $cc_basename in
14194           CC*)
14195             # FIXME: insert proper C++ library support
14196             ld_shlibs_CXX=no
14197             ;;
14198           aCC*)
14199             case $host_cpu in
14200               hppa*64*)
14201                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14202                 ;;
14203               ia64*)
14204                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14205                 ;;
14206               *)
14207                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14208                 ;;
14209             esac
14210             # Commands to make compiler produce verbose output that lists
14211             # what "hidden" libraries, object files and flags are used when
14212             # linking a shared library.
14213             #
14214             # There doesn't appear to be a way to prevent this compiler from
14215             # explicitly linking system object files so we need to strip them
14216             # from the output so that they don't get included in the library
14217             # dependencies.
14218             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"'
14219             ;;
14220           *)
14221             if test yes = "$GXX"; then
14222               if test no = "$with_gnu_ld"; then
14223                 case $host_cpu in
14224                   hppa*64*)
14225                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14226                     ;;
14227                   ia64*)
14228                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14229                     ;;
14230                   *)
14231                     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'
14232                     ;;
14233                 esac
14234               fi
14235             else
14236               # FIXME: insert proper C++ library support
14237               ld_shlibs_CXX=no
14238             fi
14239             ;;
14240         esac
14241         ;;
14242
14243       interix[3-9]*)
14244         hardcode_direct_CXX=no
14245         hardcode_shlibpath_var_CXX=no
14246         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14247         export_dynamic_flag_spec_CXX='$wl-E'
14248         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14249         # Instead, shared libraries are loaded at an image base (0x10000000 by
14250         # default) and relocated if they conflict, which is a slow very memory
14251         # consuming and fragmenting process.  To avoid this, we pick a random,
14252         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14253         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14254         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'
14255         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'
14256         ;;
14257       irix5* | irix6*)
14258         case $cc_basename in
14259           CC*)
14260             # SGI C++
14261             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'
14262
14263             # Archives containing C++ object files must be created using
14264             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14265             # necessary to make sure instantiated templates are included
14266             # in the archive.
14267             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14268             ;;
14269           *)
14270             if test yes = "$GXX"; then
14271               if test no = "$with_gnu_ld"; then
14272                 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'
14273               else
14274                 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'
14275               fi
14276             fi
14277             link_all_deplibs_CXX=yes
14278             ;;
14279         esac
14280         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14281         hardcode_libdir_separator_CXX=:
14282         inherit_rpath_CXX=yes
14283         ;;
14284
14285       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14286         case $cc_basename in
14287           KCC*)
14288             # Kuck and Associates, Inc. (KAI) C++ Compiler
14289
14290             # KCC will only create a shared library if the output file
14291             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14292             # to its proper name (with version) after linking.
14293             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'
14294             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'
14295             # Commands to make compiler produce verbose output that lists
14296             # what "hidden" libraries, object files and flags are used when
14297             # linking a shared library.
14298             #
14299             # There doesn't appear to be a way to prevent this compiler from
14300             # explicitly linking system object files so we need to strip them
14301             # from the output so that they don't get included in the library
14302             # dependencies.
14303             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"'
14304
14305             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14306             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14307
14308             # Archives containing C++ object files must be created using
14309             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14310             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14311             ;;
14312           icpc* | ecpc* )
14313             # Intel C++
14314             with_gnu_ld=yes
14315             # version 8.0 and above of icpc choke on multiply defined symbols
14316             # if we add $predep_objects and $postdep_objects, however 7.1 and
14317             # earlier do not add the objects themselves.
14318             case `$CC -V 2>&1` in
14319               *"Version 7."*)
14320                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14321                 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'
14322                 ;;
14323               *)  # Version 8.0 or newer
14324                 tmp_idyn=
14325                 case $host_cpu in
14326                   ia64*) tmp_idyn=' -i_dynamic';;
14327                 esac
14328                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14329                 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'
14330                 ;;
14331             esac
14332             archive_cmds_need_lc_CXX=no
14333             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14334             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14335             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14336             ;;
14337           pgCC* | pgcpp*)
14338             # Portland Group C++ compiler
14339             case `$CC -V` in
14340             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14341               prelink_cmds_CXX='tpldir=Template.dir~
14342                rm -rf $tpldir~
14343                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14344                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14345               old_archive_cmds_CXX='tpldir=Template.dir~
14346                 rm -rf $tpldir~
14347                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14348                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14349                 $RANLIB $oldlib'
14350               archive_cmds_CXX='tpldir=Template.dir~
14351                 rm -rf $tpldir~
14352                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14353                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14354               archive_expsym_cmds_CXX='tpldir=Template.dir~
14355                 rm -rf $tpldir~
14356                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14357                 $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'
14358               ;;
14359             *) # Version 6 and above use weak symbols
14360               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14361               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'
14362               ;;
14363             esac
14364
14365             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14366             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14367             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'
14368             ;;
14369           cxx*)
14370             # Compaq C++
14371             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14372             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'
14373
14374             runpath_var=LD_RUN_PATH
14375             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14376             hardcode_libdir_separator_CXX=:
14377
14378             # Commands to make compiler produce verbose output that lists
14379             # what "hidden" libraries, object files and flags are used when
14380             # linking a shared library.
14381             #
14382             # There doesn't appear to be a way to prevent this compiler from
14383             # explicitly linking system object files so we need to strip them
14384             # from the output so that they don't get included in the library
14385             # dependencies.
14386             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'
14387             ;;
14388           xl* | mpixl* | bgxl*)
14389             # IBM XL 8.0 on PPC, with GNU ld
14390             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14391             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14392             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14393             if test yes = "$supports_anon_versioning"; then
14394               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14395                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14396                 echo "local: *; };" >> $output_objdir/$libname.ver~
14397                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14398             fi
14399             ;;
14400           *)
14401             case `$CC -V 2>&1 | sed 5q` in
14402             *Sun\ C*)
14403               # Sun C++ 5.9
14404               no_undefined_flag_CXX=' -zdefs'
14405               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14406               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'
14407               hardcode_libdir_flag_spec_CXX='-R$libdir'
14408               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'
14409               compiler_needs_object_CXX=yes
14410
14411               # Not sure whether something based on
14412               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14413               # would be better.
14414               output_verbose_link_cmd='func_echo_all'
14415
14416               # Archives containing C++ object files must be created using
14417               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14418               # necessary to make sure instantiated templates are included
14419               # in the archive.
14420               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14421               ;;
14422             esac
14423             ;;
14424         esac
14425         ;;
14426
14427       lynxos*)
14428         # FIXME: insert proper C++ library support
14429         ld_shlibs_CXX=no
14430         ;;
14431
14432       m88k*)
14433         # FIXME: insert proper C++ library support
14434         ld_shlibs_CXX=no
14435         ;;
14436
14437       mvs*)
14438         case $cc_basename in
14439           cxx*)
14440             # FIXME: insert proper C++ library support
14441             ld_shlibs_CXX=no
14442             ;;
14443           *)
14444             # FIXME: insert proper C++ library support
14445             ld_shlibs_CXX=no
14446             ;;
14447         esac
14448         ;;
14449
14450       netbsd*)
14451         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14452           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14453           wlarc=
14454           hardcode_libdir_flag_spec_CXX='-R$libdir'
14455           hardcode_direct_CXX=yes
14456           hardcode_shlibpath_var_CXX=no
14457         fi
14458         # Workaround some broken pre-1.5 toolchains
14459         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14460         ;;
14461
14462       *nto* | *qnx*)
14463         ld_shlibs_CXX=yes
14464         ;;
14465
14466       openbsd* | bitrig*)
14467         if test -f /usr/libexec/ld.so; then
14468           hardcode_direct_CXX=yes
14469           hardcode_shlibpath_var_CXX=no
14470           hardcode_direct_absolute_CXX=yes
14471           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14472           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14473           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14474             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14475             export_dynamic_flag_spec_CXX='$wl-E'
14476             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14477           fi
14478           output_verbose_link_cmd=func_echo_all
14479         else
14480           ld_shlibs_CXX=no
14481         fi
14482         ;;
14483
14484       osf3* | osf4* | osf5*)
14485         case $cc_basename in
14486           KCC*)
14487             # Kuck and Associates, Inc. (KAI) C++ Compiler
14488
14489             # KCC will only create a shared library if the output file
14490             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14491             # to its proper name (with version) after linking.
14492             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'
14493
14494             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14495             hardcode_libdir_separator_CXX=:
14496
14497             # Archives containing C++ object files must be created using
14498             # the KAI C++ compiler.
14499             case $host in
14500               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14501               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14502             esac
14503             ;;
14504           RCC*)
14505             # Rational C++ 2.4.1
14506             # FIXME: insert proper C++ library support
14507             ld_shlibs_CXX=no
14508             ;;
14509           cxx*)
14510             case $host in
14511               osf3*)
14512                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14513                 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'
14514                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14515                 ;;
14516               *)
14517                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14518                 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'
14519                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14520                   echo "-hidden">> $lib.exp~
14521                   $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~
14522                   $RM $lib.exp'
14523                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14524                 ;;
14525             esac
14526
14527             hardcode_libdir_separator_CXX=:
14528
14529             # Commands to make compiler produce verbose output that lists
14530             # what "hidden" libraries, object files and flags are used when
14531             # linking a shared library.
14532             #
14533             # There doesn't appear to be a way to prevent this compiler from
14534             # explicitly linking system object files so we need to strip them
14535             # from the output so that they don't get included in the library
14536             # dependencies.
14537             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"'
14538             ;;
14539           *)
14540             if test yes,no = "$GXX,$with_gnu_ld"; then
14541               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14542               case $host in
14543                 osf3*)
14544                   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'
14545                   ;;
14546                 *)
14547                   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'
14548                   ;;
14549               esac
14550
14551               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14552               hardcode_libdir_separator_CXX=:
14553
14554               # Commands to make compiler produce verbose output that lists
14555               # what "hidden" libraries, object files and flags are used when
14556               # linking a shared library.
14557               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14558
14559             else
14560               # FIXME: insert proper C++ library support
14561               ld_shlibs_CXX=no
14562             fi
14563             ;;
14564         esac
14565         ;;
14566
14567       psos*)
14568         # FIXME: insert proper C++ library support
14569         ld_shlibs_CXX=no
14570         ;;
14571
14572       sunos4*)
14573         case $cc_basename in
14574           CC*)
14575             # Sun C++ 4.x
14576             # FIXME: insert proper C++ library support
14577             ld_shlibs_CXX=no
14578             ;;
14579           lcc*)
14580             # Lucid
14581             # FIXME: insert proper C++ library support
14582             ld_shlibs_CXX=no
14583             ;;
14584           *)
14585             # FIXME: insert proper C++ library support
14586             ld_shlibs_CXX=no
14587             ;;
14588         esac
14589         ;;
14590
14591       solaris*)
14592         case $cc_basename in
14593           CC* | sunCC*)
14594             # Sun C++ 4.2, 5.x and Centerline C++
14595             archive_cmds_need_lc_CXX=yes
14596             no_undefined_flag_CXX=' -zdefs'
14597             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14598             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14599               $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'
14600
14601             hardcode_libdir_flag_spec_CXX='-R$libdir'
14602             hardcode_shlibpath_var_CXX=no
14603             case $host_os in
14604               solaris2.[0-5] | solaris2.[0-5].*) ;;
14605               *)
14606                 # The compiler driver will combine and reorder linker options,
14607                 # but understands '-z linker_flag'.
14608                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14609                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14610                 ;;
14611             esac
14612             link_all_deplibs_CXX=yes
14613
14614             output_verbose_link_cmd='func_echo_all'
14615
14616             # Archives containing C++ object files must be created using
14617             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14618             # necessary to make sure instantiated templates are included
14619             # in the archive.
14620             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14621             ;;
14622           gcx*)
14623             # Green Hills C++ Compiler
14624             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14625
14626             # The C++ compiler must be used to create the archive.
14627             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14628             ;;
14629           *)
14630             # GNU C++ compiler with Solaris linker
14631             if test yes,no = "$GXX,$with_gnu_ld"; then
14632               no_undefined_flag_CXX=' $wl-z ${wl}defs'
14633               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14634                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14635                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14636                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14637
14638                 # Commands to make compiler produce verbose output that lists
14639                 # what "hidden" libraries, object files and flags are used when
14640                 # linking a shared library.
14641                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14642               else
14643                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14644                 # platform.
14645                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14646                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14647                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14648
14649                 # Commands to make compiler produce verbose output that lists
14650                 # what "hidden" libraries, object files and flags are used when
14651                 # linking a shared library.
14652                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14653               fi
14654
14655               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14656               case $host_os in
14657                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14658                 *)
14659                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14660                   ;;
14661               esac
14662             fi
14663             ;;
14664         esac
14665         ;;
14666
14667     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14668       no_undefined_flag_CXX='$wl-z,text'
14669       archive_cmds_need_lc_CXX=no
14670       hardcode_shlibpath_var_CXX=no
14671       runpath_var='LD_RUN_PATH'
14672
14673       case $cc_basename in
14674         CC*)
14675           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14676           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14677           ;;
14678         *)
14679           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14680           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14681           ;;
14682       esac
14683       ;;
14684
14685       sysv5* | sco3.2v5* | sco5v6*)
14686         # Note: We CANNOT use -z defs as we might desire, because we do not
14687         # link with -lc, and that would cause any symbols used from libc to
14688         # always be unresolved, which means just about no library would
14689         # ever link correctly.  If we're not using GNU ld we use -z text
14690         # though, which does catch some bad symbols but isn't as heavy-handed
14691         # as -z defs.
14692         no_undefined_flag_CXX='$wl-z,text'
14693         allow_undefined_flag_CXX='$wl-z,nodefs'
14694         archive_cmds_need_lc_CXX=no
14695         hardcode_shlibpath_var_CXX=no
14696         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14697         hardcode_libdir_separator_CXX=':'
14698         link_all_deplibs_CXX=yes
14699         export_dynamic_flag_spec_CXX='$wl-Bexport'
14700         runpath_var='LD_RUN_PATH'
14701
14702         case $cc_basename in
14703           CC*)
14704             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14705             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14706             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14707               '"$old_archive_cmds_CXX"
14708             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14709               '"$reload_cmds_CXX"
14710             ;;
14711           *)
14712             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14713             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14714             ;;
14715         esac
14716       ;;
14717
14718       tandem*)
14719         case $cc_basename in
14720           NCC*)
14721             # NonStop-UX NCC 3.20
14722             # FIXME: insert proper C++ library support
14723             ld_shlibs_CXX=no
14724             ;;
14725           *)
14726             # FIXME: insert proper C++ library support
14727             ld_shlibs_CXX=no
14728             ;;
14729         esac
14730         ;;
14731
14732       vxworks*)
14733         # FIXME: insert proper C++ library support
14734         ld_shlibs_CXX=no
14735         ;;
14736
14737       *)
14738         # FIXME: insert proper C++ library support
14739         ld_shlibs_CXX=no
14740         ;;
14741     esac
14742
14743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14744 $as_echo "$ld_shlibs_CXX" >&6; }
14745     test no = "$ld_shlibs_CXX" && can_build_shared=no
14746
14747     GCC_CXX=$GXX
14748     LD_CXX=$LD
14749
14750     ## CAVEAT EMPTOR:
14751     ## There is no encapsulation within the following macros, do not change
14752     ## the running order or otherwise move them around unless you know exactly
14753     ## what you are doing...
14754     # Dependencies to place before and after the object being linked:
14755 predep_objects_CXX=
14756 postdep_objects_CXX=
14757 predeps_CXX=
14758 postdeps_CXX=
14759 compiler_lib_search_path_CXX=
14760
14761 cat > conftest.$ac_ext <<_LT_EOF
14762 class Foo
14763 {
14764 public:
14765   Foo (void) { a = 0; }
14766 private:
14767   int a;
14768 };
14769 _LT_EOF
14770
14771
14772 _lt_libdeps_save_CFLAGS=$CFLAGS
14773 case "$CC $CFLAGS " in #(
14774 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14775 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14776 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14777 esac
14778
14779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14780   (eval $ac_compile) 2>&5
14781   ac_status=$?
14782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14783   test $ac_status = 0; }; then
14784   # Parse the compiler output and extract the necessary
14785   # objects, libraries and library flags.
14786
14787   # Sentinel used to keep track of whether or not we are before
14788   # the conftest object file.
14789   pre_test_object_deps_done=no
14790
14791   for p in `eval "$output_verbose_link_cmd"`; do
14792     case $prev$p in
14793
14794     -L* | -R* | -l*)
14795        # Some compilers place space between "-{L,R}" and the path.
14796        # Remove the space.
14797        if test x-L = "$p" ||
14798           test x-R = "$p"; then
14799          prev=$p
14800          continue
14801        fi
14802
14803        # Expand the sysroot to ease extracting the directories later.
14804        if test -z "$prev"; then
14805          case $p in
14806          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14807          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14808          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14809          esac
14810        fi
14811        case $p in
14812        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14813        esac
14814        if test no = "$pre_test_object_deps_done"; then
14815          case $prev in
14816          -L | -R)
14817            # Internal compiler library paths should come after those
14818            # provided the user.  The postdeps already come after the
14819            # user supplied libs so there is no need to process them.
14820            if test -z "$compiler_lib_search_path_CXX"; then
14821              compiler_lib_search_path_CXX=$prev$p
14822            else
14823              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14824            fi
14825            ;;
14826          # The "-l" case would never come before the object being
14827          # linked, so don't bother handling this case.
14828          esac
14829        else
14830          if test -z "$postdeps_CXX"; then
14831            postdeps_CXX=$prev$p
14832          else
14833            postdeps_CXX="${postdeps_CXX} $prev$p"
14834          fi
14835        fi
14836        prev=
14837        ;;
14838
14839     *.lto.$objext) ;; # Ignore GCC LTO objects
14840     *.$objext)
14841        # This assumes that the test object file only shows up
14842        # once in the compiler output.
14843        if test "$p" = "conftest.$objext"; then
14844          pre_test_object_deps_done=yes
14845          continue
14846        fi
14847
14848        if test no = "$pre_test_object_deps_done"; then
14849          if test -z "$predep_objects_CXX"; then
14850            predep_objects_CXX=$p
14851          else
14852            predep_objects_CXX="$predep_objects_CXX $p"
14853          fi
14854        else
14855          if test -z "$postdep_objects_CXX"; then
14856            postdep_objects_CXX=$p
14857          else
14858            postdep_objects_CXX="$postdep_objects_CXX $p"
14859          fi
14860        fi
14861        ;;
14862
14863     *) ;; # Ignore the rest.
14864
14865     esac
14866   done
14867
14868   # Clean up.
14869   rm -f a.out a.exe
14870 else
14871   echo "libtool.m4: error: problem compiling CXX test program"
14872 fi
14873
14874 $RM -f confest.$objext
14875 CFLAGS=$_lt_libdeps_save_CFLAGS
14876
14877 # PORTME: override above test on systems where it is broken
14878 case $host_os in
14879 interix[3-9]*)
14880   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14881   # hack all around it, let's just trust "g++" to DTRT.
14882   predep_objects_CXX=
14883   postdep_objects_CXX=
14884   postdeps_CXX=
14885   ;;
14886 esac
14887
14888
14889 case " $postdeps_CXX " in
14890 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14891 esac
14892  compiler_lib_search_dirs_CXX=
14893 if test -n "${compiler_lib_search_path_CXX}"; then
14894  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14895 fi
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927     lt_prog_compiler_wl_CXX=
14928 lt_prog_compiler_pic_CXX=
14929 lt_prog_compiler_static_CXX=
14930
14931
14932   # C++ specific cases for pic, static, wl, etc.
14933   if test yes = "$GXX"; then
14934     lt_prog_compiler_wl_CXX='-Wl,'
14935     lt_prog_compiler_static_CXX='-static'
14936
14937     case $host_os in
14938     aix*)
14939       # All AIX code is PIC.
14940       if test ia64 = "$host_cpu"; then
14941         # AIX 5 now supports IA64 processor
14942         lt_prog_compiler_static_CXX='-Bstatic'
14943       fi
14944       lt_prog_compiler_pic_CXX='-fPIC'
14945       ;;
14946
14947     amigaos*)
14948       case $host_cpu in
14949       powerpc)
14950             # see comment about AmigaOS4 .so support
14951             lt_prog_compiler_pic_CXX='-fPIC'
14952         ;;
14953       m68k)
14954             # FIXME: we need at least 68020 code to build shared libraries, but
14955             # adding the '-m68020' flag to GCC prevents building anything better,
14956             # like '-m68040'.
14957             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14958         ;;
14959       esac
14960       ;;
14961
14962     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14963       # PIC is the default for these OSes.
14964       ;;
14965     mingw* | cygwin* | os2* | pw32* | cegcc*)
14966       # This hack is so that the source file can tell whether it is being
14967       # built for inclusion in a dll (and should export symbols for example).
14968       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14969       # (--disable-auto-import) libraries
14970       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14971       case $host_os in
14972       os2*)
14973         lt_prog_compiler_static_CXX='$wl-static'
14974         ;;
14975       esac
14976       ;;
14977     darwin* | rhapsody*)
14978       # PIC is the default on this platform
14979       # Common symbols not allowed in MH_DYLIB files
14980       lt_prog_compiler_pic_CXX='-fno-common'
14981       ;;
14982     *djgpp*)
14983       # DJGPP does not support shared libraries at all
14984       lt_prog_compiler_pic_CXX=
14985       ;;
14986     haiku*)
14987       # PIC is the default for Haiku.
14988       # The "-static" flag exists, but is broken.
14989       lt_prog_compiler_static_CXX=
14990       ;;
14991     interix[3-9]*)
14992       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14993       # Instead, we relocate shared libraries at runtime.
14994       ;;
14995     sysv4*MP*)
14996       if test -d /usr/nec; then
14997         lt_prog_compiler_pic_CXX=-Kconform_pic
14998       fi
14999       ;;
15000     hpux*)
15001       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15002       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15003       # sets the default TLS model and affects inlining.
15004       case $host_cpu in
15005       hppa*64*)
15006         ;;
15007       *)
15008         lt_prog_compiler_pic_CXX='-fPIC'
15009         ;;
15010       esac
15011       ;;
15012     *qnx* | *nto*)
15013       # QNX uses GNU C++, but need to define -shared option too, otherwise
15014       # it will coredump.
15015       lt_prog_compiler_pic_CXX='-fPIC -shared'
15016       ;;
15017     *)
15018       lt_prog_compiler_pic_CXX='-fPIC'
15019       ;;
15020     esac
15021   else
15022     case $host_os in
15023       aix[4-9]*)
15024         # All AIX code is PIC.
15025         if test ia64 = "$host_cpu"; then
15026           # AIX 5 now supports IA64 processor
15027           lt_prog_compiler_static_CXX='-Bstatic'
15028         else
15029           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15030         fi
15031         ;;
15032       chorus*)
15033         case $cc_basename in
15034         cxch68*)
15035           # Green Hills C++ Compiler
15036           # _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"
15037           ;;
15038         esac
15039         ;;
15040       mingw* | cygwin* | os2* | pw32* | cegcc*)
15041         # This hack is so that the source file can tell whether it is being
15042         # built for inclusion in a dll (and should export symbols for example).
15043         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15044         ;;
15045       dgux*)
15046         case $cc_basename in
15047           ec++*)
15048             lt_prog_compiler_pic_CXX='-KPIC'
15049             ;;
15050           ghcx*)
15051             # Green Hills C++ Compiler
15052             lt_prog_compiler_pic_CXX='-pic'
15053             ;;
15054           *)
15055             ;;
15056         esac
15057         ;;
15058       freebsd* | dragonfly*)
15059         # FreeBSD uses GNU C++
15060         ;;
15061       hpux9* | hpux10* | hpux11*)
15062         case $cc_basename in
15063           CC*)
15064             lt_prog_compiler_wl_CXX='-Wl,'
15065             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15066             if test ia64 != "$host_cpu"; then
15067               lt_prog_compiler_pic_CXX='+Z'
15068             fi
15069             ;;
15070           aCC*)
15071             lt_prog_compiler_wl_CXX='-Wl,'
15072             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15073             case $host_cpu in
15074             hppa*64*|ia64*)
15075               # +Z the default
15076               ;;
15077             *)
15078               lt_prog_compiler_pic_CXX='+Z'
15079               ;;
15080             esac
15081             ;;
15082           *)
15083             ;;
15084         esac
15085         ;;
15086       interix*)
15087         # This is c89, which is MS Visual C++ (no shared libs)
15088         # Anyone wants to do a port?
15089         ;;
15090       irix5* | irix6* | nonstopux*)
15091         case $cc_basename in
15092           CC*)
15093             lt_prog_compiler_wl_CXX='-Wl,'
15094             lt_prog_compiler_static_CXX='-non_shared'
15095             # CC pic flag -KPIC is the default.
15096             ;;
15097           *)
15098             ;;
15099         esac
15100         ;;
15101       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15102         case $cc_basename in
15103           KCC*)
15104             # KAI C++ Compiler
15105             lt_prog_compiler_wl_CXX='--backend -Wl,'
15106             lt_prog_compiler_pic_CXX='-fPIC'
15107             ;;
15108           ecpc* )
15109             # old Intel C++ for x86_64, which still supported -KPIC.
15110             lt_prog_compiler_wl_CXX='-Wl,'
15111             lt_prog_compiler_pic_CXX='-KPIC'
15112             lt_prog_compiler_static_CXX='-static'
15113             ;;
15114           icpc* )
15115             # Intel C++, used to be incompatible with GCC.
15116             # ICC 10 doesn't accept -KPIC any more.
15117             lt_prog_compiler_wl_CXX='-Wl,'
15118             lt_prog_compiler_pic_CXX='-fPIC'
15119             lt_prog_compiler_static_CXX='-static'
15120             ;;
15121           pgCC* | pgcpp*)
15122             # Portland Group C++ compiler
15123             lt_prog_compiler_wl_CXX='-Wl,'
15124             lt_prog_compiler_pic_CXX='-fpic'
15125             lt_prog_compiler_static_CXX='-Bstatic'
15126             ;;
15127           cxx*)
15128             # Compaq C++
15129             # Make sure the PIC flag is empty.  It appears that all Alpha
15130             # Linux and Compaq Tru64 Unix objects are PIC.
15131             lt_prog_compiler_pic_CXX=
15132             lt_prog_compiler_static_CXX='-non_shared'
15133             ;;
15134           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15135             # IBM XL 8.0, 9.0 on PPC and BlueGene
15136             lt_prog_compiler_wl_CXX='-Wl,'
15137             lt_prog_compiler_pic_CXX='-qpic'
15138             lt_prog_compiler_static_CXX='-qstaticlink'
15139             ;;
15140           *)
15141             case `$CC -V 2>&1 | sed 5q` in
15142             *Sun\ C*)
15143               # Sun C++ 5.9
15144               lt_prog_compiler_pic_CXX='-KPIC'
15145               lt_prog_compiler_static_CXX='-Bstatic'
15146               lt_prog_compiler_wl_CXX='-Qoption ld '
15147               ;;
15148             esac
15149             ;;
15150         esac
15151         ;;
15152       lynxos*)
15153         ;;
15154       m88k*)
15155         ;;
15156       mvs*)
15157         case $cc_basename in
15158           cxx*)
15159             lt_prog_compiler_pic_CXX='-W c,exportall'
15160             ;;
15161           *)
15162             ;;
15163         esac
15164         ;;
15165       netbsd* | netbsdelf*-gnu)
15166         ;;
15167       *qnx* | *nto*)
15168         # QNX uses GNU C++, but need to define -shared option too, otherwise
15169         # it will coredump.
15170         lt_prog_compiler_pic_CXX='-fPIC -shared'
15171         ;;
15172       osf3* | osf4* | osf5*)
15173         case $cc_basename in
15174           KCC*)
15175             lt_prog_compiler_wl_CXX='--backend -Wl,'
15176             ;;
15177           RCC*)
15178             # Rational C++ 2.4.1
15179             lt_prog_compiler_pic_CXX='-pic'
15180             ;;
15181           cxx*)
15182             # Digital/Compaq C++
15183             lt_prog_compiler_wl_CXX='-Wl,'
15184             # Make sure the PIC flag is empty.  It appears that all Alpha
15185             # Linux and Compaq Tru64 Unix objects are PIC.
15186             lt_prog_compiler_pic_CXX=
15187             lt_prog_compiler_static_CXX='-non_shared'
15188             ;;
15189           *)
15190             ;;
15191         esac
15192         ;;
15193       psos*)
15194         ;;
15195       solaris*)
15196         case $cc_basename in
15197           CC* | sunCC*)
15198             # Sun C++ 4.2, 5.x and Centerline C++
15199             lt_prog_compiler_pic_CXX='-KPIC'
15200             lt_prog_compiler_static_CXX='-Bstatic'
15201             lt_prog_compiler_wl_CXX='-Qoption ld '
15202             ;;
15203           gcx*)
15204             # Green Hills C++ Compiler
15205             lt_prog_compiler_pic_CXX='-PIC'
15206             ;;
15207           *)
15208             ;;
15209         esac
15210         ;;
15211       sunos4*)
15212         case $cc_basename in
15213           CC*)
15214             # Sun C++ 4.x
15215             lt_prog_compiler_pic_CXX='-pic'
15216             lt_prog_compiler_static_CXX='-Bstatic'
15217             ;;
15218           lcc*)
15219             # Lucid
15220             lt_prog_compiler_pic_CXX='-pic'
15221             ;;
15222           *)
15223             ;;
15224         esac
15225         ;;
15226       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15227         case $cc_basename in
15228           CC*)
15229             lt_prog_compiler_wl_CXX='-Wl,'
15230             lt_prog_compiler_pic_CXX='-KPIC'
15231             lt_prog_compiler_static_CXX='-Bstatic'
15232             ;;
15233         esac
15234         ;;
15235       tandem*)
15236         case $cc_basename in
15237           NCC*)
15238             # NonStop-UX NCC 3.20
15239             lt_prog_compiler_pic_CXX='-KPIC'
15240             ;;
15241           *)
15242             ;;
15243         esac
15244         ;;
15245       vxworks*)
15246         ;;
15247       *)
15248         lt_prog_compiler_can_build_shared_CXX=no
15249         ;;
15250     esac
15251   fi
15252
15253 case $host_os in
15254   # For platforms that do not support PIC, -DPIC is meaningless:
15255   *djgpp*)
15256     lt_prog_compiler_pic_CXX=
15257     ;;
15258   *)
15259     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15260     ;;
15261 esac
15262
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15264 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15265 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15266   $as_echo_n "(cached) " >&6
15267 else
15268   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15269 fi
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15271 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15272 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15273
15274 #
15275 # Check to make sure the PIC flag actually works.
15276 #
15277 if test -n "$lt_prog_compiler_pic_CXX"; then
15278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15279 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15280 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15281   $as_echo_n "(cached) " >&6
15282 else
15283   lt_cv_prog_compiler_pic_works_CXX=no
15284    ac_outfile=conftest.$ac_objext
15285    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15286    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15287    # Insert the option either (1) after the last *FLAGS variable, or
15288    # (2) before a word containing "conftest.", or (3) at the end.
15289    # Note that $ac_compile itself does not contain backslashes and begins
15290    # with a dollar sign (not a hyphen), so the echo should work correctly.
15291    # The option is referenced via a variable to avoid confusing sed.
15292    lt_compile=`echo "$ac_compile" | $SED \
15293    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15294    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15295    -e 's:$: $lt_compiler_flag:'`
15296    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15297    (eval "$lt_compile" 2>conftest.err)
15298    ac_status=$?
15299    cat conftest.err >&5
15300    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301    if (exit $ac_status) && test -s "$ac_outfile"; then
15302      # The compiler can only warn and ignore the option if not recognized
15303      # So say no if there are warnings other than the usual output.
15304      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15305      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15306      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15307        lt_cv_prog_compiler_pic_works_CXX=yes
15308      fi
15309    fi
15310    $RM conftest*
15311
15312 fi
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15314 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15315
15316 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15317     case $lt_prog_compiler_pic_CXX in
15318      "" | " "*) ;;
15319      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15320      esac
15321 else
15322     lt_prog_compiler_pic_CXX=
15323      lt_prog_compiler_can_build_shared_CXX=no
15324 fi
15325
15326 fi
15327
15328
15329
15330
15331
15332 #
15333 # Check to make sure the static flag actually works.
15334 #
15335 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15337 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15338 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15339   $as_echo_n "(cached) " >&6
15340 else
15341   lt_cv_prog_compiler_static_works_CXX=no
15342    save_LDFLAGS=$LDFLAGS
15343    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15344    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15345    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15346      # The linker can only warn and ignore the option if not recognized
15347      # So say no if there are warnings
15348      if test -s conftest.err; then
15349        # Append any errors to the config.log.
15350        cat conftest.err 1>&5
15351        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15352        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15353        if diff conftest.exp conftest.er2 >/dev/null; then
15354          lt_cv_prog_compiler_static_works_CXX=yes
15355        fi
15356      else
15357        lt_cv_prog_compiler_static_works_CXX=yes
15358      fi
15359    fi
15360    $RM -r conftest*
15361    LDFLAGS=$save_LDFLAGS
15362
15363 fi
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15365 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15366
15367 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15368     :
15369 else
15370     lt_prog_compiler_static_CXX=
15371 fi
15372
15373
15374
15375
15376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15377 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15378 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15379   $as_echo_n "(cached) " >&6
15380 else
15381   lt_cv_prog_compiler_c_o_CXX=no
15382    $RM -r conftest 2>/dev/null
15383    mkdir conftest
15384    cd conftest
15385    mkdir out
15386    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15387
15388    lt_compiler_flag="-o out/conftest2.$ac_objext"
15389    # Insert the option either (1) after the last *FLAGS variable, or
15390    # (2) before a word containing "conftest.", or (3) at the end.
15391    # Note that $ac_compile itself does not contain backslashes and begins
15392    # with a dollar sign (not a hyphen), so the echo should work correctly.
15393    lt_compile=`echo "$ac_compile" | $SED \
15394    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15395    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15396    -e 's:$: $lt_compiler_flag:'`
15397    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15398    (eval "$lt_compile" 2>out/conftest.err)
15399    ac_status=$?
15400    cat out/conftest.err >&5
15401    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15403    then
15404      # The compiler can only warn and ignore the option if not recognized
15405      # So say no if there are warnings
15406      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15407      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15408      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15409        lt_cv_prog_compiler_c_o_CXX=yes
15410      fi
15411    fi
15412    chmod u+w . 2>&5
15413    $RM conftest*
15414    # SGI C++ compiler will create directory out/ii_files/ for
15415    # template instantiation
15416    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15417    $RM out/* && rmdir out
15418    cd ..
15419    $RM -r conftest
15420    $RM conftest*
15421
15422 fi
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15424 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15425
15426
15427
15428     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15429 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15430 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15431   $as_echo_n "(cached) " >&6
15432 else
15433   lt_cv_prog_compiler_c_o_CXX=no
15434    $RM -r conftest 2>/dev/null
15435    mkdir conftest
15436    cd conftest
15437    mkdir out
15438    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15439
15440    lt_compiler_flag="-o out/conftest2.$ac_objext"
15441    # Insert the option either (1) after the last *FLAGS variable, or
15442    # (2) before a word containing "conftest.", or (3) at the end.
15443    # Note that $ac_compile itself does not contain backslashes and begins
15444    # with a dollar sign (not a hyphen), so the echo should work correctly.
15445    lt_compile=`echo "$ac_compile" | $SED \
15446    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15447    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15448    -e 's:$: $lt_compiler_flag:'`
15449    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15450    (eval "$lt_compile" 2>out/conftest.err)
15451    ac_status=$?
15452    cat out/conftest.err >&5
15453    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15455    then
15456      # The compiler can only warn and ignore the option if not recognized
15457      # So say no if there are warnings
15458      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15459      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15460      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15461        lt_cv_prog_compiler_c_o_CXX=yes
15462      fi
15463    fi
15464    chmod u+w . 2>&5
15465    $RM conftest*
15466    # SGI C++ compiler will create directory out/ii_files/ for
15467    # template instantiation
15468    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15469    $RM out/* && rmdir out
15470    cd ..
15471    $RM -r conftest
15472    $RM conftest*
15473
15474 fi
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15476 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15477
15478
15479
15480
15481 hard_links=nottested
15482 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15483   # do not overwrite the value of need_locks provided by the user
15484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15485 $as_echo_n "checking if we can lock with hard links... " >&6; }
15486   hard_links=yes
15487   $RM conftest*
15488   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15489   touch conftest.a
15490   ln conftest.a conftest.b 2>&5 || hard_links=no
15491   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15493 $as_echo "$hard_links" >&6; }
15494   if test no = "$hard_links"; then
15495     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15496 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15497     need_locks=warn
15498   fi
15499 else
15500   need_locks=no
15501 fi
15502
15503
15504
15505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15506 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15507
15508   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15509   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15510   case $host_os in
15511   aix[4-9]*)
15512     # If we're using GNU nm, then we don't want the "-C" option.
15513     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15514     # Without the "-l" option, or with the "-B" option, AIX nm treats
15515     # weak defined symbols like other global defined symbols, whereas
15516     # GNU nm marks them as "W".
15517     # While the 'weak' keyword is ignored in the Export File, we need
15518     # it in the Import File for the 'aix-soname' feature, so we have
15519     # to replace the "-B" option with "-P" for AIX nm.
15520     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15521       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15522     else
15523       export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15524     fi
15525     ;;
15526   pw32*)
15527     export_symbols_cmds_CXX=$ltdll_cmds
15528     ;;
15529   cygwin* | mingw* | cegcc*)
15530     case $cc_basename in
15531     cl*)
15532       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15533       ;;
15534     *)
15535       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'
15536       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15537       ;;
15538     esac
15539     ;;
15540   linux* | k*bsd*-gnu | gnu*)
15541     link_all_deplibs_CXX=no
15542     ;;
15543   *)
15544     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15545     ;;
15546   esac
15547
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15549 $as_echo "$ld_shlibs_CXX" >&6; }
15550 test no = "$ld_shlibs_CXX" && can_build_shared=no
15551
15552 with_gnu_ld_CXX=$with_gnu_ld
15553
15554
15555
15556
15557
15558
15559 #
15560 # Do we need to explicitly link libc?
15561 #
15562 case "x$archive_cmds_need_lc_CXX" in
15563 x|xyes)
15564   # Assume -lc should be added
15565   archive_cmds_need_lc_CXX=yes
15566
15567   if test yes,yes = "$GCC,$enable_shared"; then
15568     case $archive_cmds_CXX in
15569     *'~'*)
15570       # FIXME: we may have to deal with multi-command sequences.
15571       ;;
15572     '$CC '*)
15573       # Test whether the compiler implicitly links with -lc since on some
15574       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15575       # to ld, don't add -lc before -lgcc.
15576       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15577 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15578 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15579   $as_echo_n "(cached) " >&6
15580 else
15581   $RM conftest*
15582         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15583
15584         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15585   (eval $ac_compile) 2>&5
15586   ac_status=$?
15587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15588   test $ac_status = 0; } 2>conftest.err; then
15589           soname=conftest
15590           lib=conftest
15591           libobjs=conftest.$ac_objext
15592           deplibs=
15593           wl=$lt_prog_compiler_wl_CXX
15594           pic_flag=$lt_prog_compiler_pic_CXX
15595           compiler_flags=-v
15596           linker_flags=-v
15597           verstring=
15598           output_objdir=.
15599           libname=conftest
15600           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15601           allow_undefined_flag_CXX=
15602           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15603   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15604   ac_status=$?
15605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15606   test $ac_status = 0; }
15607           then
15608             lt_cv_archive_cmds_need_lc_CXX=no
15609           else
15610             lt_cv_archive_cmds_need_lc_CXX=yes
15611           fi
15612           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15613         else
15614           cat conftest.err 1>&5
15615         fi
15616         $RM conftest*
15617
15618 fi
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15620 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15621       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15622       ;;
15623     esac
15624   fi
15625   ;;
15626 esac
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15690 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15691
15692 library_names_spec=
15693 libname_spec='lib$name'
15694 soname_spec=
15695 shrext_cmds=.so
15696 postinstall_cmds=
15697 postuninstall_cmds=
15698 finish_cmds=
15699 finish_eval=
15700 shlibpath_var=
15701 shlibpath_overrides_runpath=unknown
15702 version_type=none
15703 dynamic_linker="$host_os ld.so"
15704 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15705 need_lib_prefix=unknown
15706 hardcode_into_libs=no
15707
15708 # when you set need_version to no, make sure it does not cause -set_version
15709 # flags to be left without arguments
15710 need_version=unknown
15711
15712
15713
15714 case $host_os in
15715 aix3*)
15716   version_type=linux # correct to gnu/linux during the next big refactor
15717   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15718   shlibpath_var=LIBPATH
15719
15720   # AIX 3 has no versioning support, so we append a major version to the name.
15721   soname_spec='$libname$release$shared_ext$major'
15722   ;;
15723
15724 aix[4-9]*)
15725   version_type=linux # correct to gnu/linux during the next big refactor
15726   need_lib_prefix=no
15727   need_version=no
15728   hardcode_into_libs=yes
15729   if test ia64 = "$host_cpu"; then
15730     # AIX 5 supports IA64
15731     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15732     shlibpath_var=LD_LIBRARY_PATH
15733   else
15734     # With GCC up to 2.95.x, collect2 would create an import file
15735     # for dependence libraries.  The import file would start with
15736     # the line '#! .'.  This would cause the generated library to
15737     # depend on '.', always an invalid library.  This was fixed in
15738     # development snapshots of GCC prior to 3.0.
15739     case $host_os in
15740       aix4 | aix4.[01] | aix4.[01].*)
15741       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15742            echo ' yes '
15743            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15744         :
15745       else
15746         can_build_shared=no
15747       fi
15748       ;;
15749     esac
15750     # Using Import Files as archive members, it is possible to support
15751     # filename-based versioning of shared library archives on AIX. While
15752     # this would work for both with and without runtime linking, it will
15753     # prevent static linking of such archives. So we do filename-based
15754     # shared library versioning with .so extension only, which is used
15755     # when both runtime linking and shared linking is enabled.
15756     # Unfortunately, runtime linking may impact performance, so we do
15757     # not want this to be the default eventually. Also, we use the
15758     # versioned .so libs for executables only if there is the -brtl
15759     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15760     # To allow for filename-based versioning support, we need to create
15761     # libNAME.so.V as an archive file, containing:
15762     # *) an Import File, referring to the versioned filename of the
15763     #    archive as well as the shared archive member, telling the
15764     #    bitwidth (32 or 64) of that shared object, and providing the
15765     #    list of exported symbols of that shared object, eventually
15766     #    decorated with the 'weak' keyword
15767     # *) the shared object with the F_LOADONLY flag set, to really avoid
15768     #    it being seen by the linker.
15769     # At run time we better use the real file rather than another symlink,
15770     # but for link time we create the symlink libNAME.so -> libNAME.so.V
15771
15772     case $with_aix_soname,$aix_use_runtimelinking in
15773     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15774     # soname into executable. Probably we can add versioning support to
15775     # collect2, so additional links can be useful in future.
15776     aix,yes) # traditional libtool
15777       dynamic_linker='AIX unversionable lib.so'
15778       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15779       # instead of lib<name>.a to let people know that these are not
15780       # typical AIX shared libraries.
15781       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15782       ;;
15783     aix,no) # traditional AIX only
15784       dynamic_linker='AIX lib.a(lib.so.V)'
15785       # We preserve .a as extension for shared libraries through AIX4.2
15786       # and later when we are not doing run time linking.
15787       library_names_spec='$libname$release.a $libname.a'
15788       soname_spec='$libname$release$shared_ext$major'
15789       ;;
15790     svr4,*) # full svr4 only
15791       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15792       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15793       # We do not specify a path in Import Files, so LIBPATH fires.
15794       shlibpath_overrides_runpath=yes
15795       ;;
15796     *,yes) # both, prefer svr4
15797       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15798       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15799       # unpreferred sharedlib libNAME.a needs extra handling
15800       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15801       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15802       # We do not specify a path in Import Files, so LIBPATH fires.
15803       shlibpath_overrides_runpath=yes
15804       ;;
15805     *,no) # both, prefer aix
15806       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15807       library_names_spec='$libname$release.a $libname.a'
15808       soname_spec='$libname$release$shared_ext$major'
15809       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15810       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15811       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15812       ;;
15813     esac
15814     shlibpath_var=LIBPATH
15815   fi
15816   ;;
15817
15818 amigaos*)
15819   case $host_cpu in
15820   powerpc)
15821     # Since July 2007 AmigaOS4 officially supports .so libraries.
15822     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15823     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15824     ;;
15825   m68k)
15826     library_names_spec='$libname.ixlibrary $libname.a'
15827     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15828     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15829     ;;
15830   esac
15831   ;;
15832
15833 beos*)
15834   library_names_spec='$libname$shared_ext'
15835   dynamic_linker="$host_os ld.so"
15836   shlibpath_var=LIBRARY_PATH
15837   ;;
15838
15839 bsdi[45]*)
15840   version_type=linux # correct to gnu/linux during the next big refactor
15841   need_version=no
15842   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15843   soname_spec='$libname$release$shared_ext$major'
15844   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15845   shlibpath_var=LD_LIBRARY_PATH
15846   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15847   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15848   # the default ld.so.conf also contains /usr/contrib/lib and
15849   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15850   # libtool to hard-code these into programs
15851   ;;
15852
15853 cygwin* | mingw* | pw32* | cegcc*)
15854   version_type=windows
15855   shrext_cmds=.dll
15856   need_version=no
15857   need_lib_prefix=no
15858
15859   case $GCC,$cc_basename in
15860   yes,*)
15861     # gcc
15862     library_names_spec='$libname.dll.a'
15863     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15864     postinstall_cmds='base_file=`basename \$file`~
15865       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15866       dldir=$destdir/`dirname \$dlpath`~
15867       test -d \$dldir || mkdir -p \$dldir~
15868       $install_prog $dir/$dlname \$dldir/$dlname~
15869       chmod a+x \$dldir/$dlname~
15870       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15871         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15872       fi'
15873     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15874       dlpath=$dir/\$dldll~
15875        $RM \$dlpath'
15876     shlibpath_overrides_runpath=yes
15877
15878     case $host_os in
15879     cygwin*)
15880       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15881       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15882
15883       ;;
15884     mingw* | cegcc*)
15885       # MinGW DLLs use traditional 'lib' prefix
15886       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15887       ;;
15888     pw32*)
15889       # pw32 DLLs use 'pw' prefix rather than 'lib'
15890       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15891       ;;
15892     esac
15893     dynamic_linker='Win32 ld.exe'
15894     ;;
15895
15896   *,cl*)
15897     # Native MSVC
15898     libname_spec='$name'
15899     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15900     library_names_spec='$libname.dll.lib'
15901
15902     case $build_os in
15903     mingw*)
15904       sys_lib_search_path_spec=
15905       lt_save_ifs=$IFS
15906       IFS=';'
15907       for lt_path in $LIB
15908       do
15909         IFS=$lt_save_ifs
15910         # Let DOS variable expansion print the short 8.3 style file name.
15911         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15912         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15913       done
15914       IFS=$lt_save_ifs
15915       # Convert to MSYS style.
15916       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15917       ;;
15918     cygwin*)
15919       # Convert to unix form, then to dos form, then back to unix form
15920       # but this time dos style (no spaces!) so that the unix form looks
15921       # like /cygdrive/c/PROGRA~1:/cygdr...
15922       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15923       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15924       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15925       ;;
15926     *)
15927       sys_lib_search_path_spec=$LIB
15928       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15929         # It is most probably a Windows format PATH.
15930         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15931       else
15932         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15933       fi
15934       # FIXME: find the short name or the path components, as spaces are
15935       # common. (e.g. "Program Files" -> "PROGRA~1")
15936       ;;
15937     esac
15938
15939     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15940     postinstall_cmds='base_file=`basename \$file`~
15941       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15942       dldir=$destdir/`dirname \$dlpath`~
15943       test -d \$dldir || mkdir -p \$dldir~
15944       $install_prog $dir/$dlname \$dldir/$dlname'
15945     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15946       dlpath=$dir/\$dldll~
15947        $RM \$dlpath'
15948     shlibpath_overrides_runpath=yes
15949     dynamic_linker='Win32 link.exe'
15950     ;;
15951
15952   *)
15953     # Assume MSVC wrapper
15954     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15955     dynamic_linker='Win32 ld.exe'
15956     ;;
15957   esac
15958   # FIXME: first we should search . and the directory the executable is in
15959   shlibpath_var=PATH
15960   ;;
15961
15962 darwin* | rhapsody*)
15963   dynamic_linker="$host_os dyld"
15964   version_type=darwin
15965   need_lib_prefix=no
15966   need_version=no
15967   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15968   soname_spec='$libname$release$major$shared_ext'
15969   shlibpath_overrides_runpath=yes
15970   shlibpath_var=DYLD_LIBRARY_PATH
15971   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15972
15973   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15974   ;;
15975
15976 dgux*)
15977   version_type=linux # correct to gnu/linux during the next big refactor
15978   need_lib_prefix=no
15979   need_version=no
15980   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15981   soname_spec='$libname$release$shared_ext$major'
15982   shlibpath_var=LD_LIBRARY_PATH
15983   ;;
15984
15985 freebsd* | dragonfly*)
15986   # DragonFly does not have aout.  When/if they implement a new
15987   # versioning mechanism, adjust this.
15988   if test -x /usr/bin/objformat; then
15989     objformat=`/usr/bin/objformat`
15990   else
15991     case $host_os in
15992     freebsd[23].*) objformat=aout ;;
15993     *) objformat=elf ;;
15994     esac
15995   fi
15996   version_type=freebsd-$objformat
15997   case $version_type in
15998     freebsd-elf*)
15999       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16000       soname_spec='$libname$release$shared_ext$major'
16001       need_version=no
16002       need_lib_prefix=no
16003       ;;
16004     freebsd-*)
16005       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16006       need_version=yes
16007       ;;
16008   esac
16009   shlibpath_var=LD_LIBRARY_PATH
16010   case $host_os in
16011   freebsd2.*)
16012     shlibpath_overrides_runpath=yes
16013     ;;
16014   freebsd3.[01]* | freebsdelf3.[01]*)
16015     shlibpath_overrides_runpath=yes
16016     hardcode_into_libs=yes
16017     ;;
16018   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16019   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16020     shlibpath_overrides_runpath=no
16021     hardcode_into_libs=yes
16022     ;;
16023   *) # from 4.6 on, and DragonFly
16024     shlibpath_overrides_runpath=yes
16025     hardcode_into_libs=yes
16026     ;;
16027   esac
16028   ;;
16029
16030 haiku*)
16031   version_type=linux # correct to gnu/linux during the next big refactor
16032   need_lib_prefix=no
16033   need_version=no
16034   dynamic_linker="$host_os runtime_loader"
16035   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16036   soname_spec='$libname$release$shared_ext$major'
16037   shlibpath_var=LIBRARY_PATH
16038   shlibpath_overrides_runpath=no
16039   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16040   hardcode_into_libs=yes
16041   ;;
16042
16043 hpux9* | hpux10* | hpux11*)
16044   # Give a soname corresponding to the major version so that dld.sl refuses to
16045   # link against other versions.
16046   version_type=sunos
16047   need_lib_prefix=no
16048   need_version=no
16049   case $host_cpu in
16050   ia64*)
16051     shrext_cmds='.so'
16052     hardcode_into_libs=yes
16053     dynamic_linker="$host_os dld.so"
16054     shlibpath_var=LD_LIBRARY_PATH
16055     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16056     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16057     soname_spec='$libname$release$shared_ext$major'
16058     if test 32 = "$HPUX_IA64_MODE"; then
16059       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16060       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16061     else
16062       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16063       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16064     fi
16065     ;;
16066   hppa*64*)
16067     shrext_cmds='.sl'
16068     hardcode_into_libs=yes
16069     dynamic_linker="$host_os dld.sl"
16070     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16071     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16072     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16073     soname_spec='$libname$release$shared_ext$major'
16074     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16075     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16076     ;;
16077   *)
16078     shrext_cmds='.sl'
16079     dynamic_linker="$host_os dld.sl"
16080     shlibpath_var=SHLIB_PATH
16081     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16082     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16083     soname_spec='$libname$release$shared_ext$major'
16084     ;;
16085   esac
16086   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16087   postinstall_cmds='chmod 555 $lib'
16088   # or fails outright, so override atomically:
16089   install_override_mode=555
16090   ;;
16091
16092 interix[3-9]*)
16093   version_type=linux # correct to gnu/linux during the next big refactor
16094   need_lib_prefix=no
16095   need_version=no
16096   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16097   soname_spec='$libname$release$shared_ext$major'
16098   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16099   shlibpath_var=LD_LIBRARY_PATH
16100   shlibpath_overrides_runpath=no
16101   hardcode_into_libs=yes
16102   ;;
16103
16104 irix5* | irix6* | nonstopux*)
16105   case $host_os in
16106     nonstopux*) version_type=nonstopux ;;
16107     *)
16108         if test yes = "$lt_cv_prog_gnu_ld"; then
16109                 version_type=linux # correct to gnu/linux during the next big refactor
16110         else
16111                 version_type=irix
16112         fi ;;
16113   esac
16114   need_lib_prefix=no
16115   need_version=no
16116   soname_spec='$libname$release$shared_ext$major'
16117   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16118   case $host_os in
16119   irix5* | nonstopux*)
16120     libsuff= shlibsuff=
16121     ;;
16122   *)
16123     case $LD in # libtool.m4 will add one of these switches to LD
16124     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16125       libsuff= shlibsuff= libmagic=32-bit;;
16126     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16127       libsuff=32 shlibsuff=N32 libmagic=N32;;
16128     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16129       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16130     *) libsuff= shlibsuff= libmagic=never-match;;
16131     esac
16132     ;;
16133   esac
16134   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16135   shlibpath_overrides_runpath=no
16136   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16137   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16138   hardcode_into_libs=yes
16139   ;;
16140
16141 # No shared lib support for Linux oldld, aout, or coff.
16142 linux*oldld* | linux*aout* | linux*coff*)
16143   dynamic_linker=no
16144   ;;
16145
16146 linux*android*)
16147   version_type=none # Android doesn't support versioned libraries.
16148   need_lib_prefix=no
16149   need_version=no
16150   library_names_spec='$libname$release$shared_ext'
16151   soname_spec='$libname$release$shared_ext'
16152   finish_cmds=
16153   shlibpath_var=LD_LIBRARY_PATH
16154   shlibpath_overrides_runpath=yes
16155
16156   # This implies no fast_install, which is unacceptable.
16157   # Some rework will be needed to allow for fast_install
16158   # before this can be enabled.
16159   hardcode_into_libs=yes
16160
16161   dynamic_linker='Android linker'
16162   # Don't embed -rpath directories since the linker doesn't support them.
16163   hardcode_libdir_flag_spec_CXX='-L$libdir'
16164   ;;
16165
16166 # This must be glibc/ELF.
16167 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16168   version_type=linux # correct to gnu/linux during the next big refactor
16169   need_lib_prefix=no
16170   need_version=no
16171   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16172   soname_spec='$libname$release$shared_ext$major'
16173   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16174   shlibpath_var=LD_LIBRARY_PATH
16175   shlibpath_overrides_runpath=no
16176
16177   # Some binutils ld are patched to set DT_RUNPATH
16178   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16179   $as_echo_n "(cached) " >&6
16180 else
16181   lt_cv_shlibpath_overrides_runpath=no
16182     save_LDFLAGS=$LDFLAGS
16183     save_libdir=$libdir
16184     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16185          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16186     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187 /* end confdefs.h.  */
16188
16189 int
16190 main ()
16191 {
16192
16193   ;
16194   return 0;
16195 }
16196 _ACEOF
16197 if ac_fn_cxx_try_link "$LINENO"; then :
16198   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16199   lt_cv_shlibpath_overrides_runpath=yes
16200 fi
16201 fi
16202 rm -f core conftest.err conftest.$ac_objext \
16203     conftest$ac_exeext conftest.$ac_ext
16204     LDFLAGS=$save_LDFLAGS
16205     libdir=$save_libdir
16206
16207 fi
16208
16209   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16210
16211   # This implies no fast_install, which is unacceptable.
16212   # Some rework will be needed to allow for fast_install
16213   # before this can be enabled.
16214   hardcode_into_libs=yes
16215
16216   # Ideally, we could use ldconfig to report *all* directores which are
16217   # searched for libraries, however this is still not possible.  Aside from not
16218   # being certain /sbin/ldconfig is available, command
16219   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16220   # even though it is searched at run-time.  Try to do the best guess by
16221   # appending ld.so.conf contents (and includes) to the search path.
16222   if test -f /etc/ld.so.conf; then
16223     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' ' '`
16224     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16225   fi
16226
16227   # We used to test for /lib/ld.so.1 and disable shared libraries on
16228   # powerpc, because MkLinux only supported shared libraries with the
16229   # GNU dynamic linker.  Since this was broken with cross compilers,
16230   # most powerpc-linux boxes support dynamic linking these days and
16231   # people can always --disable-shared, the test was removed, and we
16232   # assume the GNU/Linux dynamic linker is in use.
16233   dynamic_linker='GNU/Linux ld.so'
16234   ;;
16235
16236 netbsdelf*-gnu)
16237   version_type=linux
16238   need_lib_prefix=no
16239   need_version=no
16240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16241   soname_spec='${libname}${release}${shared_ext}$major'
16242   shlibpath_var=LD_LIBRARY_PATH
16243   shlibpath_overrides_runpath=no
16244   hardcode_into_libs=yes
16245   dynamic_linker='NetBSD ld.elf_so'
16246   ;;
16247
16248 netbsd*)
16249   version_type=sunos
16250   need_lib_prefix=no
16251   need_version=no
16252   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16253     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16254     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16255     dynamic_linker='NetBSD (a.out) ld.so'
16256   else
16257     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16258     soname_spec='$libname$release$shared_ext$major'
16259     dynamic_linker='NetBSD ld.elf_so'
16260   fi
16261   shlibpath_var=LD_LIBRARY_PATH
16262   shlibpath_overrides_runpath=yes
16263   hardcode_into_libs=yes
16264   ;;
16265
16266 newsos6)
16267   version_type=linux # correct to gnu/linux during the next big refactor
16268   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16269   shlibpath_var=LD_LIBRARY_PATH
16270   shlibpath_overrides_runpath=yes
16271   ;;
16272
16273 *nto* | *qnx*)
16274   version_type=qnx
16275   need_lib_prefix=no
16276   need_version=no
16277   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16278   soname_spec='$libname$release$shared_ext$major'
16279   shlibpath_var=LD_LIBRARY_PATH
16280   shlibpath_overrides_runpath=no
16281   hardcode_into_libs=yes
16282   dynamic_linker='ldqnx.so'
16283   ;;
16284
16285 openbsd* | bitrig*)
16286   version_type=sunos
16287   sys_lib_dlsearch_path_spec=/usr/lib
16288   need_lib_prefix=no
16289   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16290     need_version=no
16291   else
16292     need_version=yes
16293   fi
16294   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16295   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16296   shlibpath_var=LD_LIBRARY_PATH
16297   shlibpath_overrides_runpath=yes
16298   ;;
16299
16300 os2*)
16301   libname_spec='$name'
16302   version_type=windows
16303   shrext_cmds=.dll
16304   need_version=no
16305   need_lib_prefix=no
16306   # OS/2 can only load a DLL with a base name of 8 characters or less.
16307   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16308     v=$($ECHO $release$versuffix | tr -d .-);
16309     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16310     $ECHO $n$v`$shared_ext'
16311   library_names_spec='${libname}_dll.$libext'
16312   dynamic_linker='OS/2 ld.exe'
16313   shlibpath_var=BEGINLIBPATH
16314   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16315   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16316   postinstall_cmds='base_file=`basename \$file`~
16317     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16318     dldir=$destdir/`dirname \$dlpath`~
16319     test -d \$dldir || mkdir -p \$dldir~
16320     $install_prog $dir/$dlname \$dldir/$dlname~
16321     chmod a+x \$dldir/$dlname~
16322     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16323       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16324     fi'
16325   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16326     dlpath=$dir/\$dldll~
16327     $RM \$dlpath'
16328   ;;
16329
16330 osf3* | osf4* | osf5*)
16331   version_type=osf
16332   need_lib_prefix=no
16333   need_version=no
16334   soname_spec='$libname$release$shared_ext$major'
16335   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16336   shlibpath_var=LD_LIBRARY_PATH
16337   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16338   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16339   ;;
16340
16341 rdos*)
16342   dynamic_linker=no
16343   ;;
16344
16345 solaris*)
16346   version_type=linux # correct to gnu/linux during the next big refactor
16347   need_lib_prefix=no
16348   need_version=no
16349   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16350   soname_spec='$libname$release$shared_ext$major'
16351   shlibpath_var=LD_LIBRARY_PATH
16352   shlibpath_overrides_runpath=yes
16353   hardcode_into_libs=yes
16354   # ldd complains unless libraries are executable
16355   postinstall_cmds='chmod +x $lib'
16356   ;;
16357
16358 sunos4*)
16359   version_type=sunos
16360   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16361   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16362   shlibpath_var=LD_LIBRARY_PATH
16363   shlibpath_overrides_runpath=yes
16364   if test yes = "$with_gnu_ld"; then
16365     need_lib_prefix=no
16366   fi
16367   need_version=yes
16368   ;;
16369
16370 sysv4 | sysv4.3*)
16371   version_type=linux # correct to gnu/linux during the next big refactor
16372   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16373   soname_spec='$libname$release$shared_ext$major'
16374   shlibpath_var=LD_LIBRARY_PATH
16375   case $host_vendor in
16376     sni)
16377       shlibpath_overrides_runpath=no
16378       need_lib_prefix=no
16379       runpath_var=LD_RUN_PATH
16380       ;;
16381     siemens)
16382       need_lib_prefix=no
16383       ;;
16384     motorola)
16385       need_lib_prefix=no
16386       need_version=no
16387       shlibpath_overrides_runpath=no
16388       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16389       ;;
16390   esac
16391   ;;
16392
16393 sysv4*MP*)
16394   if test -d /usr/nec; then
16395     version_type=linux # correct to gnu/linux during the next big refactor
16396     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16397     soname_spec='$libname$shared_ext.$major'
16398     shlibpath_var=LD_LIBRARY_PATH
16399   fi
16400   ;;
16401
16402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16403   version_type=sco
16404   need_lib_prefix=no
16405   need_version=no
16406   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16407   soname_spec='$libname$release$shared_ext$major'
16408   shlibpath_var=LD_LIBRARY_PATH
16409   shlibpath_overrides_runpath=yes
16410   hardcode_into_libs=yes
16411   if test yes = "$with_gnu_ld"; then
16412     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16413   else
16414     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16415     case $host_os in
16416       sco3.2v5*)
16417         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16418         ;;
16419     esac
16420   fi
16421   sys_lib_dlsearch_path_spec='/usr/lib'
16422   ;;
16423
16424 tpf*)
16425   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16426   version_type=linux # correct to gnu/linux during the next big refactor
16427   need_lib_prefix=no
16428   need_version=no
16429   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16430   shlibpath_var=LD_LIBRARY_PATH
16431   shlibpath_overrides_runpath=no
16432   hardcode_into_libs=yes
16433   ;;
16434
16435 uts4*)
16436   version_type=linux # correct to gnu/linux during the next big refactor
16437   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16438   soname_spec='$libname$release$shared_ext$major'
16439   shlibpath_var=LD_LIBRARY_PATH
16440   ;;
16441
16442 *)
16443   dynamic_linker=no
16444   ;;
16445 esac
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16447 $as_echo "$dynamic_linker" >&6; }
16448 test no = "$dynamic_linker" && can_build_shared=no
16449
16450 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16451 if test yes = "$GCC"; then
16452   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16453 fi
16454
16455 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16456   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16457 fi
16458
16459 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16460   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16461 fi
16462
16463 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16464 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16465
16466 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16467 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16468
16469 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16470 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16512 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16513 hardcode_action_CXX=
16514 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16515    test -n "$runpath_var_CXX" ||
16516    test yes = "$hardcode_automatic_CXX"; then
16517
16518   # We can hardcode non-existent directories.
16519   if test no != "$hardcode_direct_CXX" &&
16520      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16521      # have to relink, otherwise we might link with an installed library
16522      # when we should be linking with a yet-to-be-installed one
16523      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16524      test no != "$hardcode_minus_L_CXX"; then
16525     # Linking always hardcodes the temporary library directory.
16526     hardcode_action_CXX=relink
16527   else
16528     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16529     hardcode_action_CXX=immediate
16530   fi
16531 else
16532   # We cannot hardcode anything, or else we can only hardcode existing
16533   # directories.
16534   hardcode_action_CXX=unsupported
16535 fi
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16537 $as_echo "$hardcode_action_CXX" >&6; }
16538
16539 if test relink = "$hardcode_action_CXX" ||
16540    test yes = "$inherit_rpath_CXX"; then
16541   # Fast installation is not supported
16542   enable_fast_install=no
16543 elif test yes = "$shlibpath_overrides_runpath" ||
16544      test no = "$enable_shared"; then
16545   # Fast installation is not necessary
16546   enable_fast_install=needless
16547 fi
16548
16549
16550
16551
16552
16553
16554
16555   fi # test -n "$compiler"
16556
16557   CC=$lt_save_CC
16558   CFLAGS=$lt_save_CFLAGS
16559   LDCXX=$LD
16560   LD=$lt_save_LD
16561   GCC=$lt_save_GCC
16562   with_gnu_ld=$lt_save_with_gnu_ld
16563   lt_cv_path_LDCXX=$lt_cv_path_LD
16564   lt_cv_path_LD=$lt_save_path_LD
16565   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16566   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16567 fi # test yes != "$_lt_caught_CXX_error"
16568
16569 ac_ext=c
16570 ac_cpp='$CPP $CPPFLAGS'
16571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589         ac_config_commands="$ac_config_commands libtool"
16590
16591
16592
16593
16594 # Only expand once:
16595
16596
16597
16598
16599 # Checks for header files.
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16601 $as_echo_n "checking for ANSI C header files... " >&6; }
16602 if ${ac_cv_header_stdc+:} false; then :
16603   $as_echo_n "(cached) " >&6
16604 else
16605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606 /* end confdefs.h.  */
16607 #include <stdlib.h>
16608 #include <stdarg.h>
16609 #include <string.h>
16610 #include <float.h>
16611
16612 int
16613 main ()
16614 {
16615
16616   ;
16617   return 0;
16618 }
16619 _ACEOF
16620 if ac_fn_c_try_compile "$LINENO"; then :
16621   ac_cv_header_stdc=yes
16622 else
16623   ac_cv_header_stdc=no
16624 fi
16625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626
16627 if test $ac_cv_header_stdc = yes; then
16628   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h.  */
16631 #include <string.h>
16632
16633 _ACEOF
16634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16635   $EGREP "memchr" >/dev/null 2>&1; then :
16636
16637 else
16638   ac_cv_header_stdc=no
16639 fi
16640 rm -f conftest*
16641
16642 fi
16643
16644 if test $ac_cv_header_stdc = yes; then
16645   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16647 /* end confdefs.h.  */
16648 #include <stdlib.h>
16649
16650 _ACEOF
16651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16652   $EGREP "free" >/dev/null 2>&1; then :
16653
16654 else
16655   ac_cv_header_stdc=no
16656 fi
16657 rm -f conftest*
16658
16659 fi
16660
16661 if test $ac_cv_header_stdc = yes; then
16662   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16663   if test "$cross_compiling" = yes; then :
16664   :
16665 else
16666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16667 /* end confdefs.h.  */
16668 #include <ctype.h>
16669 #include <stdlib.h>
16670 #if ((' ' & 0x0FF) == 0x020)
16671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16673 #else
16674 # define ISLOWER(c) \
16675                    (('a' <= (c) && (c) <= 'i') \
16676                      || ('j' <= (c) && (c) <= 'r') \
16677                      || ('s' <= (c) && (c) <= 'z'))
16678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16679 #endif
16680
16681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16682 int
16683 main ()
16684 {
16685   int i;
16686   for (i = 0; i < 256; i++)
16687     if (XOR (islower (i), ISLOWER (i))
16688         || toupper (i) != TOUPPER (i))
16689       return 2;
16690   return 0;
16691 }
16692 _ACEOF
16693 if ac_fn_c_try_run "$LINENO"; then :
16694
16695 else
16696   ac_cv_header_stdc=no
16697 fi
16698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16699   conftest.$ac_objext conftest.beam conftest.$ac_ext
16700 fi
16701
16702 fi
16703 fi
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16705 $as_echo "$ac_cv_header_stdc" >&6; }
16706 if test $ac_cv_header_stdc = yes; then
16707
16708 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16709
16710 fi
16711
16712 for ac_header in sys/ioctl.h unistd.h
16713 do :
16714   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16715 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16716 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16717   cat >>confdefs.h <<_ACEOF
16718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16719 _ACEOF
16720
16721 fi
16722
16723 done
16724
16725
16726 # Check compiler and use -Wall if gnu
16727 if test x"$GXX" = "xyes"; then
16728   CXXFLAGS="${CXXFLAGS} -Wall -Wextra"
16729   # Add -Werror in debug mode
16730   if test x"${enable_debug+set}" = xset; then
16731     CXXFLAGS="${CXXFLAGS} -Werror"
16732   fi
16733 fi
16734
16735 # Checks for functions
16736 for ac_func in gettimeofday
16737 do :
16738   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16739 if test "x$ac_cv_func_gettimeofday" = xyes; then :
16740   cat >>confdefs.h <<_ACEOF
16741 #define HAVE_GETTIMEOFDAY 1
16742 _ACEOF
16743
16744 fi
16745 done
16746
16747
16748 # Checks for doxygen
16749 # Extract the first word of "doxygen", so it can be a program name with args.
16750 set dummy doxygen; ac_word=$2
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16752 $as_echo_n "checking for $ac_word... " >&6; }
16753 if ${ac_cv_prog_DOXYGEN+:} false; then :
16754   $as_echo_n "(cached) " >&6
16755 else
16756   if test -n "$DOXYGEN"; then
16757   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
16758 else
16759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16760 for as_dir in $PATH
16761 do
16762   IFS=$as_save_IFS
16763   test -z "$as_dir" && as_dir=.
16764     for ac_exec_ext in '' $ac_executable_extensions; do
16765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16766     ac_cv_prog_DOXYGEN="doxygen "
16767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16768     break 2
16769   fi
16770 done
16771   done
16772 IFS=$as_save_IFS
16773
16774 fi
16775 fi
16776 DOXYGEN=$ac_cv_prog_DOXYGEN
16777 if test -n "$DOXYGEN"; then
16778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16779 $as_echo "$DOXYGEN" >&6; }
16780 else
16781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16782 $as_echo "no" >&6; }
16783 fi
16784
16785
16786  if test "x${DOXYGEN}" != x ; then
16787   MAKE_DOC_TRUE=
16788   MAKE_DOC_FALSE='#'
16789 else
16790   MAKE_DOC_TRUE='#'
16791   MAKE_DOC_FALSE=
16792 fi
16793
16794
16795 # Copy doc files to build dir if necessary
16796 ac_config_links="$ac_config_links doc/release.txt:doc/release.txt"
16797
16798 ac_config_links="$ac_config_links doc/doxygen/footer.html:doc/doxygen/footer.html"
16799
16800 ac_config_links="$ac_config_links doc/doxygen/error.txt:doc/doxygen/error.txt"
16801
16802 ac_config_links="$ac_config_links doc/doxygen/tutorial.txt:doc/doxygen/tutorial.txt"
16803
16804 ac_config_links="$ac_config_links doc/doxygen/compiling.txt:doc/doxygen/compiling.txt"
16805
16806 ac_config_links="$ac_config_links doc/doxygen/acknowledge.txt:doc/doxygen/acknowledge.txt"
16807
16808 ac_config_links="$ac_config_links doc/doxygen/license.txt:doc/doxygen/license.txt"
16809
16810 ac_config_links="$ac_config_links doc/doxygen/header.html:doc/doxygen/header.html"
16811
16812 ac_config_links="$ac_config_links doc/doxygen/duplex.txt:doc/doxygen/duplex.txt"
16813
16814 ac_config_links="$ac_config_links doc/doxygen/settings.txt:doc/doxygen/settings.txt"
16815
16816 ac_config_links="$ac_config_links doc/doxygen/probe.txt:doc/doxygen/probe.txt"
16817
16818 ac_config_links="$ac_config_links doc/doxygen/playback.txt:doc/doxygen/playback.txt"
16819
16820 ac_config_links="$ac_config_links doc/doxygen/multi.txt:doc/doxygen/multi.txt"
16821
16822 ac_config_links="$ac_config_links doc/doxygen/recording.txt:doc/doxygen/recording.txt"
16823
16824 ac_config_links="$ac_config_links doc/doxygen/apinotes.txt:doc/doxygen/apinotes.txt"
16825
16826 ac_config_links="$ac_config_links doc/images/mcgill.gif:doc/images/mcgill.gif"
16827
16828 ac_config_links="$ac_config_links doc/images/ccrma.gif:doc/images/ccrma.gif"
16829
16830
16831 # Checks for package options and external software
16832
16833
16834 api=""
16835
16836 req=""
16837
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audio API" >&5
16839 $as_echo_n "checking for audio API... " >&6; }
16840
16841
16842 # Check whether --with-jack was given.
16843 if test "${with_jack+set}" = set; then :
16844   withval=$with_jack;
16845 fi
16846
16847 if test "x$with_jack" == "xyes"; then :
16848
16849   api="$api -D__UNIX_JACK__"
16850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using JACK" >&5
16851 $as_echo "using JACK" >&6; }
16852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack_client_open in -ljack" >&5
16853 $as_echo_n "checking for jack_client_open in -ljack... " >&6; }
16854 if ${ac_cv_lib_jack_jack_client_open+:} false; then :
16855   $as_echo_n "(cached) " >&6
16856 else
16857   ac_check_lib_save_LIBS=$LIBS
16858 LIBS="-ljack  $LIBS"
16859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860 /* end confdefs.h.  */
16861
16862 /* Override any GCC internal prototype to avoid an error.
16863    Use char because int might match the return type of a GCC
16864    builtin and then its argument prototype would still apply.  */
16865 #ifdef __cplusplus
16866 extern "C"
16867 #endif
16868 char jack_client_open ();
16869 int
16870 main ()
16871 {
16872 return jack_client_open ();
16873   ;
16874   return 0;
16875 }
16876 _ACEOF
16877 if ac_fn_c_try_link "$LINENO"; then :
16878   ac_cv_lib_jack_jack_client_open=yes
16879 else
16880   ac_cv_lib_jack_jack_client_open=no
16881 fi
16882 rm -f core conftest.err conftest.$ac_objext \
16883     conftest$ac_exeext conftest.$ac_ext
16884 LIBS=$ac_check_lib_save_LIBS
16885 fi
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jack_jack_client_open" >&5
16887 $as_echo "$ac_cv_lib_jack_jack_client_open" >&6; }
16888 if test "x$ac_cv_lib_jack_jack_client_open" = xyes; then :
16889   cat >>confdefs.h <<_ACEOF
16890 #define HAVE_LIBJACK 1
16891 _ACEOF
16892
16893   LIBS="-ljack $LIBS"
16894
16895 else
16896   as_fn_error $? "JACK support requires the jack library!" "$LINENO" 5
16897 fi
16898
16899 fi
16900
16901 case $host in
16902   *-*-netbsd*)
16903   if test "$api" == ""; then :
16904
16905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
16906 $as_echo "using OSS" >&6; }
16907     api="$api -D__LINUX_OSS__"
16908     LIBS="$LIBS -lossaudio"
16909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16910 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16911 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16912   $as_echo_n "(cached) " >&6
16913 else
16914   ac_check_lib_save_LIBS=$LIBS
16915 LIBS="-lpthread  $LIBS"
16916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16917 /* end confdefs.h.  */
16918
16919 /* Override any GCC internal prototype to avoid an error.
16920    Use char because int might match the return type of a GCC
16921    builtin and then its argument prototype would still apply.  */
16922 #ifdef __cplusplus
16923 extern "C"
16924 #endif
16925 char pthread_create ();
16926 int
16927 main ()
16928 {
16929 return pthread_create ();
16930   ;
16931   return 0;
16932 }
16933 _ACEOF
16934 if ac_fn_c_try_link "$LINENO"; then :
16935   ac_cv_lib_pthread_pthread_create=yes
16936 else
16937   ac_cv_lib_pthread_pthread_create=no
16938 fi
16939 rm -f core conftest.err conftest.$ac_objext \
16940     conftest$ac_exeext conftest.$ac_ext
16941 LIBS=$ac_check_lib_save_LIBS
16942 fi
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16944 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16945 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16946   cat >>confdefs.h <<_ACEOF
16947 #define HAVE_LIBPTHREAD 1
16948 _ACEOF
16949
16950   LIBS="-lpthread $LIBS"
16951
16952 else
16953   as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
16954 fi
16955
16956 fi
16957   ;;
16958
16959   *-*-freebsd*)
16960   if test "$api" == ""; then :
16961
16962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
16963 $as_echo "using OSS" >&6; }
16964     api="$api -D__LINUX_OSS__"
16965     LIBS="$LIBS -lossaudio"
16966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16967 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16968 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16969   $as_echo_n "(cached) " >&6
16970 else
16971   ac_check_lib_save_LIBS=$LIBS
16972 LIBS="-lpthread  $LIBS"
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h.  */
16975
16976 /* Override any GCC internal prototype to avoid an error.
16977    Use char because int might match the return type of a GCC
16978    builtin and then its argument prototype would still apply.  */
16979 #ifdef __cplusplus
16980 extern "C"
16981 #endif
16982 char pthread_create ();
16983 int
16984 main ()
16985 {
16986 return pthread_create ();
16987   ;
16988   return 0;
16989 }
16990 _ACEOF
16991 if ac_fn_c_try_link "$LINENO"; then :
16992   ac_cv_lib_pthread_pthread_create=yes
16993 else
16994   ac_cv_lib_pthread_pthread_create=no
16995 fi
16996 rm -f core conftest.err conftest.$ac_objext \
16997     conftest$ac_exeext conftest.$ac_ext
16998 LIBS=$ac_check_lib_save_LIBS
16999 fi
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17001 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17002 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17003   cat >>confdefs.h <<_ACEOF
17004 #define HAVE_LIBPTHREAD 1
17005 _ACEOF
17006
17007   LIBS="-lpthread $LIBS"
17008
17009 else
17010   as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
17011 fi
17012
17013 fi
17014   ;;
17015
17016   *-*-linux*)
17017   # Look for ALSA flag
17018
17019 # Check whether --with-alsa was given.
17020 if test "${with_alsa+set}" = set; then :
17021   withval=$with_alsa;
17022 fi
17023
17024   if test "x$with_alsa" == "xyes"; then :
17025
17026     api="$api -D__LINUX_ALSA__"
17027     req="$req alsa"
17028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ALSA" >&5
17029 $as_echo "using ALSA" >&6; }
17030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
17031 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
17032 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
17033   $as_echo_n "(cached) " >&6
17034 else
17035   ac_check_lib_save_LIBS=$LIBS
17036 LIBS="-lasound  $LIBS"
17037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17038 /* end confdefs.h.  */
17039
17040 /* Override any GCC internal prototype to avoid an error.
17041    Use char because int might match the return type of a GCC
17042    builtin and then its argument prototype would still apply.  */
17043 #ifdef __cplusplus
17044 extern "C"
17045 #endif
17046 char snd_pcm_open ();
17047 int
17048 main ()
17049 {
17050 return snd_pcm_open ();
17051   ;
17052   return 0;
17053 }
17054 _ACEOF
17055 if ac_fn_c_try_link "$LINENO"; then :
17056   ac_cv_lib_asound_snd_pcm_open=yes
17057 else
17058   ac_cv_lib_asound_snd_pcm_open=no
17059 fi
17060 rm -f core conftest.err conftest.$ac_objext \
17061     conftest$ac_exeext conftest.$ac_ext
17062 LIBS=$ac_check_lib_save_LIBS
17063 fi
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
17065 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
17066 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
17067   cat >>confdefs.h <<_ACEOF
17068 #define HAVE_LIBASOUND 1
17069 _ACEOF
17070
17071   LIBS="-lasound $LIBS"
17072
17073 else
17074   as_fn_error $? "ALSA support requires the asound library!" "$LINENO" 5
17075 fi
17076
17077 fi
17078
17079   # Look for PULSE flag
17080
17081 # Check whether --with-pulse was given.
17082 if test "${with_pulse+set}" = set; then :
17083   withval=$with_pulse;
17084 fi
17085
17086   if test "x$with_pulse" == "xyes"; then :
17087
17088     api="$api -D__LINUX_PULSE__"
17089     req="$req libpulse-simple"
17090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PulseAudio" >&5
17091 $as_echo "using PulseAudio" >&6; }
17092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_simple_flush in -lpulse-simple" >&5
17093 $as_echo_n "checking for pa_simple_flush in -lpulse-simple... " >&6; }
17094 if ${ac_cv_lib_pulse_simple_pa_simple_flush+:} false; then :
17095   $as_echo_n "(cached) " >&6
17096 else
17097   ac_check_lib_save_LIBS=$LIBS
17098 LIBS="-lpulse-simple  $LIBS"
17099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100 /* end confdefs.h.  */
17101
17102 /* Override any GCC internal prototype to avoid an error.
17103    Use char because int might match the return type of a GCC
17104    builtin and then its argument prototype would still apply.  */
17105 #ifdef __cplusplus
17106 extern "C"
17107 #endif
17108 char pa_simple_flush ();
17109 int
17110 main ()
17111 {
17112 return pa_simple_flush ();
17113   ;
17114   return 0;
17115 }
17116 _ACEOF
17117 if ac_fn_c_try_link "$LINENO"; then :
17118   ac_cv_lib_pulse_simple_pa_simple_flush=yes
17119 else
17120   ac_cv_lib_pulse_simple_pa_simple_flush=no
17121 fi
17122 rm -f core conftest.err conftest.$ac_objext \
17123     conftest$ac_exeext conftest.$ac_ext
17124 LIBS=$ac_check_lib_save_LIBS
17125 fi
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pulse_simple_pa_simple_flush" >&5
17127 $as_echo "$ac_cv_lib_pulse_simple_pa_simple_flush" >&6; }
17128 if test "x$ac_cv_lib_pulse_simple_pa_simple_flush" = xyes; then :
17129   cat >>confdefs.h <<_ACEOF
17130 #define HAVE_LIBPULSE_SIMPLE 1
17131 _ACEOF
17132
17133   LIBS="-lpulse-simple $LIBS"
17134
17135 else
17136   as_fn_error $? "PulseAudio support requires the pulse-simple library!" "$LINENO" 5
17137 fi
17138
17139 fi
17140
17141   # Look for OSS flag
17142
17143 # Check whether --with-oss was given.
17144 if test "${with_oss+set}" = set; then :
17145   withval=$with_oss;
17146 fi
17147
17148   if test "x$with_oss" == "xyes"; then :
17149
17150     api="$api -D__LINUX_OSS__"
17151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
17152 $as_echo "using OSS" >&6; }
17153 fi
17154
17155   # If no audio api flags specified, use ALSA
17156   if test "$api" == ""; then
17157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ALSA" >&5
17158 $as_echo "using ALSA" >&6; }
17159     api=-D__LINUX_ALSA__
17160
17161     req="$req alsa"
17162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
17163 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
17164 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
17165   $as_echo_n "(cached) " >&6
17166 else
17167   ac_check_lib_save_LIBS=$LIBS
17168 LIBS="-lasound  $LIBS"
17169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17170 /* end confdefs.h.  */
17171
17172 /* Override any GCC internal prototype to avoid an error.
17173    Use char because int might match the return type of a GCC
17174    builtin and then its argument prototype would still apply.  */
17175 #ifdef __cplusplus
17176 extern "C"
17177 #endif
17178 char snd_pcm_open ();
17179 int
17180 main ()
17181 {
17182 return snd_pcm_open ();
17183   ;
17184   return 0;
17185 }
17186 _ACEOF
17187 if ac_fn_c_try_link "$LINENO"; then :
17188   ac_cv_lib_asound_snd_pcm_open=yes
17189 else
17190   ac_cv_lib_asound_snd_pcm_open=no
17191 fi
17192 rm -f core conftest.err conftest.$ac_objext \
17193     conftest$ac_exeext conftest.$ac_ext
17194 LIBS=$ac_check_lib_save_LIBS
17195 fi
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
17197 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
17198 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
17199   cat >>confdefs.h <<_ACEOF
17200 #define HAVE_LIBASOUND 1
17201 _ACEOF
17202
17203   LIBS="-lasound $LIBS"
17204
17205 else
17206   as_fn_error $? "ALSA support requires the asound library!" "$LINENO" 5
17207 fi
17208
17209   fi
17210
17211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17212 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17213 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17214   $as_echo_n "(cached) " >&6
17215 else
17216   ac_check_lib_save_LIBS=$LIBS
17217 LIBS="-lpthread  $LIBS"
17218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219 /* end confdefs.h.  */
17220
17221 /* Override any GCC internal prototype to avoid an error.
17222    Use char because int might match the return type of a GCC
17223    builtin and then its argument prototype would still apply.  */
17224 #ifdef __cplusplus
17225 extern "C"
17226 #endif
17227 char pthread_create ();
17228 int
17229 main ()
17230 {
17231 return pthread_create ();
17232   ;
17233   return 0;
17234 }
17235 _ACEOF
17236 if ac_fn_c_try_link "$LINENO"; then :
17237   ac_cv_lib_pthread_pthread_create=yes
17238 else
17239   ac_cv_lib_pthread_pthread_create=no
17240 fi
17241 rm -f core conftest.err conftest.$ac_objext \
17242     conftest$ac_exeext conftest.$ac_ext
17243 LIBS=$ac_check_lib_save_LIBS
17244 fi
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17246 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17247 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17248   cat >>confdefs.h <<_ACEOF
17249 #define HAVE_LIBPTHREAD 1
17250 _ACEOF
17251
17252   LIBS="-lpthread $LIBS"
17253
17254 else
17255   as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
17256 fi
17257
17258   ;;
17259
17260   *-apple*)
17261   # Look for Core flag
17262
17263 # Check whether --with-core was given.
17264 if test "${with_core+set}" = set; then :
17265   withval=$with_core;
17266 fi
17267
17268   if test "x$with_core" == "xyes"; then :
17269
17270     api="$api -D__MACOSX_CORE__"
17271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using CoreAudio" >&5
17272 $as_echo "using CoreAudio" >&6; }
17273     ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
17274 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then :
17275
17276 else
17277   as_fn_error $? "CoreAudio header files not found!" "$LINENO" 5
17278 fi
17279
17280
17281     LIBS="$LIBS -framework CoreAudio -framework CoreFoundation"
17282 fi
17283
17284   # If no audio api flags specified, use CoreAudio
17285   if test "$api" == "";  then
17286     api=-D__MACOSX_CORE__
17287
17288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using CoreAudio" >&5
17289 $as_echo "using CoreAudio" >&6; }
17290     ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
17291 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then :
17292
17293 else
17294   as_fn_error $? "CoreAudio header files not found!" "$LINENO" 5
17295 fi
17296
17297
17298     LIBS="-framework CoreAudio -framework CoreFoundation"
17299
17300   fi
17301
17302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17303 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17304 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17305   $as_echo_n "(cached) " >&6
17306 else
17307   ac_check_lib_save_LIBS=$LIBS
17308 LIBS="-lpthread  $LIBS"
17309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310 /* end confdefs.h.  */
17311
17312 /* Override any GCC internal prototype to avoid an error.
17313    Use char because int might match the return type of a GCC
17314    builtin and then its argument prototype would still apply.  */
17315 #ifdef __cplusplus
17316 extern "C"
17317 #endif
17318 char pthread_create ();
17319 int
17320 main ()
17321 {
17322 return pthread_create ();
17323   ;
17324   return 0;
17325 }
17326 _ACEOF
17327 if ac_fn_c_try_link "$LINENO"; then :
17328   ac_cv_lib_pthread_pthread_create=yes
17329 else
17330   ac_cv_lib_pthread_pthread_create=no
17331 fi
17332 rm -f core conftest.err conftest.$ac_objext \
17333     conftest$ac_exeext conftest.$ac_ext
17334 LIBS=$ac_check_lib_save_LIBS
17335 fi
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17337 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17338 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17339   cat >>confdefs.h <<_ACEOF
17340 #define HAVE_LIBPTHREAD 1
17341 _ACEOF
17342
17343   LIBS="-lpthread $LIBS"
17344
17345 else
17346   as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
17347 fi
17348
17349   ;;
17350
17351   *-mingw32*)
17352
17353 # Check whether --with-asio was given.
17354 if test "${with_asio+set}" = set; then :
17355   withval=$with_asio;
17356 fi
17357
17358   if test "x$with_asio" == "xyes"; then :
17359
17360     api="$api -D__WINDOWS_ASIO__"
17361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ASIO" >&5
17362 $as_echo "using ASIO" >&6; }
17363     objects="asio.o asiodrivers.o asiolist.o iasiothiscallresolver.o"
17364
17365 fi
17366
17367   # Look for DirectSound flag
17368
17369 # Check whether --with-ds was given.
17370 if test "${with_ds+set}" = set; then :
17371   withval=$with_ds;
17372 fi
17373
17374   if test "x$with_ds" == "xyes"; then :
17375
17376     api="$api -D__WINDOWS_DS__"
17377     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using DirectSound" >&5
17378 $as_echo "using DirectSound" >&6; }
17379     LIBS="-ldsound -lwinmm $LIBS"
17380 fi
17381
17382   # Look for WASAPI flag
17383
17384 # Check whether --with-wasapi was given.
17385 if test "${with_wasapi+set}" = set; then :
17386   withval=$with_wasapi;
17387 fi
17388
17389   if test "x$with_wasapi" == "xyes"; then :
17390
17391     api="$api -D__WINDOWS_WASAPI__"
17392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using WASAPI" >&5
17393 $as_echo "using WASAPI" >&6; }
17394     LIBS="-lwinmm -luuid -lksuser $LIBS"
17395 fi
17396
17397   # If no audio api flags specified, use DS
17398   if test "$api" == ""; then
17399     api=-D__WINDOWS_DS__
17400
17401     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using DirectSound" >&5
17402 $as_echo "using DirectSound" >&6; }
17403     LIBS="-ldsound -lwinmm $LIBS"
17404   fi
17405
17406   LIBS="-lole32 $LIBS"
17407   ;;
17408
17409   *)
17410   # Default case for unknown realtime systems.
17411   as_fn_error $? "Unknown system type for realtime support!" "$LINENO" 5
17412   ;;
17413 esac
17414
17415 CPPFLAGS="$CPPFLAGS $api"
17416
17417 cat >confcache <<\_ACEOF
17418 # This file is a shell script that caches the results of configure
17419 # tests run on this system so they can be shared between configure
17420 # scripts and configure runs, see configure's option --config-cache.
17421 # It is not useful on other systems.  If it contains results you don't
17422 # want to keep, you may remove or edit it.
17423 #
17424 # config.status only pays attention to the cache file if you give it
17425 # the --recheck option to rerun configure.
17426 #
17427 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17428 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17429 # following values.
17430
17431 _ACEOF
17432
17433 # The following way of writing the cache mishandles newlines in values,
17434 # but we know of no workaround that is simple, portable, and efficient.
17435 # So, we kill variables containing newlines.
17436 # Ultrix sh set writes to stderr and can't be redirected directly,
17437 # and sets the high bit in the cache file unless we assign to the vars.
17438 (
17439   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17440     eval ac_val=\$$ac_var
17441     case $ac_val in #(
17442     *${as_nl}*)
17443       case $ac_var in #(
17444       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17446       esac
17447       case $ac_var in #(
17448       _ | IFS | as_nl) ;; #(
17449       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17450       *) { eval $ac_var=; unset $ac_var;} ;;
17451       esac ;;
17452     esac
17453   done
17454
17455   (set) 2>&1 |
17456     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17457     *${as_nl}ac_space=\ *)
17458       # `set' does not quote correctly, so add quotes: double-quote
17459       # substitution turns \\\\ into \\, and sed turns \\ into \.
17460       sed -n \
17461         "s/'/'\\\\''/g;
17462           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17463       ;; #(
17464     *)
17465       # `set' quotes correctly as required by POSIX, so do not add quotes.
17466       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17467       ;;
17468     esac |
17469     sort
17470 ) |
17471   sed '
17472      /^ac_cv_env_/b end
17473      t clear
17474      :clear
17475      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17476      t end
17477      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17478      :end' >>confcache
17479 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17480   if test -w "$cache_file"; then
17481     if test "x$cache_file" != "x/dev/null"; then
17482       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17483 $as_echo "$as_me: updating cache $cache_file" >&6;}
17484       if test ! -f "$cache_file" || test -h "$cache_file"; then
17485         cat confcache >"$cache_file"
17486       else
17487         case $cache_file in #(
17488         */* | ?:*)
17489           mv -f confcache "$cache_file"$$ &&
17490           mv -f "$cache_file"$$ "$cache_file" ;; #(
17491         *)
17492           mv -f confcache "$cache_file" ;;
17493         esac
17494       fi
17495     fi
17496   else
17497     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17498 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17499   fi
17500 fi
17501 rm -f confcache
17502
17503 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17504 # Let make expand exec_prefix.
17505 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17506
17507 # Transform confdefs.h into DEFS.
17508 # Protect against shell expansion while executing Makefile rules.
17509 # Protect against Makefile macro expansion.
17510 #
17511 # If the first sed substitution is executed (which looks for macros that
17512 # take arguments), then branch to the quote section.  Otherwise,
17513 # look for a macro that doesn't take arguments.
17514 ac_script='
17515 :mline
17516 /\\$/{
17517  N
17518  s,\\\n,,
17519  b mline
17520 }
17521 t clear
17522 :clear
17523 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
17524 t quote
17525 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
17526 t quote
17527 b any
17528 :quote
17529 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17530 s/\[/\\&/g
17531 s/\]/\\&/g
17532 s/\$/$$/g
17533 H
17534 :any
17535 ${
17536         g
17537         s/^\n//
17538         s/\n/ /g
17539         p
17540 }
17541 '
17542 DEFS=`sed -n "$ac_script" confdefs.h`
17543
17544
17545 ac_libobjs=
17546 ac_ltlibobjs=
17547 U=
17548 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17549   # 1. Remove the extension, and $U if already installed.
17550   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17551   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17552   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17553   #    will be set to the directory where LIBOBJS objects are built.
17554   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17555   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17556 done
17557 LIBOBJS=$ac_libobjs
17558
17559 LTLIBOBJS=$ac_ltlibobjs
17560
17561
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17563 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17564    if test -n "$am_sleep_pid"; then
17565      # Hide warnings about reused PIDs.
17566      wait $am_sleep_pid 2>/dev/null
17567    fi
17568    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17569 $as_echo "done" >&6; }
17570  if test -n "$EXEEXT"; then
17571   am__EXEEXT_TRUE=
17572   am__EXEEXT_FALSE='#'
17573 else
17574   am__EXEEXT_TRUE='#'
17575   am__EXEEXT_FALSE=
17576 fi
17577
17578 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17579   as_fn_error $? "conditional \"AMDEP\" was never defined.
17580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17581 fi
17582 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17583   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17585 fi
17586 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17587   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17589 fi
17590 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17591   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17593 fi
17594 if test -z "${MAKE_DOC_TRUE}" && test -z "${MAKE_DOC_FALSE}"; then
17595   as_fn_error $? "conditional \"MAKE_DOC\" was never defined.
17596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17597 fi
17598
17599 : "${CONFIG_STATUS=./config.status}"
17600 ac_write_fail=0
17601 ac_clean_files_save=$ac_clean_files
17602 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17604 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17605 as_write_fail=0
17606 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17607 #! $SHELL
17608 # Generated by $as_me.
17609 # Run this file to recreate the current configuration.
17610 # Compiler output produced by configure, useful for debugging
17611 # configure, is in config.log if it exists.
17612
17613 debug=false
17614 ac_cs_recheck=false
17615 ac_cs_silent=false
17616
17617 SHELL=\${CONFIG_SHELL-$SHELL}
17618 export SHELL
17619 _ASEOF
17620 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17621 ## -------------------- ##
17622 ## M4sh Initialization. ##
17623 ## -------------------- ##
17624
17625 # Be more Bourne compatible
17626 DUALCASE=1; export DUALCASE # for MKS sh
17627 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17628   emulate sh
17629   NULLCMD=:
17630   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17631   # is contrary to our usage.  Disable this feature.
17632   alias -g '${1+"$@"}'='"$@"'
17633   setopt NO_GLOB_SUBST
17634 else
17635   case `(set -o) 2>/dev/null` in #(
17636   *posix*) :
17637     set -o posix ;; #(
17638   *) :
17639      ;;
17640 esac
17641 fi
17642
17643
17644 as_nl='
17645 '
17646 export as_nl
17647 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17648 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17649 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17650 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17651 # Prefer a ksh shell builtin over an external printf program on Solaris,
17652 # but without wasting forks for bash or zsh.
17653 if test -z "$BASH_VERSION$ZSH_VERSION" \
17654     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17655   as_echo='print -r --'
17656   as_echo_n='print -rn --'
17657 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17658   as_echo='printf %s\n'
17659   as_echo_n='printf %s'
17660 else
17661   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17662     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17663     as_echo_n='/usr/ucb/echo -n'
17664   else
17665     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17666     as_echo_n_body='eval
17667       arg=$1;
17668       case $arg in #(
17669       *"$as_nl"*)
17670         expr "X$arg" : "X\\(.*\\)$as_nl";
17671         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17672       esac;
17673       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17674     '
17675     export as_echo_n_body
17676     as_echo_n='sh -c $as_echo_n_body as_echo'
17677   fi
17678   export as_echo_body
17679   as_echo='sh -c $as_echo_body as_echo'
17680 fi
17681
17682 # The user is always right.
17683 if test "${PATH_SEPARATOR+set}" != set; then
17684   PATH_SEPARATOR=:
17685   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17686     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17687       PATH_SEPARATOR=';'
17688   }
17689 fi
17690
17691
17692 # IFS
17693 # We need space, tab and new line, in precisely that order.  Quoting is
17694 # there to prevent editors from complaining about space-tab.
17695 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17696 # splitting by setting IFS to empty value.)
17697 IFS=" ""        $as_nl"
17698
17699 # Find who we are.  Look in the path if we contain no directory separator.
17700 as_myself=
17701 case $0 in #((
17702   *[\\/]* ) as_myself=$0 ;;
17703   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17704 for as_dir in $PATH
17705 do
17706   IFS=$as_save_IFS
17707   test -z "$as_dir" && as_dir=.
17708     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17709   done
17710 IFS=$as_save_IFS
17711
17712      ;;
17713 esac
17714 # We did not find ourselves, most probably we were run as `sh COMMAND'
17715 # in which case we are not to be found in the path.
17716 if test "x$as_myself" = x; then
17717   as_myself=$0
17718 fi
17719 if test ! -f "$as_myself"; then
17720   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17721   exit 1
17722 fi
17723
17724 # Unset variables that we do not need and which cause bugs (e.g. in
17725 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17726 # suppresses any "Segmentation fault" message there.  '((' could
17727 # trigger a bug in pdksh 5.2.14.
17728 for as_var in BASH_ENV ENV MAIL MAILPATH
17729 do eval test x\${$as_var+set} = xset \
17730   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17731 done
17732 PS1='$ '
17733 PS2='> '
17734 PS4='+ '
17735
17736 # NLS nuisances.
17737 LC_ALL=C
17738 export LC_ALL
17739 LANGUAGE=C
17740 export LANGUAGE
17741
17742 # CDPATH.
17743 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17744
17745
17746 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17747 # ----------------------------------------
17748 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17749 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17750 # script with STATUS, using 1 if that was 0.
17751 as_fn_error ()
17752 {
17753   as_status=$1; test $as_status -eq 0 && as_status=1
17754   if test "$4"; then
17755     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17756     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17757   fi
17758   $as_echo "$as_me: error: $2" >&2
17759   as_fn_exit $as_status
17760 } # as_fn_error
17761
17762
17763 # as_fn_set_status STATUS
17764 # -----------------------
17765 # Set $? to STATUS, without forking.
17766 as_fn_set_status ()
17767 {
17768   return $1
17769 } # as_fn_set_status
17770
17771 # as_fn_exit STATUS
17772 # -----------------
17773 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17774 as_fn_exit ()
17775 {
17776   set +e
17777   as_fn_set_status $1
17778   exit $1
17779 } # as_fn_exit
17780
17781 # as_fn_unset VAR
17782 # ---------------
17783 # Portably unset VAR.
17784 as_fn_unset ()
17785 {
17786   { eval $1=; unset $1;}
17787 }
17788 as_unset=as_fn_unset
17789 # as_fn_append VAR VALUE
17790 # ----------------------
17791 # Append the text in VALUE to the end of the definition contained in VAR. Take
17792 # advantage of any shell optimizations that allow amortized linear growth over
17793 # repeated appends, instead of the typical quadratic growth present in naive
17794 # implementations.
17795 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17796   eval 'as_fn_append ()
17797   {
17798     eval $1+=\$2
17799   }'
17800 else
17801   as_fn_append ()
17802   {
17803     eval $1=\$$1\$2
17804   }
17805 fi # as_fn_append
17806
17807 # as_fn_arith ARG...
17808 # ------------------
17809 # Perform arithmetic evaluation on the ARGs, and store the result in the
17810 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17811 # must be portable across $(()) and expr.
17812 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17813   eval 'as_fn_arith ()
17814   {
17815     as_val=$(( $* ))
17816   }'
17817 else
17818   as_fn_arith ()
17819   {
17820     as_val=`expr "$@" || test $? -eq 1`
17821   }
17822 fi # as_fn_arith
17823
17824
17825 if expr a : '\(a\)' >/dev/null 2>&1 &&
17826    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17827   as_expr=expr
17828 else
17829   as_expr=false
17830 fi
17831
17832 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17833   as_basename=basename
17834 else
17835   as_basename=false
17836 fi
17837
17838 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17839   as_dirname=dirname
17840 else
17841   as_dirname=false
17842 fi
17843
17844 as_me=`$as_basename -- "$0" ||
17845 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17846          X"$0" : 'X\(//\)$' \| \
17847          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17848 $as_echo X/"$0" |
17849     sed '/^.*\/\([^/][^/]*\)\/*$/{
17850             s//\1/
17851             q
17852           }
17853           /^X\/\(\/\/\)$/{
17854             s//\1/
17855             q
17856           }
17857           /^X\/\(\/\).*/{
17858             s//\1/
17859             q
17860           }
17861           s/.*/./; q'`
17862
17863 # Avoid depending upon Character Ranges.
17864 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17865 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17866 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17867 as_cr_digits='0123456789'
17868 as_cr_alnum=$as_cr_Letters$as_cr_digits
17869
17870 ECHO_C= ECHO_N= ECHO_T=
17871 case `echo -n x` in #(((((
17872 -n*)
17873   case `echo 'xy\c'` in
17874   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17875   xy)  ECHO_C='\c';;
17876   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17877        ECHO_T=' ';;
17878   esac;;
17879 *)
17880   ECHO_N='-n';;
17881 esac
17882
17883 rm -f conf$$ conf$$.exe conf$$.file
17884 if test -d conf$$.dir; then
17885   rm -f conf$$.dir/conf$$.file
17886 else
17887   rm -f conf$$.dir
17888   mkdir conf$$.dir 2>/dev/null
17889 fi
17890 if (echo >conf$$.file) 2>/dev/null; then
17891   if ln -s conf$$.file conf$$ 2>/dev/null; then
17892     as_ln_s='ln -s'
17893     # ... but there are two gotchas:
17894     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17895     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17896     # In both cases, we have to default to `cp -pR'.
17897     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17898       as_ln_s='cp -pR'
17899   elif ln conf$$.file conf$$ 2>/dev/null; then
17900     as_ln_s=ln
17901   else
17902     as_ln_s='cp -pR'
17903   fi
17904 else
17905   as_ln_s='cp -pR'
17906 fi
17907 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17908 rmdir conf$$.dir 2>/dev/null
17909
17910
17911 # as_fn_mkdir_p
17912 # -------------
17913 # Create "$as_dir" as a directory, including parents if necessary.
17914 as_fn_mkdir_p ()
17915 {
17916
17917   case $as_dir in #(
17918   -*) as_dir=./$as_dir;;
17919   esac
17920   test -d "$as_dir" || eval $as_mkdir_p || {
17921     as_dirs=
17922     while :; do
17923       case $as_dir in #(
17924       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17925       *) as_qdir=$as_dir;;
17926       esac
17927       as_dirs="'$as_qdir' $as_dirs"
17928       as_dir=`$as_dirname -- "$as_dir" ||
17929 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17930          X"$as_dir" : 'X\(//\)[^/]' \| \
17931          X"$as_dir" : 'X\(//\)$' \| \
17932          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17933 $as_echo X"$as_dir" |
17934     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17935             s//\1/
17936             q
17937           }
17938           /^X\(\/\/\)[^/].*/{
17939             s//\1/
17940             q
17941           }
17942           /^X\(\/\/\)$/{
17943             s//\1/
17944             q
17945           }
17946           /^X\(\/\).*/{
17947             s//\1/
17948             q
17949           }
17950           s/.*/./; q'`
17951       test -d "$as_dir" && break
17952     done
17953     test -z "$as_dirs" || eval "mkdir $as_dirs"
17954   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17955
17956
17957 } # as_fn_mkdir_p
17958 if mkdir -p . 2>/dev/null; then
17959   as_mkdir_p='mkdir -p "$as_dir"'
17960 else
17961   test -d ./-p && rmdir ./-p
17962   as_mkdir_p=false
17963 fi
17964
17965
17966 # as_fn_executable_p FILE
17967 # -----------------------
17968 # Test if FILE is an executable regular file.
17969 as_fn_executable_p ()
17970 {
17971   test -f "$1" && test -x "$1"
17972 } # as_fn_executable_p
17973 as_test_x='test -x'
17974 as_executable_p=as_fn_executable_p
17975
17976 # Sed expression to map a string onto a valid CPP name.
17977 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17978
17979 # Sed expression to map a string onto a valid variable name.
17980 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17981
17982
17983 exec 6>&1
17984 ## ----------------------------------- ##
17985 ## Main body of $CONFIG_STATUS script. ##
17986 ## ----------------------------------- ##
17987 _ASEOF
17988 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17989
17990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17991 # Save the log message, to keep $0 and so on meaningful, and to
17992 # report actual input values of CONFIG_FILES etc. instead of their
17993 # values after options handling.
17994 ac_log="
17995 This file was extended by RtAudio $as_me 5.0.0, which was
17996 generated by GNU Autoconf 2.69.  Invocation command line was
17997
17998   CONFIG_FILES    = $CONFIG_FILES
17999   CONFIG_HEADERS  = $CONFIG_HEADERS
18000   CONFIG_LINKS    = $CONFIG_LINKS
18001   CONFIG_COMMANDS = $CONFIG_COMMANDS
18002   $ $0 $@
18003
18004 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18005 "
18006
18007 _ACEOF
18008
18009 case $ac_config_files in *"
18010 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18011 esac
18012
18013
18014
18015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18016 # Files that config.status was made for.
18017 config_files="$ac_config_files"
18018 config_links="$ac_config_links"
18019 config_commands="$ac_config_commands"
18020
18021 _ACEOF
18022
18023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18024 ac_cs_usage="\
18025 \`$as_me' instantiates files and other configuration actions
18026 from templates according to the current configuration.  Unless the files
18027 and actions are specified as TAGs, all are instantiated by default.
18028
18029 Usage: $0 [OPTION]... [TAG]...
18030
18031   -h, --help       print this help, then exit
18032   -V, --version    print version number and configuration settings, then exit
18033       --config     print configuration, then exit
18034   -q, --quiet, --silent
18035                    do not print progress messages
18036   -d, --debug      don't remove temporary files
18037       --recheck    update $as_me by reconfiguring in the same conditions
18038       --file=FILE[:TEMPLATE]
18039                    instantiate the configuration file FILE
18040
18041 Configuration files:
18042 $config_files
18043
18044 Configuration links:
18045 $config_links
18046
18047 Configuration commands:
18048 $config_commands
18049
18050 Report bugs to <gary@music.mcgill.ca>."
18051
18052 _ACEOF
18053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18054 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18055 ac_cs_version="\\
18056 RtAudio config.status 5.0.0
18057 configured by $0, generated by GNU Autoconf 2.69,
18058   with options \\"\$ac_cs_config\\"
18059
18060 Copyright (C) 2012 Free Software Foundation, Inc.
18061 This config.status script is free software; the Free Software Foundation
18062 gives unlimited permission to copy, distribute and modify it."
18063
18064 ac_pwd='$ac_pwd'
18065 srcdir='$srcdir'
18066 INSTALL='$INSTALL'
18067 MKDIR_P='$MKDIR_P'
18068 AWK='$AWK'
18069 test -n "\$AWK" || AWK=awk
18070 _ACEOF
18071
18072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18073 # The default lists apply if the user does not specify any file.
18074 ac_need_defaults=:
18075 while test $# != 0
18076 do
18077   case $1 in
18078   --*=?*)
18079     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18080     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18081     ac_shift=:
18082     ;;
18083   --*=)
18084     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18085     ac_optarg=
18086     ac_shift=:
18087     ;;
18088   *)
18089     ac_option=$1
18090     ac_optarg=$2
18091     ac_shift=shift
18092     ;;
18093   esac
18094
18095   case $ac_option in
18096   # Handling of the options.
18097   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18098     ac_cs_recheck=: ;;
18099   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18100     $as_echo "$ac_cs_version"; exit ;;
18101   --config | --confi | --conf | --con | --co | --c )
18102     $as_echo "$ac_cs_config"; exit ;;
18103   --debug | --debu | --deb | --de | --d | -d )
18104     debug=: ;;
18105   --file | --fil | --fi | --f )
18106     $ac_shift
18107     case $ac_optarg in
18108     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18109     '') as_fn_error $? "missing file argument" ;;
18110     esac
18111     as_fn_append CONFIG_FILES " '$ac_optarg'"
18112     ac_need_defaults=false;;
18113   --he | --h |  --help | --hel | -h )
18114     $as_echo "$ac_cs_usage"; exit ;;
18115   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18116   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18117     ac_cs_silent=: ;;
18118
18119   # This is an error.
18120   -*) as_fn_error $? "unrecognized option: \`$1'
18121 Try \`$0 --help' for more information." ;;
18122
18123   *) as_fn_append ac_config_targets " $1"
18124      ac_need_defaults=false ;;
18125
18126   esac
18127   shift
18128 done
18129
18130 ac_configure_extra_args=
18131
18132 if $ac_cs_silent; then
18133   exec 6>/dev/null
18134   ac_configure_extra_args="$ac_configure_extra_args --silent"
18135 fi
18136
18137 _ACEOF
18138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18139 if \$ac_cs_recheck; then
18140   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18141   shift
18142   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18143   CONFIG_SHELL='$SHELL'
18144   export CONFIG_SHELL
18145   exec "\$@"
18146 fi
18147
18148 _ACEOF
18149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18150 exec 5>>config.log
18151 {
18152   echo
18153   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18154 ## Running $as_me. ##
18155 _ASBOX
18156   $as_echo "$ac_log"
18157 } >&5
18158
18159 _ACEOF
18160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18161 #
18162 # INIT-COMMANDS
18163 #
18164 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18165
18166
18167 # The HP-UX ksh and POSIX shell print the target directory to stdout
18168 # if CDPATH is set.
18169 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18170
18171 sed_quote_subst='$sed_quote_subst'
18172 double_quote_subst='$double_quote_subst'
18173 delay_variable_subst='$delay_variable_subst'
18174 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18175 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18176 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18177 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18178 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18179 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18180 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18181 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18182 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18183 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18184 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18185 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18186 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18187 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18188 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18189 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18190 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18191 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18192 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18193 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18194 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18195 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18196 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18197 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18198 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18199 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18200 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18201 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18202 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18203 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18204 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18205 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18206 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18207 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18208 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18209 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18210 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18211 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18212 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18213 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18214 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18215 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18216 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18217 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18218 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18219 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18220 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18221 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18222 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18223 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18224 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18225 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18226 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18227 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18228 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18229 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18230 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18231 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18232 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18233 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"`'
18234 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18235 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18236 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18237 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18238 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18239 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18240 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18241 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18242 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18243 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18244 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18245 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18246 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18247 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18248 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18249 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18250 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18251 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18252 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18253 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18254 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18255 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18256 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18257 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18258 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18259 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18260 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18261 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18262 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18263 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18264 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18265 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18266 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18267 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18268 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18269 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18270 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18271 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18272 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18273 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18274 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18275 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18276 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18277 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18278 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18279 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18280 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18281 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18282 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18283 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18284 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18285 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18286 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18287 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18288 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18289 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18290 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18291 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18292 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18293 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18294 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18295 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18296 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18297 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18298 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18299 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18300 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18301 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18302 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18303 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18304 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18305 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18306 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18307 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18308 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18309 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18310 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18311 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18312 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18313 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18314 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18315 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18316 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18317 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18318 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18319 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18320 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18321 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18322 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18323 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18324 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18325 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18326 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18327 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18328 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18329 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18330 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18331 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18332 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18333 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18334 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18335 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18336 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18337 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18338 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18339 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18340 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18341 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18342 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18343 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18344 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18345 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18346 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18347 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18348 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18349 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18350 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18351 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18352 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18353 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18354 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18355 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18356 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18357 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18358 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18359 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18360 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18361 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18362 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18363 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18364
18365 LTCC='$LTCC'
18366 LTCFLAGS='$LTCFLAGS'
18367 compiler='$compiler_DEFAULT'
18368
18369 # A function that is used when there is no print builtin or printf.
18370 func_fallback_echo ()
18371 {
18372   eval 'cat <<_LTECHO_EOF
18373 \$1
18374 _LTECHO_EOF'
18375 }
18376
18377 # Quote evaled strings.
18378 for var in AS \
18379 DLLTOOL \
18380 OBJDUMP \
18381 SHELL \
18382 ECHO \
18383 PATH_SEPARATOR \
18384 SED \
18385 GREP \
18386 EGREP \
18387 FGREP \
18388 LD \
18389 NM \
18390 LN_S \
18391 lt_SP2NL \
18392 lt_NL2SP \
18393 reload_flag \
18394 deplibs_check_method \
18395 file_magic_cmd \
18396 file_magic_glob \
18397 want_nocaseglob \
18398 sharedlib_from_linklib_cmd \
18399 AR \
18400 AR_FLAGS \
18401 archiver_list_spec \
18402 STRIP \
18403 RANLIB \
18404 CC \
18405 CFLAGS \
18406 compiler \
18407 lt_cv_sys_global_symbol_pipe \
18408 lt_cv_sys_global_symbol_to_cdecl \
18409 lt_cv_sys_global_symbol_to_import \
18410 lt_cv_sys_global_symbol_to_c_name_address \
18411 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18412 lt_cv_nm_interface \
18413 nm_file_list_spec \
18414 lt_cv_truncate_bin \
18415 lt_prog_compiler_no_builtin_flag \
18416 lt_prog_compiler_pic \
18417 lt_prog_compiler_wl \
18418 lt_prog_compiler_static \
18419 lt_cv_prog_compiler_c_o \
18420 need_locks \
18421 MANIFEST_TOOL \
18422 DSYMUTIL \
18423 NMEDIT \
18424 LIPO \
18425 OTOOL \
18426 OTOOL64 \
18427 shrext_cmds \
18428 export_dynamic_flag_spec \
18429 whole_archive_flag_spec \
18430 compiler_needs_object \
18431 with_gnu_ld \
18432 allow_undefined_flag \
18433 no_undefined_flag \
18434 hardcode_libdir_flag_spec \
18435 hardcode_libdir_separator \
18436 exclude_expsyms \
18437 include_expsyms \
18438 file_list_spec \
18439 variables_saved_for_relink \
18440 libname_spec \
18441 library_names_spec \
18442 soname_spec \
18443 install_override_mode \
18444 finish_eval \
18445 old_striplib \
18446 striplib \
18447 compiler_lib_search_dirs \
18448 predep_objects \
18449 postdep_objects \
18450 predeps \
18451 postdeps \
18452 compiler_lib_search_path \
18453 LD_CXX \
18454 reload_flag_CXX \
18455 compiler_CXX \
18456 lt_prog_compiler_no_builtin_flag_CXX \
18457 lt_prog_compiler_pic_CXX \
18458 lt_prog_compiler_wl_CXX \
18459 lt_prog_compiler_static_CXX \
18460 lt_cv_prog_compiler_c_o_CXX \
18461 export_dynamic_flag_spec_CXX \
18462 whole_archive_flag_spec_CXX \
18463 compiler_needs_object_CXX \
18464 with_gnu_ld_CXX \
18465 allow_undefined_flag_CXX \
18466 no_undefined_flag_CXX \
18467 hardcode_libdir_flag_spec_CXX \
18468 hardcode_libdir_separator_CXX \
18469 exclude_expsyms_CXX \
18470 include_expsyms_CXX \
18471 file_list_spec_CXX \
18472 compiler_lib_search_dirs_CXX \
18473 predep_objects_CXX \
18474 postdep_objects_CXX \
18475 predeps_CXX \
18476 postdeps_CXX \
18477 compiler_lib_search_path_CXX; do
18478     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18479     *[\\\\\\\`\\"\\\$]*)
18480       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18481       ;;
18482     *)
18483       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18484       ;;
18485     esac
18486 done
18487
18488 # Double-quote double-evaled strings.
18489 for var in reload_cmds \
18490 old_postinstall_cmds \
18491 old_postuninstall_cmds \
18492 old_archive_cmds \
18493 extract_expsyms_cmds \
18494 old_archive_from_new_cmds \
18495 old_archive_from_expsyms_cmds \
18496 archive_cmds \
18497 archive_expsym_cmds \
18498 module_cmds \
18499 module_expsym_cmds \
18500 export_symbols_cmds \
18501 prelink_cmds \
18502 postlink_cmds \
18503 postinstall_cmds \
18504 postuninstall_cmds \
18505 finish_cmds \
18506 sys_lib_search_path_spec \
18507 configure_time_dlsearch_path \
18508 configure_time_lt_sys_library_path \
18509 reload_cmds_CXX \
18510 old_archive_cmds_CXX \
18511 old_archive_from_new_cmds_CXX \
18512 old_archive_from_expsyms_cmds_CXX \
18513 archive_cmds_CXX \
18514 archive_expsym_cmds_CXX \
18515 module_cmds_CXX \
18516 module_expsym_cmds_CXX \
18517 export_symbols_cmds_CXX \
18518 prelink_cmds_CXX \
18519 postlink_cmds_CXX; do
18520     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18521     *[\\\\\\\`\\"\\\$]*)
18522       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18523       ;;
18524     *)
18525       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18526       ;;
18527     esac
18528 done
18529
18530 ac_aux_dir='$ac_aux_dir'
18531
18532 # See if we are running on zsh, and set the options that allow our
18533 # commands through without removal of \ escapes INIT.
18534 if test -n "\${ZSH_VERSION+set}"; then
18535    setopt NO_GLOB_SUBST
18536 fi
18537
18538
18539     PACKAGE='$PACKAGE'
18540     VERSION='$VERSION'
18541     RM='$RM'
18542     ofile='$ofile'
18543
18544
18545
18546
18547
18548
18549 _ACEOF
18550
18551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18552
18553 # Handling of arguments.
18554 for ac_config_target in $ac_config_targets
18555 do
18556   case $ac_config_target in
18557     "rtaudio.pc") CONFIG_FILES="$CONFIG_FILES rtaudio.pc" ;;
18558     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18559     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18560     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18561     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
18562     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18563     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18564     "doc/release.txt") CONFIG_LINKS="$CONFIG_LINKS doc/release.txt:doc/release.txt" ;;
18565     "doc/doxygen/footer.html") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/footer.html:doc/doxygen/footer.html" ;;
18566     "doc/doxygen/error.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/error.txt:doc/doxygen/error.txt" ;;
18567     "doc/doxygen/tutorial.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/tutorial.txt:doc/doxygen/tutorial.txt" ;;
18568     "doc/doxygen/compiling.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/compiling.txt:doc/doxygen/compiling.txt" ;;
18569     "doc/doxygen/acknowledge.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/acknowledge.txt:doc/doxygen/acknowledge.txt" ;;
18570     "doc/doxygen/license.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/license.txt:doc/doxygen/license.txt" ;;
18571     "doc/doxygen/header.html") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/header.html:doc/doxygen/header.html" ;;
18572     "doc/doxygen/duplex.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/duplex.txt:doc/doxygen/duplex.txt" ;;
18573     "doc/doxygen/settings.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/settings.txt:doc/doxygen/settings.txt" ;;
18574     "doc/doxygen/probe.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/probe.txt:doc/doxygen/probe.txt" ;;
18575     "doc/doxygen/playback.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/playback.txt:doc/doxygen/playback.txt" ;;
18576     "doc/doxygen/multi.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/multi.txt:doc/doxygen/multi.txt" ;;
18577     "doc/doxygen/recording.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/recording.txt:doc/doxygen/recording.txt" ;;
18578     "doc/doxygen/apinotes.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/apinotes.txt:doc/doxygen/apinotes.txt" ;;
18579     "doc/images/mcgill.gif") CONFIG_LINKS="$CONFIG_LINKS doc/images/mcgill.gif:doc/images/mcgill.gif" ;;
18580     "doc/images/ccrma.gif") CONFIG_LINKS="$CONFIG_LINKS doc/images/ccrma.gif:doc/images/ccrma.gif" ;;
18581
18582   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18583   esac
18584 done
18585
18586
18587 # If the user did not use the arguments to specify the items to instantiate,
18588 # then the envvar interface is used.  Set only those that are not.
18589 # We use the long form for the default assignment because of an extremely
18590 # bizarre bug on SunOS 4.1.3.
18591 if $ac_need_defaults; then
18592   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18593   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18594   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18595 fi
18596
18597 # Have a temporary directory for convenience.  Make it in the build tree
18598 # simply because there is no reason against having it here, and in addition,
18599 # creating and moving files from /tmp can sometimes cause problems.
18600 # Hook for its removal unless debugging.
18601 # Note that there is a small window in which the directory will not be cleaned:
18602 # after its creation but before its name has been assigned to `$tmp'.
18603 $debug ||
18604 {
18605   tmp= ac_tmp=
18606   trap 'exit_status=$?
18607   : "${ac_tmp:=$tmp}"
18608   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18609 ' 0
18610   trap 'as_fn_exit 1' 1 2 13 15
18611 }
18612 # Create a (secure) tmp directory for tmp files.
18613
18614 {
18615   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18616   test -d "$tmp"
18617 }  ||
18618 {
18619   tmp=./conf$$-$RANDOM
18620   (umask 077 && mkdir "$tmp")
18621 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18622 ac_tmp=$tmp
18623
18624 # Set up the scripts for CONFIG_FILES section.
18625 # No need to generate them if there are no CONFIG_FILES.
18626 # This happens for instance with `./config.status config.h'.
18627 if test -n "$CONFIG_FILES"; then
18628
18629
18630 ac_cr=`echo X | tr X '\015'`
18631 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18632 # But we know of no other shell where ac_cr would be empty at this
18633 # point, so we can use a bashism as a fallback.
18634 if test "x$ac_cr" = x; then
18635   eval ac_cr=\$\'\\r\'
18636 fi
18637 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18638 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18639   ac_cs_awk_cr='\\r'
18640 else
18641   ac_cs_awk_cr=$ac_cr
18642 fi
18643
18644 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18645 _ACEOF
18646
18647
18648 {
18649   echo "cat >conf$$subs.awk <<_ACEOF" &&
18650   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18651   echo "_ACEOF"
18652 } >conf$$subs.sh ||
18653   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18654 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18655 ac_delim='%!_!# '
18656 for ac_last_try in false false false false false :; do
18657   . ./conf$$subs.sh ||
18658     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18659
18660   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18661   if test $ac_delim_n = $ac_delim_num; then
18662     break
18663   elif $ac_last_try; then
18664     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18665   else
18666     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18667   fi
18668 done
18669 rm -f conf$$subs.sh
18670
18671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18672 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18673 _ACEOF
18674 sed -n '
18675 h
18676 s/^/S["/; s/!.*/"]=/
18677 p
18678 g
18679 s/^[^!]*!//
18680 :repl
18681 t repl
18682 s/'"$ac_delim"'$//
18683 t delim
18684 :nl
18685 h
18686 s/\(.\{148\}\)..*/\1/
18687 t more1
18688 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18689 p
18690 n
18691 b repl
18692 :more1
18693 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18694 p
18695 g
18696 s/.\{148\}//
18697 t nl
18698 :delim
18699 h
18700 s/\(.\{148\}\)..*/\1/
18701 t more2
18702 s/["\\]/\\&/g; s/^/"/; s/$/"/
18703 p
18704 b
18705 :more2
18706 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18707 p
18708 g
18709 s/.\{148\}//
18710 t delim
18711 ' <conf$$subs.awk | sed '
18712 /^[^""]/{
18713   N
18714   s/\n//
18715 }
18716 ' >>$CONFIG_STATUS || ac_write_fail=1
18717 rm -f conf$$subs.awk
18718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18719 _ACAWK
18720 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18721   for (key in S) S_is_set[key] = 1
18722   FS = "\a"
18723
18724 }
18725 {
18726   line = $ 0
18727   nfields = split(line, field, "@")
18728   substed = 0
18729   len = length(field[1])
18730   for (i = 2; i < nfields; i++) {
18731     key = field[i]
18732     keylen = length(key)
18733     if (S_is_set[key]) {
18734       value = S[key]
18735       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18736       len += length(value) + length(field[++i])
18737       substed = 1
18738     } else
18739       len += 1 + keylen
18740   }
18741
18742   print line
18743 }
18744
18745 _ACAWK
18746 _ACEOF
18747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18748 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18749   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18750 else
18751   cat
18752 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18753   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18754 _ACEOF
18755
18756 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18757 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18758 # trailing colons and then remove the whole line if VPATH becomes empty
18759 # (actually we leave an empty line to preserve line numbers).
18760 if test "x$srcdir" = x.; then
18761   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18762 h
18763 s///
18764 s/^/:/
18765 s/[      ]*$/:/
18766 s/:\$(srcdir):/:/g
18767 s/:\${srcdir}:/:/g
18768 s/:@srcdir@:/:/g
18769 s/^:*//
18770 s/:*$//
18771 x
18772 s/\(=[   ]*\).*/\1/
18773 G
18774 s/\n//
18775 s/^[^=]*=[       ]*$//
18776 }'
18777 fi
18778
18779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18780 fi # test -n "$CONFIG_FILES"
18781
18782
18783 eval set X "  :F $CONFIG_FILES    :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
18784 shift
18785 for ac_tag
18786 do
18787   case $ac_tag in
18788   :[FHLC]) ac_mode=$ac_tag; continue;;
18789   esac
18790   case $ac_mode$ac_tag in
18791   :[FHL]*:*);;
18792   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18793   :[FH]-) ac_tag=-:-;;
18794   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18795   esac
18796   ac_save_IFS=$IFS
18797   IFS=:
18798   set x $ac_tag
18799   IFS=$ac_save_IFS
18800   shift
18801   ac_file=$1
18802   shift
18803
18804   case $ac_mode in
18805   :L) ac_source=$1;;
18806   :[FH])
18807     ac_file_inputs=
18808     for ac_f
18809     do
18810       case $ac_f in
18811       -) ac_f="$ac_tmp/stdin";;
18812       *) # Look for the file first in the build tree, then in the source tree
18813          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18814          # because $ac_f cannot contain `:'.
18815          test -f "$ac_f" ||
18816            case $ac_f in
18817            [\\/$]*) false;;
18818            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18819            esac ||
18820            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18821       esac
18822       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18823       as_fn_append ac_file_inputs " '$ac_f'"
18824     done
18825
18826     # Let's still pretend it is `configure' which instantiates (i.e., don't
18827     # use $as_me), people would be surprised to read:
18828     #    /* config.h.  Generated by config.status.  */
18829     configure_input='Generated from '`
18830           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18831         `' by configure.'
18832     if test x"$ac_file" != x-; then
18833       configure_input="$ac_file.  $configure_input"
18834       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18835 $as_echo "$as_me: creating $ac_file" >&6;}
18836     fi
18837     # Neutralize special characters interpreted by sed in replacement strings.
18838     case $configure_input in #(
18839     *\&* | *\|* | *\\* )
18840        ac_sed_conf_input=`$as_echo "$configure_input" |
18841        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18842     *) ac_sed_conf_input=$configure_input;;
18843     esac
18844
18845     case $ac_tag in
18846     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18847       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18848     esac
18849     ;;
18850   esac
18851
18852   ac_dir=`$as_dirname -- "$ac_file" ||
18853 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18854          X"$ac_file" : 'X\(//\)[^/]' \| \
18855          X"$ac_file" : 'X\(//\)$' \| \
18856          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18857 $as_echo X"$ac_file" |
18858     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18859             s//\1/
18860             q
18861           }
18862           /^X\(\/\/\)[^/].*/{
18863             s//\1/
18864             q
18865           }
18866           /^X\(\/\/\)$/{
18867             s//\1/
18868             q
18869           }
18870           /^X\(\/\).*/{
18871             s//\1/
18872             q
18873           }
18874           s/.*/./; q'`
18875   as_dir="$ac_dir"; as_fn_mkdir_p
18876   ac_builddir=.
18877
18878 case "$ac_dir" in
18879 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18880 *)
18881   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18882   # A ".." for each directory in $ac_dir_suffix.
18883   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18884   case $ac_top_builddir_sub in
18885   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18886   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18887   esac ;;
18888 esac
18889 ac_abs_top_builddir=$ac_pwd
18890 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18891 # for backward compatibility:
18892 ac_top_builddir=$ac_top_build_prefix
18893
18894 case $srcdir in
18895   .)  # We are building in place.
18896     ac_srcdir=.
18897     ac_top_srcdir=$ac_top_builddir_sub
18898     ac_abs_top_srcdir=$ac_pwd ;;
18899   [\\/]* | ?:[\\/]* )  # Absolute name.
18900     ac_srcdir=$srcdir$ac_dir_suffix;
18901     ac_top_srcdir=$srcdir
18902     ac_abs_top_srcdir=$srcdir ;;
18903   *) # Relative name.
18904     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18905     ac_top_srcdir=$ac_top_build_prefix$srcdir
18906     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18907 esac
18908 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18909
18910
18911   case $ac_mode in
18912   :F)
18913   #
18914   # CONFIG_FILE
18915   #
18916
18917   case $INSTALL in
18918   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18919   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18920   esac
18921   ac_MKDIR_P=$MKDIR_P
18922   case $MKDIR_P in
18923   [\\/$]* | ?:[\\/]* ) ;;
18924   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18925   esac
18926 _ACEOF
18927
18928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18929 # If the template does not know about datarootdir, expand it.
18930 # FIXME: This hack should be removed a few years after 2.60.
18931 ac_datarootdir_hack=; ac_datarootdir_seen=
18932 ac_sed_dataroot='
18933 /datarootdir/ {
18934   p
18935   q
18936 }
18937 /@datadir@/p
18938 /@docdir@/p
18939 /@infodir@/p
18940 /@localedir@/p
18941 /@mandir@/p'
18942 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18943 *datarootdir*) ac_datarootdir_seen=yes;;
18944 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18945   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18946 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18947 _ACEOF
18948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18949   ac_datarootdir_hack='
18950   s&@datadir@&$datadir&g
18951   s&@docdir@&$docdir&g
18952   s&@infodir@&$infodir&g
18953   s&@localedir@&$localedir&g
18954   s&@mandir@&$mandir&g
18955   s&\\\${datarootdir}&$datarootdir&g' ;;
18956 esac
18957 _ACEOF
18958
18959 # Neutralize VPATH when `$srcdir' = `.'.
18960 # Shell code in configure.ac might set extrasub.
18961 # FIXME: do we really want to maintain this feature?
18962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18963 ac_sed_extra="$ac_vpsub
18964 $extrasub
18965 _ACEOF
18966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18967 :t
18968 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18969 s|@configure_input@|$ac_sed_conf_input|;t t
18970 s&@top_builddir@&$ac_top_builddir_sub&;t t
18971 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18972 s&@srcdir@&$ac_srcdir&;t t
18973 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18974 s&@top_srcdir@&$ac_top_srcdir&;t t
18975 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18976 s&@builddir@&$ac_builddir&;t t
18977 s&@abs_builddir@&$ac_abs_builddir&;t t
18978 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18979 s&@INSTALL@&$ac_INSTALL&;t t
18980 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18981 $ac_datarootdir_hack
18982 "
18983 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18984   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18985
18986 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18987   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18988   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18989       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18990   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18991 which seems to be undefined.  Please make sure it is defined" >&5
18992 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18993 which seems to be undefined.  Please make sure it is defined" >&2;}
18994
18995   rm -f "$ac_tmp/stdin"
18996   case $ac_file in
18997   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18998   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18999   esac \
19000   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19001  ;;
19002
19003   :L)
19004   #
19005   # CONFIG_LINK
19006   #
19007
19008   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
19009     :
19010   else
19011     # Prefer the file from the source tree if names are identical.
19012     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19013       ac_source=$srcdir/$ac_source
19014     fi
19015
19016     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19017 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19018
19019     if test ! -r "$ac_source"; then
19020       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19021     fi
19022     rm -f "$ac_file"
19023
19024     # Try a relative symlink, then a hard link, then a copy.
19025     case $ac_source in
19026     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19027         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19028     esac
19029     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19030       ln "$ac_source" "$ac_file" 2>/dev/null ||
19031       cp -p "$ac_source" "$ac_file" ||
19032       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19033   fi
19034  ;;
19035   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19036 $as_echo "$as_me: executing $ac_file commands" >&6;}
19037  ;;
19038   esac
19039
19040
19041   case $ac_file$ac_mode in
19042     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19043   # Older Autoconf quotes --file arguments for eval, but not when files
19044   # are listed without --file.  Let's play safe and only enable the eval
19045   # if we detect the quoting.
19046   case $CONFIG_FILES in
19047   *\'*) eval set x "$CONFIG_FILES" ;;
19048   *)   set x $CONFIG_FILES ;;
19049   esac
19050   shift
19051   for mf
19052   do
19053     # Strip MF so we end up with the name of the file.
19054     mf=`echo "$mf" | sed -e 's/:.*$//'`
19055     # Check whether this is an Automake generated Makefile or not.
19056     # We used to match only the files named 'Makefile.in', but
19057     # some people rename them; so instead we look at the file content.
19058     # Grep'ing the first line is not enough: some people post-process
19059     # each Makefile.in and add a new line on top of each file to say so.
19060     # Grep'ing the whole file is not good either: AIX grep has a line
19061     # limit of 2048, but all sed's we know have understand at least 4000.
19062     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19063       dirpart=`$as_dirname -- "$mf" ||
19064 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19065          X"$mf" : 'X\(//\)[^/]' \| \
19066          X"$mf" : 'X\(//\)$' \| \
19067          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19068 $as_echo X"$mf" |
19069     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19070             s//\1/
19071             q
19072           }
19073           /^X\(\/\/\)[^/].*/{
19074             s//\1/
19075             q
19076           }
19077           /^X\(\/\/\)$/{
19078             s//\1/
19079             q
19080           }
19081           /^X\(\/\).*/{
19082             s//\1/
19083             q
19084           }
19085           s/.*/./; q'`
19086     else
19087       continue
19088     fi
19089     # Extract the definition of DEPDIR, am__include, and am__quote
19090     # from the Makefile without running 'make'.
19091     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19092     test -z "$DEPDIR" && continue
19093     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19094     test -z "$am__include" && continue
19095     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19096     # Find all dependency output files, they are included files with
19097     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19098     # simplest approach to changing $(DEPDIR) to its actual value in the
19099     # expansion.
19100     for file in `sed -n "
19101       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19102          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19103       # Make sure the directory exists.
19104       test -f "$dirpart/$file" && continue
19105       fdir=`$as_dirname -- "$file" ||
19106 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19107          X"$file" : 'X\(//\)[^/]' \| \
19108          X"$file" : 'X\(//\)$' \| \
19109          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19110 $as_echo X"$file" |
19111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19112             s//\1/
19113             q
19114           }
19115           /^X\(\/\/\)[^/].*/{
19116             s//\1/
19117             q
19118           }
19119           /^X\(\/\/\)$/{
19120             s//\1/
19121             q
19122           }
19123           /^X\(\/\).*/{
19124             s//\1/
19125             q
19126           }
19127           s/.*/./; q'`
19128       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19129       # echo "creating $dirpart/$file"
19130       echo '# dummy' > "$dirpart/$file"
19131     done
19132   done
19133 }
19134  ;;
19135     "libtool":C)
19136
19137     # See if we are running on zsh, and set the options that allow our
19138     # commands through without removal of \ escapes.
19139     if test -n "${ZSH_VERSION+set}"; then
19140       setopt NO_GLOB_SUBST
19141     fi
19142
19143     cfgfile=${ofile}T
19144     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19145     $RM "$cfgfile"
19146
19147     cat <<_LT_EOF >> "$cfgfile"
19148 #! $SHELL
19149 # Generated automatically by $as_me ($PACKAGE) $VERSION
19150 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19151
19152 # Provide generalized library-building support services.
19153 # Written by Gordon Matzigkeit, 1996
19154
19155 # Copyright (C) 2014 Free Software Foundation, Inc.
19156 # This is free software; see the source for copying conditions.  There is NO
19157 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19158
19159 # GNU Libtool is free software; you can redistribute it and/or modify
19160 # it under the terms of the GNU General Public License as published by
19161 # the Free Software Foundation; either version 2 of of the License, or
19162 # (at your option) any later version.
19163 #
19164 # As a special exception to the GNU General Public License, if you
19165 # distribute this file as part of a program or library that is built
19166 # using GNU Libtool, you may include this file under the  same
19167 # distribution terms that you use for the rest of that program.
19168 #
19169 # GNU Libtool is distributed in the hope that it will be useful, but
19170 # WITHOUT ANY WARRANTY; without even the implied warranty of
19171 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19172 # GNU General Public License for more details.
19173 #
19174 # You should have received a copy of the GNU General Public License
19175 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19176
19177
19178 # The names of the tagged configurations supported by this script.
19179 available_tags='CXX '
19180
19181 # Configured defaults for sys_lib_dlsearch_path munging.
19182 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19183
19184 # ### BEGIN LIBTOOL CONFIG
19185
19186 # Which release of libtool.m4 was used?
19187 macro_version=$macro_version
19188 macro_revision=$macro_revision
19189
19190 # Assembler program.
19191 AS=$lt_AS
19192
19193 # DLL creation program.
19194 DLLTOOL=$lt_DLLTOOL
19195
19196 # Object dumper program.
19197 OBJDUMP=$lt_OBJDUMP
19198
19199 # Whether or not to build shared libraries.
19200 build_libtool_libs=$enable_shared
19201
19202 # Whether or not to build static libraries.
19203 build_old_libs=$enable_static
19204
19205 # What type of objects to build.
19206 pic_mode=$pic_mode
19207
19208 # Whether or not to optimize for fast installation.
19209 fast_install=$enable_fast_install
19210
19211 # Shared archive member basename,for filename based shared library versioning on AIX.
19212 shared_archive_member_spec=$shared_archive_member_spec
19213
19214 # Shell to use when invoking shell scripts.
19215 SHELL=$lt_SHELL
19216
19217 # An echo program that protects backslashes.
19218 ECHO=$lt_ECHO
19219
19220 # The PATH separator for the build system.
19221 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19222
19223 # The host system.
19224 host_alias=$host_alias
19225 host=$host
19226 host_os=$host_os
19227
19228 # The build system.
19229 build_alias=$build_alias
19230 build=$build
19231 build_os=$build_os
19232
19233 # A sed program that does not truncate output.
19234 SED=$lt_SED
19235
19236 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19237 Xsed="\$SED -e 1s/^X//"
19238
19239 # A grep program that handles long lines.
19240 GREP=$lt_GREP
19241
19242 # An ERE matcher.
19243 EGREP=$lt_EGREP
19244
19245 # A literal string matcher.
19246 FGREP=$lt_FGREP
19247
19248 # A BSD- or MS-compatible name lister.
19249 NM=$lt_NM
19250
19251 # Whether we need soft or hard links.
19252 LN_S=$lt_LN_S
19253
19254 # What is the maximum length of a command?
19255 max_cmd_len=$max_cmd_len
19256
19257 # Object file suffix (normally "o").
19258 objext=$ac_objext
19259
19260 # Executable file suffix (normally "").
19261 exeext=$exeext
19262
19263 # whether the shell understands "unset".
19264 lt_unset=$lt_unset
19265
19266 # turn spaces into newlines.
19267 SP2NL=$lt_lt_SP2NL
19268
19269 # turn newlines into spaces.
19270 NL2SP=$lt_lt_NL2SP
19271
19272 # convert \$build file names to \$host format.
19273 to_host_file_cmd=$lt_cv_to_host_file_cmd
19274
19275 # convert \$build files to toolchain format.
19276 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19277
19278 # Method to check whether dependent libraries are shared objects.
19279 deplibs_check_method=$lt_deplibs_check_method
19280
19281 # Command to use when deplibs_check_method = "file_magic".
19282 file_magic_cmd=$lt_file_magic_cmd
19283
19284 # How to find potential files when deplibs_check_method = "file_magic".
19285 file_magic_glob=$lt_file_magic_glob
19286
19287 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19288 want_nocaseglob=$lt_want_nocaseglob
19289
19290 # Command to associate shared and link libraries.
19291 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19292
19293 # The archiver.
19294 AR=$lt_AR
19295
19296 # Flags to create an archive.
19297 AR_FLAGS=$lt_AR_FLAGS
19298
19299 # How to feed a file listing to the archiver.
19300 archiver_list_spec=$lt_archiver_list_spec
19301
19302 # A symbol stripping program.
19303 STRIP=$lt_STRIP
19304
19305 # Commands used to install an old-style archive.
19306 RANLIB=$lt_RANLIB
19307 old_postinstall_cmds=$lt_old_postinstall_cmds
19308 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19309
19310 # Whether to use a lock for old archive extraction.
19311 lock_old_archive_extraction=$lock_old_archive_extraction
19312
19313 # A C compiler.
19314 LTCC=$lt_CC
19315
19316 # LTCC compiler flags.
19317 LTCFLAGS=$lt_CFLAGS
19318
19319 # Take the output of nm and produce a listing of raw symbols and C names.
19320 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19321
19322 # Transform the output of nm in a proper C declaration.
19323 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19324
19325 # Transform the output of nm into a list of symbols to manually relocate.
19326 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19327
19328 # Transform the output of nm in a C name address pair.
19329 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19330
19331 # Transform the output of nm in a C name address pair when lib prefix is needed.
19332 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19333
19334 # The name lister interface.
19335 nm_interface=$lt_lt_cv_nm_interface
19336
19337 # Specify filename containing input files for \$NM.
19338 nm_file_list_spec=$lt_nm_file_list_spec
19339
19340 # The root where to search for dependent libraries,and where our libraries should be installed.
19341 lt_sysroot=$lt_sysroot
19342
19343 # Command to truncate a binary pipe.
19344 lt_truncate_bin=$lt_lt_cv_truncate_bin
19345
19346 # The name of the directory that contains temporary libtool files.
19347 objdir=$objdir
19348
19349 # Used to examine libraries when file_magic_cmd begins with "file".
19350 MAGIC_CMD=$MAGIC_CMD
19351
19352 # Must we lock files when doing compilation?
19353 need_locks=$lt_need_locks
19354
19355 # Manifest tool.
19356 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19357
19358 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19359 DSYMUTIL=$lt_DSYMUTIL
19360
19361 # Tool to change global to local symbols on Mac OS X.
19362 NMEDIT=$lt_NMEDIT
19363
19364 # Tool to manipulate fat objects and archives on Mac OS X.
19365 LIPO=$lt_LIPO
19366
19367 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19368 OTOOL=$lt_OTOOL
19369
19370 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19371 OTOOL64=$lt_OTOOL64
19372
19373 # Old archive suffix (normally "a").
19374 libext=$libext
19375
19376 # Shared library suffix (normally ".so").
19377 shrext_cmds=$lt_shrext_cmds
19378
19379 # The commands to extract the exported symbol list from a shared archive.
19380 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19381
19382 # Variables whose values should be saved in libtool wrapper scripts and
19383 # restored at link time.
19384 variables_saved_for_relink=$lt_variables_saved_for_relink
19385
19386 # Do we need the "lib" prefix for modules?
19387 need_lib_prefix=$need_lib_prefix
19388
19389 # Do we need a version for libraries?
19390 need_version=$need_version
19391
19392 # Library versioning type.
19393 version_type=$version_type
19394
19395 # Shared library runtime path variable.
19396 runpath_var=$runpath_var
19397
19398 # Shared library path variable.
19399 shlibpath_var=$shlibpath_var
19400
19401 # Is shlibpath searched before the hard-coded library search path?
19402 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19403
19404 # Format of library name prefix.
19405 libname_spec=$lt_libname_spec
19406
19407 # List of archive names.  First name is the real one, the rest are links.
19408 # The last name is the one that the linker finds with -lNAME
19409 library_names_spec=$lt_library_names_spec
19410
19411 # The coded name of the library, if different from the real name.
19412 soname_spec=$lt_soname_spec
19413
19414 # Permission mode override for installation of shared libraries.
19415 install_override_mode=$lt_install_override_mode
19416
19417 # Command to use after installation of a shared archive.
19418 postinstall_cmds=$lt_postinstall_cmds
19419
19420 # Command to use after uninstallation of a shared archive.
19421 postuninstall_cmds=$lt_postuninstall_cmds
19422
19423 # Commands used to finish a libtool library installation in a directory.
19424 finish_cmds=$lt_finish_cmds
19425
19426 # As "finish_cmds", except a single script fragment to be evaled but
19427 # not shown.
19428 finish_eval=$lt_finish_eval
19429
19430 # Whether we should hardcode library paths into libraries.
19431 hardcode_into_libs=$hardcode_into_libs
19432
19433 # Compile-time system search path for libraries.
19434 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19435
19436 # Detected run-time system search path for libraries.
19437 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19438
19439 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19440 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19441
19442 # Whether dlopen is supported.
19443 dlopen_support=$enable_dlopen
19444
19445 # Whether dlopen of programs is supported.
19446 dlopen_self=$enable_dlopen_self
19447
19448 # Whether dlopen of statically linked programs is supported.
19449 dlopen_self_static=$enable_dlopen_self_static
19450
19451 # Commands to strip libraries.
19452 old_striplib=$lt_old_striplib
19453 striplib=$lt_striplib
19454
19455
19456 # The linker used to build libraries.
19457 LD=$lt_LD
19458
19459 # How to create reloadable object files.
19460 reload_flag=$lt_reload_flag
19461 reload_cmds=$lt_reload_cmds
19462
19463 # Commands used to build an old-style archive.
19464 old_archive_cmds=$lt_old_archive_cmds
19465
19466 # A language specific compiler.
19467 CC=$lt_compiler
19468
19469 # Is the compiler the GNU compiler?
19470 with_gcc=$GCC
19471
19472 # Compiler flag to turn off builtin functions.
19473 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19474
19475 # Additional compiler flags for building library objects.
19476 pic_flag=$lt_lt_prog_compiler_pic
19477
19478 # How to pass a linker flag through the compiler.
19479 wl=$lt_lt_prog_compiler_wl
19480
19481 # Compiler flag to prevent dynamic linking.
19482 link_static_flag=$lt_lt_prog_compiler_static
19483
19484 # Does compiler simultaneously support -c and -o options?
19485 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19486
19487 # Whether or not to add -lc for building shared libraries.
19488 build_libtool_need_lc=$archive_cmds_need_lc
19489
19490 # Whether or not to disallow shared libs when runtime libs are static.
19491 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19492
19493 # Compiler flag to allow reflexive dlopens.
19494 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19495
19496 # Compiler flag to generate shared objects directly from archives.
19497 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19498
19499 # Whether the compiler copes with passing no objects directly.
19500 compiler_needs_object=$lt_compiler_needs_object
19501
19502 # Create an old-style archive from a shared archive.
19503 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19504
19505 # Create a temporary old-style archive to link instead of a shared archive.
19506 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19507
19508 # Commands used to build a shared archive.
19509 archive_cmds=$lt_archive_cmds
19510 archive_expsym_cmds=$lt_archive_expsym_cmds
19511
19512 # Commands used to build a loadable module if different from building
19513 # a shared archive.
19514 module_cmds=$lt_module_cmds
19515 module_expsym_cmds=$lt_module_expsym_cmds
19516
19517 # Whether we are building with GNU ld or not.
19518 with_gnu_ld=$lt_with_gnu_ld
19519
19520 # Flag that allows shared libraries with undefined symbols to be built.
19521 allow_undefined_flag=$lt_allow_undefined_flag
19522
19523 # Flag that enforces no undefined symbols.
19524 no_undefined_flag=$lt_no_undefined_flag
19525
19526 # Flag to hardcode \$libdir into a binary during linking.
19527 # This must work even if \$libdir does not exist
19528 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19529
19530 # Whether we need a single "-rpath" flag with a separated argument.
19531 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19532
19533 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19534 # DIR into the resulting binary.
19535 hardcode_direct=$hardcode_direct
19536
19537 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19538 # DIR into the resulting binary and the resulting library dependency is
19539 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19540 # library is relocated.
19541 hardcode_direct_absolute=$hardcode_direct_absolute
19542
19543 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19544 # into the resulting binary.
19545 hardcode_minus_L=$hardcode_minus_L
19546
19547 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19548 # into the resulting binary.
19549 hardcode_shlibpath_var=$hardcode_shlibpath_var
19550
19551 # Set to "yes" if building a shared library automatically hardcodes DIR
19552 # into the library and all subsequent libraries and executables linked
19553 # against it.
19554 hardcode_automatic=$hardcode_automatic
19555
19556 # Set to yes if linker adds runtime paths of dependent libraries
19557 # to runtime path list.
19558 inherit_rpath=$inherit_rpath
19559
19560 # Whether libtool must link a program against all its dependency libraries.
19561 link_all_deplibs=$link_all_deplibs
19562
19563 # Set to "yes" if exported symbols are required.
19564 always_export_symbols=$always_export_symbols
19565
19566 # The commands to list exported symbols.
19567 export_symbols_cmds=$lt_export_symbols_cmds
19568
19569 # Symbols that should not be listed in the preloaded symbols.
19570 exclude_expsyms=$lt_exclude_expsyms
19571
19572 # Symbols that must always be exported.
19573 include_expsyms=$lt_include_expsyms
19574
19575 # Commands necessary for linking programs (against libraries) with templates.
19576 prelink_cmds=$lt_prelink_cmds
19577
19578 # Commands necessary for finishing linking programs.
19579 postlink_cmds=$lt_postlink_cmds
19580
19581 # Specify filename containing input files.
19582 file_list_spec=$lt_file_list_spec
19583
19584 # How to hardcode a shared library path into an executable.
19585 hardcode_action=$hardcode_action
19586
19587 # The directories searched by this compiler when creating a shared library.
19588 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19589
19590 # Dependencies to place before and after the objects being linked to
19591 # create a shared library.
19592 predep_objects=$lt_predep_objects
19593 postdep_objects=$lt_postdep_objects
19594 predeps=$lt_predeps
19595 postdeps=$lt_postdeps
19596
19597 # The library search path used internally by the compiler when linking
19598 # a shared library.
19599 compiler_lib_search_path=$lt_compiler_lib_search_path
19600
19601 # ### END LIBTOOL CONFIG
19602
19603 _LT_EOF
19604
19605     cat <<'_LT_EOF' >> "$cfgfile"
19606
19607 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19608
19609 # func_munge_path_list VARIABLE PATH
19610 # -----------------------------------
19611 # VARIABLE is name of variable containing _space_ separated list of
19612 # directories to be munged by the contents of PATH, which is string
19613 # having a format:
19614 # "DIR[:DIR]:"
19615 #       string "DIR[ DIR]" will be prepended to VARIABLE
19616 # ":DIR[:DIR]"
19617 #       string "DIR[ DIR]" will be appended to VARIABLE
19618 # "DIRP[:DIRP]::[DIRA:]DIRA"
19619 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19620 #       "DIRA[ DIRA]" will be appended to VARIABLE
19621 # "DIR[:DIR]"
19622 #       VARIABLE will be replaced by "DIR[ DIR]"
19623 func_munge_path_list ()
19624 {
19625     case x$2 in
19626     x)
19627         ;;
19628     *:)
19629         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19630         ;;
19631     x:*)
19632         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19633         ;;
19634     *::*)
19635         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19636         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19637         ;;
19638     *)
19639         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19640         ;;
19641     esac
19642 }
19643
19644
19645 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19646 func_cc_basename ()
19647 {
19648     for cc_temp in $*""; do
19649       case $cc_temp in
19650         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19651         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19652         \-*) ;;
19653         *) break;;
19654       esac
19655     done
19656     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19657 }
19658
19659
19660 # ### END FUNCTIONS SHARED WITH CONFIGURE
19661
19662 _LT_EOF
19663
19664   case $host_os in
19665   aix3*)
19666     cat <<\_LT_EOF >> "$cfgfile"
19667 # AIX sometimes has problems with the GCC collect2 program.  For some
19668 # reason, if we set the COLLECT_NAMES environment variable, the problems
19669 # vanish in a puff of smoke.
19670 if test set != "${COLLECT_NAMES+set}"; then
19671   COLLECT_NAMES=
19672   export COLLECT_NAMES
19673 fi
19674 _LT_EOF
19675     ;;
19676   esac
19677
19678
19679 ltmain=$ac_aux_dir/ltmain.sh
19680
19681
19682   # We use sed instead of cat because bash on DJGPP gets confused if
19683   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19684   # text mode, it properly converts lines to CR/LF.  This bash problem
19685   # is reportedly fixed, but why not run on old versions too?
19686   sed '$q' "$ltmain" >> "$cfgfile" \
19687      || (rm -f "$cfgfile"; exit 1)
19688
19689    mv -f "$cfgfile" "$ofile" ||
19690     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19691   chmod +x "$ofile"
19692
19693
19694     cat <<_LT_EOF >> "$ofile"
19695
19696 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19697
19698 # The linker used to build libraries.
19699 LD=$lt_LD_CXX
19700
19701 # How to create reloadable object files.
19702 reload_flag=$lt_reload_flag_CXX
19703 reload_cmds=$lt_reload_cmds_CXX
19704
19705 # Commands used to build an old-style archive.
19706 old_archive_cmds=$lt_old_archive_cmds_CXX
19707
19708 # A language specific compiler.
19709 CC=$lt_compiler_CXX
19710
19711 # Is the compiler the GNU compiler?
19712 with_gcc=$GCC_CXX
19713
19714 # Compiler flag to turn off builtin functions.
19715 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19716
19717 # Additional compiler flags for building library objects.
19718 pic_flag=$lt_lt_prog_compiler_pic_CXX
19719
19720 # How to pass a linker flag through the compiler.
19721 wl=$lt_lt_prog_compiler_wl_CXX
19722
19723 # Compiler flag to prevent dynamic linking.
19724 link_static_flag=$lt_lt_prog_compiler_static_CXX
19725
19726 # Does compiler simultaneously support -c and -o options?
19727 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19728
19729 # Whether or not to add -lc for building shared libraries.
19730 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19731
19732 # Whether or not to disallow shared libs when runtime libs are static.
19733 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19734
19735 # Compiler flag to allow reflexive dlopens.
19736 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19737
19738 # Compiler flag to generate shared objects directly from archives.
19739 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19740
19741 # Whether the compiler copes with passing no objects directly.
19742 compiler_needs_object=$lt_compiler_needs_object_CXX
19743
19744 # Create an old-style archive from a shared archive.
19745 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19746
19747 # Create a temporary old-style archive to link instead of a shared archive.
19748 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19749
19750 # Commands used to build a shared archive.
19751 archive_cmds=$lt_archive_cmds_CXX
19752 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19753
19754 # Commands used to build a loadable module if different from building
19755 # a shared archive.
19756 module_cmds=$lt_module_cmds_CXX
19757 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19758
19759 # Whether we are building with GNU ld or not.
19760 with_gnu_ld=$lt_with_gnu_ld_CXX
19761
19762 # Flag that allows shared libraries with undefined symbols to be built.
19763 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19764
19765 # Flag that enforces no undefined symbols.
19766 no_undefined_flag=$lt_no_undefined_flag_CXX
19767
19768 # Flag to hardcode \$libdir into a binary during linking.
19769 # This must work even if \$libdir does not exist
19770 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19771
19772 # Whether we need a single "-rpath" flag with a separated argument.
19773 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19774
19775 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19776 # DIR into the resulting binary.
19777 hardcode_direct=$hardcode_direct_CXX
19778
19779 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19780 # DIR into the resulting binary and the resulting library dependency is
19781 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19782 # library is relocated.
19783 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19784
19785 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19786 # into the resulting binary.
19787 hardcode_minus_L=$hardcode_minus_L_CXX
19788
19789 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19790 # into the resulting binary.
19791 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19792
19793 # Set to "yes" if building a shared library automatically hardcodes DIR
19794 # into the library and all subsequent libraries and executables linked
19795 # against it.
19796 hardcode_automatic=$hardcode_automatic_CXX
19797
19798 # Set to yes if linker adds runtime paths of dependent libraries
19799 # to runtime path list.
19800 inherit_rpath=$inherit_rpath_CXX
19801
19802 # Whether libtool must link a program against all its dependency libraries.
19803 link_all_deplibs=$link_all_deplibs_CXX
19804
19805 # Set to "yes" if exported symbols are required.
19806 always_export_symbols=$always_export_symbols_CXX
19807
19808 # The commands to list exported symbols.
19809 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19810
19811 # Symbols that should not be listed in the preloaded symbols.
19812 exclude_expsyms=$lt_exclude_expsyms_CXX
19813
19814 # Symbols that must always be exported.
19815 include_expsyms=$lt_include_expsyms_CXX
19816
19817 # Commands necessary for linking programs (against libraries) with templates.
19818 prelink_cmds=$lt_prelink_cmds_CXX
19819
19820 # Commands necessary for finishing linking programs.
19821 postlink_cmds=$lt_postlink_cmds_CXX
19822
19823 # Specify filename containing input files.
19824 file_list_spec=$lt_file_list_spec_CXX
19825
19826 # How to hardcode a shared library path into an executable.
19827 hardcode_action=$hardcode_action_CXX
19828
19829 # The directories searched by this compiler when creating a shared library.
19830 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19831
19832 # Dependencies to place before and after the objects being linked to
19833 # create a shared library.
19834 predep_objects=$lt_predep_objects_CXX
19835 postdep_objects=$lt_postdep_objects_CXX
19836 predeps=$lt_predeps_CXX
19837 postdeps=$lt_postdeps_CXX
19838
19839 # The library search path used internally by the compiler when linking
19840 # a shared library.
19841 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19842
19843 # ### END LIBTOOL TAG CONFIG: CXX
19844 _LT_EOF
19845
19846  ;;
19847
19848   esac
19849 done # for ac_tag
19850
19851
19852 as_fn_exit 0
19853 _ACEOF
19854 ac_clean_files=$ac_clean_files_save
19855
19856 test $ac_write_fail = 0 ||
19857   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19858
19859
19860 # configure is writing to config.log, and then calls config.status.
19861 # config.status does its own redirection, appending to config.log.
19862 # Unfortunately, on DOS this fails, as config.log is still kept open
19863 # by configure, so config.status won't be able to write to it; its
19864 # output is simply discarded.  So we exec the FD to /dev/null,
19865 # effectively closing config.log, so it can be properly (re)opened and
19866 # appended to by config.status.  When coming back to configure, we
19867 # need to make the FD available again.
19868 if test "$no_create" != yes; then
19869   ac_cs_success=:
19870   ac_config_status_args=
19871   test "$silent" = yes &&
19872     ac_config_status_args="$ac_config_status_args --quiet"
19873   exec 5>/dev/null
19874   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19875   exec 5>>config.log
19876   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19877   # would make configure fail if this is the last instruction.
19878   $ac_cs_success || as_fn_exit 1
19879 fi
19880 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19881   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19882 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19883 fi
19884