Add autoconf stuff to git.
[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 if test "$cross_compiling" = yes; then :
4084   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4086 as_fn_error $? "cannot run test program while cross compiling
4087 See \`config.log' for more details" "$LINENO" 5; }
4088 else
4089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h.  */
4091 #include <string.h>
4092                      `grep "define RTAUDIO_VERSION" $srcdir/RtAudio.h`
4093 int
4094 main ()
4095 {
4096 return strcmp(RTAUDIO_VERSION, PACKAGE_VERSION);
4097   ;
4098   return 0;
4099 }
4100 _ACEOF
4101 if ac_fn_c_try_run "$LINENO"; then :
4102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4103 $as_echo "yes" >&6; }
4104 else
4105   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4107 as_fn_error $? "testing RTAUDIO_VERSION==PACKAGE_VERSION failed, check that RtAudio.h defines RTAUDIO_VERSION as \"$PACKAGE_VERSION\" or that the first line of configure.ac has been updated.
4108 See \`config.log' for more details" "$LINENO" 5; }
4109 fi
4110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4111   conftest.$ac_objext conftest.beam conftest.$ac_ext
4112 fi
4113
4114
4115 # Enable some nice automake features if they are available
4116
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4118 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4119     # Check whether --enable-maintainer-mode was given.
4120 if test "${enable_maintainer_mode+set}" = set; then :
4121   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4122 else
4123   USE_MAINTAINER_MODE=no
4124 fi
4125
4126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4127 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4128    if test $USE_MAINTAINER_MODE = yes; then
4129   MAINTAINER_MODE_TRUE=
4130   MAINTAINER_MODE_FALSE='#'
4131 else
4132   MAINTAINER_MODE_TRUE='#'
4133   MAINTAINER_MODE_FALSE=
4134 fi
4135
4136   MAINT=$MAINTAINER_MODE_TRUE
4137
4138
4139 # Check whether --enable-silent-rules was given.
4140 if test "${enable_silent_rules+set}" = set; then :
4141   enableval=$enable_silent_rules;
4142 fi
4143
4144 case $enable_silent_rules in # (((
4145   yes) AM_DEFAULT_VERBOSITY=0;;
4146    no) AM_DEFAULT_VERBOSITY=1;;
4147     *) AM_DEFAULT_VERBOSITY=0;;
4148 esac
4149 am_make=${MAKE-make}
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4151 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4152 if ${am_cv_make_support_nested_variables+:} false; then :
4153   $as_echo_n "(cached) " >&6
4154 else
4155   if $as_echo 'TRUE=$(BAR$(V))
4156 BAR0=false
4157 BAR1=true
4158 V=1
4159 am__doit:
4160         @$(TRUE)
4161 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4162   am_cv_make_support_nested_variables=yes
4163 else
4164   am_cv_make_support_nested_variables=no
4165 fi
4166 fi
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4168 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4169 if test $am_cv_make_support_nested_variables = yes; then
4170     AM_V='$(V)'
4171   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4172 else
4173   AM_V=$AM_DEFAULT_VERBOSITY
4174   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4175 fi
4176 AM_BACKSLASH='\'
4177
4178
4179 # Fill GXX with something before test.
4180 GXX="no"
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4193         if test -n "$ac_tool_prefix"; then
4194   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4195 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4199   $as_echo_n "(cached) " >&6
4200 else
4201   case $PKG_CONFIG in
4202   [\\/]* | ?:[\\/]*)
4203   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4204   ;;
4205   *)
4206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211     for ac_exec_ext in '' $ac_executable_extensions; do
4212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218   done
4219 IFS=$as_save_IFS
4220
4221   ;;
4222 esac
4223 fi
4224 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4225 if test -n "$PKG_CONFIG"; then
4226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4227 $as_echo "$PKG_CONFIG" >&6; }
4228 else
4229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230 $as_echo "no" >&6; }
4231 fi
4232
4233
4234 fi
4235 if test -z "$ac_cv_path_PKG_CONFIG"; then
4236   ac_pt_PKG_CONFIG=$PKG_CONFIG
4237   # Extract the first word of "pkg-config", so it can be a program name with args.
4238 set dummy pkg-config; ac_word=$2
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4240 $as_echo_n "checking for $ac_word... " >&6; }
4241 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4242   $as_echo_n "(cached) " >&6
4243 else
4244   case $ac_pt_PKG_CONFIG in
4245   [\\/]* | ?:[\\/]*)
4246   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4247   ;;
4248   *)
4249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4251 do
4252   IFS=$as_save_IFS
4253   test -z "$as_dir" && as_dir=.
4254     for ac_exec_ext in '' $ac_executable_extensions; do
4255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4256     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258     break 2
4259   fi
4260 done
4261   done
4262 IFS=$as_save_IFS
4263
4264   ;;
4265 esac
4266 fi
4267 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4268 if test -n "$ac_pt_PKG_CONFIG"; then
4269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4270 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4271 else
4272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4274 fi
4275
4276   if test "x$ac_pt_PKG_CONFIG" = x; then
4277     PKG_CONFIG=""
4278   else
4279     case $cross_compiling:$ac_tool_warned in
4280 yes:)
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4283 ac_tool_warned=yes ;;
4284 esac
4285     PKG_CONFIG=$ac_pt_PKG_CONFIG
4286   fi
4287 else
4288   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4289 fi
4290
4291 fi
4292 if test -n "$PKG_CONFIG"; then
4293         _pkg_min_version=0.9.0
4294         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4295 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4296         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4297                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4298 $as_echo "yes" >&6; }
4299         else
4300                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 $as_echo "no" >&6; }
4302                 PKG_CONFIG=""
4303         fi
4304 fi
4305
4306
4307
4308 # Check for debug
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile debug version" >&5
4310 $as_echo_n "checking whether to compile debug version... " >&6; }
4311 # Check whether --enable-debug was given.
4312 if test "${enable_debug+set}" = set; then :
4313   enableval=$enable_debug; : ${CXXFLAGS="-g -O0"}; $as_echo "#define __RTAUDIO_DEBUG__ 1" >>confdefs.h
4314
4315 else
4316   : ${CXXFLAGS="-O3"}
4317 fi
4318
4319
4320 # Checks for programs.
4321 ac_ext=cpp
4322 ac_cpp='$CXXCPP $CPPFLAGS'
4323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4326 if test -z "$CXX"; then
4327   if test -n "$CCC"; then
4328     CXX=$CCC
4329   else
4330     if test -n "$ac_tool_prefix"; then
4331   for ac_prog in g++ CC c++ cxx
4332   do
4333     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if ${ac_cv_prog_CXX+:} false; then :
4338   $as_echo_n "(cached) " >&6
4339 else
4340   if test -n "$CXX"; then
4341   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4345 do
4346   IFS=$as_save_IFS
4347   test -z "$as_dir" && as_dir=.
4348     for ac_exec_ext in '' $ac_executable_extensions; do
4349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352     break 2
4353   fi
4354 done
4355   done
4356 IFS=$as_save_IFS
4357
4358 fi
4359 fi
4360 CXX=$ac_cv_prog_CXX
4361 if test -n "$CXX"; then
4362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4363 $as_echo "$CXX" >&6; }
4364 else
4365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4367 fi
4368
4369
4370     test -n "$CXX" && break
4371   done
4372 fi
4373 if test -z "$CXX"; then
4374   ac_ct_CXX=$CXX
4375   for ac_prog in g++ CC c++ cxx
4376 do
4377   # Extract the first word of "$ac_prog", so it can be a program name with args.
4378 set dummy $ac_prog; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4382   $as_echo_n "(cached) " >&6
4383 else
4384   if test -n "$ac_ct_CXX"; then
4385   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4389 do
4390   IFS=$as_save_IFS
4391   test -z "$as_dir" && as_dir=.
4392     for ac_exec_ext in '' $ac_executable_extensions; do
4393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4394     ac_cv_prog_ac_ct_CXX="$ac_prog"
4395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396     break 2
4397   fi
4398 done
4399   done
4400 IFS=$as_save_IFS
4401
4402 fi
4403 fi
4404 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4405 if test -n "$ac_ct_CXX"; then
4406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4407 $as_echo "$ac_ct_CXX" >&6; }
4408 else
4409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4411 fi
4412
4413
4414   test -n "$ac_ct_CXX" && break
4415 done
4416
4417   if test "x$ac_ct_CXX" = x; then
4418     CXX="g++"
4419   else
4420     case $cross_compiling:$ac_tool_warned in
4421 yes:)
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4424 ac_tool_warned=yes ;;
4425 esac
4426     CXX=$ac_ct_CXX
4427   fi
4428 fi
4429
4430   fi
4431 fi
4432 # Provide some information about the compiler.
4433 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4434 set X $ac_compile
4435 ac_compiler=$2
4436 for ac_option in --version -v -V -qversion; do
4437   { { ac_try="$ac_compiler $ac_option >&5"
4438 case "(($ac_try" in
4439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440   *) ac_try_echo=$ac_try;;
4441 esac
4442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4443 $as_echo "$ac_try_echo"; } >&5
4444   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4445   ac_status=$?
4446   if test -s conftest.err; then
4447     sed '10a\
4448 ... rest of stderr output deleted ...
4449          10q' conftest.err >conftest.er1
4450     cat conftest.er1 >&5
4451   fi
4452   rm -f conftest.er1 conftest.err
4453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4454   test $ac_status = 0; }
4455 done
4456
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4458 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4459 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4460   $as_echo_n "(cached) " >&6
4461 else
4462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h.  */
4464
4465 int
4466 main ()
4467 {
4468 #ifndef __GNUC__
4469        choke me
4470 #endif
4471
4472   ;
4473   return 0;
4474 }
4475 _ACEOF
4476 if ac_fn_cxx_try_compile "$LINENO"; then :
4477   ac_compiler_gnu=yes
4478 else
4479   ac_compiler_gnu=no
4480 fi
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4483
4484 fi
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4486 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4487 if test $ac_compiler_gnu = yes; then
4488   GXX=yes
4489 else
4490   GXX=
4491 fi
4492 ac_test_CXXFLAGS=${CXXFLAGS+set}
4493 ac_save_CXXFLAGS=$CXXFLAGS
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4495 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4496 if ${ac_cv_prog_cxx_g+:} false; then :
4497   $as_echo_n "(cached) " >&6
4498 else
4499   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4500    ac_cxx_werror_flag=yes
4501    ac_cv_prog_cxx_g=no
4502    CXXFLAGS="-g"
4503    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h.  */
4505
4506 int
4507 main ()
4508 {
4509
4510   ;
4511   return 0;
4512 }
4513 _ACEOF
4514 if ac_fn_cxx_try_compile "$LINENO"; then :
4515   ac_cv_prog_cxx_g=yes
4516 else
4517   CXXFLAGS=""
4518       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h.  */
4520
4521 int
4522 main ()
4523 {
4524
4525   ;
4526   return 0;
4527 }
4528 _ACEOF
4529 if ac_fn_cxx_try_compile "$LINENO"; then :
4530
4531 else
4532   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4533          CXXFLAGS="-g"
4534          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h.  */
4536
4537 int
4538 main ()
4539 {
4540
4541   ;
4542   return 0;
4543 }
4544 _ACEOF
4545 if ac_fn_cxx_try_compile "$LINENO"; then :
4546   ac_cv_prog_cxx_g=yes
4547 fi
4548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 fi
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 fi
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4556 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4557 if test "$ac_test_CXXFLAGS" = set; then
4558   CXXFLAGS=$ac_save_CXXFLAGS
4559 elif test $ac_cv_prog_cxx_g = yes; then
4560   if test "$GXX" = yes; then
4561     CXXFLAGS="-g -O2"
4562   else
4563     CXXFLAGS="-g"
4564   fi
4565 else
4566   if test "$GXX" = yes; then
4567     CXXFLAGS="-O2"
4568   else
4569     CXXFLAGS=
4570   fi
4571 fi
4572 ac_ext=c
4573 ac_cpp='$CPP $CPPFLAGS'
4574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4577
4578 depcc="$CXX"  am_compiler_list=
4579
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4581 $as_echo_n "checking dependency style of $depcc... " >&6; }
4582 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4583   $as_echo_n "(cached) " >&6
4584 else
4585   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4586   # We make a subdir and do the tests there.  Otherwise we can end up
4587   # making bogus files that we don't know about and never remove.  For
4588   # instance it was reported that on HP-UX the gcc test will end up
4589   # making a dummy file named 'D' -- because '-MD' means "put the output
4590   # in D".
4591   rm -rf conftest.dir
4592   mkdir conftest.dir
4593   # Copy depcomp to subdir because otherwise we won't find it if we're
4594   # using a relative directory.
4595   cp "$am_depcomp" conftest.dir
4596   cd conftest.dir
4597   # We will build objects and dependencies in a subdirectory because
4598   # it helps to detect inapplicable dependency modes.  For instance
4599   # both Tru64's cc and ICC support -MD to output dependencies as a
4600   # side effect of compilation, but ICC will put the dependencies in
4601   # the current directory while Tru64 will put them in the object
4602   # directory.
4603   mkdir sub
4604
4605   am_cv_CXX_dependencies_compiler_type=none
4606   if test "$am_compiler_list" = ""; then
4607      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4608   fi
4609   am__universal=false
4610   case " $depcc " in #(
4611      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4612      esac
4613
4614   for depmode in $am_compiler_list; do
4615     # Setup a source with many dependencies, because some compilers
4616     # like to wrap large dependency lists on column 80 (with \), and
4617     # we should not choose a depcomp mode which is confused by this.
4618     #
4619     # We need to recreate these files for each test, as the compiler may
4620     # overwrite some of them when testing with obscure command lines.
4621     # This happens at least with the AIX C compiler.
4622     : > sub/conftest.c
4623     for i in 1 2 3 4 5 6; do
4624       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4625       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4626       # Solaris 10 /bin/sh.
4627       echo '/* dummy */' > sub/conftst$i.h
4628     done
4629     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4630
4631     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4632     # mode.  It turns out that the SunPro C++ compiler does not properly
4633     # handle '-M -o', and we need to detect this.  Also, some Intel
4634     # versions had trouble with output in subdirs.
4635     am__obj=sub/conftest.${OBJEXT-o}
4636     am__minus_obj="-o $am__obj"
4637     case $depmode in
4638     gcc)
4639       # This depmode causes a compiler race in universal mode.
4640       test "$am__universal" = false || continue
4641       ;;
4642     nosideeffect)
4643       # After this tag, mechanisms are not by side-effect, so they'll
4644       # only be used when explicitly requested.
4645       if test "x$enable_dependency_tracking" = xyes; then
4646         continue
4647       else
4648         break
4649       fi
4650       ;;
4651     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4652       # This compiler won't grok '-c -o', but also, the minuso test has
4653       # not run yet.  These depmodes are late enough in the game, and
4654       # so weak that their functioning should not be impacted.
4655       am__obj=conftest.${OBJEXT-o}
4656       am__minus_obj=
4657       ;;
4658     none) break ;;
4659     esac
4660     if depmode=$depmode \
4661        source=sub/conftest.c object=$am__obj \
4662        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4663        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4664          >/dev/null 2>conftest.err &&
4665        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4666        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4667        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4668        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4669       # icc doesn't choke on unknown options, it will just issue warnings
4670       # or remarks (even with -Werror).  So we grep stderr for any message
4671       # that says an option was ignored or not supported.
4672       # When given -MP, icc 7.0 and 7.1 complain thusly:
4673       #   icc: Command line warning: ignoring option '-M'; no argument required
4674       # The diagnosis changed in icc 8.0:
4675       #   icc: Command line remark: option '-MP' not supported
4676       if (grep 'ignoring option' conftest.err ||
4677           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4678         am_cv_CXX_dependencies_compiler_type=$depmode
4679         break
4680       fi
4681     fi
4682   done
4683
4684   cd ..
4685   rm -rf conftest.dir
4686 else
4687   am_cv_CXX_dependencies_compiler_type=none
4688 fi
4689
4690 fi
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4692 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4693 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4694
4695  if
4696   test "x$enable_dependency_tracking" != xno \
4697   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4698   am__fastdepCXX_TRUE=
4699   am__fastdepCXX_FALSE='#'
4700 else
4701   am__fastdepCXX_TRUE='#'
4702   am__fastdepCXX_FALSE=
4703 fi
4704
4705
4706 if test -n "$ac_tool_prefix"; then
4707   for ac_prog in ar lib "link -lib"
4708   do
4709     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if ${ac_cv_prog_AR+:} false; then :
4714   $as_echo_n "(cached) " >&6
4715 else
4716   if test -n "$AR"; then
4717   ac_cv_prog_AR="$AR" # Let the user override the test.
4718 else
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4721 do
4722   IFS=$as_save_IFS
4723   test -z "$as_dir" && as_dir=.
4724     for ac_exec_ext in '' $ac_executable_extensions; do
4725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4728     break 2
4729   fi
4730 done
4731   done
4732 IFS=$as_save_IFS
4733
4734 fi
4735 fi
4736 AR=$ac_cv_prog_AR
4737 if test -n "$AR"; then
4738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4739 $as_echo "$AR" >&6; }
4740 else
4741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4743 fi
4744
4745
4746     test -n "$AR" && break
4747   done
4748 fi
4749 if test -z "$AR"; then
4750   ac_ct_AR=$AR
4751   for ac_prog in ar lib "link -lib"
4752 do
4753   # Extract the first word of "$ac_prog", so it can be a program name with args.
4754 set dummy $ac_prog; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4758   $as_echo_n "(cached) " >&6
4759 else
4760   if test -n "$ac_ct_AR"; then
4761   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766   IFS=$as_save_IFS
4767   test -z "$as_dir" && as_dir=.
4768     for ac_exec_ext in '' $ac_executable_extensions; do
4769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770     ac_cv_prog_ac_ct_AR="$ac_prog"
4771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772     break 2
4773   fi
4774 done
4775   done
4776 IFS=$as_save_IFS
4777
4778 fi
4779 fi
4780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4781 if test -n "$ac_ct_AR"; then
4782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4783 $as_echo "$ac_ct_AR" >&6; }
4784 else
4785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4787 fi
4788
4789
4790   test -n "$ac_ct_AR" && break
4791 done
4792
4793   if test "x$ac_ct_AR" = x; then
4794     AR="false"
4795   else
4796     case $cross_compiling:$ac_tool_warned in
4797 yes:)
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4800 ac_tool_warned=yes ;;
4801 esac
4802     AR=$ac_ct_AR
4803   fi
4804 fi
4805
4806 : ${AR=ar}
4807
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4809 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4810 if ${am_cv_ar_interface+:} false; then :
4811   $as_echo_n "(cached) " >&6
4812 else
4813   ac_ext=c
4814 ac_cpp='$CPP $CPPFLAGS'
4815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4818
4819    am_cv_ar_interface=ar
4820    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h.  */
4822 int some_variable = 0;
4823 _ACEOF
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4826       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4827   (eval $am_ar_try) 2>&5
4828   ac_status=$?
4829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4830   test $ac_status = 0; }
4831       if test "$ac_status" -eq 0; then
4832         am_cv_ar_interface=ar
4833       else
4834         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4835         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4836   (eval $am_ar_try) 2>&5
4837   ac_status=$?
4838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4839   test $ac_status = 0; }
4840         if test "$ac_status" -eq 0; then
4841           am_cv_ar_interface=lib
4842         else
4843           am_cv_ar_interface=unknown
4844         fi
4845       fi
4846       rm -f conftest.lib libconftest.a
4847
4848 fi
4849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850    ac_ext=c
4851 ac_cpp='$CPP $CPPFLAGS'
4852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855
4856 fi
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4858 $as_echo "$am_cv_ar_interface" >&6; }
4859
4860 case $am_cv_ar_interface in
4861 ar)
4862   ;;
4863 lib)
4864   # Microsoft lib, so override with the ar-lib wrapper script.
4865   # FIXME: It is wrong to rewrite AR.
4866   # But if we don't then we get into trouble of one sort or another.
4867   # A longer-term fix would be to have automake use am__AR in this case,
4868   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4869   # similar.
4870   AR="$am_aux_dir/ar-lib $AR"
4871   ;;
4872 unknown)
4873   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4874   ;;
4875 esac
4876
4877 # Extract the first word of "ar", so it can be a program name with args.
4878 set dummy ar; ac_word=$2
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 $as_echo_n "checking for $ac_word... " >&6; }
4881 if ${ac_cv_path_AR+:} false; then :
4882   $as_echo_n "(cached) " >&6
4883 else
4884   case $AR in
4885   [\\/]* | ?:[\\/]*)
4886   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4887   ;;
4888   *)
4889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4891 do
4892   IFS=$as_save_IFS
4893   test -z "$as_dir" && as_dir=.
4894     for ac_exec_ext in '' $ac_executable_extensions; do
4895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898     break 2
4899   fi
4900 done
4901   done
4902 IFS=$as_save_IFS
4903
4904   test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
4905   ;;
4906 esac
4907 fi
4908 AR=$ac_cv_path_AR
4909 if test -n "$AR"; then
4910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4911 $as_echo "$AR" >&6; }
4912 else
4913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4915 fi
4916
4917
4918 if [ $AR = "no" ] ; then
4919     as_fn_error $? "\"Could not find ar - needed to create a library\"" "$LINENO" 5;
4920 fi
4921
4922 # Initialize libtool
4923 case `pwd` in
4924   *\ * | *\     *)
4925     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4926 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4927 esac
4928
4929
4930
4931 macro_version='2.4.6'
4932 macro_revision='2.4.6'
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946 ltmain=$ac_aux_dir/ltmain.sh
4947
4948 # Make sure we can run config.sub.
4949 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4950   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4951
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4953 $as_echo_n "checking build system type... " >&6; }
4954 if ${ac_cv_build+:} false; then :
4955   $as_echo_n "(cached) " >&6
4956 else
4957   ac_build_alias=$build_alias
4958 test "x$ac_build_alias" = x &&
4959   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4960 test "x$ac_build_alias" = x &&
4961   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4962 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4963   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4964
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4967 $as_echo "$ac_cv_build" >&6; }
4968 case $ac_cv_build in
4969 *-*-*) ;;
4970 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4971 esac
4972 build=$ac_cv_build
4973 ac_save_IFS=$IFS; IFS='-'
4974 set x $ac_cv_build
4975 shift
4976 build_cpu=$1
4977 build_vendor=$2
4978 shift; shift
4979 # Remember, the first character of IFS is used to create $*,
4980 # except with old shells:
4981 build_os=$*
4982 IFS=$ac_save_IFS
4983 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4984
4985
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4987 $as_echo_n "checking host system type... " >&6; }
4988 if ${ac_cv_host+:} false; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   if test "x$host_alias" = x; then
4992   ac_cv_host=$ac_cv_build
4993 else
4994   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4995     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4996 fi
4997
4998 fi
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5000 $as_echo "$ac_cv_host" >&6; }
5001 case $ac_cv_host in
5002 *-*-*) ;;
5003 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5004 esac
5005 host=$ac_cv_host
5006 ac_save_IFS=$IFS; IFS='-'
5007 set x $ac_cv_host
5008 shift
5009 host_cpu=$1
5010 host_vendor=$2
5011 shift; shift
5012 # Remember, the first character of IFS is used to create $*,
5013 # except with old shells:
5014 host_os=$*
5015 IFS=$ac_save_IFS
5016 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5017
5018
5019 # Backslashify metacharacters that are still active within
5020 # double-quoted strings.
5021 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5022
5023 # Same as above, but do not quote variable references.
5024 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5025
5026 # Sed substitution to delay expansion of an escaped shell variable in a
5027 # double_quote_subst'ed string.
5028 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5029
5030 # Sed substitution to delay expansion of an escaped single quote.
5031 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5032
5033 # Sed substitution to avoid accidental globbing in evaled expressions
5034 no_glob_subst='s/\*/\\\*/g'
5035
5036 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5037 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5038 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5039
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5041 $as_echo_n "checking how to print strings... " >&6; }
5042 # Test print first, because it will be a builtin if present.
5043 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5044    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5045   ECHO='print -r --'
5046 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5047   ECHO='printf %s\n'
5048 else
5049   # Use this function as a fallback that always works.
5050   func_fallback_echo ()
5051   {
5052     eval 'cat <<_LTECHO_EOF
5053 $1
5054 _LTECHO_EOF'
5055   }
5056   ECHO='func_fallback_echo'
5057 fi
5058
5059 # func_echo_all arg...
5060 # Invoke $ECHO with all args, space-separated.
5061 func_echo_all ()
5062 {
5063     $ECHO ""
5064 }
5065
5066 case $ECHO in
5067   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5068 $as_echo "printf" >&6; } ;;
5069   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5070 $as_echo "print -r" >&6; } ;;
5071   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5072 $as_echo "cat" >&6; } ;;
5073 esac
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5089 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5090 if ${ac_cv_path_SED+:} false; then :
5091   $as_echo_n "(cached) " >&6
5092 else
5093             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5094      for ac_i in 1 2 3 4 5 6 7; do
5095        ac_script="$ac_script$as_nl$ac_script"
5096      done
5097      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5098      { ac_script=; unset ac_script;}
5099      if test -z "$SED"; then
5100   ac_path_SED_found=false
5101   # Loop through the user's path and test for each of PROGNAME-LIST
5102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH
5104 do
5105   IFS=$as_save_IFS
5106   test -z "$as_dir" && as_dir=.
5107     for ac_prog in sed gsed; do
5108     for ac_exec_ext in '' $ac_executable_extensions; do
5109       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5110       as_fn_executable_p "$ac_path_SED" || continue
5111 # Check for GNU ac_path_SED and select it if it is found.
5112   # Check for GNU $ac_path_SED
5113 case `"$ac_path_SED" --version 2>&1` in
5114 *GNU*)
5115   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5116 *)
5117   ac_count=0
5118   $as_echo_n 0123456789 >"conftest.in"
5119   while :
5120   do
5121     cat "conftest.in" "conftest.in" >"conftest.tmp"
5122     mv "conftest.tmp" "conftest.in"
5123     cp "conftest.in" "conftest.nl"
5124     $as_echo '' >> "conftest.nl"
5125     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5126     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5127     as_fn_arith $ac_count + 1 && ac_count=$as_val
5128     if test $ac_count -gt ${ac_path_SED_max-0}; then
5129       # Best one so far, save it but keep looking for a better one
5130       ac_cv_path_SED="$ac_path_SED"
5131       ac_path_SED_max=$ac_count
5132     fi
5133     # 10*(2^10) chars as input seems more than enough
5134     test $ac_count -gt 10 && break
5135   done
5136   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5137 esac
5138
5139       $ac_path_SED_found && break 3
5140     done
5141   done
5142   done
5143 IFS=$as_save_IFS
5144   if test -z "$ac_cv_path_SED"; then
5145     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5146   fi
5147 else
5148   ac_cv_path_SED=$SED
5149 fi
5150
5151 fi
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5153 $as_echo "$ac_cv_path_SED" >&6; }
5154  SED="$ac_cv_path_SED"
5155   rm -f conftest.sed
5156
5157 test -z "$SED" && SED=sed
5158 Xsed="$SED -e 1s/^X//"
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5171 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5172 if ${ac_cv_path_GREP+:} false; then :
5173   $as_echo_n "(cached) " >&6
5174 else
5175   if test -z "$GREP"; then
5176   ac_path_GREP_found=false
5177   # Loop through the user's path and test for each of PROGNAME-LIST
5178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5180 do
5181   IFS=$as_save_IFS
5182   test -z "$as_dir" && as_dir=.
5183     for ac_prog in grep ggrep; do
5184     for ac_exec_ext in '' $ac_executable_extensions; do
5185       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5186       as_fn_executable_p "$ac_path_GREP" || continue
5187 # Check for GNU ac_path_GREP and select it if it is found.
5188   # Check for GNU $ac_path_GREP
5189 case `"$ac_path_GREP" --version 2>&1` in
5190 *GNU*)
5191   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5192 *)
5193   ac_count=0
5194   $as_echo_n 0123456789 >"conftest.in"
5195   while :
5196   do
5197     cat "conftest.in" "conftest.in" >"conftest.tmp"
5198     mv "conftest.tmp" "conftest.in"
5199     cp "conftest.in" "conftest.nl"
5200     $as_echo 'GREP' >> "conftest.nl"
5201     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5202     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5203     as_fn_arith $ac_count + 1 && ac_count=$as_val
5204     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5205       # Best one so far, save it but keep looking for a better one
5206       ac_cv_path_GREP="$ac_path_GREP"
5207       ac_path_GREP_max=$ac_count
5208     fi
5209     # 10*(2^10) chars as input seems more than enough
5210     test $ac_count -gt 10 && break
5211   done
5212   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5213 esac
5214
5215       $ac_path_GREP_found && break 3
5216     done
5217   done
5218   done
5219 IFS=$as_save_IFS
5220   if test -z "$ac_cv_path_GREP"; then
5221     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5222   fi
5223 else
5224   ac_cv_path_GREP=$GREP
5225 fi
5226
5227 fi
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5229 $as_echo "$ac_cv_path_GREP" >&6; }
5230  GREP="$ac_cv_path_GREP"
5231
5232
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5234 $as_echo_n "checking for egrep... " >&6; }
5235 if ${ac_cv_path_EGREP+:} false; then :
5236   $as_echo_n "(cached) " >&6
5237 else
5238   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5239    then ac_cv_path_EGREP="$GREP -E"
5240    else
5241      if test -z "$EGREP"; then
5242   ac_path_EGREP_found=false
5243   # Loop through the user's path and test for each of PROGNAME-LIST
5244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5246 do
5247   IFS=$as_save_IFS
5248   test -z "$as_dir" && as_dir=.
5249     for ac_prog in egrep; do
5250     for ac_exec_ext in '' $ac_executable_extensions; do
5251       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5252       as_fn_executable_p "$ac_path_EGREP" || continue
5253 # Check for GNU ac_path_EGREP and select it if it is found.
5254   # Check for GNU $ac_path_EGREP
5255 case `"$ac_path_EGREP" --version 2>&1` in
5256 *GNU*)
5257   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5258 *)
5259   ac_count=0
5260   $as_echo_n 0123456789 >"conftest.in"
5261   while :
5262   do
5263     cat "conftest.in" "conftest.in" >"conftest.tmp"
5264     mv "conftest.tmp" "conftest.in"
5265     cp "conftest.in" "conftest.nl"
5266     $as_echo 'EGREP' >> "conftest.nl"
5267     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5268     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5269     as_fn_arith $ac_count + 1 && ac_count=$as_val
5270     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5271       # Best one so far, save it but keep looking for a better one
5272       ac_cv_path_EGREP="$ac_path_EGREP"
5273       ac_path_EGREP_max=$ac_count
5274     fi
5275     # 10*(2^10) chars as input seems more than enough
5276     test $ac_count -gt 10 && break
5277   done
5278   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5279 esac
5280
5281       $ac_path_EGREP_found && break 3
5282     done
5283   done
5284   done
5285 IFS=$as_save_IFS
5286   if test -z "$ac_cv_path_EGREP"; then
5287     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5288   fi
5289 else
5290   ac_cv_path_EGREP=$EGREP
5291 fi
5292
5293    fi
5294 fi
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5296 $as_echo "$ac_cv_path_EGREP" >&6; }
5297  EGREP="$ac_cv_path_EGREP"
5298
5299
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5301 $as_echo_n "checking for fgrep... " >&6; }
5302 if ${ac_cv_path_FGREP+:} false; then :
5303   $as_echo_n "(cached) " >&6
5304 else
5305   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5306    then ac_cv_path_FGREP="$GREP -F"
5307    else
5308      if test -z "$FGREP"; then
5309   ac_path_FGREP_found=false
5310   # Loop through the user's path and test for each of PROGNAME-LIST
5311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5313 do
5314   IFS=$as_save_IFS
5315   test -z "$as_dir" && as_dir=.
5316     for ac_prog in fgrep; do
5317     for ac_exec_ext in '' $ac_executable_extensions; do
5318       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5319       as_fn_executable_p "$ac_path_FGREP" || continue
5320 # Check for GNU ac_path_FGREP and select it if it is found.
5321   # Check for GNU $ac_path_FGREP
5322 case `"$ac_path_FGREP" --version 2>&1` in
5323 *GNU*)
5324   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5325 *)
5326   ac_count=0
5327   $as_echo_n 0123456789 >"conftest.in"
5328   while :
5329   do
5330     cat "conftest.in" "conftest.in" >"conftest.tmp"
5331     mv "conftest.tmp" "conftest.in"
5332     cp "conftest.in" "conftest.nl"
5333     $as_echo 'FGREP' >> "conftest.nl"
5334     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5335     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5336     as_fn_arith $ac_count + 1 && ac_count=$as_val
5337     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5338       # Best one so far, save it but keep looking for a better one
5339       ac_cv_path_FGREP="$ac_path_FGREP"
5340       ac_path_FGREP_max=$ac_count
5341     fi
5342     # 10*(2^10) chars as input seems more than enough
5343     test $ac_count -gt 10 && break
5344   done
5345   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5346 esac
5347
5348       $ac_path_FGREP_found && break 3
5349     done
5350   done
5351   done
5352 IFS=$as_save_IFS
5353   if test -z "$ac_cv_path_FGREP"; then
5354     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5355   fi
5356 else
5357   ac_cv_path_FGREP=$FGREP
5358 fi
5359
5360    fi
5361 fi
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5363 $as_echo "$ac_cv_path_FGREP" >&6; }
5364  FGREP="$ac_cv_path_FGREP"
5365
5366
5367 test -z "$GREP" && GREP=grep
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387 # Check whether --with-gnu-ld was given.
5388 if test "${with_gnu_ld+set}" = set; then :
5389   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5390 else
5391   with_gnu_ld=no
5392 fi
5393
5394 ac_prog=ld
5395 if test yes = "$GCC"; then
5396   # Check if gcc -print-prog-name=ld gives a path.
5397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5398 $as_echo_n "checking for ld used by $CC... " >&6; }
5399   case $host in
5400   *-*-mingw*)
5401     # gcc leaves a trailing carriage return, which upsets mingw
5402     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5403   *)
5404     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5405   esac
5406   case $ac_prog in
5407     # Accept absolute paths.
5408     [\\/]* | ?:[\\/]*)
5409       re_direlt='/[^/][^/]*/\.\./'
5410       # Canonicalize the pathname of ld
5411       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5412       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5413         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5414       done
5415       test -z "$LD" && LD=$ac_prog
5416       ;;
5417   "")
5418     # If it fails, then pretend we aren't using GCC.
5419     ac_prog=ld
5420     ;;
5421   *)
5422     # If it is relative, then search for the first ld in PATH.
5423     with_gnu_ld=unknown
5424     ;;
5425   esac
5426 elif test yes = "$with_gnu_ld"; then
5427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5428 $as_echo_n "checking for GNU ld... " >&6; }
5429 else
5430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5431 $as_echo_n "checking for non-GNU ld... " >&6; }
5432 fi
5433 if ${lt_cv_path_LD+:} false; then :
5434   $as_echo_n "(cached) " >&6
5435 else
5436   if test -z "$LD"; then
5437   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5438   for ac_dir in $PATH; do
5439     IFS=$lt_save_ifs
5440     test -z "$ac_dir" && ac_dir=.
5441     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5442       lt_cv_path_LD=$ac_dir/$ac_prog
5443       # Check to see if the program is GNU ld.  I'd rather use --version,
5444       # but apparently some variants of GNU ld only accept -v.
5445       # Break only if it was the GNU/non-GNU ld that we prefer.
5446       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5447       *GNU* | *'with BFD'*)
5448         test no != "$with_gnu_ld" && break
5449         ;;
5450       *)
5451         test yes != "$with_gnu_ld" && break
5452         ;;
5453       esac
5454     fi
5455   done
5456   IFS=$lt_save_ifs
5457 else
5458   lt_cv_path_LD=$LD # Let the user override the test with a path.
5459 fi
5460 fi
5461
5462 LD=$lt_cv_path_LD
5463 if test -n "$LD"; then
5464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5465 $as_echo "$LD" >&6; }
5466 else
5467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5469 fi
5470 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5472 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5473 if ${lt_cv_prog_gnu_ld+:} false; then :
5474   $as_echo_n "(cached) " >&6
5475 else
5476   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5477 case `$LD -v 2>&1 </dev/null` in
5478 *GNU* | *'with BFD'*)
5479   lt_cv_prog_gnu_ld=yes
5480   ;;
5481 *)
5482   lt_cv_prog_gnu_ld=no
5483   ;;
5484 esac
5485 fi
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5487 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5488 with_gnu_ld=$lt_cv_prog_gnu_ld
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5499 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5500 if ${lt_cv_path_NM+:} false; then :
5501   $as_echo_n "(cached) " >&6
5502 else
5503   if test -n "$NM"; then
5504   # Let the user override the test.
5505   lt_cv_path_NM=$NM
5506 else
5507   lt_nm_to_check=${ac_tool_prefix}nm
5508   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5509     lt_nm_to_check="$lt_nm_to_check nm"
5510   fi
5511   for lt_tmp_nm in $lt_nm_to_check; do
5512     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5513     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5514       IFS=$lt_save_ifs
5515       test -z "$ac_dir" && ac_dir=.
5516       tmp_nm=$ac_dir/$lt_tmp_nm
5517       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5518         # Check to see if the nm accepts a BSD-compat flag.
5519         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5520         #   nm: unknown option "B" ignored
5521         # Tru64's nm complains that /dev/null is an invalid object file
5522         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5523         case $build_os in
5524         mingw*) lt_bad_file=conftest.nm/nofile ;;
5525         *) lt_bad_file=/dev/null ;;
5526         esac
5527         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5528         *$lt_bad_file* | *'Invalid file or object type'*)
5529           lt_cv_path_NM="$tmp_nm -B"
5530           break 2
5531           ;;
5532         *)
5533           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5534           */dev/null*)
5535             lt_cv_path_NM="$tmp_nm -p"
5536             break 2
5537             ;;
5538           *)
5539             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5540             continue # so that we can try to find one that supports BSD flags
5541             ;;
5542           esac
5543           ;;
5544         esac
5545       fi
5546     done
5547     IFS=$lt_save_ifs
5548   done
5549   : ${lt_cv_path_NM=no}
5550 fi
5551 fi
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5553 $as_echo "$lt_cv_path_NM" >&6; }
5554 if test no != "$lt_cv_path_NM"; then
5555   NM=$lt_cv_path_NM
5556 else
5557   # Didn't find any BSD compatible name lister, look for dumpbin.
5558   if test -n "$DUMPBIN"; then :
5559     # Let the user override the test.
5560   else
5561     if test -n "$ac_tool_prefix"; then
5562   for ac_prog in dumpbin "link -dump"
5563   do
5564     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_DUMPBIN+:} false; then :
5569   $as_echo_n "(cached) " >&6
5570 else
5571   if test -n "$DUMPBIN"; then
5572   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577   IFS=$as_save_IFS
5578   test -z "$as_dir" && as_dir=.
5579     for ac_exec_ext in '' $ac_executable_extensions; do
5580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583     break 2
5584   fi
5585 done
5586   done
5587 IFS=$as_save_IFS
5588
5589 fi
5590 fi
5591 DUMPBIN=$ac_cv_prog_DUMPBIN
5592 if test -n "$DUMPBIN"; then
5593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5594 $as_echo "$DUMPBIN" >&6; }
5595 else
5596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5598 fi
5599
5600
5601     test -n "$DUMPBIN" && break
5602   done
5603 fi
5604 if test -z "$DUMPBIN"; then
5605   ac_ct_DUMPBIN=$DUMPBIN
5606   for ac_prog in dumpbin "link -dump"
5607 do
5608   # Extract the first word of "$ac_prog", so it can be a program name with args.
5609 set dummy $ac_prog; ac_word=$2
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5613   $as_echo_n "(cached) " >&6
5614 else
5615   if test -n "$ac_ct_DUMPBIN"; then
5616   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5617 else
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH
5620 do
5621   IFS=$as_save_IFS
5622   test -z "$as_dir" && as_dir=.
5623     for ac_exec_ext in '' $ac_executable_extensions; do
5624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627     break 2
5628   fi
5629 done
5630   done
5631 IFS=$as_save_IFS
5632
5633 fi
5634 fi
5635 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5636 if test -n "$ac_ct_DUMPBIN"; then
5637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5638 $as_echo "$ac_ct_DUMPBIN" >&6; }
5639 else
5640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5642 fi
5643
5644
5645   test -n "$ac_ct_DUMPBIN" && break
5646 done
5647
5648   if test "x$ac_ct_DUMPBIN" = x; then
5649     DUMPBIN=":"
5650   else
5651     case $cross_compiling:$ac_tool_warned in
5652 yes:)
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5655 ac_tool_warned=yes ;;
5656 esac
5657     DUMPBIN=$ac_ct_DUMPBIN
5658   fi
5659 fi
5660
5661     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5662     *COFF*)
5663       DUMPBIN="$DUMPBIN -symbols -headers"
5664       ;;
5665     *)
5666       DUMPBIN=:
5667       ;;
5668     esac
5669   fi
5670
5671   if test : != "$DUMPBIN"; then
5672     NM=$DUMPBIN
5673   fi
5674 fi
5675 test -z "$NM" && NM=nm
5676
5677
5678
5679
5680
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5683 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5684 if ${lt_cv_nm_interface+:} false; then :
5685   $as_echo_n "(cached) " >&6
5686 else
5687   lt_cv_nm_interface="BSD nm"
5688   echo "int some_variable = 0;" > conftest.$ac_ext
5689   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5690   (eval "$ac_compile" 2>conftest.err)
5691   cat conftest.err >&5
5692   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5693   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5694   cat conftest.err >&5
5695   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5696   cat conftest.out >&5
5697   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5698     lt_cv_nm_interface="MS dumpbin"
5699   fi
5700   rm -f conftest*
5701 fi
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5703 $as_echo "$lt_cv_nm_interface" >&6; }
5704
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5706 $as_echo_n "checking whether ln -s works... " >&6; }
5707 LN_S=$as_ln_s
5708 if test "$LN_S" = "ln -s"; then
5709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5710 $as_echo "yes" >&6; }
5711 else
5712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5713 $as_echo "no, using $LN_S" >&6; }
5714 fi
5715
5716 # find the maximum length of command line arguments
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5718 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5719 if ${lt_cv_sys_max_cmd_len+:} false; then :
5720   $as_echo_n "(cached) " >&6
5721 else
5722     i=0
5723   teststring=ABCD
5724
5725   case $build_os in
5726   msdosdjgpp*)
5727     # On DJGPP, this test can blow up pretty badly due to problems in libc
5728     # (any single argument exceeding 2000 bytes causes a buffer overrun
5729     # during glob expansion).  Even if it were fixed, the result of this
5730     # check would be larger than it should be.
5731     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5732     ;;
5733
5734   gnu*)
5735     # Under GNU Hurd, this test is not required because there is
5736     # no limit to the length of command line arguments.
5737     # Libtool will interpret -1 as no limit whatsoever
5738     lt_cv_sys_max_cmd_len=-1;
5739     ;;
5740
5741   cygwin* | mingw* | cegcc*)
5742     # On Win9x/ME, this test blows up -- it succeeds, but takes
5743     # about 5 minutes as the teststring grows exponentially.
5744     # Worse, since 9x/ME are not pre-emptively multitasking,
5745     # you end up with a "frozen" computer, even though with patience
5746     # the test eventually succeeds (with a max line length of 256k).
5747     # Instead, let's just punt: use the minimum linelength reported by
5748     # all of the supported platforms: 8192 (on NT/2K/XP).
5749     lt_cv_sys_max_cmd_len=8192;
5750     ;;
5751
5752   mint*)
5753     # On MiNT this can take a long time and run out of memory.
5754     lt_cv_sys_max_cmd_len=8192;
5755     ;;
5756
5757   amigaos*)
5758     # On AmigaOS with pdksh, this test takes hours, literally.
5759     # So we just punt and use a minimum line length of 8192.
5760     lt_cv_sys_max_cmd_len=8192;
5761     ;;
5762
5763   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5764     # This has been around since 386BSD, at least.  Likely further.
5765     if test -x /sbin/sysctl; then
5766       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5767     elif test -x /usr/sbin/sysctl; then
5768       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5769     else
5770       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5771     fi
5772     # And add a safety zone
5773     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5774     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5775     ;;
5776
5777   interix*)
5778     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5779     lt_cv_sys_max_cmd_len=196608
5780     ;;
5781
5782   os2*)
5783     # The test takes a long time on OS/2.
5784     lt_cv_sys_max_cmd_len=8192
5785     ;;
5786
5787   osf*)
5788     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5789     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5790     # nice to cause kernel panics so lets avoid the loop below.
5791     # First set a reasonable default.
5792     lt_cv_sys_max_cmd_len=16384
5793     #
5794     if test -x /sbin/sysconfig; then
5795       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5796         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5797       esac
5798     fi
5799     ;;
5800   sco3.2v5*)
5801     lt_cv_sys_max_cmd_len=102400
5802     ;;
5803   sysv5* | sco5v6* | sysv4.2uw2*)
5804     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5805     if test -n "$kargmax"; then
5806       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5807     else
5808       lt_cv_sys_max_cmd_len=32768
5809     fi
5810     ;;
5811   *)
5812     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5813     if test -n "$lt_cv_sys_max_cmd_len" && \
5814        test undefined != "$lt_cv_sys_max_cmd_len"; then
5815       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5816       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5817     else
5818       # Make teststring a little bigger before we do anything with it.
5819       # a 1K string should be a reasonable start.
5820       for i in 1 2 3 4 5 6 7 8; do
5821         teststring=$teststring$teststring
5822       done
5823       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5824       # If test is not a shell built-in, we'll probably end up computing a
5825       # maximum length that is only half of the actual maximum length, but
5826       # we can't tell.
5827       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5828                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5829               test 17 != "$i" # 1/2 MB should be enough
5830       do
5831         i=`expr $i + 1`
5832         teststring=$teststring$teststring
5833       done
5834       # Only check the string length outside the loop.
5835       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5836       teststring=
5837       # Add a significant safety factor because C++ compilers can tack on
5838       # massive amounts of additional arguments before passing them to the
5839       # linker.  It appears as though 1/2 is a usable value.
5840       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5841     fi
5842     ;;
5843   esac
5844
5845 fi
5846
5847 if test -n "$lt_cv_sys_max_cmd_len"; then
5848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5849 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5850 else
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5852 $as_echo "none" >&6; }
5853 fi
5854 max_cmd_len=$lt_cv_sys_max_cmd_len
5855
5856
5857
5858
5859
5860
5861 : ${CP="cp -f"}
5862 : ${MV="mv -f"}
5863 : ${RM="rm -f"}
5864
5865 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5866   lt_unset=unset
5867 else
5868   lt_unset=false
5869 fi
5870
5871
5872
5873
5874
5875 # test EBCDIC or ASCII
5876 case `echo X|tr X '\101'` in
5877  A) # ASCII based system
5878     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5879   lt_SP2NL='tr \040 \012'
5880   lt_NL2SP='tr \015\012 \040\040'
5881   ;;
5882  *) # EBCDIC based system
5883   lt_SP2NL='tr \100 \n'
5884   lt_NL2SP='tr \r\n \100\100'
5885   ;;
5886 esac
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5897 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5898 if ${lt_cv_to_host_file_cmd+:} false; then :
5899   $as_echo_n "(cached) " >&6
5900 else
5901   case $host in
5902   *-*-mingw* )
5903     case $build in
5904       *-*-mingw* ) # actually msys
5905         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5906         ;;
5907       *-*-cygwin* )
5908         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5909         ;;
5910       * ) # otherwise, assume *nix
5911         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5912         ;;
5913     esac
5914     ;;
5915   *-*-cygwin* )
5916     case $build in
5917       *-*-mingw* ) # actually msys
5918         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5919         ;;
5920       *-*-cygwin* )
5921         lt_cv_to_host_file_cmd=func_convert_file_noop
5922         ;;
5923       * ) # otherwise, assume *nix
5924         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5925         ;;
5926     esac
5927     ;;
5928   * ) # unhandled hosts (and "normal" native builds)
5929     lt_cv_to_host_file_cmd=func_convert_file_noop
5930     ;;
5931 esac
5932
5933 fi
5934
5935 to_host_file_cmd=$lt_cv_to_host_file_cmd
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5937 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5938
5939
5940
5941
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5944 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5945 if ${lt_cv_to_tool_file_cmd+:} false; then :
5946   $as_echo_n "(cached) " >&6
5947 else
5948   #assume ordinary cross tools, or native build.
5949 lt_cv_to_tool_file_cmd=func_convert_file_noop
5950 case $host in
5951   *-*-mingw* )
5952     case $build in
5953       *-*-mingw* ) # actually msys
5954         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5955         ;;
5956     esac
5957     ;;
5958 esac
5959
5960 fi
5961
5962 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5964 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5965
5966
5967
5968
5969
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5971 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5972 if ${lt_cv_ld_reload_flag+:} false; then :
5973   $as_echo_n "(cached) " >&6
5974 else
5975   lt_cv_ld_reload_flag='-r'
5976 fi
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5978 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5979 reload_flag=$lt_cv_ld_reload_flag
5980 case $reload_flag in
5981 "" | " "*) ;;
5982 *) reload_flag=" $reload_flag" ;;
5983 esac
5984 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5985 case $host_os in
5986   cygwin* | mingw* | pw32* | cegcc*)
5987     if test yes != "$GCC"; then
5988       reload_cmds=false
5989     fi
5990     ;;
5991   darwin*)
5992     if test yes = "$GCC"; then
5993       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5994     else
5995       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5996     fi
5997     ;;
5998 esac
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008 if test -n "$ac_tool_prefix"; then
6009   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6010 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if ${ac_cv_prog_OBJDUMP+:} false; then :
6014   $as_echo_n "(cached) " >&6
6015 else
6016   if test -n "$OBJDUMP"; then
6017   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6018 else
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH
6021 do
6022   IFS=$as_save_IFS
6023   test -z "$as_dir" && as_dir=.
6024     for ac_exec_ext in '' $ac_executable_extensions; do
6025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028     break 2
6029   fi
6030 done
6031   done
6032 IFS=$as_save_IFS
6033
6034 fi
6035 fi
6036 OBJDUMP=$ac_cv_prog_OBJDUMP
6037 if test -n "$OBJDUMP"; then
6038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6039 $as_echo "$OBJDUMP" >&6; }
6040 else
6041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6043 fi
6044
6045
6046 fi
6047 if test -z "$ac_cv_prog_OBJDUMP"; then
6048   ac_ct_OBJDUMP=$OBJDUMP
6049   # Extract the first word of "objdump", so it can be a program name with args.
6050 set dummy objdump; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6054   $as_echo_n "(cached) " >&6
6055 else
6056   if test -n "$ac_ct_OBJDUMP"; then
6057   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062   IFS=$as_save_IFS
6063   test -z "$as_dir" && as_dir=.
6064     for ac_exec_ext in '' $ac_executable_extensions; do
6065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068     break 2
6069   fi
6070 done
6071   done
6072 IFS=$as_save_IFS
6073
6074 fi
6075 fi
6076 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6077 if test -n "$ac_ct_OBJDUMP"; then
6078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6079 $as_echo "$ac_ct_OBJDUMP" >&6; }
6080 else
6081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6083 fi
6084
6085   if test "x$ac_ct_OBJDUMP" = x; then
6086     OBJDUMP="false"
6087   else
6088     case $cross_compiling:$ac_tool_warned in
6089 yes:)
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6092 ac_tool_warned=yes ;;
6093 esac
6094     OBJDUMP=$ac_ct_OBJDUMP
6095   fi
6096 else
6097   OBJDUMP="$ac_cv_prog_OBJDUMP"
6098 fi
6099
6100 test -z "$OBJDUMP" && OBJDUMP=objdump
6101
6102
6103
6104
6105
6106
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6108 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6109 if ${lt_cv_deplibs_check_method+:} false; then :
6110   $as_echo_n "(cached) " >&6
6111 else
6112   lt_cv_file_magic_cmd='$MAGIC_CMD'
6113 lt_cv_file_magic_test_file=
6114 lt_cv_deplibs_check_method='unknown'
6115 # Need to set the preceding variable on all platforms that support
6116 # interlibrary dependencies.
6117 # 'none' -- dependencies not supported.
6118 # 'unknown' -- same as none, but documents that we really don't know.
6119 # 'pass_all' -- all dependencies passed with no checks.
6120 # 'test_compile' -- check by making test program.
6121 # 'file_magic [[regex]]' -- check by looking for files in library path
6122 # that responds to the $file_magic_cmd with a given extended regex.
6123 # If you have 'file' or equivalent on your system and you're not sure
6124 # whether 'pass_all' will *always* work, you probably want this one.
6125
6126 case $host_os in
6127 aix[4-9]*)
6128   lt_cv_deplibs_check_method=pass_all
6129   ;;
6130
6131 beos*)
6132   lt_cv_deplibs_check_method=pass_all
6133   ;;
6134
6135 bsdi[45]*)
6136   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6137   lt_cv_file_magic_cmd='/usr/bin/file -L'
6138   lt_cv_file_magic_test_file=/shlib/libc.so
6139   ;;
6140
6141 cygwin*)
6142   # func_win32_libid is a shell function defined in ltmain.sh
6143   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6144   lt_cv_file_magic_cmd='func_win32_libid'
6145   ;;
6146
6147 mingw* | pw32*)
6148   # Base MSYS/MinGW do not provide the 'file' command needed by
6149   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6150   # unless we find 'file', for example because we are cross-compiling.
6151   if ( file / ) >/dev/null 2>&1; then
6152     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6153     lt_cv_file_magic_cmd='func_win32_libid'
6154   else
6155     # Keep this pattern in sync with the one in func_win32_libid.
6156     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6157     lt_cv_file_magic_cmd='$OBJDUMP -f'
6158   fi
6159   ;;
6160
6161 cegcc*)
6162   # use the weaker test based on 'objdump'. See mingw*.
6163   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6164   lt_cv_file_magic_cmd='$OBJDUMP -f'
6165   ;;
6166
6167 darwin* | rhapsody*)
6168   lt_cv_deplibs_check_method=pass_all
6169   ;;
6170
6171 freebsd* | dragonfly*)
6172   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6173     case $host_cpu in
6174     i*86 )
6175       # Not sure whether the presence of OpenBSD here was a mistake.
6176       # Let's accept both of them until this is cleared up.
6177       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6178       lt_cv_file_magic_cmd=/usr/bin/file
6179       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6180       ;;
6181     esac
6182   else
6183     lt_cv_deplibs_check_method=pass_all
6184   fi
6185   ;;
6186
6187 haiku*)
6188   lt_cv_deplibs_check_method=pass_all
6189   ;;
6190
6191 hpux10.20* | hpux11*)
6192   lt_cv_file_magic_cmd=/usr/bin/file
6193   case $host_cpu in
6194   ia64*)
6195     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6196     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6197     ;;
6198   hppa*64*)
6199     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]'
6200     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6201     ;;
6202   *)
6203     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6204     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6205     ;;
6206   esac
6207   ;;
6208
6209 interix[3-9]*)
6210   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6211   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6212   ;;
6213
6214 irix5* | irix6* | nonstopux*)
6215   case $LD in
6216   *-32|*"-32 ") libmagic=32-bit;;
6217   *-n32|*"-n32 ") libmagic=N32;;
6218   *-64|*"-64 ") libmagic=64-bit;;
6219   *) libmagic=never-match;;
6220   esac
6221   lt_cv_deplibs_check_method=pass_all
6222   ;;
6223
6224 # This must be glibc/ELF.
6225 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6226   lt_cv_deplibs_check_method=pass_all
6227   ;;
6228
6229 netbsd* | netbsdelf*-gnu)
6230   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6231     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6232   else
6233     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6234   fi
6235   ;;
6236
6237 newos6*)
6238   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6239   lt_cv_file_magic_cmd=/usr/bin/file
6240   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6241   ;;
6242
6243 *nto* | *qnx*)
6244   lt_cv_deplibs_check_method=pass_all
6245   ;;
6246
6247 openbsd* | bitrig*)
6248   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6249     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6250   else
6251     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6252   fi
6253   ;;
6254
6255 osf3* | osf4* | osf5*)
6256   lt_cv_deplibs_check_method=pass_all
6257   ;;
6258
6259 rdos*)
6260   lt_cv_deplibs_check_method=pass_all
6261   ;;
6262
6263 solaris*)
6264   lt_cv_deplibs_check_method=pass_all
6265   ;;
6266
6267 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6268   lt_cv_deplibs_check_method=pass_all
6269   ;;
6270
6271 sysv4 | sysv4.3*)
6272   case $host_vendor in
6273   motorola)
6274     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]'
6275     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6276     ;;
6277   ncr)
6278     lt_cv_deplibs_check_method=pass_all
6279     ;;
6280   sequent)
6281     lt_cv_file_magic_cmd='/bin/file'
6282     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6283     ;;
6284   sni)
6285     lt_cv_file_magic_cmd='/bin/file'
6286     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6287     lt_cv_file_magic_test_file=/lib/libc.so
6288     ;;
6289   siemens)
6290     lt_cv_deplibs_check_method=pass_all
6291     ;;
6292   pc)
6293     lt_cv_deplibs_check_method=pass_all
6294     ;;
6295   esac
6296   ;;
6297
6298 tpf*)
6299   lt_cv_deplibs_check_method=pass_all
6300   ;;
6301 os2*)
6302   lt_cv_deplibs_check_method=pass_all
6303   ;;
6304 esac
6305
6306 fi
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6308 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6309
6310 file_magic_glob=
6311 want_nocaseglob=no
6312 if test "$build" = "$host"; then
6313   case $host_os in
6314   mingw* | pw32*)
6315     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6316       want_nocaseglob=yes
6317     else
6318       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6319     fi
6320     ;;
6321   esac
6322 fi
6323
6324 file_magic_cmd=$lt_cv_file_magic_cmd
6325 deplibs_check_method=$lt_cv_deplibs_check_method
6326 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349 if test -n "$ac_tool_prefix"; then
6350   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if ${ac_cv_prog_DLLTOOL+:} false; then :
6355   $as_echo_n "(cached) " >&6
6356 else
6357   if test -n "$DLLTOOL"; then
6358   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363   IFS=$as_save_IFS
6364   test -z "$as_dir" && as_dir=.
6365     for ac_exec_ext in '' $ac_executable_extensions; do
6366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6367     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369     break 2
6370   fi
6371 done
6372   done
6373 IFS=$as_save_IFS
6374
6375 fi
6376 fi
6377 DLLTOOL=$ac_cv_prog_DLLTOOL
6378 if test -n "$DLLTOOL"; then
6379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6380 $as_echo "$DLLTOOL" >&6; }
6381 else
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6384 fi
6385
6386
6387 fi
6388 if test -z "$ac_cv_prog_DLLTOOL"; then
6389   ac_ct_DLLTOOL=$DLLTOOL
6390   # Extract the first word of "dlltool", so it can be a program name with args.
6391 set dummy dlltool; ac_word=$2
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6395   $as_echo_n "(cached) " >&6
6396 else
6397   if test -n "$ac_ct_DLLTOOL"; then
6398   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6399 else
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6402 do
6403   IFS=$as_save_IFS
6404   test -z "$as_dir" && as_dir=.
6405     for ac_exec_ext in '' $ac_executable_extensions; do
6406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6407     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409     break 2
6410   fi
6411 done
6412   done
6413 IFS=$as_save_IFS
6414
6415 fi
6416 fi
6417 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6418 if test -n "$ac_ct_DLLTOOL"; then
6419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6420 $as_echo "$ac_ct_DLLTOOL" >&6; }
6421 else
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6424 fi
6425
6426   if test "x$ac_ct_DLLTOOL" = x; then
6427     DLLTOOL="false"
6428   else
6429     case $cross_compiling:$ac_tool_warned in
6430 yes:)
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433 ac_tool_warned=yes ;;
6434 esac
6435     DLLTOOL=$ac_ct_DLLTOOL
6436   fi
6437 else
6438   DLLTOOL="$ac_cv_prog_DLLTOOL"
6439 fi
6440
6441 test -z "$DLLTOOL" && DLLTOOL=dlltool
6442
6443
6444
6445
6446
6447
6448
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6450 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6451 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6452   $as_echo_n "(cached) " >&6
6453 else
6454   lt_cv_sharedlib_from_linklib_cmd='unknown'
6455
6456 case $host_os in
6457 cygwin* | mingw* | pw32* | cegcc*)
6458   # two different shell functions defined in ltmain.sh;
6459   # decide which one to use based on capabilities of $DLLTOOL
6460   case `$DLLTOOL --help 2>&1` in
6461   *--identify-strict*)
6462     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6463     ;;
6464   *)
6465     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6466     ;;
6467   esac
6468   ;;
6469 *)
6470   # fallback: assume linklib IS sharedlib
6471   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6472   ;;
6473 esac
6474
6475 fi
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6477 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6478 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6479 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6480
6481
6482
6483
6484
6485
6486
6487 if test -n "$ac_tool_prefix"; then
6488   for ac_prog in ar
6489   do
6490     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493 $as_echo_n "checking for $ac_word... " >&6; }
6494 if ${ac_cv_prog_AR+:} false; then :
6495   $as_echo_n "(cached) " >&6
6496 else
6497   if test -n "$AR"; then
6498   ac_cv_prog_AR="$AR" # Let the user override the test.
6499 else
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 for as_dir in $PATH
6502 do
6503   IFS=$as_save_IFS
6504   test -z "$as_dir" && as_dir=.
6505     for ac_exec_ext in '' $ac_executable_extensions; do
6506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509     break 2
6510   fi
6511 done
6512   done
6513 IFS=$as_save_IFS
6514
6515 fi
6516 fi
6517 AR=$ac_cv_prog_AR
6518 if test -n "$AR"; then
6519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6520 $as_echo "$AR" >&6; }
6521 else
6522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6524 fi
6525
6526
6527     test -n "$AR" && break
6528   done
6529 fi
6530 if test -z "$AR"; then
6531   ac_ct_AR=$AR
6532   for ac_prog in ar
6533 do
6534   # Extract the first word of "$ac_prog", so it can be a program name with args.
6535 set dummy $ac_prog; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6539   $as_echo_n "(cached) " >&6
6540 else
6541   if test -n "$ac_ct_AR"; then
6542   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547   IFS=$as_save_IFS
6548   test -z "$as_dir" && as_dir=.
6549     for ac_exec_ext in '' $ac_executable_extensions; do
6550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551     ac_cv_prog_ac_ct_AR="$ac_prog"
6552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553     break 2
6554   fi
6555 done
6556   done
6557 IFS=$as_save_IFS
6558
6559 fi
6560 fi
6561 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6562 if test -n "$ac_ct_AR"; then
6563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6564 $as_echo "$ac_ct_AR" >&6; }
6565 else
6566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6568 fi
6569
6570
6571   test -n "$ac_ct_AR" && break
6572 done
6573
6574   if test "x$ac_ct_AR" = x; then
6575     AR="false"
6576   else
6577     case $cross_compiling:$ac_tool_warned in
6578 yes:)
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581 ac_tool_warned=yes ;;
6582 esac
6583     AR=$ac_ct_AR
6584   fi
6585 fi
6586
6587 : ${AR=ar}
6588 : ${AR_FLAGS=cru}
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6601 $as_echo_n "checking for archiver @FILE support... " >&6; }
6602 if ${lt_cv_ar_at_file+:} false; then :
6603   $as_echo_n "(cached) " >&6
6604 else
6605   lt_cv_ar_at_file=no
6606    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h.  */
6608
6609 int
6610 main ()
6611 {
6612
6613   ;
6614   return 0;
6615 }
6616 _ACEOF
6617 if ac_fn_c_try_compile "$LINENO"; then :
6618   echo conftest.$ac_objext > conftest.lst
6619       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6620       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6621   (eval $lt_ar_try) 2>&5
6622   ac_status=$?
6623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624   test $ac_status = 0; }
6625       if test 0 -eq "$ac_status"; then
6626         # Ensure the archiver fails upon bogus file names.
6627         rm -f conftest.$ac_objext libconftest.a
6628         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6629   (eval $lt_ar_try) 2>&5
6630   ac_status=$?
6631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6632   test $ac_status = 0; }
6633         if test 0 -ne "$ac_status"; then
6634           lt_cv_ar_at_file=@
6635         fi
6636       fi
6637       rm -f conftest.* libconftest.a
6638
6639 fi
6640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6641
6642 fi
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6644 $as_echo "$lt_cv_ar_at_file" >&6; }
6645
6646 if test no = "$lt_cv_ar_at_file"; then
6647   archiver_list_spec=
6648 else
6649   archiver_list_spec=$lt_cv_ar_at_file
6650 fi
6651
6652
6653
6654
6655
6656
6657
6658 if test -n "$ac_tool_prefix"; then
6659   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6660 set dummy ${ac_tool_prefix}strip; ac_word=$2
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 $as_echo_n "checking for $ac_word... " >&6; }
6663 if ${ac_cv_prog_STRIP+:} false; then :
6664   $as_echo_n "(cached) " >&6
6665 else
6666   if test -n "$STRIP"; then
6667   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6668 else
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6671 do
6672   IFS=$as_save_IFS
6673   test -z "$as_dir" && as_dir=.
6674     for ac_exec_ext in '' $ac_executable_extensions; do
6675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6676     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678     break 2
6679   fi
6680 done
6681   done
6682 IFS=$as_save_IFS
6683
6684 fi
6685 fi
6686 STRIP=$ac_cv_prog_STRIP
6687 if test -n "$STRIP"; then
6688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6689 $as_echo "$STRIP" >&6; }
6690 else
6691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692 $as_echo "no" >&6; }
6693 fi
6694
6695
6696 fi
6697 if test -z "$ac_cv_prog_STRIP"; then
6698   ac_ct_STRIP=$STRIP
6699   # Extract the first word of "strip", so it can be a program name with args.
6700 set dummy strip; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6704   $as_echo_n "(cached) " >&6
6705 else
6706   if test -n "$ac_ct_STRIP"; then
6707   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712   IFS=$as_save_IFS
6713   test -z "$as_dir" && as_dir=.
6714     for ac_exec_ext in '' $ac_executable_extensions; do
6715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716     ac_cv_prog_ac_ct_STRIP="strip"
6717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718     break 2
6719   fi
6720 done
6721   done
6722 IFS=$as_save_IFS
6723
6724 fi
6725 fi
6726 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6727 if test -n "$ac_ct_STRIP"; then
6728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6729 $as_echo "$ac_ct_STRIP" >&6; }
6730 else
6731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6733 fi
6734
6735   if test "x$ac_ct_STRIP" = x; then
6736     STRIP=":"
6737   else
6738     case $cross_compiling:$ac_tool_warned in
6739 yes:)
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6742 ac_tool_warned=yes ;;
6743 esac
6744     STRIP=$ac_ct_STRIP
6745   fi
6746 else
6747   STRIP="$ac_cv_prog_STRIP"
6748 fi
6749
6750 test -z "$STRIP" && STRIP=:
6751
6752
6753
6754
6755
6756
6757 if test -n "$ac_tool_prefix"; then
6758   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_RANLIB+:} false; then :
6763   $as_echo_n "(cached) " >&6
6764 else
6765   if test -n "$RANLIB"; then
6766   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771   IFS=$as_save_IFS
6772   test -z "$as_dir" && as_dir=.
6773     for ac_exec_ext in '' $ac_executable_extensions; do
6774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777     break 2
6778   fi
6779 done
6780   done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 RANLIB=$ac_cv_prog_RANLIB
6786 if test -n "$RANLIB"; then
6787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6788 $as_echo "$RANLIB" >&6; }
6789 else
6790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6792 fi
6793
6794
6795 fi
6796 if test -z "$ac_cv_prog_RANLIB"; then
6797   ac_ct_RANLIB=$RANLIB
6798   # Extract the first word of "ranlib", so it can be a program name with args.
6799 set dummy ranlib; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6803   $as_echo_n "(cached) " >&6
6804 else
6805   if test -n "$ac_ct_RANLIB"; then
6806   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811   IFS=$as_save_IFS
6812   test -z "$as_dir" && as_dir=.
6813     for ac_exec_ext in '' $ac_executable_extensions; do
6814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6815     ac_cv_prog_ac_ct_RANLIB="ranlib"
6816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817     break 2
6818   fi
6819 done
6820   done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6826 if test -n "$ac_ct_RANLIB"; then
6827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6828 $as_echo "$ac_ct_RANLIB" >&6; }
6829 else
6830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834   if test "x$ac_ct_RANLIB" = x; then
6835     RANLIB=":"
6836   else
6837     case $cross_compiling:$ac_tool_warned in
6838 yes:)
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841 ac_tool_warned=yes ;;
6842 esac
6843     RANLIB=$ac_ct_RANLIB
6844   fi
6845 else
6846   RANLIB="$ac_cv_prog_RANLIB"
6847 fi
6848
6849 test -z "$RANLIB" && RANLIB=:
6850
6851
6852
6853
6854
6855
6856 # Determine commands to create old-style static archives.
6857 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6858 old_postinstall_cmds='chmod 644 $oldlib'
6859 old_postuninstall_cmds=
6860
6861 if test -n "$RANLIB"; then
6862   case $host_os in
6863   bitrig* | openbsd*)
6864     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6865     ;;
6866   *)
6867     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6868     ;;
6869   esac
6870   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6871 fi
6872
6873 case $host_os in
6874   darwin*)
6875     lock_old_archive_extraction=yes ;;
6876   *)
6877     lock_old_archive_extraction=no ;;
6878 esac
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918 # If no C compiler was specified, use CC.
6919 LTCC=${LTCC-"$CC"}
6920
6921 # If no C compiler flags were specified, use CFLAGS.
6922 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6923
6924 # Allow CC to be a program name with arguments.
6925 compiler=$CC
6926
6927
6928 # Check for command to grab the raw symbol name followed by C symbol from nm.
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6930 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6931 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6932   $as_echo_n "(cached) " >&6
6933 else
6934
6935 # These are sane defaults that work on at least a few old systems.
6936 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6937
6938 # Character class describing NM global symbol codes.
6939 symcode='[BCDEGRST]'
6940
6941 # Regexp to match symbols that can be accessed directly from C.
6942 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6943
6944 # Define system-specific variables.
6945 case $host_os in
6946 aix*)
6947   symcode='[BCDT]'
6948   ;;
6949 cygwin* | mingw* | pw32* | cegcc*)
6950   symcode='[ABCDGISTW]'
6951   ;;
6952 hpux*)
6953   if test ia64 = "$host_cpu"; then
6954     symcode='[ABCDEGRST]'
6955   fi
6956   ;;
6957 irix* | nonstopux*)
6958   symcode='[BCDEGRST]'
6959   ;;
6960 osf*)
6961   symcode='[BCDEGQRST]'
6962   ;;
6963 solaris*)
6964   symcode='[BDRT]'
6965   ;;
6966 sco3.2v5*)
6967   symcode='[DT]'
6968   ;;
6969 sysv4.2uw2*)
6970   symcode='[DT]'
6971   ;;
6972 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6973   symcode='[ABDT]'
6974   ;;
6975 sysv4)
6976   symcode='[DFNSTU]'
6977   ;;
6978 esac
6979
6980 # If we're using GNU nm, then use its standard symbol codes.
6981 case `$NM -V 2>&1` in
6982 *GNU* | *'with BFD'*)
6983   symcode='[ABCDGIRSTW]' ;;
6984 esac
6985
6986 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6987   # Gets list of data symbols to import.
6988   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6989   # Adjust the below global symbol transforms to fixup imported variables.
6990   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6991   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6992   lt_c_name_lib_hook="\
6993   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6994   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6995 else
6996   # Disable hooks by default.
6997   lt_cv_sys_global_symbol_to_import=
6998   lt_cdecl_hook=
6999   lt_c_name_hook=
7000   lt_c_name_lib_hook=
7001 fi
7002
7003 # Transform an extracted symbol line into a proper C declaration.
7004 # Some systems (esp. on ia64) link data and code symbols differently,
7005 # so use this general approach.
7006 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7007 $lt_cdecl_hook\
7008 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7009 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7010
7011 # Transform an extracted symbol line into symbol name and symbol address
7012 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7013 $lt_c_name_hook\
7014 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7015 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7016
7017 # Transform an extracted symbol line into symbol name with lib prefix and
7018 # symbol address.
7019 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7020 $lt_c_name_lib_hook\
7021 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7022 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7023 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7024
7025 # Handle CRLF in mingw tool chain
7026 opt_cr=
7027 case $build_os in
7028 mingw*)
7029   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7030   ;;
7031 esac
7032
7033 # Try without a prefix underscore, then with it.
7034 for ac_symprfx in "" "_"; do
7035
7036   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7037   symxfrm="\\1 $ac_symprfx\\2 \\2"
7038
7039   # Write the raw and C identifiers.
7040   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7041     # Fake it for dumpbin and say T for any non-static function,
7042     # D for any global variable and I for any imported variable.
7043     # Also find C++ and __fastcall symbols from MSVC++,
7044     # which start with @ or ?.
7045     lt_cv_sys_global_symbol_pipe="$AWK '"\
7046 "     {last_section=section; section=\$ 3};"\
7047 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7048 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7049 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7050 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7051 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7052 "     \$ 0!~/External *\|/{next};"\
7053 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7054 "     {if(hide[section]) next};"\
7055 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7056 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7057 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7058 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7059 "     ' prfx=^$ac_symprfx"
7060   else
7061     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7062   fi
7063   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7064
7065   # Check to see that the pipe works correctly.
7066   pipe_works=no
7067
7068   rm -f conftest*
7069   cat > conftest.$ac_ext <<_LT_EOF
7070 #ifdef __cplusplus
7071 extern "C" {
7072 #endif
7073 char nm_test_var;
7074 void nm_test_func(void);
7075 void nm_test_func(void){}
7076 #ifdef __cplusplus
7077 }
7078 #endif
7079 int main(){nm_test_var='a';nm_test_func();return(0);}
7080 _LT_EOF
7081
7082   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7083   (eval $ac_compile) 2>&5
7084   ac_status=$?
7085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7086   test $ac_status = 0; }; then
7087     # Now try to grab the symbols.
7088     nlist=conftest.nm
7089     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7090   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7091   ac_status=$?
7092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7093   test $ac_status = 0; } && test -s "$nlist"; then
7094       # Try sorting and uniquifying the output.
7095       if sort "$nlist" | uniq > "$nlist"T; then
7096         mv -f "$nlist"T "$nlist"
7097       else
7098         rm -f "$nlist"T
7099       fi
7100
7101       # Make sure that we snagged all the symbols we need.
7102       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7103         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7104           cat <<_LT_EOF > conftest.$ac_ext
7105 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7106 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7107 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7108    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7109 # define LT_DLSYM_CONST
7110 #elif defined __osf__
7111 /* This system does not cope well with relocations in const data.  */
7112 # define LT_DLSYM_CONST
7113 #else
7114 # define LT_DLSYM_CONST const
7115 #endif
7116
7117 #ifdef __cplusplus
7118 extern "C" {
7119 #endif
7120
7121 _LT_EOF
7122           # Now generate the symbol file.
7123           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7124
7125           cat <<_LT_EOF >> conftest.$ac_ext
7126
7127 /* The mapping between symbol names and symbols.  */
7128 LT_DLSYM_CONST struct {
7129   const char *name;
7130   void       *address;
7131 }
7132 lt__PROGRAM__LTX_preloaded_symbols[] =
7133 {
7134   { "@PROGRAM@", (void *) 0 },
7135 _LT_EOF
7136           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7137           cat <<\_LT_EOF >> conftest.$ac_ext
7138   {0, (void *) 0}
7139 };
7140
7141 /* This works around a problem in FreeBSD linker */
7142 #ifdef FREEBSD_WORKAROUND
7143 static const void *lt_preloaded_setup() {
7144   return lt__PROGRAM__LTX_preloaded_symbols;
7145 }
7146 #endif
7147
7148 #ifdef __cplusplus
7149 }
7150 #endif
7151 _LT_EOF
7152           # Now try linking the two files.
7153           mv conftest.$ac_objext conftstm.$ac_objext
7154           lt_globsym_save_LIBS=$LIBS
7155           lt_globsym_save_CFLAGS=$CFLAGS
7156           LIBS=conftstm.$ac_objext
7157           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7158           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7159   (eval $ac_link) 2>&5
7160   ac_status=$?
7161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7162   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7163             pipe_works=yes
7164           fi
7165           LIBS=$lt_globsym_save_LIBS
7166           CFLAGS=$lt_globsym_save_CFLAGS
7167         else
7168           echo "cannot find nm_test_func in $nlist" >&5
7169         fi
7170       else
7171         echo "cannot find nm_test_var in $nlist" >&5
7172       fi
7173     else
7174       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7175     fi
7176   else
7177     echo "$progname: failed program was:" >&5
7178     cat conftest.$ac_ext >&5
7179   fi
7180   rm -rf conftest* conftst*
7181
7182   # Do not use the global_symbol_pipe unless it works.
7183   if test yes = "$pipe_works"; then
7184     break
7185   else
7186     lt_cv_sys_global_symbol_pipe=
7187   fi
7188 done
7189
7190 fi
7191
7192 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7193   lt_cv_sys_global_symbol_to_cdecl=
7194 fi
7195 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7197 $as_echo "failed" >&6; }
7198 else
7199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7200 $as_echo "ok" >&6; }
7201 fi
7202
7203 # Response file support.
7204 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7205   nm_file_list_spec='@'
7206 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7207   nm_file_list_spec='@'
7208 fi
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7247 $as_echo_n "checking for sysroot... " >&6; }
7248
7249 # Check whether --with-sysroot was given.
7250 if test "${with_sysroot+set}" = set; then :
7251   withval=$with_sysroot;
7252 else
7253   with_sysroot=no
7254 fi
7255
7256
7257 lt_sysroot=
7258 case $with_sysroot in #(
7259  yes)
7260    if test yes = "$GCC"; then
7261      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7262    fi
7263    ;; #(
7264  /*)
7265    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7266    ;; #(
7267  no|'')
7268    ;; #(
7269  *)
7270    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7271 $as_echo "$with_sysroot" >&6; }
7272    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7273    ;;
7274 esac
7275
7276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7277 $as_echo "${lt_sysroot:-no}" >&6; }
7278
7279
7280
7281
7282
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7284 $as_echo_n "checking for a working dd... " >&6; }
7285 if ${ac_cv_path_lt_DD+:} false; then :
7286   $as_echo_n "(cached) " >&6
7287 else
7288   printf 0123456789abcdef0123456789abcdef >conftest.i
7289 cat conftest.i conftest.i >conftest2.i
7290 : ${lt_DD:=$DD}
7291 if test -z "$lt_DD"; then
7292   ac_path_lt_DD_found=false
7293   # Loop through the user's path and test for each of PROGNAME-LIST
7294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297   IFS=$as_save_IFS
7298   test -z "$as_dir" && as_dir=.
7299     for ac_prog in dd; do
7300     for ac_exec_ext in '' $ac_executable_extensions; do
7301       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7302       as_fn_executable_p "$ac_path_lt_DD" || continue
7303 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7304   cmp -s conftest.i conftest.out \
7305   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7306 fi
7307       $ac_path_lt_DD_found && break 3
7308     done
7309   done
7310   done
7311 IFS=$as_save_IFS
7312   if test -z "$ac_cv_path_lt_DD"; then
7313     :
7314   fi
7315 else
7316   ac_cv_path_lt_DD=$lt_DD
7317 fi
7318
7319 rm -f conftest.i conftest2.i conftest.out
7320 fi
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7322 $as_echo "$ac_cv_path_lt_DD" >&6; }
7323
7324
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7326 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7327 if ${lt_cv_truncate_bin+:} false; then :
7328   $as_echo_n "(cached) " >&6
7329 else
7330   printf 0123456789abcdef0123456789abcdef >conftest.i
7331 cat conftest.i conftest.i >conftest2.i
7332 lt_cv_truncate_bin=
7333 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7334   cmp -s conftest.i conftest.out \
7335   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7336 fi
7337 rm -f conftest.i conftest2.i conftest.out
7338 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7339 fi
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7341 $as_echo "$lt_cv_truncate_bin" >&6; }
7342
7343
7344
7345
7346
7347
7348
7349 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7350 func_cc_basename ()
7351 {
7352     for cc_temp in $*""; do
7353       case $cc_temp in
7354         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7355         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7356         \-*) ;;
7357         *) break;;
7358       esac
7359     done
7360     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7361 }
7362
7363 # Check whether --enable-libtool-lock was given.
7364 if test "${enable_libtool_lock+set}" = set; then :
7365   enableval=$enable_libtool_lock;
7366 fi
7367
7368 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7369
7370 # Some flags need to be propagated to the compiler or linker for good
7371 # libtool support.
7372 case $host in
7373 ia64-*-hpux*)
7374   # Find out what ABI is being produced by ac_compile, and set mode
7375   # options accordingly.
7376   echo 'int i;' > conftest.$ac_ext
7377   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7378   (eval $ac_compile) 2>&5
7379   ac_status=$?
7380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7381   test $ac_status = 0; }; then
7382     case `/usr/bin/file conftest.$ac_objext` in
7383       *ELF-32*)
7384         HPUX_IA64_MODE=32
7385         ;;
7386       *ELF-64*)
7387         HPUX_IA64_MODE=64
7388         ;;
7389     esac
7390   fi
7391   rm -rf conftest*
7392   ;;
7393 *-*-irix6*)
7394   # Find out what ABI is being produced by ac_compile, and set linker
7395   # options accordingly.
7396   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7397   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7398   (eval $ac_compile) 2>&5
7399   ac_status=$?
7400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7401   test $ac_status = 0; }; then
7402     if test yes = "$lt_cv_prog_gnu_ld"; then
7403       case `/usr/bin/file conftest.$ac_objext` in
7404         *32-bit*)
7405           LD="${LD-ld} -melf32bsmip"
7406           ;;
7407         *N32*)
7408           LD="${LD-ld} -melf32bmipn32"
7409           ;;
7410         *64-bit*)
7411           LD="${LD-ld} -melf64bmip"
7412         ;;
7413       esac
7414     else
7415       case `/usr/bin/file conftest.$ac_objext` in
7416         *32-bit*)
7417           LD="${LD-ld} -32"
7418           ;;
7419         *N32*)
7420           LD="${LD-ld} -n32"
7421           ;;
7422         *64-bit*)
7423           LD="${LD-ld} -64"
7424           ;;
7425       esac
7426     fi
7427   fi
7428   rm -rf conftest*
7429   ;;
7430
7431 mips64*-*linux*)
7432   # Find out what ABI is being produced by ac_compile, and set linker
7433   # options accordingly.
7434   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7435   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7436   (eval $ac_compile) 2>&5
7437   ac_status=$?
7438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7439   test $ac_status = 0; }; then
7440     emul=elf
7441     case `/usr/bin/file conftest.$ac_objext` in
7442       *32-bit*)
7443         emul="${emul}32"
7444         ;;
7445       *64-bit*)
7446         emul="${emul}64"
7447         ;;
7448     esac
7449     case `/usr/bin/file conftest.$ac_objext` in
7450       *MSB*)
7451         emul="${emul}btsmip"
7452         ;;
7453       *LSB*)
7454         emul="${emul}ltsmip"
7455         ;;
7456     esac
7457     case `/usr/bin/file conftest.$ac_objext` in
7458       *N32*)
7459         emul="${emul}n32"
7460         ;;
7461     esac
7462     LD="${LD-ld} -m $emul"
7463   fi
7464   rm -rf conftest*
7465   ;;
7466
7467 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7468 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7469   # Find out what ABI is being produced by ac_compile, and set linker
7470   # options accordingly.  Note that the listed cases only cover the
7471   # situations where additional linker options are needed (such as when
7472   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7473   # vice versa); the common cases where no linker options are needed do
7474   # not appear in the list.
7475   echo 'int i;' > conftest.$ac_ext
7476   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7477   (eval $ac_compile) 2>&5
7478   ac_status=$?
7479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7480   test $ac_status = 0; }; then
7481     case `/usr/bin/file conftest.o` in
7482       *32-bit*)
7483         case $host in
7484           x86_64-*kfreebsd*-gnu)
7485             LD="${LD-ld} -m elf_i386_fbsd"
7486             ;;
7487           x86_64-*linux*)
7488             case `/usr/bin/file conftest.o` in
7489               *x86-64*)
7490                 LD="${LD-ld} -m elf32_x86_64"
7491                 ;;
7492               *)
7493                 LD="${LD-ld} -m elf_i386"
7494                 ;;
7495             esac
7496             ;;
7497           powerpc64le-*linux*)
7498             LD="${LD-ld} -m elf32lppclinux"
7499             ;;
7500           powerpc64-*linux*)
7501             LD="${LD-ld} -m elf32ppclinux"
7502             ;;
7503           s390x-*linux*)
7504             LD="${LD-ld} -m elf_s390"
7505             ;;
7506           sparc64-*linux*)
7507             LD="${LD-ld} -m elf32_sparc"
7508             ;;
7509         esac
7510         ;;
7511       *64-bit*)
7512         case $host in
7513           x86_64-*kfreebsd*-gnu)
7514             LD="${LD-ld} -m elf_x86_64_fbsd"
7515             ;;
7516           x86_64-*linux*)
7517             LD="${LD-ld} -m elf_x86_64"
7518             ;;
7519           powerpcle-*linux*)
7520             LD="${LD-ld} -m elf64lppc"
7521             ;;
7522           powerpc-*linux*)
7523             LD="${LD-ld} -m elf64ppc"
7524             ;;
7525           s390*-*linux*|s390*-*tpf*)
7526             LD="${LD-ld} -m elf64_s390"
7527             ;;
7528           sparc*-*linux*)
7529             LD="${LD-ld} -m elf64_sparc"
7530             ;;
7531         esac
7532         ;;
7533     esac
7534   fi
7535   rm -rf conftest*
7536   ;;
7537
7538 *-*-sco3.2v5*)
7539   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7540   SAVE_CFLAGS=$CFLAGS
7541   CFLAGS="$CFLAGS -belf"
7542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7543 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7544 if ${lt_cv_cc_needs_belf+:} false; then :
7545   $as_echo_n "(cached) " >&6
7546 else
7547   ac_ext=c
7548 ac_cpp='$CPP $CPPFLAGS'
7549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7552
7553      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h.  */
7555
7556 int
7557 main ()
7558 {
7559
7560   ;
7561   return 0;
7562 }
7563 _ACEOF
7564 if ac_fn_c_try_link "$LINENO"; then :
7565   lt_cv_cc_needs_belf=yes
7566 else
7567   lt_cv_cc_needs_belf=no
7568 fi
7569 rm -f core conftest.err conftest.$ac_objext \
7570     conftest$ac_exeext conftest.$ac_ext
7571      ac_ext=c
7572 ac_cpp='$CPP $CPPFLAGS'
7573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7576
7577 fi
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7579 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7580   if test yes != "$lt_cv_cc_needs_belf"; then
7581     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7582     CFLAGS=$SAVE_CFLAGS
7583   fi
7584   ;;
7585 *-*solaris*)
7586   # Find out what ABI is being produced by ac_compile, and set linker
7587   # options accordingly.
7588   echo 'int i;' > conftest.$ac_ext
7589   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7590   (eval $ac_compile) 2>&5
7591   ac_status=$?
7592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7593   test $ac_status = 0; }; then
7594     case `/usr/bin/file conftest.o` in
7595     *64-bit*)
7596       case $lt_cv_prog_gnu_ld in
7597       yes*)
7598         case $host in
7599         i?86-*-solaris*|x86_64-*-solaris*)
7600           LD="${LD-ld} -m elf_x86_64"
7601           ;;
7602         sparc*-*-solaris*)
7603           LD="${LD-ld} -m elf64_sparc"
7604           ;;
7605         esac
7606         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7607         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7608           LD=${LD-ld}_sol2
7609         fi
7610         ;;
7611       *)
7612         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7613           LD="${LD-ld} -64"
7614         fi
7615         ;;
7616       esac
7617       ;;
7618     esac
7619   fi
7620   rm -rf conftest*
7621   ;;
7622 esac
7623
7624 need_locks=$enable_libtool_lock
7625
7626 if test -n "$ac_tool_prefix"; then
7627   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7628 set dummy ${ac_tool_prefix}mt; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7632   $as_echo_n "(cached) " >&6
7633 else
7634   if test -n "$MANIFEST_TOOL"; then
7635   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7636 else
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640   IFS=$as_save_IFS
7641   test -z "$as_dir" && as_dir=.
7642     for ac_exec_ext in '' $ac_executable_extensions; do
7643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646     break 2
7647   fi
7648 done
7649   done
7650 IFS=$as_save_IFS
7651
7652 fi
7653 fi
7654 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7655 if test -n "$MANIFEST_TOOL"; then
7656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7657 $as_echo "$MANIFEST_TOOL" >&6; }
7658 else
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7661 fi
7662
7663
7664 fi
7665 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7666   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7667   # Extract the first word of "mt", so it can be a program name with args.
7668 set dummy mt; ac_word=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7672   $as_echo_n "(cached) " >&6
7673 else
7674   if test -n "$ac_ct_MANIFEST_TOOL"; then
7675   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7676 else
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7679 do
7680   IFS=$as_save_IFS
7681   test -z "$as_dir" && as_dir=.
7682     for ac_exec_ext in '' $ac_executable_extensions; do
7683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686     break 2
7687   fi
7688 done
7689   done
7690 IFS=$as_save_IFS
7691
7692 fi
7693 fi
7694 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7695 if test -n "$ac_ct_MANIFEST_TOOL"; then
7696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7697 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7698 else
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7701 fi
7702
7703   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7704     MANIFEST_TOOL=":"
7705   else
7706     case $cross_compiling:$ac_tool_warned in
7707 yes:)
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7710 ac_tool_warned=yes ;;
7711 esac
7712     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7713   fi
7714 else
7715   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7716 fi
7717
7718 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7720 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7721 if ${lt_cv_path_mainfest_tool+:} false; then :
7722   $as_echo_n "(cached) " >&6
7723 else
7724   lt_cv_path_mainfest_tool=no
7725   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7726   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7727   cat conftest.err >&5
7728   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7729     lt_cv_path_mainfest_tool=yes
7730   fi
7731   rm -f conftest*
7732 fi
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7734 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7735 if test yes != "$lt_cv_path_mainfest_tool"; then
7736   MANIFEST_TOOL=:
7737 fi
7738
7739
7740
7741
7742
7743
7744   case $host_os in
7745     rhapsody* | darwin*)
7746     if test -n "$ac_tool_prefix"; then
7747   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7748 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750 $as_echo_n "checking for $ac_word... " >&6; }
7751 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7752   $as_echo_n "(cached) " >&6
7753 else
7754   if test -n "$DSYMUTIL"; then
7755   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7756 else
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7759 do
7760   IFS=$as_save_IFS
7761   test -z "$as_dir" && as_dir=.
7762     for ac_exec_ext in '' $ac_executable_extensions; do
7763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7764     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7766     break 2
7767   fi
7768 done
7769   done
7770 IFS=$as_save_IFS
7771
7772 fi
7773 fi
7774 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7775 if test -n "$DSYMUTIL"; then
7776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7777 $as_echo "$DSYMUTIL" >&6; }
7778 else
7779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7781 fi
7782
7783
7784 fi
7785 if test -z "$ac_cv_prog_DSYMUTIL"; then
7786   ac_ct_DSYMUTIL=$DSYMUTIL
7787   # Extract the first word of "dsymutil", so it can be a program name with args.
7788 set dummy dsymutil; ac_word=$2
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790 $as_echo_n "checking for $ac_word... " >&6; }
7791 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7792   $as_echo_n "(cached) " >&6
7793 else
7794   if test -n "$ac_ct_DSYMUTIL"; then
7795   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7796 else
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 for as_dir in $PATH
7799 do
7800   IFS=$as_save_IFS
7801   test -z "$as_dir" && as_dir=.
7802     for ac_exec_ext in '' $ac_executable_extensions; do
7803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7804     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806     break 2
7807   fi
7808 done
7809   done
7810 IFS=$as_save_IFS
7811
7812 fi
7813 fi
7814 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7815 if test -n "$ac_ct_DSYMUTIL"; then
7816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7817 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7818 else
7819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 $as_echo "no" >&6; }
7821 fi
7822
7823   if test "x$ac_ct_DSYMUTIL" = x; then
7824     DSYMUTIL=":"
7825   else
7826     case $cross_compiling:$ac_tool_warned in
7827 yes:)
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7830 ac_tool_warned=yes ;;
7831 esac
7832     DSYMUTIL=$ac_ct_DSYMUTIL
7833   fi
7834 else
7835   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7836 fi
7837
7838     if test -n "$ac_tool_prefix"; then
7839   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7840 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 $as_echo_n "checking for $ac_word... " >&6; }
7843 if ${ac_cv_prog_NMEDIT+:} false; then :
7844   $as_echo_n "(cached) " >&6
7845 else
7846   if test -n "$NMEDIT"; then
7847   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7848 else
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH
7851 do
7852   IFS=$as_save_IFS
7853   test -z "$as_dir" && as_dir=.
7854     for ac_exec_ext in '' $ac_executable_extensions; do
7855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7856     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858     break 2
7859   fi
7860 done
7861   done
7862 IFS=$as_save_IFS
7863
7864 fi
7865 fi
7866 NMEDIT=$ac_cv_prog_NMEDIT
7867 if test -n "$NMEDIT"; then
7868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7869 $as_echo "$NMEDIT" >&6; }
7870 else
7871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7873 fi
7874
7875
7876 fi
7877 if test -z "$ac_cv_prog_NMEDIT"; then
7878   ac_ct_NMEDIT=$NMEDIT
7879   # Extract the first word of "nmedit", so it can be a program name with args.
7880 set dummy nmedit; ac_word=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882 $as_echo_n "checking for $ac_word... " >&6; }
7883 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7884   $as_echo_n "(cached) " >&6
7885 else
7886   if test -n "$ac_ct_NMEDIT"; then
7887   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7888 else
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 for as_dir in $PATH
7891 do
7892   IFS=$as_save_IFS
7893   test -z "$as_dir" && as_dir=.
7894     for ac_exec_ext in '' $ac_executable_extensions; do
7895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7896     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7898     break 2
7899   fi
7900 done
7901   done
7902 IFS=$as_save_IFS
7903
7904 fi
7905 fi
7906 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7907 if test -n "$ac_ct_NMEDIT"; then
7908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7909 $as_echo "$ac_ct_NMEDIT" >&6; }
7910 else
7911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7913 fi
7914
7915   if test "x$ac_ct_NMEDIT" = x; then
7916     NMEDIT=":"
7917   else
7918     case $cross_compiling:$ac_tool_warned in
7919 yes:)
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7922 ac_tool_warned=yes ;;
7923 esac
7924     NMEDIT=$ac_ct_NMEDIT
7925   fi
7926 else
7927   NMEDIT="$ac_cv_prog_NMEDIT"
7928 fi
7929
7930     if test -n "$ac_tool_prefix"; then
7931   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7932 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if ${ac_cv_prog_LIPO+:} false; then :
7936   $as_echo_n "(cached) " >&6
7937 else
7938   if test -n "$LIPO"; then
7939   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7940 else
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7943 do
7944   IFS=$as_save_IFS
7945   test -z "$as_dir" && as_dir=.
7946     for ac_exec_ext in '' $ac_executable_extensions; do
7947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7948     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950     break 2
7951   fi
7952 done
7953   done
7954 IFS=$as_save_IFS
7955
7956 fi
7957 fi
7958 LIPO=$ac_cv_prog_LIPO
7959 if test -n "$LIPO"; then
7960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7961 $as_echo "$LIPO" >&6; }
7962 else
7963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7965 fi
7966
7967
7968 fi
7969 if test -z "$ac_cv_prog_LIPO"; then
7970   ac_ct_LIPO=$LIPO
7971   # Extract the first word of "lipo", so it can be a program name with args.
7972 set dummy lipo; ac_word=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7976   $as_echo_n "(cached) " >&6
7977 else
7978   if test -n "$ac_ct_LIPO"; then
7979   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7983 do
7984   IFS=$as_save_IFS
7985   test -z "$as_dir" && as_dir=.
7986     for ac_exec_ext in '' $ac_executable_extensions; do
7987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988     ac_cv_prog_ac_ct_LIPO="lipo"
7989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990     break 2
7991   fi
7992 done
7993   done
7994 IFS=$as_save_IFS
7995
7996 fi
7997 fi
7998 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7999 if test -n "$ac_ct_LIPO"; then
8000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8001 $as_echo "$ac_ct_LIPO" >&6; }
8002 else
8003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 fi
8006
8007   if test "x$ac_ct_LIPO" = x; then
8008     LIPO=":"
8009   else
8010     case $cross_compiling:$ac_tool_warned in
8011 yes:)
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8014 ac_tool_warned=yes ;;
8015 esac
8016     LIPO=$ac_ct_LIPO
8017   fi
8018 else
8019   LIPO="$ac_cv_prog_LIPO"
8020 fi
8021
8022     if test -n "$ac_tool_prefix"; then
8023   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8024 set dummy ${ac_tool_prefix}otool; ac_word=$2
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 $as_echo_n "checking for $ac_word... " >&6; }
8027 if ${ac_cv_prog_OTOOL+:} false; then :
8028   $as_echo_n "(cached) " >&6
8029 else
8030   if test -n "$OTOOL"; then
8031   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8032 else
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8035 do
8036   IFS=$as_save_IFS
8037   test -z "$as_dir" && as_dir=.
8038     for ac_exec_ext in '' $ac_executable_extensions; do
8039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8040     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042     break 2
8043   fi
8044 done
8045   done
8046 IFS=$as_save_IFS
8047
8048 fi
8049 fi
8050 OTOOL=$ac_cv_prog_OTOOL
8051 if test -n "$OTOOL"; then
8052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8053 $as_echo "$OTOOL" >&6; }
8054 else
8055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8057 fi
8058
8059
8060 fi
8061 if test -z "$ac_cv_prog_OTOOL"; then
8062   ac_ct_OTOOL=$OTOOL
8063   # Extract the first word of "otool", so it can be a program name with args.
8064 set dummy otool; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8068   $as_echo_n "(cached) " >&6
8069 else
8070   if test -n "$ac_ct_OTOOL"; then
8071   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8072 else
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 for as_dir in $PATH
8075 do
8076   IFS=$as_save_IFS
8077   test -z "$as_dir" && as_dir=.
8078     for ac_exec_ext in '' $ac_executable_extensions; do
8079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8080     ac_cv_prog_ac_ct_OTOOL="otool"
8081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082     break 2
8083   fi
8084 done
8085   done
8086 IFS=$as_save_IFS
8087
8088 fi
8089 fi
8090 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8091 if test -n "$ac_ct_OTOOL"; then
8092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8093 $as_echo "$ac_ct_OTOOL" >&6; }
8094 else
8095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8097 fi
8098
8099   if test "x$ac_ct_OTOOL" = x; then
8100     OTOOL=":"
8101   else
8102     case $cross_compiling:$ac_tool_warned in
8103 yes:)
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8106 ac_tool_warned=yes ;;
8107 esac
8108     OTOOL=$ac_ct_OTOOL
8109   fi
8110 else
8111   OTOOL="$ac_cv_prog_OTOOL"
8112 fi
8113
8114     if test -n "$ac_tool_prefix"; then
8115   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8116 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 $as_echo_n "checking for $ac_word... " >&6; }
8119 if ${ac_cv_prog_OTOOL64+:} false; then :
8120   $as_echo_n "(cached) " >&6
8121 else
8122   if test -n "$OTOOL64"; then
8123   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8124 else
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8127 do
8128   IFS=$as_save_IFS
8129   test -z "$as_dir" && as_dir=.
8130     for ac_exec_ext in '' $ac_executable_extensions; do
8131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8132     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134     break 2
8135   fi
8136 done
8137   done
8138 IFS=$as_save_IFS
8139
8140 fi
8141 fi
8142 OTOOL64=$ac_cv_prog_OTOOL64
8143 if test -n "$OTOOL64"; then
8144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8145 $as_echo "$OTOOL64" >&6; }
8146 else
8147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8149 fi
8150
8151
8152 fi
8153 if test -z "$ac_cv_prog_OTOOL64"; then
8154   ac_ct_OTOOL64=$OTOOL64
8155   # Extract the first word of "otool64", so it can be a program name with args.
8156 set dummy otool64; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8160   $as_echo_n "(cached) " >&6
8161 else
8162   if test -n "$ac_ct_OTOOL64"; then
8163   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8164 else
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8167 do
8168   IFS=$as_save_IFS
8169   test -z "$as_dir" && as_dir=.
8170     for ac_exec_ext in '' $ac_executable_extensions; do
8171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8172     ac_cv_prog_ac_ct_OTOOL64="otool64"
8173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174     break 2
8175   fi
8176 done
8177   done
8178 IFS=$as_save_IFS
8179
8180 fi
8181 fi
8182 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8183 if test -n "$ac_ct_OTOOL64"; then
8184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8185 $as_echo "$ac_ct_OTOOL64" >&6; }
8186 else
8187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8189 fi
8190
8191   if test "x$ac_ct_OTOOL64" = x; then
8192     OTOOL64=":"
8193   else
8194     case $cross_compiling:$ac_tool_warned in
8195 yes:)
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8198 ac_tool_warned=yes ;;
8199 esac
8200     OTOOL64=$ac_ct_OTOOL64
8201   fi
8202 else
8203   OTOOL64="$ac_cv_prog_OTOOL64"
8204 fi
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8233 $as_echo_n "checking for -single_module linker flag... " >&6; }
8234 if ${lt_cv_apple_cc_single_mod+:} false; then :
8235   $as_echo_n "(cached) " >&6
8236 else
8237   lt_cv_apple_cc_single_mod=no
8238       if test -z "$LT_MULTI_MODULE"; then
8239         # By default we will add the -single_module flag. You can override
8240         # by either setting the environment variable LT_MULTI_MODULE
8241         # non-empty at configure time, or by adding -multi_module to the
8242         # link flags.
8243         rm -rf libconftest.dylib*
8244         echo "int foo(void){return 1;}" > conftest.c
8245         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8246 -dynamiclib -Wl,-single_module conftest.c" >&5
8247         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8248           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8249         _lt_result=$?
8250         # If there is a non-empty error log, and "single_module"
8251         # appears in it, assume the flag caused a linker warning
8252         if test -s conftest.err && $GREP single_module conftest.err; then
8253           cat conftest.err >&5
8254         # Otherwise, if the output was created with a 0 exit code from
8255         # the compiler, it worked.
8256         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8257           lt_cv_apple_cc_single_mod=yes
8258         else
8259           cat conftest.err >&5
8260         fi
8261         rm -rf libconftest.dylib*
8262         rm -f conftest.*
8263       fi
8264 fi
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8266 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8267
8268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8269 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8270 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8271   $as_echo_n "(cached) " >&6
8272 else
8273   lt_cv_ld_exported_symbols_list=no
8274       save_LDFLAGS=$LDFLAGS
8275       echo "_main" > conftest.sym
8276       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8277       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278 /* end confdefs.h.  */
8279
8280 int
8281 main ()
8282 {
8283
8284   ;
8285   return 0;
8286 }
8287 _ACEOF
8288 if ac_fn_c_try_link "$LINENO"; then :
8289   lt_cv_ld_exported_symbols_list=yes
8290 else
8291   lt_cv_ld_exported_symbols_list=no
8292 fi
8293 rm -f core conftest.err conftest.$ac_objext \
8294     conftest$ac_exeext conftest.$ac_ext
8295         LDFLAGS=$save_LDFLAGS
8296
8297 fi
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8299 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8300
8301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8302 $as_echo_n "checking for -force_load linker flag... " >&6; }
8303 if ${lt_cv_ld_force_load+:} false; then :
8304   $as_echo_n "(cached) " >&6
8305 else
8306   lt_cv_ld_force_load=no
8307       cat > conftest.c << _LT_EOF
8308 int forced_loaded() { return 2;}
8309 _LT_EOF
8310       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8311       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8312       echo "$AR cru libconftest.a conftest.o" >&5
8313       $AR cru libconftest.a conftest.o 2>&5
8314       echo "$RANLIB libconftest.a" >&5
8315       $RANLIB libconftest.a 2>&5
8316       cat > conftest.c << _LT_EOF
8317 int main() { return 0;}
8318 _LT_EOF
8319       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8320       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8321       _lt_result=$?
8322       if test -s conftest.err && $GREP force_load conftest.err; then
8323         cat conftest.err >&5
8324       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8325         lt_cv_ld_force_load=yes
8326       else
8327         cat conftest.err >&5
8328       fi
8329         rm -f conftest.err libconftest.a conftest conftest.c
8330         rm -rf conftest.dSYM
8331
8332 fi
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8334 $as_echo "$lt_cv_ld_force_load" >&6; }
8335     case $host_os in
8336     rhapsody* | darwin1.[012])
8337       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8338     darwin1.*)
8339       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8340     darwin*) # darwin 5.x on
8341       # if running on 10.5 or later, the deployment target defaults
8342       # to the OS version, if on x86, and 10.4, the deployment
8343       # target defaults to 10.4. Don't you love it?
8344       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8345         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8346           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8347         10.[012][,.]*)
8348           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8349         10.*)
8350           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8351       esac
8352     ;;
8353   esac
8354     if test yes = "$lt_cv_apple_cc_single_mod"; then
8355       _lt_dar_single_mod='$single_module'
8356     fi
8357     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8358       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8359     else
8360       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8361     fi
8362     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8363       _lt_dsymutil='~$DSYMUTIL $lib || :'
8364     else
8365       _lt_dsymutil=
8366     fi
8367     ;;
8368   esac
8369
8370 # func_munge_path_list VARIABLE PATH
8371 # -----------------------------------
8372 # VARIABLE is name of variable containing _space_ separated list of
8373 # directories to be munged by the contents of PATH, which is string
8374 # having a format:
8375 # "DIR[:DIR]:"
8376 #       string "DIR[ DIR]" will be prepended to VARIABLE
8377 # ":DIR[:DIR]"
8378 #       string "DIR[ DIR]" will be appended to VARIABLE
8379 # "DIRP[:DIRP]::[DIRA:]DIRA"
8380 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8381 #       "DIRA[ DIRA]" will be appended to VARIABLE
8382 # "DIR[:DIR]"
8383 #       VARIABLE will be replaced by "DIR[ DIR]"
8384 func_munge_path_list ()
8385 {
8386     case x$2 in
8387     x)
8388         ;;
8389     *:)
8390         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8391         ;;
8392     x:*)
8393         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8394         ;;
8395     *::*)
8396         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8397         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8398         ;;
8399     *)
8400         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8401         ;;
8402     esac
8403 }
8404
8405 ac_ext=c
8406 ac_cpp='$CPP $CPPFLAGS'
8407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8411 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8412 # On Suns, sometimes $CPP names a directory.
8413 if test -n "$CPP" && test -d "$CPP"; then
8414   CPP=
8415 fi
8416 if test -z "$CPP"; then
8417   if ${ac_cv_prog_CPP+:} false; then :
8418   $as_echo_n "(cached) " >&6
8419 else
8420       # Double quotes because CPP needs to be expanded
8421     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8422     do
8423       ac_preproc_ok=false
8424 for ac_c_preproc_warn_flag in '' yes
8425 do
8426   # Use a header file that comes with gcc, so configuring glibc
8427   # with a fresh cross-compiler works.
8428   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8429   # <limits.h> exists even on freestanding compilers.
8430   # On the NeXT, cc -E runs the code through the compiler's parser,
8431   # not just through cpp. "Syntax error" is here to catch this case.
8432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h.  */
8434 #ifdef __STDC__
8435 # include <limits.h>
8436 #else
8437 # include <assert.h>
8438 #endif
8439                      Syntax error
8440 _ACEOF
8441 if ac_fn_c_try_cpp "$LINENO"; then :
8442
8443 else
8444   # Broken: fails on valid input.
8445 continue
8446 fi
8447 rm -f conftest.err conftest.i conftest.$ac_ext
8448
8449   # OK, works on sane cases.  Now check whether nonexistent headers
8450   # can be detected and how.
8451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h.  */
8453 #include <ac_nonexistent.h>
8454 _ACEOF
8455 if ac_fn_c_try_cpp "$LINENO"; then :
8456   # Broken: success on invalid input.
8457 continue
8458 else
8459   # Passes both tests.
8460 ac_preproc_ok=:
8461 break
8462 fi
8463 rm -f conftest.err conftest.i conftest.$ac_ext
8464
8465 done
8466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8467 rm -f conftest.i conftest.err conftest.$ac_ext
8468 if $ac_preproc_ok; then :
8469   break
8470 fi
8471
8472     done
8473     ac_cv_prog_CPP=$CPP
8474
8475 fi
8476   CPP=$ac_cv_prog_CPP
8477 else
8478   ac_cv_prog_CPP=$CPP
8479 fi
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8481 $as_echo "$CPP" >&6; }
8482 ac_preproc_ok=false
8483 for ac_c_preproc_warn_flag in '' yes
8484 do
8485   # Use a header file that comes with gcc, so configuring glibc
8486   # with a fresh cross-compiler works.
8487   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8488   # <limits.h> exists even on freestanding compilers.
8489   # On the NeXT, cc -E runs the code through the compiler's parser,
8490   # not just through cpp. "Syntax error" is here to catch this case.
8491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h.  */
8493 #ifdef __STDC__
8494 # include <limits.h>
8495 #else
8496 # include <assert.h>
8497 #endif
8498                      Syntax error
8499 _ACEOF
8500 if ac_fn_c_try_cpp "$LINENO"; then :
8501
8502 else
8503   # Broken: fails on valid input.
8504 continue
8505 fi
8506 rm -f conftest.err conftest.i conftest.$ac_ext
8507
8508   # OK, works on sane cases.  Now check whether nonexistent headers
8509   # can be detected and how.
8510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h.  */
8512 #include <ac_nonexistent.h>
8513 _ACEOF
8514 if ac_fn_c_try_cpp "$LINENO"; then :
8515   # Broken: success on invalid input.
8516 continue
8517 else
8518   # Passes both tests.
8519 ac_preproc_ok=:
8520 break
8521 fi
8522 rm -f conftest.err conftest.i conftest.$ac_ext
8523
8524 done
8525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8526 rm -f conftest.i conftest.err conftest.$ac_ext
8527 if $ac_preproc_ok; then :
8528
8529 else
8530   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8532 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8533 See \`config.log' for more details" "$LINENO" 5; }
8534 fi
8535
8536 ac_ext=c
8537 ac_cpp='$CPP $CPPFLAGS'
8538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8541
8542
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8544 $as_echo_n "checking for ANSI C header files... " >&6; }
8545 if ${ac_cv_header_stdc+:} false; then :
8546   $as_echo_n "(cached) " >&6
8547 else
8548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h.  */
8550 #include <stdlib.h>
8551 #include <stdarg.h>
8552 #include <string.h>
8553 #include <float.h>
8554
8555 int
8556 main ()
8557 {
8558
8559   ;
8560   return 0;
8561 }
8562 _ACEOF
8563 if ac_fn_c_try_compile "$LINENO"; then :
8564   ac_cv_header_stdc=yes
8565 else
8566   ac_cv_header_stdc=no
8567 fi
8568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8569
8570 if test $ac_cv_header_stdc = yes; then
8571   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8573 /* end confdefs.h.  */
8574 #include <string.h>
8575
8576 _ACEOF
8577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8578   $EGREP "memchr" >/dev/null 2>&1; then :
8579
8580 else
8581   ac_cv_header_stdc=no
8582 fi
8583 rm -f conftest*
8584
8585 fi
8586
8587 if test $ac_cv_header_stdc = yes; then
8588   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h.  */
8591 #include <stdlib.h>
8592
8593 _ACEOF
8594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8595   $EGREP "free" >/dev/null 2>&1; then :
8596
8597 else
8598   ac_cv_header_stdc=no
8599 fi
8600 rm -f conftest*
8601
8602 fi
8603
8604 if test $ac_cv_header_stdc = yes; then
8605   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8606   if test "$cross_compiling" = yes; then :
8607   :
8608 else
8609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h.  */
8611 #include <ctype.h>
8612 #include <stdlib.h>
8613 #if ((' ' & 0x0FF) == 0x020)
8614 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8615 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8616 #else
8617 # define ISLOWER(c) \
8618                    (('a' <= (c) && (c) <= 'i') \
8619                      || ('j' <= (c) && (c) <= 'r') \
8620                      || ('s' <= (c) && (c) <= 'z'))
8621 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8622 #endif
8623
8624 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8625 int
8626 main ()
8627 {
8628   int i;
8629   for (i = 0; i < 256; i++)
8630     if (XOR (islower (i), ISLOWER (i))
8631         || toupper (i) != TOUPPER (i))
8632       return 2;
8633   return 0;
8634 }
8635 _ACEOF
8636 if ac_fn_c_try_run "$LINENO"; then :
8637
8638 else
8639   ac_cv_header_stdc=no
8640 fi
8641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8642   conftest.$ac_objext conftest.beam conftest.$ac_ext
8643 fi
8644
8645 fi
8646 fi
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8648 $as_echo "$ac_cv_header_stdc" >&6; }
8649 if test $ac_cv_header_stdc = yes; then
8650
8651 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8652
8653 fi
8654
8655 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8656 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8657                   inttypes.h stdint.h unistd.h
8658 do :
8659   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8660 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8661 "
8662 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8663   cat >>confdefs.h <<_ACEOF
8664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8665 _ACEOF
8666
8667 fi
8668
8669 done
8670
8671
8672 for ac_header in dlfcn.h
8673 do :
8674   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8675 "
8676 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8677   cat >>confdefs.h <<_ACEOF
8678 #define HAVE_DLFCN_H 1
8679 _ACEOF
8680
8681 fi
8682
8683 done
8684
8685
8686
8687
8688 func_stripname_cnf ()
8689 {
8690   case $2 in
8691   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8692   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8693   esac
8694 } # func_stripname_cnf
8695
8696
8697
8698
8699
8700 # Set options
8701 enable_win32_dll=yes
8702
8703 case $host in
8704 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8705   if test -n "$ac_tool_prefix"; then
8706   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8707 set dummy ${ac_tool_prefix}as; ac_word=$2
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8709 $as_echo_n "checking for $ac_word... " >&6; }
8710 if ${ac_cv_prog_AS+:} false; then :
8711   $as_echo_n "(cached) " >&6
8712 else
8713   if test -n "$AS"; then
8714   ac_cv_prog_AS="$AS" # Let the user override the test.
8715 else
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717 for as_dir in $PATH
8718 do
8719   IFS=$as_save_IFS
8720   test -z "$as_dir" && as_dir=.
8721     for ac_exec_ext in '' $ac_executable_extensions; do
8722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8723     ac_cv_prog_AS="${ac_tool_prefix}as"
8724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8725     break 2
8726   fi
8727 done
8728   done
8729 IFS=$as_save_IFS
8730
8731 fi
8732 fi
8733 AS=$ac_cv_prog_AS
8734 if test -n "$AS"; then
8735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8736 $as_echo "$AS" >&6; }
8737 else
8738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 $as_echo "no" >&6; }
8740 fi
8741
8742
8743 fi
8744 if test -z "$ac_cv_prog_AS"; then
8745   ac_ct_AS=$AS
8746   # Extract the first word of "as", so it can be a program name with args.
8747 set dummy as; ac_word=$2
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749 $as_echo_n "checking for $ac_word... " >&6; }
8750 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8751   $as_echo_n "(cached) " >&6
8752 else
8753   if test -n "$ac_ct_AS"; then
8754   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8755 else
8756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757 for as_dir in $PATH
8758 do
8759   IFS=$as_save_IFS
8760   test -z "$as_dir" && as_dir=.
8761     for ac_exec_ext in '' $ac_executable_extensions; do
8762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763     ac_cv_prog_ac_ct_AS="as"
8764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765     break 2
8766   fi
8767 done
8768   done
8769 IFS=$as_save_IFS
8770
8771 fi
8772 fi
8773 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8774 if test -n "$ac_ct_AS"; then
8775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8776 $as_echo "$ac_ct_AS" >&6; }
8777 else
8778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 $as_echo "no" >&6; }
8780 fi
8781
8782   if test "x$ac_ct_AS" = x; then
8783     AS="false"
8784   else
8785     case $cross_compiling:$ac_tool_warned in
8786 yes:)
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8789 ac_tool_warned=yes ;;
8790 esac
8791     AS=$ac_ct_AS
8792   fi
8793 else
8794   AS="$ac_cv_prog_AS"
8795 fi
8796
8797   if test -n "$ac_tool_prefix"; then
8798   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8799 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801 $as_echo_n "checking for $ac_word... " >&6; }
8802 if ${ac_cv_prog_DLLTOOL+:} false; then :
8803   $as_echo_n "(cached) " >&6
8804 else
8805   if test -n "$DLLTOOL"; then
8806   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8807 else
8808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809 for as_dir in $PATH
8810 do
8811   IFS=$as_save_IFS
8812   test -z "$as_dir" && as_dir=.
8813     for ac_exec_ext in '' $ac_executable_extensions; do
8814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8815     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8817     break 2
8818   fi
8819 done
8820   done
8821 IFS=$as_save_IFS
8822
8823 fi
8824 fi
8825 DLLTOOL=$ac_cv_prog_DLLTOOL
8826 if test -n "$DLLTOOL"; then
8827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8828 $as_echo "$DLLTOOL" >&6; }
8829 else
8830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8832 fi
8833
8834
8835 fi
8836 if test -z "$ac_cv_prog_DLLTOOL"; then
8837   ac_ct_DLLTOOL=$DLLTOOL
8838   # Extract the first word of "dlltool", so it can be a program name with args.
8839 set dummy dlltool; ac_word=$2
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841 $as_echo_n "checking for $ac_word... " >&6; }
8842 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8843   $as_echo_n "(cached) " >&6
8844 else
8845   if test -n "$ac_ct_DLLTOOL"; then
8846   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8847 else
8848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849 for as_dir in $PATH
8850 do
8851   IFS=$as_save_IFS
8852   test -z "$as_dir" && as_dir=.
8853     for ac_exec_ext in '' $ac_executable_extensions; do
8854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8855     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8857     break 2
8858   fi
8859 done
8860   done
8861 IFS=$as_save_IFS
8862
8863 fi
8864 fi
8865 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8866 if test -n "$ac_ct_DLLTOOL"; then
8867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8868 $as_echo "$ac_ct_DLLTOOL" >&6; }
8869 else
8870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871 $as_echo "no" >&6; }
8872 fi
8873
8874   if test "x$ac_ct_DLLTOOL" = x; then
8875     DLLTOOL="false"
8876   else
8877     case $cross_compiling:$ac_tool_warned in
8878 yes:)
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8881 ac_tool_warned=yes ;;
8882 esac
8883     DLLTOOL=$ac_ct_DLLTOOL
8884   fi
8885 else
8886   DLLTOOL="$ac_cv_prog_DLLTOOL"
8887 fi
8888
8889   if test -n "$ac_tool_prefix"; then
8890   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8891 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893 $as_echo_n "checking for $ac_word... " >&6; }
8894 if ${ac_cv_prog_OBJDUMP+:} false; then :
8895   $as_echo_n "(cached) " >&6
8896 else
8897   if test -n "$OBJDUMP"; then
8898   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8899 else
8900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8901 for as_dir in $PATH
8902 do
8903   IFS=$as_save_IFS
8904   test -z "$as_dir" && as_dir=.
8905     for ac_exec_ext in '' $ac_executable_extensions; do
8906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8907     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8909     break 2
8910   fi
8911 done
8912   done
8913 IFS=$as_save_IFS
8914
8915 fi
8916 fi
8917 OBJDUMP=$ac_cv_prog_OBJDUMP
8918 if test -n "$OBJDUMP"; then
8919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8920 $as_echo "$OBJDUMP" >&6; }
8921 else
8922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 $as_echo "no" >&6; }
8924 fi
8925
8926
8927 fi
8928 if test -z "$ac_cv_prog_OBJDUMP"; then
8929   ac_ct_OBJDUMP=$OBJDUMP
8930   # Extract the first word of "objdump", so it can be a program name with args.
8931 set dummy objdump; ac_word=$2
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933 $as_echo_n "checking for $ac_word... " >&6; }
8934 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8935   $as_echo_n "(cached) " >&6
8936 else
8937   if test -n "$ac_ct_OBJDUMP"; then
8938   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8939 else
8940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941 for as_dir in $PATH
8942 do
8943   IFS=$as_save_IFS
8944   test -z "$as_dir" && as_dir=.
8945     for ac_exec_ext in '' $ac_executable_extensions; do
8946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8947     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8949     break 2
8950   fi
8951 done
8952   done
8953 IFS=$as_save_IFS
8954
8955 fi
8956 fi
8957 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8958 if test -n "$ac_ct_OBJDUMP"; then
8959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8960 $as_echo "$ac_ct_OBJDUMP" >&6; }
8961 else
8962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963 $as_echo "no" >&6; }
8964 fi
8965
8966   if test "x$ac_ct_OBJDUMP" = x; then
8967     OBJDUMP="false"
8968   else
8969     case $cross_compiling:$ac_tool_warned in
8970 yes:)
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8973 ac_tool_warned=yes ;;
8974 esac
8975     OBJDUMP=$ac_ct_OBJDUMP
8976   fi
8977 else
8978   OBJDUMP="$ac_cv_prog_OBJDUMP"
8979 fi
8980
8981   ;;
8982 esac
8983
8984 test -z "$AS" && AS=as
8985
8986
8987
8988
8989
8990 test -z "$DLLTOOL" && DLLTOOL=dlltool
8991
8992
8993
8994
8995
8996 test -z "$OBJDUMP" && OBJDUMP=objdump
8997
8998
8999
9000
9001
9002
9003
9004         enable_dlopen=no
9005
9006
9007
9008             # Check whether --enable-shared was given.
9009 if test "${enable_shared+set}" = set; then :
9010   enableval=$enable_shared; p=${PACKAGE-default}
9011     case $enableval in
9012     yes) enable_shared=yes ;;
9013     no) enable_shared=no ;;
9014     *)
9015       enable_shared=no
9016       # Look at the argument we got.  We use all the common list separators.
9017       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9018       for pkg in $enableval; do
9019         IFS=$lt_save_ifs
9020         if test "X$pkg" = "X$p"; then
9021           enable_shared=yes
9022         fi
9023       done
9024       IFS=$lt_save_ifs
9025       ;;
9026     esac
9027 else
9028   enable_shared=yes
9029 fi
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039   # Check whether --enable-static was given.
9040 if test "${enable_static+set}" = set; then :
9041   enableval=$enable_static; p=${PACKAGE-default}
9042     case $enableval in
9043     yes) enable_static=yes ;;
9044     no) enable_static=no ;;
9045     *)
9046      enable_static=no
9047       # Look at the argument we got.  We use all the common list separators.
9048       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9049       for pkg in $enableval; do
9050         IFS=$lt_save_ifs
9051         if test "X$pkg" = "X$p"; then
9052           enable_static=yes
9053         fi
9054       done
9055       IFS=$lt_save_ifs
9056       ;;
9057     esac
9058 else
9059   enable_static=yes
9060 fi
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071 # Check whether --with-pic was given.
9072 if test "${with_pic+set}" = set; then :
9073   withval=$with_pic; lt_p=${PACKAGE-default}
9074     case $withval in
9075     yes|no) pic_mode=$withval ;;
9076     *)
9077       pic_mode=default
9078       # Look at the argument we got.  We use all the common list separators.
9079       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9080       for lt_pkg in $withval; do
9081         IFS=$lt_save_ifs
9082         if test "X$lt_pkg" = "X$lt_p"; then
9083           pic_mode=yes
9084         fi
9085       done
9086       IFS=$lt_save_ifs
9087       ;;
9088     esac
9089 else
9090   pic_mode=default
9091 fi
9092
9093
9094
9095
9096
9097
9098
9099
9100   # Check whether --enable-fast-install was given.
9101 if test "${enable_fast_install+set}" = set; then :
9102   enableval=$enable_fast_install; p=${PACKAGE-default}
9103     case $enableval in
9104     yes) enable_fast_install=yes ;;
9105     no) enable_fast_install=no ;;
9106     *)
9107       enable_fast_install=no
9108       # Look at the argument we got.  We use all the common list separators.
9109       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9110       for pkg in $enableval; do
9111         IFS=$lt_save_ifs
9112         if test "X$pkg" = "X$p"; then
9113           enable_fast_install=yes
9114         fi
9115       done
9116       IFS=$lt_save_ifs
9117       ;;
9118     esac
9119 else
9120   enable_fast_install=yes
9121 fi
9122
9123
9124
9125
9126
9127
9128
9129
9130   shared_archive_member_spec=
9131 case $host,$enable_shared in
9132 power*-*-aix[5-9]*,yes)
9133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9134 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9135
9136 # Check whether --with-aix-soname was given.
9137 if test "${with_aix_soname+set}" = set; then :
9138   withval=$with_aix_soname; case $withval in
9139     aix|svr4|both)
9140       ;;
9141     *)
9142       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9143       ;;
9144     esac
9145     lt_cv_with_aix_soname=$with_aix_soname
9146 else
9147   if ${lt_cv_with_aix_soname+:} false; then :
9148   $as_echo_n "(cached) " >&6
9149 else
9150   lt_cv_with_aix_soname=aix
9151 fi
9152
9153     with_aix_soname=$lt_cv_with_aix_soname
9154 fi
9155
9156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9157 $as_echo "$with_aix_soname" >&6; }
9158   if test aix != "$with_aix_soname"; then
9159     # For the AIX way of multilib, we name the shared archive member
9160     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9161     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9162     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9163     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9164     if test 64 = "${OBJECT_MODE-32}"; then
9165       shared_archive_member_spec=shr_64
9166     else
9167       shared_archive_member_spec=shr
9168     fi
9169   fi
9170   ;;
9171 *)
9172   with_aix_soname=aix
9173   ;;
9174 esac
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185 # This can be used to rebuild libtool when needed
9186 LIBTOOL_DEPS=$ltmain
9187
9188 # Always use our own libtool.
9189 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220 test -z "$LN_S" && LN_S="ln -s"
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235 if test -n "${ZSH_VERSION+set}"; then
9236    setopt NO_GLOB_SUBST
9237 fi
9238
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9240 $as_echo_n "checking for objdir... " >&6; }
9241 if ${lt_cv_objdir+:} false; then :
9242   $as_echo_n "(cached) " >&6
9243 else
9244   rm -f .libs 2>/dev/null
9245 mkdir .libs 2>/dev/null
9246 if test -d .libs; then
9247   lt_cv_objdir=.libs
9248 else
9249   # MS-DOS does not allow filenames that begin with a dot.
9250   lt_cv_objdir=_libs
9251 fi
9252 rmdir .libs 2>/dev/null
9253 fi
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9255 $as_echo "$lt_cv_objdir" >&6; }
9256 objdir=$lt_cv_objdir
9257
9258
9259
9260
9261
9262 cat >>confdefs.h <<_ACEOF
9263 #define LT_OBJDIR "$lt_cv_objdir/"
9264 _ACEOF
9265
9266
9267
9268
9269 case $host_os in
9270 aix3*)
9271   # AIX sometimes has problems with the GCC collect2 program.  For some
9272   # reason, if we set the COLLECT_NAMES environment variable, the problems
9273   # vanish in a puff of smoke.
9274   if test set != "${COLLECT_NAMES+set}"; then
9275     COLLECT_NAMES=
9276     export COLLECT_NAMES
9277   fi
9278   ;;
9279 esac
9280
9281 # Global variables:
9282 ofile=libtool
9283 can_build_shared=yes
9284
9285 # All known linkers require a '.a' archive for static linking (except MSVC,
9286 # which needs '.lib').
9287 libext=a
9288
9289 with_gnu_ld=$lt_cv_prog_gnu_ld
9290
9291 old_CC=$CC
9292 old_CFLAGS=$CFLAGS
9293
9294 # Set sane defaults for various variables
9295 test -z "$CC" && CC=cc
9296 test -z "$LTCC" && LTCC=$CC
9297 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9298 test -z "$LD" && LD=ld
9299 test -z "$ac_objext" && ac_objext=o
9300
9301 func_cc_basename $compiler
9302 cc_basename=$func_cc_basename_result
9303
9304
9305 # Only perform the check for file, if the check method requires it
9306 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9307 case $deplibs_check_method in
9308 file_magic*)
9309   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9311 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9312 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9313   $as_echo_n "(cached) " >&6
9314 else
9315   case $MAGIC_CMD in
9316 [\\/*] |  ?:[\\/]*)
9317   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9318   ;;
9319 *)
9320   lt_save_MAGIC_CMD=$MAGIC_CMD
9321   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9322   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9323   for ac_dir in $ac_dummy; do
9324     IFS=$lt_save_ifs
9325     test -z "$ac_dir" && ac_dir=.
9326     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9327       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9328       if test -n "$file_magic_test_file"; then
9329         case $deplibs_check_method in
9330         "file_magic "*)
9331           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9332           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9333           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9334             $EGREP "$file_magic_regex" > /dev/null; then
9335             :
9336           else
9337             cat <<_LT_EOF 1>&2
9338
9339 *** Warning: the command libtool uses to detect shared libraries,
9340 *** $file_magic_cmd, produces output that libtool cannot recognize.
9341 *** The result is that libtool may fail to recognize shared libraries
9342 *** as such.  This will affect the creation of libtool libraries that
9343 *** depend on shared libraries, but programs linked with such libtool
9344 *** libraries will work regardless of this problem.  Nevertheless, you
9345 *** may want to report the problem to your system manager and/or to
9346 *** bug-libtool@gnu.org
9347
9348 _LT_EOF
9349           fi ;;
9350         esac
9351       fi
9352       break
9353     fi
9354   done
9355   IFS=$lt_save_ifs
9356   MAGIC_CMD=$lt_save_MAGIC_CMD
9357   ;;
9358 esac
9359 fi
9360
9361 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9362 if test -n "$MAGIC_CMD"; then
9363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9364 $as_echo "$MAGIC_CMD" >&6; }
9365 else
9366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367 $as_echo "no" >&6; }
9368 fi
9369
9370
9371
9372
9373
9374 if test -z "$lt_cv_path_MAGIC_CMD"; then
9375   if test -n "$ac_tool_prefix"; then
9376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9377 $as_echo_n "checking for file... " >&6; }
9378 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9379   $as_echo_n "(cached) " >&6
9380 else
9381   case $MAGIC_CMD in
9382 [\\/*] |  ?:[\\/]*)
9383   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9384   ;;
9385 *)
9386   lt_save_MAGIC_CMD=$MAGIC_CMD
9387   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9388   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9389   for ac_dir in $ac_dummy; do
9390     IFS=$lt_save_ifs
9391     test -z "$ac_dir" && ac_dir=.
9392     if test -f "$ac_dir/file"; then
9393       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9394       if test -n "$file_magic_test_file"; then
9395         case $deplibs_check_method in
9396         "file_magic "*)
9397           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9398           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9399           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9400             $EGREP "$file_magic_regex" > /dev/null; then
9401             :
9402           else
9403             cat <<_LT_EOF 1>&2
9404
9405 *** Warning: the command libtool uses to detect shared libraries,
9406 *** $file_magic_cmd, produces output that libtool cannot recognize.
9407 *** The result is that libtool may fail to recognize shared libraries
9408 *** as such.  This will affect the creation of libtool libraries that
9409 *** depend on shared libraries, but programs linked with such libtool
9410 *** libraries will work regardless of this problem.  Nevertheless, you
9411 *** may want to report the problem to your system manager and/or to
9412 *** bug-libtool@gnu.org
9413
9414 _LT_EOF
9415           fi ;;
9416         esac
9417       fi
9418       break
9419     fi
9420   done
9421   IFS=$lt_save_ifs
9422   MAGIC_CMD=$lt_save_MAGIC_CMD
9423   ;;
9424 esac
9425 fi
9426
9427 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9428 if test -n "$MAGIC_CMD"; then
9429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9430 $as_echo "$MAGIC_CMD" >&6; }
9431 else
9432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9433 $as_echo "no" >&6; }
9434 fi
9435
9436
9437   else
9438     MAGIC_CMD=:
9439   fi
9440 fi
9441
9442   fi
9443   ;;
9444 esac
9445
9446 # Use C for the default configuration in the libtool script
9447
9448 lt_save_CC=$CC
9449 ac_ext=c
9450 ac_cpp='$CPP $CPPFLAGS'
9451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9454
9455
9456 # Source file extension for C test sources.
9457 ac_ext=c
9458
9459 # Object file extension for compiled C test sources.
9460 objext=o
9461 objext=$objext
9462
9463 # Code to be used in simple compile tests
9464 lt_simple_compile_test_code="int some_variable = 0;"
9465
9466 # Code to be used in simple link tests
9467 lt_simple_link_test_code='int main(){return(0);}'
9468
9469
9470
9471
9472
9473
9474
9475 # If no C compiler was specified, use CC.
9476 LTCC=${LTCC-"$CC"}
9477
9478 # If no C compiler flags were specified, use CFLAGS.
9479 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9480
9481 # Allow CC to be a program name with arguments.
9482 compiler=$CC
9483
9484 # Save the default compiler, since it gets overwritten when the other
9485 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9486 compiler_DEFAULT=$CC
9487
9488 # save warnings/boilerplate of simple test code
9489 ac_outfile=conftest.$ac_objext
9490 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9491 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9492 _lt_compiler_boilerplate=`cat conftest.err`
9493 $RM conftest*
9494
9495 ac_outfile=conftest.$ac_objext
9496 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9497 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9498 _lt_linker_boilerplate=`cat conftest.err`
9499 $RM -r conftest*
9500
9501
9502 ## CAVEAT EMPTOR:
9503 ## There is no encapsulation within the following macros, do not change
9504 ## the running order or otherwise move them around unless you know exactly
9505 ## what you are doing...
9506 if test -n "$compiler"; then
9507
9508 lt_prog_compiler_no_builtin_flag=
9509
9510 if test yes = "$GCC"; then
9511   case $cc_basename in
9512   nvcc*)
9513     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9514   *)
9515     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9516   esac
9517
9518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9519 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9520 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9521   $as_echo_n "(cached) " >&6
9522 else
9523   lt_cv_prog_compiler_rtti_exceptions=no
9524    ac_outfile=conftest.$ac_objext
9525    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9526    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9527    # Insert the option either (1) after the last *FLAGS variable, or
9528    # (2) before a word containing "conftest.", or (3) at the end.
9529    # Note that $ac_compile itself does not contain backslashes and begins
9530    # with a dollar sign (not a hyphen), so the echo should work correctly.
9531    # The option is referenced via a variable to avoid confusing sed.
9532    lt_compile=`echo "$ac_compile" | $SED \
9533    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9534    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9535    -e 's:$: $lt_compiler_flag:'`
9536    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9537    (eval "$lt_compile" 2>conftest.err)
9538    ac_status=$?
9539    cat conftest.err >&5
9540    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541    if (exit $ac_status) && test -s "$ac_outfile"; then
9542      # The compiler can only warn and ignore the option if not recognized
9543      # So say no if there are warnings other than the usual output.
9544      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9545      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9546      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9547        lt_cv_prog_compiler_rtti_exceptions=yes
9548      fi
9549    fi
9550    $RM conftest*
9551
9552 fi
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9554 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9555
9556 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9557     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9558 else
9559     :
9560 fi
9561
9562 fi
9563
9564
9565
9566
9567
9568
9569   lt_prog_compiler_wl=
9570 lt_prog_compiler_pic=
9571 lt_prog_compiler_static=
9572
9573
9574   if test yes = "$GCC"; then
9575     lt_prog_compiler_wl='-Wl,'
9576     lt_prog_compiler_static='-static'
9577
9578     case $host_os in
9579       aix*)
9580       # All AIX code is PIC.
9581       if test ia64 = "$host_cpu"; then
9582         # AIX 5 now supports IA64 processor
9583         lt_prog_compiler_static='-Bstatic'
9584       fi
9585       lt_prog_compiler_pic='-fPIC'
9586       ;;
9587
9588     amigaos*)
9589       case $host_cpu in
9590       powerpc)
9591             # see comment about AmigaOS4 .so support
9592             lt_prog_compiler_pic='-fPIC'
9593         ;;
9594       m68k)
9595             # FIXME: we need at least 68020 code to build shared libraries, but
9596             # adding the '-m68020' flag to GCC prevents building anything better,
9597             # like '-m68040'.
9598             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9599         ;;
9600       esac
9601       ;;
9602
9603     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9604       # PIC is the default for these OSes.
9605       ;;
9606
9607     mingw* | cygwin* | pw32* | os2* | cegcc*)
9608       # This hack is so that the source file can tell whether it is being
9609       # built for inclusion in a dll (and should export symbols for example).
9610       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9611       # (--disable-auto-import) libraries
9612       lt_prog_compiler_pic='-DDLL_EXPORT'
9613       case $host_os in
9614       os2*)
9615         lt_prog_compiler_static='$wl-static'
9616         ;;
9617       esac
9618       ;;
9619
9620     darwin* | rhapsody*)
9621       # PIC is the default on this platform
9622       # Common symbols not allowed in MH_DYLIB files
9623       lt_prog_compiler_pic='-fno-common'
9624       ;;
9625
9626     haiku*)
9627       # PIC is the default for Haiku.
9628       # The "-static" flag exists, but is broken.
9629       lt_prog_compiler_static=
9630       ;;
9631
9632     hpux*)
9633       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9634       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9635       # sets the default TLS model and affects inlining.
9636       case $host_cpu in
9637       hppa*64*)
9638         # +Z the default
9639         ;;
9640       *)
9641         lt_prog_compiler_pic='-fPIC'
9642         ;;
9643       esac
9644       ;;
9645
9646     interix[3-9]*)
9647       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9648       # Instead, we relocate shared libraries at runtime.
9649       ;;
9650
9651     msdosdjgpp*)
9652       # Just because we use GCC doesn't mean we suddenly get shared libraries
9653       # on systems that don't support them.
9654       lt_prog_compiler_can_build_shared=no
9655       enable_shared=no
9656       ;;
9657
9658     *nto* | *qnx*)
9659       # QNX uses GNU C++, but need to define -shared option too, otherwise
9660       # it will coredump.
9661       lt_prog_compiler_pic='-fPIC -shared'
9662       ;;
9663
9664     sysv4*MP*)
9665       if test -d /usr/nec; then
9666         lt_prog_compiler_pic=-Kconform_pic
9667       fi
9668       ;;
9669
9670     *)
9671       lt_prog_compiler_pic='-fPIC'
9672       ;;
9673     esac
9674
9675     case $cc_basename in
9676     nvcc*) # Cuda Compiler Driver 2.2
9677       lt_prog_compiler_wl='-Xlinker '
9678       if test -n "$lt_prog_compiler_pic"; then
9679         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9680       fi
9681       ;;
9682     esac
9683   else
9684     # PORTME Check for flag to pass linker flags through the system compiler.
9685     case $host_os in
9686     aix*)
9687       lt_prog_compiler_wl='-Wl,'
9688       if test ia64 = "$host_cpu"; then
9689         # AIX 5 now supports IA64 processor
9690         lt_prog_compiler_static='-Bstatic'
9691       else
9692         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9693       fi
9694       ;;
9695
9696     darwin* | rhapsody*)
9697       # PIC is the default on this platform
9698       # Common symbols not allowed in MH_DYLIB files
9699       lt_prog_compiler_pic='-fno-common'
9700       case $cc_basename in
9701       nagfor*)
9702         # NAG Fortran compiler
9703         lt_prog_compiler_wl='-Wl,-Wl,,'
9704         lt_prog_compiler_pic='-PIC'
9705         lt_prog_compiler_static='-Bstatic'
9706         ;;
9707       esac
9708       ;;
9709
9710     mingw* | cygwin* | pw32* | os2* | cegcc*)
9711       # This hack is so that the source file can tell whether it is being
9712       # built for inclusion in a dll (and should export symbols for example).
9713       lt_prog_compiler_pic='-DDLL_EXPORT'
9714       case $host_os in
9715       os2*)
9716         lt_prog_compiler_static='$wl-static'
9717         ;;
9718       esac
9719       ;;
9720
9721     hpux9* | hpux10* | hpux11*)
9722       lt_prog_compiler_wl='-Wl,'
9723       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9724       # not for PA HP-UX.
9725       case $host_cpu in
9726       hppa*64*|ia64*)
9727         # +Z the default
9728         ;;
9729       *)
9730         lt_prog_compiler_pic='+Z'
9731         ;;
9732       esac
9733       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9734       lt_prog_compiler_static='$wl-a ${wl}archive'
9735       ;;
9736
9737     irix5* | irix6* | nonstopux*)
9738       lt_prog_compiler_wl='-Wl,'
9739       # PIC (with -KPIC) is the default.
9740       lt_prog_compiler_static='-non_shared'
9741       ;;
9742
9743     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9744       case $cc_basename in
9745       # old Intel for x86_64, which still supported -KPIC.
9746       ecc*)
9747         lt_prog_compiler_wl='-Wl,'
9748         lt_prog_compiler_pic='-KPIC'
9749         lt_prog_compiler_static='-static'
9750         ;;
9751       # icc used to be incompatible with GCC.
9752       # ICC 10 doesn't accept -KPIC any more.
9753       icc* | ifort*)
9754         lt_prog_compiler_wl='-Wl,'
9755         lt_prog_compiler_pic='-fPIC'
9756         lt_prog_compiler_static='-static'
9757         ;;
9758       # Lahey Fortran 8.1.
9759       lf95*)
9760         lt_prog_compiler_wl='-Wl,'
9761         lt_prog_compiler_pic='--shared'
9762         lt_prog_compiler_static='--static'
9763         ;;
9764       nagfor*)
9765         # NAG Fortran compiler
9766         lt_prog_compiler_wl='-Wl,-Wl,,'
9767         lt_prog_compiler_pic='-PIC'
9768         lt_prog_compiler_static='-Bstatic'
9769         ;;
9770       tcc*)
9771         # Fabrice Bellard et al's Tiny C Compiler
9772         lt_prog_compiler_wl='-Wl,'
9773         lt_prog_compiler_pic='-fPIC'
9774         lt_prog_compiler_static='-static'
9775         ;;
9776       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9777         # Portland Group compilers (*not* the Pentium gcc compiler,
9778         # which looks to be a dead project)
9779         lt_prog_compiler_wl='-Wl,'
9780         lt_prog_compiler_pic='-fpic'
9781         lt_prog_compiler_static='-Bstatic'
9782         ;;
9783       ccc*)
9784         lt_prog_compiler_wl='-Wl,'
9785         # All Alpha code is PIC.
9786         lt_prog_compiler_static='-non_shared'
9787         ;;
9788       xl* | bgxl* | bgf* | mpixl*)
9789         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9790         lt_prog_compiler_wl='-Wl,'
9791         lt_prog_compiler_pic='-qpic'
9792         lt_prog_compiler_static='-qstaticlink'
9793         ;;
9794       *)
9795         case `$CC -V 2>&1 | sed 5q` in
9796         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9797           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9798           lt_prog_compiler_pic='-KPIC'
9799           lt_prog_compiler_static='-Bstatic'
9800           lt_prog_compiler_wl=''
9801           ;;
9802         *Sun\ F* | *Sun*Fortran*)
9803           lt_prog_compiler_pic='-KPIC'
9804           lt_prog_compiler_static='-Bstatic'
9805           lt_prog_compiler_wl='-Qoption ld '
9806           ;;
9807         *Sun\ C*)
9808           # Sun C 5.9
9809           lt_prog_compiler_pic='-KPIC'
9810           lt_prog_compiler_static='-Bstatic'
9811           lt_prog_compiler_wl='-Wl,'
9812           ;;
9813         *Intel*\ [CF]*Compiler*)
9814           lt_prog_compiler_wl='-Wl,'
9815           lt_prog_compiler_pic='-fPIC'
9816           lt_prog_compiler_static='-static'
9817           ;;
9818         *Portland\ Group*)
9819           lt_prog_compiler_wl='-Wl,'
9820           lt_prog_compiler_pic='-fpic'
9821           lt_prog_compiler_static='-Bstatic'
9822           ;;
9823         esac
9824         ;;
9825       esac
9826       ;;
9827
9828     newsos6)
9829       lt_prog_compiler_pic='-KPIC'
9830       lt_prog_compiler_static='-Bstatic'
9831       ;;
9832
9833     *nto* | *qnx*)
9834       # QNX uses GNU C++, but need to define -shared option too, otherwise
9835       # it will coredump.
9836       lt_prog_compiler_pic='-fPIC -shared'
9837       ;;
9838
9839     osf3* | osf4* | osf5*)
9840       lt_prog_compiler_wl='-Wl,'
9841       # All OSF/1 code is PIC.
9842       lt_prog_compiler_static='-non_shared'
9843       ;;
9844
9845     rdos*)
9846       lt_prog_compiler_static='-non_shared'
9847       ;;
9848
9849     solaris*)
9850       lt_prog_compiler_pic='-KPIC'
9851       lt_prog_compiler_static='-Bstatic'
9852       case $cc_basename in
9853       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9854         lt_prog_compiler_wl='-Qoption ld ';;
9855       *)
9856         lt_prog_compiler_wl='-Wl,';;
9857       esac
9858       ;;
9859
9860     sunos4*)
9861       lt_prog_compiler_wl='-Qoption ld '
9862       lt_prog_compiler_pic='-PIC'
9863       lt_prog_compiler_static='-Bstatic'
9864       ;;
9865
9866     sysv4 | sysv4.2uw2* | sysv4.3*)
9867       lt_prog_compiler_wl='-Wl,'
9868       lt_prog_compiler_pic='-KPIC'
9869       lt_prog_compiler_static='-Bstatic'
9870       ;;
9871
9872     sysv4*MP*)
9873       if test -d /usr/nec; then
9874         lt_prog_compiler_pic='-Kconform_pic'
9875         lt_prog_compiler_static='-Bstatic'
9876       fi
9877       ;;
9878
9879     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9880       lt_prog_compiler_wl='-Wl,'
9881       lt_prog_compiler_pic='-KPIC'
9882       lt_prog_compiler_static='-Bstatic'
9883       ;;
9884
9885     unicos*)
9886       lt_prog_compiler_wl='-Wl,'
9887       lt_prog_compiler_can_build_shared=no
9888       ;;
9889
9890     uts4*)
9891       lt_prog_compiler_pic='-pic'
9892       lt_prog_compiler_static='-Bstatic'
9893       ;;
9894
9895     *)
9896       lt_prog_compiler_can_build_shared=no
9897       ;;
9898     esac
9899   fi
9900
9901 case $host_os in
9902   # For platforms that do not support PIC, -DPIC is meaningless:
9903   *djgpp*)
9904     lt_prog_compiler_pic=
9905     ;;
9906   *)
9907     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9908     ;;
9909 esac
9910
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9912 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9913 if ${lt_cv_prog_compiler_pic+:} false; then :
9914   $as_echo_n "(cached) " >&6
9915 else
9916   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9917 fi
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9919 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9920 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9921
9922 #
9923 # Check to make sure the PIC flag actually works.
9924 #
9925 if test -n "$lt_prog_compiler_pic"; then
9926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9927 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9928 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9929   $as_echo_n "(cached) " >&6
9930 else
9931   lt_cv_prog_compiler_pic_works=no
9932    ac_outfile=conftest.$ac_objext
9933    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9934    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9935    # Insert the option either (1) after the last *FLAGS variable, or
9936    # (2) before a word containing "conftest.", or (3) at the end.
9937    # Note that $ac_compile itself does not contain backslashes and begins
9938    # with a dollar sign (not a hyphen), so the echo should work correctly.
9939    # The option is referenced via a variable to avoid confusing sed.
9940    lt_compile=`echo "$ac_compile" | $SED \
9941    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9942    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9943    -e 's:$: $lt_compiler_flag:'`
9944    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9945    (eval "$lt_compile" 2>conftest.err)
9946    ac_status=$?
9947    cat conftest.err >&5
9948    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949    if (exit $ac_status) && test -s "$ac_outfile"; then
9950      # The compiler can only warn and ignore the option if not recognized
9951      # So say no if there are warnings other than the usual output.
9952      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9953      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9954      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9955        lt_cv_prog_compiler_pic_works=yes
9956      fi
9957    fi
9958    $RM conftest*
9959
9960 fi
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9962 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9963
9964 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9965     case $lt_prog_compiler_pic in
9966      "" | " "*) ;;
9967      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9968      esac
9969 else
9970     lt_prog_compiler_pic=
9971      lt_prog_compiler_can_build_shared=no
9972 fi
9973
9974 fi
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986 #
9987 # Check to make sure the static flag actually works.
9988 #
9989 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9991 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9992 if ${lt_cv_prog_compiler_static_works+:} false; then :
9993   $as_echo_n "(cached) " >&6
9994 else
9995   lt_cv_prog_compiler_static_works=no
9996    save_LDFLAGS=$LDFLAGS
9997    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9998    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9999    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10000      # The linker can only warn and ignore the option if not recognized
10001      # So say no if there are warnings
10002      if test -s conftest.err; then
10003        # Append any errors to the config.log.
10004        cat conftest.err 1>&5
10005        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10006        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10007        if diff conftest.exp conftest.er2 >/dev/null; then
10008          lt_cv_prog_compiler_static_works=yes
10009        fi
10010      else
10011        lt_cv_prog_compiler_static_works=yes
10012      fi
10013    fi
10014    $RM -r conftest*
10015    LDFLAGS=$save_LDFLAGS
10016
10017 fi
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10019 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10020
10021 if test yes = "$lt_cv_prog_compiler_static_works"; then
10022     :
10023 else
10024     lt_prog_compiler_static=
10025 fi
10026
10027
10028
10029
10030
10031
10032
10033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10034 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10035 if ${lt_cv_prog_compiler_c_o+:} false; then :
10036   $as_echo_n "(cached) " >&6
10037 else
10038   lt_cv_prog_compiler_c_o=no
10039    $RM -r conftest 2>/dev/null
10040    mkdir conftest
10041    cd conftest
10042    mkdir out
10043    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10044
10045    lt_compiler_flag="-o out/conftest2.$ac_objext"
10046    # Insert the option either (1) after the last *FLAGS variable, or
10047    # (2) before a word containing "conftest.", or (3) at the end.
10048    # Note that $ac_compile itself does not contain backslashes and begins
10049    # with a dollar sign (not a hyphen), so the echo should work correctly.
10050    lt_compile=`echo "$ac_compile" | $SED \
10051    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10052    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10053    -e 's:$: $lt_compiler_flag:'`
10054    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10055    (eval "$lt_compile" 2>out/conftest.err)
10056    ac_status=$?
10057    cat out/conftest.err >&5
10058    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10060    then
10061      # The compiler can only warn and ignore the option if not recognized
10062      # So say no if there are warnings
10063      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10064      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10065      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10066        lt_cv_prog_compiler_c_o=yes
10067      fi
10068    fi
10069    chmod u+w . 2>&5
10070    $RM conftest*
10071    # SGI C++ compiler will create directory out/ii_files/ for
10072    # template instantiation
10073    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10074    $RM out/* && rmdir out
10075    cd ..
10076    $RM -r conftest
10077    $RM conftest*
10078
10079 fi
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10081 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10082
10083
10084
10085
10086
10087
10088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10089 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10090 if ${lt_cv_prog_compiler_c_o+:} false; then :
10091   $as_echo_n "(cached) " >&6
10092 else
10093   lt_cv_prog_compiler_c_o=no
10094    $RM -r conftest 2>/dev/null
10095    mkdir conftest
10096    cd conftest
10097    mkdir out
10098    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10099
10100    lt_compiler_flag="-o out/conftest2.$ac_objext"
10101    # Insert the option either (1) after the last *FLAGS variable, or
10102    # (2) before a word containing "conftest.", or (3) at the end.
10103    # Note that $ac_compile itself does not contain backslashes and begins
10104    # with a dollar sign (not a hyphen), so the echo should work correctly.
10105    lt_compile=`echo "$ac_compile" | $SED \
10106    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10107    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10108    -e 's:$: $lt_compiler_flag:'`
10109    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10110    (eval "$lt_compile" 2>out/conftest.err)
10111    ac_status=$?
10112    cat out/conftest.err >&5
10113    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10115    then
10116      # The compiler can only warn and ignore the option if not recognized
10117      # So say no if there are warnings
10118      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10119      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10120      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10121        lt_cv_prog_compiler_c_o=yes
10122      fi
10123    fi
10124    chmod u+w . 2>&5
10125    $RM conftest*
10126    # SGI C++ compiler will create directory out/ii_files/ for
10127    # template instantiation
10128    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10129    $RM out/* && rmdir out
10130    cd ..
10131    $RM -r conftest
10132    $RM conftest*
10133
10134 fi
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10136 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10137
10138
10139
10140
10141 hard_links=nottested
10142 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10143   # do not overwrite the value of need_locks provided by the user
10144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10145 $as_echo_n "checking if we can lock with hard links... " >&6; }
10146   hard_links=yes
10147   $RM conftest*
10148   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10149   touch conftest.a
10150   ln conftest.a conftest.b 2>&5 || hard_links=no
10151   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10153 $as_echo "$hard_links" >&6; }
10154   if test no = "$hard_links"; then
10155     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10156 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10157     need_locks=warn
10158   fi
10159 else
10160   need_locks=no
10161 fi
10162
10163
10164
10165
10166
10167
10168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10169 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10170
10171   runpath_var=
10172   allow_undefined_flag=
10173   always_export_symbols=no
10174   archive_cmds=
10175   archive_expsym_cmds=
10176   compiler_needs_object=no
10177   enable_shared_with_static_runtimes=no
10178   export_dynamic_flag_spec=
10179   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10180   hardcode_automatic=no
10181   hardcode_direct=no
10182   hardcode_direct_absolute=no
10183   hardcode_libdir_flag_spec=
10184   hardcode_libdir_separator=
10185   hardcode_minus_L=no
10186   hardcode_shlibpath_var=unsupported
10187   inherit_rpath=no
10188   link_all_deplibs=unknown
10189   module_cmds=
10190   module_expsym_cmds=
10191   old_archive_from_new_cmds=
10192   old_archive_from_expsyms_cmds=
10193   thread_safe_flag_spec=
10194   whole_archive_flag_spec=
10195   # include_expsyms should be a list of space-separated symbols to be *always*
10196   # included in the symbol list
10197   include_expsyms=
10198   # exclude_expsyms can be an extended regexp of symbols to exclude
10199   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10200   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10201   # as well as any symbol that contains 'd'.
10202   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10203   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10204   # platforms (ab)use it in PIC code, but their linkers get confused if
10205   # the symbol is explicitly referenced.  Since portable code cannot
10206   # rely on this symbol name, it's probably fine to never include it in
10207   # preloaded symbol tables.
10208   # Exclude shared library initialization/finalization symbols.
10209   extract_expsyms_cmds=
10210
10211   case $host_os in
10212   cygwin* | mingw* | pw32* | cegcc*)
10213     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10214     # When not using gcc, we currently assume that we are using
10215     # Microsoft Visual C++.
10216     if test yes != "$GCC"; then
10217       with_gnu_ld=no
10218     fi
10219     ;;
10220   interix*)
10221     # we just hope/assume this is gcc and not c89 (= MSVC++)
10222     with_gnu_ld=yes
10223     ;;
10224   openbsd* | bitrig*)
10225     with_gnu_ld=no
10226     ;;
10227   linux* | k*bsd*-gnu | gnu*)
10228     link_all_deplibs=no
10229     ;;
10230   esac
10231
10232   ld_shlibs=yes
10233
10234   # On some targets, GNU ld is compatible enough with the native linker
10235   # that we're better off using the native interface for both.
10236   lt_use_gnu_ld_interface=no
10237   if test yes = "$with_gnu_ld"; then
10238     case $host_os in
10239       aix*)
10240         # The AIX port of GNU ld has always aspired to compatibility
10241         # with the native linker.  However, as the warning in the GNU ld
10242         # block says, versions before 2.19.5* couldn't really create working
10243         # shared libraries, regardless of the interface used.
10244         case `$LD -v 2>&1` in
10245           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10246           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10247           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10248           *)
10249             lt_use_gnu_ld_interface=yes
10250             ;;
10251         esac
10252         ;;
10253       *)
10254         lt_use_gnu_ld_interface=yes
10255         ;;
10256     esac
10257   fi
10258
10259   if test yes = "$lt_use_gnu_ld_interface"; then
10260     # If archive_cmds runs LD, not CC, wlarc should be empty
10261     wlarc='$wl'
10262
10263     # Set some defaults for GNU ld with shared library support. These
10264     # are reset later if shared libraries are not supported. Putting them
10265     # here allows them to be overridden if necessary.
10266     runpath_var=LD_RUN_PATH
10267     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10268     export_dynamic_flag_spec='$wl--export-dynamic'
10269     # ancient GNU ld didn't support --whole-archive et. al.
10270     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10271       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10272     else
10273       whole_archive_flag_spec=
10274     fi
10275     supports_anon_versioning=no
10276     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10277       *GNU\ gold*) supports_anon_versioning=yes ;;
10278       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10279       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10280       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10281       *\ 2.11.*) ;; # other 2.11 versions
10282       *) supports_anon_versioning=yes ;;
10283     esac
10284
10285     # See if GNU ld supports shared libraries.
10286     case $host_os in
10287     aix[3-9]*)
10288       # On AIX/PPC, the GNU linker is very broken
10289       if test ia64 != "$host_cpu"; then
10290         ld_shlibs=no
10291         cat <<_LT_EOF 1>&2
10292
10293 *** Warning: the GNU linker, at least up to release 2.19, is reported
10294 *** to be unable to reliably create shared libraries on AIX.
10295 *** Therefore, libtool is disabling shared libraries support.  If you
10296 *** really care for shared libraries, you may want to install binutils
10297 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10298 *** You will then need to restart the configuration process.
10299
10300 _LT_EOF
10301       fi
10302       ;;
10303
10304     amigaos*)
10305       case $host_cpu in
10306       powerpc)
10307             # see comment about AmigaOS4 .so support
10308             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10309             archive_expsym_cmds=''
10310         ;;
10311       m68k)
10312             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)'
10313             hardcode_libdir_flag_spec='-L$libdir'
10314             hardcode_minus_L=yes
10315         ;;
10316       esac
10317       ;;
10318
10319     beos*)
10320       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10321         allow_undefined_flag=unsupported
10322         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10323         # support --undefined.  This deserves some investigation.  FIXME
10324         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10325       else
10326         ld_shlibs=no
10327       fi
10328       ;;
10329
10330     cygwin* | mingw* | pw32* | cegcc*)
10331       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10332       # as there is no search path for DLLs.
10333       hardcode_libdir_flag_spec='-L$libdir'
10334       export_dynamic_flag_spec='$wl--export-all-symbols'
10335       allow_undefined_flag=unsupported
10336       always_export_symbols=no
10337       enable_shared_with_static_runtimes=yes
10338       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'
10339       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10340
10341       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10342         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10343         # If the export-symbols file already is a .def file, use it as
10344         # is; otherwise, prepend EXPORTS...
10345         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10346           cp $export_symbols $output_objdir/$soname.def;
10347         else
10348           echo EXPORTS > $output_objdir/$soname.def;
10349           cat $export_symbols >> $output_objdir/$soname.def;
10350         fi~
10351         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10352       else
10353         ld_shlibs=no
10354       fi
10355       ;;
10356
10357     haiku*)
10358       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10359       link_all_deplibs=yes
10360       ;;
10361
10362     os2*)
10363       hardcode_libdir_flag_spec='-L$libdir'
10364       hardcode_minus_L=yes
10365       allow_undefined_flag=unsupported
10366       shrext_cmds=.dll
10367       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10368         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10369         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10370         $ECHO EXPORTS >> $output_objdir/$libname.def~
10371         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10372         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10373         emximp -o $lib $output_objdir/$libname.def'
10374       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10375         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10376         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10377         $ECHO EXPORTS >> $output_objdir/$libname.def~
10378         prefix_cmds="$SED"~
10379         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10380           prefix_cmds="$prefix_cmds -e 1d";
10381         fi~
10382         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10383         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10384         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10385         emximp -o $lib $output_objdir/$libname.def'
10386       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10387       enable_shared_with_static_runtimes=yes
10388       ;;
10389
10390     interix[3-9]*)
10391       hardcode_direct=no
10392       hardcode_shlibpath_var=no
10393       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10394       export_dynamic_flag_spec='$wl-E'
10395       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10396       # Instead, shared libraries are loaded at an image base (0x10000000 by
10397       # default) and relocated if they conflict, which is a slow very memory
10398       # consuming and fragmenting process.  To avoid this, we pick a random,
10399       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10400       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10401       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10402       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'
10403       ;;
10404
10405     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10406       tmp_diet=no
10407       if test linux-dietlibc = "$host_os"; then
10408         case $cc_basename in
10409           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10410         esac
10411       fi
10412       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10413          && test no = "$tmp_diet"
10414       then
10415         tmp_addflag=' $pic_flag'
10416         tmp_sharedflag='-shared'
10417         case $cc_basename,$host_cpu in
10418         pgcc*)                          # Portland Group C compiler
10419           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'
10420           tmp_addflag=' $pic_flag'
10421           ;;
10422         pgf77* | pgf90* | pgf95* | pgfortran*)
10423                                         # Portland Group f77 and f90 compilers
10424           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'
10425           tmp_addflag=' $pic_flag -Mnomain' ;;
10426         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10427           tmp_addflag=' -i_dynamic' ;;
10428         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10429           tmp_addflag=' -i_dynamic -nofor_main' ;;
10430         ifc* | ifort*)                  # Intel Fortran compiler
10431           tmp_addflag=' -nofor_main' ;;
10432         lf95*)                          # Lahey Fortran 8.1
10433           whole_archive_flag_spec=
10434           tmp_sharedflag='--shared' ;;
10435         nagfor*)                        # NAGFOR 5.3
10436           tmp_sharedflag='-Wl,-shared' ;;
10437         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10438           tmp_sharedflag='-qmkshrobj'
10439           tmp_addflag= ;;
10440         nvcc*)  # Cuda Compiler Driver 2.2
10441           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'
10442           compiler_needs_object=yes
10443           ;;
10444         esac
10445         case `$CC -V 2>&1 | sed 5q` in
10446         *Sun\ C*)                       # Sun C 5.9
10447           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'
10448           compiler_needs_object=yes
10449           tmp_sharedflag='-G' ;;
10450         *Sun\ F*)                       # Sun Fortran 8.3
10451           tmp_sharedflag='-G' ;;
10452         esac
10453         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10454
10455         if test yes = "$supports_anon_versioning"; then
10456           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10457             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10458             echo "local: *; };" >> $output_objdir/$libname.ver~
10459             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10460         fi
10461
10462         case $cc_basename in
10463         tcc*)
10464           export_dynamic_flag_spec='-rdynamic'
10465           ;;
10466         xlf* | bgf* | bgxlf* | mpixlf*)
10467           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10468           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10469           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10470           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10471           if test yes = "$supports_anon_versioning"; then
10472             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10473               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10474               echo "local: *; };" >> $output_objdir/$libname.ver~
10475               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10476           fi
10477           ;;
10478         esac
10479       else
10480         ld_shlibs=no
10481       fi
10482       ;;
10483
10484     netbsd* | netbsdelf*-gnu)
10485       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10486         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10487         wlarc=
10488       else
10489         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10490         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10491       fi
10492       ;;
10493
10494     solaris*)
10495       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10496         ld_shlibs=no
10497         cat <<_LT_EOF 1>&2
10498
10499 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10500 *** create shared libraries on Solaris systems.  Therefore, libtool
10501 *** is disabling shared libraries support.  We urge you to upgrade GNU
10502 *** binutils to release 2.9.1 or newer.  Another option is to modify
10503 *** your PATH or compiler configuration so that the native linker is
10504 *** used, and then restart.
10505
10506 _LT_EOF
10507       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10508         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10509         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10510       else
10511         ld_shlibs=no
10512       fi
10513       ;;
10514
10515     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10516       case `$LD -v 2>&1` in
10517         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10518         ld_shlibs=no
10519         cat <<_LT_EOF 1>&2
10520
10521 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10522 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10523 *** is disabling shared libraries support.  We urge you to upgrade GNU
10524 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10525 *** your PATH or compiler configuration so that the native linker is
10526 *** used, and then restart.
10527
10528 _LT_EOF
10529         ;;
10530         *)
10531           # For security reasons, it is highly recommended that you always
10532           # use absolute paths for naming shared libraries, and exclude the
10533           # DT_RUNPATH tag from executables and libraries.  But doing so
10534           # requires that you compile everything twice, which is a pain.
10535           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10536             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10537             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10538             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10539           else
10540             ld_shlibs=no
10541           fi
10542         ;;
10543       esac
10544       ;;
10545
10546     sunos4*)
10547       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10548       wlarc=
10549       hardcode_direct=yes
10550       hardcode_shlibpath_var=no
10551       ;;
10552
10553     *)
10554       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10555         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10556         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10557       else
10558         ld_shlibs=no
10559       fi
10560       ;;
10561     esac
10562
10563     if test no = "$ld_shlibs"; then
10564       runpath_var=
10565       hardcode_libdir_flag_spec=
10566       export_dynamic_flag_spec=
10567       whole_archive_flag_spec=
10568     fi
10569   else
10570     # PORTME fill in a description of your system's linker (not GNU ld)
10571     case $host_os in
10572     aix3*)
10573       allow_undefined_flag=unsupported
10574       always_export_symbols=yes
10575       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'
10576       # Note: this linker hardcodes the directories in LIBPATH if there
10577       # are no directories specified by -L.
10578       hardcode_minus_L=yes
10579       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10580         # Neither direct hardcoding nor static linking is supported with a
10581         # broken collect2.
10582         hardcode_direct=unsupported
10583       fi
10584       ;;
10585
10586     aix[4-9]*)
10587       if test ia64 = "$host_cpu"; then
10588         # On IA64, the linker does run time linking by default, so we don't
10589         # have to do anything special.
10590         aix_use_runtimelinking=no
10591         exp_sym_flag='-Bexport'
10592         no_entry_flag=
10593       else
10594         # If we're using GNU nm, then we don't want the "-C" option.
10595         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10596         # Without the "-l" option, or with the "-B" option, AIX nm treats
10597         # weak defined symbols like other global defined symbols, whereas
10598         # GNU nm marks them as "W".
10599         # While the 'weak' keyword is ignored in the Export File, we need
10600         # it in the Import File for the 'aix-soname' feature, so we have
10601         # to replace the "-B" option with "-P" for AIX nm.
10602         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10603           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'
10604         else
10605           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'
10606         fi
10607         aix_use_runtimelinking=no
10608
10609         # Test if we are trying to use run time linking or normal
10610         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10611         # have runtime linking enabled, and use it for executables.
10612         # For shared libraries, we enable/disable runtime linking
10613         # depending on the kind of the shared library created -
10614         # when "with_aix_soname,aix_use_runtimelinking" is:
10615         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10616         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10617         #            lib.a           static archive
10618         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10619         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10620         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10621         #            lib.a(lib.so.V) shared, rtl:no
10622         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10623         #            lib.a           static archive
10624         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10625           for ld_flag in $LDFLAGS; do
10626           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10627             aix_use_runtimelinking=yes
10628             break
10629           fi
10630           done
10631           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10632             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10633             # so we don't have lib.a shared libs to link our executables.
10634             # We have to force runtime linking in this case.
10635             aix_use_runtimelinking=yes
10636             LDFLAGS="$LDFLAGS -Wl,-brtl"
10637           fi
10638           ;;
10639         esac
10640
10641         exp_sym_flag='-bexport'
10642         no_entry_flag='-bnoentry'
10643       fi
10644
10645       # When large executables or shared objects are built, AIX ld can
10646       # have problems creating the table of contents.  If linking a library
10647       # or program results in "error TOC overflow" add -mminimal-toc to
10648       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10649       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10650
10651       archive_cmds=''
10652       hardcode_direct=yes
10653       hardcode_direct_absolute=yes
10654       hardcode_libdir_separator=':'
10655       link_all_deplibs=yes
10656       file_list_spec='$wl-f,'
10657       case $with_aix_soname,$aix_use_runtimelinking in
10658       aix,*) ;; # traditional, no import file
10659       svr4,* | *,yes) # use import file
10660         # The Import File defines what to hardcode.
10661         hardcode_direct=no
10662         hardcode_direct_absolute=no
10663         ;;
10664       esac
10665
10666       if test yes = "$GCC"; then
10667         case $host_os in aix4.[012]|aix4.[012].*)
10668         # We only want to do this on AIX 4.2 and lower, the check
10669         # below for broken collect2 doesn't work under 4.3+
10670           collect2name=`$CC -print-prog-name=collect2`
10671           if test -f "$collect2name" &&
10672            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10673           then
10674           # We have reworked collect2
10675           :
10676           else
10677           # We have old collect2
10678           hardcode_direct=unsupported
10679           # It fails to find uninstalled libraries when the uninstalled
10680           # path is not listed in the libpath.  Setting hardcode_minus_L
10681           # to unsupported forces relinking
10682           hardcode_minus_L=yes
10683           hardcode_libdir_flag_spec='-L$libdir'
10684           hardcode_libdir_separator=
10685           fi
10686           ;;
10687         esac
10688         shared_flag='-shared'
10689         if test yes = "$aix_use_runtimelinking"; then
10690           shared_flag="$shared_flag "'$wl-G'
10691         fi
10692         # Need to ensure runtime linking is disabled for the traditional
10693         # shared library, or the linker may eventually find shared libraries
10694         # /with/ Import File - we do not want to mix them.
10695         shared_flag_aix='-shared'
10696         shared_flag_svr4='-shared $wl-G'
10697       else
10698         # not using gcc
10699         if test ia64 = "$host_cpu"; then
10700         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10701         # chokes on -Wl,-G. The following line is correct:
10702           shared_flag='-G'
10703         else
10704           if test yes = "$aix_use_runtimelinking"; then
10705             shared_flag='$wl-G'
10706           else
10707             shared_flag='$wl-bM:SRE'
10708           fi
10709           shared_flag_aix='$wl-bM:SRE'
10710           shared_flag_svr4='$wl-G'
10711         fi
10712       fi
10713
10714       export_dynamic_flag_spec='$wl-bexpall'
10715       # It seems that -bexpall does not export symbols beginning with
10716       # underscore (_), so it is better to generate a list of symbols to export.
10717       always_export_symbols=yes
10718       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10719         # Warning - without using the other runtime loading flags (-brtl),
10720         # -berok will link without error, but may produce a broken library.
10721         allow_undefined_flag='-berok'
10722         # Determine the default libpath from the value encoded in an
10723         # empty executable.
10724         if test set = "${lt_cv_aix_libpath+set}"; then
10725   aix_libpath=$lt_cv_aix_libpath
10726 else
10727   if ${lt_cv_aix_libpath_+:} false; then :
10728   $as_echo_n "(cached) " >&6
10729 else
10730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h.  */
10732
10733 int
10734 main ()
10735 {
10736
10737   ;
10738   return 0;
10739 }
10740 _ACEOF
10741 if ac_fn_c_try_link "$LINENO"; then :
10742
10743   lt_aix_libpath_sed='
10744       /Import File Strings/,/^$/ {
10745           /^0/ {
10746               s/^0  *\([^ ]*\) *$/\1/
10747               p
10748           }
10749       }'
10750   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10751   # Check for a 64-bit object if we didn't find anything.
10752   if test -z "$lt_cv_aix_libpath_"; then
10753     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10754   fi
10755 fi
10756 rm -f core conftest.err conftest.$ac_objext \
10757     conftest$ac_exeext conftest.$ac_ext
10758   if test -z "$lt_cv_aix_libpath_"; then
10759     lt_cv_aix_libpath_=/usr/lib:/lib
10760   fi
10761
10762 fi
10763
10764   aix_libpath=$lt_cv_aix_libpath_
10765 fi
10766
10767         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10768         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
10769       else
10770         if test ia64 = "$host_cpu"; then
10771           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10772           allow_undefined_flag="-z nodefs"
10773           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"
10774         else
10775          # Determine the default libpath from the value encoded in an
10776          # empty executable.
10777          if test set = "${lt_cv_aix_libpath+set}"; then
10778   aix_libpath=$lt_cv_aix_libpath
10779 else
10780   if ${lt_cv_aix_libpath_+:} false; then :
10781   $as_echo_n "(cached) " >&6
10782 else
10783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h.  */
10785
10786 int
10787 main ()
10788 {
10789
10790   ;
10791   return 0;
10792 }
10793 _ACEOF
10794 if ac_fn_c_try_link "$LINENO"; then :
10795
10796   lt_aix_libpath_sed='
10797       /Import File Strings/,/^$/ {
10798           /^0/ {
10799               s/^0  *\([^ ]*\) *$/\1/
10800               p
10801           }
10802       }'
10803   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10804   # Check for a 64-bit object if we didn't find anything.
10805   if test -z "$lt_cv_aix_libpath_"; then
10806     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10807   fi
10808 fi
10809 rm -f core conftest.err conftest.$ac_objext \
10810     conftest$ac_exeext conftest.$ac_ext
10811   if test -z "$lt_cv_aix_libpath_"; then
10812     lt_cv_aix_libpath_=/usr/lib:/lib
10813   fi
10814
10815 fi
10816
10817   aix_libpath=$lt_cv_aix_libpath_
10818 fi
10819
10820          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10821           # Warning - without using the other run time loading flags,
10822           # -berok will link without error, but may produce a broken library.
10823           no_undefined_flag=' $wl-bernotok'
10824           allow_undefined_flag=' $wl-berok'
10825           if test yes = "$with_gnu_ld"; then
10826             # We only use this code for GNU lds that support --whole-archive.
10827             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10828           else
10829             # Exported symbols can be pulled into shared objects from archives
10830             whole_archive_flag_spec='$convenience'
10831           fi
10832           archive_cmds_need_lc=yes
10833           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10834           # -brtl affects multiple linker settings, -berok does not and is overridden later
10835           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10836           if test svr4 != "$with_aix_soname"; then
10837             # This is similar to how AIX traditionally builds its shared libraries.
10838             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'
10839           fi
10840           if test aix != "$with_aix_soname"; then
10841             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'
10842           else
10843             # used by -dlpreopen to get the symbols
10844             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10845           fi
10846           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10847         fi
10848       fi
10849       ;;
10850
10851     amigaos*)
10852       case $host_cpu in
10853       powerpc)
10854             # see comment about AmigaOS4 .so support
10855             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10856             archive_expsym_cmds=''
10857         ;;
10858       m68k)
10859             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)'
10860             hardcode_libdir_flag_spec='-L$libdir'
10861             hardcode_minus_L=yes
10862         ;;
10863       esac
10864       ;;
10865
10866     bsdi[45]*)
10867       export_dynamic_flag_spec=-rdynamic
10868       ;;
10869
10870     cygwin* | mingw* | pw32* | cegcc*)
10871       # When not using gcc, we currently assume that we are using
10872       # Microsoft Visual C++.
10873       # hardcode_libdir_flag_spec is actually meaningless, as there is
10874       # no search path for DLLs.
10875       case $cc_basename in
10876       cl*)
10877         # Native MSVC
10878         hardcode_libdir_flag_spec=' '
10879         allow_undefined_flag=unsupported
10880         always_export_symbols=yes
10881         file_list_spec='@'
10882         # Tell ltmain to make .lib files, not .a files.
10883         libext=lib
10884         # Tell ltmain to make .dll files, not .so files.
10885         shrext_cmds=.dll
10886         # FIXME: Setting linknames here is a bad hack.
10887         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10888         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10889             cp "$export_symbols" "$output_objdir/$soname.def";
10890             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10891           else
10892             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10893           fi~
10894           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10895           linknames='
10896         # The linker will not automatically build a static lib if we build a DLL.
10897         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10898         enable_shared_with_static_runtimes=yes
10899         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10900         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10901         # Don't use ranlib
10902         old_postinstall_cmds='chmod 644 $oldlib'
10903         postlink_cmds='lt_outputfile="@OUTPUT@"~
10904           lt_tool_outputfile="@TOOL_OUTPUT@"~
10905           case $lt_outputfile in
10906             *.exe|*.EXE) ;;
10907             *)
10908               lt_outputfile=$lt_outputfile.exe
10909               lt_tool_outputfile=$lt_tool_outputfile.exe
10910               ;;
10911           esac~
10912           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10913             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10914             $RM "$lt_outputfile.manifest";
10915           fi'
10916         ;;
10917       *)
10918         # Assume MSVC wrapper
10919         hardcode_libdir_flag_spec=' '
10920         allow_undefined_flag=unsupported
10921         # Tell ltmain to make .lib files, not .a files.
10922         libext=lib
10923         # Tell ltmain to make .dll files, not .so files.
10924         shrext_cmds=.dll
10925         # FIXME: Setting linknames here is a bad hack.
10926         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10927         # The linker will automatically build a .lib file if we build a DLL.
10928         old_archive_from_new_cmds='true'
10929         # FIXME: Should let the user specify the lib program.
10930         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10931         enable_shared_with_static_runtimes=yes
10932         ;;
10933       esac
10934       ;;
10935
10936     darwin* | rhapsody*)
10937
10938
10939   archive_cmds_need_lc=no
10940   hardcode_direct=no
10941   hardcode_automatic=yes
10942   hardcode_shlibpath_var=unsupported
10943   if test yes = "$lt_cv_ld_force_load"; then
10944     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\"`'
10945
10946   else
10947     whole_archive_flag_spec=''
10948   fi
10949   link_all_deplibs=yes
10950   allow_undefined_flag=$_lt_dar_allow_undefined
10951   case $cc_basename in
10952      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10953      *) _lt_dar_can_shared=$GCC ;;
10954   esac
10955   if test yes = "$_lt_dar_can_shared"; then
10956     output_verbose_link_cmd=func_echo_all
10957     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10958     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10959     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"
10960     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"
10961
10962   else
10963   ld_shlibs=no
10964   fi
10965
10966       ;;
10967
10968     dgux*)
10969       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10970       hardcode_libdir_flag_spec='-L$libdir'
10971       hardcode_shlibpath_var=no
10972       ;;
10973
10974     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10975     # support.  Future versions do this automatically, but an explicit c++rt0.o
10976     # does not break anything, and helps significantly (at the cost of a little
10977     # extra space).
10978     freebsd2.2*)
10979       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10980       hardcode_libdir_flag_spec='-R$libdir'
10981       hardcode_direct=yes
10982       hardcode_shlibpath_var=no
10983       ;;
10984
10985     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10986     freebsd2.*)
10987       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10988       hardcode_direct=yes
10989       hardcode_minus_L=yes
10990       hardcode_shlibpath_var=no
10991       ;;
10992
10993     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10994     freebsd* | dragonfly*)
10995       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10996       hardcode_libdir_flag_spec='-R$libdir'
10997       hardcode_direct=yes
10998       hardcode_shlibpath_var=no
10999       ;;
11000
11001     hpux9*)
11002       if test yes = "$GCC"; then
11003         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'
11004       else
11005         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'
11006       fi
11007       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11008       hardcode_libdir_separator=:
11009       hardcode_direct=yes
11010
11011       # hardcode_minus_L: Not really in the search PATH,
11012       # but as the default location of the library.
11013       hardcode_minus_L=yes
11014       export_dynamic_flag_spec='$wl-E'
11015       ;;
11016
11017     hpux10*)
11018       if test yes,no = "$GCC,$with_gnu_ld"; then
11019         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11020       else
11021         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11022       fi
11023       if test no = "$with_gnu_ld"; then
11024         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11025         hardcode_libdir_separator=:
11026         hardcode_direct=yes
11027         hardcode_direct_absolute=yes
11028         export_dynamic_flag_spec='$wl-E'
11029         # hardcode_minus_L: Not really in the search PATH,
11030         # but as the default location of the library.
11031         hardcode_minus_L=yes
11032       fi
11033       ;;
11034
11035     hpux11*)
11036       if test yes,no = "$GCC,$with_gnu_ld"; then
11037         case $host_cpu in
11038         hppa*64*)
11039           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11040           ;;
11041         ia64*)
11042           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11043           ;;
11044         *)
11045           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11046           ;;
11047         esac
11048       else
11049         case $host_cpu in
11050         hppa*64*)
11051           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11052           ;;
11053         ia64*)
11054           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11055           ;;
11056         *)
11057
11058           # Older versions of the 11.00 compiler do not understand -b yet
11059           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11060           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11061 $as_echo_n "checking if $CC understands -b... " >&6; }
11062 if ${lt_cv_prog_compiler__b+:} false; then :
11063   $as_echo_n "(cached) " >&6
11064 else
11065   lt_cv_prog_compiler__b=no
11066    save_LDFLAGS=$LDFLAGS
11067    LDFLAGS="$LDFLAGS -b"
11068    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11069    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11070      # The linker can only warn and ignore the option if not recognized
11071      # So say no if there are warnings
11072      if test -s conftest.err; then
11073        # Append any errors to the config.log.
11074        cat conftest.err 1>&5
11075        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11076        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11077        if diff conftest.exp conftest.er2 >/dev/null; then
11078          lt_cv_prog_compiler__b=yes
11079        fi
11080      else
11081        lt_cv_prog_compiler__b=yes
11082      fi
11083    fi
11084    $RM -r conftest*
11085    LDFLAGS=$save_LDFLAGS
11086
11087 fi
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11089 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11090
11091 if test yes = "$lt_cv_prog_compiler__b"; then
11092     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11093 else
11094     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11095 fi
11096
11097           ;;
11098         esac
11099       fi
11100       if test no = "$with_gnu_ld"; then
11101         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11102         hardcode_libdir_separator=:
11103
11104         case $host_cpu in
11105         hppa*64*|ia64*)
11106           hardcode_direct=no
11107           hardcode_shlibpath_var=no
11108           ;;
11109         *)
11110           hardcode_direct=yes
11111           hardcode_direct_absolute=yes
11112           export_dynamic_flag_spec='$wl-E'
11113
11114           # hardcode_minus_L: Not really in the search PATH,
11115           # but as the default location of the library.
11116           hardcode_minus_L=yes
11117           ;;
11118         esac
11119       fi
11120       ;;
11121
11122     irix5* | irix6* | nonstopux*)
11123       if test yes = "$GCC"; then
11124         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'
11125         # Try to use the -exported_symbol ld option, if it does not
11126         # work, assume that -exports_file does not work either and
11127         # implicitly export all symbols.
11128         # This should be the same for all languages, so no per-tag cache variable.
11129         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11130 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11131 if ${lt_cv_irix_exported_symbol+:} false; then :
11132   $as_echo_n "(cached) " >&6
11133 else
11134   save_LDFLAGS=$LDFLAGS
11135            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11136            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h.  */
11138 int foo (void) { return 0; }
11139 _ACEOF
11140 if ac_fn_c_try_link "$LINENO"; then :
11141   lt_cv_irix_exported_symbol=yes
11142 else
11143   lt_cv_irix_exported_symbol=no
11144 fi
11145 rm -f core conftest.err conftest.$ac_objext \
11146     conftest$ac_exeext conftest.$ac_ext
11147            LDFLAGS=$save_LDFLAGS
11148 fi
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11150 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11151         if test yes = "$lt_cv_irix_exported_symbol"; then
11152           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'
11153         fi
11154         link_all_deplibs=no
11155       else
11156         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'
11157         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'
11158       fi
11159       archive_cmds_need_lc='no'
11160       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11161       hardcode_libdir_separator=:
11162       inherit_rpath=yes
11163       link_all_deplibs=yes
11164       ;;
11165
11166     linux*)
11167       case $cc_basename in
11168       tcc*)
11169         # Fabrice Bellard et al's Tiny C Compiler
11170         ld_shlibs=yes
11171         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11172         ;;
11173       esac
11174       ;;
11175
11176     netbsd* | netbsdelf*-gnu)
11177       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11178         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11179       else
11180         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11181       fi
11182       hardcode_libdir_flag_spec='-R$libdir'
11183       hardcode_direct=yes
11184       hardcode_shlibpath_var=no
11185       ;;
11186
11187     newsos6)
11188       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11189       hardcode_direct=yes
11190       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11191       hardcode_libdir_separator=:
11192       hardcode_shlibpath_var=no
11193       ;;
11194
11195     *nto* | *qnx*)
11196       ;;
11197
11198     openbsd* | bitrig*)
11199       if test -f /usr/libexec/ld.so; then
11200         hardcode_direct=yes
11201         hardcode_shlibpath_var=no
11202         hardcode_direct_absolute=yes
11203         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11204           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11205           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11206           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11207           export_dynamic_flag_spec='$wl-E'
11208         else
11209           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11210           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11211         fi
11212       else
11213         ld_shlibs=no
11214       fi
11215       ;;
11216
11217     os2*)
11218       hardcode_libdir_flag_spec='-L$libdir'
11219       hardcode_minus_L=yes
11220       allow_undefined_flag=unsupported
11221       shrext_cmds=.dll
11222       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11223         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11224         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11225         $ECHO EXPORTS >> $output_objdir/$libname.def~
11226         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11227         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11228         emximp -o $lib $output_objdir/$libname.def'
11229       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11230         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11231         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11232         $ECHO EXPORTS >> $output_objdir/$libname.def~
11233         prefix_cmds="$SED"~
11234         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11235           prefix_cmds="$prefix_cmds -e 1d";
11236         fi~
11237         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11238         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11239         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11240         emximp -o $lib $output_objdir/$libname.def'
11241       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11242       enable_shared_with_static_runtimes=yes
11243       ;;
11244
11245     osf3*)
11246       if test yes = "$GCC"; then
11247         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11248         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'
11249       else
11250         allow_undefined_flag=' -expect_unresolved \*'
11251         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'
11252       fi
11253       archive_cmds_need_lc='no'
11254       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11255       hardcode_libdir_separator=:
11256       ;;
11257
11258     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11259       if test yes = "$GCC"; then
11260         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11261         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'
11262         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11263       else
11264         allow_undefined_flag=' -expect_unresolved \*'
11265         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'
11266         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~
11267           $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'
11268
11269         # Both c and cxx compiler support -rpath directly
11270         hardcode_libdir_flag_spec='-rpath $libdir'
11271       fi
11272       archive_cmds_need_lc='no'
11273       hardcode_libdir_separator=:
11274       ;;
11275
11276     solaris*)
11277       no_undefined_flag=' -z defs'
11278       if test yes = "$GCC"; then
11279         wlarc='$wl'
11280         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11281         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11282           $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'
11283       else
11284         case `$CC -V 2>&1` in
11285         *"Compilers 5.0"*)
11286           wlarc=''
11287           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11288           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11289             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11290           ;;
11291         *)
11292           wlarc='$wl'
11293           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11294           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11295             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11296           ;;
11297         esac
11298       fi
11299       hardcode_libdir_flag_spec='-R$libdir'
11300       hardcode_shlibpath_var=no
11301       case $host_os in
11302       solaris2.[0-5] | solaris2.[0-5].*) ;;
11303       *)
11304         # The compiler driver will combine and reorder linker options,
11305         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11306         # but is careful enough not to reorder.
11307         # Supported since Solaris 2.6 (maybe 2.5.1?)
11308         if test yes = "$GCC"; then
11309           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11310         else
11311           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11312         fi
11313         ;;
11314       esac
11315       link_all_deplibs=yes
11316       ;;
11317
11318     sunos4*)
11319       if test sequent = "$host_vendor"; then
11320         # Use $CC to link under sequent, because it throws in some extra .o
11321         # files that make .init and .fini sections work.
11322         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11323       else
11324         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11325       fi
11326       hardcode_libdir_flag_spec='-L$libdir'
11327       hardcode_direct=yes
11328       hardcode_minus_L=yes
11329       hardcode_shlibpath_var=no
11330       ;;
11331
11332     sysv4)
11333       case $host_vendor in
11334         sni)
11335           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11336           hardcode_direct=yes # is this really true???
11337         ;;
11338         siemens)
11339           ## LD is ld it makes a PLAMLIB
11340           ## CC just makes a GrossModule.
11341           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11342           reload_cmds='$CC -r -o $output$reload_objs'
11343           hardcode_direct=no
11344         ;;
11345         motorola)
11346           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11347           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11348         ;;
11349       esac
11350       runpath_var='LD_RUN_PATH'
11351       hardcode_shlibpath_var=no
11352       ;;
11353
11354     sysv4.3*)
11355       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11356       hardcode_shlibpath_var=no
11357       export_dynamic_flag_spec='-Bexport'
11358       ;;
11359
11360     sysv4*MP*)
11361       if test -d /usr/nec; then
11362         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11363         hardcode_shlibpath_var=no
11364         runpath_var=LD_RUN_PATH
11365         hardcode_runpath_var=yes
11366         ld_shlibs=yes
11367       fi
11368       ;;
11369
11370     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11371       no_undefined_flag='$wl-z,text'
11372       archive_cmds_need_lc=no
11373       hardcode_shlibpath_var=no
11374       runpath_var='LD_RUN_PATH'
11375
11376       if test yes = "$GCC"; then
11377         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11378         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11379       else
11380         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11381         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11382       fi
11383       ;;
11384
11385     sysv5* | sco3.2v5* | sco5v6*)
11386       # Note: We CANNOT use -z defs as we might desire, because we do not
11387       # link with -lc, and that would cause any symbols used from libc to
11388       # always be unresolved, which means just about no library would
11389       # ever link correctly.  If we're not using GNU ld we use -z text
11390       # though, which does catch some bad symbols but isn't as heavy-handed
11391       # as -z defs.
11392       no_undefined_flag='$wl-z,text'
11393       allow_undefined_flag='$wl-z,nodefs'
11394       archive_cmds_need_lc=no
11395       hardcode_shlibpath_var=no
11396       hardcode_libdir_flag_spec='$wl-R,$libdir'
11397       hardcode_libdir_separator=':'
11398       link_all_deplibs=yes
11399       export_dynamic_flag_spec='$wl-Bexport'
11400       runpath_var='LD_RUN_PATH'
11401
11402       if test yes = "$GCC"; then
11403         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11404         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11405       else
11406         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11407         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11408       fi
11409       ;;
11410
11411     uts4*)
11412       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11413       hardcode_libdir_flag_spec='-L$libdir'
11414       hardcode_shlibpath_var=no
11415       ;;
11416
11417     *)
11418       ld_shlibs=no
11419       ;;
11420     esac
11421
11422     if test sni = "$host_vendor"; then
11423       case $host in
11424       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11425         export_dynamic_flag_spec='$wl-Blargedynsym'
11426         ;;
11427       esac
11428     fi
11429   fi
11430
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11432 $as_echo "$ld_shlibs" >&6; }
11433 test no = "$ld_shlibs" && can_build_shared=no
11434
11435 with_gnu_ld=$with_gnu_ld
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451 #
11452 # Do we need to explicitly link libc?
11453 #
11454 case "x$archive_cmds_need_lc" in
11455 x|xyes)
11456   # Assume -lc should be added
11457   archive_cmds_need_lc=yes
11458
11459   if test yes,yes = "$GCC,$enable_shared"; then
11460     case $archive_cmds in
11461     *'~'*)
11462       # FIXME: we may have to deal with multi-command sequences.
11463       ;;
11464     '$CC '*)
11465       # Test whether the compiler implicitly links with -lc since on some
11466       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11467       # to ld, don't add -lc before -lgcc.
11468       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11469 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11470 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11471   $as_echo_n "(cached) " >&6
11472 else
11473   $RM conftest*
11474         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11475
11476         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11477   (eval $ac_compile) 2>&5
11478   ac_status=$?
11479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11480   test $ac_status = 0; } 2>conftest.err; then
11481           soname=conftest
11482           lib=conftest
11483           libobjs=conftest.$ac_objext
11484           deplibs=
11485           wl=$lt_prog_compiler_wl
11486           pic_flag=$lt_prog_compiler_pic
11487           compiler_flags=-v
11488           linker_flags=-v
11489           verstring=
11490           output_objdir=.
11491           libname=conftest
11492           lt_save_allow_undefined_flag=$allow_undefined_flag
11493           allow_undefined_flag=
11494           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11495   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11496   ac_status=$?
11497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11498   test $ac_status = 0; }
11499           then
11500             lt_cv_archive_cmds_need_lc=no
11501           else
11502             lt_cv_archive_cmds_need_lc=yes
11503           fi
11504           allow_undefined_flag=$lt_save_allow_undefined_flag
11505         else
11506           cat conftest.err 1>&5
11507         fi
11508         $RM conftest*
11509
11510 fi
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11512 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11513       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11514       ;;
11515     esac
11516   fi
11517   ;;
11518 esac
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
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11672 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11673
11674 if test yes = "$GCC"; then
11675   case $host_os in
11676     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11677     *) lt_awk_arg='/^libraries:/' ;;
11678   esac
11679   case $host_os in
11680     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11681     *) lt_sed_strip_eq='s|=/|/|g' ;;
11682   esac
11683   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11684   case $lt_search_path_spec in
11685   *\;*)
11686     # if the path contains ";" then we assume it to be the separator
11687     # otherwise default to the standard path separator (i.e. ":") - it is
11688     # assumed that no part of a normal pathname contains ";" but that should
11689     # okay in the real world where ";" in dirpaths is itself problematic.
11690     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11691     ;;
11692   *)
11693     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11694     ;;
11695   esac
11696   # Ok, now we have the path, separated by spaces, we can step through it
11697   # and add multilib dir if necessary...
11698   lt_tmp_lt_search_path_spec=
11699   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11700   # ...but if some path component already ends with the multilib dir we assume
11701   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11702   case "$lt_multi_os_dir; $lt_search_path_spec " in
11703   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11704     lt_multi_os_dir=
11705     ;;
11706   esac
11707   for lt_sys_path in $lt_search_path_spec; do
11708     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11709       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11710     elif test -n "$lt_multi_os_dir"; then
11711       test -d "$lt_sys_path" && \
11712         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11713     fi
11714   done
11715   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11716 BEGIN {RS = " "; FS = "/|\n";} {
11717   lt_foo = "";
11718   lt_count = 0;
11719   for (lt_i = NF; lt_i > 0; lt_i--) {
11720     if ($lt_i != "" && $lt_i != ".") {
11721       if ($lt_i == "..") {
11722         lt_count++;
11723       } else {
11724         if (lt_count == 0) {
11725           lt_foo = "/" $lt_i lt_foo;
11726         } else {
11727           lt_count--;
11728         }
11729       }
11730     }
11731   }
11732   if (lt_foo != "") { lt_freq[lt_foo]++; }
11733   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11734 }'`
11735   # AWK program above erroneously prepends '/' to C:/dos/paths
11736   # for these hosts.
11737   case $host_os in
11738     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11739       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11740   esac
11741   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11742 else
11743   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11744 fi
11745 library_names_spec=
11746 libname_spec='lib$name'
11747 soname_spec=
11748 shrext_cmds=.so
11749 postinstall_cmds=
11750 postuninstall_cmds=
11751 finish_cmds=
11752 finish_eval=
11753 shlibpath_var=
11754 shlibpath_overrides_runpath=unknown
11755 version_type=none
11756 dynamic_linker="$host_os ld.so"
11757 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11758 need_lib_prefix=unknown
11759 hardcode_into_libs=no
11760
11761 # when you set need_version to no, make sure it does not cause -set_version
11762 # flags to be left without arguments
11763 need_version=unknown
11764
11765
11766
11767 case $host_os in
11768 aix3*)
11769   version_type=linux # correct to gnu/linux during the next big refactor
11770   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11771   shlibpath_var=LIBPATH
11772
11773   # AIX 3 has no versioning support, so we append a major version to the name.
11774   soname_spec='$libname$release$shared_ext$major'
11775   ;;
11776
11777 aix[4-9]*)
11778   version_type=linux # correct to gnu/linux during the next big refactor
11779   need_lib_prefix=no
11780   need_version=no
11781   hardcode_into_libs=yes
11782   if test ia64 = "$host_cpu"; then
11783     # AIX 5 supports IA64
11784     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11785     shlibpath_var=LD_LIBRARY_PATH
11786   else
11787     # With GCC up to 2.95.x, collect2 would create an import file
11788     # for dependence libraries.  The import file would start with
11789     # the line '#! .'.  This would cause the generated library to
11790     # depend on '.', always an invalid library.  This was fixed in
11791     # development snapshots of GCC prior to 3.0.
11792     case $host_os in
11793       aix4 | aix4.[01] | aix4.[01].*)
11794       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11795            echo ' yes '
11796            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11797         :
11798       else
11799         can_build_shared=no
11800       fi
11801       ;;
11802     esac
11803     # Using Import Files as archive members, it is possible to support
11804     # filename-based versioning of shared library archives on AIX. While
11805     # this would work for both with and without runtime linking, it will
11806     # prevent static linking of such archives. So we do filename-based
11807     # shared library versioning with .so extension only, which is used
11808     # when both runtime linking and shared linking is enabled.
11809     # Unfortunately, runtime linking may impact performance, so we do
11810     # not want this to be the default eventually. Also, we use the
11811     # versioned .so libs for executables only if there is the -brtl
11812     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11813     # To allow for filename-based versioning support, we need to create
11814     # libNAME.so.V as an archive file, containing:
11815     # *) an Import File, referring to the versioned filename of the
11816     #    archive as well as the shared archive member, telling the
11817     #    bitwidth (32 or 64) of that shared object, and providing the
11818     #    list of exported symbols of that shared object, eventually
11819     #    decorated with the 'weak' keyword
11820     # *) the shared object with the F_LOADONLY flag set, to really avoid
11821     #    it being seen by the linker.
11822     # At run time we better use the real file rather than another symlink,
11823     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11824
11825     case $with_aix_soname,$aix_use_runtimelinking in
11826     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11827     # soname into executable. Probably we can add versioning support to
11828     # collect2, so additional links can be useful in future.
11829     aix,yes) # traditional libtool
11830       dynamic_linker='AIX unversionable lib.so'
11831       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11832       # instead of lib<name>.a to let people know that these are not
11833       # typical AIX shared libraries.
11834       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11835       ;;
11836     aix,no) # traditional AIX only
11837       dynamic_linker='AIX lib.a(lib.so.V)'
11838       # We preserve .a as extension for shared libraries through AIX4.2
11839       # and later when we are not doing run time linking.
11840       library_names_spec='$libname$release.a $libname.a'
11841       soname_spec='$libname$release$shared_ext$major'
11842       ;;
11843     svr4,*) # full svr4 only
11844       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11845       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11846       # We do not specify a path in Import Files, so LIBPATH fires.
11847       shlibpath_overrides_runpath=yes
11848       ;;
11849     *,yes) # both, prefer svr4
11850       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11851       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11852       # unpreferred sharedlib libNAME.a needs extra handling
11853       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"'
11854       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"'
11855       # We do not specify a path in Import Files, so LIBPATH fires.
11856       shlibpath_overrides_runpath=yes
11857       ;;
11858     *,no) # both, prefer aix
11859       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11860       library_names_spec='$libname$release.a $libname.a'
11861       soname_spec='$libname$release$shared_ext$major'
11862       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11863       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)'
11864       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"'
11865       ;;
11866     esac
11867     shlibpath_var=LIBPATH
11868   fi
11869   ;;
11870
11871 amigaos*)
11872   case $host_cpu in
11873   powerpc)
11874     # Since July 2007 AmigaOS4 officially supports .so libraries.
11875     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11876     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11877     ;;
11878   m68k)
11879     library_names_spec='$libname.ixlibrary $libname.a'
11880     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11881     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'
11882     ;;
11883   esac
11884   ;;
11885
11886 beos*)
11887   library_names_spec='$libname$shared_ext'
11888   dynamic_linker="$host_os ld.so"
11889   shlibpath_var=LIBRARY_PATH
11890   ;;
11891
11892 bsdi[45]*)
11893   version_type=linux # correct to gnu/linux during the next big refactor
11894   need_version=no
11895   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11896   soname_spec='$libname$release$shared_ext$major'
11897   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11898   shlibpath_var=LD_LIBRARY_PATH
11899   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11900   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11901   # the default ld.so.conf also contains /usr/contrib/lib and
11902   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11903   # libtool to hard-code these into programs
11904   ;;
11905
11906 cygwin* | mingw* | pw32* | cegcc*)
11907   version_type=windows
11908   shrext_cmds=.dll
11909   need_version=no
11910   need_lib_prefix=no
11911
11912   case $GCC,$cc_basename in
11913   yes,*)
11914     # gcc
11915     library_names_spec='$libname.dll.a'
11916     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11917     postinstall_cmds='base_file=`basename \$file`~
11918       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11919       dldir=$destdir/`dirname \$dlpath`~
11920       test -d \$dldir || mkdir -p \$dldir~
11921       $install_prog $dir/$dlname \$dldir/$dlname~
11922       chmod a+x \$dldir/$dlname~
11923       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11924         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11925       fi'
11926     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11927       dlpath=$dir/\$dldll~
11928        $RM \$dlpath'
11929     shlibpath_overrides_runpath=yes
11930
11931     case $host_os in
11932     cygwin*)
11933       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11934       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11935
11936       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11937       ;;
11938     mingw* | cegcc*)
11939       # MinGW DLLs use traditional 'lib' prefix
11940       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11941       ;;
11942     pw32*)
11943       # pw32 DLLs use 'pw' prefix rather than 'lib'
11944       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11945       ;;
11946     esac
11947     dynamic_linker='Win32 ld.exe'
11948     ;;
11949
11950   *,cl*)
11951     # Native MSVC
11952     libname_spec='$name'
11953     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11954     library_names_spec='$libname.dll.lib'
11955
11956     case $build_os in
11957     mingw*)
11958       sys_lib_search_path_spec=
11959       lt_save_ifs=$IFS
11960       IFS=';'
11961       for lt_path in $LIB
11962       do
11963         IFS=$lt_save_ifs
11964         # Let DOS variable expansion print the short 8.3 style file name.
11965         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11966         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11967       done
11968       IFS=$lt_save_ifs
11969       # Convert to MSYS style.
11970       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11971       ;;
11972     cygwin*)
11973       # Convert to unix form, then to dos form, then back to unix form
11974       # but this time dos style (no spaces!) so that the unix form looks
11975       # like /cygdrive/c/PROGRA~1:/cygdr...
11976       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11977       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11978       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11979       ;;
11980     *)
11981       sys_lib_search_path_spec=$LIB
11982       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11983         # It is most probably a Windows format PATH.
11984         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11985       else
11986         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11987       fi
11988       # FIXME: find the short name or the path components, as spaces are
11989       # common. (e.g. "Program Files" -> "PROGRA~1")
11990       ;;
11991     esac
11992
11993     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11994     postinstall_cmds='base_file=`basename \$file`~
11995       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11996       dldir=$destdir/`dirname \$dlpath`~
11997       test -d \$dldir || mkdir -p \$dldir~
11998       $install_prog $dir/$dlname \$dldir/$dlname'
11999     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12000       dlpath=$dir/\$dldll~
12001        $RM \$dlpath'
12002     shlibpath_overrides_runpath=yes
12003     dynamic_linker='Win32 link.exe'
12004     ;;
12005
12006   *)
12007     # Assume MSVC wrapper
12008     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12009     dynamic_linker='Win32 ld.exe'
12010     ;;
12011   esac
12012   # FIXME: first we should search . and the directory the executable is in
12013   shlibpath_var=PATH
12014   ;;
12015
12016 darwin* | rhapsody*)
12017   dynamic_linker="$host_os dyld"
12018   version_type=darwin
12019   need_lib_prefix=no
12020   need_version=no
12021   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12022   soname_spec='$libname$release$major$shared_ext'
12023   shlibpath_overrides_runpath=yes
12024   shlibpath_var=DYLD_LIBRARY_PATH
12025   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12026
12027   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12028   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12029   ;;
12030
12031 dgux*)
12032   version_type=linux # correct to gnu/linux during the next big refactor
12033   need_lib_prefix=no
12034   need_version=no
12035   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12036   soname_spec='$libname$release$shared_ext$major'
12037   shlibpath_var=LD_LIBRARY_PATH
12038   ;;
12039
12040 freebsd* | dragonfly*)
12041   # DragonFly does not have aout.  When/if they implement a new
12042   # versioning mechanism, adjust this.
12043   if test -x /usr/bin/objformat; then
12044     objformat=`/usr/bin/objformat`
12045   else
12046     case $host_os in
12047     freebsd[23].*) objformat=aout ;;
12048     *) objformat=elf ;;
12049     esac
12050   fi
12051   version_type=freebsd-$objformat
12052   case $version_type in
12053     freebsd-elf*)
12054       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12055       soname_spec='$libname$release$shared_ext$major'
12056       need_version=no
12057       need_lib_prefix=no
12058       ;;
12059     freebsd-*)
12060       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12061       need_version=yes
12062       ;;
12063   esac
12064   shlibpath_var=LD_LIBRARY_PATH
12065   case $host_os in
12066   freebsd2.*)
12067     shlibpath_overrides_runpath=yes
12068     ;;
12069   freebsd3.[01]* | freebsdelf3.[01]*)
12070     shlibpath_overrides_runpath=yes
12071     hardcode_into_libs=yes
12072     ;;
12073   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12074   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12075     shlibpath_overrides_runpath=no
12076     hardcode_into_libs=yes
12077     ;;
12078   *) # from 4.6 on, and DragonFly
12079     shlibpath_overrides_runpath=yes
12080     hardcode_into_libs=yes
12081     ;;
12082   esac
12083   ;;
12084
12085 haiku*)
12086   version_type=linux # correct to gnu/linux during the next big refactor
12087   need_lib_prefix=no
12088   need_version=no
12089   dynamic_linker="$host_os runtime_loader"
12090   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12091   soname_spec='$libname$release$shared_ext$major'
12092   shlibpath_var=LIBRARY_PATH
12093   shlibpath_overrides_runpath=no
12094   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12095   hardcode_into_libs=yes
12096   ;;
12097
12098 hpux9* | hpux10* | hpux11*)
12099   # Give a soname corresponding to the major version so that dld.sl refuses to
12100   # link against other versions.
12101   version_type=sunos
12102   need_lib_prefix=no
12103   need_version=no
12104   case $host_cpu in
12105   ia64*)
12106     shrext_cmds='.so'
12107     hardcode_into_libs=yes
12108     dynamic_linker="$host_os dld.so"
12109     shlibpath_var=LD_LIBRARY_PATH
12110     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12111     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12112     soname_spec='$libname$release$shared_ext$major'
12113     if test 32 = "$HPUX_IA64_MODE"; then
12114       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12115       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12116     else
12117       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12118       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12119     fi
12120     ;;
12121   hppa*64*)
12122     shrext_cmds='.sl'
12123     hardcode_into_libs=yes
12124     dynamic_linker="$host_os dld.sl"
12125     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12126     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12127     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12128     soname_spec='$libname$release$shared_ext$major'
12129     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12130     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12131     ;;
12132   *)
12133     shrext_cmds='.sl'
12134     dynamic_linker="$host_os dld.sl"
12135     shlibpath_var=SHLIB_PATH
12136     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12137     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12138     soname_spec='$libname$release$shared_ext$major'
12139     ;;
12140   esac
12141   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12142   postinstall_cmds='chmod 555 $lib'
12143   # or fails outright, so override atomically:
12144   install_override_mode=555
12145   ;;
12146
12147 interix[3-9]*)
12148   version_type=linux # correct to gnu/linux during the next big refactor
12149   need_lib_prefix=no
12150   need_version=no
12151   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12152   soname_spec='$libname$release$shared_ext$major'
12153   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12154   shlibpath_var=LD_LIBRARY_PATH
12155   shlibpath_overrides_runpath=no
12156   hardcode_into_libs=yes
12157   ;;
12158
12159 irix5* | irix6* | nonstopux*)
12160   case $host_os in
12161     nonstopux*) version_type=nonstopux ;;
12162     *)
12163         if test yes = "$lt_cv_prog_gnu_ld"; then
12164                 version_type=linux # correct to gnu/linux during the next big refactor
12165         else
12166                 version_type=irix
12167         fi ;;
12168   esac
12169   need_lib_prefix=no
12170   need_version=no
12171   soname_spec='$libname$release$shared_ext$major'
12172   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12173   case $host_os in
12174   irix5* | nonstopux*)
12175     libsuff= shlibsuff=
12176     ;;
12177   *)
12178     case $LD in # libtool.m4 will add one of these switches to LD
12179     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12180       libsuff= shlibsuff= libmagic=32-bit;;
12181     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12182       libsuff=32 shlibsuff=N32 libmagic=N32;;
12183     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12184       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12185     *) libsuff= shlibsuff= libmagic=never-match;;
12186     esac
12187     ;;
12188   esac
12189   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12190   shlibpath_overrides_runpath=no
12191   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12192   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12193   hardcode_into_libs=yes
12194   ;;
12195
12196 # No shared lib support for Linux oldld, aout, or coff.
12197 linux*oldld* | linux*aout* | linux*coff*)
12198   dynamic_linker=no
12199   ;;
12200
12201 linux*android*)
12202   version_type=none # Android doesn't support versioned libraries.
12203   need_lib_prefix=no
12204   need_version=no
12205   library_names_spec='$libname$release$shared_ext'
12206   soname_spec='$libname$release$shared_ext'
12207   finish_cmds=
12208   shlibpath_var=LD_LIBRARY_PATH
12209   shlibpath_overrides_runpath=yes
12210
12211   # This implies no fast_install, which is unacceptable.
12212   # Some rework will be needed to allow for fast_install
12213   # before this can be enabled.
12214   hardcode_into_libs=yes
12215
12216   dynamic_linker='Android linker'
12217   # Don't embed -rpath directories since the linker doesn't support them.
12218   hardcode_libdir_flag_spec='-L$libdir'
12219   ;;
12220
12221 # This must be glibc/ELF.
12222 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12223   version_type=linux # correct to gnu/linux during the next big refactor
12224   need_lib_prefix=no
12225   need_version=no
12226   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12227   soname_spec='$libname$release$shared_ext$major'
12228   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12229   shlibpath_var=LD_LIBRARY_PATH
12230   shlibpath_overrides_runpath=no
12231
12232   # Some binutils ld are patched to set DT_RUNPATH
12233   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12234   $as_echo_n "(cached) " >&6
12235 else
12236   lt_cv_shlibpath_overrides_runpath=no
12237     save_LDFLAGS=$LDFLAGS
12238     save_libdir=$libdir
12239     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12240          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12241     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h.  */
12243
12244 int
12245 main ()
12246 {
12247
12248   ;
12249   return 0;
12250 }
12251 _ACEOF
12252 if ac_fn_c_try_link "$LINENO"; then :
12253   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12254   lt_cv_shlibpath_overrides_runpath=yes
12255 fi
12256 fi
12257 rm -f core conftest.err conftest.$ac_objext \
12258     conftest$ac_exeext conftest.$ac_ext
12259     LDFLAGS=$save_LDFLAGS
12260     libdir=$save_libdir
12261
12262 fi
12263
12264   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12265
12266   # This implies no fast_install, which is unacceptable.
12267   # Some rework will be needed to allow for fast_install
12268   # before this can be enabled.
12269   hardcode_into_libs=yes
12270
12271   # Ideally, we could use ldconfig to report *all* directores which are
12272   # searched for libraries, however this is still not possible.  Aside from not
12273   # being certain /sbin/ldconfig is available, command
12274   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12275   # even though it is searched at run-time.  Try to do the best guess by
12276   # appending ld.so.conf contents (and includes) to the search path.
12277   if test -f /etc/ld.so.conf; then
12278     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' ' '`
12279     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12280   fi
12281
12282   # We used to test for /lib/ld.so.1 and disable shared libraries on
12283   # powerpc, because MkLinux only supported shared libraries with the
12284   # GNU dynamic linker.  Since this was broken with cross compilers,
12285   # most powerpc-linux boxes support dynamic linking these days and
12286   # people can always --disable-shared, the test was removed, and we
12287   # assume the GNU/Linux dynamic linker is in use.
12288   dynamic_linker='GNU/Linux ld.so'
12289   ;;
12290
12291 netbsdelf*-gnu)
12292   version_type=linux
12293   need_lib_prefix=no
12294   need_version=no
12295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12296   soname_spec='${libname}${release}${shared_ext}$major'
12297   shlibpath_var=LD_LIBRARY_PATH
12298   shlibpath_overrides_runpath=no
12299   hardcode_into_libs=yes
12300   dynamic_linker='NetBSD ld.elf_so'
12301   ;;
12302
12303 netbsd*)
12304   version_type=sunos
12305   need_lib_prefix=no
12306   need_version=no
12307   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12308     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12309     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12310     dynamic_linker='NetBSD (a.out) ld.so'
12311   else
12312     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12313     soname_spec='$libname$release$shared_ext$major'
12314     dynamic_linker='NetBSD ld.elf_so'
12315   fi
12316   shlibpath_var=LD_LIBRARY_PATH
12317   shlibpath_overrides_runpath=yes
12318   hardcode_into_libs=yes
12319   ;;
12320
12321 newsos6)
12322   version_type=linux # correct to gnu/linux during the next big refactor
12323   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12324   shlibpath_var=LD_LIBRARY_PATH
12325   shlibpath_overrides_runpath=yes
12326   ;;
12327
12328 *nto* | *qnx*)
12329   version_type=qnx
12330   need_lib_prefix=no
12331   need_version=no
12332   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12333   soname_spec='$libname$release$shared_ext$major'
12334   shlibpath_var=LD_LIBRARY_PATH
12335   shlibpath_overrides_runpath=no
12336   hardcode_into_libs=yes
12337   dynamic_linker='ldqnx.so'
12338   ;;
12339
12340 openbsd* | bitrig*)
12341   version_type=sunos
12342   sys_lib_dlsearch_path_spec=/usr/lib
12343   need_lib_prefix=no
12344   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12345     need_version=no
12346   else
12347     need_version=yes
12348   fi
12349   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12350   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12351   shlibpath_var=LD_LIBRARY_PATH
12352   shlibpath_overrides_runpath=yes
12353   ;;
12354
12355 os2*)
12356   libname_spec='$name'
12357   version_type=windows
12358   shrext_cmds=.dll
12359   need_version=no
12360   need_lib_prefix=no
12361   # OS/2 can only load a DLL with a base name of 8 characters or less.
12362   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12363     v=$($ECHO $release$versuffix | tr -d .-);
12364     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12365     $ECHO $n$v`$shared_ext'
12366   library_names_spec='${libname}_dll.$libext'
12367   dynamic_linker='OS/2 ld.exe'
12368   shlibpath_var=BEGINLIBPATH
12369   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12370   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12371   postinstall_cmds='base_file=`basename \$file`~
12372     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12373     dldir=$destdir/`dirname \$dlpath`~
12374     test -d \$dldir || mkdir -p \$dldir~
12375     $install_prog $dir/$dlname \$dldir/$dlname~
12376     chmod a+x \$dldir/$dlname~
12377     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12378       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12379     fi'
12380   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12381     dlpath=$dir/\$dldll~
12382     $RM \$dlpath'
12383   ;;
12384
12385 osf3* | osf4* | osf5*)
12386   version_type=osf
12387   need_lib_prefix=no
12388   need_version=no
12389   soname_spec='$libname$release$shared_ext$major'
12390   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12391   shlibpath_var=LD_LIBRARY_PATH
12392   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12393   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12394   ;;
12395
12396 rdos*)
12397   dynamic_linker=no
12398   ;;
12399
12400 solaris*)
12401   version_type=linux # correct to gnu/linux during the next big refactor
12402   need_lib_prefix=no
12403   need_version=no
12404   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12405   soname_spec='$libname$release$shared_ext$major'
12406   shlibpath_var=LD_LIBRARY_PATH
12407   shlibpath_overrides_runpath=yes
12408   hardcode_into_libs=yes
12409   # ldd complains unless libraries are executable
12410   postinstall_cmds='chmod +x $lib'
12411   ;;
12412
12413 sunos4*)
12414   version_type=sunos
12415   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12416   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12417   shlibpath_var=LD_LIBRARY_PATH
12418   shlibpath_overrides_runpath=yes
12419   if test yes = "$with_gnu_ld"; then
12420     need_lib_prefix=no
12421   fi
12422   need_version=yes
12423   ;;
12424
12425 sysv4 | sysv4.3*)
12426   version_type=linux # correct to gnu/linux during the next big refactor
12427   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12428   soname_spec='$libname$release$shared_ext$major'
12429   shlibpath_var=LD_LIBRARY_PATH
12430   case $host_vendor in
12431     sni)
12432       shlibpath_overrides_runpath=no
12433       need_lib_prefix=no
12434       runpath_var=LD_RUN_PATH
12435       ;;
12436     siemens)
12437       need_lib_prefix=no
12438       ;;
12439     motorola)
12440       need_lib_prefix=no
12441       need_version=no
12442       shlibpath_overrides_runpath=no
12443       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12444       ;;
12445   esac
12446   ;;
12447
12448 sysv4*MP*)
12449   if test -d /usr/nec; then
12450     version_type=linux # correct to gnu/linux during the next big refactor
12451     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12452     soname_spec='$libname$shared_ext.$major'
12453     shlibpath_var=LD_LIBRARY_PATH
12454   fi
12455   ;;
12456
12457 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12458   version_type=sco
12459   need_lib_prefix=no
12460   need_version=no
12461   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12462   soname_spec='$libname$release$shared_ext$major'
12463   shlibpath_var=LD_LIBRARY_PATH
12464   shlibpath_overrides_runpath=yes
12465   hardcode_into_libs=yes
12466   if test yes = "$with_gnu_ld"; then
12467     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12468   else
12469     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12470     case $host_os in
12471       sco3.2v5*)
12472         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12473         ;;
12474     esac
12475   fi
12476   sys_lib_dlsearch_path_spec='/usr/lib'
12477   ;;
12478
12479 tpf*)
12480   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12481   version_type=linux # correct to gnu/linux during the next big refactor
12482   need_lib_prefix=no
12483   need_version=no
12484   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12485   shlibpath_var=LD_LIBRARY_PATH
12486   shlibpath_overrides_runpath=no
12487   hardcode_into_libs=yes
12488   ;;
12489
12490 uts4*)
12491   version_type=linux # correct to gnu/linux during the next big refactor
12492   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12493   soname_spec='$libname$release$shared_ext$major'
12494   shlibpath_var=LD_LIBRARY_PATH
12495   ;;
12496
12497 *)
12498   dynamic_linker=no
12499   ;;
12500 esac
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12502 $as_echo "$dynamic_linker" >&6; }
12503 test no = "$dynamic_linker" && can_build_shared=no
12504
12505 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12506 if test yes = "$GCC"; then
12507   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12508 fi
12509
12510 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12511   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12512 fi
12513
12514 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12515   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12516 fi
12517
12518 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12519 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12520
12521 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12522 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12523
12524 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12525 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12624 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12625 hardcode_action=
12626 if test -n "$hardcode_libdir_flag_spec" ||
12627    test -n "$runpath_var" ||
12628    test yes = "$hardcode_automatic"; then
12629
12630   # We can hardcode non-existent directories.
12631   if test no != "$hardcode_direct" &&
12632      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12633      # have to relink, otherwise we might link with an installed library
12634      # when we should be linking with a yet-to-be-installed one
12635      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12636      test no != "$hardcode_minus_L"; then
12637     # Linking always hardcodes the temporary library directory.
12638     hardcode_action=relink
12639   else
12640     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12641     hardcode_action=immediate
12642   fi
12643 else
12644   # We cannot hardcode anything, or else we can only hardcode existing
12645   # directories.
12646   hardcode_action=unsupported
12647 fi
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12649 $as_echo "$hardcode_action" >&6; }
12650
12651 if test relink = "$hardcode_action" ||
12652    test yes = "$inherit_rpath"; then
12653   # Fast installation is not supported
12654   enable_fast_install=no
12655 elif test yes = "$shlibpath_overrides_runpath" ||
12656      test no = "$enable_shared"; then
12657   # Fast installation is not necessary
12658   enable_fast_install=needless
12659 fi
12660
12661
12662
12663
12664
12665
12666   if test yes != "$enable_dlopen"; then
12667   enable_dlopen=unknown
12668   enable_dlopen_self=unknown
12669   enable_dlopen_self_static=unknown
12670 else
12671   lt_cv_dlopen=no
12672   lt_cv_dlopen_libs=
12673
12674   case $host_os in
12675   beos*)
12676     lt_cv_dlopen=load_add_on
12677     lt_cv_dlopen_libs=
12678     lt_cv_dlopen_self=yes
12679     ;;
12680
12681   mingw* | pw32* | cegcc*)
12682     lt_cv_dlopen=LoadLibrary
12683     lt_cv_dlopen_libs=
12684     ;;
12685
12686   cygwin*)
12687     lt_cv_dlopen=dlopen
12688     lt_cv_dlopen_libs=
12689     ;;
12690
12691   darwin*)
12692     # if libdl is installed we need to link against it
12693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12694 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12695 if ${ac_cv_lib_dl_dlopen+:} false; then :
12696   $as_echo_n "(cached) " >&6
12697 else
12698   ac_check_lib_save_LIBS=$LIBS
12699 LIBS="-ldl  $LIBS"
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h.  */
12702
12703 /* Override any GCC internal prototype to avoid an error.
12704    Use char because int might match the return type of a GCC
12705    builtin and then its argument prototype would still apply.  */
12706 #ifdef __cplusplus
12707 extern "C"
12708 #endif
12709 char dlopen ();
12710 int
12711 main ()
12712 {
12713 return dlopen ();
12714   ;
12715   return 0;
12716 }
12717 _ACEOF
12718 if ac_fn_c_try_link "$LINENO"; then :
12719   ac_cv_lib_dl_dlopen=yes
12720 else
12721   ac_cv_lib_dl_dlopen=no
12722 fi
12723 rm -f core conftest.err conftest.$ac_objext \
12724     conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12726 fi
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12728 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12729 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12730   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12731 else
12732
12733     lt_cv_dlopen=dyld
12734     lt_cv_dlopen_libs=
12735     lt_cv_dlopen_self=yes
12736
12737 fi
12738
12739     ;;
12740
12741   tpf*)
12742     # Don't try to run any link tests for TPF.  We know it's impossible
12743     # because TPF is a cross-compiler, and we know how we open DSOs.
12744     lt_cv_dlopen=dlopen
12745     lt_cv_dlopen_libs=
12746     lt_cv_dlopen_self=no
12747     ;;
12748
12749   *)
12750     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12751 if test "x$ac_cv_func_shl_load" = xyes; then :
12752   lt_cv_dlopen=shl_load
12753 else
12754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12755 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12756 if ${ac_cv_lib_dld_shl_load+:} false; then :
12757   $as_echo_n "(cached) " >&6
12758 else
12759   ac_check_lib_save_LIBS=$LIBS
12760 LIBS="-ldld  $LIBS"
12761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h.  */
12763
12764 /* Override any GCC internal prototype to avoid an error.
12765    Use char because int might match the return type of a GCC
12766    builtin and then its argument prototype would still apply.  */
12767 #ifdef __cplusplus
12768 extern "C"
12769 #endif
12770 char shl_load ();
12771 int
12772 main ()
12773 {
12774 return shl_load ();
12775   ;
12776   return 0;
12777 }
12778 _ACEOF
12779 if ac_fn_c_try_link "$LINENO"; then :
12780   ac_cv_lib_dld_shl_load=yes
12781 else
12782   ac_cv_lib_dld_shl_load=no
12783 fi
12784 rm -f core conftest.err conftest.$ac_objext \
12785     conftest$ac_exeext conftest.$ac_ext
12786 LIBS=$ac_check_lib_save_LIBS
12787 fi
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12789 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12790 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12791   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12792 else
12793   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12794 if test "x$ac_cv_func_dlopen" = xyes; then :
12795   lt_cv_dlopen=dlopen
12796 else
12797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12798 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12799 if ${ac_cv_lib_dl_dlopen+:} false; then :
12800   $as_echo_n "(cached) " >&6
12801 else
12802   ac_check_lib_save_LIBS=$LIBS
12803 LIBS="-ldl  $LIBS"
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h.  */
12806
12807 /* Override any GCC internal prototype to avoid an error.
12808    Use char because int might match the return type of a GCC
12809    builtin and then its argument prototype would still apply.  */
12810 #ifdef __cplusplus
12811 extern "C"
12812 #endif
12813 char dlopen ();
12814 int
12815 main ()
12816 {
12817 return dlopen ();
12818   ;
12819   return 0;
12820 }
12821 _ACEOF
12822 if ac_fn_c_try_link "$LINENO"; then :
12823   ac_cv_lib_dl_dlopen=yes
12824 else
12825   ac_cv_lib_dl_dlopen=no
12826 fi
12827 rm -f core conftest.err conftest.$ac_objext \
12828     conftest$ac_exeext conftest.$ac_ext
12829 LIBS=$ac_check_lib_save_LIBS
12830 fi
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12832 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12833 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12834   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12835 else
12836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12837 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12838 if ${ac_cv_lib_svld_dlopen+:} false; then :
12839   $as_echo_n "(cached) " >&6
12840 else
12841   ac_check_lib_save_LIBS=$LIBS
12842 LIBS="-lsvld  $LIBS"
12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h.  */
12845
12846 /* Override any GCC internal prototype to avoid an error.
12847    Use char because int might match the return type of a GCC
12848    builtin and then its argument prototype would still apply.  */
12849 #ifdef __cplusplus
12850 extern "C"
12851 #endif
12852 char dlopen ();
12853 int
12854 main ()
12855 {
12856 return dlopen ();
12857   ;
12858   return 0;
12859 }
12860 _ACEOF
12861 if ac_fn_c_try_link "$LINENO"; then :
12862   ac_cv_lib_svld_dlopen=yes
12863 else
12864   ac_cv_lib_svld_dlopen=no
12865 fi
12866 rm -f core conftest.err conftest.$ac_objext \
12867     conftest$ac_exeext conftest.$ac_ext
12868 LIBS=$ac_check_lib_save_LIBS
12869 fi
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12871 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12872 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12873   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12874 else
12875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12876 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12877 if ${ac_cv_lib_dld_dld_link+:} false; then :
12878   $as_echo_n "(cached) " >&6
12879 else
12880   ac_check_lib_save_LIBS=$LIBS
12881 LIBS="-ldld  $LIBS"
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h.  */
12884
12885 /* Override any GCC internal prototype to avoid an error.
12886    Use char because int might match the return type of a GCC
12887    builtin and then its argument prototype would still apply.  */
12888 #ifdef __cplusplus
12889 extern "C"
12890 #endif
12891 char dld_link ();
12892 int
12893 main ()
12894 {
12895 return dld_link ();
12896   ;
12897   return 0;
12898 }
12899 _ACEOF
12900 if ac_fn_c_try_link "$LINENO"; then :
12901   ac_cv_lib_dld_dld_link=yes
12902 else
12903   ac_cv_lib_dld_dld_link=no
12904 fi
12905 rm -f core conftest.err conftest.$ac_objext \
12906     conftest$ac_exeext conftest.$ac_ext
12907 LIBS=$ac_check_lib_save_LIBS
12908 fi
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12910 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12911 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12912   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12913 fi
12914
12915
12916 fi
12917
12918
12919 fi
12920
12921
12922 fi
12923
12924
12925 fi
12926
12927
12928 fi
12929
12930     ;;
12931   esac
12932
12933   if test no = "$lt_cv_dlopen"; then
12934     enable_dlopen=no
12935   else
12936     enable_dlopen=yes
12937   fi
12938
12939   case $lt_cv_dlopen in
12940   dlopen)
12941     save_CPPFLAGS=$CPPFLAGS
12942     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12943
12944     save_LDFLAGS=$LDFLAGS
12945     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12946
12947     save_LIBS=$LIBS
12948     LIBS="$lt_cv_dlopen_libs $LIBS"
12949
12950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12951 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12952 if ${lt_cv_dlopen_self+:} false; then :
12953   $as_echo_n "(cached) " >&6
12954 else
12955           if test yes = "$cross_compiling"; then :
12956   lt_cv_dlopen_self=cross
12957 else
12958   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12959   lt_status=$lt_dlunknown
12960   cat > conftest.$ac_ext <<_LT_EOF
12961 #line $LINENO "configure"
12962 #include "confdefs.h"
12963
12964 #if HAVE_DLFCN_H
12965 #include <dlfcn.h>
12966 #endif
12967
12968 #include <stdio.h>
12969
12970 #ifdef RTLD_GLOBAL
12971 #  define LT_DLGLOBAL           RTLD_GLOBAL
12972 #else
12973 #  ifdef DL_GLOBAL
12974 #    define LT_DLGLOBAL         DL_GLOBAL
12975 #  else
12976 #    define LT_DLGLOBAL         0
12977 #  endif
12978 #endif
12979
12980 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12981    find out it does not work in some platform. */
12982 #ifndef LT_DLLAZY_OR_NOW
12983 #  ifdef RTLD_LAZY
12984 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12985 #  else
12986 #    ifdef DL_LAZY
12987 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12988 #    else
12989 #      ifdef RTLD_NOW
12990 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12991 #      else
12992 #        ifdef DL_NOW
12993 #          define LT_DLLAZY_OR_NOW      DL_NOW
12994 #        else
12995 #          define LT_DLLAZY_OR_NOW      0
12996 #        endif
12997 #      endif
12998 #    endif
12999 #  endif
13000 #endif
13001
13002 /* When -fvisibility=hidden is used, assume the code has been annotated
13003    correspondingly for the symbols needed.  */
13004 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13005 int fnord () __attribute__((visibility("default")));
13006 #endif
13007
13008 int fnord () { return 42; }
13009 int main ()
13010 {
13011   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13012   int status = $lt_dlunknown;
13013
13014   if (self)
13015     {
13016       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13017       else
13018         {
13019           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13020           else puts (dlerror ());
13021         }
13022       /* dlclose (self); */
13023     }
13024   else
13025     puts (dlerror ());
13026
13027   return status;
13028 }
13029 _LT_EOF
13030   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13031   (eval $ac_link) 2>&5
13032   ac_status=$?
13033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13034   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13035     (./conftest; exit; ) >&5 2>/dev/null
13036     lt_status=$?
13037     case x$lt_status in
13038       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13039       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13040       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13041     esac
13042   else :
13043     # compilation failed
13044     lt_cv_dlopen_self=no
13045   fi
13046 fi
13047 rm -fr conftest*
13048
13049
13050 fi
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13052 $as_echo "$lt_cv_dlopen_self" >&6; }
13053
13054     if test yes = "$lt_cv_dlopen_self"; then
13055       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13056       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13057 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13058 if ${lt_cv_dlopen_self_static+:} false; then :
13059   $as_echo_n "(cached) " >&6
13060 else
13061           if test yes = "$cross_compiling"; then :
13062   lt_cv_dlopen_self_static=cross
13063 else
13064   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13065   lt_status=$lt_dlunknown
13066   cat > conftest.$ac_ext <<_LT_EOF
13067 #line $LINENO "configure"
13068 #include "confdefs.h"
13069
13070 #if HAVE_DLFCN_H
13071 #include <dlfcn.h>
13072 #endif
13073
13074 #include <stdio.h>
13075
13076 #ifdef RTLD_GLOBAL
13077 #  define LT_DLGLOBAL           RTLD_GLOBAL
13078 #else
13079 #  ifdef DL_GLOBAL
13080 #    define LT_DLGLOBAL         DL_GLOBAL
13081 #  else
13082 #    define LT_DLGLOBAL         0
13083 #  endif
13084 #endif
13085
13086 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13087    find out it does not work in some platform. */
13088 #ifndef LT_DLLAZY_OR_NOW
13089 #  ifdef RTLD_LAZY
13090 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13091 #  else
13092 #    ifdef DL_LAZY
13093 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13094 #    else
13095 #      ifdef RTLD_NOW
13096 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13097 #      else
13098 #        ifdef DL_NOW
13099 #          define LT_DLLAZY_OR_NOW      DL_NOW
13100 #        else
13101 #          define LT_DLLAZY_OR_NOW      0
13102 #        endif
13103 #      endif
13104 #    endif
13105 #  endif
13106 #endif
13107
13108 /* When -fvisibility=hidden is used, assume the code has been annotated
13109    correspondingly for the symbols needed.  */
13110 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13111 int fnord () __attribute__((visibility("default")));
13112 #endif
13113
13114 int fnord () { return 42; }
13115 int main ()
13116 {
13117   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13118   int status = $lt_dlunknown;
13119
13120   if (self)
13121     {
13122       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13123       else
13124         {
13125           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13126           else puts (dlerror ());
13127         }
13128       /* dlclose (self); */
13129     }
13130   else
13131     puts (dlerror ());
13132
13133   return status;
13134 }
13135 _LT_EOF
13136   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13137   (eval $ac_link) 2>&5
13138   ac_status=$?
13139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13140   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13141     (./conftest; exit; ) >&5 2>/dev/null
13142     lt_status=$?
13143     case x$lt_status in
13144       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13145       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13146       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13147     esac
13148   else :
13149     # compilation failed
13150     lt_cv_dlopen_self_static=no
13151   fi
13152 fi
13153 rm -fr conftest*
13154
13155
13156 fi
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13158 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13159     fi
13160
13161     CPPFLAGS=$save_CPPFLAGS
13162     LDFLAGS=$save_LDFLAGS
13163     LIBS=$save_LIBS
13164     ;;
13165   esac
13166
13167   case $lt_cv_dlopen_self in
13168   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13169   *) enable_dlopen_self=unknown ;;
13170   esac
13171
13172   case $lt_cv_dlopen_self_static in
13173   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13174   *) enable_dlopen_self_static=unknown ;;
13175   esac
13176 fi
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194 striplib=
13195 old_striplib=
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13197 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13198 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13199   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13200   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13202 $as_echo "yes" >&6; }
13203 else
13204 # FIXME - insert some real tests, host_os isn't really good enough
13205   case $host_os in
13206   darwin*)
13207     if test -n "$STRIP"; then
13208       striplib="$STRIP -x"
13209       old_striplib="$STRIP -S"
13210       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13211 $as_echo "yes" >&6; }
13212     else
13213       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214 $as_echo "no" >&6; }
13215     fi
13216     ;;
13217   *)
13218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219 $as_echo "no" >&6; }
13220     ;;
13221   esac
13222 fi
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235   # Report what library types will actually be built
13236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13237 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13239 $as_echo "$can_build_shared" >&6; }
13240
13241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13242 $as_echo_n "checking whether to build shared libraries... " >&6; }
13243   test no = "$can_build_shared" && enable_shared=no
13244
13245   # On AIX, shared libraries and static libraries use the same namespace, and
13246   # are all built from PIC.
13247   case $host_os in
13248   aix3*)
13249     test yes = "$enable_shared" && enable_static=no
13250     if test -n "$RANLIB"; then
13251       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13252       postinstall_cmds='$RANLIB $lib'
13253     fi
13254     ;;
13255
13256   aix[4-9]*)
13257     if test ia64 != "$host_cpu"; then
13258       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13259       yes,aix,yes) ;;                   # shared object as lib.so file only
13260       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13261       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13262       esac
13263     fi
13264     ;;
13265   esac
13266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13267 $as_echo "$enable_shared" >&6; }
13268
13269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13270 $as_echo_n "checking whether to build static libraries... " >&6; }
13271   # Make sure either enable_shared or enable_static is yes.
13272   test yes = "$enable_shared" || enable_static=yes
13273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13274 $as_echo "$enable_static" >&6; }
13275
13276
13277
13278
13279 fi
13280 ac_ext=c
13281 ac_cpp='$CPP $CPPFLAGS'
13282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13285
13286 CC=$lt_save_CC
13287
13288       if test -n "$CXX" && ( test no != "$CXX" &&
13289     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13290     (test g++ != "$CXX"))); then
13291   ac_ext=cpp
13292 ac_cpp='$CXXCPP $CPPFLAGS'
13293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13297 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13298 if test -z "$CXXCPP"; then
13299   if ${ac_cv_prog_CXXCPP+:} false; then :
13300   $as_echo_n "(cached) " >&6
13301 else
13302       # Double quotes because CXXCPP needs to be expanded
13303     for CXXCPP in "$CXX -E" "/lib/cpp"
13304     do
13305       ac_preproc_ok=false
13306 for ac_cxx_preproc_warn_flag in '' yes
13307 do
13308   # Use a header file that comes with gcc, so configuring glibc
13309   # with a fresh cross-compiler works.
13310   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13311   # <limits.h> exists even on freestanding compilers.
13312   # On the NeXT, cc -E runs the code through the compiler's parser,
13313   # not just through cpp. "Syntax error" is here to catch this case.
13314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h.  */
13316 #ifdef __STDC__
13317 # include <limits.h>
13318 #else
13319 # include <assert.h>
13320 #endif
13321                      Syntax error
13322 _ACEOF
13323 if ac_fn_cxx_try_cpp "$LINENO"; then :
13324
13325 else
13326   # Broken: fails on valid input.
13327 continue
13328 fi
13329 rm -f conftest.err conftest.i conftest.$ac_ext
13330
13331   # OK, works on sane cases.  Now check whether nonexistent headers
13332   # can be detected and how.
13333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h.  */
13335 #include <ac_nonexistent.h>
13336 _ACEOF
13337 if ac_fn_cxx_try_cpp "$LINENO"; then :
13338   # Broken: success on invalid input.
13339 continue
13340 else
13341   # Passes both tests.
13342 ac_preproc_ok=:
13343 break
13344 fi
13345 rm -f conftest.err conftest.i conftest.$ac_ext
13346
13347 done
13348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13349 rm -f conftest.i conftest.err conftest.$ac_ext
13350 if $ac_preproc_ok; then :
13351   break
13352 fi
13353
13354     done
13355     ac_cv_prog_CXXCPP=$CXXCPP
13356
13357 fi
13358   CXXCPP=$ac_cv_prog_CXXCPP
13359 else
13360   ac_cv_prog_CXXCPP=$CXXCPP
13361 fi
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13363 $as_echo "$CXXCPP" >&6; }
13364 ac_preproc_ok=false
13365 for ac_cxx_preproc_warn_flag in '' yes
13366 do
13367   # Use a header file that comes with gcc, so configuring glibc
13368   # with a fresh cross-compiler works.
13369   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13370   # <limits.h> exists even on freestanding compilers.
13371   # On the NeXT, cc -E runs the code through the compiler's parser,
13372   # not just through cpp. "Syntax error" is here to catch this case.
13373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h.  */
13375 #ifdef __STDC__
13376 # include <limits.h>
13377 #else
13378 # include <assert.h>
13379 #endif
13380                      Syntax error
13381 _ACEOF
13382 if ac_fn_cxx_try_cpp "$LINENO"; then :
13383
13384 else
13385   # Broken: fails on valid input.
13386 continue
13387 fi
13388 rm -f conftest.err conftest.i conftest.$ac_ext
13389
13390   # OK, works on sane cases.  Now check whether nonexistent headers
13391   # can be detected and how.
13392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h.  */
13394 #include <ac_nonexistent.h>
13395 _ACEOF
13396 if ac_fn_cxx_try_cpp "$LINENO"; then :
13397   # Broken: success on invalid input.
13398 continue
13399 else
13400   # Passes both tests.
13401 ac_preproc_ok=:
13402 break
13403 fi
13404 rm -f conftest.err conftest.i conftest.$ac_ext
13405
13406 done
13407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13408 rm -f conftest.i conftest.err conftest.$ac_ext
13409 if $ac_preproc_ok; then :
13410
13411 else
13412   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13414 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13415 See \`config.log' for more details" "$LINENO" 5; }
13416 fi
13417
13418 ac_ext=c
13419 ac_cpp='$CPP $CPPFLAGS'
13420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13423
13424 else
13425   _lt_caught_CXX_error=yes
13426 fi
13427
13428 ac_ext=cpp
13429 ac_cpp='$CXXCPP $CPPFLAGS'
13430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13433
13434 archive_cmds_need_lc_CXX=no
13435 allow_undefined_flag_CXX=
13436 always_export_symbols_CXX=no
13437 archive_expsym_cmds_CXX=
13438 compiler_needs_object_CXX=no
13439 export_dynamic_flag_spec_CXX=
13440 hardcode_direct_CXX=no
13441 hardcode_direct_absolute_CXX=no
13442 hardcode_libdir_flag_spec_CXX=
13443 hardcode_libdir_separator_CXX=
13444 hardcode_minus_L_CXX=no
13445 hardcode_shlibpath_var_CXX=unsupported
13446 hardcode_automatic_CXX=no
13447 inherit_rpath_CXX=no
13448 module_cmds_CXX=
13449 module_expsym_cmds_CXX=
13450 link_all_deplibs_CXX=unknown
13451 old_archive_cmds_CXX=$old_archive_cmds
13452 reload_flag_CXX=$reload_flag
13453 reload_cmds_CXX=$reload_cmds
13454 no_undefined_flag_CXX=
13455 whole_archive_flag_spec_CXX=
13456 enable_shared_with_static_runtimes_CXX=no
13457
13458 # Source file extension for C++ test sources.
13459 ac_ext=cpp
13460
13461 # Object file extension for compiled C++ test sources.
13462 objext=o
13463 objext_CXX=$objext
13464
13465 # No sense in running all these tests if we already determined that
13466 # the CXX compiler isn't working.  Some variables (like enable_shared)
13467 # are currently assumed to apply to all compilers on this platform,
13468 # and will be corrupted by setting them based on a non-working compiler.
13469 if test yes != "$_lt_caught_CXX_error"; then
13470   # Code to be used in simple compile tests
13471   lt_simple_compile_test_code="int some_variable = 0;"
13472
13473   # Code to be used in simple link tests
13474   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13475
13476   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13477
13478
13479
13480
13481
13482
13483 # If no C compiler was specified, use CC.
13484 LTCC=${LTCC-"$CC"}
13485
13486 # If no C compiler flags were specified, use CFLAGS.
13487 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13488
13489 # Allow CC to be a program name with arguments.
13490 compiler=$CC
13491
13492
13493   # save warnings/boilerplate of simple test code
13494   ac_outfile=conftest.$ac_objext
13495 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13496 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13497 _lt_compiler_boilerplate=`cat conftest.err`
13498 $RM conftest*
13499
13500   ac_outfile=conftest.$ac_objext
13501 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13502 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13503 _lt_linker_boilerplate=`cat conftest.err`
13504 $RM -r conftest*
13505
13506
13507   # Allow CC to be a program name with arguments.
13508   lt_save_CC=$CC
13509   lt_save_CFLAGS=$CFLAGS
13510   lt_save_LD=$LD
13511   lt_save_GCC=$GCC
13512   GCC=$GXX
13513   lt_save_with_gnu_ld=$with_gnu_ld
13514   lt_save_path_LD=$lt_cv_path_LD
13515   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13516     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13517   else
13518     $as_unset lt_cv_prog_gnu_ld
13519   fi
13520   if test -n "${lt_cv_path_LDCXX+set}"; then
13521     lt_cv_path_LD=$lt_cv_path_LDCXX
13522   else
13523     $as_unset lt_cv_path_LD
13524   fi
13525   test -z "${LDCXX+set}" || LD=$LDCXX
13526   CC=${CXX-"c++"}
13527   CFLAGS=$CXXFLAGS
13528   compiler=$CC
13529   compiler_CXX=$CC
13530   func_cc_basename $compiler
13531 cc_basename=$func_cc_basename_result
13532
13533
13534   if test -n "$compiler"; then
13535     # We don't want -fno-exception when compiling C++ code, so set the
13536     # no_builtin_flag separately
13537     if test yes = "$GXX"; then
13538       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13539     else
13540       lt_prog_compiler_no_builtin_flag_CXX=
13541     fi
13542
13543     if test yes = "$GXX"; then
13544       # Set up default GNU C++ configuration
13545
13546
13547
13548 # Check whether --with-gnu-ld was given.
13549 if test "${with_gnu_ld+set}" = set; then :
13550   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13551 else
13552   with_gnu_ld=no
13553 fi
13554
13555 ac_prog=ld
13556 if test yes = "$GCC"; then
13557   # Check if gcc -print-prog-name=ld gives a path.
13558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13559 $as_echo_n "checking for ld used by $CC... " >&6; }
13560   case $host in
13561   *-*-mingw*)
13562     # gcc leaves a trailing carriage return, which upsets mingw
13563     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13564   *)
13565     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13566   esac
13567   case $ac_prog in
13568     # Accept absolute paths.
13569     [\\/]* | ?:[\\/]*)
13570       re_direlt='/[^/][^/]*/\.\./'
13571       # Canonicalize the pathname of ld
13572       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13573       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13574         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13575       done
13576       test -z "$LD" && LD=$ac_prog
13577       ;;
13578   "")
13579     # If it fails, then pretend we aren't using GCC.
13580     ac_prog=ld
13581     ;;
13582   *)
13583     # If it is relative, then search for the first ld in PATH.
13584     with_gnu_ld=unknown
13585     ;;
13586   esac
13587 elif test yes = "$with_gnu_ld"; then
13588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13589 $as_echo_n "checking for GNU ld... " >&6; }
13590 else
13591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13592 $as_echo_n "checking for non-GNU ld... " >&6; }
13593 fi
13594 if ${lt_cv_path_LD+:} false; then :
13595   $as_echo_n "(cached) " >&6
13596 else
13597   if test -z "$LD"; then
13598   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13599   for ac_dir in $PATH; do
13600     IFS=$lt_save_ifs
13601     test -z "$ac_dir" && ac_dir=.
13602     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13603       lt_cv_path_LD=$ac_dir/$ac_prog
13604       # Check to see if the program is GNU ld.  I'd rather use --version,
13605       # but apparently some variants of GNU ld only accept -v.
13606       # Break only if it was the GNU/non-GNU ld that we prefer.
13607       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13608       *GNU* | *'with BFD'*)
13609         test no != "$with_gnu_ld" && break
13610         ;;
13611       *)
13612         test yes != "$with_gnu_ld" && break
13613         ;;
13614       esac
13615     fi
13616   done
13617   IFS=$lt_save_ifs
13618 else
13619   lt_cv_path_LD=$LD # Let the user override the test with a path.
13620 fi
13621 fi
13622
13623 LD=$lt_cv_path_LD
13624 if test -n "$LD"; then
13625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13626 $as_echo "$LD" >&6; }
13627 else
13628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13629 $as_echo "no" >&6; }
13630 fi
13631 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13633 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13634 if ${lt_cv_prog_gnu_ld+:} false; then :
13635   $as_echo_n "(cached) " >&6
13636 else
13637   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13638 case `$LD -v 2>&1 </dev/null` in
13639 *GNU* | *'with BFD'*)
13640   lt_cv_prog_gnu_ld=yes
13641   ;;
13642 *)
13643   lt_cv_prog_gnu_ld=no
13644   ;;
13645 esac
13646 fi
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13648 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13649 with_gnu_ld=$lt_cv_prog_gnu_ld
13650
13651
13652
13653
13654
13655
13656
13657       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13658       # archiving commands below assume that GNU ld is being used.
13659       if test yes = "$with_gnu_ld"; then
13660         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13661         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'
13662
13663         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13664         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13665
13666         # If archive_cmds runs LD, not CC, wlarc should be empty
13667         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13668         #     investigate it a little bit more. (MM)
13669         wlarc='$wl'
13670
13671         # ancient GNU ld didn't support --whole-archive et. al.
13672         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13673           $GREP 'no-whole-archive' > /dev/null; then
13674           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13675         else
13676           whole_archive_flag_spec_CXX=
13677         fi
13678       else
13679         with_gnu_ld=no
13680         wlarc=
13681
13682         # A generic and very simple default shared library creation
13683         # command for GNU C++ for the case where it uses the native
13684         # linker, instead of GNU ld.  If possible, this setting should
13685         # overridden to take advantage of the native linker features on
13686         # the platform it is being used on.
13687         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13688       fi
13689
13690       # Commands to make compiler produce verbose output that lists
13691       # what "hidden" libraries, object files and flags are used when
13692       # linking a shared library.
13693       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13694
13695     else
13696       GXX=no
13697       with_gnu_ld=no
13698       wlarc=
13699     fi
13700
13701     # PORTME: fill in a description of your system's C++ link characteristics
13702     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13703 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13704     ld_shlibs_CXX=yes
13705     case $host_os in
13706       aix3*)
13707         # FIXME: insert proper C++ library support
13708         ld_shlibs_CXX=no
13709         ;;
13710       aix[4-9]*)
13711         if test ia64 = "$host_cpu"; then
13712           # On IA64, the linker does run time linking by default, so we don't
13713           # have to do anything special.
13714           aix_use_runtimelinking=no
13715           exp_sym_flag='-Bexport'
13716           no_entry_flag=
13717         else
13718           aix_use_runtimelinking=no
13719
13720           # Test if we are trying to use run time linking or normal
13721           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13722           # have runtime linking enabled, and use it for executables.
13723           # For shared libraries, we enable/disable runtime linking
13724           # depending on the kind of the shared library created -
13725           # when "with_aix_soname,aix_use_runtimelinking" is:
13726           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13727           # "aix,yes"  lib.so          shared, rtl:yes, for executables
13728           #            lib.a           static archive
13729           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13730           #            lib.a(lib.so.V) shared, rtl:no,  for executables
13731           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13732           #            lib.a(lib.so.V) shared, rtl:no
13733           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13734           #            lib.a           static archive
13735           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13736             for ld_flag in $LDFLAGS; do
13737               case $ld_flag in
13738               *-brtl*)
13739                 aix_use_runtimelinking=yes
13740                 break
13741                 ;;
13742               esac
13743             done
13744             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13745               # With aix-soname=svr4, we create the lib.so.V shared archives only,
13746               # so we don't have lib.a shared libs to link our executables.
13747               # We have to force runtime linking in this case.
13748               aix_use_runtimelinking=yes
13749               LDFLAGS="$LDFLAGS -Wl,-brtl"
13750             fi
13751             ;;
13752           esac
13753
13754           exp_sym_flag='-bexport'
13755           no_entry_flag='-bnoentry'
13756         fi
13757
13758         # When large executables or shared objects are built, AIX ld can
13759         # have problems creating the table of contents.  If linking a library
13760         # or program results in "error TOC overflow" add -mminimal-toc to
13761         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13762         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13763
13764         archive_cmds_CXX=''
13765         hardcode_direct_CXX=yes
13766         hardcode_direct_absolute_CXX=yes
13767         hardcode_libdir_separator_CXX=':'
13768         link_all_deplibs_CXX=yes
13769         file_list_spec_CXX='$wl-f,'
13770         case $with_aix_soname,$aix_use_runtimelinking in
13771         aix,*) ;;       # no import file
13772         svr4,* | *,yes) # use import file
13773           # The Import File defines what to hardcode.
13774           hardcode_direct_CXX=no
13775           hardcode_direct_absolute_CXX=no
13776           ;;
13777         esac
13778
13779         if test yes = "$GXX"; then
13780           case $host_os in aix4.[012]|aix4.[012].*)
13781           # We only want to do this on AIX 4.2 and lower, the check
13782           # below for broken collect2 doesn't work under 4.3+
13783           collect2name=`$CC -print-prog-name=collect2`
13784           if test -f "$collect2name" &&
13785              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13786           then
13787             # We have reworked collect2
13788             :
13789           else
13790             # We have old collect2
13791             hardcode_direct_CXX=unsupported
13792             # It fails to find uninstalled libraries when the uninstalled
13793             # path is not listed in the libpath.  Setting hardcode_minus_L
13794             # to unsupported forces relinking
13795             hardcode_minus_L_CXX=yes
13796             hardcode_libdir_flag_spec_CXX='-L$libdir'
13797             hardcode_libdir_separator_CXX=
13798           fi
13799           esac
13800           shared_flag='-shared'
13801           if test yes = "$aix_use_runtimelinking"; then
13802             shared_flag=$shared_flag' $wl-G'
13803           fi
13804           # Need to ensure runtime linking is disabled for the traditional
13805           # shared library, or the linker may eventually find shared libraries
13806           # /with/ Import File - we do not want to mix them.
13807           shared_flag_aix='-shared'
13808           shared_flag_svr4='-shared $wl-G'
13809         else
13810           # not using gcc
13811           if test ia64 = "$host_cpu"; then
13812           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13813           # chokes on -Wl,-G. The following line is correct:
13814           shared_flag='-G'
13815           else
13816             if test yes = "$aix_use_runtimelinking"; then
13817               shared_flag='$wl-G'
13818             else
13819               shared_flag='$wl-bM:SRE'
13820             fi
13821             shared_flag_aix='$wl-bM:SRE'
13822             shared_flag_svr4='$wl-G'
13823           fi
13824         fi
13825
13826         export_dynamic_flag_spec_CXX='$wl-bexpall'
13827         # It seems that -bexpall does not export symbols beginning with
13828         # underscore (_), so it is better to generate a list of symbols to
13829         # export.
13830         always_export_symbols_CXX=yes
13831         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13832           # Warning - without using the other runtime loading flags (-brtl),
13833           # -berok will link without error, but may produce a broken library.
13834           # The "-G" linker flag allows undefined symbols.
13835           no_undefined_flag_CXX='-bernotok'
13836           # Determine the default libpath from the value encoded in an empty
13837           # executable.
13838           if test set = "${lt_cv_aix_libpath+set}"; then
13839   aix_libpath=$lt_cv_aix_libpath
13840 else
13841   if ${lt_cv_aix_libpath__CXX+:} false; then :
13842   $as_echo_n "(cached) " >&6
13843 else
13844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h.  */
13846
13847 int
13848 main ()
13849 {
13850
13851   ;
13852   return 0;
13853 }
13854 _ACEOF
13855 if ac_fn_cxx_try_link "$LINENO"; then :
13856
13857   lt_aix_libpath_sed='
13858       /Import File Strings/,/^$/ {
13859           /^0/ {
13860               s/^0  *\([^ ]*\) *$/\1/
13861               p
13862           }
13863       }'
13864   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13865   # Check for a 64-bit object if we didn't find anything.
13866   if test -z "$lt_cv_aix_libpath__CXX"; then
13867     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13868   fi
13869 fi
13870 rm -f core conftest.err conftest.$ac_objext \
13871     conftest$ac_exeext conftest.$ac_ext
13872   if test -z "$lt_cv_aix_libpath__CXX"; then
13873     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13874   fi
13875
13876 fi
13877
13878   aix_libpath=$lt_cv_aix_libpath__CXX
13879 fi
13880
13881           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13882
13883           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
13884         else
13885           if test ia64 = "$host_cpu"; then
13886             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13887             allow_undefined_flag_CXX="-z nodefs"
13888             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"
13889           else
13890             # Determine the default libpath from the value encoded in an
13891             # empty executable.
13892             if test set = "${lt_cv_aix_libpath+set}"; then
13893   aix_libpath=$lt_cv_aix_libpath
13894 else
13895   if ${lt_cv_aix_libpath__CXX+:} false; then :
13896   $as_echo_n "(cached) " >&6
13897 else
13898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h.  */
13900
13901 int
13902 main ()
13903 {
13904
13905   ;
13906   return 0;
13907 }
13908 _ACEOF
13909 if ac_fn_cxx_try_link "$LINENO"; then :
13910
13911   lt_aix_libpath_sed='
13912       /Import File Strings/,/^$/ {
13913           /^0/ {
13914               s/^0  *\([^ ]*\) *$/\1/
13915               p
13916           }
13917       }'
13918   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13919   # Check for a 64-bit object if we didn't find anything.
13920   if test -z "$lt_cv_aix_libpath__CXX"; then
13921     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13922   fi
13923 fi
13924 rm -f core conftest.err conftest.$ac_objext \
13925     conftest$ac_exeext conftest.$ac_ext
13926   if test -z "$lt_cv_aix_libpath__CXX"; then
13927     lt_cv_aix_libpath__CXX=/usr/lib:/lib
13928   fi
13929
13930 fi
13931
13932   aix_libpath=$lt_cv_aix_libpath__CXX
13933 fi
13934
13935             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13936             # Warning - without using the other run time loading flags,
13937             # -berok will link without error, but may produce a broken library.
13938             no_undefined_flag_CXX=' $wl-bernotok'
13939             allow_undefined_flag_CXX=' $wl-berok'
13940             if test yes = "$with_gnu_ld"; then
13941               # We only use this code for GNU lds that support --whole-archive.
13942               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13943             else
13944               # Exported symbols can be pulled into shared objects from archives
13945               whole_archive_flag_spec_CXX='$convenience'
13946             fi
13947             archive_cmds_need_lc_CXX=yes
13948             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13949             # -brtl affects multiple linker settings, -berok does not and is overridden later
13950             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13951             if test svr4 != "$with_aix_soname"; then
13952               # This is similar to how AIX traditionally builds its shared
13953               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13954               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'
13955             fi
13956             if test aix != "$with_aix_soname"; then
13957               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'
13958             else
13959               # used by -dlpreopen to get the symbols
13960               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13961             fi
13962             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13963           fi
13964         fi
13965         ;;
13966
13967       beos*)
13968         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13969           allow_undefined_flag_CXX=unsupported
13970           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13971           # support --undefined.  This deserves some investigation.  FIXME
13972           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13973         else
13974           ld_shlibs_CXX=no
13975         fi
13976         ;;
13977
13978       chorus*)
13979         case $cc_basename in
13980           *)
13981           # FIXME: insert proper C++ library support
13982           ld_shlibs_CXX=no
13983           ;;
13984         esac
13985         ;;
13986
13987       cygwin* | mingw* | pw32* | cegcc*)
13988         case $GXX,$cc_basename in
13989         ,cl* | no,cl*)
13990           # Native MSVC
13991           # hardcode_libdir_flag_spec is actually meaningless, as there is
13992           # no search path for DLLs.
13993           hardcode_libdir_flag_spec_CXX=' '
13994           allow_undefined_flag_CXX=unsupported
13995           always_export_symbols_CXX=yes
13996           file_list_spec_CXX='@'
13997           # Tell ltmain to make .lib files, not .a files.
13998           libext=lib
13999           # Tell ltmain to make .dll files, not .so files.
14000           shrext_cmds=.dll
14001           # FIXME: Setting linknames here is a bad hack.
14002           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14003           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14004               cp "$export_symbols" "$output_objdir/$soname.def";
14005               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14006             else
14007               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14008             fi~
14009             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14010             linknames='
14011           # The linker will not automatically build a static lib if we build a DLL.
14012           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14013           enable_shared_with_static_runtimes_CXX=yes
14014           # Don't use ranlib
14015           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14016           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14017             lt_tool_outputfile="@TOOL_OUTPUT@"~
14018             case $lt_outputfile in
14019               *.exe|*.EXE) ;;
14020               *)
14021                 lt_outputfile=$lt_outputfile.exe
14022                 lt_tool_outputfile=$lt_tool_outputfile.exe
14023                 ;;
14024             esac~
14025             func_to_tool_file "$lt_outputfile"~
14026             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14027               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14028               $RM "$lt_outputfile.manifest";
14029             fi'
14030           ;;
14031         *)
14032           # g++
14033           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14034           # as there is no search path for DLLs.
14035           hardcode_libdir_flag_spec_CXX='-L$libdir'
14036           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14037           allow_undefined_flag_CXX=unsupported
14038           always_export_symbols_CXX=no
14039           enable_shared_with_static_runtimes_CXX=yes
14040
14041           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14042             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'
14043             # If the export-symbols file already is a .def file, use it as
14044             # is; otherwise, prepend EXPORTS...
14045             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14046               cp $export_symbols $output_objdir/$soname.def;
14047             else
14048               echo EXPORTS > $output_objdir/$soname.def;
14049               cat $export_symbols >> $output_objdir/$soname.def;
14050             fi~
14051             $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'
14052           else
14053             ld_shlibs_CXX=no
14054           fi
14055           ;;
14056         esac
14057         ;;
14058       darwin* | rhapsody*)
14059
14060
14061   archive_cmds_need_lc_CXX=no
14062   hardcode_direct_CXX=no
14063   hardcode_automatic_CXX=yes
14064   hardcode_shlibpath_var_CXX=unsupported
14065   if test yes = "$lt_cv_ld_force_load"; then
14066     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\"`'
14067
14068   else
14069     whole_archive_flag_spec_CXX=''
14070   fi
14071   link_all_deplibs_CXX=yes
14072   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14073   case $cc_basename in
14074      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14075      *) _lt_dar_can_shared=$GCC ;;
14076   esac
14077   if test yes = "$_lt_dar_can_shared"; then
14078     output_verbose_link_cmd=func_echo_all
14079     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"
14080     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14081     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"
14082     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"
14083        if test yes != "$lt_cv_apple_cc_single_mod"; then
14084       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"
14085       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"
14086     fi
14087
14088   else
14089   ld_shlibs_CXX=no
14090   fi
14091
14092         ;;
14093
14094       os2*)
14095         hardcode_libdir_flag_spec_CXX='-L$libdir'
14096         hardcode_minus_L_CXX=yes
14097         allow_undefined_flag_CXX=unsupported
14098         shrext_cmds=.dll
14099         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14100           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14101           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14102           $ECHO EXPORTS >> $output_objdir/$libname.def~
14103           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14104           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14105           emximp -o $lib $output_objdir/$libname.def'
14106         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14107           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14108           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14109           $ECHO EXPORTS >> $output_objdir/$libname.def~
14110           prefix_cmds="$SED"~
14111           if test EXPORTS = "`$SED 1q $export_symbols`"; then
14112             prefix_cmds="$prefix_cmds -e 1d";
14113           fi~
14114           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14115           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14116           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14117           emximp -o $lib $output_objdir/$libname.def'
14118         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14119         enable_shared_with_static_runtimes_CXX=yes
14120         ;;
14121
14122       dgux*)
14123         case $cc_basename in
14124           ec++*)
14125             # FIXME: insert proper C++ library support
14126             ld_shlibs_CXX=no
14127             ;;
14128           ghcx*)
14129             # Green Hills C++ Compiler
14130             # FIXME: insert proper C++ library support
14131             ld_shlibs_CXX=no
14132             ;;
14133           *)
14134             # FIXME: insert proper C++ library support
14135             ld_shlibs_CXX=no
14136             ;;
14137         esac
14138         ;;
14139
14140       freebsd2.*)
14141         # C++ shared libraries reported to be fairly broken before
14142         # switch to ELF
14143         ld_shlibs_CXX=no
14144         ;;
14145
14146       freebsd-elf*)
14147         archive_cmds_need_lc_CXX=no
14148         ;;
14149
14150       freebsd* | dragonfly*)
14151         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14152         # conventions
14153         ld_shlibs_CXX=yes
14154         ;;
14155
14156       haiku*)
14157         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14158         link_all_deplibs_CXX=yes
14159         ;;
14160
14161       hpux9*)
14162         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14163         hardcode_libdir_separator_CXX=:
14164         export_dynamic_flag_spec_CXX='$wl-E'
14165         hardcode_direct_CXX=yes
14166         hardcode_minus_L_CXX=yes # Not in the search PATH,
14167                                              # but as the default
14168                                              # location of the library.
14169
14170         case $cc_basename in
14171           CC*)
14172             # FIXME: insert proper C++ library support
14173             ld_shlibs_CXX=no
14174             ;;
14175           aCC*)
14176             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'
14177             # Commands to make compiler produce verbose output that lists
14178             # what "hidden" libraries, object files and flags are used when
14179             # linking a shared library.
14180             #
14181             # There doesn't appear to be a way to prevent this compiler from
14182             # explicitly linking system object files so we need to strip them
14183             # from the output so that they don't get included in the library
14184             # dependencies.
14185             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"'
14186             ;;
14187           *)
14188             if test yes = "$GXX"; then
14189               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'
14190             else
14191               # FIXME: insert proper C++ library support
14192               ld_shlibs_CXX=no
14193             fi
14194             ;;
14195         esac
14196         ;;
14197
14198       hpux10*|hpux11*)
14199         if test no = "$with_gnu_ld"; then
14200           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14201           hardcode_libdir_separator_CXX=:
14202
14203           case $host_cpu in
14204             hppa*64*|ia64*)
14205               ;;
14206             *)
14207               export_dynamic_flag_spec_CXX='$wl-E'
14208               ;;
14209           esac
14210         fi
14211         case $host_cpu in
14212           hppa*64*|ia64*)
14213             hardcode_direct_CXX=no
14214             hardcode_shlibpath_var_CXX=no
14215             ;;
14216           *)
14217             hardcode_direct_CXX=yes
14218             hardcode_direct_absolute_CXX=yes
14219             hardcode_minus_L_CXX=yes # Not in the search PATH,
14220                                                  # but as the default
14221                                                  # location of the library.
14222             ;;
14223         esac
14224
14225         case $cc_basename in
14226           CC*)
14227             # FIXME: insert proper C++ library support
14228             ld_shlibs_CXX=no
14229             ;;
14230           aCC*)
14231             case $host_cpu in
14232               hppa*64*)
14233                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14234                 ;;
14235               ia64*)
14236                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14237                 ;;
14238               *)
14239                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14240                 ;;
14241             esac
14242             # Commands to make compiler produce verbose output that lists
14243             # what "hidden" libraries, object files and flags are used when
14244             # linking a shared library.
14245             #
14246             # There doesn't appear to be a way to prevent this compiler from
14247             # explicitly linking system object files so we need to strip them
14248             # from the output so that they don't get included in the library
14249             # dependencies.
14250             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"'
14251             ;;
14252           *)
14253             if test yes = "$GXX"; then
14254               if test no = "$with_gnu_ld"; then
14255                 case $host_cpu in
14256                   hppa*64*)
14257                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14258                     ;;
14259                   ia64*)
14260                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14261                     ;;
14262                   *)
14263                     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'
14264                     ;;
14265                 esac
14266               fi
14267             else
14268               # FIXME: insert proper C++ library support
14269               ld_shlibs_CXX=no
14270             fi
14271             ;;
14272         esac
14273         ;;
14274
14275       interix[3-9]*)
14276         hardcode_direct_CXX=no
14277         hardcode_shlibpath_var_CXX=no
14278         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14279         export_dynamic_flag_spec_CXX='$wl-E'
14280         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14281         # Instead, shared libraries are loaded at an image base (0x10000000 by
14282         # default) and relocated if they conflict, which is a slow very memory
14283         # consuming and fragmenting process.  To avoid this, we pick a random,
14284         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14285         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14286         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'
14287         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'
14288         ;;
14289       irix5* | irix6*)
14290         case $cc_basename in
14291           CC*)
14292             # SGI C++
14293             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'
14294
14295             # Archives containing C++ object files must be created using
14296             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14297             # necessary to make sure instantiated templates are included
14298             # in the archive.
14299             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14300             ;;
14301           *)
14302             if test yes = "$GXX"; then
14303               if test no = "$with_gnu_ld"; then
14304                 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'
14305               else
14306                 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'
14307               fi
14308             fi
14309             link_all_deplibs_CXX=yes
14310             ;;
14311         esac
14312         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14313         hardcode_libdir_separator_CXX=:
14314         inherit_rpath_CXX=yes
14315         ;;
14316
14317       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14318         case $cc_basename in
14319           KCC*)
14320             # Kuck and Associates, Inc. (KAI) C++ Compiler
14321
14322             # KCC will only create a shared library if the output file
14323             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14324             # to its proper name (with version) after linking.
14325             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'
14326             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'
14327             # Commands to make compiler produce verbose output that lists
14328             # what "hidden" libraries, object files and flags are used when
14329             # linking a shared library.
14330             #
14331             # There doesn't appear to be a way to prevent this compiler from
14332             # explicitly linking system object files so we need to strip them
14333             # from the output so that they don't get included in the library
14334             # dependencies.
14335             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"'
14336
14337             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14338             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14339
14340             # Archives containing C++ object files must be created using
14341             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14342             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14343             ;;
14344           icpc* | ecpc* )
14345             # Intel C++
14346             with_gnu_ld=yes
14347             # version 8.0 and above of icpc choke on multiply defined symbols
14348             # if we add $predep_objects and $postdep_objects, however 7.1 and
14349             # earlier do not add the objects themselves.
14350             case `$CC -V 2>&1` in
14351               *"Version 7."*)
14352                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14353                 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'
14354                 ;;
14355               *)  # Version 8.0 or newer
14356                 tmp_idyn=
14357                 case $host_cpu in
14358                   ia64*) tmp_idyn=' -i_dynamic';;
14359                 esac
14360                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14361                 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'
14362                 ;;
14363             esac
14364             archive_cmds_need_lc_CXX=no
14365             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14366             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14367             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14368             ;;
14369           pgCC* | pgcpp*)
14370             # Portland Group C++ compiler
14371             case `$CC -V` in
14372             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14373               prelink_cmds_CXX='tpldir=Template.dir~
14374                rm -rf $tpldir~
14375                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14376                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14377               old_archive_cmds_CXX='tpldir=Template.dir~
14378                 rm -rf $tpldir~
14379                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14380                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14381                 $RANLIB $oldlib'
14382               archive_cmds_CXX='tpldir=Template.dir~
14383                 rm -rf $tpldir~
14384                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14385                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14386               archive_expsym_cmds_CXX='tpldir=Template.dir~
14387                 rm -rf $tpldir~
14388                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14389                 $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'
14390               ;;
14391             *) # Version 6 and above use weak symbols
14392               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14393               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'
14394               ;;
14395             esac
14396
14397             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14398             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14399             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'
14400             ;;
14401           cxx*)
14402             # Compaq C++
14403             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14404             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'
14405
14406             runpath_var=LD_RUN_PATH
14407             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14408             hardcode_libdir_separator_CXX=:
14409
14410             # Commands to make compiler produce verbose output that lists
14411             # what "hidden" libraries, object files and flags are used when
14412             # linking a shared library.
14413             #
14414             # There doesn't appear to be a way to prevent this compiler from
14415             # explicitly linking system object files so we need to strip them
14416             # from the output so that they don't get included in the library
14417             # dependencies.
14418             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'
14419             ;;
14420           xl* | mpixl* | bgxl*)
14421             # IBM XL 8.0 on PPC, with GNU ld
14422             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14423             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14424             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14425             if test yes = "$supports_anon_versioning"; then
14426               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14427                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14428                 echo "local: *; };" >> $output_objdir/$libname.ver~
14429                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14430             fi
14431             ;;
14432           *)
14433             case `$CC -V 2>&1 | sed 5q` in
14434             *Sun\ C*)
14435               # Sun C++ 5.9
14436               no_undefined_flag_CXX=' -zdefs'
14437               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14438               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'
14439               hardcode_libdir_flag_spec_CXX='-R$libdir'
14440               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'
14441               compiler_needs_object_CXX=yes
14442
14443               # Not sure whether something based on
14444               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14445               # would be better.
14446               output_verbose_link_cmd='func_echo_all'
14447
14448               # Archives containing C++ object files must be created using
14449               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14450               # necessary to make sure instantiated templates are included
14451               # in the archive.
14452               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14453               ;;
14454             esac
14455             ;;
14456         esac
14457         ;;
14458
14459       lynxos*)
14460         # FIXME: insert proper C++ library support
14461         ld_shlibs_CXX=no
14462         ;;
14463
14464       m88k*)
14465         # FIXME: insert proper C++ library support
14466         ld_shlibs_CXX=no
14467         ;;
14468
14469       mvs*)
14470         case $cc_basename in
14471           cxx*)
14472             # FIXME: insert proper C++ library support
14473             ld_shlibs_CXX=no
14474             ;;
14475           *)
14476             # FIXME: insert proper C++ library support
14477             ld_shlibs_CXX=no
14478             ;;
14479         esac
14480         ;;
14481
14482       netbsd*)
14483         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14484           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14485           wlarc=
14486           hardcode_libdir_flag_spec_CXX='-R$libdir'
14487           hardcode_direct_CXX=yes
14488           hardcode_shlibpath_var_CXX=no
14489         fi
14490         # Workaround some broken pre-1.5 toolchains
14491         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14492         ;;
14493
14494       *nto* | *qnx*)
14495         ld_shlibs_CXX=yes
14496         ;;
14497
14498       openbsd* | bitrig*)
14499         if test -f /usr/libexec/ld.so; then
14500           hardcode_direct_CXX=yes
14501           hardcode_shlibpath_var_CXX=no
14502           hardcode_direct_absolute_CXX=yes
14503           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14504           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14505           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14506             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14507             export_dynamic_flag_spec_CXX='$wl-E'
14508             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14509           fi
14510           output_verbose_link_cmd=func_echo_all
14511         else
14512           ld_shlibs_CXX=no
14513         fi
14514         ;;
14515
14516       osf3* | osf4* | osf5*)
14517         case $cc_basename in
14518           KCC*)
14519             # Kuck and Associates, Inc. (KAI) C++ Compiler
14520
14521             # KCC will only create a shared library if the output file
14522             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14523             # to its proper name (with version) after linking.
14524             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'
14525
14526             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14527             hardcode_libdir_separator_CXX=:
14528
14529             # Archives containing C++ object files must be created using
14530             # the KAI C++ compiler.
14531             case $host in
14532               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14533               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14534             esac
14535             ;;
14536           RCC*)
14537             # Rational C++ 2.4.1
14538             # FIXME: insert proper C++ library support
14539             ld_shlibs_CXX=no
14540             ;;
14541           cxx*)
14542             case $host in
14543               osf3*)
14544                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14545                 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'
14546                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14547                 ;;
14548               *)
14549                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14550                 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'
14551                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14552                   echo "-hidden">> $lib.exp~
14553                   $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~
14554                   $RM $lib.exp'
14555                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14556                 ;;
14557             esac
14558
14559             hardcode_libdir_separator_CXX=:
14560
14561             # Commands to make compiler produce verbose output that lists
14562             # what "hidden" libraries, object files and flags are used when
14563             # linking a shared library.
14564             #
14565             # There doesn't appear to be a way to prevent this compiler from
14566             # explicitly linking system object files so we need to strip them
14567             # from the output so that they don't get included in the library
14568             # dependencies.
14569             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"'
14570             ;;
14571           *)
14572             if test yes,no = "$GXX,$with_gnu_ld"; then
14573               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14574               case $host in
14575                 osf3*)
14576                   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'
14577                   ;;
14578                 *)
14579                   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'
14580                   ;;
14581               esac
14582
14583               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14584               hardcode_libdir_separator_CXX=:
14585
14586               # Commands to make compiler produce verbose output that lists
14587               # what "hidden" libraries, object files and flags are used when
14588               # linking a shared library.
14589               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14590
14591             else
14592               # FIXME: insert proper C++ library support
14593               ld_shlibs_CXX=no
14594             fi
14595             ;;
14596         esac
14597         ;;
14598
14599       psos*)
14600         # FIXME: insert proper C++ library support
14601         ld_shlibs_CXX=no
14602         ;;
14603
14604       sunos4*)
14605         case $cc_basename in
14606           CC*)
14607             # Sun C++ 4.x
14608             # FIXME: insert proper C++ library support
14609             ld_shlibs_CXX=no
14610             ;;
14611           lcc*)
14612             # Lucid
14613             # FIXME: insert proper C++ library support
14614             ld_shlibs_CXX=no
14615             ;;
14616           *)
14617             # FIXME: insert proper C++ library support
14618             ld_shlibs_CXX=no
14619             ;;
14620         esac
14621         ;;
14622
14623       solaris*)
14624         case $cc_basename in
14625           CC* | sunCC*)
14626             # Sun C++ 4.2, 5.x and Centerline C++
14627             archive_cmds_need_lc_CXX=yes
14628             no_undefined_flag_CXX=' -zdefs'
14629             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14630             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14631               $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'
14632
14633             hardcode_libdir_flag_spec_CXX='-R$libdir'
14634             hardcode_shlibpath_var_CXX=no
14635             case $host_os in
14636               solaris2.[0-5] | solaris2.[0-5].*) ;;
14637               *)
14638                 # The compiler driver will combine and reorder linker options,
14639                 # but understands '-z linker_flag'.
14640                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14641                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14642                 ;;
14643             esac
14644             link_all_deplibs_CXX=yes
14645
14646             output_verbose_link_cmd='func_echo_all'
14647
14648             # Archives containing C++ object files must be created using
14649             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14650             # necessary to make sure instantiated templates are included
14651             # in the archive.
14652             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14653             ;;
14654           gcx*)
14655             # Green Hills C++ Compiler
14656             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14657
14658             # The C++ compiler must be used to create the archive.
14659             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14660             ;;
14661           *)
14662             # GNU C++ compiler with Solaris linker
14663             if test yes,no = "$GXX,$with_gnu_ld"; then
14664               no_undefined_flag_CXX=' $wl-z ${wl}defs'
14665               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14666                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14667                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14668                   $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'
14669
14670                 # Commands to make compiler produce verbose output that lists
14671                 # what "hidden" libraries, object files and flags are used when
14672                 # linking a shared library.
14673                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14674               else
14675                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14676                 # platform.
14677                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14678                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14679                   $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'
14680
14681                 # Commands to make compiler produce verbose output that lists
14682                 # what "hidden" libraries, object files and flags are used when
14683                 # linking a shared library.
14684                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14685               fi
14686
14687               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14688               case $host_os in
14689                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14690                 *)
14691                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14692                   ;;
14693               esac
14694             fi
14695             ;;
14696         esac
14697         ;;
14698
14699     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14700       no_undefined_flag_CXX='$wl-z,text'
14701       archive_cmds_need_lc_CXX=no
14702       hardcode_shlibpath_var_CXX=no
14703       runpath_var='LD_RUN_PATH'
14704
14705       case $cc_basename in
14706         CC*)
14707           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14708           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14709           ;;
14710         *)
14711           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14712           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14713           ;;
14714       esac
14715       ;;
14716
14717       sysv5* | sco3.2v5* | sco5v6*)
14718         # Note: We CANNOT use -z defs as we might desire, because we do not
14719         # link with -lc, and that would cause any symbols used from libc to
14720         # always be unresolved, which means just about no library would
14721         # ever link correctly.  If we're not using GNU ld we use -z text
14722         # though, which does catch some bad symbols but isn't as heavy-handed
14723         # as -z defs.
14724         no_undefined_flag_CXX='$wl-z,text'
14725         allow_undefined_flag_CXX='$wl-z,nodefs'
14726         archive_cmds_need_lc_CXX=no
14727         hardcode_shlibpath_var_CXX=no
14728         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14729         hardcode_libdir_separator_CXX=':'
14730         link_all_deplibs_CXX=yes
14731         export_dynamic_flag_spec_CXX='$wl-Bexport'
14732         runpath_var='LD_RUN_PATH'
14733
14734         case $cc_basename in
14735           CC*)
14736             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14737             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14738             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14739               '"$old_archive_cmds_CXX"
14740             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14741               '"$reload_cmds_CXX"
14742             ;;
14743           *)
14744             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14745             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14746             ;;
14747         esac
14748       ;;
14749
14750       tandem*)
14751         case $cc_basename in
14752           NCC*)
14753             # NonStop-UX NCC 3.20
14754             # FIXME: insert proper C++ library support
14755             ld_shlibs_CXX=no
14756             ;;
14757           *)
14758             # FIXME: insert proper C++ library support
14759             ld_shlibs_CXX=no
14760             ;;
14761         esac
14762         ;;
14763
14764       vxworks*)
14765         # FIXME: insert proper C++ library support
14766         ld_shlibs_CXX=no
14767         ;;
14768
14769       *)
14770         # FIXME: insert proper C++ library support
14771         ld_shlibs_CXX=no
14772         ;;
14773     esac
14774
14775     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14776 $as_echo "$ld_shlibs_CXX" >&6; }
14777     test no = "$ld_shlibs_CXX" && can_build_shared=no
14778
14779     GCC_CXX=$GXX
14780     LD_CXX=$LD
14781
14782     ## CAVEAT EMPTOR:
14783     ## There is no encapsulation within the following macros, do not change
14784     ## the running order or otherwise move them around unless you know exactly
14785     ## what you are doing...
14786     # Dependencies to place before and after the object being linked:
14787 predep_objects_CXX=
14788 postdep_objects_CXX=
14789 predeps_CXX=
14790 postdeps_CXX=
14791 compiler_lib_search_path_CXX=
14792
14793 cat > conftest.$ac_ext <<_LT_EOF
14794 class Foo
14795 {
14796 public:
14797   Foo (void) { a = 0; }
14798 private:
14799   int a;
14800 };
14801 _LT_EOF
14802
14803
14804 _lt_libdeps_save_CFLAGS=$CFLAGS
14805 case "$CC $CFLAGS " in #(
14806 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14807 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14808 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14809 esac
14810
14811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14812   (eval $ac_compile) 2>&5
14813   ac_status=$?
14814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14815   test $ac_status = 0; }; then
14816   # Parse the compiler output and extract the necessary
14817   # objects, libraries and library flags.
14818
14819   # Sentinel used to keep track of whether or not we are before
14820   # the conftest object file.
14821   pre_test_object_deps_done=no
14822
14823   for p in `eval "$output_verbose_link_cmd"`; do
14824     case $prev$p in
14825
14826     -L* | -R* | -l*)
14827        # Some compilers place space between "-{L,R}" and the path.
14828        # Remove the space.
14829        if test x-L = "$p" ||
14830           test x-R = "$p"; then
14831          prev=$p
14832          continue
14833        fi
14834
14835        # Expand the sysroot to ease extracting the directories later.
14836        if test -z "$prev"; then
14837          case $p in
14838          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14839          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14840          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14841          esac
14842        fi
14843        case $p in
14844        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14845        esac
14846        if test no = "$pre_test_object_deps_done"; then
14847          case $prev in
14848          -L | -R)
14849            # Internal compiler library paths should come after those
14850            # provided the user.  The postdeps already come after the
14851            # user supplied libs so there is no need to process them.
14852            if test -z "$compiler_lib_search_path_CXX"; then
14853              compiler_lib_search_path_CXX=$prev$p
14854            else
14855              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14856            fi
14857            ;;
14858          # The "-l" case would never come before the object being
14859          # linked, so don't bother handling this case.
14860          esac
14861        else
14862          if test -z "$postdeps_CXX"; then
14863            postdeps_CXX=$prev$p
14864          else
14865            postdeps_CXX="${postdeps_CXX} $prev$p"
14866          fi
14867        fi
14868        prev=
14869        ;;
14870
14871     *.lto.$objext) ;; # Ignore GCC LTO objects
14872     *.$objext)
14873        # This assumes that the test object file only shows up
14874        # once in the compiler output.
14875        if test "$p" = "conftest.$objext"; then
14876          pre_test_object_deps_done=yes
14877          continue
14878        fi
14879
14880        if test no = "$pre_test_object_deps_done"; then
14881          if test -z "$predep_objects_CXX"; then
14882            predep_objects_CXX=$p
14883          else
14884            predep_objects_CXX="$predep_objects_CXX $p"
14885          fi
14886        else
14887          if test -z "$postdep_objects_CXX"; then
14888            postdep_objects_CXX=$p
14889          else
14890            postdep_objects_CXX="$postdep_objects_CXX $p"
14891          fi
14892        fi
14893        ;;
14894
14895     *) ;; # Ignore the rest.
14896
14897     esac
14898   done
14899
14900   # Clean up.
14901   rm -f a.out a.exe
14902 else
14903   echo "libtool.m4: error: problem compiling CXX test program"
14904 fi
14905
14906 $RM -f confest.$objext
14907 CFLAGS=$_lt_libdeps_save_CFLAGS
14908
14909 # PORTME: override above test on systems where it is broken
14910 case $host_os in
14911 interix[3-9]*)
14912   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14913   # hack all around it, let's just trust "g++" to DTRT.
14914   predep_objects_CXX=
14915   postdep_objects_CXX=
14916   postdeps_CXX=
14917   ;;
14918 esac
14919
14920
14921 case " $postdeps_CXX " in
14922 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14923 esac
14924  compiler_lib_search_dirs_CXX=
14925 if test -n "${compiler_lib_search_path_CXX}"; then
14926  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14927 fi
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959     lt_prog_compiler_wl_CXX=
14960 lt_prog_compiler_pic_CXX=
14961 lt_prog_compiler_static_CXX=
14962
14963
14964   # C++ specific cases for pic, static, wl, etc.
14965   if test yes = "$GXX"; then
14966     lt_prog_compiler_wl_CXX='-Wl,'
14967     lt_prog_compiler_static_CXX='-static'
14968
14969     case $host_os in
14970     aix*)
14971       # All AIX code is PIC.
14972       if test ia64 = "$host_cpu"; then
14973         # AIX 5 now supports IA64 processor
14974         lt_prog_compiler_static_CXX='-Bstatic'
14975       fi
14976       lt_prog_compiler_pic_CXX='-fPIC'
14977       ;;
14978
14979     amigaos*)
14980       case $host_cpu in
14981       powerpc)
14982             # see comment about AmigaOS4 .so support
14983             lt_prog_compiler_pic_CXX='-fPIC'
14984         ;;
14985       m68k)
14986             # FIXME: we need at least 68020 code to build shared libraries, but
14987             # adding the '-m68020' flag to GCC prevents building anything better,
14988             # like '-m68040'.
14989             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14990         ;;
14991       esac
14992       ;;
14993
14994     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14995       # PIC is the default for these OSes.
14996       ;;
14997     mingw* | cygwin* | os2* | pw32* | cegcc*)
14998       # This hack is so that the source file can tell whether it is being
14999       # built for inclusion in a dll (and should export symbols for example).
15000       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15001       # (--disable-auto-import) libraries
15002       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15003       case $host_os in
15004       os2*)
15005         lt_prog_compiler_static_CXX='$wl-static'
15006         ;;
15007       esac
15008       ;;
15009     darwin* | rhapsody*)
15010       # PIC is the default on this platform
15011       # Common symbols not allowed in MH_DYLIB files
15012       lt_prog_compiler_pic_CXX='-fno-common'
15013       ;;
15014     *djgpp*)
15015       # DJGPP does not support shared libraries at all
15016       lt_prog_compiler_pic_CXX=
15017       ;;
15018     haiku*)
15019       # PIC is the default for Haiku.
15020       # The "-static" flag exists, but is broken.
15021       lt_prog_compiler_static_CXX=
15022       ;;
15023     interix[3-9]*)
15024       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15025       # Instead, we relocate shared libraries at runtime.
15026       ;;
15027     sysv4*MP*)
15028       if test -d /usr/nec; then
15029         lt_prog_compiler_pic_CXX=-Kconform_pic
15030       fi
15031       ;;
15032     hpux*)
15033       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15034       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15035       # sets the default TLS model and affects inlining.
15036       case $host_cpu in
15037       hppa*64*)
15038         ;;
15039       *)
15040         lt_prog_compiler_pic_CXX='-fPIC'
15041         ;;
15042       esac
15043       ;;
15044     *qnx* | *nto*)
15045       # QNX uses GNU C++, but need to define -shared option too, otherwise
15046       # it will coredump.
15047       lt_prog_compiler_pic_CXX='-fPIC -shared'
15048       ;;
15049     *)
15050       lt_prog_compiler_pic_CXX='-fPIC'
15051       ;;
15052     esac
15053   else
15054     case $host_os in
15055       aix[4-9]*)
15056         # All AIX code is PIC.
15057         if test ia64 = "$host_cpu"; then
15058           # AIX 5 now supports IA64 processor
15059           lt_prog_compiler_static_CXX='-Bstatic'
15060         else
15061           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15062         fi
15063         ;;
15064       chorus*)
15065         case $cc_basename in
15066         cxch68*)
15067           # Green Hills C++ Compiler
15068           # _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"
15069           ;;
15070         esac
15071         ;;
15072       mingw* | cygwin* | os2* | pw32* | cegcc*)
15073         # This hack is so that the source file can tell whether it is being
15074         # built for inclusion in a dll (and should export symbols for example).
15075         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15076         ;;
15077       dgux*)
15078         case $cc_basename in
15079           ec++*)
15080             lt_prog_compiler_pic_CXX='-KPIC'
15081             ;;
15082           ghcx*)
15083             # Green Hills C++ Compiler
15084             lt_prog_compiler_pic_CXX='-pic'
15085             ;;
15086           *)
15087             ;;
15088         esac
15089         ;;
15090       freebsd* | dragonfly*)
15091         # FreeBSD uses GNU C++
15092         ;;
15093       hpux9* | hpux10* | hpux11*)
15094         case $cc_basename in
15095           CC*)
15096             lt_prog_compiler_wl_CXX='-Wl,'
15097             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15098             if test ia64 != "$host_cpu"; then
15099               lt_prog_compiler_pic_CXX='+Z'
15100             fi
15101             ;;
15102           aCC*)
15103             lt_prog_compiler_wl_CXX='-Wl,'
15104             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15105             case $host_cpu in
15106             hppa*64*|ia64*)
15107               # +Z the default
15108               ;;
15109             *)
15110               lt_prog_compiler_pic_CXX='+Z'
15111               ;;
15112             esac
15113             ;;
15114           *)
15115             ;;
15116         esac
15117         ;;
15118       interix*)
15119         # This is c89, which is MS Visual C++ (no shared libs)
15120         # Anyone wants to do a port?
15121         ;;
15122       irix5* | irix6* | nonstopux*)
15123         case $cc_basename in
15124           CC*)
15125             lt_prog_compiler_wl_CXX='-Wl,'
15126             lt_prog_compiler_static_CXX='-non_shared'
15127             # CC pic flag -KPIC is the default.
15128             ;;
15129           *)
15130             ;;
15131         esac
15132         ;;
15133       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15134         case $cc_basename in
15135           KCC*)
15136             # KAI C++ Compiler
15137             lt_prog_compiler_wl_CXX='--backend -Wl,'
15138             lt_prog_compiler_pic_CXX='-fPIC'
15139             ;;
15140           ecpc* )
15141             # old Intel C++ for x86_64, which still supported -KPIC.
15142             lt_prog_compiler_wl_CXX='-Wl,'
15143             lt_prog_compiler_pic_CXX='-KPIC'
15144             lt_prog_compiler_static_CXX='-static'
15145             ;;
15146           icpc* )
15147             # Intel C++, used to be incompatible with GCC.
15148             # ICC 10 doesn't accept -KPIC any more.
15149             lt_prog_compiler_wl_CXX='-Wl,'
15150             lt_prog_compiler_pic_CXX='-fPIC'
15151             lt_prog_compiler_static_CXX='-static'
15152             ;;
15153           pgCC* | pgcpp*)
15154             # Portland Group C++ compiler
15155             lt_prog_compiler_wl_CXX='-Wl,'
15156             lt_prog_compiler_pic_CXX='-fpic'
15157             lt_prog_compiler_static_CXX='-Bstatic'
15158             ;;
15159           cxx*)
15160             # Compaq C++
15161             # Make sure the PIC flag is empty.  It appears that all Alpha
15162             # Linux and Compaq Tru64 Unix objects are PIC.
15163             lt_prog_compiler_pic_CXX=
15164             lt_prog_compiler_static_CXX='-non_shared'
15165             ;;
15166           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15167             # IBM XL 8.0, 9.0 on PPC and BlueGene
15168             lt_prog_compiler_wl_CXX='-Wl,'
15169             lt_prog_compiler_pic_CXX='-qpic'
15170             lt_prog_compiler_static_CXX='-qstaticlink'
15171             ;;
15172           *)
15173             case `$CC -V 2>&1 | sed 5q` in
15174             *Sun\ C*)
15175               # Sun C++ 5.9
15176               lt_prog_compiler_pic_CXX='-KPIC'
15177               lt_prog_compiler_static_CXX='-Bstatic'
15178               lt_prog_compiler_wl_CXX='-Qoption ld '
15179               ;;
15180             esac
15181             ;;
15182         esac
15183         ;;
15184       lynxos*)
15185         ;;
15186       m88k*)
15187         ;;
15188       mvs*)
15189         case $cc_basename in
15190           cxx*)
15191             lt_prog_compiler_pic_CXX='-W c,exportall'
15192             ;;
15193           *)
15194             ;;
15195         esac
15196         ;;
15197       netbsd* | netbsdelf*-gnu)
15198         ;;
15199       *qnx* | *nto*)
15200         # QNX uses GNU C++, but need to define -shared option too, otherwise
15201         # it will coredump.
15202         lt_prog_compiler_pic_CXX='-fPIC -shared'
15203         ;;
15204       osf3* | osf4* | osf5*)
15205         case $cc_basename in
15206           KCC*)
15207             lt_prog_compiler_wl_CXX='--backend -Wl,'
15208             ;;
15209           RCC*)
15210             # Rational C++ 2.4.1
15211             lt_prog_compiler_pic_CXX='-pic'
15212             ;;
15213           cxx*)
15214             # Digital/Compaq C++
15215             lt_prog_compiler_wl_CXX='-Wl,'
15216             # Make sure the PIC flag is empty.  It appears that all Alpha
15217             # Linux and Compaq Tru64 Unix objects are PIC.
15218             lt_prog_compiler_pic_CXX=
15219             lt_prog_compiler_static_CXX='-non_shared'
15220             ;;
15221           *)
15222             ;;
15223         esac
15224         ;;
15225       psos*)
15226         ;;
15227       solaris*)
15228         case $cc_basename in
15229           CC* | sunCC*)
15230             # Sun C++ 4.2, 5.x and Centerline C++
15231             lt_prog_compiler_pic_CXX='-KPIC'
15232             lt_prog_compiler_static_CXX='-Bstatic'
15233             lt_prog_compiler_wl_CXX='-Qoption ld '
15234             ;;
15235           gcx*)
15236             # Green Hills C++ Compiler
15237             lt_prog_compiler_pic_CXX='-PIC'
15238             ;;
15239           *)
15240             ;;
15241         esac
15242         ;;
15243       sunos4*)
15244         case $cc_basename in
15245           CC*)
15246             # Sun C++ 4.x
15247             lt_prog_compiler_pic_CXX='-pic'
15248             lt_prog_compiler_static_CXX='-Bstatic'
15249             ;;
15250           lcc*)
15251             # Lucid
15252             lt_prog_compiler_pic_CXX='-pic'
15253             ;;
15254           *)
15255             ;;
15256         esac
15257         ;;
15258       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15259         case $cc_basename in
15260           CC*)
15261             lt_prog_compiler_wl_CXX='-Wl,'
15262             lt_prog_compiler_pic_CXX='-KPIC'
15263             lt_prog_compiler_static_CXX='-Bstatic'
15264             ;;
15265         esac
15266         ;;
15267       tandem*)
15268         case $cc_basename in
15269           NCC*)
15270             # NonStop-UX NCC 3.20
15271             lt_prog_compiler_pic_CXX='-KPIC'
15272             ;;
15273           *)
15274             ;;
15275         esac
15276         ;;
15277       vxworks*)
15278         ;;
15279       *)
15280         lt_prog_compiler_can_build_shared_CXX=no
15281         ;;
15282     esac
15283   fi
15284
15285 case $host_os in
15286   # For platforms that do not support PIC, -DPIC is meaningless:
15287   *djgpp*)
15288     lt_prog_compiler_pic_CXX=
15289     ;;
15290   *)
15291     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15292     ;;
15293 esac
15294
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15296 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15297 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15298   $as_echo_n "(cached) " >&6
15299 else
15300   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15301 fi
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15303 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15304 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15305
15306 #
15307 # Check to make sure the PIC flag actually works.
15308 #
15309 if test -n "$lt_prog_compiler_pic_CXX"; then
15310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15311 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15312 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15313   $as_echo_n "(cached) " >&6
15314 else
15315   lt_cv_prog_compiler_pic_works_CXX=no
15316    ac_outfile=conftest.$ac_objext
15317    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15318    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15319    # Insert the option either (1) after the last *FLAGS variable, or
15320    # (2) before a word containing "conftest.", or (3) at the end.
15321    # Note that $ac_compile itself does not contain backslashes and begins
15322    # with a dollar sign (not a hyphen), so the echo should work correctly.
15323    # The option is referenced via a variable to avoid confusing sed.
15324    lt_compile=`echo "$ac_compile" | $SED \
15325    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15326    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15327    -e 's:$: $lt_compiler_flag:'`
15328    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15329    (eval "$lt_compile" 2>conftest.err)
15330    ac_status=$?
15331    cat conftest.err >&5
15332    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333    if (exit $ac_status) && test -s "$ac_outfile"; then
15334      # The compiler can only warn and ignore the option if not recognized
15335      # So say no if there are warnings other than the usual output.
15336      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15337      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15338      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15339        lt_cv_prog_compiler_pic_works_CXX=yes
15340      fi
15341    fi
15342    $RM conftest*
15343
15344 fi
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15346 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15347
15348 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15349     case $lt_prog_compiler_pic_CXX in
15350      "" | " "*) ;;
15351      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15352      esac
15353 else
15354     lt_prog_compiler_pic_CXX=
15355      lt_prog_compiler_can_build_shared_CXX=no
15356 fi
15357
15358 fi
15359
15360
15361
15362
15363
15364 #
15365 # Check to make sure the static flag actually works.
15366 #
15367 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15369 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15370 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15371   $as_echo_n "(cached) " >&6
15372 else
15373   lt_cv_prog_compiler_static_works_CXX=no
15374    save_LDFLAGS=$LDFLAGS
15375    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15376    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15377    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15378      # The linker can only warn and ignore the option if not recognized
15379      # So say no if there are warnings
15380      if test -s conftest.err; then
15381        # Append any errors to the config.log.
15382        cat conftest.err 1>&5
15383        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15384        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15385        if diff conftest.exp conftest.er2 >/dev/null; then
15386          lt_cv_prog_compiler_static_works_CXX=yes
15387        fi
15388      else
15389        lt_cv_prog_compiler_static_works_CXX=yes
15390      fi
15391    fi
15392    $RM -r conftest*
15393    LDFLAGS=$save_LDFLAGS
15394
15395 fi
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15397 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15398
15399 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15400     :
15401 else
15402     lt_prog_compiler_static_CXX=
15403 fi
15404
15405
15406
15407
15408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15409 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15410 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15411   $as_echo_n "(cached) " >&6
15412 else
15413   lt_cv_prog_compiler_c_o_CXX=no
15414    $RM -r conftest 2>/dev/null
15415    mkdir conftest
15416    cd conftest
15417    mkdir out
15418    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15419
15420    lt_compiler_flag="-o out/conftest2.$ac_objext"
15421    # Insert the option either (1) after the last *FLAGS variable, or
15422    # (2) before a word containing "conftest.", or (3) at the end.
15423    # Note that $ac_compile itself does not contain backslashes and begins
15424    # with a dollar sign (not a hyphen), so the echo should work correctly.
15425    lt_compile=`echo "$ac_compile" | $SED \
15426    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15427    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15428    -e 's:$: $lt_compiler_flag:'`
15429    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15430    (eval "$lt_compile" 2>out/conftest.err)
15431    ac_status=$?
15432    cat out/conftest.err >&5
15433    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15435    then
15436      # The compiler can only warn and ignore the option if not recognized
15437      # So say no if there are warnings
15438      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15439      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15440      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15441        lt_cv_prog_compiler_c_o_CXX=yes
15442      fi
15443    fi
15444    chmod u+w . 2>&5
15445    $RM conftest*
15446    # SGI C++ compiler will create directory out/ii_files/ for
15447    # template instantiation
15448    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15449    $RM out/* && rmdir out
15450    cd ..
15451    $RM -r conftest
15452    $RM conftest*
15453
15454 fi
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15456 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15457
15458
15459
15460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15461 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15462 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15463   $as_echo_n "(cached) " >&6
15464 else
15465   lt_cv_prog_compiler_c_o_CXX=no
15466    $RM -r conftest 2>/dev/null
15467    mkdir conftest
15468    cd conftest
15469    mkdir out
15470    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15471
15472    lt_compiler_flag="-o out/conftest2.$ac_objext"
15473    # Insert the option either (1) after the last *FLAGS variable, or
15474    # (2) before a word containing "conftest.", or (3) at the end.
15475    # Note that $ac_compile itself does not contain backslashes and begins
15476    # with a dollar sign (not a hyphen), so the echo should work correctly.
15477    lt_compile=`echo "$ac_compile" | $SED \
15478    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15479    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15480    -e 's:$: $lt_compiler_flag:'`
15481    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15482    (eval "$lt_compile" 2>out/conftest.err)
15483    ac_status=$?
15484    cat out/conftest.err >&5
15485    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15487    then
15488      # The compiler can only warn and ignore the option if not recognized
15489      # So say no if there are warnings
15490      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15491      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15492      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15493        lt_cv_prog_compiler_c_o_CXX=yes
15494      fi
15495    fi
15496    chmod u+w . 2>&5
15497    $RM conftest*
15498    # SGI C++ compiler will create directory out/ii_files/ for
15499    # template instantiation
15500    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15501    $RM out/* && rmdir out
15502    cd ..
15503    $RM -r conftest
15504    $RM conftest*
15505
15506 fi
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15508 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15509
15510
15511
15512
15513 hard_links=nottested
15514 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15515   # do not overwrite the value of need_locks provided by the user
15516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15517 $as_echo_n "checking if we can lock with hard links... " >&6; }
15518   hard_links=yes
15519   $RM conftest*
15520   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15521   touch conftest.a
15522   ln conftest.a conftest.b 2>&5 || hard_links=no
15523   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15525 $as_echo "$hard_links" >&6; }
15526   if test no = "$hard_links"; then
15527     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15528 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15529     need_locks=warn
15530   fi
15531 else
15532   need_locks=no
15533 fi
15534
15535
15536
15537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15538 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15539
15540   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15541   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15542   case $host_os in
15543   aix[4-9]*)
15544     # If we're using GNU nm, then we don't want the "-C" option.
15545     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15546     # Without the "-l" option, or with the "-B" option, AIX nm treats
15547     # weak defined symbols like other global defined symbols, whereas
15548     # GNU nm marks them as "W".
15549     # While the 'weak' keyword is ignored in the Export File, we need
15550     # it in the Import File for the 'aix-soname' feature, so we have
15551     # to replace the "-B" option with "-P" for AIX nm.
15552     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15553       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'
15554     else
15555       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'
15556     fi
15557     ;;
15558   pw32*)
15559     export_symbols_cmds_CXX=$ltdll_cmds
15560     ;;
15561   cygwin* | mingw* | cegcc*)
15562     case $cc_basename in
15563     cl*)
15564       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15565       ;;
15566     *)
15567       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'
15568       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15569       ;;
15570     esac
15571     ;;
15572   linux* | k*bsd*-gnu | gnu*)
15573     link_all_deplibs_CXX=no
15574     ;;
15575   *)
15576     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15577     ;;
15578   esac
15579
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15581 $as_echo "$ld_shlibs_CXX" >&6; }
15582 test no = "$ld_shlibs_CXX" && can_build_shared=no
15583
15584 with_gnu_ld_CXX=$with_gnu_ld
15585
15586
15587
15588
15589
15590
15591 #
15592 # Do we need to explicitly link libc?
15593 #
15594 case "x$archive_cmds_need_lc_CXX" in
15595 x|xyes)
15596   # Assume -lc should be added
15597   archive_cmds_need_lc_CXX=yes
15598
15599   if test yes,yes = "$GCC,$enable_shared"; then
15600     case $archive_cmds_CXX in
15601     *'~'*)
15602       # FIXME: we may have to deal with multi-command sequences.
15603       ;;
15604     '$CC '*)
15605       # Test whether the compiler implicitly links with -lc since on some
15606       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15607       # to ld, don't add -lc before -lgcc.
15608       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15609 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15610 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15611   $as_echo_n "(cached) " >&6
15612 else
15613   $RM conftest*
15614         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15615
15616         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15617   (eval $ac_compile) 2>&5
15618   ac_status=$?
15619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15620   test $ac_status = 0; } 2>conftest.err; then
15621           soname=conftest
15622           lib=conftest
15623           libobjs=conftest.$ac_objext
15624           deplibs=
15625           wl=$lt_prog_compiler_wl_CXX
15626           pic_flag=$lt_prog_compiler_pic_CXX
15627           compiler_flags=-v
15628           linker_flags=-v
15629           verstring=
15630           output_objdir=.
15631           libname=conftest
15632           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15633           allow_undefined_flag_CXX=
15634           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15635   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15636   ac_status=$?
15637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15638   test $ac_status = 0; }
15639           then
15640             lt_cv_archive_cmds_need_lc_CXX=no
15641           else
15642             lt_cv_archive_cmds_need_lc_CXX=yes
15643           fi
15644           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15645         else
15646           cat conftest.err 1>&5
15647         fi
15648         $RM conftest*
15649
15650 fi
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15652 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15653       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15654       ;;
15655     esac
15656   fi
15657   ;;
15658 esac
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15722 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15723
15724 library_names_spec=
15725 libname_spec='lib$name'
15726 soname_spec=
15727 shrext_cmds=.so
15728 postinstall_cmds=
15729 postuninstall_cmds=
15730 finish_cmds=
15731 finish_eval=
15732 shlibpath_var=
15733 shlibpath_overrides_runpath=unknown
15734 version_type=none
15735 dynamic_linker="$host_os ld.so"
15736 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15737 need_lib_prefix=unknown
15738 hardcode_into_libs=no
15739
15740 # when you set need_version to no, make sure it does not cause -set_version
15741 # flags to be left without arguments
15742 need_version=unknown
15743
15744
15745
15746 case $host_os in
15747 aix3*)
15748   version_type=linux # correct to gnu/linux during the next big refactor
15749   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15750   shlibpath_var=LIBPATH
15751
15752   # AIX 3 has no versioning support, so we append a major version to the name.
15753   soname_spec='$libname$release$shared_ext$major'
15754   ;;
15755
15756 aix[4-9]*)
15757   version_type=linux # correct to gnu/linux during the next big refactor
15758   need_lib_prefix=no
15759   need_version=no
15760   hardcode_into_libs=yes
15761   if test ia64 = "$host_cpu"; then
15762     # AIX 5 supports IA64
15763     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15764     shlibpath_var=LD_LIBRARY_PATH
15765   else
15766     # With GCC up to 2.95.x, collect2 would create an import file
15767     # for dependence libraries.  The import file would start with
15768     # the line '#! .'.  This would cause the generated library to
15769     # depend on '.', always an invalid library.  This was fixed in
15770     # development snapshots of GCC prior to 3.0.
15771     case $host_os in
15772       aix4 | aix4.[01] | aix4.[01].*)
15773       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15774            echo ' yes '
15775            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15776         :
15777       else
15778         can_build_shared=no
15779       fi
15780       ;;
15781     esac
15782     # Using Import Files as archive members, it is possible to support
15783     # filename-based versioning of shared library archives on AIX. While
15784     # this would work for both with and without runtime linking, it will
15785     # prevent static linking of such archives. So we do filename-based
15786     # shared library versioning with .so extension only, which is used
15787     # when both runtime linking and shared linking is enabled.
15788     # Unfortunately, runtime linking may impact performance, so we do
15789     # not want this to be the default eventually. Also, we use the
15790     # versioned .so libs for executables only if there is the -brtl
15791     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15792     # To allow for filename-based versioning support, we need to create
15793     # libNAME.so.V as an archive file, containing:
15794     # *) an Import File, referring to the versioned filename of the
15795     #    archive as well as the shared archive member, telling the
15796     #    bitwidth (32 or 64) of that shared object, and providing the
15797     #    list of exported symbols of that shared object, eventually
15798     #    decorated with the 'weak' keyword
15799     # *) the shared object with the F_LOADONLY flag set, to really avoid
15800     #    it being seen by the linker.
15801     # At run time we better use the real file rather than another symlink,
15802     # but for link time we create the symlink libNAME.so -> libNAME.so.V
15803
15804     case $with_aix_soname,$aix_use_runtimelinking in
15805     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15806     # soname into executable. Probably we can add versioning support to
15807     # collect2, so additional links can be useful in future.
15808     aix,yes) # traditional libtool
15809       dynamic_linker='AIX unversionable lib.so'
15810       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15811       # instead of lib<name>.a to let people know that these are not
15812       # typical AIX shared libraries.
15813       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15814       ;;
15815     aix,no) # traditional AIX only
15816       dynamic_linker='AIX lib.a(lib.so.V)'
15817       # We preserve .a as extension for shared libraries through AIX4.2
15818       # and later when we are not doing run time linking.
15819       library_names_spec='$libname$release.a $libname.a'
15820       soname_spec='$libname$release$shared_ext$major'
15821       ;;
15822     svr4,*) # full svr4 only
15823       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15824       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15825       # We do not specify a path in Import Files, so LIBPATH fires.
15826       shlibpath_overrides_runpath=yes
15827       ;;
15828     *,yes) # both, prefer svr4
15829       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15830       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15831       # unpreferred sharedlib libNAME.a needs extra handling
15832       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"'
15833       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"'
15834       # We do not specify a path in Import Files, so LIBPATH fires.
15835       shlibpath_overrides_runpath=yes
15836       ;;
15837     *,no) # both, prefer aix
15838       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15839       library_names_spec='$libname$release.a $libname.a'
15840       soname_spec='$libname$release$shared_ext$major'
15841       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15842       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)'
15843       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"'
15844       ;;
15845     esac
15846     shlibpath_var=LIBPATH
15847   fi
15848   ;;
15849
15850 amigaos*)
15851   case $host_cpu in
15852   powerpc)
15853     # Since July 2007 AmigaOS4 officially supports .so libraries.
15854     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15855     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15856     ;;
15857   m68k)
15858     library_names_spec='$libname.ixlibrary $libname.a'
15859     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15860     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'
15861     ;;
15862   esac
15863   ;;
15864
15865 beos*)
15866   library_names_spec='$libname$shared_ext'
15867   dynamic_linker="$host_os ld.so"
15868   shlibpath_var=LIBRARY_PATH
15869   ;;
15870
15871 bsdi[45]*)
15872   version_type=linux # correct to gnu/linux during the next big refactor
15873   need_version=no
15874   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15875   soname_spec='$libname$release$shared_ext$major'
15876   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15877   shlibpath_var=LD_LIBRARY_PATH
15878   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15879   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15880   # the default ld.so.conf also contains /usr/contrib/lib and
15881   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15882   # libtool to hard-code these into programs
15883   ;;
15884
15885 cygwin* | mingw* | pw32* | cegcc*)
15886   version_type=windows
15887   shrext_cmds=.dll
15888   need_version=no
15889   need_lib_prefix=no
15890
15891   case $GCC,$cc_basename in
15892   yes,*)
15893     # gcc
15894     library_names_spec='$libname.dll.a'
15895     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15896     postinstall_cmds='base_file=`basename \$file`~
15897       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15898       dldir=$destdir/`dirname \$dlpath`~
15899       test -d \$dldir || mkdir -p \$dldir~
15900       $install_prog $dir/$dlname \$dldir/$dlname~
15901       chmod a+x \$dldir/$dlname~
15902       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15903         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15904       fi'
15905     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15906       dlpath=$dir/\$dldll~
15907        $RM \$dlpath'
15908     shlibpath_overrides_runpath=yes
15909
15910     case $host_os in
15911     cygwin*)
15912       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15913       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15914
15915       ;;
15916     mingw* | cegcc*)
15917       # MinGW DLLs use traditional 'lib' prefix
15918       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15919       ;;
15920     pw32*)
15921       # pw32 DLLs use 'pw' prefix rather than 'lib'
15922       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15923       ;;
15924     esac
15925     dynamic_linker='Win32 ld.exe'
15926     ;;
15927
15928   *,cl*)
15929     # Native MSVC
15930     libname_spec='$name'
15931     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15932     library_names_spec='$libname.dll.lib'
15933
15934     case $build_os in
15935     mingw*)
15936       sys_lib_search_path_spec=
15937       lt_save_ifs=$IFS
15938       IFS=';'
15939       for lt_path in $LIB
15940       do
15941         IFS=$lt_save_ifs
15942         # Let DOS variable expansion print the short 8.3 style file name.
15943         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15944         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15945       done
15946       IFS=$lt_save_ifs
15947       # Convert to MSYS style.
15948       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15949       ;;
15950     cygwin*)
15951       # Convert to unix form, then to dos form, then back to unix form
15952       # but this time dos style (no spaces!) so that the unix form looks
15953       # like /cygdrive/c/PROGRA~1:/cygdr...
15954       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15955       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15956       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15957       ;;
15958     *)
15959       sys_lib_search_path_spec=$LIB
15960       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15961         # It is most probably a Windows format PATH.
15962         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15963       else
15964         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15965       fi
15966       # FIXME: find the short name or the path components, as spaces are
15967       # common. (e.g. "Program Files" -> "PROGRA~1")
15968       ;;
15969     esac
15970
15971     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15972     postinstall_cmds='base_file=`basename \$file`~
15973       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15974       dldir=$destdir/`dirname \$dlpath`~
15975       test -d \$dldir || mkdir -p \$dldir~
15976       $install_prog $dir/$dlname \$dldir/$dlname'
15977     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15978       dlpath=$dir/\$dldll~
15979        $RM \$dlpath'
15980     shlibpath_overrides_runpath=yes
15981     dynamic_linker='Win32 link.exe'
15982     ;;
15983
15984   *)
15985     # Assume MSVC wrapper
15986     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15987     dynamic_linker='Win32 ld.exe'
15988     ;;
15989   esac
15990   # FIXME: first we should search . and the directory the executable is in
15991   shlibpath_var=PATH
15992   ;;
15993
15994 darwin* | rhapsody*)
15995   dynamic_linker="$host_os dyld"
15996   version_type=darwin
15997   need_lib_prefix=no
15998   need_version=no
15999   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16000   soname_spec='$libname$release$major$shared_ext'
16001   shlibpath_overrides_runpath=yes
16002   shlibpath_var=DYLD_LIBRARY_PATH
16003   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16004
16005   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16006   ;;
16007
16008 dgux*)
16009   version_type=linux # correct to gnu/linux during the next big refactor
16010   need_lib_prefix=no
16011   need_version=no
16012   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16013   soname_spec='$libname$release$shared_ext$major'
16014   shlibpath_var=LD_LIBRARY_PATH
16015   ;;
16016
16017 freebsd* | dragonfly*)
16018   # DragonFly does not have aout.  When/if they implement a new
16019   # versioning mechanism, adjust this.
16020   if test -x /usr/bin/objformat; then
16021     objformat=`/usr/bin/objformat`
16022   else
16023     case $host_os in
16024     freebsd[23].*) objformat=aout ;;
16025     *) objformat=elf ;;
16026     esac
16027   fi
16028   version_type=freebsd-$objformat
16029   case $version_type in
16030     freebsd-elf*)
16031       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16032       soname_spec='$libname$release$shared_ext$major'
16033       need_version=no
16034       need_lib_prefix=no
16035       ;;
16036     freebsd-*)
16037       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16038       need_version=yes
16039       ;;
16040   esac
16041   shlibpath_var=LD_LIBRARY_PATH
16042   case $host_os in
16043   freebsd2.*)
16044     shlibpath_overrides_runpath=yes
16045     ;;
16046   freebsd3.[01]* | freebsdelf3.[01]*)
16047     shlibpath_overrides_runpath=yes
16048     hardcode_into_libs=yes
16049     ;;
16050   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16051   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16052     shlibpath_overrides_runpath=no
16053     hardcode_into_libs=yes
16054     ;;
16055   *) # from 4.6 on, and DragonFly
16056     shlibpath_overrides_runpath=yes
16057     hardcode_into_libs=yes
16058     ;;
16059   esac
16060   ;;
16061
16062 haiku*)
16063   version_type=linux # correct to gnu/linux during the next big refactor
16064   need_lib_prefix=no
16065   need_version=no
16066   dynamic_linker="$host_os runtime_loader"
16067   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16068   soname_spec='$libname$release$shared_ext$major'
16069   shlibpath_var=LIBRARY_PATH
16070   shlibpath_overrides_runpath=no
16071   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16072   hardcode_into_libs=yes
16073   ;;
16074
16075 hpux9* | hpux10* | hpux11*)
16076   # Give a soname corresponding to the major version so that dld.sl refuses to
16077   # link against other versions.
16078   version_type=sunos
16079   need_lib_prefix=no
16080   need_version=no
16081   case $host_cpu in
16082   ia64*)
16083     shrext_cmds='.so'
16084     hardcode_into_libs=yes
16085     dynamic_linker="$host_os dld.so"
16086     shlibpath_var=LD_LIBRARY_PATH
16087     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16088     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16089     soname_spec='$libname$release$shared_ext$major'
16090     if test 32 = "$HPUX_IA64_MODE"; then
16091       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16092       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16093     else
16094       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16095       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16096     fi
16097     ;;
16098   hppa*64*)
16099     shrext_cmds='.sl'
16100     hardcode_into_libs=yes
16101     dynamic_linker="$host_os dld.sl"
16102     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16103     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16104     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16105     soname_spec='$libname$release$shared_ext$major'
16106     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16107     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16108     ;;
16109   *)
16110     shrext_cmds='.sl'
16111     dynamic_linker="$host_os dld.sl"
16112     shlibpath_var=SHLIB_PATH
16113     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16114     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16115     soname_spec='$libname$release$shared_ext$major'
16116     ;;
16117   esac
16118   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16119   postinstall_cmds='chmod 555 $lib'
16120   # or fails outright, so override atomically:
16121   install_override_mode=555
16122   ;;
16123
16124 interix[3-9]*)
16125   version_type=linux # correct to gnu/linux during the next big refactor
16126   need_lib_prefix=no
16127   need_version=no
16128   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16129   soname_spec='$libname$release$shared_ext$major'
16130   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16131   shlibpath_var=LD_LIBRARY_PATH
16132   shlibpath_overrides_runpath=no
16133   hardcode_into_libs=yes
16134   ;;
16135
16136 irix5* | irix6* | nonstopux*)
16137   case $host_os in
16138     nonstopux*) version_type=nonstopux ;;
16139     *)
16140         if test yes = "$lt_cv_prog_gnu_ld"; then
16141                 version_type=linux # correct to gnu/linux during the next big refactor
16142         else
16143                 version_type=irix
16144         fi ;;
16145   esac
16146   need_lib_prefix=no
16147   need_version=no
16148   soname_spec='$libname$release$shared_ext$major'
16149   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16150   case $host_os in
16151   irix5* | nonstopux*)
16152     libsuff= shlibsuff=
16153     ;;
16154   *)
16155     case $LD in # libtool.m4 will add one of these switches to LD
16156     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16157       libsuff= shlibsuff= libmagic=32-bit;;
16158     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16159       libsuff=32 shlibsuff=N32 libmagic=N32;;
16160     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16161       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16162     *) libsuff= shlibsuff= libmagic=never-match;;
16163     esac
16164     ;;
16165   esac
16166   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16167   shlibpath_overrides_runpath=no
16168   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16169   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16170   hardcode_into_libs=yes
16171   ;;
16172
16173 # No shared lib support for Linux oldld, aout, or coff.
16174 linux*oldld* | linux*aout* | linux*coff*)
16175   dynamic_linker=no
16176   ;;
16177
16178 linux*android*)
16179   version_type=none # Android doesn't support versioned libraries.
16180   need_lib_prefix=no
16181   need_version=no
16182   library_names_spec='$libname$release$shared_ext'
16183   soname_spec='$libname$release$shared_ext'
16184   finish_cmds=
16185   shlibpath_var=LD_LIBRARY_PATH
16186   shlibpath_overrides_runpath=yes
16187
16188   # This implies no fast_install, which is unacceptable.
16189   # Some rework will be needed to allow for fast_install
16190   # before this can be enabled.
16191   hardcode_into_libs=yes
16192
16193   dynamic_linker='Android linker'
16194   # Don't embed -rpath directories since the linker doesn't support them.
16195   hardcode_libdir_flag_spec_CXX='-L$libdir'
16196   ;;
16197
16198 # This must be glibc/ELF.
16199 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16200   version_type=linux # correct to gnu/linux during the next big refactor
16201   need_lib_prefix=no
16202   need_version=no
16203   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16204   soname_spec='$libname$release$shared_ext$major'
16205   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16206   shlibpath_var=LD_LIBRARY_PATH
16207   shlibpath_overrides_runpath=no
16208
16209   # Some binutils ld are patched to set DT_RUNPATH
16210   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16211   $as_echo_n "(cached) " >&6
16212 else
16213   lt_cv_shlibpath_overrides_runpath=no
16214     save_LDFLAGS=$LDFLAGS
16215     save_libdir=$libdir
16216     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16217          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16218     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h.  */
16220
16221 int
16222 main ()
16223 {
16224
16225   ;
16226   return 0;
16227 }
16228 _ACEOF
16229 if ac_fn_cxx_try_link "$LINENO"; then :
16230   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16231   lt_cv_shlibpath_overrides_runpath=yes
16232 fi
16233 fi
16234 rm -f core conftest.err conftest.$ac_objext \
16235     conftest$ac_exeext conftest.$ac_ext
16236     LDFLAGS=$save_LDFLAGS
16237     libdir=$save_libdir
16238
16239 fi
16240
16241   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16242
16243   # This implies no fast_install, which is unacceptable.
16244   # Some rework will be needed to allow for fast_install
16245   # before this can be enabled.
16246   hardcode_into_libs=yes
16247
16248   # Ideally, we could use ldconfig to report *all* directores which are
16249   # searched for libraries, however this is still not possible.  Aside from not
16250   # being certain /sbin/ldconfig is available, command
16251   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16252   # even though it is searched at run-time.  Try to do the best guess by
16253   # appending ld.so.conf contents (and includes) to the search path.
16254   if test -f /etc/ld.so.conf; then
16255     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' ' '`
16256     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16257   fi
16258
16259   # We used to test for /lib/ld.so.1 and disable shared libraries on
16260   # powerpc, because MkLinux only supported shared libraries with the
16261   # GNU dynamic linker.  Since this was broken with cross compilers,
16262   # most powerpc-linux boxes support dynamic linking these days and
16263   # people can always --disable-shared, the test was removed, and we
16264   # assume the GNU/Linux dynamic linker is in use.
16265   dynamic_linker='GNU/Linux ld.so'
16266   ;;
16267
16268 netbsdelf*-gnu)
16269   version_type=linux
16270   need_lib_prefix=no
16271   need_version=no
16272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16273   soname_spec='${libname}${release}${shared_ext}$major'
16274   shlibpath_var=LD_LIBRARY_PATH
16275   shlibpath_overrides_runpath=no
16276   hardcode_into_libs=yes
16277   dynamic_linker='NetBSD ld.elf_so'
16278   ;;
16279
16280 netbsd*)
16281   version_type=sunos
16282   need_lib_prefix=no
16283   need_version=no
16284   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16285     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16286     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16287     dynamic_linker='NetBSD (a.out) ld.so'
16288   else
16289     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16290     soname_spec='$libname$release$shared_ext$major'
16291     dynamic_linker='NetBSD ld.elf_so'
16292   fi
16293   shlibpath_var=LD_LIBRARY_PATH
16294   shlibpath_overrides_runpath=yes
16295   hardcode_into_libs=yes
16296   ;;
16297
16298 newsos6)
16299   version_type=linux # correct to gnu/linux during the next big refactor
16300   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16301   shlibpath_var=LD_LIBRARY_PATH
16302   shlibpath_overrides_runpath=yes
16303   ;;
16304
16305 *nto* | *qnx*)
16306   version_type=qnx
16307   need_lib_prefix=no
16308   need_version=no
16309   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16310   soname_spec='$libname$release$shared_ext$major'
16311   shlibpath_var=LD_LIBRARY_PATH
16312   shlibpath_overrides_runpath=no
16313   hardcode_into_libs=yes
16314   dynamic_linker='ldqnx.so'
16315   ;;
16316
16317 openbsd* | bitrig*)
16318   version_type=sunos
16319   sys_lib_dlsearch_path_spec=/usr/lib
16320   need_lib_prefix=no
16321   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16322     need_version=no
16323   else
16324     need_version=yes
16325   fi
16326   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16327   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16328   shlibpath_var=LD_LIBRARY_PATH
16329   shlibpath_overrides_runpath=yes
16330   ;;
16331
16332 os2*)
16333   libname_spec='$name'
16334   version_type=windows
16335   shrext_cmds=.dll
16336   need_version=no
16337   need_lib_prefix=no
16338   # OS/2 can only load a DLL with a base name of 8 characters or less.
16339   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16340     v=$($ECHO $release$versuffix | tr -d .-);
16341     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16342     $ECHO $n$v`$shared_ext'
16343   library_names_spec='${libname}_dll.$libext'
16344   dynamic_linker='OS/2 ld.exe'
16345   shlibpath_var=BEGINLIBPATH
16346   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16347   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16348   postinstall_cmds='base_file=`basename \$file`~
16349     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16350     dldir=$destdir/`dirname \$dlpath`~
16351     test -d \$dldir || mkdir -p \$dldir~
16352     $install_prog $dir/$dlname \$dldir/$dlname~
16353     chmod a+x \$dldir/$dlname~
16354     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16355       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16356     fi'
16357   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16358     dlpath=$dir/\$dldll~
16359     $RM \$dlpath'
16360   ;;
16361
16362 osf3* | osf4* | osf5*)
16363   version_type=osf
16364   need_lib_prefix=no
16365   need_version=no
16366   soname_spec='$libname$release$shared_ext$major'
16367   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16368   shlibpath_var=LD_LIBRARY_PATH
16369   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16370   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16371   ;;
16372
16373 rdos*)
16374   dynamic_linker=no
16375   ;;
16376
16377 solaris*)
16378   version_type=linux # correct to gnu/linux during the next big refactor
16379   need_lib_prefix=no
16380   need_version=no
16381   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16382   soname_spec='$libname$release$shared_ext$major'
16383   shlibpath_var=LD_LIBRARY_PATH
16384   shlibpath_overrides_runpath=yes
16385   hardcode_into_libs=yes
16386   # ldd complains unless libraries are executable
16387   postinstall_cmds='chmod +x $lib'
16388   ;;
16389
16390 sunos4*)
16391   version_type=sunos
16392   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16393   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16394   shlibpath_var=LD_LIBRARY_PATH
16395   shlibpath_overrides_runpath=yes
16396   if test yes = "$with_gnu_ld"; then
16397     need_lib_prefix=no
16398   fi
16399   need_version=yes
16400   ;;
16401
16402 sysv4 | sysv4.3*)
16403   version_type=linux # correct to gnu/linux during the next big refactor
16404   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16405   soname_spec='$libname$release$shared_ext$major'
16406   shlibpath_var=LD_LIBRARY_PATH
16407   case $host_vendor in
16408     sni)
16409       shlibpath_overrides_runpath=no
16410       need_lib_prefix=no
16411       runpath_var=LD_RUN_PATH
16412       ;;
16413     siemens)
16414       need_lib_prefix=no
16415       ;;
16416     motorola)
16417       need_lib_prefix=no
16418       need_version=no
16419       shlibpath_overrides_runpath=no
16420       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16421       ;;
16422   esac
16423   ;;
16424
16425 sysv4*MP*)
16426   if test -d /usr/nec; then
16427     version_type=linux # correct to gnu/linux during the next big refactor
16428     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16429     soname_spec='$libname$shared_ext.$major'
16430     shlibpath_var=LD_LIBRARY_PATH
16431   fi
16432   ;;
16433
16434 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16435   version_type=sco
16436   need_lib_prefix=no
16437   need_version=no
16438   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16439   soname_spec='$libname$release$shared_ext$major'
16440   shlibpath_var=LD_LIBRARY_PATH
16441   shlibpath_overrides_runpath=yes
16442   hardcode_into_libs=yes
16443   if test yes = "$with_gnu_ld"; then
16444     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16445   else
16446     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16447     case $host_os in
16448       sco3.2v5*)
16449         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16450         ;;
16451     esac
16452   fi
16453   sys_lib_dlsearch_path_spec='/usr/lib'
16454   ;;
16455
16456 tpf*)
16457   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16458   version_type=linux # correct to gnu/linux during the next big refactor
16459   need_lib_prefix=no
16460   need_version=no
16461   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16462   shlibpath_var=LD_LIBRARY_PATH
16463   shlibpath_overrides_runpath=no
16464   hardcode_into_libs=yes
16465   ;;
16466
16467 uts4*)
16468   version_type=linux # correct to gnu/linux during the next big refactor
16469   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16470   soname_spec='$libname$release$shared_ext$major'
16471   shlibpath_var=LD_LIBRARY_PATH
16472   ;;
16473
16474 *)
16475   dynamic_linker=no
16476   ;;
16477 esac
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16479 $as_echo "$dynamic_linker" >&6; }
16480 test no = "$dynamic_linker" && can_build_shared=no
16481
16482 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16483 if test yes = "$GCC"; then
16484   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16485 fi
16486
16487 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16488   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16489 fi
16490
16491 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16492   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16493 fi
16494
16495 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16496 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16497
16498 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16499 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16500
16501 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16502 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16544 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16545 hardcode_action_CXX=
16546 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16547    test -n "$runpath_var_CXX" ||
16548    test yes = "$hardcode_automatic_CXX"; then
16549
16550   # We can hardcode non-existent directories.
16551   if test no != "$hardcode_direct_CXX" &&
16552      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16553      # have to relink, otherwise we might link with an installed library
16554      # when we should be linking with a yet-to-be-installed one
16555      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16556      test no != "$hardcode_minus_L_CXX"; then
16557     # Linking always hardcodes the temporary library directory.
16558     hardcode_action_CXX=relink
16559   else
16560     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16561     hardcode_action_CXX=immediate
16562   fi
16563 else
16564   # We cannot hardcode anything, or else we can only hardcode existing
16565   # directories.
16566   hardcode_action_CXX=unsupported
16567 fi
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16569 $as_echo "$hardcode_action_CXX" >&6; }
16570
16571 if test relink = "$hardcode_action_CXX" ||
16572    test yes = "$inherit_rpath_CXX"; then
16573   # Fast installation is not supported
16574   enable_fast_install=no
16575 elif test yes = "$shlibpath_overrides_runpath" ||
16576      test no = "$enable_shared"; then
16577   # Fast installation is not necessary
16578   enable_fast_install=needless
16579 fi
16580
16581
16582
16583
16584
16585
16586
16587   fi # test -n "$compiler"
16588
16589   CC=$lt_save_CC
16590   CFLAGS=$lt_save_CFLAGS
16591   LDCXX=$LD
16592   LD=$lt_save_LD
16593   GCC=$lt_save_GCC
16594   with_gnu_ld=$lt_save_with_gnu_ld
16595   lt_cv_path_LDCXX=$lt_cv_path_LD
16596   lt_cv_path_LD=$lt_save_path_LD
16597   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16598   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16599 fi # test yes != "$_lt_caught_CXX_error"
16600
16601 ac_ext=c
16602 ac_cpp='$CPP $CPPFLAGS'
16603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621         ac_config_commands="$ac_config_commands libtool"
16622
16623
16624
16625
16626 # Only expand once:
16627
16628
16629
16630
16631 # Checks for header files.
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16633 $as_echo_n "checking for ANSI C header files... " >&6; }
16634 if ${ac_cv_header_stdc+:} false; then :
16635   $as_echo_n "(cached) " >&6
16636 else
16637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h.  */
16639 #include <stdlib.h>
16640 #include <stdarg.h>
16641 #include <string.h>
16642 #include <float.h>
16643
16644 int
16645 main ()
16646 {
16647
16648   ;
16649   return 0;
16650 }
16651 _ACEOF
16652 if ac_fn_c_try_compile "$LINENO"; then :
16653   ac_cv_header_stdc=yes
16654 else
16655   ac_cv_header_stdc=no
16656 fi
16657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16658
16659 if test $ac_cv_header_stdc = yes; then
16660   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662 /* end confdefs.h.  */
16663 #include <string.h>
16664
16665 _ACEOF
16666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16667   $EGREP "memchr" >/dev/null 2>&1; then :
16668
16669 else
16670   ac_cv_header_stdc=no
16671 fi
16672 rm -f conftest*
16673
16674 fi
16675
16676 if test $ac_cv_header_stdc = yes; then
16677   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679 /* end confdefs.h.  */
16680 #include <stdlib.h>
16681
16682 _ACEOF
16683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16684   $EGREP "free" >/dev/null 2>&1; then :
16685
16686 else
16687   ac_cv_header_stdc=no
16688 fi
16689 rm -f conftest*
16690
16691 fi
16692
16693 if test $ac_cv_header_stdc = yes; then
16694   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16695   if test "$cross_compiling" = yes; then :
16696   :
16697 else
16698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16699 /* end confdefs.h.  */
16700 #include <ctype.h>
16701 #include <stdlib.h>
16702 #if ((' ' & 0x0FF) == 0x020)
16703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16705 #else
16706 # define ISLOWER(c) \
16707                    (('a' <= (c) && (c) <= 'i') \
16708                      || ('j' <= (c) && (c) <= 'r') \
16709                      || ('s' <= (c) && (c) <= 'z'))
16710 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16711 #endif
16712
16713 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16714 int
16715 main ()
16716 {
16717   int i;
16718   for (i = 0; i < 256; i++)
16719     if (XOR (islower (i), ISLOWER (i))
16720         || toupper (i) != TOUPPER (i))
16721       return 2;
16722   return 0;
16723 }
16724 _ACEOF
16725 if ac_fn_c_try_run "$LINENO"; then :
16726
16727 else
16728   ac_cv_header_stdc=no
16729 fi
16730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16731   conftest.$ac_objext conftest.beam conftest.$ac_ext
16732 fi
16733
16734 fi
16735 fi
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16737 $as_echo "$ac_cv_header_stdc" >&6; }
16738 if test $ac_cv_header_stdc = yes; then
16739
16740 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16741
16742 fi
16743
16744 for ac_header in sys/ioctl.h unistd.h
16745 do :
16746   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16747 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16748 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16749   cat >>confdefs.h <<_ACEOF
16750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16751 _ACEOF
16752
16753 fi
16754
16755 done
16756
16757
16758 # Check compiler and use -Wall if gnu
16759 if test x"$GXX" = "xyes"; then
16760   CXXFLAGS="${CXXFLAGS} -Wall -Wextra"
16761   # Add -Werror in debug mode
16762   if test x"${enable_debug+set}" = xset; then
16763     CXXFLAGS="${CXXFLAGS} -Werror"
16764   fi
16765 fi
16766
16767 # Checks for functions
16768 for ac_func in gettimeofday
16769 do :
16770   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16771 if test "x$ac_cv_func_gettimeofday" = xyes; then :
16772   cat >>confdefs.h <<_ACEOF
16773 #define HAVE_GETTIMEOFDAY 1
16774 _ACEOF
16775
16776 fi
16777 done
16778
16779
16780 # Checks for doxygen
16781 # Extract the first word of "doxygen", so it can be a program name with args.
16782 set dummy doxygen; ac_word=$2
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16784 $as_echo_n "checking for $ac_word... " >&6; }
16785 if ${ac_cv_prog_DOXYGEN+:} false; then :
16786   $as_echo_n "(cached) " >&6
16787 else
16788   if test -n "$DOXYGEN"; then
16789   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
16790 else
16791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16792 for as_dir in $PATH
16793 do
16794   IFS=$as_save_IFS
16795   test -z "$as_dir" && as_dir=.
16796     for ac_exec_ext in '' $ac_executable_extensions; do
16797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16798     ac_cv_prog_DOXYGEN="doxygen "
16799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16800     break 2
16801   fi
16802 done
16803   done
16804 IFS=$as_save_IFS
16805
16806 fi
16807 fi
16808 DOXYGEN=$ac_cv_prog_DOXYGEN
16809 if test -n "$DOXYGEN"; then
16810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16811 $as_echo "$DOXYGEN" >&6; }
16812 else
16813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16814 $as_echo "no" >&6; }
16815 fi
16816
16817
16818  if test "x${DOXYGEN}" != x ; then
16819   MAKE_DOC_TRUE=
16820   MAKE_DOC_FALSE='#'
16821 else
16822   MAKE_DOC_TRUE='#'
16823   MAKE_DOC_FALSE=
16824 fi
16825
16826
16827 # Copy doc files to build dir if necessary
16828 ac_config_links="$ac_config_links doc/release.txt:doc/release.txt"
16829
16830 ac_config_links="$ac_config_links doc/doxygen/footer.html:doc/doxygen/footer.html"
16831
16832 ac_config_links="$ac_config_links doc/doxygen/error.txt:doc/doxygen/error.txt"
16833
16834 ac_config_links="$ac_config_links doc/doxygen/tutorial.txt:doc/doxygen/tutorial.txt"
16835
16836 ac_config_links="$ac_config_links doc/doxygen/compiling.txt:doc/doxygen/compiling.txt"
16837
16838 ac_config_links="$ac_config_links doc/doxygen/acknowledge.txt:doc/doxygen/acknowledge.txt"
16839
16840 ac_config_links="$ac_config_links doc/doxygen/license.txt:doc/doxygen/license.txt"
16841
16842 ac_config_links="$ac_config_links doc/doxygen/header.html:doc/doxygen/header.html"
16843
16844 ac_config_links="$ac_config_links doc/doxygen/duplex.txt:doc/doxygen/duplex.txt"
16845
16846 ac_config_links="$ac_config_links doc/doxygen/settings.txt:doc/doxygen/settings.txt"
16847
16848 ac_config_links="$ac_config_links doc/doxygen/probe.txt:doc/doxygen/probe.txt"
16849
16850 ac_config_links="$ac_config_links doc/doxygen/playback.txt:doc/doxygen/playback.txt"
16851
16852 ac_config_links="$ac_config_links doc/doxygen/multi.txt:doc/doxygen/multi.txt"
16853
16854 ac_config_links="$ac_config_links doc/doxygen/recording.txt:doc/doxygen/recording.txt"
16855
16856 ac_config_links="$ac_config_links doc/doxygen/apinotes.txt:doc/doxygen/apinotes.txt"
16857
16858 ac_config_links="$ac_config_links doc/images/mcgill.gif:doc/images/mcgill.gif"
16859
16860 ac_config_links="$ac_config_links doc/images/ccrma.gif:doc/images/ccrma.gif"
16861
16862
16863 # Checks for package options and external software
16864
16865
16866 api=""
16867
16868 req=""
16869
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audio API" >&5
16871 $as_echo_n "checking for audio API... " >&6; }
16872
16873
16874 # Check whether --with-jack was given.
16875 if test "${with_jack+set}" = set; then :
16876   withval=$with_jack;
16877 fi
16878
16879 if test "x$with_jack" == "xyes"; then :
16880
16881   api="$api -D__UNIX_JACK__"
16882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using JACK" >&5
16883 $as_echo "using JACK" >&6; }
16884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack_client_open in -ljack" >&5
16885 $as_echo_n "checking for jack_client_open in -ljack... " >&6; }
16886 if ${ac_cv_lib_jack_jack_client_open+:} false; then :
16887   $as_echo_n "(cached) " >&6
16888 else
16889   ac_check_lib_save_LIBS=$LIBS
16890 LIBS="-ljack  $LIBS"
16891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892 /* end confdefs.h.  */
16893
16894 /* Override any GCC internal prototype to avoid an error.
16895    Use char because int might match the return type of a GCC
16896    builtin and then its argument prototype would still apply.  */
16897 #ifdef __cplusplus
16898 extern "C"
16899 #endif
16900 char jack_client_open ();
16901 int
16902 main ()
16903 {
16904 return jack_client_open ();
16905   ;
16906   return 0;
16907 }
16908 _ACEOF
16909 if ac_fn_c_try_link "$LINENO"; then :
16910   ac_cv_lib_jack_jack_client_open=yes
16911 else
16912   ac_cv_lib_jack_jack_client_open=no
16913 fi
16914 rm -f core conftest.err conftest.$ac_objext \
16915     conftest$ac_exeext conftest.$ac_ext
16916 LIBS=$ac_check_lib_save_LIBS
16917 fi
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jack_jack_client_open" >&5
16919 $as_echo "$ac_cv_lib_jack_jack_client_open" >&6; }
16920 if test "x$ac_cv_lib_jack_jack_client_open" = xyes; then :
16921   cat >>confdefs.h <<_ACEOF
16922 #define HAVE_LIBJACK 1
16923 _ACEOF
16924
16925   LIBS="-ljack $LIBS"
16926
16927 else
16928   as_fn_error $? "JACK support requires the jack library!" "$LINENO" 5
16929 fi
16930
16931 fi
16932
16933 case $host in
16934   *-*-netbsd*)
16935   if test "$api" == ""; then :
16936
16937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
16938 $as_echo "using OSS" >&6; }
16939     api="$api -D__LINUX_OSS__"
16940     LIBS="$LIBS -lossaudio"
16941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16942 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16943 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16944   $as_echo_n "(cached) " >&6
16945 else
16946   ac_check_lib_save_LIBS=$LIBS
16947 LIBS="-lpthread  $LIBS"
16948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16949 /* end confdefs.h.  */
16950
16951 /* Override any GCC internal prototype to avoid an error.
16952    Use char because int might match the return type of a GCC
16953    builtin and then its argument prototype would still apply.  */
16954 #ifdef __cplusplus
16955 extern "C"
16956 #endif
16957 char pthread_create ();
16958 int
16959 main ()
16960 {
16961 return pthread_create ();
16962   ;
16963   return 0;
16964 }
16965 _ACEOF
16966 if ac_fn_c_try_link "$LINENO"; then :
16967   ac_cv_lib_pthread_pthread_create=yes
16968 else
16969   ac_cv_lib_pthread_pthread_create=no
16970 fi
16971 rm -f core conftest.err conftest.$ac_objext \
16972     conftest$ac_exeext conftest.$ac_ext
16973 LIBS=$ac_check_lib_save_LIBS
16974 fi
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16976 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16977 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16978   cat >>confdefs.h <<_ACEOF
16979 #define HAVE_LIBPTHREAD 1
16980 _ACEOF
16981
16982   LIBS="-lpthread $LIBS"
16983
16984 else
16985   as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
16986 fi
16987
16988 fi
16989   ;;
16990
16991   *-*-freebsd*)
16992   if test "$api" == ""; then :
16993
16994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
16995 $as_echo "using OSS" >&6; }
16996     api="$api -D__LINUX_OSS__"
16997     LIBS="$LIBS -lossaudio"
16998     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16999 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17000 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17001   $as_echo_n "(cached) " >&6
17002 else
17003   ac_check_lib_save_LIBS=$LIBS
17004 LIBS="-lpthread  $LIBS"
17005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17006 /* end confdefs.h.  */
17007
17008 /* Override any GCC internal prototype to avoid an error.
17009    Use char because int might match the return type of a GCC
17010    builtin and then its argument prototype would still apply.  */
17011 #ifdef __cplusplus
17012 extern "C"
17013 #endif
17014 char pthread_create ();
17015 int
17016 main ()
17017 {
17018 return pthread_create ();
17019   ;
17020   return 0;
17021 }
17022 _ACEOF
17023 if ac_fn_c_try_link "$LINENO"; then :
17024   ac_cv_lib_pthread_pthread_create=yes
17025 else
17026   ac_cv_lib_pthread_pthread_create=no
17027 fi
17028 rm -f core conftest.err conftest.$ac_objext \
17029     conftest$ac_exeext conftest.$ac_ext
17030 LIBS=$ac_check_lib_save_LIBS
17031 fi
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17033 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17034 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17035   cat >>confdefs.h <<_ACEOF
17036 #define HAVE_LIBPTHREAD 1
17037 _ACEOF
17038
17039   LIBS="-lpthread $LIBS"
17040
17041 else
17042   as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
17043 fi
17044
17045 fi
17046   ;;
17047
17048   *-*-linux*)
17049   # Look for ALSA flag
17050
17051 # Check whether --with-alsa was given.
17052 if test "${with_alsa+set}" = set; then :
17053   withval=$with_alsa;
17054 fi
17055
17056   if test "x$with_alsa" == "xyes"; then :
17057
17058     api="$api -D__LINUX_ALSA__"
17059     req="$req alsa"
17060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ALSA" >&5
17061 $as_echo "using ALSA" >&6; }
17062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
17063 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
17064 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
17065   $as_echo_n "(cached) " >&6
17066 else
17067   ac_check_lib_save_LIBS=$LIBS
17068 LIBS="-lasound  $LIBS"
17069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17070 /* end confdefs.h.  */
17071
17072 /* Override any GCC internal prototype to avoid an error.
17073    Use char because int might match the return type of a GCC
17074    builtin and then its argument prototype would still apply.  */
17075 #ifdef __cplusplus
17076 extern "C"
17077 #endif
17078 char snd_pcm_open ();
17079 int
17080 main ()
17081 {
17082 return snd_pcm_open ();
17083   ;
17084   return 0;
17085 }
17086 _ACEOF
17087 if ac_fn_c_try_link "$LINENO"; then :
17088   ac_cv_lib_asound_snd_pcm_open=yes
17089 else
17090   ac_cv_lib_asound_snd_pcm_open=no
17091 fi
17092 rm -f core conftest.err conftest.$ac_objext \
17093     conftest$ac_exeext conftest.$ac_ext
17094 LIBS=$ac_check_lib_save_LIBS
17095 fi
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
17097 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
17098 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
17099   cat >>confdefs.h <<_ACEOF
17100 #define HAVE_LIBASOUND 1
17101 _ACEOF
17102
17103   LIBS="-lasound $LIBS"
17104
17105 else
17106   as_fn_error $? "ALSA support requires the asound library!" "$LINENO" 5
17107 fi
17108
17109 fi
17110
17111   # Look for PULSE flag
17112
17113 # Check whether --with-pulse was given.
17114 if test "${with_pulse+set}" = set; then :
17115   withval=$with_pulse;
17116 fi
17117
17118   if test "x$with_pulse" == "xyes"; then :
17119
17120     api="$api -D__LINUX_PULSE__"
17121     req="$req libpulse-simple"
17122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PulseAudio" >&5
17123 $as_echo "using PulseAudio" >&6; }
17124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_simple_flush in -lpulse-simple" >&5
17125 $as_echo_n "checking for pa_simple_flush in -lpulse-simple... " >&6; }
17126 if ${ac_cv_lib_pulse_simple_pa_simple_flush+:} false; then :
17127   $as_echo_n "(cached) " >&6
17128 else
17129   ac_check_lib_save_LIBS=$LIBS
17130 LIBS="-lpulse-simple  $LIBS"
17131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132 /* end confdefs.h.  */
17133
17134 /* Override any GCC internal prototype to avoid an error.
17135    Use char because int might match the return type of a GCC
17136    builtin and then its argument prototype would still apply.  */
17137 #ifdef __cplusplus
17138 extern "C"
17139 #endif
17140 char pa_simple_flush ();
17141 int
17142 main ()
17143 {
17144 return pa_simple_flush ();
17145   ;
17146   return 0;
17147 }
17148 _ACEOF
17149 if ac_fn_c_try_link "$LINENO"; then :
17150   ac_cv_lib_pulse_simple_pa_simple_flush=yes
17151 else
17152   ac_cv_lib_pulse_simple_pa_simple_flush=no
17153 fi
17154 rm -f core conftest.err conftest.$ac_objext \
17155     conftest$ac_exeext conftest.$ac_ext
17156 LIBS=$ac_check_lib_save_LIBS
17157 fi
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pulse_simple_pa_simple_flush" >&5
17159 $as_echo "$ac_cv_lib_pulse_simple_pa_simple_flush" >&6; }
17160 if test "x$ac_cv_lib_pulse_simple_pa_simple_flush" = xyes; then :
17161   cat >>confdefs.h <<_ACEOF
17162 #define HAVE_LIBPULSE_SIMPLE 1
17163 _ACEOF
17164
17165   LIBS="-lpulse-simple $LIBS"
17166
17167 else
17168   as_fn_error $? "PulseAudio support requires the pulse-simple library!" "$LINENO" 5
17169 fi
17170
17171 fi
17172
17173   # Look for OSS flag
17174
17175 # Check whether --with-oss was given.
17176 if test "${with_oss+set}" = set; then :
17177   withval=$with_oss;
17178 fi
17179
17180   if test "x$with_oss" == "xyes"; then :
17181
17182     api="$api -D__LINUX_OSS__"
17183     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
17184 $as_echo "using OSS" >&6; }
17185 fi
17186
17187   # If no audio api flags specified, use ALSA
17188   if test "$api" == ""; then
17189     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ALSA" >&5
17190 $as_echo "using ALSA" >&6; }
17191     api=-D__LINUX_ALSA__
17192
17193     req="$req alsa"
17194     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
17195 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
17196 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
17197   $as_echo_n "(cached) " >&6
17198 else
17199   ac_check_lib_save_LIBS=$LIBS
17200 LIBS="-lasound  $LIBS"
17201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202 /* end confdefs.h.  */
17203
17204 /* Override any GCC internal prototype to avoid an error.
17205    Use char because int might match the return type of a GCC
17206    builtin and then its argument prototype would still apply.  */
17207 #ifdef __cplusplus
17208 extern "C"
17209 #endif
17210 char snd_pcm_open ();
17211 int
17212 main ()
17213 {
17214 return snd_pcm_open ();
17215   ;
17216   return 0;
17217 }
17218 _ACEOF
17219 if ac_fn_c_try_link "$LINENO"; then :
17220   ac_cv_lib_asound_snd_pcm_open=yes
17221 else
17222   ac_cv_lib_asound_snd_pcm_open=no
17223 fi
17224 rm -f core conftest.err conftest.$ac_objext \
17225     conftest$ac_exeext conftest.$ac_ext
17226 LIBS=$ac_check_lib_save_LIBS
17227 fi
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
17229 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
17230 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
17231   cat >>confdefs.h <<_ACEOF
17232 #define HAVE_LIBASOUND 1
17233 _ACEOF
17234
17235   LIBS="-lasound $LIBS"
17236
17237 else
17238   as_fn_error $? "ALSA support requires the asound library!" "$LINENO" 5
17239 fi
17240
17241   fi
17242
17243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17244 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17245 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17246   $as_echo_n "(cached) " >&6
17247 else
17248   ac_check_lib_save_LIBS=$LIBS
17249 LIBS="-lpthread  $LIBS"
17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251 /* end confdefs.h.  */
17252
17253 /* Override any GCC internal prototype to avoid an error.
17254    Use char because int might match the return type of a GCC
17255    builtin and then its argument prototype would still apply.  */
17256 #ifdef __cplusplus
17257 extern "C"
17258 #endif
17259 char pthread_create ();
17260 int
17261 main ()
17262 {
17263 return pthread_create ();
17264   ;
17265   return 0;
17266 }
17267 _ACEOF
17268 if ac_fn_c_try_link "$LINENO"; then :
17269   ac_cv_lib_pthread_pthread_create=yes
17270 else
17271   ac_cv_lib_pthread_pthread_create=no
17272 fi
17273 rm -f core conftest.err conftest.$ac_objext \
17274     conftest$ac_exeext conftest.$ac_ext
17275 LIBS=$ac_check_lib_save_LIBS
17276 fi
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17278 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17279 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17280   cat >>confdefs.h <<_ACEOF
17281 #define HAVE_LIBPTHREAD 1
17282 _ACEOF
17283
17284   LIBS="-lpthread $LIBS"
17285
17286 else
17287   as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
17288 fi
17289
17290   ;;
17291
17292   *-apple*)
17293   # Look for Core flag
17294
17295 # Check whether --with-core was given.
17296 if test "${with_core+set}" = set; then :
17297   withval=$with_core;
17298 fi
17299
17300   if test "x$with_core" == "xyes"; then :
17301
17302     api="$api -D__MACOSX_CORE__"
17303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using CoreAudio" >&5
17304 $as_echo "using CoreAudio" >&6; }
17305     ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
17306 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then :
17307
17308 else
17309   as_fn_error $? "CoreAudio header files not found!" "$LINENO" 5
17310 fi
17311
17312
17313     LIBS="$LIBS -framework CoreAudio -framework CoreFoundation"
17314 fi
17315
17316   # If no audio api flags specified, use CoreAudio
17317   if test "$api" == "";  then
17318     api=-D__MACOSX_CORE__
17319
17320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using CoreAudio" >&5
17321 $as_echo "using CoreAudio" >&6; }
17322     ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
17323 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then :
17324
17325 else
17326   as_fn_error $? "CoreAudio header files not found!" "$LINENO" 5
17327 fi
17328
17329
17330     LIBS="-framework CoreAudio -framework CoreFoundation"
17331
17332   fi
17333
17334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17335 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17336 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17337   $as_echo_n "(cached) " >&6
17338 else
17339   ac_check_lib_save_LIBS=$LIBS
17340 LIBS="-lpthread  $LIBS"
17341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17342 /* end confdefs.h.  */
17343
17344 /* Override any GCC internal prototype to avoid an error.
17345    Use char because int might match the return type of a GCC
17346    builtin and then its argument prototype would still apply.  */
17347 #ifdef __cplusplus
17348 extern "C"
17349 #endif
17350 char pthread_create ();
17351 int
17352 main ()
17353 {
17354 return pthread_create ();
17355   ;
17356   return 0;
17357 }
17358 _ACEOF
17359 if ac_fn_c_try_link "$LINENO"; then :
17360   ac_cv_lib_pthread_pthread_create=yes
17361 else
17362   ac_cv_lib_pthread_pthread_create=no
17363 fi
17364 rm -f core conftest.err conftest.$ac_objext \
17365     conftest$ac_exeext conftest.$ac_ext
17366 LIBS=$ac_check_lib_save_LIBS
17367 fi
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17369 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17370 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17371   cat >>confdefs.h <<_ACEOF
17372 #define HAVE_LIBPTHREAD 1
17373 _ACEOF
17374
17375   LIBS="-lpthread $LIBS"
17376
17377 else
17378   as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
17379 fi
17380
17381   ;;
17382
17383   *-mingw32*)
17384
17385 # Check whether --with-asio was given.
17386 if test "${with_asio+set}" = set; then :
17387   withval=$with_asio;
17388 fi
17389
17390   if test "x$with_asio" == "xyes"; then :
17391
17392     api="$api -D__WINDOWS_ASIO__"
17393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ASIO" >&5
17394 $as_echo "using ASIO" >&6; }
17395     objects="asio.o asiodrivers.o asiolist.o iasiothiscallresolver.o"
17396
17397 fi
17398
17399   # Look for DirectSound flag
17400
17401 # Check whether --with-ds was given.
17402 if test "${with_ds+set}" = set; then :
17403   withval=$with_ds;
17404 fi
17405
17406   if test "x$with_ds" == "xyes"; then :
17407
17408     api="$api -D__WINDOWS_DS__"
17409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using DirectSound" >&5
17410 $as_echo "using DirectSound" >&6; }
17411     LIBS="-ldsound -lwinmm $LIBS"
17412 fi
17413
17414   # Look for WASAPI flag
17415
17416 # Check whether --with-wasapi was given.
17417 if test "${with_wasapi+set}" = set; then :
17418   withval=$with_wasapi;
17419 fi
17420
17421   if test "x$with_wasapi" == "xyes"; then :
17422
17423     api="$api -D__WINDOWS_WASAPI__"
17424     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using WASAPI" >&5
17425 $as_echo "using WASAPI" >&6; }
17426     LIBS="-lwinmm -luuid -lksuser $LIBS"
17427 fi
17428
17429   # If no audio api flags specified, use DS
17430   if test "$api" == ""; then
17431     api=-D__WINDOWS_DS__
17432
17433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using DirectSound" >&5
17434 $as_echo "using DirectSound" >&6; }
17435     LIBS="-ldsound -lwinmm $LIBS"
17436   fi
17437
17438   LIBS="-lole32 $LIBS"
17439   ;;
17440
17441   *)
17442   # Default case for unknown realtime systems.
17443   as_fn_error $? "Unknown system type for realtime support!" "$LINENO" 5
17444   ;;
17445 esac
17446
17447 CPPFLAGS="$CPPFLAGS $api"
17448
17449 cat >confcache <<\_ACEOF
17450 # This file is a shell script that caches the results of configure
17451 # tests run on this system so they can be shared between configure
17452 # scripts and configure runs, see configure's option --config-cache.
17453 # It is not useful on other systems.  If it contains results you don't
17454 # want to keep, you may remove or edit it.
17455 #
17456 # config.status only pays attention to the cache file if you give it
17457 # the --recheck option to rerun configure.
17458 #
17459 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17460 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17461 # following values.
17462
17463 _ACEOF
17464
17465 # The following way of writing the cache mishandles newlines in values,
17466 # but we know of no workaround that is simple, portable, and efficient.
17467 # So, we kill variables containing newlines.
17468 # Ultrix sh set writes to stderr and can't be redirected directly,
17469 # and sets the high bit in the cache file unless we assign to the vars.
17470 (
17471   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17472     eval ac_val=\$$ac_var
17473     case $ac_val in #(
17474     *${as_nl}*)
17475       case $ac_var in #(
17476       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17477 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17478       esac
17479       case $ac_var in #(
17480       _ | IFS | as_nl) ;; #(
17481       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17482       *) { eval $ac_var=; unset $ac_var;} ;;
17483       esac ;;
17484     esac
17485   done
17486
17487   (set) 2>&1 |
17488     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17489     *${as_nl}ac_space=\ *)
17490       # `set' does not quote correctly, so add quotes: double-quote
17491       # substitution turns \\\\ into \\, and sed turns \\ into \.
17492       sed -n \
17493         "s/'/'\\\\''/g;
17494           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17495       ;; #(
17496     *)
17497       # `set' quotes correctly as required by POSIX, so do not add quotes.
17498       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17499       ;;
17500     esac |
17501     sort
17502 ) |
17503   sed '
17504      /^ac_cv_env_/b end
17505      t clear
17506      :clear
17507      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17508      t end
17509      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17510      :end' >>confcache
17511 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17512   if test -w "$cache_file"; then
17513     if test "x$cache_file" != "x/dev/null"; then
17514       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17515 $as_echo "$as_me: updating cache $cache_file" >&6;}
17516       if test ! -f "$cache_file" || test -h "$cache_file"; then
17517         cat confcache >"$cache_file"
17518       else
17519         case $cache_file in #(
17520         */* | ?:*)
17521           mv -f confcache "$cache_file"$$ &&
17522           mv -f "$cache_file"$$ "$cache_file" ;; #(
17523         *)
17524           mv -f confcache "$cache_file" ;;
17525         esac
17526       fi
17527     fi
17528   else
17529     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17530 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17531   fi
17532 fi
17533 rm -f confcache
17534
17535 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17536 # Let make expand exec_prefix.
17537 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17538
17539 # Transform confdefs.h into DEFS.
17540 # Protect against shell expansion while executing Makefile rules.
17541 # Protect against Makefile macro expansion.
17542 #
17543 # If the first sed substitution is executed (which looks for macros that
17544 # take arguments), then branch to the quote section.  Otherwise,
17545 # look for a macro that doesn't take arguments.
17546 ac_script='
17547 :mline
17548 /\\$/{
17549  N
17550  s,\\\n,,
17551  b mline
17552 }
17553 t clear
17554 :clear
17555 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
17556 t quote
17557 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
17558 t quote
17559 b any
17560 :quote
17561 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17562 s/\[/\\&/g
17563 s/\]/\\&/g
17564 s/\$/$$/g
17565 H
17566 :any
17567 ${
17568         g
17569         s/^\n//
17570         s/\n/ /g
17571         p
17572 }
17573 '
17574 DEFS=`sed -n "$ac_script" confdefs.h`
17575
17576
17577 ac_libobjs=
17578 ac_ltlibobjs=
17579 U=
17580 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17581   # 1. Remove the extension, and $U if already installed.
17582   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17583   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17584   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17585   #    will be set to the directory where LIBOBJS objects are built.
17586   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17587   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17588 done
17589 LIBOBJS=$ac_libobjs
17590
17591 LTLIBOBJS=$ac_ltlibobjs
17592
17593
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17595 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17596    if test -n "$am_sleep_pid"; then
17597      # Hide warnings about reused PIDs.
17598      wait $am_sleep_pid 2>/dev/null
17599    fi
17600    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17601 $as_echo "done" >&6; }
17602  if test -n "$EXEEXT"; then
17603   am__EXEEXT_TRUE=
17604   am__EXEEXT_FALSE='#'
17605 else
17606   am__EXEEXT_TRUE='#'
17607   am__EXEEXT_FALSE=
17608 fi
17609
17610 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17611   as_fn_error $? "conditional \"AMDEP\" was never defined.
17612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17613 fi
17614 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17615   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17617 fi
17618 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17619   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17621 fi
17622 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17623   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17625 fi
17626 if test -z "${MAKE_DOC_TRUE}" && test -z "${MAKE_DOC_FALSE}"; then
17627   as_fn_error $? "conditional \"MAKE_DOC\" was never defined.
17628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17629 fi
17630
17631 : "${CONFIG_STATUS=./config.status}"
17632 ac_write_fail=0
17633 ac_clean_files_save=$ac_clean_files
17634 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17636 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17637 as_write_fail=0
17638 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17639 #! $SHELL
17640 # Generated by $as_me.
17641 # Run this file to recreate the current configuration.
17642 # Compiler output produced by configure, useful for debugging
17643 # configure, is in config.log if it exists.
17644
17645 debug=false
17646 ac_cs_recheck=false
17647 ac_cs_silent=false
17648
17649 SHELL=\${CONFIG_SHELL-$SHELL}
17650 export SHELL
17651 _ASEOF
17652 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17653 ## -------------------- ##
17654 ## M4sh Initialization. ##
17655 ## -------------------- ##
17656
17657 # Be more Bourne compatible
17658 DUALCASE=1; export DUALCASE # for MKS sh
17659 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17660   emulate sh
17661   NULLCMD=:
17662   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17663   # is contrary to our usage.  Disable this feature.
17664   alias -g '${1+"$@"}'='"$@"'
17665   setopt NO_GLOB_SUBST
17666 else
17667   case `(set -o) 2>/dev/null` in #(
17668   *posix*) :
17669     set -o posix ;; #(
17670   *) :
17671      ;;
17672 esac
17673 fi
17674
17675
17676 as_nl='
17677 '
17678 export as_nl
17679 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17680 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17681 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17682 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17683 # Prefer a ksh shell builtin over an external printf program on Solaris,
17684 # but without wasting forks for bash or zsh.
17685 if test -z "$BASH_VERSION$ZSH_VERSION" \
17686     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17687   as_echo='print -r --'
17688   as_echo_n='print -rn --'
17689 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17690   as_echo='printf %s\n'
17691   as_echo_n='printf %s'
17692 else
17693   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17694     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17695     as_echo_n='/usr/ucb/echo -n'
17696   else
17697     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17698     as_echo_n_body='eval
17699       arg=$1;
17700       case $arg in #(
17701       *"$as_nl"*)
17702         expr "X$arg" : "X\\(.*\\)$as_nl";
17703         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17704       esac;
17705       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17706     '
17707     export as_echo_n_body
17708     as_echo_n='sh -c $as_echo_n_body as_echo'
17709   fi
17710   export as_echo_body
17711   as_echo='sh -c $as_echo_body as_echo'
17712 fi
17713
17714 # The user is always right.
17715 if test "${PATH_SEPARATOR+set}" != set; then
17716   PATH_SEPARATOR=:
17717   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17718     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17719       PATH_SEPARATOR=';'
17720   }
17721 fi
17722
17723
17724 # IFS
17725 # We need space, tab and new line, in precisely that order.  Quoting is
17726 # there to prevent editors from complaining about space-tab.
17727 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17728 # splitting by setting IFS to empty value.)
17729 IFS=" ""        $as_nl"
17730
17731 # Find who we are.  Look in the path if we contain no directory separator.
17732 as_myself=
17733 case $0 in #((
17734   *[\\/]* ) as_myself=$0 ;;
17735   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17736 for as_dir in $PATH
17737 do
17738   IFS=$as_save_IFS
17739   test -z "$as_dir" && as_dir=.
17740     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17741   done
17742 IFS=$as_save_IFS
17743
17744      ;;
17745 esac
17746 # We did not find ourselves, most probably we were run as `sh COMMAND'
17747 # in which case we are not to be found in the path.
17748 if test "x$as_myself" = x; then
17749   as_myself=$0
17750 fi
17751 if test ! -f "$as_myself"; then
17752   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17753   exit 1
17754 fi
17755
17756 # Unset variables that we do not need and which cause bugs (e.g. in
17757 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17758 # suppresses any "Segmentation fault" message there.  '((' could
17759 # trigger a bug in pdksh 5.2.14.
17760 for as_var in BASH_ENV ENV MAIL MAILPATH
17761 do eval test x\${$as_var+set} = xset \
17762   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17763 done
17764 PS1='$ '
17765 PS2='> '
17766 PS4='+ '
17767
17768 # NLS nuisances.
17769 LC_ALL=C
17770 export LC_ALL
17771 LANGUAGE=C
17772 export LANGUAGE
17773
17774 # CDPATH.
17775 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17776
17777
17778 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17779 # ----------------------------------------
17780 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17781 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17782 # script with STATUS, using 1 if that was 0.
17783 as_fn_error ()
17784 {
17785   as_status=$1; test $as_status -eq 0 && as_status=1
17786   if test "$4"; then
17787     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17788     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17789   fi
17790   $as_echo "$as_me: error: $2" >&2
17791   as_fn_exit $as_status
17792 } # as_fn_error
17793
17794
17795 # as_fn_set_status STATUS
17796 # -----------------------
17797 # Set $? to STATUS, without forking.
17798 as_fn_set_status ()
17799 {
17800   return $1
17801 } # as_fn_set_status
17802
17803 # as_fn_exit STATUS
17804 # -----------------
17805 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17806 as_fn_exit ()
17807 {
17808   set +e
17809   as_fn_set_status $1
17810   exit $1
17811 } # as_fn_exit
17812
17813 # as_fn_unset VAR
17814 # ---------------
17815 # Portably unset VAR.
17816 as_fn_unset ()
17817 {
17818   { eval $1=; unset $1;}
17819 }
17820 as_unset=as_fn_unset
17821 # as_fn_append VAR VALUE
17822 # ----------------------
17823 # Append the text in VALUE to the end of the definition contained in VAR. Take
17824 # advantage of any shell optimizations that allow amortized linear growth over
17825 # repeated appends, instead of the typical quadratic growth present in naive
17826 # implementations.
17827 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17828   eval 'as_fn_append ()
17829   {
17830     eval $1+=\$2
17831   }'
17832 else
17833   as_fn_append ()
17834   {
17835     eval $1=\$$1\$2
17836   }
17837 fi # as_fn_append
17838
17839 # as_fn_arith ARG...
17840 # ------------------
17841 # Perform arithmetic evaluation on the ARGs, and store the result in the
17842 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17843 # must be portable across $(()) and expr.
17844 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17845   eval 'as_fn_arith ()
17846   {
17847     as_val=$(( $* ))
17848   }'
17849 else
17850   as_fn_arith ()
17851   {
17852     as_val=`expr "$@" || test $? -eq 1`
17853   }
17854 fi # as_fn_arith
17855
17856
17857 if expr a : '\(a\)' >/dev/null 2>&1 &&
17858    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17859   as_expr=expr
17860 else
17861   as_expr=false
17862 fi
17863
17864 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17865   as_basename=basename
17866 else
17867   as_basename=false
17868 fi
17869
17870 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17871   as_dirname=dirname
17872 else
17873   as_dirname=false
17874 fi
17875
17876 as_me=`$as_basename -- "$0" ||
17877 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17878          X"$0" : 'X\(//\)$' \| \
17879          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17880 $as_echo X/"$0" |
17881     sed '/^.*\/\([^/][^/]*\)\/*$/{
17882             s//\1/
17883             q
17884           }
17885           /^X\/\(\/\/\)$/{
17886             s//\1/
17887             q
17888           }
17889           /^X\/\(\/\).*/{
17890             s//\1/
17891             q
17892           }
17893           s/.*/./; q'`
17894
17895 # Avoid depending upon Character Ranges.
17896 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17897 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17898 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17899 as_cr_digits='0123456789'
17900 as_cr_alnum=$as_cr_Letters$as_cr_digits
17901
17902 ECHO_C= ECHO_N= ECHO_T=
17903 case `echo -n x` in #(((((
17904 -n*)
17905   case `echo 'xy\c'` in
17906   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17907   xy)  ECHO_C='\c';;
17908   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17909        ECHO_T=' ';;
17910   esac;;
17911 *)
17912   ECHO_N='-n';;
17913 esac
17914
17915 rm -f conf$$ conf$$.exe conf$$.file
17916 if test -d conf$$.dir; then
17917   rm -f conf$$.dir/conf$$.file
17918 else
17919   rm -f conf$$.dir
17920   mkdir conf$$.dir 2>/dev/null
17921 fi
17922 if (echo >conf$$.file) 2>/dev/null; then
17923   if ln -s conf$$.file conf$$ 2>/dev/null; then
17924     as_ln_s='ln -s'
17925     # ... but there are two gotchas:
17926     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17927     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17928     # In both cases, we have to default to `cp -pR'.
17929     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17930       as_ln_s='cp -pR'
17931   elif ln conf$$.file conf$$ 2>/dev/null; then
17932     as_ln_s=ln
17933   else
17934     as_ln_s='cp -pR'
17935   fi
17936 else
17937   as_ln_s='cp -pR'
17938 fi
17939 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17940 rmdir conf$$.dir 2>/dev/null
17941
17942
17943 # as_fn_mkdir_p
17944 # -------------
17945 # Create "$as_dir" as a directory, including parents if necessary.
17946 as_fn_mkdir_p ()
17947 {
17948
17949   case $as_dir in #(
17950   -*) as_dir=./$as_dir;;
17951   esac
17952   test -d "$as_dir" || eval $as_mkdir_p || {
17953     as_dirs=
17954     while :; do
17955       case $as_dir in #(
17956       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17957       *) as_qdir=$as_dir;;
17958       esac
17959       as_dirs="'$as_qdir' $as_dirs"
17960       as_dir=`$as_dirname -- "$as_dir" ||
17961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17962          X"$as_dir" : 'X\(//\)[^/]' \| \
17963          X"$as_dir" : 'X\(//\)$' \| \
17964          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17965 $as_echo X"$as_dir" |
17966     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17967             s//\1/
17968             q
17969           }
17970           /^X\(\/\/\)[^/].*/{
17971             s//\1/
17972             q
17973           }
17974           /^X\(\/\/\)$/{
17975             s//\1/
17976             q
17977           }
17978           /^X\(\/\).*/{
17979             s//\1/
17980             q
17981           }
17982           s/.*/./; q'`
17983       test -d "$as_dir" && break
17984     done
17985     test -z "$as_dirs" || eval "mkdir $as_dirs"
17986   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17987
17988
17989 } # as_fn_mkdir_p
17990 if mkdir -p . 2>/dev/null; then
17991   as_mkdir_p='mkdir -p "$as_dir"'
17992 else
17993   test -d ./-p && rmdir ./-p
17994   as_mkdir_p=false
17995 fi
17996
17997
17998 # as_fn_executable_p FILE
17999 # -----------------------
18000 # Test if FILE is an executable regular file.
18001 as_fn_executable_p ()
18002 {
18003   test -f "$1" && test -x "$1"
18004 } # as_fn_executable_p
18005 as_test_x='test -x'
18006 as_executable_p=as_fn_executable_p
18007
18008 # Sed expression to map a string onto a valid CPP name.
18009 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18010
18011 # Sed expression to map a string onto a valid variable name.
18012 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18013
18014
18015 exec 6>&1
18016 ## ----------------------------------- ##
18017 ## Main body of $CONFIG_STATUS script. ##
18018 ## ----------------------------------- ##
18019 _ASEOF
18020 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18021
18022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18023 # Save the log message, to keep $0 and so on meaningful, and to
18024 # report actual input values of CONFIG_FILES etc. instead of their
18025 # values after options handling.
18026 ac_log="
18027 This file was extended by RtAudio $as_me 5.0.0, which was
18028 generated by GNU Autoconf 2.69.  Invocation command line was
18029
18030   CONFIG_FILES    = $CONFIG_FILES
18031   CONFIG_HEADERS  = $CONFIG_HEADERS
18032   CONFIG_LINKS    = $CONFIG_LINKS
18033   CONFIG_COMMANDS = $CONFIG_COMMANDS
18034   $ $0 $@
18035
18036 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18037 "
18038
18039 _ACEOF
18040
18041 case $ac_config_files in *"
18042 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18043 esac
18044
18045
18046
18047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18048 # Files that config.status was made for.
18049 config_files="$ac_config_files"
18050 config_links="$ac_config_links"
18051 config_commands="$ac_config_commands"
18052
18053 _ACEOF
18054
18055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18056 ac_cs_usage="\
18057 \`$as_me' instantiates files and other configuration actions
18058 from templates according to the current configuration.  Unless the files
18059 and actions are specified as TAGs, all are instantiated by default.
18060
18061 Usage: $0 [OPTION]... [TAG]...
18062
18063   -h, --help       print this help, then exit
18064   -V, --version    print version number and configuration settings, then exit
18065       --config     print configuration, then exit
18066   -q, --quiet, --silent
18067                    do not print progress messages
18068   -d, --debug      don't remove temporary files
18069       --recheck    update $as_me by reconfiguring in the same conditions
18070       --file=FILE[:TEMPLATE]
18071                    instantiate the configuration file FILE
18072
18073 Configuration files:
18074 $config_files
18075
18076 Configuration links:
18077 $config_links
18078
18079 Configuration commands:
18080 $config_commands
18081
18082 Report bugs to <gary@music.mcgill.ca>."
18083
18084 _ACEOF
18085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18086 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18087 ac_cs_version="\\
18088 RtAudio config.status 5.0.0
18089 configured by $0, generated by GNU Autoconf 2.69,
18090   with options \\"\$ac_cs_config\\"
18091
18092 Copyright (C) 2012 Free Software Foundation, Inc.
18093 This config.status script is free software; the Free Software Foundation
18094 gives unlimited permission to copy, distribute and modify it."
18095
18096 ac_pwd='$ac_pwd'
18097 srcdir='$srcdir'
18098 INSTALL='$INSTALL'
18099 MKDIR_P='$MKDIR_P'
18100 AWK='$AWK'
18101 test -n "\$AWK" || AWK=awk
18102 _ACEOF
18103
18104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18105 # The default lists apply if the user does not specify any file.
18106 ac_need_defaults=:
18107 while test $# != 0
18108 do
18109   case $1 in
18110   --*=?*)
18111     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18112     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18113     ac_shift=:
18114     ;;
18115   --*=)
18116     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18117     ac_optarg=
18118     ac_shift=:
18119     ;;
18120   *)
18121     ac_option=$1
18122     ac_optarg=$2
18123     ac_shift=shift
18124     ;;
18125   esac
18126
18127   case $ac_option in
18128   # Handling of the options.
18129   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18130     ac_cs_recheck=: ;;
18131   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18132     $as_echo "$ac_cs_version"; exit ;;
18133   --config | --confi | --conf | --con | --co | --c )
18134     $as_echo "$ac_cs_config"; exit ;;
18135   --debug | --debu | --deb | --de | --d | -d )
18136     debug=: ;;
18137   --file | --fil | --fi | --f )
18138     $ac_shift
18139     case $ac_optarg in
18140     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18141     '') as_fn_error $? "missing file argument" ;;
18142     esac
18143     as_fn_append CONFIG_FILES " '$ac_optarg'"
18144     ac_need_defaults=false;;
18145   --he | --h |  --help | --hel | -h )
18146     $as_echo "$ac_cs_usage"; exit ;;
18147   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18148   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18149     ac_cs_silent=: ;;
18150
18151   # This is an error.
18152   -*) as_fn_error $? "unrecognized option: \`$1'
18153 Try \`$0 --help' for more information." ;;
18154
18155   *) as_fn_append ac_config_targets " $1"
18156      ac_need_defaults=false ;;
18157
18158   esac
18159   shift
18160 done
18161
18162 ac_configure_extra_args=
18163
18164 if $ac_cs_silent; then
18165   exec 6>/dev/null
18166   ac_configure_extra_args="$ac_configure_extra_args --silent"
18167 fi
18168
18169 _ACEOF
18170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18171 if \$ac_cs_recheck; then
18172   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18173   shift
18174   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18175   CONFIG_SHELL='$SHELL'
18176   export CONFIG_SHELL
18177   exec "\$@"
18178 fi
18179
18180 _ACEOF
18181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18182 exec 5>>config.log
18183 {
18184   echo
18185   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18186 ## Running $as_me. ##
18187 _ASBOX
18188   $as_echo "$ac_log"
18189 } >&5
18190
18191 _ACEOF
18192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18193 #
18194 # INIT-COMMANDS
18195 #
18196 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18197
18198
18199 # The HP-UX ksh and POSIX shell print the target directory to stdout
18200 # if CDPATH is set.
18201 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18202
18203 sed_quote_subst='$sed_quote_subst'
18204 double_quote_subst='$double_quote_subst'
18205 delay_variable_subst='$delay_variable_subst'
18206 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18207 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18208 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18209 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18210 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18211 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18212 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18213 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18214 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18215 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18216 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18217 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18218 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18219 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18220 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18221 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18222 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18223 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18224 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18225 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18226 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18227 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18228 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18229 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18230 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18231 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18232 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18233 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18234 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18235 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18236 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18237 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18238 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18239 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18240 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18241 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18242 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18243 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18244 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18245 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18246 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18247 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18248 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18249 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18250 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18251 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18252 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18253 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18254 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18255 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18256 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18257 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18258 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18259 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18260 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18261 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18262 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18263 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18264 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18265 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"`'
18266 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18267 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18268 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18269 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18270 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18271 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18272 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18273 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18274 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18275 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18276 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18277 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18278 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18279 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18280 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18281 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18282 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18283 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18284 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18285 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18286 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18287 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18288 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18289 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18290 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18291 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18292 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18293 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18294 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18295 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18296 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18297 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18298 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18299 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18300 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18301 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18302 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18303 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18304 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18305 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18306 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18307 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18308 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18309 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18310 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18311 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18312 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18313 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18314 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18315 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18316 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18317 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18318 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18319 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18320 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18321 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18322 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18323 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18324 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18325 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18326 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18327 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18328 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18329 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18330 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18331 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18332 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18333 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18334 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18335 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18336 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18337 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18338 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18339 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18340 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18341 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18342 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18343 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18344 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18345 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18346 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18347 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18348 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18349 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18350 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18351 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18352 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18353 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18354 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18355 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18356 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18357 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18358 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18359 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18360 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18361 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18362 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18363 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18364 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18365 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18366 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18367 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18368 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18369 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18370 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18371 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18372 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18373 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18374 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18375 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18376 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18377 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18378 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18379 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18380 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18381 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18382 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18383 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18384 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18385 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18386 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18387 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18388 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18389 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18390 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18391 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18392 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18393 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18394 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18395 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18396
18397 LTCC='$LTCC'
18398 LTCFLAGS='$LTCFLAGS'
18399 compiler='$compiler_DEFAULT'
18400
18401 # A function that is used when there is no print builtin or printf.
18402 func_fallback_echo ()
18403 {
18404   eval 'cat <<_LTECHO_EOF
18405 \$1
18406 _LTECHO_EOF'
18407 }
18408
18409 # Quote evaled strings.
18410 for var in AS \
18411 DLLTOOL \
18412 OBJDUMP \
18413 SHELL \
18414 ECHO \
18415 PATH_SEPARATOR \
18416 SED \
18417 GREP \
18418 EGREP \
18419 FGREP \
18420 LD \
18421 NM \
18422 LN_S \
18423 lt_SP2NL \
18424 lt_NL2SP \
18425 reload_flag \
18426 deplibs_check_method \
18427 file_magic_cmd \
18428 file_magic_glob \
18429 want_nocaseglob \
18430 sharedlib_from_linklib_cmd \
18431 AR \
18432 AR_FLAGS \
18433 archiver_list_spec \
18434 STRIP \
18435 RANLIB \
18436 CC \
18437 CFLAGS \
18438 compiler \
18439 lt_cv_sys_global_symbol_pipe \
18440 lt_cv_sys_global_symbol_to_cdecl \
18441 lt_cv_sys_global_symbol_to_import \
18442 lt_cv_sys_global_symbol_to_c_name_address \
18443 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18444 lt_cv_nm_interface \
18445 nm_file_list_spec \
18446 lt_cv_truncate_bin \
18447 lt_prog_compiler_no_builtin_flag \
18448 lt_prog_compiler_pic \
18449 lt_prog_compiler_wl \
18450 lt_prog_compiler_static \
18451 lt_cv_prog_compiler_c_o \
18452 need_locks \
18453 MANIFEST_TOOL \
18454 DSYMUTIL \
18455 NMEDIT \
18456 LIPO \
18457 OTOOL \
18458 OTOOL64 \
18459 shrext_cmds \
18460 export_dynamic_flag_spec \
18461 whole_archive_flag_spec \
18462 compiler_needs_object \
18463 with_gnu_ld \
18464 allow_undefined_flag \
18465 no_undefined_flag \
18466 hardcode_libdir_flag_spec \
18467 hardcode_libdir_separator \
18468 exclude_expsyms \
18469 include_expsyms \
18470 file_list_spec \
18471 variables_saved_for_relink \
18472 libname_spec \
18473 library_names_spec \
18474 soname_spec \
18475 install_override_mode \
18476 finish_eval \
18477 old_striplib \
18478 striplib \
18479 compiler_lib_search_dirs \
18480 predep_objects \
18481 postdep_objects \
18482 predeps \
18483 postdeps \
18484 compiler_lib_search_path \
18485 LD_CXX \
18486 reload_flag_CXX \
18487 compiler_CXX \
18488 lt_prog_compiler_no_builtin_flag_CXX \
18489 lt_prog_compiler_pic_CXX \
18490 lt_prog_compiler_wl_CXX \
18491 lt_prog_compiler_static_CXX \
18492 lt_cv_prog_compiler_c_o_CXX \
18493 export_dynamic_flag_spec_CXX \
18494 whole_archive_flag_spec_CXX \
18495 compiler_needs_object_CXX \
18496 with_gnu_ld_CXX \
18497 allow_undefined_flag_CXX \
18498 no_undefined_flag_CXX \
18499 hardcode_libdir_flag_spec_CXX \
18500 hardcode_libdir_separator_CXX \
18501 exclude_expsyms_CXX \
18502 include_expsyms_CXX \
18503 file_list_spec_CXX \
18504 compiler_lib_search_dirs_CXX \
18505 predep_objects_CXX \
18506 postdep_objects_CXX \
18507 predeps_CXX \
18508 postdeps_CXX \
18509 compiler_lib_search_path_CXX; do
18510     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18511     *[\\\\\\\`\\"\\\$]*)
18512       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18513       ;;
18514     *)
18515       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18516       ;;
18517     esac
18518 done
18519
18520 # Double-quote double-evaled strings.
18521 for var in reload_cmds \
18522 old_postinstall_cmds \
18523 old_postuninstall_cmds \
18524 old_archive_cmds \
18525 extract_expsyms_cmds \
18526 old_archive_from_new_cmds \
18527 old_archive_from_expsyms_cmds \
18528 archive_cmds \
18529 archive_expsym_cmds \
18530 module_cmds \
18531 module_expsym_cmds \
18532 export_symbols_cmds \
18533 prelink_cmds \
18534 postlink_cmds \
18535 postinstall_cmds \
18536 postuninstall_cmds \
18537 finish_cmds \
18538 sys_lib_search_path_spec \
18539 configure_time_dlsearch_path \
18540 configure_time_lt_sys_library_path \
18541 reload_cmds_CXX \
18542 old_archive_cmds_CXX \
18543 old_archive_from_new_cmds_CXX \
18544 old_archive_from_expsyms_cmds_CXX \
18545 archive_cmds_CXX \
18546 archive_expsym_cmds_CXX \
18547 module_cmds_CXX \
18548 module_expsym_cmds_CXX \
18549 export_symbols_cmds_CXX \
18550 prelink_cmds_CXX \
18551 postlink_cmds_CXX; do
18552     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18553     *[\\\\\\\`\\"\\\$]*)
18554       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18555       ;;
18556     *)
18557       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18558       ;;
18559     esac
18560 done
18561
18562 ac_aux_dir='$ac_aux_dir'
18563
18564 # See if we are running on zsh, and set the options that allow our
18565 # commands through without removal of \ escapes INIT.
18566 if test -n "\${ZSH_VERSION+set}"; then
18567    setopt NO_GLOB_SUBST
18568 fi
18569
18570
18571     PACKAGE='$PACKAGE'
18572     VERSION='$VERSION'
18573     RM='$RM'
18574     ofile='$ofile'
18575
18576
18577
18578
18579
18580
18581 _ACEOF
18582
18583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18584
18585 # Handling of arguments.
18586 for ac_config_target in $ac_config_targets
18587 do
18588   case $ac_config_target in
18589     "rtaudio.pc") CONFIG_FILES="$CONFIG_FILES rtaudio.pc" ;;
18590     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18591     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18592     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18593     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
18594     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18595     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18596     "doc/release.txt") CONFIG_LINKS="$CONFIG_LINKS doc/release.txt:doc/release.txt" ;;
18597     "doc/doxygen/footer.html") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/footer.html:doc/doxygen/footer.html" ;;
18598     "doc/doxygen/error.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/error.txt:doc/doxygen/error.txt" ;;
18599     "doc/doxygen/tutorial.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/tutorial.txt:doc/doxygen/tutorial.txt" ;;
18600     "doc/doxygen/compiling.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/compiling.txt:doc/doxygen/compiling.txt" ;;
18601     "doc/doxygen/acknowledge.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/acknowledge.txt:doc/doxygen/acknowledge.txt" ;;
18602     "doc/doxygen/license.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/license.txt:doc/doxygen/license.txt" ;;
18603     "doc/doxygen/header.html") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/header.html:doc/doxygen/header.html" ;;
18604     "doc/doxygen/duplex.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/duplex.txt:doc/doxygen/duplex.txt" ;;
18605     "doc/doxygen/settings.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/settings.txt:doc/doxygen/settings.txt" ;;
18606     "doc/doxygen/probe.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/probe.txt:doc/doxygen/probe.txt" ;;
18607     "doc/doxygen/playback.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/playback.txt:doc/doxygen/playback.txt" ;;
18608     "doc/doxygen/multi.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/multi.txt:doc/doxygen/multi.txt" ;;
18609     "doc/doxygen/recording.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/recording.txt:doc/doxygen/recording.txt" ;;
18610     "doc/doxygen/apinotes.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/apinotes.txt:doc/doxygen/apinotes.txt" ;;
18611     "doc/images/mcgill.gif") CONFIG_LINKS="$CONFIG_LINKS doc/images/mcgill.gif:doc/images/mcgill.gif" ;;
18612     "doc/images/ccrma.gif") CONFIG_LINKS="$CONFIG_LINKS doc/images/ccrma.gif:doc/images/ccrma.gif" ;;
18613
18614   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18615   esac
18616 done
18617
18618
18619 # If the user did not use the arguments to specify the items to instantiate,
18620 # then the envvar interface is used.  Set only those that are not.
18621 # We use the long form for the default assignment because of an extremely
18622 # bizarre bug on SunOS 4.1.3.
18623 if $ac_need_defaults; then
18624   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18625   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18626   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18627 fi
18628
18629 # Have a temporary directory for convenience.  Make it in the build tree
18630 # simply because there is no reason against having it here, and in addition,
18631 # creating and moving files from /tmp can sometimes cause problems.
18632 # Hook for its removal unless debugging.
18633 # Note that there is a small window in which the directory will not be cleaned:
18634 # after its creation but before its name has been assigned to `$tmp'.
18635 $debug ||
18636 {
18637   tmp= ac_tmp=
18638   trap 'exit_status=$?
18639   : "${ac_tmp:=$tmp}"
18640   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18641 ' 0
18642   trap 'as_fn_exit 1' 1 2 13 15
18643 }
18644 # Create a (secure) tmp directory for tmp files.
18645
18646 {
18647   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18648   test -d "$tmp"
18649 }  ||
18650 {
18651   tmp=./conf$$-$RANDOM
18652   (umask 077 && mkdir "$tmp")
18653 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18654 ac_tmp=$tmp
18655
18656 # Set up the scripts for CONFIG_FILES section.
18657 # No need to generate them if there are no CONFIG_FILES.
18658 # This happens for instance with `./config.status config.h'.
18659 if test -n "$CONFIG_FILES"; then
18660
18661
18662 ac_cr=`echo X | tr X '\015'`
18663 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18664 # But we know of no other shell where ac_cr would be empty at this
18665 # point, so we can use a bashism as a fallback.
18666 if test "x$ac_cr" = x; then
18667   eval ac_cr=\$\'\\r\'
18668 fi
18669 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18670 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18671   ac_cs_awk_cr='\\r'
18672 else
18673   ac_cs_awk_cr=$ac_cr
18674 fi
18675
18676 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18677 _ACEOF
18678
18679
18680 {
18681   echo "cat >conf$$subs.awk <<_ACEOF" &&
18682   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18683   echo "_ACEOF"
18684 } >conf$$subs.sh ||
18685   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18686 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18687 ac_delim='%!_!# '
18688 for ac_last_try in false false false false false :; do
18689   . ./conf$$subs.sh ||
18690     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18691
18692   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18693   if test $ac_delim_n = $ac_delim_num; then
18694     break
18695   elif $ac_last_try; then
18696     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18697   else
18698     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18699   fi
18700 done
18701 rm -f conf$$subs.sh
18702
18703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18704 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18705 _ACEOF
18706 sed -n '
18707 h
18708 s/^/S["/; s/!.*/"]=/
18709 p
18710 g
18711 s/^[^!]*!//
18712 :repl
18713 t repl
18714 s/'"$ac_delim"'$//
18715 t delim
18716 :nl
18717 h
18718 s/\(.\{148\}\)..*/\1/
18719 t more1
18720 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18721 p
18722 n
18723 b repl
18724 :more1
18725 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18726 p
18727 g
18728 s/.\{148\}//
18729 t nl
18730 :delim
18731 h
18732 s/\(.\{148\}\)..*/\1/
18733 t more2
18734 s/["\\]/\\&/g; s/^/"/; s/$/"/
18735 p
18736 b
18737 :more2
18738 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18739 p
18740 g
18741 s/.\{148\}//
18742 t delim
18743 ' <conf$$subs.awk | sed '
18744 /^[^""]/{
18745   N
18746   s/\n//
18747 }
18748 ' >>$CONFIG_STATUS || ac_write_fail=1
18749 rm -f conf$$subs.awk
18750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18751 _ACAWK
18752 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18753   for (key in S) S_is_set[key] = 1
18754   FS = "\a"
18755
18756 }
18757 {
18758   line = $ 0
18759   nfields = split(line, field, "@")
18760   substed = 0
18761   len = length(field[1])
18762   for (i = 2; i < nfields; i++) {
18763     key = field[i]
18764     keylen = length(key)
18765     if (S_is_set[key]) {
18766       value = S[key]
18767       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18768       len += length(value) + length(field[++i])
18769       substed = 1
18770     } else
18771       len += 1 + keylen
18772   }
18773
18774   print line
18775 }
18776
18777 _ACAWK
18778 _ACEOF
18779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18780 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18781   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18782 else
18783   cat
18784 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18785   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18786 _ACEOF
18787
18788 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18789 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18790 # trailing colons and then remove the whole line if VPATH becomes empty
18791 # (actually we leave an empty line to preserve line numbers).
18792 if test "x$srcdir" = x.; then
18793   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18794 h
18795 s///
18796 s/^/:/
18797 s/[      ]*$/:/
18798 s/:\$(srcdir):/:/g
18799 s/:\${srcdir}:/:/g
18800 s/:@srcdir@:/:/g
18801 s/^:*//
18802 s/:*$//
18803 x
18804 s/\(=[   ]*\).*/\1/
18805 G
18806 s/\n//
18807 s/^[^=]*=[       ]*$//
18808 }'
18809 fi
18810
18811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18812 fi # test -n "$CONFIG_FILES"
18813
18814
18815 eval set X "  :F $CONFIG_FILES    :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
18816 shift
18817 for ac_tag
18818 do
18819   case $ac_tag in
18820   :[FHLC]) ac_mode=$ac_tag; continue;;
18821   esac
18822   case $ac_mode$ac_tag in
18823   :[FHL]*:*);;
18824   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18825   :[FH]-) ac_tag=-:-;;
18826   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18827   esac
18828   ac_save_IFS=$IFS
18829   IFS=:
18830   set x $ac_tag
18831   IFS=$ac_save_IFS
18832   shift
18833   ac_file=$1
18834   shift
18835
18836   case $ac_mode in
18837   :L) ac_source=$1;;
18838   :[FH])
18839     ac_file_inputs=
18840     for ac_f
18841     do
18842       case $ac_f in
18843       -) ac_f="$ac_tmp/stdin";;
18844       *) # Look for the file first in the build tree, then in the source tree
18845          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18846          # because $ac_f cannot contain `:'.
18847          test -f "$ac_f" ||
18848            case $ac_f in
18849            [\\/$]*) false;;
18850            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18851            esac ||
18852            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18853       esac
18854       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18855       as_fn_append ac_file_inputs " '$ac_f'"
18856     done
18857
18858     # Let's still pretend it is `configure' which instantiates (i.e., don't
18859     # use $as_me), people would be surprised to read:
18860     #    /* config.h.  Generated by config.status.  */
18861     configure_input='Generated from '`
18862           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18863         `' by configure.'
18864     if test x"$ac_file" != x-; then
18865       configure_input="$ac_file.  $configure_input"
18866       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18867 $as_echo "$as_me: creating $ac_file" >&6;}
18868     fi
18869     # Neutralize special characters interpreted by sed in replacement strings.
18870     case $configure_input in #(
18871     *\&* | *\|* | *\\* )
18872        ac_sed_conf_input=`$as_echo "$configure_input" |
18873        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18874     *) ac_sed_conf_input=$configure_input;;
18875     esac
18876
18877     case $ac_tag in
18878     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18879       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18880     esac
18881     ;;
18882   esac
18883
18884   ac_dir=`$as_dirname -- "$ac_file" ||
18885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18886          X"$ac_file" : 'X\(//\)[^/]' \| \
18887          X"$ac_file" : 'X\(//\)$' \| \
18888          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18889 $as_echo X"$ac_file" |
18890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18891             s//\1/
18892             q
18893           }
18894           /^X\(\/\/\)[^/].*/{
18895             s//\1/
18896             q
18897           }
18898           /^X\(\/\/\)$/{
18899             s//\1/
18900             q
18901           }
18902           /^X\(\/\).*/{
18903             s//\1/
18904             q
18905           }
18906           s/.*/./; q'`
18907   as_dir="$ac_dir"; as_fn_mkdir_p
18908   ac_builddir=.
18909
18910 case "$ac_dir" in
18911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18912 *)
18913   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18914   # A ".." for each directory in $ac_dir_suffix.
18915   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18916   case $ac_top_builddir_sub in
18917   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18918   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18919   esac ;;
18920 esac
18921 ac_abs_top_builddir=$ac_pwd
18922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18923 # for backward compatibility:
18924 ac_top_builddir=$ac_top_build_prefix
18925
18926 case $srcdir in
18927   .)  # We are building in place.
18928     ac_srcdir=.
18929     ac_top_srcdir=$ac_top_builddir_sub
18930     ac_abs_top_srcdir=$ac_pwd ;;
18931   [\\/]* | ?:[\\/]* )  # Absolute name.
18932     ac_srcdir=$srcdir$ac_dir_suffix;
18933     ac_top_srcdir=$srcdir
18934     ac_abs_top_srcdir=$srcdir ;;
18935   *) # Relative name.
18936     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18937     ac_top_srcdir=$ac_top_build_prefix$srcdir
18938     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18939 esac
18940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18941
18942
18943   case $ac_mode in
18944   :F)
18945   #
18946   # CONFIG_FILE
18947   #
18948
18949   case $INSTALL in
18950   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18951   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18952   esac
18953   ac_MKDIR_P=$MKDIR_P
18954   case $MKDIR_P in
18955   [\\/$]* | ?:[\\/]* ) ;;
18956   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18957   esac
18958 _ACEOF
18959
18960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18961 # If the template does not know about datarootdir, expand it.
18962 # FIXME: This hack should be removed a few years after 2.60.
18963 ac_datarootdir_hack=; ac_datarootdir_seen=
18964 ac_sed_dataroot='
18965 /datarootdir/ {
18966   p
18967   q
18968 }
18969 /@datadir@/p
18970 /@docdir@/p
18971 /@infodir@/p
18972 /@localedir@/p
18973 /@mandir@/p'
18974 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18975 *datarootdir*) ac_datarootdir_seen=yes;;
18976 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18977   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18978 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18979 _ACEOF
18980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18981   ac_datarootdir_hack='
18982   s&@datadir@&$datadir&g
18983   s&@docdir@&$docdir&g
18984   s&@infodir@&$infodir&g
18985   s&@localedir@&$localedir&g
18986   s&@mandir@&$mandir&g
18987   s&\\\${datarootdir}&$datarootdir&g' ;;
18988 esac
18989 _ACEOF
18990
18991 # Neutralize VPATH when `$srcdir' = `.'.
18992 # Shell code in configure.ac might set extrasub.
18993 # FIXME: do we really want to maintain this feature?
18994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18995 ac_sed_extra="$ac_vpsub
18996 $extrasub
18997 _ACEOF
18998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18999 :t
19000 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19001 s|@configure_input@|$ac_sed_conf_input|;t t
19002 s&@top_builddir@&$ac_top_builddir_sub&;t t
19003 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19004 s&@srcdir@&$ac_srcdir&;t t
19005 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19006 s&@top_srcdir@&$ac_top_srcdir&;t t
19007 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19008 s&@builddir@&$ac_builddir&;t t
19009 s&@abs_builddir@&$ac_abs_builddir&;t t
19010 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19011 s&@INSTALL@&$ac_INSTALL&;t t
19012 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19013 $ac_datarootdir_hack
19014 "
19015 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19016   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19017
19018 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19019   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19020   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
19021       "$ac_tmp/out"`; test -z "$ac_out"; } &&
19022   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19023 which seems to be undefined.  Please make sure it is defined" >&5
19024 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19025 which seems to be undefined.  Please make sure it is defined" >&2;}
19026
19027   rm -f "$ac_tmp/stdin"
19028   case $ac_file in
19029   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19030   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19031   esac \
19032   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19033  ;;
19034
19035   :L)
19036   #
19037   # CONFIG_LINK
19038   #
19039
19040   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
19041     :
19042   else
19043     # Prefer the file from the source tree if names are identical.
19044     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19045       ac_source=$srcdir/$ac_source
19046     fi
19047
19048     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19049 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19050
19051     if test ! -r "$ac_source"; then
19052       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19053     fi
19054     rm -f "$ac_file"
19055
19056     # Try a relative symlink, then a hard link, then a copy.
19057     case $ac_source in
19058     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19059         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19060     esac
19061     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19062       ln "$ac_source" "$ac_file" 2>/dev/null ||
19063       cp -p "$ac_source" "$ac_file" ||
19064       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19065   fi
19066  ;;
19067   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19068 $as_echo "$as_me: executing $ac_file commands" >&6;}
19069  ;;
19070   esac
19071
19072
19073   case $ac_file$ac_mode in
19074     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19075   # Older Autoconf quotes --file arguments for eval, but not when files
19076   # are listed without --file.  Let's play safe and only enable the eval
19077   # if we detect the quoting.
19078   case $CONFIG_FILES in
19079   *\'*) eval set x "$CONFIG_FILES" ;;
19080   *)   set x $CONFIG_FILES ;;
19081   esac
19082   shift
19083   for mf
19084   do
19085     # Strip MF so we end up with the name of the file.
19086     mf=`echo "$mf" | sed -e 's/:.*$//'`
19087     # Check whether this is an Automake generated Makefile or not.
19088     # We used to match only the files named 'Makefile.in', but
19089     # some people rename them; so instead we look at the file content.
19090     # Grep'ing the first line is not enough: some people post-process
19091     # each Makefile.in and add a new line on top of each file to say so.
19092     # Grep'ing the whole file is not good either: AIX grep has a line
19093     # limit of 2048, but all sed's we know have understand at least 4000.
19094     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19095       dirpart=`$as_dirname -- "$mf" ||
19096 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19097          X"$mf" : 'X\(//\)[^/]' \| \
19098          X"$mf" : 'X\(//\)$' \| \
19099          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19100 $as_echo X"$mf" |
19101     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19102             s//\1/
19103             q
19104           }
19105           /^X\(\/\/\)[^/].*/{
19106             s//\1/
19107             q
19108           }
19109           /^X\(\/\/\)$/{
19110             s//\1/
19111             q
19112           }
19113           /^X\(\/\).*/{
19114             s//\1/
19115             q
19116           }
19117           s/.*/./; q'`
19118     else
19119       continue
19120     fi
19121     # Extract the definition of DEPDIR, am__include, and am__quote
19122     # from the Makefile without running 'make'.
19123     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19124     test -z "$DEPDIR" && continue
19125     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19126     test -z "$am__include" && continue
19127     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19128     # Find all dependency output files, they are included files with
19129     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19130     # simplest approach to changing $(DEPDIR) to its actual value in the
19131     # expansion.
19132     for file in `sed -n "
19133       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19134          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19135       # Make sure the directory exists.
19136       test -f "$dirpart/$file" && continue
19137       fdir=`$as_dirname -- "$file" ||
19138 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19139          X"$file" : 'X\(//\)[^/]' \| \
19140          X"$file" : 'X\(//\)$' \| \
19141          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19142 $as_echo X"$file" |
19143     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19144             s//\1/
19145             q
19146           }
19147           /^X\(\/\/\)[^/].*/{
19148             s//\1/
19149             q
19150           }
19151           /^X\(\/\/\)$/{
19152             s//\1/
19153             q
19154           }
19155           /^X\(\/\).*/{
19156             s//\1/
19157             q
19158           }
19159           s/.*/./; q'`
19160       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19161       # echo "creating $dirpart/$file"
19162       echo '# dummy' > "$dirpart/$file"
19163     done
19164   done
19165 }
19166  ;;
19167     "libtool":C)
19168
19169     # See if we are running on zsh, and set the options that allow our
19170     # commands through without removal of \ escapes.
19171     if test -n "${ZSH_VERSION+set}"; then
19172       setopt NO_GLOB_SUBST
19173     fi
19174
19175     cfgfile=${ofile}T
19176     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19177     $RM "$cfgfile"
19178
19179     cat <<_LT_EOF >> "$cfgfile"
19180 #! $SHELL
19181 # Generated automatically by $as_me ($PACKAGE) $VERSION
19182 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19183
19184 # Provide generalized library-building support services.
19185 # Written by Gordon Matzigkeit, 1996
19186
19187 # Copyright (C) 2014 Free Software Foundation, Inc.
19188 # This is free software; see the source for copying conditions.  There is NO
19189 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19190
19191 # GNU Libtool is free software; you can redistribute it and/or modify
19192 # it under the terms of the GNU General Public License as published by
19193 # the Free Software Foundation; either version 2 of of the License, or
19194 # (at your option) any later version.
19195 #
19196 # As a special exception to the GNU General Public License, if you
19197 # distribute this file as part of a program or library that is built
19198 # using GNU Libtool, you may include this file under the  same
19199 # distribution terms that you use for the rest of that program.
19200 #
19201 # GNU Libtool is distributed in the hope that it will be useful, but
19202 # WITHOUT ANY WARRANTY; without even the implied warranty of
19203 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19204 # GNU General Public License for more details.
19205 #
19206 # You should have received a copy of the GNU General Public License
19207 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19208
19209
19210 # The names of the tagged configurations supported by this script.
19211 available_tags='CXX '
19212
19213 # Configured defaults for sys_lib_dlsearch_path munging.
19214 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19215
19216 # ### BEGIN LIBTOOL CONFIG
19217
19218 # Which release of libtool.m4 was used?
19219 macro_version=$macro_version
19220 macro_revision=$macro_revision
19221
19222 # Assembler program.
19223 AS=$lt_AS
19224
19225 # DLL creation program.
19226 DLLTOOL=$lt_DLLTOOL
19227
19228 # Object dumper program.
19229 OBJDUMP=$lt_OBJDUMP
19230
19231 # Whether or not to build shared libraries.
19232 build_libtool_libs=$enable_shared
19233
19234 # Whether or not to build static libraries.
19235 build_old_libs=$enable_static
19236
19237 # What type of objects to build.
19238 pic_mode=$pic_mode
19239
19240 # Whether or not to optimize for fast installation.
19241 fast_install=$enable_fast_install
19242
19243 # Shared archive member basename,for filename based shared library versioning on AIX.
19244 shared_archive_member_spec=$shared_archive_member_spec
19245
19246 # Shell to use when invoking shell scripts.
19247 SHELL=$lt_SHELL
19248
19249 # An echo program that protects backslashes.
19250 ECHO=$lt_ECHO
19251
19252 # The PATH separator for the build system.
19253 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19254
19255 # The host system.
19256 host_alias=$host_alias
19257 host=$host
19258 host_os=$host_os
19259
19260 # The build system.
19261 build_alias=$build_alias
19262 build=$build
19263 build_os=$build_os
19264
19265 # A sed program that does not truncate output.
19266 SED=$lt_SED
19267
19268 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19269 Xsed="\$SED -e 1s/^X//"
19270
19271 # A grep program that handles long lines.
19272 GREP=$lt_GREP
19273
19274 # An ERE matcher.
19275 EGREP=$lt_EGREP
19276
19277 # A literal string matcher.
19278 FGREP=$lt_FGREP
19279
19280 # A BSD- or MS-compatible name lister.
19281 NM=$lt_NM
19282
19283 # Whether we need soft or hard links.
19284 LN_S=$lt_LN_S
19285
19286 # What is the maximum length of a command?
19287 max_cmd_len=$max_cmd_len
19288
19289 # Object file suffix (normally "o").
19290 objext=$ac_objext
19291
19292 # Executable file suffix (normally "").
19293 exeext=$exeext
19294
19295 # whether the shell understands "unset".
19296 lt_unset=$lt_unset
19297
19298 # turn spaces into newlines.
19299 SP2NL=$lt_lt_SP2NL
19300
19301 # turn newlines into spaces.
19302 NL2SP=$lt_lt_NL2SP
19303
19304 # convert \$build file names to \$host format.
19305 to_host_file_cmd=$lt_cv_to_host_file_cmd
19306
19307 # convert \$build files to toolchain format.
19308 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19309
19310 # Method to check whether dependent libraries are shared objects.
19311 deplibs_check_method=$lt_deplibs_check_method
19312
19313 # Command to use when deplibs_check_method = "file_magic".
19314 file_magic_cmd=$lt_file_magic_cmd
19315
19316 # How to find potential files when deplibs_check_method = "file_magic".
19317 file_magic_glob=$lt_file_magic_glob
19318
19319 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19320 want_nocaseglob=$lt_want_nocaseglob
19321
19322 # Command to associate shared and link libraries.
19323 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19324
19325 # The archiver.
19326 AR=$lt_AR
19327
19328 # Flags to create an archive.
19329 AR_FLAGS=$lt_AR_FLAGS
19330
19331 # How to feed a file listing to the archiver.
19332 archiver_list_spec=$lt_archiver_list_spec
19333
19334 # A symbol stripping program.
19335 STRIP=$lt_STRIP
19336
19337 # Commands used to install an old-style archive.
19338 RANLIB=$lt_RANLIB
19339 old_postinstall_cmds=$lt_old_postinstall_cmds
19340 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19341
19342 # Whether to use a lock for old archive extraction.
19343 lock_old_archive_extraction=$lock_old_archive_extraction
19344
19345 # A C compiler.
19346 LTCC=$lt_CC
19347
19348 # LTCC compiler flags.
19349 LTCFLAGS=$lt_CFLAGS
19350
19351 # Take the output of nm and produce a listing of raw symbols and C names.
19352 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19353
19354 # Transform the output of nm in a proper C declaration.
19355 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19356
19357 # Transform the output of nm into a list of symbols to manually relocate.
19358 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19359
19360 # Transform the output of nm in a C name address pair.
19361 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19362
19363 # Transform the output of nm in a C name address pair when lib prefix is needed.
19364 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19365
19366 # The name lister interface.
19367 nm_interface=$lt_lt_cv_nm_interface
19368
19369 # Specify filename containing input files for \$NM.
19370 nm_file_list_spec=$lt_nm_file_list_spec
19371
19372 # The root where to search for dependent libraries,and where our libraries should be installed.
19373 lt_sysroot=$lt_sysroot
19374
19375 # Command to truncate a binary pipe.
19376 lt_truncate_bin=$lt_lt_cv_truncate_bin
19377
19378 # The name of the directory that contains temporary libtool files.
19379 objdir=$objdir
19380
19381 # Used to examine libraries when file_magic_cmd begins with "file".
19382 MAGIC_CMD=$MAGIC_CMD
19383
19384 # Must we lock files when doing compilation?
19385 need_locks=$lt_need_locks
19386
19387 # Manifest tool.
19388 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19389
19390 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19391 DSYMUTIL=$lt_DSYMUTIL
19392
19393 # Tool to change global to local symbols on Mac OS X.
19394 NMEDIT=$lt_NMEDIT
19395
19396 # Tool to manipulate fat objects and archives on Mac OS X.
19397 LIPO=$lt_LIPO
19398
19399 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19400 OTOOL=$lt_OTOOL
19401
19402 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19403 OTOOL64=$lt_OTOOL64
19404
19405 # Old archive suffix (normally "a").
19406 libext=$libext
19407
19408 # Shared library suffix (normally ".so").
19409 shrext_cmds=$lt_shrext_cmds
19410
19411 # The commands to extract the exported symbol list from a shared archive.
19412 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19413
19414 # Variables whose values should be saved in libtool wrapper scripts and
19415 # restored at link time.
19416 variables_saved_for_relink=$lt_variables_saved_for_relink
19417
19418 # Do we need the "lib" prefix for modules?
19419 need_lib_prefix=$need_lib_prefix
19420
19421 # Do we need a version for libraries?
19422 need_version=$need_version
19423
19424 # Library versioning type.
19425 version_type=$version_type
19426
19427 # Shared library runtime path variable.
19428 runpath_var=$runpath_var
19429
19430 # Shared library path variable.
19431 shlibpath_var=$shlibpath_var
19432
19433 # Is shlibpath searched before the hard-coded library search path?
19434 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19435
19436 # Format of library name prefix.
19437 libname_spec=$lt_libname_spec
19438
19439 # List of archive names.  First name is the real one, the rest are links.
19440 # The last name is the one that the linker finds with -lNAME
19441 library_names_spec=$lt_library_names_spec
19442
19443 # The coded name of the library, if different from the real name.
19444 soname_spec=$lt_soname_spec
19445
19446 # Permission mode override for installation of shared libraries.
19447 install_override_mode=$lt_install_override_mode
19448
19449 # Command to use after installation of a shared archive.
19450 postinstall_cmds=$lt_postinstall_cmds
19451
19452 # Command to use after uninstallation of a shared archive.
19453 postuninstall_cmds=$lt_postuninstall_cmds
19454
19455 # Commands used to finish a libtool library installation in a directory.
19456 finish_cmds=$lt_finish_cmds
19457
19458 # As "finish_cmds", except a single script fragment to be evaled but
19459 # not shown.
19460 finish_eval=$lt_finish_eval
19461
19462 # Whether we should hardcode library paths into libraries.
19463 hardcode_into_libs=$hardcode_into_libs
19464
19465 # Compile-time system search path for libraries.
19466 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19467
19468 # Detected run-time system search path for libraries.
19469 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19470
19471 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19472 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19473
19474 # Whether dlopen is supported.
19475 dlopen_support=$enable_dlopen
19476
19477 # Whether dlopen of programs is supported.
19478 dlopen_self=$enable_dlopen_self
19479
19480 # Whether dlopen of statically linked programs is supported.
19481 dlopen_self_static=$enable_dlopen_self_static
19482
19483 # Commands to strip libraries.
19484 old_striplib=$lt_old_striplib
19485 striplib=$lt_striplib
19486
19487
19488 # The linker used to build libraries.
19489 LD=$lt_LD
19490
19491 # How to create reloadable object files.
19492 reload_flag=$lt_reload_flag
19493 reload_cmds=$lt_reload_cmds
19494
19495 # Commands used to build an old-style archive.
19496 old_archive_cmds=$lt_old_archive_cmds
19497
19498 # A language specific compiler.
19499 CC=$lt_compiler
19500
19501 # Is the compiler the GNU compiler?
19502 with_gcc=$GCC
19503
19504 # Compiler flag to turn off builtin functions.
19505 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19506
19507 # Additional compiler flags for building library objects.
19508 pic_flag=$lt_lt_prog_compiler_pic
19509
19510 # How to pass a linker flag through the compiler.
19511 wl=$lt_lt_prog_compiler_wl
19512
19513 # Compiler flag to prevent dynamic linking.
19514 link_static_flag=$lt_lt_prog_compiler_static
19515
19516 # Does compiler simultaneously support -c and -o options?
19517 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19518
19519 # Whether or not to add -lc for building shared libraries.
19520 build_libtool_need_lc=$archive_cmds_need_lc
19521
19522 # Whether or not to disallow shared libs when runtime libs are static.
19523 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19524
19525 # Compiler flag to allow reflexive dlopens.
19526 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19527
19528 # Compiler flag to generate shared objects directly from archives.
19529 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19530
19531 # Whether the compiler copes with passing no objects directly.
19532 compiler_needs_object=$lt_compiler_needs_object
19533
19534 # Create an old-style archive from a shared archive.
19535 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19536
19537 # Create a temporary old-style archive to link instead of a shared archive.
19538 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19539
19540 # Commands used to build a shared archive.
19541 archive_cmds=$lt_archive_cmds
19542 archive_expsym_cmds=$lt_archive_expsym_cmds
19543
19544 # Commands used to build a loadable module if different from building
19545 # a shared archive.
19546 module_cmds=$lt_module_cmds
19547 module_expsym_cmds=$lt_module_expsym_cmds
19548
19549 # Whether we are building with GNU ld or not.
19550 with_gnu_ld=$lt_with_gnu_ld
19551
19552 # Flag that allows shared libraries with undefined symbols to be built.
19553 allow_undefined_flag=$lt_allow_undefined_flag
19554
19555 # Flag that enforces no undefined symbols.
19556 no_undefined_flag=$lt_no_undefined_flag
19557
19558 # Flag to hardcode \$libdir into a binary during linking.
19559 # This must work even if \$libdir does not exist
19560 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19561
19562 # Whether we need a single "-rpath" flag with a separated argument.
19563 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19564
19565 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19566 # DIR into the resulting binary.
19567 hardcode_direct=$hardcode_direct
19568
19569 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19570 # DIR into the resulting binary and the resulting library dependency is
19571 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19572 # library is relocated.
19573 hardcode_direct_absolute=$hardcode_direct_absolute
19574
19575 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19576 # into the resulting binary.
19577 hardcode_minus_L=$hardcode_minus_L
19578
19579 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19580 # into the resulting binary.
19581 hardcode_shlibpath_var=$hardcode_shlibpath_var
19582
19583 # Set to "yes" if building a shared library automatically hardcodes DIR
19584 # into the library and all subsequent libraries and executables linked
19585 # against it.
19586 hardcode_automatic=$hardcode_automatic
19587
19588 # Set to yes if linker adds runtime paths of dependent libraries
19589 # to runtime path list.
19590 inherit_rpath=$inherit_rpath
19591
19592 # Whether libtool must link a program against all its dependency libraries.
19593 link_all_deplibs=$link_all_deplibs
19594
19595 # Set to "yes" if exported symbols are required.
19596 always_export_symbols=$always_export_symbols
19597
19598 # The commands to list exported symbols.
19599 export_symbols_cmds=$lt_export_symbols_cmds
19600
19601 # Symbols that should not be listed in the preloaded symbols.
19602 exclude_expsyms=$lt_exclude_expsyms
19603
19604 # Symbols that must always be exported.
19605 include_expsyms=$lt_include_expsyms
19606
19607 # Commands necessary for linking programs (against libraries) with templates.
19608 prelink_cmds=$lt_prelink_cmds
19609
19610 # Commands necessary for finishing linking programs.
19611 postlink_cmds=$lt_postlink_cmds
19612
19613 # Specify filename containing input files.
19614 file_list_spec=$lt_file_list_spec
19615
19616 # How to hardcode a shared library path into an executable.
19617 hardcode_action=$hardcode_action
19618
19619 # The directories searched by this compiler when creating a shared library.
19620 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19621
19622 # Dependencies to place before and after the objects being linked to
19623 # create a shared library.
19624 predep_objects=$lt_predep_objects
19625 postdep_objects=$lt_postdep_objects
19626 predeps=$lt_predeps
19627 postdeps=$lt_postdeps
19628
19629 # The library search path used internally by the compiler when linking
19630 # a shared library.
19631 compiler_lib_search_path=$lt_compiler_lib_search_path
19632
19633 # ### END LIBTOOL CONFIG
19634
19635 _LT_EOF
19636
19637     cat <<'_LT_EOF' >> "$cfgfile"
19638
19639 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19640
19641 # func_munge_path_list VARIABLE PATH
19642 # -----------------------------------
19643 # VARIABLE is name of variable containing _space_ separated list of
19644 # directories to be munged by the contents of PATH, which is string
19645 # having a format:
19646 # "DIR[:DIR]:"
19647 #       string "DIR[ DIR]" will be prepended to VARIABLE
19648 # ":DIR[:DIR]"
19649 #       string "DIR[ DIR]" will be appended to VARIABLE
19650 # "DIRP[:DIRP]::[DIRA:]DIRA"
19651 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19652 #       "DIRA[ DIRA]" will be appended to VARIABLE
19653 # "DIR[:DIR]"
19654 #       VARIABLE will be replaced by "DIR[ DIR]"
19655 func_munge_path_list ()
19656 {
19657     case x$2 in
19658     x)
19659         ;;
19660     *:)
19661         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19662         ;;
19663     x:*)
19664         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19665         ;;
19666     *::*)
19667         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19668         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19669         ;;
19670     *)
19671         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19672         ;;
19673     esac
19674 }
19675
19676
19677 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19678 func_cc_basename ()
19679 {
19680     for cc_temp in $*""; do
19681       case $cc_temp in
19682         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19683         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19684         \-*) ;;
19685         *) break;;
19686       esac
19687     done
19688     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19689 }
19690
19691
19692 # ### END FUNCTIONS SHARED WITH CONFIGURE
19693
19694 _LT_EOF
19695
19696   case $host_os in
19697   aix3*)
19698     cat <<\_LT_EOF >> "$cfgfile"
19699 # AIX sometimes has problems with the GCC collect2 program.  For some
19700 # reason, if we set the COLLECT_NAMES environment variable, the problems
19701 # vanish in a puff of smoke.
19702 if test set != "${COLLECT_NAMES+set}"; then
19703   COLLECT_NAMES=
19704   export COLLECT_NAMES
19705 fi
19706 _LT_EOF
19707     ;;
19708   esac
19709
19710
19711 ltmain=$ac_aux_dir/ltmain.sh
19712
19713
19714   # We use sed instead of cat because bash on DJGPP gets confused if
19715   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19716   # text mode, it properly converts lines to CR/LF.  This bash problem
19717   # is reportedly fixed, but why not run on old versions too?
19718   sed '$q' "$ltmain" >> "$cfgfile" \
19719      || (rm -f "$cfgfile"; exit 1)
19720
19721    mv -f "$cfgfile" "$ofile" ||
19722     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19723   chmod +x "$ofile"
19724
19725
19726     cat <<_LT_EOF >> "$ofile"
19727
19728 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19729
19730 # The linker used to build libraries.
19731 LD=$lt_LD_CXX
19732
19733 # How to create reloadable object files.
19734 reload_flag=$lt_reload_flag_CXX
19735 reload_cmds=$lt_reload_cmds_CXX
19736
19737 # Commands used to build an old-style archive.
19738 old_archive_cmds=$lt_old_archive_cmds_CXX
19739
19740 # A language specific compiler.
19741 CC=$lt_compiler_CXX
19742
19743 # Is the compiler the GNU compiler?
19744 with_gcc=$GCC_CXX
19745
19746 # Compiler flag to turn off builtin functions.
19747 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19748
19749 # Additional compiler flags for building library objects.
19750 pic_flag=$lt_lt_prog_compiler_pic_CXX
19751
19752 # How to pass a linker flag through the compiler.
19753 wl=$lt_lt_prog_compiler_wl_CXX
19754
19755 # Compiler flag to prevent dynamic linking.
19756 link_static_flag=$lt_lt_prog_compiler_static_CXX
19757
19758 # Does compiler simultaneously support -c and -o options?
19759 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19760
19761 # Whether or not to add -lc for building shared libraries.
19762 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19763
19764 # Whether or not to disallow shared libs when runtime libs are static.
19765 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19766
19767 # Compiler flag to allow reflexive dlopens.
19768 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19769
19770 # Compiler flag to generate shared objects directly from archives.
19771 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19772
19773 # Whether the compiler copes with passing no objects directly.
19774 compiler_needs_object=$lt_compiler_needs_object_CXX
19775
19776 # Create an old-style archive from a shared archive.
19777 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19778
19779 # Create a temporary old-style archive to link instead of a shared archive.
19780 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19781
19782 # Commands used to build a shared archive.
19783 archive_cmds=$lt_archive_cmds_CXX
19784 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19785
19786 # Commands used to build a loadable module if different from building
19787 # a shared archive.
19788 module_cmds=$lt_module_cmds_CXX
19789 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19790
19791 # Whether we are building with GNU ld or not.
19792 with_gnu_ld=$lt_with_gnu_ld_CXX
19793
19794 # Flag that allows shared libraries with undefined symbols to be built.
19795 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19796
19797 # Flag that enforces no undefined symbols.
19798 no_undefined_flag=$lt_no_undefined_flag_CXX
19799
19800 # Flag to hardcode \$libdir into a binary during linking.
19801 # This must work even if \$libdir does not exist
19802 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19803
19804 # Whether we need a single "-rpath" flag with a separated argument.
19805 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19806
19807 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19808 # DIR into the resulting binary.
19809 hardcode_direct=$hardcode_direct_CXX
19810
19811 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19812 # DIR into the resulting binary and the resulting library dependency is
19813 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19814 # library is relocated.
19815 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19816
19817 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19818 # into the resulting binary.
19819 hardcode_minus_L=$hardcode_minus_L_CXX
19820
19821 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19822 # into the resulting binary.
19823 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19824
19825 # Set to "yes" if building a shared library automatically hardcodes DIR
19826 # into the library and all subsequent libraries and executables linked
19827 # against it.
19828 hardcode_automatic=$hardcode_automatic_CXX
19829
19830 # Set to yes if linker adds runtime paths of dependent libraries
19831 # to runtime path list.
19832 inherit_rpath=$inherit_rpath_CXX
19833
19834 # Whether libtool must link a program against all its dependency libraries.
19835 link_all_deplibs=$link_all_deplibs_CXX
19836
19837 # Set to "yes" if exported symbols are required.
19838 always_export_symbols=$always_export_symbols_CXX
19839
19840 # The commands to list exported symbols.
19841 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19842
19843 # Symbols that should not be listed in the preloaded symbols.
19844 exclude_expsyms=$lt_exclude_expsyms_CXX
19845
19846 # Symbols that must always be exported.
19847 include_expsyms=$lt_include_expsyms_CXX
19848
19849 # Commands necessary for linking programs (against libraries) with templates.
19850 prelink_cmds=$lt_prelink_cmds_CXX
19851
19852 # Commands necessary for finishing linking programs.
19853 postlink_cmds=$lt_postlink_cmds_CXX
19854
19855 # Specify filename containing input files.
19856 file_list_spec=$lt_file_list_spec_CXX
19857
19858 # How to hardcode a shared library path into an executable.
19859 hardcode_action=$hardcode_action_CXX
19860
19861 # The directories searched by this compiler when creating a shared library.
19862 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19863
19864 # Dependencies to place before and after the objects being linked to
19865 # create a shared library.
19866 predep_objects=$lt_predep_objects_CXX
19867 postdep_objects=$lt_postdep_objects_CXX
19868 predeps=$lt_predeps_CXX
19869 postdeps=$lt_postdeps_CXX
19870
19871 # The library search path used internally by the compiler when linking
19872 # a shared library.
19873 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19874
19875 # ### END LIBTOOL TAG CONFIG: CXX
19876 _LT_EOF
19877
19878  ;;
19879
19880   esac
19881 done # for ac_tag
19882
19883
19884 as_fn_exit 0
19885 _ACEOF
19886 ac_clean_files=$ac_clean_files_save
19887
19888 test $ac_write_fail = 0 ||
19889   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19890
19891
19892 # configure is writing to config.log, and then calls config.status.
19893 # config.status does its own redirection, appending to config.log.
19894 # Unfortunately, on DOS this fails, as config.log is still kept open
19895 # by configure, so config.status won't be able to write to it; its
19896 # output is simply discarded.  So we exec the FD to /dev/null,
19897 # effectively closing config.log, so it can be properly (re)opened and
19898 # appended to by config.status.  When coming back to configure, we
19899 # need to make the FD available again.
19900 if test "$no_create" != yes; then
19901   ac_cs_success=:
19902   ac_config_status_args=
19903   test "$silent" = yes &&
19904     ac_config_status_args="$ac_config_status_args --quiet"
19905   exec 5>/dev/null
19906   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19907   exec 5>>config.log
19908   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19909   # would make configure fail if this is the last instruction.
19910   $ac_cs_success || as_fn_exit 1
19911 fi
19912 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19913   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19914 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19915 fi
19916