Commit ./configure and the rest of the autoconf stuff to git so that
[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 4.1.2.
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='4.1.2'
594 PACKAGE_STRING='RtAudio 4.1.2'
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 OTOOL64
648 OTOOL
649 LIPO
650 NMEDIT
651 DSYMUTIL
652 MANIFEST_TOOL
653 RANLIB
654 LN_S
655 NM
656 ac_ct_DUMPBIN
657 DUMPBIN
658 LD
659 FGREP
660 EGREP
661 GREP
662 SED
663 host_os
664 host_vendor
665 host_cpu
666 host
667 build_os
668 build_vendor
669 build_cpu
670 build
671 LIBTOOL
672 OBJDUMP
673 DLLTOOL
674 AS
675 ac_ct_AR
676 AR
677 am__fastdepCXX_FALSE
678 am__fastdepCXX_TRUE
679 CXXDEPMODE
680 ac_ct_CXX
681 CXXFLAGS
682 CXX
683 PKG_CONFIG_LIBDIR
684 PKG_CONFIG_PATH
685 PKG_CONFIG
686 GXX
687 MAINT
688 MAINTAINER_MODE_FALSE
689 MAINTAINER_MODE_TRUE
690 am__fastdepCC_FALSE
691 am__fastdepCC_TRUE
692 CCDEPMODE
693 am__nodep
694 AMDEPBACKSLASH
695 AMDEP_FALSE
696 AMDEP_TRUE
697 am__quote
698 am__include
699 DEPDIR
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
706 CC
707 SO_VERSION
708 AM_BACKSLASH
709 AM_DEFAULT_VERBOSITY
710 AM_DEFAULT_V
711 AM_V
712 am__untar
713 am__tar
714 AMTAR
715 am__leading_dot
716 SET_MAKE
717 AWK
718 mkdir_p
719 MKDIR_P
720 INSTALL_STRIP_PROGRAM
721 STRIP
722 install_sh
723 MAKEINFO
724 AUTOHEADER
725 AUTOMAKE
726 AUTOCONF
727 ACLOCAL
728 VERSION
729 PACKAGE
730 CYGPATH_W
731 am__isrc
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 target_alias
736 host_alias
737 build_alias
738 LIBS
739 ECHO_T
740 ECHO_N
741 ECHO_C
742 DEFS
743 mandir
744 localedir
745 libdir
746 psdir
747 pdfdir
748 dvidir
749 htmldir
750 infodir
751 docdir
752 oldincludedir
753 includedir
754 localstatedir
755 sharedstatedir
756 sysconfdir
757 datadir
758 datarootdir
759 libexecdir
760 sbindir
761 bindir
762 program_transform_name
763 prefix
764 exec_prefix
765 PACKAGE_URL
766 PACKAGE_BUGREPORT
767 PACKAGE_STRING
768 PACKAGE_VERSION
769 PACKAGE_TARNAME
770 PACKAGE_NAME
771 PATH_SEPARATOR
772 SHELL'
773 ac_subst_files=''
774 ac_user_opts='
775 enable_option_checking
776 enable_silent_rules
777 enable_dependency_tracking
778 enable_maintainer_mode
779 enable_debug
780 enable_shared
781 enable_static
782 with_pic
783 enable_fast_install
784 with_gnu_ld
785 with_sysroot
786 enable_libtool_lock
787 with_jack
788 with_alsa
789 with_pulse
790 with_oss
791 with_core
792 with_asio
793 with_ds
794 with_wasapi
795 '
796       ac_precious_vars='build_alias
797 host_alias
798 target_alias
799 CC
800 CFLAGS
801 LDFLAGS
802 LIBS
803 CPPFLAGS
804 PKG_CONFIG
805 PKG_CONFIG_PATH
806 PKG_CONFIG_LIBDIR
807 CXX
808 CXXFLAGS
809 CCC
810 CPP
811 CXXCPP'
812
813
814 # Initialize some variables set by options.
815 ac_init_help=
816 ac_init_version=false
817 ac_unrecognized_opts=
818 ac_unrecognized_sep=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
821 cache_file=/dev/null
822 exec_prefix=NONE
823 no_create=
824 no_recursion=
825 prefix=NONE
826 program_prefix=NONE
827 program_suffix=NONE
828 program_transform_name=s,x,x,
829 silent=
830 site=
831 srcdir=
832 verbose=
833 x_includes=NONE
834 x_libraries=NONE
835
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
854 htmldir='${docdir}'
855 dvidir='${docdir}'
856 pdfdir='${docdir}'
857 psdir='${docdir}'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
861
862 ac_prev=
863 ac_dashdash=
864 for ac_option
865 do
866   # If the previous option needs an argument, assign it.
867   if test -n "$ac_prev"; then
868     eval $ac_prev=\$ac_option
869     ac_prev=
870     continue
871   fi
872
873   case $ac_option in
874   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875   *=)   ac_optarg= ;;
876   *)    ac_optarg=yes ;;
877   esac
878
879   # Accept the important Cygnus configure options, so we can diagnose typos.
880
881   case $ac_dashdash$ac_option in
882   --)
883     ac_dashdash=yes ;;
884
885   -bindir | --bindir | --bindi | --bind | --bin | --bi)
886     ac_prev=bindir ;;
887   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888     bindir=$ac_optarg ;;
889
890   -build | --build | --buil | --bui | --bu)
891     ac_prev=build_alias ;;
892   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893     build_alias=$ac_optarg ;;
894
895   -cache-file | --cache-file | --cache-fil | --cache-fi \
896   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897     ac_prev=cache_file ;;
898   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900     cache_file=$ac_optarg ;;
901
902   --config-cache | -C)
903     cache_file=config.cache ;;
904
905   -datadir | --datadir | --datadi | --datad)
906     ac_prev=datadir ;;
907   -datadir=* | --datadir=* | --datadi=* | --datad=*)
908     datadir=$ac_optarg ;;
909
910   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911   | --dataroo | --dataro | --datar)
912     ac_prev=datarootdir ;;
913   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915     datarootdir=$ac_optarg ;;
916
917   -disable-* | --disable-*)
918     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919     # Reject names that are not valid shell variable names.
920     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921       as_fn_error $? "invalid feature name: $ac_useropt"
922     ac_useropt_orig=$ac_useropt
923     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924     case $ac_user_opts in
925       *"
926 "enable_$ac_useropt"
927 "*) ;;
928       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929          ac_unrecognized_sep=', ';;
930     esac
931     eval enable_$ac_useropt=no ;;
932
933   -docdir | --docdir | --docdi | --doc | --do)
934     ac_prev=docdir ;;
935   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936     docdir=$ac_optarg ;;
937
938   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939     ac_prev=dvidir ;;
940   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941     dvidir=$ac_optarg ;;
942
943   -enable-* | --enable-*)
944     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945     # Reject names that are not valid shell variable names.
946     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947       as_fn_error $? "invalid feature name: $ac_useropt"
948     ac_useropt_orig=$ac_useropt
949     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950     case $ac_user_opts in
951       *"
952 "enable_$ac_useropt"
953 "*) ;;
954       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955          ac_unrecognized_sep=', ';;
956     esac
957     eval enable_$ac_useropt=\$ac_optarg ;;
958
959   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961   | --exec | --exe | --ex)
962     ac_prev=exec_prefix ;;
963   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965   | --exec=* | --exe=* | --ex=*)
966     exec_prefix=$ac_optarg ;;
967
968   -gas | --gas | --ga | --g)
969     # Obsolete; use --with-gas.
970     with_gas=yes ;;
971
972   -help | --help | --hel | --he | -h)
973     ac_init_help=long ;;
974   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975     ac_init_help=recursive ;;
976   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977     ac_init_help=short ;;
978
979   -host | --host | --hos | --ho)
980     ac_prev=host_alias ;;
981   -host=* | --host=* | --hos=* | --ho=*)
982     host_alias=$ac_optarg ;;
983
984   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985     ac_prev=htmldir ;;
986   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987   | --ht=*)
988     htmldir=$ac_optarg ;;
989
990   -includedir | --includedir | --includedi | --included | --include \
991   | --includ | --inclu | --incl | --inc)
992     ac_prev=includedir ;;
993   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994   | --includ=* | --inclu=* | --incl=* | --inc=*)
995     includedir=$ac_optarg ;;
996
997   -infodir | --infodir | --infodi | --infod | --info | --inf)
998     ac_prev=infodir ;;
999   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000     infodir=$ac_optarg ;;
1001
1002   -libdir | --libdir | --libdi | --libd)
1003     ac_prev=libdir ;;
1004   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005     libdir=$ac_optarg ;;
1006
1007   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008   | --libexe | --libex | --libe)
1009     ac_prev=libexecdir ;;
1010   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011   | --libexe=* | --libex=* | --libe=*)
1012     libexecdir=$ac_optarg ;;
1013
1014   -localedir | --localedir | --localedi | --localed | --locale)
1015     ac_prev=localedir ;;
1016   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017     localedir=$ac_optarg ;;
1018
1019   -localstatedir | --localstatedir | --localstatedi | --localstated \
1020   | --localstate | --localstat | --localsta | --localst | --locals)
1021     ac_prev=localstatedir ;;
1022   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024     localstatedir=$ac_optarg ;;
1025
1026   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027     ac_prev=mandir ;;
1028   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029     mandir=$ac_optarg ;;
1030
1031   -nfp | --nfp | --nf)
1032     # Obsolete; use --without-fp.
1033     with_fp=no ;;
1034
1035   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036   | --no-cr | --no-c | -n)
1037     no_create=yes ;;
1038
1039   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041     no_recursion=yes ;;
1042
1043   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045   | --oldin | --oldi | --old | --ol | --o)
1046     ac_prev=oldincludedir ;;
1047   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050     oldincludedir=$ac_optarg ;;
1051
1052   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053     ac_prev=prefix ;;
1054   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055     prefix=$ac_optarg ;;
1056
1057   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058   | --program-pre | --program-pr | --program-p)
1059     ac_prev=program_prefix ;;
1060   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062     program_prefix=$ac_optarg ;;
1063
1064   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065   | --program-suf | --program-su | --program-s)
1066     ac_prev=program_suffix ;;
1067   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069     program_suffix=$ac_optarg ;;
1070
1071   -program-transform-name | --program-transform-name \
1072   | --program-transform-nam | --program-transform-na \
1073   | --program-transform-n | --program-transform- \
1074   | --program-transform | --program-transfor \
1075   | --program-transfo | --program-transf \
1076   | --program-trans | --program-tran \
1077   | --progr-tra | --program-tr | --program-t)
1078     ac_prev=program_transform_name ;;
1079   -program-transform-name=* | --program-transform-name=* \
1080   | --program-transform-nam=* | --program-transform-na=* \
1081   | --program-transform-n=* | --program-transform-=* \
1082   | --program-transform=* | --program-transfor=* \
1083   | --program-transfo=* | --program-transf=* \
1084   | --program-trans=* | --program-tran=* \
1085   | --progr-tra=* | --program-tr=* | --program-t=*)
1086     program_transform_name=$ac_optarg ;;
1087
1088   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089     ac_prev=pdfdir ;;
1090   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091     pdfdir=$ac_optarg ;;
1092
1093   -psdir | --psdir | --psdi | --psd | --ps)
1094     ac_prev=psdir ;;
1095   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096     psdir=$ac_optarg ;;
1097
1098   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099   | -silent | --silent | --silen | --sile | --sil)
1100     silent=yes ;;
1101
1102   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103     ac_prev=sbindir ;;
1104   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105   | --sbi=* | --sb=*)
1106     sbindir=$ac_optarg ;;
1107
1108   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110   | --sharedst | --shareds | --shared | --share | --shar \
1111   | --sha | --sh)
1112     ac_prev=sharedstatedir ;;
1113   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116   | --sha=* | --sh=*)
1117     sharedstatedir=$ac_optarg ;;
1118
1119   -site | --site | --sit)
1120     ac_prev=site ;;
1121   -site=* | --site=* | --sit=*)
1122     site=$ac_optarg ;;
1123
1124   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125     ac_prev=srcdir ;;
1126   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127     srcdir=$ac_optarg ;;
1128
1129   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130   | --syscon | --sysco | --sysc | --sys | --sy)
1131     ac_prev=sysconfdir ;;
1132   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134     sysconfdir=$ac_optarg ;;
1135
1136   -target | --target | --targe | --targ | --tar | --ta | --t)
1137     ac_prev=target_alias ;;
1138   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139     target_alias=$ac_optarg ;;
1140
1141   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142     verbose=yes ;;
1143
1144   -version | --version | --versio | --versi | --vers | -V)
1145     ac_init_version=: ;;
1146
1147   -with-* | --with-*)
1148     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151       as_fn_error $? "invalid package name: $ac_useropt"
1152     ac_useropt_orig=$ac_useropt
1153     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154     case $ac_user_opts in
1155       *"
1156 "with_$ac_useropt"
1157 "*) ;;
1158       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159          ac_unrecognized_sep=', ';;
1160     esac
1161     eval with_$ac_useropt=\$ac_optarg ;;
1162
1163   -without-* | --without-*)
1164     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165     # Reject names that are not valid shell variable names.
1166     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167       as_fn_error $? "invalid package name: $ac_useropt"
1168     ac_useropt_orig=$ac_useropt
1169     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170     case $ac_user_opts in
1171       *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175          ac_unrecognized_sep=', ';;
1176     esac
1177     eval with_$ac_useropt=no ;;
1178
1179   --x)
1180     # Obsolete; use --with-x.
1181     with_x=yes ;;
1182
1183   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184   | --x-incl | --x-inc | --x-in | --x-i)
1185     ac_prev=x_includes ;;
1186   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188     x_includes=$ac_optarg ;;
1189
1190   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192     ac_prev=x_libraries ;;
1193   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195     x_libraries=$ac_optarg ;;
1196
1197   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1198 Try \`$0 --help' for more information"
1199     ;;
1200
1201   *=*)
1202     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203     # Reject names that are not valid shell variable names.
1204     case $ac_envvar in #(
1205       '' | [0-9]* | *[!_$as_cr_alnum]* )
1206       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207     esac
1208     eval $ac_envvar=\$ac_optarg
1209     export $ac_envvar ;;
1210
1211   *)
1212     # FIXME: should be removed in autoconf 3.0.
1213     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1214     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1216     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217     ;;
1218
1219   esac
1220 done
1221
1222 if test -n "$ac_prev"; then
1223   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224   as_fn_error $? "missing argument to $ac_option"
1225 fi
1226
1227 if test -n "$ac_unrecognized_opts"; then
1228   case $enable_option_checking in
1229     no) ;;
1230     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232   esac
1233 fi
1234
1235 # Check all directory arguments for consistency.
1236 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237                 datadir sysconfdir sharedstatedir localstatedir includedir \
1238                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239                 libdir localedir mandir
1240 do
1241   eval ac_val=\$$ac_var
1242   # Remove trailing slashes.
1243   case $ac_val in
1244     */ )
1245       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246       eval $ac_var=\$ac_val;;
1247   esac
1248   # Be sure to have absolute directory names.
1249   case $ac_val in
1250     [\\/$]* | ?:[\\/]* )  continue;;
1251     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252   esac
1253   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254 done
1255
1256 # There might be people who depend on the old broken behavior: `$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1259 build=$build_alias
1260 host=$host_alias
1261 target=$target_alias
1262
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265   if test "x$build_alias" = x; then
1266     cross_compiling=maybe
1267   elif test "x$build_alias" != "x$host_alias"; then
1268     cross_compiling=yes
1269   fi
1270 fi
1271
1272 ac_tool_prefix=
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275 test "$silent" = yes && exec 6>/dev/null
1276
1277
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281   as_fn_error $? "working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283   as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288   ac_srcdir_defaulted=yes
1289   # Try the directory containing this script, then the parent directory.
1290   ac_confdir=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292          X"$as_myself" : 'X\(//\)[^/]' \| \
1293          X"$as_myself" : 'X\(//\)$' \| \
1294          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 $as_echo X"$as_myself" |
1296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297             s//\1/
1298             q
1299           }
1300           /^X\(\/\/\)[^/].*/{
1301             s//\1/
1302             q
1303           }
1304           /^X\(\/\/\)$/{
1305             s//\1/
1306             q
1307           }
1308           /^X\(\/\).*/{
1309             s//\1/
1310             q
1311           }
1312           s/.*/./; q'`
1313   srcdir=$ac_confdir
1314   if test ! -r "$srcdir/$ac_unique_file"; then
1315     srcdir=..
1316   fi
1317 else
1318   ac_srcdir_defaulted=no
1319 fi
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323 fi
1324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325 ac_abs_confdir=`(
1326         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327         pwd)`
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330   srcdir=.
1331 fi
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1335 case $srcdir in
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 esac
1338 for ac_var in $ac_precious_vars; do
1339   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340   eval ac_env_${ac_var}_value=\$${ac_var}
1341   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343 done
1344
1345 #
1346 # Report the --help message.
1347 #
1348 if test "$ac_init_help" = "long"; then
1349   # Omit some internal or obsolete options to make the list less imposing.
1350   # This message is too long to be a string in the A/UX 3.1 sh.
1351   cat <<_ACEOF
1352 \`configure' configures RtAudio 4.1.2 to adapt to many kinds of systems.
1353
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE.  See below for descriptions of some of the useful variables.
1358
1359 Defaults for the options are specified in brackets.
1360
1361 Configuration:
1362   -h, --help              display this help and exit
1363       --help=short        display options specific to this package
1364       --help=recursive    display the short help of all the included packages
1365   -V, --version           display version information and exit
1366   -q, --quiet, --silent   do not print \`checking ...' messages
1367       --cache-file=FILE   cache test results in FILE [disabled]
1368   -C, --config-cache      alias for \`--cache-file=config.cache'
1369   -n, --no-create         do not create output files
1370       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1371
1372 Installation directories:
1373   --prefix=PREFIX         install architecture-independent files in PREFIX
1374                           [$ac_default_prefix]
1375   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1376                           [PREFIX]
1377
1378 By default, \`make install' will install all the files in
1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381 for instance \`--prefix=\$HOME'.
1382
1383 For better control, use the options below.
1384
1385 Fine tuning of the installation directories:
1386   --bindir=DIR            user executables [EPREFIX/bin]
1387   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1388   --libexecdir=DIR        program executables [EPREFIX/libexec]
1389   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1390   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1391   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1392   --libdir=DIR            object code libraries [EPREFIX/lib]
1393   --includedir=DIR        C header files [PREFIX/include]
1394   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1395   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1396   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1397   --infodir=DIR           info documentation [DATAROOTDIR/info]
1398   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1399   --mandir=DIR            man documentation [DATAROOTDIR/man]
1400   --docdir=DIR            documentation root [DATAROOTDIR/doc/rtaudio]
1401   --htmldir=DIR           html documentation [DOCDIR]
1402   --dvidir=DIR            dvi documentation [DOCDIR]
1403   --pdfdir=DIR            pdf documentation [DOCDIR]
1404   --psdir=DIR             ps documentation [DOCDIR]
1405 _ACEOF
1406
1407   cat <<\_ACEOF
1408
1409 Program names:
1410   --program-prefix=PREFIX            prepend PREFIX to installed program names
1411   --program-suffix=SUFFIX            append SUFFIX to installed program names
1412   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1413
1414 System types:
1415   --build=BUILD     configure for building on BUILD [guessed]
1416   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1417 _ACEOF
1418 fi
1419
1420 if test -n "$ac_init_help"; then
1421   case $ac_init_help in
1422      short | recursive ) echo "Configuration of RtAudio 4.1.2:";;
1423    esac
1424   cat <<\_ACEOF
1425
1426 Optional Features:
1427   --disable-option-checking  ignore unrecognized --enable/--with options
1428   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1429   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1430   --enable-silent-rules   less verbose build output (undo: "make V=1")
1431   --disable-silent-rules  verbose build output (undo: "make V=0")
1432   --enable-dependency-tracking
1433                           do not reject slow dependency extractors
1434   --disable-dependency-tracking
1435                           speeds up one-time build
1436   --enable-maintainer-mode
1437                           enable make rules and dependencies not useful (and
1438                           sometimes confusing) to the casual installer
1439   --enable-debug          enable various debug output
1440   --enable-shared[=PKGS]  build shared libraries [default=yes]
1441   --enable-static[=PKGS]  build static libraries [default=yes]
1442   --enable-fast-install[=PKGS]
1443                           optimize for fast installation [default=yes]
1444   --disable-libtool-lock  avoid locking (might break parallel builds)
1445
1446 Optional Packages:
1447   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1448   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1449   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1450                           both]
1451   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1452   --with-sysroot=DIR Search for dependent libraries within DIR
1453                         (or the compiler's sysroot if not specified).
1454   --with-jack = choose JACK server support (mac and linux only)
1455   --with-alsa = choose native ALSA API support (linux only)
1456   --with-pulse = choose PulseAudio API support (linux only)
1457   --with-oss = choose OSS API support (linux only)
1458   --with-jack = choose JACK server support (unix only)
1459   --with-core = choose CoreAudio API support (mac only)
1460   --with-asio = choose ASIO API support (windoze only)
1461   --with-ds = choose DirectSound API support (windoze only)
1462   --with-wasapi = choose Windows Audio Session API support (windoze only)
1463
1464 Some influential environment variables:
1465   CC          C compiler command
1466   CFLAGS      C compiler flags
1467   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1468               nonstandard directory <lib dir>
1469   LIBS        libraries to pass to the linker, e.g. -l<library>
1470   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471               you have headers in a nonstandard directory <include dir>
1472   PKG_CONFIG  path to pkg-config utility
1473   PKG_CONFIG_PATH
1474               directories to add to pkg-config's search path
1475   PKG_CONFIG_LIBDIR
1476               path overriding pkg-config's built-in search path
1477   CXX         C++ compiler command
1478   CXXFLAGS    C++ compiler flags
1479   CPP         C preprocessor
1480   CXXCPP      C++ preprocessor
1481
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1484
1485 Report bugs to <gary@music.mcgill.ca>.
1486 _ACEOF
1487 ac_status=$?
1488 fi
1489
1490 if test "$ac_init_help" = "recursive"; then
1491   # If there are subdirs, report their specific --help.
1492   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493     test -d "$ac_dir" ||
1494       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495       continue
1496     ac_builddir=.
1497
1498 case "$ac_dir" in
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *)
1501   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502   # A ".." for each directory in $ac_dir_suffix.
1503   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504   case $ac_top_builddir_sub in
1505   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507   esac ;;
1508 esac
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1513
1514 case $srcdir in
1515   .)  # We are building in place.
1516     ac_srcdir=.
1517     ac_top_srcdir=$ac_top_builddir_sub
1518     ac_abs_top_srcdir=$ac_pwd ;;
1519   [\\/]* | ?:[\\/]* )  # Absolute name.
1520     ac_srcdir=$srcdir$ac_dir_suffix;
1521     ac_top_srcdir=$srcdir
1522     ac_abs_top_srcdir=$srcdir ;;
1523   *) # Relative name.
1524     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525     ac_top_srcdir=$ac_top_build_prefix$srcdir
1526     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527 esac
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529
1530     cd "$ac_dir" || { ac_status=$?; continue; }
1531     # Check for guested configure.
1532     if test -f "$ac_srcdir/configure.gnu"; then
1533       echo &&
1534       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535     elif test -f "$ac_srcdir/configure"; then
1536       echo &&
1537       $SHELL "$ac_srcdir/configure" --help=recursive
1538     else
1539       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540     fi || ac_status=$?
1541     cd "$ac_pwd" || { ac_status=$?; break; }
1542   done
1543 fi
1544
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1547   cat <<\_ACEOF
1548 RtAudio configure 4.1.2
1549 generated by GNU Autoconf 2.69
1550
1551 Copyright (C) 2012 Free Software Foundation, Inc.
1552 This configure script is free software; the Free Software Foundation
1553 gives unlimited permission to copy, distribute and modify it.
1554 _ACEOF
1555   exit
1556 fi
1557
1558 ## ------------------------ ##
1559 ## Autoconf initialization. ##
1560 ## ------------------------ ##
1561
1562 # ac_fn_c_try_compile LINENO
1563 # --------------------------
1564 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_compile ()
1566 {
1567   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568   rm -f conftest.$ac_objext
1569   if { { ac_try="$ac_compile"
1570 case "(($ac_try" in
1571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572   *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576   (eval "$ac_compile") 2>conftest.err
1577   ac_status=$?
1578   if test -s conftest.err; then
1579     grep -v '^ *+' conftest.err >conftest.er1
1580     cat conftest.er1 >&5
1581     mv -f conftest.er1 conftest.err
1582   fi
1583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584   test $ac_status = 0; } && {
1585          test -z "$ac_c_werror_flag" ||
1586          test ! -s conftest.err
1587        } && test -s conftest.$ac_objext; then :
1588   ac_retval=0
1589 else
1590   $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1592
1593         ac_retval=1
1594 fi
1595   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596   as_fn_set_status $ac_retval
1597
1598 } # ac_fn_c_try_compile
1599
1600 # ac_fn_c_try_run LINENO
1601 # ----------------------
1602 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1603 # that executables *can* be run.
1604 ac_fn_c_try_run ()
1605 {
1606   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607   if { { ac_try="$ac_link"
1608 case "(($ac_try" in
1609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610   *) ac_try_echo=$ac_try;;
1611 esac
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614   (eval "$ac_link") 2>&5
1615   ac_status=$?
1616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1618   { { case "(($ac_try" in
1619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620   *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624   (eval "$ac_try") 2>&5
1625   ac_status=$?
1626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627   test $ac_status = 0; }; }; then :
1628   ac_retval=0
1629 else
1630   $as_echo "$as_me: program exited with status $ac_status" >&5
1631        $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1633
1634        ac_retval=$ac_status
1635 fi
1636   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638   as_fn_set_status $ac_retval
1639
1640 } # ac_fn_c_try_run
1641
1642 # ac_fn_cxx_try_compile LINENO
1643 # ----------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_cxx_try_compile ()
1646 {
1647   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648   rm -f conftest.$ac_objext
1649   if { { ac_try="$ac_compile"
1650 case "(($ac_try" in
1651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652   *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656   (eval "$ac_compile") 2>conftest.err
1657   ac_status=$?
1658   if test -s conftest.err; then
1659     grep -v '^ *+' conftest.err >conftest.er1
1660     cat conftest.er1 >&5
1661     mv -f conftest.er1 conftest.err
1662   fi
1663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664   test $ac_status = 0; } && {
1665          test -z "$ac_cxx_werror_flag" ||
1666          test ! -s conftest.err
1667        } && test -s conftest.$ac_objext; then :
1668   ac_retval=0
1669 else
1670   $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673         ac_retval=1
1674 fi
1675   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676   as_fn_set_status $ac_retval
1677
1678 } # ac_fn_cxx_try_compile
1679
1680 # ac_fn_c_try_link LINENO
1681 # -----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_link ()
1684 {
1685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686   rm -f conftest.$ac_objext conftest$ac_exeext
1687   if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690   *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694   (eval "$ac_link") 2>conftest.err
1695   ac_status=$?
1696   if test -s conftest.err; then
1697     grep -v '^ *+' conftest.err >conftest.er1
1698     cat conftest.er1 >&5
1699     mv -f conftest.er1 conftest.err
1700   fi
1701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702   test $ac_status = 0; } && {
1703          test -z "$ac_c_werror_flag" ||
1704          test ! -s conftest.err
1705        } && test -s conftest$ac_exeext && {
1706          test "$cross_compiling" = yes ||
1707          test -x conftest$ac_exeext
1708        }; then :
1709   ac_retval=0
1710 else
1711   $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714         ac_retval=1
1715 fi
1716   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718   # interfere with the next link command; also delete a directory that is
1719   # left behind by Apple's compiler.  We do this before executing the actions.
1720   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722   as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_link
1725
1726 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1727 # -------------------------------------------------------
1728 # Tests whether HEADER exists and can be compiled using the include files in
1729 # INCLUDES, setting the cache variable VAR accordingly.
1730 ac_fn_c_check_header_compile ()
1731 {
1732   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736   $as_echo_n "(cached) " >&6
1737 else
1738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h.  */
1740 $4
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_compile "$LINENO"; then :
1744   eval "$3=yes"
1745 else
1746   eval "$3=no"
1747 fi
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749 fi
1750 eval ac_res=\$$3
1751                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754
1755 } # ac_fn_c_check_header_compile
1756
1757 # ac_fn_c_try_cpp LINENO
1758 # ----------------------
1759 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_c_try_cpp ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   if { { ac_try="$ac_cpp conftest.$ac_ext"
1764 case "(($ac_try" in
1765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766   *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1771   ac_status=$?
1772   if test -s conftest.err; then
1773     grep -v '^ *+' conftest.err >conftest.er1
1774     cat conftest.er1 >&5
1775     mv -f conftest.er1 conftest.err
1776   fi
1777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778   test $ac_status = 0; } > conftest.i && {
1779          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1780          test ! -s conftest.err
1781        }; then :
1782   ac_retval=0
1783 else
1784   $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1786
1787     ac_retval=1
1788 fi
1789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790   as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_cpp
1793
1794 # ac_fn_c_check_func LINENO FUNC VAR
1795 # ----------------------------------
1796 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1797 ac_fn_c_check_func ()
1798 {
1799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803   $as_echo_n "(cached) " >&6
1804 else
1805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h.  */
1807 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1809 #define $2 innocuous_$2
1810
1811 /* System header to define __stub macros and hopefully few prototypes,
1812     which can conflict with char $2 (); below.
1813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814     <limits.h> exists even on freestanding compilers.  */
1815
1816 #ifdef __STDC__
1817 # include <limits.h>
1818 #else
1819 # include <assert.h>
1820 #endif
1821
1822 #undef $2
1823
1824 /* Override any GCC internal prototype to avoid an error.
1825    Use char because int might match the return type of a GCC
1826    builtin and then its argument prototype would still apply.  */
1827 #ifdef __cplusplus
1828 extern "C"
1829 #endif
1830 char $2 ();
1831 /* The GNU C library defines this for functions which it implements
1832     to always fail with ENOSYS.  Some functions are actually named
1833     something starting with __ and the normal name is an alias.  */
1834 #if defined __stub_$2 || defined __stub___$2
1835 choke me
1836 #endif
1837
1838 int
1839 main ()
1840 {
1841 return $2 ();
1842   ;
1843   return 0;
1844 }
1845 _ACEOF
1846 if ac_fn_c_try_link "$LINENO"; then :
1847   eval "$3=yes"
1848 else
1849   eval "$3=no"
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext \
1852     conftest$ac_exeext conftest.$ac_ext
1853 fi
1854 eval ac_res=\$$3
1855                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859 } # ac_fn_c_check_func
1860
1861 # ac_fn_cxx_try_cpp LINENO
1862 # ------------------------
1863 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_cxx_try_cpp ()
1865 {
1866   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867   if { { ac_try="$ac_cpp conftest.$ac_ext"
1868 case "(($ac_try" in
1869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870   *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1875   ac_status=$?
1876   if test -s conftest.err; then
1877     grep -v '^ *+' conftest.err >conftest.er1
1878     cat conftest.er1 >&5
1879     mv -f conftest.er1 conftest.err
1880   fi
1881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882   test $ac_status = 0; } > conftest.i && {
1883          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1884          test ! -s conftest.err
1885        }; then :
1886   ac_retval=0
1887 else
1888   $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1890
1891     ac_retval=1
1892 fi
1893   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894   as_fn_set_status $ac_retval
1895
1896 } # ac_fn_cxx_try_cpp
1897
1898 # ac_fn_cxx_try_link LINENO
1899 # -------------------------
1900 # Try to link conftest.$ac_ext, and return whether this succeeded.
1901 ac_fn_cxx_try_link ()
1902 {
1903   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904   rm -f conftest.$ac_objext conftest$ac_exeext
1905   if { { ac_try="$ac_link"
1906 case "(($ac_try" in
1907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908   *) ac_try_echo=$ac_try;;
1909 esac
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 $as_echo "$ac_try_echo"; } >&5
1912   (eval "$ac_link") 2>conftest.err
1913   ac_status=$?
1914   if test -s conftest.err; then
1915     grep -v '^ *+' conftest.err >conftest.er1
1916     cat conftest.er1 >&5
1917     mv -f conftest.er1 conftest.err
1918   fi
1919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920   test $ac_status = 0; } && {
1921          test -z "$ac_cxx_werror_flag" ||
1922          test ! -s conftest.err
1923        } && test -s conftest$ac_exeext && {
1924          test "$cross_compiling" = yes ||
1925          test -x conftest$ac_exeext
1926        }; then :
1927   ac_retval=0
1928 else
1929   $as_echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1931
1932         ac_retval=1
1933 fi
1934   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1935   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1936   # interfere with the next link command; also delete a directory that is
1937   # left behind by Apple's compiler.  We do this before executing the actions.
1938   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1939   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940   as_fn_set_status $ac_retval
1941
1942 } # ac_fn_cxx_try_link
1943
1944 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1945 # -------------------------------------------------------
1946 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1947 # the include files in INCLUDES and setting the cache variable VAR
1948 # accordingly.
1949 ac_fn_c_check_header_mongrel ()
1950 {
1951   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952   if eval \${$3+:} false; then :
1953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956   $as_echo_n "(cached) " >&6
1957 fi
1958 eval ac_res=\$$3
1959                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1961 else
1962   # Is the header compilable?
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1964 $as_echo_n "checking $2 usability... " >&6; }
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h.  */
1967 $4
1968 #include <$2>
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971   ac_header_compiler=yes
1972 else
1973   ac_header_compiler=no
1974 fi
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1977 $as_echo "$ac_header_compiler" >&6; }
1978
1979 # Is the header present?
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1981 $as_echo_n "checking $2 presence... " >&6; }
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h.  */
1984 #include <$2>
1985 _ACEOF
1986 if ac_fn_c_try_cpp "$LINENO"; then :
1987   ac_header_preproc=yes
1988 else
1989   ac_header_preproc=no
1990 fi
1991 rm -f conftest.err conftest.i conftest.$ac_ext
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1993 $as_echo "$ac_header_preproc" >&6; }
1994
1995 # So?  What about this header?
1996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1997   yes:no: )
1998     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1999 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2000     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2001 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2002     ;;
2003   no:yes:* )
2004     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2005 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2006     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2007 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2008     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2009 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2010     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2011 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2012     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2013 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014 ( $as_echo "## ----------------------------------- ##
2015 ## Report this to gary@music.mcgill.ca ##
2016 ## ----------------------------------- ##"
2017      ) | sed "s/^/$as_me: WARNING:     /" >&2
2018     ;;
2019 esac
2020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval \${$3+:} false; then :
2023   $as_echo_n "(cached) " >&6
2024 else
2025   eval "$3=\$ac_header_compiler"
2026 fi
2027 eval ac_res=\$$3
2028                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2030 fi
2031   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032
2033 } # ac_fn_c_check_header_mongrel
2034 cat >config.log <<_ACEOF
2035 This file contains any messages produced by compilers while
2036 running configure, to aid debugging if configure makes a mistake.
2037
2038 It was created by RtAudio $as_me 4.1.2, which was
2039 generated by GNU Autoconf 2.69.  Invocation command line was
2040
2041   $ $0 $@
2042
2043 _ACEOF
2044 exec 5>>config.log
2045 {
2046 cat <<_ASUNAME
2047 ## --------- ##
2048 ## Platform. ##
2049 ## --------- ##
2050
2051 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2052 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2053 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2054 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2055 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2056
2057 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2058 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2059
2060 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2061 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2062 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2063 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2064 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2065 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2066 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2067
2068 _ASUNAME
2069
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 for as_dir in $PATH
2072 do
2073   IFS=$as_save_IFS
2074   test -z "$as_dir" && as_dir=.
2075     $as_echo "PATH: $as_dir"
2076   done
2077 IFS=$as_save_IFS
2078
2079 } >&5
2080
2081 cat >&5 <<_ACEOF
2082
2083
2084 ## ----------- ##
2085 ## Core tests. ##
2086 ## ----------- ##
2087
2088 _ACEOF
2089
2090
2091 # Keep a trace of the command line.
2092 # Strip out --no-create and --no-recursion so they do not pile up.
2093 # Strip out --silent because we don't want to record it for future runs.
2094 # Also quote any args containing shell meta-characters.
2095 # Make two passes to allow for proper duplicate-argument suppression.
2096 ac_configure_args=
2097 ac_configure_args0=
2098 ac_configure_args1=
2099 ac_must_keep_next=false
2100 for ac_pass in 1 2
2101 do
2102   for ac_arg
2103   do
2104     case $ac_arg in
2105     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2106     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2107     | -silent | --silent | --silen | --sile | --sil)
2108       continue ;;
2109     *\'*)
2110       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2111     esac
2112     case $ac_pass in
2113     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2114     2)
2115       as_fn_append ac_configure_args1 " '$ac_arg'"
2116       if test $ac_must_keep_next = true; then
2117         ac_must_keep_next=false # Got value, back to normal.
2118       else
2119         case $ac_arg in
2120           *=* | --config-cache | -C | -disable-* | --disable-* \
2121           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2122           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2123           | -with-* | --with-* | -without-* | --without-* | --x)
2124             case "$ac_configure_args0 " in
2125               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2126             esac
2127             ;;
2128           -* ) ac_must_keep_next=true ;;
2129         esac
2130       fi
2131       as_fn_append ac_configure_args " '$ac_arg'"
2132       ;;
2133     esac
2134   done
2135 done
2136 { ac_configure_args0=; unset ac_configure_args0;}
2137 { ac_configure_args1=; unset ac_configure_args1;}
2138
2139 # When interrupted or exit'd, cleanup temporary files, and complete
2140 # config.log.  We remove comments because anyway the quotes in there
2141 # would cause problems or look ugly.
2142 # WARNING: Use '\'' to represent an apostrophe within the trap.
2143 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2144 trap 'exit_status=$?
2145   # Save into config.log some information that might help in debugging.
2146   {
2147     echo
2148
2149     $as_echo "## ---------------- ##
2150 ## Cache variables. ##
2151 ## ---------------- ##"
2152     echo
2153     # The following way of writing the cache mishandles newlines in values,
2154 (
2155   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2156     eval ac_val=\$$ac_var
2157     case $ac_val in #(
2158     *${as_nl}*)
2159       case $ac_var in #(
2160       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2161 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2162       esac
2163       case $ac_var in #(
2164       _ | IFS | as_nl) ;; #(
2165       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2166       *) { eval $ac_var=; unset $ac_var;} ;;
2167       esac ;;
2168     esac
2169   done
2170   (set) 2>&1 |
2171     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2172     *${as_nl}ac_space=\ *)
2173       sed -n \
2174         "s/'\''/'\''\\\\'\'''\''/g;
2175           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2176       ;; #(
2177     *)
2178       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2179       ;;
2180     esac |
2181     sort
2182 )
2183     echo
2184
2185     $as_echo "## ----------------- ##
2186 ## Output variables. ##
2187 ## ----------------- ##"
2188     echo
2189     for ac_var in $ac_subst_vars
2190     do
2191       eval ac_val=\$$ac_var
2192       case $ac_val in
2193       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2194       esac
2195       $as_echo "$ac_var='\''$ac_val'\''"
2196     done | sort
2197     echo
2198
2199     if test -n "$ac_subst_files"; then
2200       $as_echo "## ------------------- ##
2201 ## File substitutions. ##
2202 ## ------------------- ##"
2203       echo
2204       for ac_var in $ac_subst_files
2205       do
2206         eval ac_val=\$$ac_var
2207         case $ac_val in
2208         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209         esac
2210         $as_echo "$ac_var='\''$ac_val'\''"
2211       done | sort
2212       echo
2213     fi
2214
2215     if test -s confdefs.h; then
2216       $as_echo "## ----------- ##
2217 ## confdefs.h. ##
2218 ## ----------- ##"
2219       echo
2220       cat confdefs.h
2221       echo
2222     fi
2223     test "$ac_signal" != 0 &&
2224       $as_echo "$as_me: caught signal $ac_signal"
2225     $as_echo "$as_me: exit $exit_status"
2226   } >&5
2227   rm -f core *.core core.conftest.* &&
2228     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2229     exit $exit_status
2230 ' 0
2231 for ac_signal in 1 2 13 15; do
2232   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2233 done
2234 ac_signal=0
2235
2236 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2237 rm -f -r conftest* confdefs.h
2238
2239 $as_echo "/* confdefs.h */" > confdefs.h
2240
2241 # Predefined preprocessor variables.
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_NAME "$PACKAGE_NAME"
2245 _ACEOF
2246
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2249 _ACEOF
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2253 _ACEOF
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_STRING "$PACKAGE_STRING"
2257 _ACEOF
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2261 _ACEOF
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_URL "$PACKAGE_URL"
2265 _ACEOF
2266
2267
2268 # Let the site file select an alternate cache file if it wants to.
2269 # Prefer an explicitly selected file to automatically selected ones.
2270 ac_site_file1=NONE
2271 ac_site_file2=NONE
2272 if test -n "$CONFIG_SITE"; then
2273   # We do not want a PATH search for config.site.
2274   case $CONFIG_SITE in #((
2275     -*)  ac_site_file1=./$CONFIG_SITE;;
2276     */*) ac_site_file1=$CONFIG_SITE;;
2277     *)   ac_site_file1=./$CONFIG_SITE;;
2278   esac
2279 elif test "x$prefix" != xNONE; then
2280   ac_site_file1=$prefix/share/config.site
2281   ac_site_file2=$prefix/etc/config.site
2282 else
2283   ac_site_file1=$ac_default_prefix/share/config.site
2284   ac_site_file2=$ac_default_prefix/etc/config.site
2285 fi
2286 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2287 do
2288   test "x$ac_site_file" = xNONE && continue
2289   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2290     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2291 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2292     sed 's/^/| /' "$ac_site_file" >&5
2293     . "$ac_site_file" \
2294       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2296 as_fn_error $? "failed to load site script $ac_site_file
2297 See \`config.log' for more details" "$LINENO" 5; }
2298   fi
2299 done
2300
2301 if test -r "$cache_file"; then
2302   # Some versions of bash will fail to source /dev/null (special files
2303   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2304   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2305     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2306 $as_echo "$as_me: loading cache $cache_file" >&6;}
2307     case $cache_file in
2308       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2309       *)                      . "./$cache_file";;
2310     esac
2311   fi
2312 else
2313   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2314 $as_echo "$as_me: creating cache $cache_file" >&6;}
2315   >$cache_file
2316 fi
2317
2318 # Check that the precious variables saved in the cache have kept the same
2319 # value.
2320 ac_cache_corrupted=false
2321 for ac_var in $ac_precious_vars; do
2322   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2323   eval ac_new_set=\$ac_env_${ac_var}_set
2324   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2325   eval ac_new_val=\$ac_env_${ac_var}_value
2326   case $ac_old_set,$ac_new_set in
2327     set,)
2328       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2329 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2330       ac_cache_corrupted=: ;;
2331     ,set)
2332       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2333 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2334       ac_cache_corrupted=: ;;
2335     ,);;
2336     *)
2337       if test "x$ac_old_val" != "x$ac_new_val"; then
2338         # differences in whitespace do not lead to failure.
2339         ac_old_val_w=`echo x $ac_old_val`
2340         ac_new_val_w=`echo x $ac_new_val`
2341         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2342           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2343 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2344           ac_cache_corrupted=:
2345         else
2346           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2347 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2348           eval $ac_var=\$ac_old_val
2349         fi
2350         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2351 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2352         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2353 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2354       fi;;
2355   esac
2356   # Pass precious variables to config.status.
2357   if test "$ac_new_set" = set; then
2358     case $ac_new_val in
2359     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2360     *) ac_arg=$ac_var=$ac_new_val ;;
2361     esac
2362     case " $ac_configure_args " in
2363       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2364       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2365     esac
2366   fi
2367 done
2368 if $ac_cache_corrupted; then
2369   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2371   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2372 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2373   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2374 fi
2375 ## -------------------- ##
2376 ## Main body of script. ##
2377 ## -------------------- ##
2378
2379 ac_ext=c
2380 ac_cpp='$CPP $CPPFLAGS'
2381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384
2385
2386 ac_aux_dir=
2387 for ac_dir in config "$srcdir"/config; do
2388   if test -f "$ac_dir/install-sh"; then
2389     ac_aux_dir=$ac_dir
2390     ac_install_sh="$ac_aux_dir/install-sh -c"
2391     break
2392   elif test -f "$ac_dir/install.sh"; then
2393     ac_aux_dir=$ac_dir
2394     ac_install_sh="$ac_aux_dir/install.sh -c"
2395     break
2396   elif test -f "$ac_dir/shtool"; then
2397     ac_aux_dir=$ac_dir
2398     ac_install_sh="$ac_aux_dir/shtool install -c"
2399     break
2400   fi
2401 done
2402 if test -z "$ac_aux_dir"; then
2403   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2404 fi
2405
2406 # These three variables are undocumented and unsupported,
2407 # and are intended to be withdrawn in a future Autoconf release.
2408 # They can cause serious problems if a builder's source tree is in a directory
2409 # whose full name contains unusual characters.
2410 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2411 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2412 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2413
2414
2415
2416 ac_config_files="$ac_config_files rtaudio-config rtaudio.pc Makefile tests/Makefile doc/Makefile doc/doxygen/Doxyfile"
2417
2418 am__api_version='1.15'
2419
2420 # Find a good install program.  We prefer a C program (faster),
2421 # so one script is as good as another.  But avoid the broken or
2422 # incompatible versions:
2423 # SysV /etc/install, /usr/sbin/install
2424 # SunOS /usr/etc/install
2425 # IRIX /sbin/install
2426 # AIX /bin/install
2427 # AmigaOS /C/install, which installs bootblocks on floppy discs
2428 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2429 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2430 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2431 # OS/2's system install, which has a completely different semantic
2432 # ./install, which can be erroneously created by make from ./install.sh.
2433 # Reject install programs that cannot install multiple files.
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2435 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2436 if test -z "$INSTALL"; then
2437 if ${ac_cv_path_install+:} false; then :
2438   $as_echo_n "(cached) " >&6
2439 else
2440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443   IFS=$as_save_IFS
2444   test -z "$as_dir" && as_dir=.
2445     # Account for people who put trailing slashes in PATH elements.
2446 case $as_dir/ in #((
2447   ./ | .// | /[cC]/* | \
2448   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2449   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2450   /usr/ucb/* ) ;;
2451   *)
2452     # OSF1 and SCO ODT 3.0 have their own names for install.
2453     # Don't use installbsd from OSF since it installs stuff as root
2454     # by default.
2455     for ac_prog in ginstall scoinst install; do
2456       for ac_exec_ext in '' $ac_executable_extensions; do
2457         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2458           if test $ac_prog = install &&
2459             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2460             # AIX install.  It has an incompatible calling convention.
2461             :
2462           elif test $ac_prog = install &&
2463             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2464             # program-specific install script used by HP pwplus--don't use.
2465             :
2466           else
2467             rm -rf conftest.one conftest.two conftest.dir
2468             echo one > conftest.one
2469             echo two > conftest.two
2470             mkdir conftest.dir
2471             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2472               test -s conftest.one && test -s conftest.two &&
2473               test -s conftest.dir/conftest.one &&
2474               test -s conftest.dir/conftest.two
2475             then
2476               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2477               break 3
2478             fi
2479           fi
2480         fi
2481       done
2482     done
2483     ;;
2484 esac
2485
2486   done
2487 IFS=$as_save_IFS
2488
2489 rm -rf conftest.one conftest.two conftest.dir
2490
2491 fi
2492   if test "${ac_cv_path_install+set}" = set; then
2493     INSTALL=$ac_cv_path_install
2494   else
2495     # As a last resort, use the slow shell script.  Don't cache a
2496     # value for INSTALL within a source directory, because that will
2497     # break other packages using the cache if that directory is
2498     # removed, or if the value is a relative name.
2499     INSTALL=$ac_install_sh
2500   fi
2501 fi
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2503 $as_echo "$INSTALL" >&6; }
2504
2505 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2506 # It thinks the first close brace ends the variable substitution.
2507 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2508
2509 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2510
2511 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2512
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2514 $as_echo_n "checking whether build environment is sane... " >&6; }
2515 # Reject unsafe characters in $srcdir or the absolute working directory
2516 # name.  Accept space and tab only in the latter.
2517 am_lf='
2518 '
2519 case `pwd` in
2520   *[\\\"\#\$\&\'\`$am_lf]*)
2521     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2522 esac
2523 case $srcdir in
2524   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2525     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2526 esac
2527
2528 # Do 'set' in a subshell so we don't clobber the current shell's
2529 # arguments.  Must try -L first in case configure is actually a
2530 # symlink; some systems play weird games with the mod time of symlinks
2531 # (eg FreeBSD returns the mod time of the symlink's containing
2532 # directory).
2533 if (
2534    am_has_slept=no
2535    for am_try in 1 2; do
2536      echo "timestamp, slept: $am_has_slept" > conftest.file
2537      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2538      if test "$*" = "X"; then
2539         # -L didn't work.
2540         set X `ls -t "$srcdir/configure" conftest.file`
2541      fi
2542      if test "$*" != "X $srcdir/configure conftest.file" \
2543         && test "$*" != "X conftest.file $srcdir/configure"; then
2544
2545         # If neither matched, then we have a broken ls.  This can happen
2546         # if, for instance, CONFIG_SHELL is bash and it inherits a
2547         # broken ls alias from the environment.  This has actually
2548         # happened.  Such a system could not be considered "sane".
2549         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2550   alias in your environment" "$LINENO" 5
2551      fi
2552      if test "$2" = conftest.file || test $am_try -eq 2; then
2553        break
2554      fi
2555      # Just in case.
2556      sleep 1
2557      am_has_slept=yes
2558    done
2559    test "$2" = conftest.file
2560    )
2561 then
2562    # Ok.
2563    :
2564 else
2565    as_fn_error $? "newly created file is older than distributed files!
2566 Check your system clock" "$LINENO" 5
2567 fi
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2569 $as_echo "yes" >&6; }
2570 # If we didn't sleep, we still need to ensure time stamps of config.status and
2571 # generated files are strictly newer.
2572 am_sleep_pid=
2573 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2574   ( sleep 1 ) &
2575   am_sleep_pid=$!
2576 fi
2577
2578 rm -f conftest.file
2579
2580 test "$program_prefix" != NONE &&
2581   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2582 # Use a double $ so make ignores it.
2583 test "$program_suffix" != NONE &&
2584   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2585 # Double any \ or $.
2586 # By default was `s,x,x', remove it if useless.
2587 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2588 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2589
2590 # Expand $ac_aux_dir to an absolute path.
2591 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2592
2593 if test x"${MISSING+set}" != xset; then
2594   case $am_aux_dir in
2595   *\ * | *\     *)
2596     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2597   *)
2598     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2599   esac
2600 fi
2601 # Use eval to expand $SHELL
2602 if eval "$MISSING --is-lightweight"; then
2603   am_missing_run="$MISSING "
2604 else
2605   am_missing_run=
2606   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2607 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2608 fi
2609
2610 if test x"${install_sh+set}" != xset; then
2611   case $am_aux_dir in
2612   *\ * | *\     *)
2613     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2614   *)
2615     install_sh="\${SHELL} $am_aux_dir/install-sh"
2616   esac
2617 fi
2618
2619 # Installed binaries are usually stripped using 'strip' when the user
2620 # run "make install-strip".  However 'strip' might not be the right
2621 # tool to use in cross-compilation environments, therefore Automake
2622 # will honor the 'STRIP' environment variable to overrule this program.
2623 if test "$cross_compiling" != no; then
2624   if test -n "$ac_tool_prefix"; then
2625   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}strip; ac_word=$2
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if ${ac_cv_prog_STRIP+:} false; then :
2630   $as_echo_n "(cached) " >&6
2631 else
2632   if test -n "$STRIP"; then
2633   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2637 do
2638   IFS=$as_save_IFS
2639   test -z "$as_dir" && as_dir=.
2640     for ac_exec_ext in '' $ac_executable_extensions; do
2641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644     break 2
2645   fi
2646 done
2647   done
2648 IFS=$as_save_IFS
2649
2650 fi
2651 fi
2652 STRIP=$ac_cv_prog_STRIP
2653 if test -n "$STRIP"; then
2654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2655 $as_echo "$STRIP" >&6; }
2656 else
2657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2659 fi
2660
2661
2662 fi
2663 if test -z "$ac_cv_prog_STRIP"; then
2664   ac_ct_STRIP=$STRIP
2665   # Extract the first word of "strip", so it can be a program name with args.
2666 set dummy strip; ac_word=$2
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2670   $as_echo_n "(cached) " >&6
2671 else
2672   if test -n "$ac_ct_STRIP"; then
2673   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2674 else
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 for as_dir in $PATH
2677 do
2678   IFS=$as_save_IFS
2679   test -z "$as_dir" && as_dir=.
2680     for ac_exec_ext in '' $ac_executable_extensions; do
2681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2682     ac_cv_prog_ac_ct_STRIP="strip"
2683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684     break 2
2685   fi
2686 done
2687   done
2688 IFS=$as_save_IFS
2689
2690 fi
2691 fi
2692 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2693 if test -n "$ac_ct_STRIP"; then
2694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2695 $as_echo "$ac_ct_STRIP" >&6; }
2696 else
2697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698 $as_echo "no" >&6; }
2699 fi
2700
2701   if test "x$ac_ct_STRIP" = x; then
2702     STRIP=":"
2703   else
2704     case $cross_compiling:$ac_tool_warned in
2705 yes:)
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2708 ac_tool_warned=yes ;;
2709 esac
2710     STRIP=$ac_ct_STRIP
2711   fi
2712 else
2713   STRIP="$ac_cv_prog_STRIP"
2714 fi
2715
2716 fi
2717 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2718
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2720 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2721 if test -z "$MKDIR_P"; then
2722   if ${ac_cv_path_mkdir+:} false; then :
2723   $as_echo_n "(cached) " >&6
2724 else
2725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2727 do
2728   IFS=$as_save_IFS
2729   test -z "$as_dir" && as_dir=.
2730     for ac_prog in mkdir gmkdir; do
2731          for ac_exec_ext in '' $ac_executable_extensions; do
2732            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2733            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2734              'mkdir (GNU coreutils) '* | \
2735              'mkdir (coreutils) '* | \
2736              'mkdir (fileutils) '4.1*)
2737                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2738                break 3;;
2739            esac
2740          done
2741        done
2742   done
2743 IFS=$as_save_IFS
2744
2745 fi
2746
2747   test -d ./--version && rmdir ./--version
2748   if test "${ac_cv_path_mkdir+set}" = set; then
2749     MKDIR_P="$ac_cv_path_mkdir -p"
2750   else
2751     # As a last resort, use the slow shell script.  Don't cache a
2752     # value for MKDIR_P within a source directory, because that will
2753     # break other packages using the cache if that directory is
2754     # removed, or if the value is a relative name.
2755     MKDIR_P="$ac_install_sh -d"
2756   fi
2757 fi
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2759 $as_echo "$MKDIR_P" >&6; }
2760
2761 for ac_prog in gawk mawk nawk awk
2762 do
2763   # Extract the first word of "$ac_prog", so it can be a program name with args.
2764 set dummy $ac_prog; ac_word=$2
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if ${ac_cv_prog_AWK+:} false; then :
2768   $as_echo_n "(cached) " >&6
2769 else
2770   if test -n "$AWK"; then
2771   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2775 do
2776   IFS=$as_save_IFS
2777   test -z "$as_dir" && as_dir=.
2778     for ac_exec_ext in '' $ac_executable_extensions; do
2779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780     ac_cv_prog_AWK="$ac_prog"
2781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782     break 2
2783   fi
2784 done
2785   done
2786 IFS=$as_save_IFS
2787
2788 fi
2789 fi
2790 AWK=$ac_cv_prog_AWK
2791 if test -n "$AWK"; then
2792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2793 $as_echo "$AWK" >&6; }
2794 else
2795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2797 fi
2798
2799
2800   test -n "$AWK" && break
2801 done
2802
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2804 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2805 set x ${MAKE-make}
2806 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2807 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2808   $as_echo_n "(cached) " >&6
2809 else
2810   cat >conftest.make <<\_ACEOF
2811 SHELL = /bin/sh
2812 all:
2813         @echo '@@@%%%=$(MAKE)=@@@%%%'
2814 _ACEOF
2815 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2816 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2817   *@@@%%%=?*=@@@%%%*)
2818     eval ac_cv_prog_make_${ac_make}_set=yes;;
2819   *)
2820     eval ac_cv_prog_make_${ac_make}_set=no;;
2821 esac
2822 rm -f conftest.make
2823 fi
2824 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2826 $as_echo "yes" >&6; }
2827   SET_MAKE=
2828 else
2829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830 $as_echo "no" >&6; }
2831   SET_MAKE="MAKE=${MAKE-make}"
2832 fi
2833
2834 rm -rf .tst 2>/dev/null
2835 mkdir .tst 2>/dev/null
2836 if test -d .tst; then
2837   am__leading_dot=.
2838 else
2839   am__leading_dot=_
2840 fi
2841 rmdir .tst 2>/dev/null
2842
2843 # Check whether --enable-silent-rules was given.
2844 if test "${enable_silent_rules+set}" = set; then :
2845   enableval=$enable_silent_rules;
2846 fi
2847
2848 case $enable_silent_rules in # (((
2849   yes) AM_DEFAULT_VERBOSITY=0;;
2850    no) AM_DEFAULT_VERBOSITY=1;;
2851     *) AM_DEFAULT_VERBOSITY=1;;
2852 esac
2853 am_make=${MAKE-make}
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2855 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2856 if ${am_cv_make_support_nested_variables+:} false; then :
2857   $as_echo_n "(cached) " >&6
2858 else
2859   if $as_echo 'TRUE=$(BAR$(V))
2860 BAR0=false
2861 BAR1=true
2862 V=1
2863 am__doit:
2864         @$(TRUE)
2865 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2866   am_cv_make_support_nested_variables=yes
2867 else
2868   am_cv_make_support_nested_variables=no
2869 fi
2870 fi
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2872 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2873 if test $am_cv_make_support_nested_variables = yes; then
2874     AM_V='$(V)'
2875   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2876 else
2877   AM_V=$AM_DEFAULT_VERBOSITY
2878   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2879 fi
2880 AM_BACKSLASH='\'
2881
2882 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2883   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2884   # is not polluted with repeated "-I."
2885   am__isrc=' -I$(srcdir)'
2886   # test to see if srcdir already configured
2887   if test -f $srcdir/config.status; then
2888     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2889   fi
2890 fi
2891
2892 # test whether we have cygpath
2893 if test -z "$CYGPATH_W"; then
2894   if (cygpath --version) >/dev/null 2>/dev/null; then
2895     CYGPATH_W='cygpath -w'
2896   else
2897     CYGPATH_W=echo
2898   fi
2899 fi
2900
2901
2902 # Define the identity of the package.
2903  PACKAGE='rtaudio'
2904  VERSION='4.1.2'
2905
2906
2907 cat >>confdefs.h <<_ACEOF
2908 #define PACKAGE "$PACKAGE"
2909 _ACEOF
2910
2911
2912 cat >>confdefs.h <<_ACEOF
2913 #define VERSION "$VERSION"
2914 _ACEOF
2915
2916 # Some tools Automake needs.
2917
2918 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2919
2920
2921 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2922
2923
2924 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2925
2926
2927 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2928
2929
2930 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2931
2932 # For better backward compatibility.  To be removed once Automake 1.9.x
2933 # dies out for good.  For more background, see:
2934 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2935 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2936 mkdir_p='$(MKDIR_P)'
2937
2938 # We need awk for the "check" target (and possibly the TAP driver).  The
2939 # system "awk" is bad on some platforms.
2940 # Always define AMTAR for backward compatibility.  Yes, it's still used
2941 # in the wild :-(  We should find a proper way to deprecate it ...
2942 AMTAR='$${TAR-tar}'
2943
2944
2945 # We'll loop over all known methods to create a tar archive until one works.
2946 _am_tools='gnutar  pax cpio none'
2947
2948 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2949
2950
2951
2952
2953
2954
2955 # POSIX will say in a future version that running "rm -f" with no argument
2956 # is OK; and we want to be able to make that assumption in our Makefile
2957 # recipes.  So use an aggressive probe to check that the usage we want is
2958 # actually supported "in the wild" to an acceptable degree.
2959 # See automake bug#10828.
2960 # To make any issue more visible, cause the running configure to be aborted
2961 # by default if the 'rm' program in use doesn't match our expectations; the
2962 # user can still override this though.
2963 if rm -f && rm -fr && rm -rf; then : OK; else
2964   cat >&2 <<'END'
2965 Oops!
2966
2967 Your 'rm' program seems unable to run without file operands specified
2968 on the command line, even when the '-f' option is present.  This is contrary
2969 to the behaviour of most rm programs out there, and not conforming with
2970 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2971
2972 Please tell bug-automake@gnu.org about your system, including the value
2973 of your $PATH and any error possibly output before this message.  This
2974 can help us improve future automake versions.
2975
2976 END
2977   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2978     echo 'Configuration will proceed anyway, since you have set the' >&2
2979     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2980     echo >&2
2981   else
2982     cat >&2 <<'END'
2983 Aborting the configuration process, to ensure you take notice of the issue.
2984
2985 You can download and install GNU coreutils to get an 'rm' implementation
2986 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2987
2988 If you want to complete the configuration process using your problematic
2989 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2990 to "yes", and re-run configure.
2991
2992 END
2993     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2994   fi
2995 fi
2996
2997
2998 # libtool version: current:revision:age
2999 #
3000 # If the library source code has changed at all since the last update, then
3001 # increment revision (`c:r:a' becomes `c:r+1:a').
3002 #
3003 # If any interfaces have been added, removed, or changed since the last update,
3004 # increment current, and set revision to 0.
3005 #
3006 # If any interfaces have been added since the last public release, then
3007 # increment age.
3008 #
3009 # If any interfaces have been removed since the last public release, then set
3010 # age to 0.
3011
3012
3013
3014
3015
3016
3017
3018 SO_VERSION=5:0:0
3019
3020
3021 # Check version number coherency between RtAudio.h and configure.ac
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that version numbers are coherent" >&5
3023 $as_echo_n "checking that version numbers are coherent... " >&6; }
3024 DEPDIR="${am__leading_dot}deps"
3025
3026 ac_config_commands="$ac_config_commands depfiles"
3027
3028
3029 am_make=${MAKE-make}
3030 cat > confinc << 'END'
3031 am__doit:
3032         @echo this is the am__doit target
3033 .PHONY: am__doit
3034 END
3035 # If we don't find an include directive, just comment out the code.
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3037 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3038 am__include="#"
3039 am__quote=
3040 _am_result=none
3041 # First try GNU make style include.
3042 echo "include confinc" > confmf
3043 # Ignore all kinds of additional output from 'make'.
3044 case `$am_make -s -f confmf 2> /dev/null` in #(
3045 *the\ am__doit\ target*)
3046   am__include=include
3047   am__quote=
3048   _am_result=GNU
3049   ;;
3050 esac
3051 # Now try BSD make style include.
3052 if test "$am__include" = "#"; then
3053    echo '.include "confinc"' > confmf
3054    case `$am_make -s -f confmf 2> /dev/null` in #(
3055    *the\ am__doit\ target*)
3056      am__include=.include
3057      am__quote="\""
3058      _am_result=BSD
3059      ;;
3060    esac
3061 fi
3062
3063
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3065 $as_echo "$_am_result" >&6; }
3066 rm -f confinc confmf
3067
3068 # Check whether --enable-dependency-tracking was given.
3069 if test "${enable_dependency_tracking+set}" = set; then :
3070   enableval=$enable_dependency_tracking;
3071 fi
3072
3073 if test "x$enable_dependency_tracking" != xno; then
3074   am_depcomp="$ac_aux_dir/depcomp"
3075   AMDEPBACKSLASH='\'
3076   am__nodep='_no'
3077 fi
3078  if test "x$enable_dependency_tracking" != xno; then
3079   AMDEP_TRUE=
3080   AMDEP_FALSE='#'
3081 else
3082   AMDEP_TRUE='#'
3083   AMDEP_FALSE=
3084 fi
3085
3086
3087 ac_ext=c
3088 ac_cpp='$CPP $CPPFLAGS'
3089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3092 if test -n "$ac_tool_prefix"; then
3093   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3094 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_CC+:} false; then :
3098   $as_echo_n "(cached) " >&6
3099 else
3100   if test -n "$CC"; then
3101   ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106   IFS=$as_save_IFS
3107   test -z "$as_dir" && as_dir=.
3108     for ac_exec_ext in '' $ac_executable_extensions; do
3109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112     break 2
3113   fi
3114 done
3115   done
3116 IFS=$as_save_IFS
3117
3118 fi
3119 fi
3120 CC=$ac_cv_prog_CC
3121 if test -n "$CC"; then
3122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3124 else
3125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129
3130 fi
3131 if test -z "$ac_cv_prog_CC"; then
3132   ac_ct_CC=$CC
3133   # Extract the first word of "gcc", so it can be a program name with args.
3134 set dummy gcc; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3138   $as_echo_n "(cached) " >&6
3139 else
3140   if test -n "$ac_ct_CC"; then
3141   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146   IFS=$as_save_IFS
3147   test -z "$as_dir" && as_dir=.
3148     for ac_exec_ext in '' $ac_executable_extensions; do
3149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150     ac_cv_prog_ac_ct_CC="gcc"
3151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152     break 2
3153   fi
3154 done
3155   done
3156 IFS=$as_save_IFS
3157
3158 fi
3159 fi
3160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3161 if test -n "$ac_ct_CC"; then
3162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3163 $as_echo "$ac_ct_CC" >&6; }
3164 else
3165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3167 fi
3168
3169   if test "x$ac_ct_CC" = x; then
3170     CC=""
3171   else
3172     case $cross_compiling:$ac_tool_warned in
3173 yes:)
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3176 ac_tool_warned=yes ;;
3177 esac
3178     CC=$ac_ct_CC
3179   fi
3180 else
3181   CC="$ac_cv_prog_CC"
3182 fi
3183
3184 if test -z "$CC"; then
3185           if test -n "$ac_tool_prefix"; then
3186     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}cc; ac_word=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if ${ac_cv_prog_CC+:} false; then :
3191   $as_echo_n "(cached) " >&6
3192 else
3193   if test -n "$CC"; then
3194   ac_cv_prog_CC="$CC" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199   IFS=$as_save_IFS
3200   test -z "$as_dir" && as_dir=.
3201     for ac_exec_ext in '' $ac_executable_extensions; do
3202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203     ac_cv_prog_CC="${ac_tool_prefix}cc"
3204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205     break 2
3206   fi
3207 done
3208   done
3209 IFS=$as_save_IFS
3210
3211 fi
3212 fi
3213 CC=$ac_cv_prog_CC
3214 if test -n "$CC"; then
3215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3216 $as_echo "$CC" >&6; }
3217 else
3218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3220 fi
3221
3222
3223   fi
3224 fi
3225 if test -z "$CC"; then
3226   # Extract the first word of "cc", so it can be a program name with args.
3227 set dummy cc; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_CC+:} false; then :
3231   $as_echo_n "(cached) " >&6
3232 else
3233   if test -n "$CC"; then
3234   ac_cv_prog_CC="$CC" # Let the user override the test.
3235 else
3236   ac_prog_rejected=no
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240   IFS=$as_save_IFS
3241   test -z "$as_dir" && as_dir=.
3242     for ac_exec_ext in '' $ac_executable_extensions; do
3243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3245        ac_prog_rejected=yes
3246        continue
3247      fi
3248     ac_cv_prog_CC="cc"
3249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250     break 2
3251   fi
3252 done
3253   done
3254 IFS=$as_save_IFS
3255
3256 if test $ac_prog_rejected = yes; then
3257   # We found a bogon in the path, so make sure we never use it.
3258   set dummy $ac_cv_prog_CC
3259   shift
3260   if test $# != 0; then
3261     # We chose a different compiler from the bogus one.
3262     # However, it has the same basename, so the bogon will be chosen
3263     # first if we set CC to just the basename; use the full file name.
3264     shift
3265     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3266   fi
3267 fi
3268 fi
3269 fi
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3274 else
3275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279
3280 fi
3281 if test -z "$CC"; then
3282   if test -n "$ac_tool_prefix"; then
3283   for ac_prog in cl.exe
3284   do
3285     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_CC+:} false; then :
3290   $as_echo_n "(cached) " >&6
3291 else
3292   if test -n "$CC"; then
3293   ac_cv_prog_CC="$CC" # Let the user override the test.
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3297 do
3298   IFS=$as_save_IFS
3299   test -z "$as_dir" && as_dir=.
3300     for ac_exec_ext in '' $ac_executable_extensions; do
3301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304     break 2
3305   fi
3306 done
3307   done
3308 IFS=$as_save_IFS
3309
3310 fi
3311 fi
3312 CC=$ac_cv_prog_CC
3313 if test -n "$CC"; then
3314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315 $as_echo "$CC" >&6; }
3316 else
3317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 fi
3320
3321
3322     test -n "$CC" && break
3323   done
3324 fi
3325 if test -z "$CC"; then
3326   ac_ct_CC=$CC
3327   for ac_prog in cl.exe
3328 do
3329   # Extract the first word of "$ac_prog", so it can be a program name with args.
3330 set dummy $ac_prog; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3334   $as_echo_n "(cached) " >&6
3335 else
3336   if test -n "$ac_ct_CC"; then
3337   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342   IFS=$as_save_IFS
3343   test -z "$as_dir" && as_dir=.
3344     for ac_exec_ext in '' $ac_executable_extensions; do
3345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346     ac_cv_prog_ac_ct_CC="$ac_prog"
3347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348     break 2
3349   fi
3350 done
3351   done
3352 IFS=$as_save_IFS
3353
3354 fi
3355 fi
3356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3357 if test -n "$ac_ct_CC"; then
3358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3359 $as_echo "$ac_ct_CC" >&6; }
3360 else
3361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3363 fi
3364
3365
3366   test -n "$ac_ct_CC" && break
3367 done
3368
3369   if test "x$ac_ct_CC" = x; then
3370     CC=""
3371   else
3372     case $cross_compiling:$ac_tool_warned in
3373 yes:)
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3376 ac_tool_warned=yes ;;
3377 esac
3378     CC=$ac_ct_CC
3379   fi
3380 fi
3381
3382 fi
3383
3384
3385 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387 as_fn_error $? "no acceptable C compiler found in \$PATH
3388 See \`config.log' for more details" "$LINENO" 5; }
3389
3390 # Provide some information about the compiler.
3391 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3392 set X $ac_compile
3393 ac_compiler=$2
3394 for ac_option in --version -v -V -qversion; do
3395   { { ac_try="$ac_compiler $ac_option >&5"
3396 case "(($ac_try" in
3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398   *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3403   ac_status=$?
3404   if test -s conftest.err; then
3405     sed '10a\
3406 ... rest of stderr output deleted ...
3407          10q' conftest.err >conftest.er1
3408     cat conftest.er1 >&5
3409   fi
3410   rm -f conftest.er1 conftest.err
3411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412   test $ac_status = 0; }
3413 done
3414
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h.  */
3417
3418 int
3419 main ()
3420 {
3421
3422   ;
3423   return 0;
3424 }
3425 _ACEOF
3426 ac_clean_files_save=$ac_clean_files
3427 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3428 # Try to create an executable without -o first, disregard a.out.
3429 # It will help us diagnose broken compilers, and finding out an intuition
3430 # of exeext.
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3432 $as_echo_n "checking whether the C compiler works... " >&6; }
3433 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3434
3435 # The possible output files:
3436 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3437
3438 ac_rmfiles=
3439 for ac_file in $ac_files
3440 do
3441   case $ac_file in
3442     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3444   esac
3445 done
3446 rm -f $ac_rmfiles
3447
3448 if { { ac_try="$ac_link_default"
3449 case "(($ac_try" in
3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451   *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455   (eval "$ac_link_default") 2>&5
3456   ac_status=$?
3457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458   test $ac_status = 0; }; then :
3459   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3460 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3461 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3462 # so that the user can short-circuit this test for compilers unknown to
3463 # Autoconf.
3464 for ac_file in $ac_files ''
3465 do
3466   test -f "$ac_file" || continue
3467   case $ac_file in
3468     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3469         ;;
3470     [ab].out )
3471         # We found the default executable, but exeext='' is most
3472         # certainly right.
3473         break;;
3474     *.* )
3475         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3476         then :; else
3477            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3478         fi
3479         # We set ac_cv_exeext here because the later test for it is not
3480         # safe: cross compilers may not add the suffix if given an `-o'
3481         # argument, so we may need to know it at that point already.
3482         # Even if this section looks crufty: it has the advantage of
3483         # actually working.
3484         break;;
3485     * )
3486         break;;
3487   esac
3488 done
3489 test "$ac_cv_exeext" = no && ac_cv_exeext=
3490
3491 else
3492   ac_file=''
3493 fi
3494 if test -z "$ac_file"; then :
3495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 $as_echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 as_fn_error 77 "C compiler cannot create executables
3503 See \`config.log' for more details" "$LINENO" 5; }
3504 else
3505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3506 $as_echo "yes" >&6; }
3507 fi
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3509 $as_echo_n "checking for C compiler default output file name... " >&6; }
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3511 $as_echo "$ac_file" >&6; }
3512 ac_exeext=$ac_cv_exeext
3513
3514 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3515 ac_clean_files=$ac_clean_files_save
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3517 $as_echo_n "checking for suffix of executables... " >&6; }
3518 if { { ac_try="$ac_link"
3519 case "(($ac_try" in
3520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521   *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525   (eval "$ac_link") 2>&5
3526   ac_status=$?
3527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528   test $ac_status = 0; }; then :
3529   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3530 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3531 # work properly (i.e., refer to `conftest.exe'), while it won't with
3532 # `rm'.
3533 for ac_file in conftest.exe conftest conftest.*; do
3534   test -f "$ac_file" || continue
3535   case $ac_file in
3536     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3537     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3538           break;;
3539     * ) break;;
3540   esac
3541 done
3542 else
3543   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3546 See \`config.log' for more details" "$LINENO" 5; }
3547 fi
3548 rm -f conftest conftest$ac_cv_exeext
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3550 $as_echo "$ac_cv_exeext" >&6; }
3551
3552 rm -f conftest.$ac_ext
3553 EXEEXT=$ac_cv_exeext
3554 ac_exeext=$EXEEXT
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h.  */
3557 #include <stdio.h>
3558 int
3559 main ()
3560 {
3561 FILE *f = fopen ("conftest.out", "w");
3562  return ferror (f) || fclose (f) != 0;
3563
3564   ;
3565   return 0;
3566 }
3567 _ACEOF
3568 ac_clean_files="$ac_clean_files conftest.out"
3569 # Check that the compiler produces executables we can run.  If not, either
3570 # the compiler is broken, or we cross compile.
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3572 $as_echo_n "checking whether we are cross compiling... " >&6; }
3573 if test "$cross_compiling" != yes; then
3574   { { ac_try="$ac_link"
3575 case "(($ac_try" in
3576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577   *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581   (eval "$ac_link") 2>&5
3582   ac_status=$?
3583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584   test $ac_status = 0; }
3585   if { ac_try='./conftest$ac_cv_exeext'
3586   { { case "(($ac_try" in
3587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588   *) ac_try_echo=$ac_try;;
3589 esac
3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591 $as_echo "$ac_try_echo"; } >&5
3592   (eval "$ac_try") 2>&5
3593   ac_status=$?
3594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595   test $ac_status = 0; }; }; then
3596     cross_compiling=no
3597   else
3598     if test "$cross_compiling" = maybe; then
3599         cross_compiling=yes
3600     else
3601         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $? "cannot run C compiled programs.
3604 If you meant to cross compile, use \`--host'.
3605 See \`config.log' for more details" "$LINENO" 5; }
3606     fi
3607   fi
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3610 $as_echo "$cross_compiling" >&6; }
3611
3612 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3613 ac_clean_files=$ac_clean_files_save
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3615 $as_echo_n "checking for suffix of object files... " >&6; }
3616 if ${ac_cv_objext+:} false; then :
3617   $as_echo_n "(cached) " >&6
3618 else
3619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h.  */
3621
3622 int
3623 main ()
3624 {
3625
3626   ;
3627   return 0;
3628 }
3629 _ACEOF
3630 rm -f conftest.o conftest.obj
3631 if { { ac_try="$ac_compile"
3632 case "(($ac_try" in
3633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634   *) ac_try_echo=$ac_try;;
3635 esac
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638   (eval "$ac_compile") 2>&5
3639   ac_status=$?
3640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641   test $ac_status = 0; }; then :
3642   for ac_file in conftest.o conftest.obj conftest.*; do
3643   test -f "$ac_file" || continue;
3644   case $ac_file in
3645     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3646     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3647        break;;
3648   esac
3649 done
3650 else
3651   $as_echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3653
3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 as_fn_error $? "cannot compute suffix of object files: cannot compile
3657 See \`config.log' for more details" "$LINENO" 5; }
3658 fi
3659 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3660 fi
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3662 $as_echo "$ac_cv_objext" >&6; }
3663 OBJEXT=$ac_cv_objext
3664 ac_objext=$OBJEXT
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3666 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3667 if ${ac_cv_c_compiler_gnu+:} false; then :
3668   $as_echo_n "(cached) " >&6
3669 else
3670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h.  */
3672
3673 int
3674 main ()
3675 {
3676 #ifndef __GNUC__
3677        choke me
3678 #endif
3679
3680   ;
3681   return 0;
3682 }
3683 _ACEOF
3684 if ac_fn_c_try_compile "$LINENO"; then :
3685   ac_compiler_gnu=yes
3686 else
3687   ac_compiler_gnu=no
3688 fi
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3691
3692 fi
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3694 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3695 if test $ac_compiler_gnu = yes; then
3696   GCC=yes
3697 else
3698   GCC=
3699 fi
3700 ac_test_CFLAGS=${CFLAGS+set}
3701 ac_save_CFLAGS=$CFLAGS
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3703 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3704 if ${ac_cv_prog_cc_g+:} false; then :
3705   $as_echo_n "(cached) " >&6
3706 else
3707   ac_save_c_werror_flag=$ac_c_werror_flag
3708    ac_c_werror_flag=yes
3709    ac_cv_prog_cc_g=no
3710    CFLAGS="-g"
3711    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h.  */
3713
3714 int
3715 main ()
3716 {
3717
3718   ;
3719   return 0;
3720 }
3721 _ACEOF
3722 if ac_fn_c_try_compile "$LINENO"; then :
3723   ac_cv_prog_cc_g=yes
3724 else
3725   CFLAGS=""
3726       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h.  */
3728
3729 int
3730 main ()
3731 {
3732
3733   ;
3734   return 0;
3735 }
3736 _ACEOF
3737 if ac_fn_c_try_compile "$LINENO"; then :
3738
3739 else
3740   ac_c_werror_flag=$ac_save_c_werror_flag
3741          CFLAGS="-g"
3742          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h.  */
3744
3745 int
3746 main ()
3747 {
3748
3749   ;
3750   return 0;
3751 }
3752 _ACEOF
3753 if ac_fn_c_try_compile "$LINENO"; then :
3754   ac_cv_prog_cc_g=yes
3755 fi
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 fi
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 fi
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761    ac_c_werror_flag=$ac_save_c_werror_flag
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3764 $as_echo "$ac_cv_prog_cc_g" >&6; }
3765 if test "$ac_test_CFLAGS" = set; then
3766   CFLAGS=$ac_save_CFLAGS
3767 elif test $ac_cv_prog_cc_g = yes; then
3768   if test "$GCC" = yes; then
3769     CFLAGS="-g -O2"
3770   else
3771     CFLAGS="-g"
3772   fi
3773 else
3774   if test "$GCC" = yes; then
3775     CFLAGS="-O2"
3776   else
3777     CFLAGS=
3778   fi
3779 fi
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3781 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3782 if ${ac_cv_prog_cc_c89+:} false; then :
3783   $as_echo_n "(cached) " >&6
3784 else
3785   ac_cv_prog_cc_c89=no
3786 ac_save_CC=$CC
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h.  */
3789 #include <stdarg.h>
3790 #include <stdio.h>
3791 struct stat;
3792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3793 struct buf { int x; };
3794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3795 static char *e (p, i)
3796      char **p;
3797      int i;
3798 {
3799   return p[i];
3800 }
3801 static char *f (char * (*g) (char **, int), char **p, ...)
3802 {
3803   char *s;
3804   va_list v;
3805   va_start (v,p);
3806   s = g (p, va_arg (v,int));
3807   va_end (v);
3808   return s;
3809 }
3810
3811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3812    function prototypes and stuff, but not '\xHH' hex character constants.
3813    These don't provoke an error unfortunately, instead are silently treated
3814    as 'x'.  The following induces an error, until -std is added to get
3815    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3816    array size at least.  It's necessary to write '\x00'==0 to get something
3817    that's true only with -std.  */
3818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3819
3820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3821    inside strings and character constants.  */
3822 #define FOO(x) 'x'
3823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3824
3825 int test (int i, double x);
3826 struct s1 {int (*f) (int a);};
3827 struct s2 {int (*f) (double a);};
3828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3829 int argc;
3830 char **argv;
3831 int
3832 main ()
3833 {
3834 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3835   ;
3836   return 0;
3837 }
3838 _ACEOF
3839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3840         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3841 do
3842   CC="$ac_save_CC $ac_arg"
3843   if ac_fn_c_try_compile "$LINENO"; then :
3844   ac_cv_prog_cc_c89=$ac_arg
3845 fi
3846 rm -f core conftest.err conftest.$ac_objext
3847   test "x$ac_cv_prog_cc_c89" != "xno" && break
3848 done
3849 rm -f conftest.$ac_ext
3850 CC=$ac_save_CC
3851
3852 fi
3853 # AC_CACHE_VAL
3854 case "x$ac_cv_prog_cc_c89" in
3855   x)
3856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3857 $as_echo "none needed" >&6; } ;;
3858   xno)
3859     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3860 $as_echo "unsupported" >&6; } ;;
3861   *)
3862     CC="$CC $ac_cv_prog_cc_c89"
3863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3865 esac
3866 if test "x$ac_cv_prog_cc_c89" != xno; then :
3867
3868 fi
3869
3870 ac_ext=c
3871 ac_cpp='$CPP $CPPFLAGS'
3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875
3876 ac_ext=c
3877 ac_cpp='$CPP $CPPFLAGS'
3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3882 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3883 if ${am_cv_prog_cc_c_o+:} false; then :
3884   $as_echo_n "(cached) " >&6
3885 else
3886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h.  */
3888
3889 int
3890 main ()
3891 {
3892
3893   ;
3894   return 0;
3895 }
3896 _ACEOF
3897   # Make sure it works both with $CC and with simple cc.
3898   # Following AC_PROG_CC_C_O, we do the test twice because some
3899   # compilers refuse to overwrite an existing .o file with -o,
3900   # though they will create one.
3901   am_cv_prog_cc_c_o=yes
3902   for am_i in 1 2; do
3903     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3904    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3905    ac_status=$?
3906    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907    (exit $ac_status); } \
3908          && test -f conftest2.$ac_objext; then
3909       : OK
3910     else
3911       am_cv_prog_cc_c_o=no
3912       break
3913     fi
3914   done
3915   rm -f core conftest*
3916   unset am_i
3917 fi
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3919 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3920 if test "$am_cv_prog_cc_c_o" != yes; then
3921    # Losing compiler, so override with the script.
3922    # FIXME: It is wrong to rewrite CC.
3923    # But if we don't then we get into trouble of one sort or another.
3924    # A longer-term fix would be to have automake use am__CC in this case,
3925    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3926    CC="$am_aux_dir/compile $CC"
3927 fi
3928 ac_ext=c
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933
3934
3935 depcc="$CC"   am_compiler_list=
3936
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3938 $as_echo_n "checking dependency style of $depcc... " >&6; }
3939 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3940   $as_echo_n "(cached) " >&6
3941 else
3942   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3943   # We make a subdir and do the tests there.  Otherwise we can end up
3944   # making bogus files that we don't know about and never remove.  For
3945   # instance it was reported that on HP-UX the gcc test will end up
3946   # making a dummy file named 'D' -- because '-MD' means "put the output
3947   # in D".
3948   rm -rf conftest.dir
3949   mkdir conftest.dir
3950   # Copy depcomp to subdir because otherwise we won't find it if we're
3951   # using a relative directory.
3952   cp "$am_depcomp" conftest.dir
3953   cd conftest.dir
3954   # We will build objects and dependencies in a subdirectory because
3955   # it helps to detect inapplicable dependency modes.  For instance
3956   # both Tru64's cc and ICC support -MD to output dependencies as a
3957   # side effect of compilation, but ICC will put the dependencies in
3958   # the current directory while Tru64 will put them in the object
3959   # directory.
3960   mkdir sub
3961
3962   am_cv_CC_dependencies_compiler_type=none
3963   if test "$am_compiler_list" = ""; then
3964      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3965   fi
3966   am__universal=false
3967   case " $depcc " in #(
3968      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3969      esac
3970
3971   for depmode in $am_compiler_list; do
3972     # Setup a source with many dependencies, because some compilers
3973     # like to wrap large dependency lists on column 80 (with \), and
3974     # we should not choose a depcomp mode which is confused by this.
3975     #
3976     # We need to recreate these files for each test, as the compiler may
3977     # overwrite some of them when testing with obscure command lines.
3978     # This happens at least with the AIX C compiler.
3979     : > sub/conftest.c
3980     for i in 1 2 3 4 5 6; do
3981       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3982       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3983       # Solaris 10 /bin/sh.
3984       echo '/* dummy */' > sub/conftst$i.h
3985     done
3986     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3987
3988     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3989     # mode.  It turns out that the SunPro C++ compiler does not properly
3990     # handle '-M -o', and we need to detect this.  Also, some Intel
3991     # versions had trouble with output in subdirs.
3992     am__obj=sub/conftest.${OBJEXT-o}
3993     am__minus_obj="-o $am__obj"
3994     case $depmode in
3995     gcc)
3996       # This depmode causes a compiler race in universal mode.
3997       test "$am__universal" = false || continue
3998       ;;
3999     nosideeffect)
4000       # After this tag, mechanisms are not by side-effect, so they'll
4001       # only be used when explicitly requested.
4002       if test "x$enable_dependency_tracking" = xyes; then
4003         continue
4004       else
4005         break
4006       fi
4007       ;;
4008     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4009       # This compiler won't grok '-c -o', but also, the minuso test has
4010       # not run yet.  These depmodes are late enough in the game, and
4011       # so weak that their functioning should not be impacted.
4012       am__obj=conftest.${OBJEXT-o}
4013       am__minus_obj=
4014       ;;
4015     none) break ;;
4016     esac
4017     if depmode=$depmode \
4018        source=sub/conftest.c object=$am__obj \
4019        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4020        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4021          >/dev/null 2>conftest.err &&
4022        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4023        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4024        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4025        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4026       # icc doesn't choke on unknown options, it will just issue warnings
4027       # or remarks (even with -Werror).  So we grep stderr for any message
4028       # that says an option was ignored or not supported.
4029       # When given -MP, icc 7.0 and 7.1 complain thusly:
4030       #   icc: Command line warning: ignoring option '-M'; no argument required
4031       # The diagnosis changed in icc 8.0:
4032       #   icc: Command line remark: option '-MP' not supported
4033       if (grep 'ignoring option' conftest.err ||
4034           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4035         am_cv_CC_dependencies_compiler_type=$depmode
4036         break
4037       fi
4038     fi
4039   done
4040
4041   cd ..
4042   rm -rf conftest.dir
4043 else
4044   am_cv_CC_dependencies_compiler_type=none
4045 fi
4046
4047 fi
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4049 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4050 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4051
4052  if
4053   test "x$enable_dependency_tracking" != xno \
4054   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4055   am__fastdepCC_TRUE=
4056   am__fastdepCC_FALSE='#'
4057 else
4058   am__fastdepCC_TRUE='#'
4059   am__fastdepCC_FALSE=
4060 fi
4061
4062
4063
4064 if test "$cross_compiling" = yes; then :
4065   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4067 as_fn_error $? "cannot run test program while cross compiling
4068 See \`config.log' for more details" "$LINENO" 5; }
4069 else
4070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h.  */
4072 #include <string.h>
4073                      `grep "define RTAUDIO_VERSION" $srcdir/RtAudio.h`
4074 int
4075 main ()
4076 {
4077 return strcmp(RTAUDIO_VERSION, PACKAGE_VERSION);
4078   ;
4079   return 0;
4080 }
4081 _ACEOF
4082 if ac_fn_c_try_run "$LINENO"; then :
4083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4084 $as_echo "yes" >&6; }
4085 else
4086   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4088 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.
4089 See \`config.log' for more details" "$LINENO" 5; }
4090 fi
4091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4092   conftest.$ac_objext conftest.beam conftest.$ac_ext
4093 fi
4094
4095
4096 # Enable some nice automake features if they are available
4097
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4099 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4100     # Check whether --enable-maintainer-mode was given.
4101 if test "${enable_maintainer_mode+set}" = set; then :
4102   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4103 else
4104   USE_MAINTAINER_MODE=no
4105 fi
4106
4107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4108 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4109    if test $USE_MAINTAINER_MODE = yes; then
4110   MAINTAINER_MODE_TRUE=
4111   MAINTAINER_MODE_FALSE='#'
4112 else
4113   MAINTAINER_MODE_TRUE='#'
4114   MAINTAINER_MODE_FALSE=
4115 fi
4116
4117   MAINT=$MAINTAINER_MODE_TRUE
4118
4119
4120 # Check whether --enable-silent-rules was given.
4121 if test "${enable_silent_rules+set}" = set; then :
4122   enableval=$enable_silent_rules;
4123 fi
4124
4125 case $enable_silent_rules in # (((
4126   yes) AM_DEFAULT_VERBOSITY=0;;
4127    no) AM_DEFAULT_VERBOSITY=1;;
4128     *) AM_DEFAULT_VERBOSITY=0;;
4129 esac
4130 am_make=${MAKE-make}
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4132 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4133 if ${am_cv_make_support_nested_variables+:} false; then :
4134   $as_echo_n "(cached) " >&6
4135 else
4136   if $as_echo 'TRUE=$(BAR$(V))
4137 BAR0=false
4138 BAR1=true
4139 V=1
4140 am__doit:
4141         @$(TRUE)
4142 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4143   am_cv_make_support_nested_variables=yes
4144 else
4145   am_cv_make_support_nested_variables=no
4146 fi
4147 fi
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4149 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4150 if test $am_cv_make_support_nested_variables = yes; then
4151     AM_V='$(V)'
4152   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4153 else
4154   AM_V=$AM_DEFAULT_VERBOSITY
4155   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4156 fi
4157 AM_BACKSLASH='\'
4158
4159
4160 # Fill GXX with something before test.
4161 GXX="no"
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4174         if test -n "$ac_tool_prefix"; then
4175   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4176 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178 $as_echo_n "checking for $ac_word... " >&6; }
4179 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4180   $as_echo_n "(cached) " >&6
4181 else
4182   case $PKG_CONFIG in
4183   [\\/]* | ?:[\\/]*)
4184   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4185   ;;
4186   *)
4187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4189 do
4190   IFS=$as_save_IFS
4191   test -z "$as_dir" && as_dir=.
4192     for ac_exec_ext in '' $ac_executable_extensions; do
4193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4194     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4196     break 2
4197   fi
4198 done
4199   done
4200 IFS=$as_save_IFS
4201
4202   ;;
4203 esac
4204 fi
4205 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4206 if test -n "$PKG_CONFIG"; then
4207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4208 $as_echo "$PKG_CONFIG" >&6; }
4209 else
4210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4212 fi
4213
4214
4215 fi
4216 if test -z "$ac_cv_path_PKG_CONFIG"; then
4217   ac_pt_PKG_CONFIG=$PKG_CONFIG
4218   # Extract the first word of "pkg-config", so it can be a program name with args.
4219 set dummy pkg-config; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4223   $as_echo_n "(cached) " >&6
4224 else
4225   case $ac_pt_PKG_CONFIG in
4226   [\\/]* | ?:[\\/]*)
4227   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4228   ;;
4229   *)
4230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4232 do
4233   IFS=$as_save_IFS
4234   test -z "$as_dir" && as_dir=.
4235     for ac_exec_ext in '' $ac_executable_extensions; do
4236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239     break 2
4240   fi
4241 done
4242   done
4243 IFS=$as_save_IFS
4244
4245   ;;
4246 esac
4247 fi
4248 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4249 if test -n "$ac_pt_PKG_CONFIG"; then
4250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4251 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4252 else
4253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4255 fi
4256
4257   if test "x$ac_pt_PKG_CONFIG" = x; then
4258     PKG_CONFIG=""
4259   else
4260     case $cross_compiling:$ac_tool_warned in
4261 yes:)
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4264 ac_tool_warned=yes ;;
4265 esac
4266     PKG_CONFIG=$ac_pt_PKG_CONFIG
4267   fi
4268 else
4269   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4270 fi
4271
4272 fi
4273 if test -n "$PKG_CONFIG"; then
4274         _pkg_min_version=0.9.0
4275         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4276 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4277         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4278                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4279 $as_echo "yes" >&6; }
4280         else
4281                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4283                 PKG_CONFIG=""
4284         fi
4285 fi
4286
4287
4288
4289 # Check for debug
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile debug version" >&5
4291 $as_echo_n "checking whether to compile debug version... " >&6; }
4292 # Check whether --enable-debug was given.
4293 if test "${enable_debug+set}" = set; then :
4294   enableval=$enable_debug; : ${CXXFLAGS="-g -O0"}; $as_echo "#define __RTAUDIO_DEBUG__ 1" >>confdefs.h
4295
4296 else
4297   : ${CXXFLAGS="-O3"}
4298 fi
4299
4300
4301 # Checks for programs.
4302 ac_ext=cpp
4303 ac_cpp='$CXXCPP $CPPFLAGS'
4304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4307 if test -z "$CXX"; then
4308   if test -n "$CCC"; then
4309     CXX=$CCC
4310   else
4311     if test -n "$ac_tool_prefix"; then
4312   for ac_prog in g++ CC c++ cxx
4313   do
4314     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if ${ac_cv_prog_CXX+:} false; then :
4319   $as_echo_n "(cached) " >&6
4320 else
4321   if test -n "$CXX"; then
4322   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327   IFS=$as_save_IFS
4328   test -z "$as_dir" && as_dir=.
4329     for ac_exec_ext in '' $ac_executable_extensions; do
4330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333     break 2
4334   fi
4335 done
4336   done
4337 IFS=$as_save_IFS
4338
4339 fi
4340 fi
4341 CXX=$ac_cv_prog_CXX
4342 if test -n "$CXX"; then
4343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4344 $as_echo "$CXX" >&6; }
4345 else
4346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4348 fi
4349
4350
4351     test -n "$CXX" && break
4352   done
4353 fi
4354 if test -z "$CXX"; then
4355   ac_ct_CXX=$CXX
4356   for ac_prog in g++ CC c++ cxx
4357 do
4358   # Extract the first word of "$ac_prog", so it can be a program name with args.
4359 set dummy $ac_prog; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4363   $as_echo_n "(cached) " >&6
4364 else
4365   if test -n "$ac_ct_CXX"; then
4366   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371   IFS=$as_save_IFS
4372   test -z "$as_dir" && as_dir=.
4373     for ac_exec_ext in '' $ac_executable_extensions; do
4374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4375     ac_cv_prog_ac_ct_CXX="$ac_prog"
4376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377     break 2
4378   fi
4379 done
4380   done
4381 IFS=$as_save_IFS
4382
4383 fi
4384 fi
4385 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4386 if test -n "$ac_ct_CXX"; then
4387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4388 $as_echo "$ac_ct_CXX" >&6; }
4389 else
4390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4392 fi
4393
4394
4395   test -n "$ac_ct_CXX" && break
4396 done
4397
4398   if test "x$ac_ct_CXX" = x; then
4399     CXX="g++"
4400   else
4401     case $cross_compiling:$ac_tool_warned in
4402 yes:)
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4406 esac
4407     CXX=$ac_ct_CXX
4408   fi
4409 fi
4410
4411   fi
4412 fi
4413 # Provide some information about the compiler.
4414 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4415 set X $ac_compile
4416 ac_compiler=$2
4417 for ac_option in --version -v -V -qversion; do
4418   { { ac_try="$ac_compiler $ac_option >&5"
4419 case "(($ac_try" in
4420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421   *) ac_try_echo=$ac_try;;
4422 esac
4423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4424 $as_echo "$ac_try_echo"; } >&5
4425   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4426   ac_status=$?
4427   if test -s conftest.err; then
4428     sed '10a\
4429 ... rest of stderr output deleted ...
4430          10q' conftest.err >conftest.er1
4431     cat conftest.er1 >&5
4432   fi
4433   rm -f conftest.er1 conftest.err
4434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4435   test $ac_status = 0; }
4436 done
4437
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4439 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4440 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4441   $as_echo_n "(cached) " >&6
4442 else
4443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h.  */
4445
4446 int
4447 main ()
4448 {
4449 #ifndef __GNUC__
4450        choke me
4451 #endif
4452
4453   ;
4454   return 0;
4455 }
4456 _ACEOF
4457 if ac_fn_cxx_try_compile "$LINENO"; then :
4458   ac_compiler_gnu=yes
4459 else
4460   ac_compiler_gnu=no
4461 fi
4462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4464
4465 fi
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4467 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4468 if test $ac_compiler_gnu = yes; then
4469   GXX=yes
4470 else
4471   GXX=
4472 fi
4473 ac_test_CXXFLAGS=${CXXFLAGS+set}
4474 ac_save_CXXFLAGS=$CXXFLAGS
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4476 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4477 if ${ac_cv_prog_cxx_g+:} false; then :
4478   $as_echo_n "(cached) " >&6
4479 else
4480   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4481    ac_cxx_werror_flag=yes
4482    ac_cv_prog_cxx_g=no
4483    CXXFLAGS="-g"
4484    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h.  */
4486
4487 int
4488 main ()
4489 {
4490
4491   ;
4492   return 0;
4493 }
4494 _ACEOF
4495 if ac_fn_cxx_try_compile "$LINENO"; then :
4496   ac_cv_prog_cxx_g=yes
4497 else
4498   CXXFLAGS=""
4499       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h.  */
4501
4502 int
4503 main ()
4504 {
4505
4506   ;
4507   return 0;
4508 }
4509 _ACEOF
4510 if ac_fn_cxx_try_compile "$LINENO"; then :
4511
4512 else
4513   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4514          CXXFLAGS="-g"
4515          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h.  */
4517
4518 int
4519 main ()
4520 {
4521
4522   ;
4523   return 0;
4524 }
4525 _ACEOF
4526 if ac_fn_cxx_try_compile "$LINENO"; then :
4527   ac_cv_prog_cxx_g=yes
4528 fi
4529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 fi
4531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532 fi
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4535 fi
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4537 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4538 if test "$ac_test_CXXFLAGS" = set; then
4539   CXXFLAGS=$ac_save_CXXFLAGS
4540 elif test $ac_cv_prog_cxx_g = yes; then
4541   if test "$GXX" = yes; then
4542     CXXFLAGS="-g -O2"
4543   else
4544     CXXFLAGS="-g"
4545   fi
4546 else
4547   if test "$GXX" = yes; then
4548     CXXFLAGS="-O2"
4549   else
4550     CXXFLAGS=
4551   fi
4552 fi
4553 ac_ext=c
4554 ac_cpp='$CPP $CPPFLAGS'
4555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558
4559 depcc="$CXX"  am_compiler_list=
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4562 $as_echo_n "checking dependency style of $depcc... " >&6; }
4563 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4564   $as_echo_n "(cached) " >&6
4565 else
4566   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4567   # We make a subdir and do the tests there.  Otherwise we can end up
4568   # making bogus files that we don't know about and never remove.  For
4569   # instance it was reported that on HP-UX the gcc test will end up
4570   # making a dummy file named 'D' -- because '-MD' means "put the output
4571   # in D".
4572   rm -rf conftest.dir
4573   mkdir conftest.dir
4574   # Copy depcomp to subdir because otherwise we won't find it if we're
4575   # using a relative directory.
4576   cp "$am_depcomp" conftest.dir
4577   cd conftest.dir
4578   # We will build objects and dependencies in a subdirectory because
4579   # it helps to detect inapplicable dependency modes.  For instance
4580   # both Tru64's cc and ICC support -MD to output dependencies as a
4581   # side effect of compilation, but ICC will put the dependencies in
4582   # the current directory while Tru64 will put them in the object
4583   # directory.
4584   mkdir sub
4585
4586   am_cv_CXX_dependencies_compiler_type=none
4587   if test "$am_compiler_list" = ""; then
4588      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4589   fi
4590   am__universal=false
4591   case " $depcc " in #(
4592      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4593      esac
4594
4595   for depmode in $am_compiler_list; do
4596     # Setup a source with many dependencies, because some compilers
4597     # like to wrap large dependency lists on column 80 (with \), and
4598     # we should not choose a depcomp mode which is confused by this.
4599     #
4600     # We need to recreate these files for each test, as the compiler may
4601     # overwrite some of them when testing with obscure command lines.
4602     # This happens at least with the AIX C compiler.
4603     : > sub/conftest.c
4604     for i in 1 2 3 4 5 6; do
4605       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4606       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4607       # Solaris 10 /bin/sh.
4608       echo '/* dummy */' > sub/conftst$i.h
4609     done
4610     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4611
4612     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4613     # mode.  It turns out that the SunPro C++ compiler does not properly
4614     # handle '-M -o', and we need to detect this.  Also, some Intel
4615     # versions had trouble with output in subdirs.
4616     am__obj=sub/conftest.${OBJEXT-o}
4617     am__minus_obj="-o $am__obj"
4618     case $depmode in
4619     gcc)
4620       # This depmode causes a compiler race in universal mode.
4621       test "$am__universal" = false || continue
4622       ;;
4623     nosideeffect)
4624       # After this tag, mechanisms are not by side-effect, so they'll
4625       # only be used when explicitly requested.
4626       if test "x$enable_dependency_tracking" = xyes; then
4627         continue
4628       else
4629         break
4630       fi
4631       ;;
4632     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4633       # This compiler won't grok '-c -o', but also, the minuso test has
4634       # not run yet.  These depmodes are late enough in the game, and
4635       # so weak that their functioning should not be impacted.
4636       am__obj=conftest.${OBJEXT-o}
4637       am__minus_obj=
4638       ;;
4639     none) break ;;
4640     esac
4641     if depmode=$depmode \
4642        source=sub/conftest.c object=$am__obj \
4643        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4644        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4645          >/dev/null 2>conftest.err &&
4646        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4647        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4648        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4649        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4650       # icc doesn't choke on unknown options, it will just issue warnings
4651       # or remarks (even with -Werror).  So we grep stderr for any message
4652       # that says an option was ignored or not supported.
4653       # When given -MP, icc 7.0 and 7.1 complain thusly:
4654       #   icc: Command line warning: ignoring option '-M'; no argument required
4655       # The diagnosis changed in icc 8.0:
4656       #   icc: Command line remark: option '-MP' not supported
4657       if (grep 'ignoring option' conftest.err ||
4658           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4659         am_cv_CXX_dependencies_compiler_type=$depmode
4660         break
4661       fi
4662     fi
4663   done
4664
4665   cd ..
4666   rm -rf conftest.dir
4667 else
4668   am_cv_CXX_dependencies_compiler_type=none
4669 fi
4670
4671 fi
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4673 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4674 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4675
4676  if
4677   test "x$enable_dependency_tracking" != xno \
4678   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4679   am__fastdepCXX_TRUE=
4680   am__fastdepCXX_FALSE='#'
4681 else
4682   am__fastdepCXX_TRUE='#'
4683   am__fastdepCXX_FALSE=
4684 fi
4685
4686
4687 if test -n "$ac_tool_prefix"; then
4688   for ac_prog in ar lib "link -lib"
4689   do
4690     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if ${ac_cv_prog_AR+:} false; then :
4695   $as_echo_n "(cached) " >&6
4696 else
4697   if test -n "$AR"; then
4698   ac_cv_prog_AR="$AR" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703   IFS=$as_save_IFS
4704   test -z "$as_dir" && as_dir=.
4705     for ac_exec_ext in '' $ac_executable_extensions; do
4706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709     break 2
4710   fi
4711 done
4712   done
4713 IFS=$as_save_IFS
4714
4715 fi
4716 fi
4717 AR=$ac_cv_prog_AR
4718 if test -n "$AR"; then
4719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4720 $as_echo "$AR" >&6; }
4721 else
4722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4724 fi
4725
4726
4727     test -n "$AR" && break
4728   done
4729 fi
4730 if test -z "$AR"; then
4731   ac_ct_AR=$AR
4732   for ac_prog in ar lib "link -lib"
4733 do
4734   # Extract the first word of "$ac_prog", so it can be a program name with args.
4735 set dummy $ac_prog; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4739   $as_echo_n "(cached) " >&6
4740 else
4741   if test -n "$ac_ct_AR"; then
4742   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749     for ac_exec_ext in '' $ac_executable_extensions; do
4750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751     ac_cv_prog_ac_ct_AR="$ac_prog"
4752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753     break 2
4754   fi
4755 done
4756   done
4757 IFS=$as_save_IFS
4758
4759 fi
4760 fi
4761 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4762 if test -n "$ac_ct_AR"; then
4763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4764 $as_echo "$ac_ct_AR" >&6; }
4765 else
4766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4768 fi
4769
4770
4771   test -n "$ac_ct_AR" && break
4772 done
4773
4774   if test "x$ac_ct_AR" = x; then
4775     AR="false"
4776   else
4777     case $cross_compiling:$ac_tool_warned in
4778 yes:)
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4781 ac_tool_warned=yes ;;
4782 esac
4783     AR=$ac_ct_AR
4784   fi
4785 fi
4786
4787 : ${AR=ar}
4788
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4790 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4791 if ${am_cv_ar_interface+:} false; then :
4792   $as_echo_n "(cached) " >&6
4793 else
4794   ac_ext=c
4795 ac_cpp='$CPP $CPPFLAGS'
4796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799
4800    am_cv_ar_interface=ar
4801    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h.  */
4803 int some_variable = 0;
4804 _ACEOF
4805 if ac_fn_c_try_compile "$LINENO"; then :
4806   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4807       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4808   (eval $am_ar_try) 2>&5
4809   ac_status=$?
4810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4811   test $ac_status = 0; }
4812       if test "$ac_status" -eq 0; then
4813         am_cv_ar_interface=ar
4814       else
4815         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4816         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4817   (eval $am_ar_try) 2>&5
4818   ac_status=$?
4819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4820   test $ac_status = 0; }
4821         if test "$ac_status" -eq 0; then
4822           am_cv_ar_interface=lib
4823         else
4824           am_cv_ar_interface=unknown
4825         fi
4826       fi
4827       rm -f conftest.lib libconftest.a
4828
4829 fi
4830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831    ac_ext=c
4832 ac_cpp='$CPP $CPPFLAGS'
4833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4836
4837 fi
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4839 $as_echo "$am_cv_ar_interface" >&6; }
4840
4841 case $am_cv_ar_interface in
4842 ar)
4843   ;;
4844 lib)
4845   # Microsoft lib, so override with the ar-lib wrapper script.
4846   # FIXME: It is wrong to rewrite AR.
4847   # But if we don't then we get into trouble of one sort or another.
4848   # A longer-term fix would be to have automake use am__AR in this case,
4849   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4850   # similar.
4851   AR="$am_aux_dir/ar-lib $AR"
4852   ;;
4853 unknown)
4854   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4855   ;;
4856 esac
4857
4858 # Extract the first word of "ar", so it can be a program name with args.
4859 set dummy ar; ac_word=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if ${ac_cv_path_AR+:} false; then :
4863   $as_echo_n "(cached) " >&6
4864 else
4865   case $AR in
4866   [\\/]* | ?:[\\/]*)
4867   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4868   ;;
4869   *)
4870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873   IFS=$as_save_IFS
4874   test -z "$as_dir" && as_dir=.
4875     for ac_exec_ext in '' $ac_executable_extensions; do
4876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882   done
4883 IFS=$as_save_IFS
4884
4885   test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
4886   ;;
4887 esac
4888 fi
4889 AR=$ac_cv_path_AR
4890 if test -n "$AR"; then
4891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4892 $as_echo "$AR" >&6; }
4893 else
4894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4896 fi
4897
4898
4899 if [ $AR = "no" ] ; then
4900     as_fn_error $? "\"Could not find ar - needed to create a library\"" "$LINENO" 5;
4901 fi
4902
4903 # Initialize libtool
4904 case `pwd` in
4905   *\ * | *\     *)
4906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4907 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4908 esac
4909
4910
4911
4912 macro_version='2.4.2'
4913 macro_revision='1.3337'
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927 ltmain="$ac_aux_dir/ltmain.sh"
4928
4929 # Make sure we can run config.sub.
4930 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4931   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4932
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4934 $as_echo_n "checking build system type... " >&6; }
4935 if ${ac_cv_build+:} false; then :
4936   $as_echo_n "(cached) " >&6
4937 else
4938   ac_build_alias=$build_alias
4939 test "x$ac_build_alias" = x &&
4940   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4941 test "x$ac_build_alias" = x &&
4942   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4943 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4944   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4945
4946 fi
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4948 $as_echo "$ac_cv_build" >&6; }
4949 case $ac_cv_build in
4950 *-*-*) ;;
4951 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4952 esac
4953 build=$ac_cv_build
4954 ac_save_IFS=$IFS; IFS='-'
4955 set x $ac_cv_build
4956 shift
4957 build_cpu=$1
4958 build_vendor=$2
4959 shift; shift
4960 # Remember, the first character of IFS is used to create $*,
4961 # except with old shells:
4962 build_os=$*
4963 IFS=$ac_save_IFS
4964 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4965
4966
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4968 $as_echo_n "checking host system type... " >&6; }
4969 if ${ac_cv_host+:} false; then :
4970   $as_echo_n "(cached) " >&6
4971 else
4972   if test "x$host_alias" = x; then
4973   ac_cv_host=$ac_cv_build
4974 else
4975   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4976     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4977 fi
4978
4979 fi
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4981 $as_echo "$ac_cv_host" >&6; }
4982 case $ac_cv_host in
4983 *-*-*) ;;
4984 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4985 esac
4986 host=$ac_cv_host
4987 ac_save_IFS=$IFS; IFS='-'
4988 set x $ac_cv_host
4989 shift
4990 host_cpu=$1
4991 host_vendor=$2
4992 shift; shift
4993 # Remember, the first character of IFS is used to create $*,
4994 # except with old shells:
4995 host_os=$*
4996 IFS=$ac_save_IFS
4997 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4998
4999
5000 # Backslashify metacharacters that are still active within
5001 # double-quoted strings.
5002 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5003
5004 # Same as above, but do not quote variable references.
5005 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5006
5007 # Sed substitution to delay expansion of an escaped shell variable in a
5008 # double_quote_subst'ed string.
5009 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5010
5011 # Sed substitution to delay expansion of an escaped single quote.
5012 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5013
5014 # Sed substitution to avoid accidental globbing in evaled expressions
5015 no_glob_subst='s/\*/\\\*/g'
5016
5017 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5018 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5019 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5020
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5022 $as_echo_n "checking how to print strings... " >&6; }
5023 # Test print first, because it will be a builtin if present.
5024 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5025    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5026   ECHO='print -r --'
5027 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5028   ECHO='printf %s\n'
5029 else
5030   # Use this function as a fallback that always works.
5031   func_fallback_echo ()
5032   {
5033     eval 'cat <<_LTECHO_EOF
5034 $1
5035 _LTECHO_EOF'
5036   }
5037   ECHO='func_fallback_echo'
5038 fi
5039
5040 # func_echo_all arg...
5041 # Invoke $ECHO with all args, space-separated.
5042 func_echo_all ()
5043 {
5044     $ECHO ""
5045 }
5046
5047 case "$ECHO" in
5048   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5049 $as_echo "printf" >&6; } ;;
5050   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5051 $as_echo "print -r" >&6; } ;;
5052   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5053 $as_echo "cat" >&6; } ;;
5054 esac
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5070 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5071 if ${ac_cv_path_SED+:} false; then :
5072   $as_echo_n "(cached) " >&6
5073 else
5074             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5075      for ac_i in 1 2 3 4 5 6 7; do
5076        ac_script="$ac_script$as_nl$ac_script"
5077      done
5078      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5079      { ac_script=; unset ac_script;}
5080      if test -z "$SED"; then
5081   ac_path_SED_found=false
5082   # Loop through the user's path and test for each of PROGNAME-LIST
5083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5085 do
5086   IFS=$as_save_IFS
5087   test -z "$as_dir" && as_dir=.
5088     for ac_prog in sed gsed; do
5089     for ac_exec_ext in '' $ac_executable_extensions; do
5090       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5091       as_fn_executable_p "$ac_path_SED" || continue
5092 # Check for GNU ac_path_SED and select it if it is found.
5093   # Check for GNU $ac_path_SED
5094 case `"$ac_path_SED" --version 2>&1` in
5095 *GNU*)
5096   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5097 *)
5098   ac_count=0
5099   $as_echo_n 0123456789 >"conftest.in"
5100   while :
5101   do
5102     cat "conftest.in" "conftest.in" >"conftest.tmp"
5103     mv "conftest.tmp" "conftest.in"
5104     cp "conftest.in" "conftest.nl"
5105     $as_echo '' >> "conftest.nl"
5106     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5107     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5108     as_fn_arith $ac_count + 1 && ac_count=$as_val
5109     if test $ac_count -gt ${ac_path_SED_max-0}; then
5110       # Best one so far, save it but keep looking for a better one
5111       ac_cv_path_SED="$ac_path_SED"
5112       ac_path_SED_max=$ac_count
5113     fi
5114     # 10*(2^10) chars as input seems more than enough
5115     test $ac_count -gt 10 && break
5116   done
5117   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5118 esac
5119
5120       $ac_path_SED_found && break 3
5121     done
5122   done
5123   done
5124 IFS=$as_save_IFS
5125   if test -z "$ac_cv_path_SED"; then
5126     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5127   fi
5128 else
5129   ac_cv_path_SED=$SED
5130 fi
5131
5132 fi
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5134 $as_echo "$ac_cv_path_SED" >&6; }
5135  SED="$ac_cv_path_SED"
5136   rm -f conftest.sed
5137
5138 test -z "$SED" && SED=sed
5139 Xsed="$SED -e 1s/^X//"
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5152 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5153 if ${ac_cv_path_GREP+:} false; then :
5154   $as_echo_n "(cached) " >&6
5155 else
5156   if test -z "$GREP"; then
5157   ac_path_GREP_found=false
5158   # Loop through the user's path and test for each of PROGNAME-LIST
5159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5161 do
5162   IFS=$as_save_IFS
5163   test -z "$as_dir" && as_dir=.
5164     for ac_prog in grep ggrep; do
5165     for ac_exec_ext in '' $ac_executable_extensions; do
5166       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5167       as_fn_executable_p "$ac_path_GREP" || continue
5168 # Check for GNU ac_path_GREP and select it if it is found.
5169   # Check for GNU $ac_path_GREP
5170 case `"$ac_path_GREP" --version 2>&1` in
5171 *GNU*)
5172   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5173 *)
5174   ac_count=0
5175   $as_echo_n 0123456789 >"conftest.in"
5176   while :
5177   do
5178     cat "conftest.in" "conftest.in" >"conftest.tmp"
5179     mv "conftest.tmp" "conftest.in"
5180     cp "conftest.in" "conftest.nl"
5181     $as_echo 'GREP' >> "conftest.nl"
5182     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5183     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5184     as_fn_arith $ac_count + 1 && ac_count=$as_val
5185     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5186       # Best one so far, save it but keep looking for a better one
5187       ac_cv_path_GREP="$ac_path_GREP"
5188       ac_path_GREP_max=$ac_count
5189     fi
5190     # 10*(2^10) chars as input seems more than enough
5191     test $ac_count -gt 10 && break
5192   done
5193   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5194 esac
5195
5196       $ac_path_GREP_found && break 3
5197     done
5198   done
5199   done
5200 IFS=$as_save_IFS
5201   if test -z "$ac_cv_path_GREP"; then
5202     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5203   fi
5204 else
5205   ac_cv_path_GREP=$GREP
5206 fi
5207
5208 fi
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5210 $as_echo "$ac_cv_path_GREP" >&6; }
5211  GREP="$ac_cv_path_GREP"
5212
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5215 $as_echo_n "checking for egrep... " >&6; }
5216 if ${ac_cv_path_EGREP+:} false; then :
5217   $as_echo_n "(cached) " >&6
5218 else
5219   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5220    then ac_cv_path_EGREP="$GREP -E"
5221    else
5222      if test -z "$EGREP"; then
5223   ac_path_EGREP_found=false
5224   # Loop through the user's path and test for each of PROGNAME-LIST
5225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5227 do
5228   IFS=$as_save_IFS
5229   test -z "$as_dir" && as_dir=.
5230     for ac_prog in egrep; do
5231     for ac_exec_ext in '' $ac_executable_extensions; do
5232       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5233       as_fn_executable_p "$ac_path_EGREP" || continue
5234 # Check for GNU ac_path_EGREP and select it if it is found.
5235   # Check for GNU $ac_path_EGREP
5236 case `"$ac_path_EGREP" --version 2>&1` in
5237 *GNU*)
5238   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5239 *)
5240   ac_count=0
5241   $as_echo_n 0123456789 >"conftest.in"
5242   while :
5243   do
5244     cat "conftest.in" "conftest.in" >"conftest.tmp"
5245     mv "conftest.tmp" "conftest.in"
5246     cp "conftest.in" "conftest.nl"
5247     $as_echo 'EGREP' >> "conftest.nl"
5248     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5249     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5250     as_fn_arith $ac_count + 1 && ac_count=$as_val
5251     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5252       # Best one so far, save it but keep looking for a better one
5253       ac_cv_path_EGREP="$ac_path_EGREP"
5254       ac_path_EGREP_max=$ac_count
5255     fi
5256     # 10*(2^10) chars as input seems more than enough
5257     test $ac_count -gt 10 && break
5258   done
5259   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5260 esac
5261
5262       $ac_path_EGREP_found && break 3
5263     done
5264   done
5265   done
5266 IFS=$as_save_IFS
5267   if test -z "$ac_cv_path_EGREP"; then
5268     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5269   fi
5270 else
5271   ac_cv_path_EGREP=$EGREP
5272 fi
5273
5274    fi
5275 fi
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5277 $as_echo "$ac_cv_path_EGREP" >&6; }
5278  EGREP="$ac_cv_path_EGREP"
5279
5280
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5282 $as_echo_n "checking for fgrep... " >&6; }
5283 if ${ac_cv_path_FGREP+:} false; then :
5284   $as_echo_n "(cached) " >&6
5285 else
5286   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5287    then ac_cv_path_FGREP="$GREP -F"
5288    else
5289      if test -z "$FGREP"; then
5290   ac_path_FGREP_found=false
5291   # Loop through the user's path and test for each of PROGNAME-LIST
5292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5294 do
5295   IFS=$as_save_IFS
5296   test -z "$as_dir" && as_dir=.
5297     for ac_prog in fgrep; do
5298     for ac_exec_ext in '' $ac_executable_extensions; do
5299       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5300       as_fn_executable_p "$ac_path_FGREP" || continue
5301 # Check for GNU ac_path_FGREP and select it if it is found.
5302   # Check for GNU $ac_path_FGREP
5303 case `"$ac_path_FGREP" --version 2>&1` in
5304 *GNU*)
5305   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5306 *)
5307   ac_count=0
5308   $as_echo_n 0123456789 >"conftest.in"
5309   while :
5310   do
5311     cat "conftest.in" "conftest.in" >"conftest.tmp"
5312     mv "conftest.tmp" "conftest.in"
5313     cp "conftest.in" "conftest.nl"
5314     $as_echo 'FGREP' >> "conftest.nl"
5315     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5316     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5317     as_fn_arith $ac_count + 1 && ac_count=$as_val
5318     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5319       # Best one so far, save it but keep looking for a better one
5320       ac_cv_path_FGREP="$ac_path_FGREP"
5321       ac_path_FGREP_max=$ac_count
5322     fi
5323     # 10*(2^10) chars as input seems more than enough
5324     test $ac_count -gt 10 && break
5325   done
5326   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5327 esac
5328
5329       $ac_path_FGREP_found && break 3
5330     done
5331   done
5332   done
5333 IFS=$as_save_IFS
5334   if test -z "$ac_cv_path_FGREP"; then
5335     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5336   fi
5337 else
5338   ac_cv_path_FGREP=$FGREP
5339 fi
5340
5341    fi
5342 fi
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5344 $as_echo "$ac_cv_path_FGREP" >&6; }
5345  FGREP="$ac_cv_path_FGREP"
5346
5347
5348 test -z "$GREP" && GREP=grep
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368 # Check whether --with-gnu-ld was given.
5369 if test "${with_gnu_ld+set}" = set; then :
5370   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5371 else
5372   with_gnu_ld=no
5373 fi
5374
5375 ac_prog=ld
5376 if test "$GCC" = yes; then
5377   # Check if gcc -print-prog-name=ld gives a path.
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5379 $as_echo_n "checking for ld used by $CC... " >&6; }
5380   case $host in
5381   *-*-mingw*)
5382     # gcc leaves a trailing carriage return which upsets mingw
5383     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5384   *)
5385     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5386   esac
5387   case $ac_prog in
5388     # Accept absolute paths.
5389     [\\/]* | ?:[\\/]*)
5390       re_direlt='/[^/][^/]*/\.\./'
5391       # Canonicalize the pathname of ld
5392       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5393       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5394         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5395       done
5396       test -z "$LD" && LD="$ac_prog"
5397       ;;
5398   "")
5399     # If it fails, then pretend we aren't using GCC.
5400     ac_prog=ld
5401     ;;
5402   *)
5403     # If it is relative, then search for the first ld in PATH.
5404     with_gnu_ld=unknown
5405     ;;
5406   esac
5407 elif test "$with_gnu_ld" = yes; then
5408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5409 $as_echo_n "checking for GNU ld... " >&6; }
5410 else
5411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5412 $as_echo_n "checking for non-GNU ld... " >&6; }
5413 fi
5414 if ${lt_cv_path_LD+:} false; then :
5415   $as_echo_n "(cached) " >&6
5416 else
5417   if test -z "$LD"; then
5418   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5419   for ac_dir in $PATH; do
5420     IFS="$lt_save_ifs"
5421     test -z "$ac_dir" && ac_dir=.
5422     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5423       lt_cv_path_LD="$ac_dir/$ac_prog"
5424       # Check to see if the program is GNU ld.  I'd rather use --version,
5425       # but apparently some variants of GNU ld only accept -v.
5426       # Break only if it was the GNU/non-GNU ld that we prefer.
5427       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5428       *GNU* | *'with BFD'*)
5429         test "$with_gnu_ld" != no && break
5430         ;;
5431       *)
5432         test "$with_gnu_ld" != yes && break
5433         ;;
5434       esac
5435     fi
5436   done
5437   IFS="$lt_save_ifs"
5438 else
5439   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5440 fi
5441 fi
5442
5443 LD="$lt_cv_path_LD"
5444 if test -n "$LD"; then
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5446 $as_echo "$LD" >&6; }
5447 else
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5450 fi
5451 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5453 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5454 if ${lt_cv_prog_gnu_ld+:} false; then :
5455   $as_echo_n "(cached) " >&6
5456 else
5457   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5458 case `$LD -v 2>&1 </dev/null` in
5459 *GNU* | *'with BFD'*)
5460   lt_cv_prog_gnu_ld=yes
5461   ;;
5462 *)
5463   lt_cv_prog_gnu_ld=no
5464   ;;
5465 esac
5466 fi
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5468 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5469 with_gnu_ld=$lt_cv_prog_gnu_ld
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5480 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5481 if ${lt_cv_path_NM+:} false; then :
5482   $as_echo_n "(cached) " >&6
5483 else
5484   if test -n "$NM"; then
5485   # Let the user override the test.
5486   lt_cv_path_NM="$NM"
5487 else
5488   lt_nm_to_check="${ac_tool_prefix}nm"
5489   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5490     lt_nm_to_check="$lt_nm_to_check nm"
5491   fi
5492   for lt_tmp_nm in $lt_nm_to_check; do
5493     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5494     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5495       IFS="$lt_save_ifs"
5496       test -z "$ac_dir" && ac_dir=.
5497       tmp_nm="$ac_dir/$lt_tmp_nm"
5498       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5499         # Check to see if the nm accepts a BSD-compat flag.
5500         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5501         #   nm: unknown option "B" ignored
5502         # Tru64's nm complains that /dev/null is an invalid object file
5503         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5504         */dev/null* | *'Invalid file or object type'*)
5505           lt_cv_path_NM="$tmp_nm -B"
5506           break
5507           ;;
5508         *)
5509           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5510           */dev/null*)
5511             lt_cv_path_NM="$tmp_nm -p"
5512             break
5513             ;;
5514           *)
5515             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5516             continue # so that we can try to find one that supports BSD flags
5517             ;;
5518           esac
5519           ;;
5520         esac
5521       fi
5522     done
5523     IFS="$lt_save_ifs"
5524   done
5525   : ${lt_cv_path_NM=no}
5526 fi
5527 fi
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5529 $as_echo "$lt_cv_path_NM" >&6; }
5530 if test "$lt_cv_path_NM" != "no"; then
5531   NM="$lt_cv_path_NM"
5532 else
5533   # Didn't find any BSD compatible name lister, look for dumpbin.
5534   if test -n "$DUMPBIN"; then :
5535     # Let the user override the test.
5536   else
5537     if test -n "$ac_tool_prefix"; then
5538   for ac_prog in dumpbin "link -dump"
5539   do
5540     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543 $as_echo_n "checking for $ac_word... " >&6; }
5544 if ${ac_cv_prog_DUMPBIN+:} false; then :
5545   $as_echo_n "(cached) " >&6
5546 else
5547   if test -n "$DUMPBIN"; then
5548   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5549 else
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5552 do
5553   IFS=$as_save_IFS
5554   test -z "$as_dir" && as_dir=.
5555     for ac_exec_ext in '' $ac_executable_extensions; do
5556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559     break 2
5560   fi
5561 done
5562   done
5563 IFS=$as_save_IFS
5564
5565 fi
5566 fi
5567 DUMPBIN=$ac_cv_prog_DUMPBIN
5568 if test -n "$DUMPBIN"; then
5569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5570 $as_echo "$DUMPBIN" >&6; }
5571 else
5572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5574 fi
5575
5576
5577     test -n "$DUMPBIN" && break
5578   done
5579 fi
5580 if test -z "$DUMPBIN"; then
5581   ac_ct_DUMPBIN=$DUMPBIN
5582   for ac_prog in dumpbin "link -dump"
5583 do
5584   # Extract the first word of "$ac_prog", so it can be a program name with args.
5585 set dummy $ac_prog; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5589   $as_echo_n "(cached) " >&6
5590 else
5591   if test -n "$ac_ct_DUMPBIN"; then
5592   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5593 else
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in $PATH
5596 do
5597   IFS=$as_save_IFS
5598   test -z "$as_dir" && as_dir=.
5599     for ac_exec_ext in '' $ac_executable_extensions; do
5600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603     break 2
5604   fi
5605 done
5606   done
5607 IFS=$as_save_IFS
5608
5609 fi
5610 fi
5611 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5612 if test -n "$ac_ct_DUMPBIN"; then
5613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5614 $as_echo "$ac_ct_DUMPBIN" >&6; }
5615 else
5616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5618 fi
5619
5620
5621   test -n "$ac_ct_DUMPBIN" && break
5622 done
5623
5624   if test "x$ac_ct_DUMPBIN" = x; then
5625     DUMPBIN=":"
5626   else
5627     case $cross_compiling:$ac_tool_warned in
5628 yes:)
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5631 ac_tool_warned=yes ;;
5632 esac
5633     DUMPBIN=$ac_ct_DUMPBIN
5634   fi
5635 fi
5636
5637     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5638     *COFF*)
5639       DUMPBIN="$DUMPBIN -symbols"
5640       ;;
5641     *)
5642       DUMPBIN=:
5643       ;;
5644     esac
5645   fi
5646
5647   if test "$DUMPBIN" != ":"; then
5648     NM="$DUMPBIN"
5649   fi
5650 fi
5651 test -z "$NM" && NM=nm
5652
5653
5654
5655
5656
5657
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5659 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5660 if ${lt_cv_nm_interface+:} false; then :
5661   $as_echo_n "(cached) " >&6
5662 else
5663   lt_cv_nm_interface="BSD nm"
5664   echo "int some_variable = 0;" > conftest.$ac_ext
5665   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5666   (eval "$ac_compile" 2>conftest.err)
5667   cat conftest.err >&5
5668   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5669   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5670   cat conftest.err >&5
5671   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5672   cat conftest.out >&5
5673   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5674     lt_cv_nm_interface="MS dumpbin"
5675   fi
5676   rm -f conftest*
5677 fi
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5679 $as_echo "$lt_cv_nm_interface" >&6; }
5680
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5682 $as_echo_n "checking whether ln -s works... " >&6; }
5683 LN_S=$as_ln_s
5684 if test "$LN_S" = "ln -s"; then
5685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5686 $as_echo "yes" >&6; }
5687 else
5688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5689 $as_echo "no, using $LN_S" >&6; }
5690 fi
5691
5692 # find the maximum length of command line arguments
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5694 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5695 if ${lt_cv_sys_max_cmd_len+:} false; then :
5696   $as_echo_n "(cached) " >&6
5697 else
5698     i=0
5699   teststring="ABCD"
5700
5701   case $build_os in
5702   msdosdjgpp*)
5703     # On DJGPP, this test can blow up pretty badly due to problems in libc
5704     # (any single argument exceeding 2000 bytes causes a buffer overrun
5705     # during glob expansion).  Even if it were fixed, the result of this
5706     # check would be larger than it should be.
5707     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5708     ;;
5709
5710   gnu*)
5711     # Under GNU Hurd, this test is not required because there is
5712     # no limit to the length of command line arguments.
5713     # Libtool will interpret -1 as no limit whatsoever
5714     lt_cv_sys_max_cmd_len=-1;
5715     ;;
5716
5717   cygwin* | mingw* | cegcc*)
5718     # On Win9x/ME, this test blows up -- it succeeds, but takes
5719     # about 5 minutes as the teststring grows exponentially.
5720     # Worse, since 9x/ME are not pre-emptively multitasking,
5721     # you end up with a "frozen" computer, even though with patience
5722     # the test eventually succeeds (with a max line length of 256k).
5723     # Instead, let's just punt: use the minimum linelength reported by
5724     # all of the supported platforms: 8192 (on NT/2K/XP).
5725     lt_cv_sys_max_cmd_len=8192;
5726     ;;
5727
5728   mint*)
5729     # On MiNT this can take a long time and run out of memory.
5730     lt_cv_sys_max_cmd_len=8192;
5731     ;;
5732
5733   amigaos*)
5734     # On AmigaOS with pdksh, this test takes hours, literally.
5735     # So we just punt and use a minimum line length of 8192.
5736     lt_cv_sys_max_cmd_len=8192;
5737     ;;
5738
5739   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5740     # This has been around since 386BSD, at least.  Likely further.
5741     if test -x /sbin/sysctl; then
5742       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5743     elif test -x /usr/sbin/sysctl; then
5744       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5745     else
5746       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5747     fi
5748     # And add a safety zone
5749     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5750     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5751     ;;
5752
5753   interix*)
5754     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5755     lt_cv_sys_max_cmd_len=196608
5756     ;;
5757
5758   os2*)
5759     # The test takes a long time on OS/2.
5760     lt_cv_sys_max_cmd_len=8192
5761     ;;
5762
5763   osf*)
5764     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5765     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5766     # nice to cause kernel panics so lets avoid the loop below.
5767     # First set a reasonable default.
5768     lt_cv_sys_max_cmd_len=16384
5769     #
5770     if test -x /sbin/sysconfig; then
5771       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5772         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5773       esac
5774     fi
5775     ;;
5776   sco3.2v5*)
5777     lt_cv_sys_max_cmd_len=102400
5778     ;;
5779   sysv5* | sco5v6* | sysv4.2uw2*)
5780     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5781     if test -n "$kargmax"; then
5782       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5783     else
5784       lt_cv_sys_max_cmd_len=32768
5785     fi
5786     ;;
5787   *)
5788     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5789     if test -n "$lt_cv_sys_max_cmd_len" && \
5790         test undefined != "$lt_cv_sys_max_cmd_len"; then
5791       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5792       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5793     else
5794       # Make teststring a little bigger before we do anything with it.
5795       # a 1K string should be a reasonable start.
5796       for i in 1 2 3 4 5 6 7 8 ; do
5797         teststring=$teststring$teststring
5798       done
5799       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5800       # If test is not a shell built-in, we'll probably end up computing a
5801       # maximum length that is only half of the actual maximum length, but
5802       # we can't tell.
5803       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5804                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5805               test $i != 17 # 1/2 MB should be enough
5806       do
5807         i=`expr $i + 1`
5808         teststring=$teststring$teststring
5809       done
5810       # Only check the string length outside the loop.
5811       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5812       teststring=
5813       # Add a significant safety factor because C++ compilers can tack on
5814       # massive amounts of additional arguments before passing them to the
5815       # linker.  It appears as though 1/2 is a usable value.
5816       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5817     fi
5818     ;;
5819   esac
5820
5821 fi
5822
5823 if test -n $lt_cv_sys_max_cmd_len ; then
5824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5825 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5826 else
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5828 $as_echo "none" >&6; }
5829 fi
5830 max_cmd_len=$lt_cv_sys_max_cmd_len
5831
5832
5833
5834
5835
5836
5837 : ${CP="cp -f"}
5838 : ${MV="mv -f"}
5839 : ${RM="rm -f"}
5840
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5842 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5843 # Try some XSI features
5844 xsi_shell=no
5845 ( _lt_dummy="a/b/c"
5846   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5847       = c,a/b,b/c, \
5848     && eval 'test $(( 1 + 1 )) -eq 2 \
5849     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5850   && xsi_shell=yes
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5852 $as_echo "$xsi_shell" >&6; }
5853
5854
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5856 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5857 lt_shell_append=no
5858 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5859     >/dev/null 2>&1 \
5860   && lt_shell_append=yes
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5862 $as_echo "$lt_shell_append" >&6; }
5863
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 "$GCC" != yes; then
5988       reload_cmds=false
5989     fi
5990     ;;
5991   darwin*)
5992     if test "$GCC" = yes; 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 # which 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   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6152   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6153     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6154     lt_cv_file_magic_cmd='func_win32_libid'
6155   else
6156     # Keep this pattern in sync with the one in func_win32_libid.
6157     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6158     lt_cv_file_magic_cmd='$OBJDUMP -f'
6159   fi
6160   ;;
6161
6162 cegcc*)
6163   # use the weaker test based on 'objdump'. See mingw*.
6164   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6165   lt_cv_file_magic_cmd='$OBJDUMP -f'
6166   ;;
6167
6168 darwin* | rhapsody*)
6169   lt_cv_deplibs_check_method=pass_all
6170   ;;
6171
6172 freebsd* | dragonfly*)
6173   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6174     case $host_cpu in
6175     i*86 )
6176       # Not sure whether the presence of OpenBSD here was a mistake.
6177       # Let's accept both of them until this is cleared up.
6178       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6179       lt_cv_file_magic_cmd=/usr/bin/file
6180       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6181       ;;
6182     esac
6183   else
6184     lt_cv_deplibs_check_method=pass_all
6185   fi
6186   ;;
6187
6188 haiku*)
6189   lt_cv_deplibs_check_method=pass_all
6190   ;;
6191
6192 hpux10.20* | hpux11*)
6193   lt_cv_file_magic_cmd=/usr/bin/file
6194   case $host_cpu in
6195   ia64*)
6196     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6197     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6198     ;;
6199   hppa*64*)
6200     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]'
6201     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6202     ;;
6203   *)
6204     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6205     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6206     ;;
6207   esac
6208   ;;
6209
6210 interix[3-9]*)
6211   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6212   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6213   ;;
6214
6215 irix5* | irix6* | nonstopux*)
6216   case $LD in
6217   *-32|*"-32 ") libmagic=32-bit;;
6218   *-n32|*"-n32 ") libmagic=N32;;
6219   *-64|*"-64 ") libmagic=64-bit;;
6220   *) libmagic=never-match;;
6221   esac
6222   lt_cv_deplibs_check_method=pass_all
6223   ;;
6224
6225 # This must be glibc/ELF.
6226 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6227   lt_cv_deplibs_check_method=pass_all
6228   ;;
6229
6230 netbsd* | netbsdelf*-gnu)
6231   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6232     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6233   else
6234     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6235   fi
6236   ;;
6237
6238 newos6*)
6239   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6240   lt_cv_file_magic_cmd=/usr/bin/file
6241   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6242   ;;
6243
6244 *nto* | *qnx*)
6245   lt_cv_deplibs_check_method=pass_all
6246   ;;
6247
6248 openbsd*)
6249   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6250     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6251   else
6252     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6253   fi
6254   ;;
6255
6256 osf3* | osf4* | osf5*)
6257   lt_cv_deplibs_check_method=pass_all
6258   ;;
6259
6260 rdos*)
6261   lt_cv_deplibs_check_method=pass_all
6262   ;;
6263
6264 solaris*)
6265   lt_cv_deplibs_check_method=pass_all
6266   ;;
6267
6268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6269   lt_cv_deplibs_check_method=pass_all
6270   ;;
6271
6272 sysv4 | sysv4.3*)
6273   case $host_vendor in
6274   motorola)
6275     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]'
6276     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6277     ;;
6278   ncr)
6279     lt_cv_deplibs_check_method=pass_all
6280     ;;
6281   sequent)
6282     lt_cv_file_magic_cmd='/bin/file'
6283     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6284     ;;
6285   sni)
6286     lt_cv_file_magic_cmd='/bin/file'
6287     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6288     lt_cv_file_magic_test_file=/lib/libc.so
6289     ;;
6290   siemens)
6291     lt_cv_deplibs_check_method=pass_all
6292     ;;
6293   pc)
6294     lt_cv_deplibs_check_method=pass_all
6295     ;;
6296   esac
6297   ;;
6298
6299 tpf*)
6300   lt_cv_deplibs_check_method=pass_all
6301   ;;
6302 esac
6303
6304 fi
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6306 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6307
6308 file_magic_glob=
6309 want_nocaseglob=no
6310 if test "$build" = "$host"; then
6311   case $host_os in
6312   mingw* | pw32*)
6313     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6314       want_nocaseglob=yes
6315     else
6316       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6317     fi
6318     ;;
6319   esac
6320 fi
6321
6322 file_magic_cmd=$lt_cv_file_magic_cmd
6323 deplibs_check_method=$lt_cv_deplibs_check_method
6324 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347 if test -n "$ac_tool_prefix"; then
6348   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6349 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if ${ac_cv_prog_DLLTOOL+:} false; then :
6353   $as_echo_n "(cached) " >&6
6354 else
6355   if test -n "$DLLTOOL"; then
6356   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6357 else
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH
6360 do
6361   IFS=$as_save_IFS
6362   test -z "$as_dir" && as_dir=.
6363     for ac_exec_ext in '' $ac_executable_extensions; do
6364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6365     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6367     break 2
6368   fi
6369 done
6370   done
6371 IFS=$as_save_IFS
6372
6373 fi
6374 fi
6375 DLLTOOL=$ac_cv_prog_DLLTOOL
6376 if test -n "$DLLTOOL"; then
6377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6378 $as_echo "$DLLTOOL" >&6; }
6379 else
6380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6382 fi
6383
6384
6385 fi
6386 if test -z "$ac_cv_prog_DLLTOOL"; then
6387   ac_ct_DLLTOOL=$DLLTOOL
6388   # Extract the first word of "dlltool", so it can be a program name with args.
6389 set dummy dlltool; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6393   $as_echo_n "(cached) " >&6
6394 else
6395   if test -n "$ac_ct_DLLTOOL"; then
6396   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401   IFS=$as_save_IFS
6402   test -z "$as_dir" && as_dir=.
6403     for ac_exec_ext in '' $ac_executable_extensions; do
6404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407     break 2
6408   fi
6409 done
6410   done
6411 IFS=$as_save_IFS
6412
6413 fi
6414 fi
6415 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6416 if test -n "$ac_ct_DLLTOOL"; then
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6418 $as_echo "$ac_ct_DLLTOOL" >&6; }
6419 else
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423
6424   if test "x$ac_ct_DLLTOOL" = x; then
6425     DLLTOOL="false"
6426   else
6427     case $cross_compiling:$ac_tool_warned in
6428 yes:)
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6431 ac_tool_warned=yes ;;
6432 esac
6433     DLLTOOL=$ac_ct_DLLTOOL
6434   fi
6435 else
6436   DLLTOOL="$ac_cv_prog_DLLTOOL"
6437 fi
6438
6439 test -z "$DLLTOOL" && DLLTOOL=dlltool
6440
6441
6442
6443
6444
6445
6446
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6448 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6449 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6450   $as_echo_n "(cached) " >&6
6451 else
6452   lt_cv_sharedlib_from_linklib_cmd='unknown'
6453
6454 case $host_os in
6455 cygwin* | mingw* | pw32* | cegcc*)
6456   # two different shell functions defined in ltmain.sh
6457   # decide which to use based on capabilities of $DLLTOOL
6458   case `$DLLTOOL --help 2>&1` in
6459   *--identify-strict*)
6460     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6461     ;;
6462   *)
6463     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6464     ;;
6465   esac
6466   ;;
6467 *)
6468   # fallback: assume linklib IS sharedlib
6469   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6470   ;;
6471 esac
6472
6473 fi
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6475 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6476 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6477 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6478
6479
6480
6481
6482
6483
6484
6485 if test -n "$ac_tool_prefix"; then
6486   for ac_prog in ar
6487   do
6488     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if ${ac_cv_prog_AR+:} false; then :
6493   $as_echo_n "(cached) " >&6
6494 else
6495   if test -n "$AR"; then
6496   ac_cv_prog_AR="$AR" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501   IFS=$as_save_IFS
6502   test -z "$as_dir" && as_dir=.
6503     for ac_exec_ext in '' $ac_executable_extensions; do
6504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507     break 2
6508   fi
6509 done
6510   done
6511 IFS=$as_save_IFS
6512
6513 fi
6514 fi
6515 AR=$ac_cv_prog_AR
6516 if test -n "$AR"; then
6517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6518 $as_echo "$AR" >&6; }
6519 else
6520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523
6524
6525     test -n "$AR" && break
6526   done
6527 fi
6528 if test -z "$AR"; then
6529   ac_ct_AR=$AR
6530   for ac_prog in ar
6531 do
6532   # Extract the first word of "$ac_prog", so it can be a program name with args.
6533 set dummy $ac_prog; ac_word=$2
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6537   $as_echo_n "(cached) " >&6
6538 else
6539   if test -n "$ac_ct_AR"; then
6540   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6541 else
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6544 do
6545   IFS=$as_save_IFS
6546   test -z "$as_dir" && as_dir=.
6547     for ac_exec_ext in '' $ac_executable_extensions; do
6548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6549     ac_cv_prog_ac_ct_AR="$ac_prog"
6550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551     break 2
6552   fi
6553 done
6554   done
6555 IFS=$as_save_IFS
6556
6557 fi
6558 fi
6559 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6560 if test -n "$ac_ct_AR"; then
6561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6562 $as_echo "$ac_ct_AR" >&6; }
6563 else
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6566 fi
6567
6568
6569   test -n "$ac_ct_AR" && break
6570 done
6571
6572   if test "x$ac_ct_AR" = x; then
6573     AR="false"
6574   else
6575     case $cross_compiling:$ac_tool_warned in
6576 yes:)
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6579 ac_tool_warned=yes ;;
6580 esac
6581     AR=$ac_ct_AR
6582   fi
6583 fi
6584
6585 : ${AR=ar}
6586 : ${AR_FLAGS=cru}
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6599 $as_echo_n "checking for archiver @FILE support... " >&6; }
6600 if ${lt_cv_ar_at_file+:} false; then :
6601   $as_echo_n "(cached) " >&6
6602 else
6603   lt_cv_ar_at_file=no
6604    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h.  */
6606
6607 int
6608 main ()
6609 {
6610
6611   ;
6612   return 0;
6613 }
6614 _ACEOF
6615 if ac_fn_c_try_compile "$LINENO"; then :
6616   echo conftest.$ac_objext > conftest.lst
6617       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6618       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6619   (eval $lt_ar_try) 2>&5
6620   ac_status=$?
6621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6622   test $ac_status = 0; }
6623       if test "$ac_status" -eq 0; then
6624         # Ensure the archiver fails upon bogus file names.
6625         rm -f conftest.$ac_objext libconftest.a
6626         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6627   (eval $lt_ar_try) 2>&5
6628   ac_status=$?
6629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6630   test $ac_status = 0; }
6631         if test "$ac_status" -ne 0; then
6632           lt_cv_ar_at_file=@
6633         fi
6634       fi
6635       rm -f conftest.* libconftest.a
6636
6637 fi
6638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639
6640 fi
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6642 $as_echo "$lt_cv_ar_at_file" >&6; }
6643
6644 if test "x$lt_cv_ar_at_file" = xno; then
6645   archiver_list_spec=
6646 else
6647   archiver_list_spec=$lt_cv_ar_at_file
6648 fi
6649
6650
6651
6652
6653
6654
6655
6656 if test -n "$ac_tool_prefix"; then
6657   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6658 set dummy ${ac_tool_prefix}strip; ac_word=$2
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6660 $as_echo_n "checking for $ac_word... " >&6; }
6661 if ${ac_cv_prog_STRIP+:} false; then :
6662   $as_echo_n "(cached) " >&6
6663 else
6664   if test -n "$STRIP"; then
6665   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6666 else
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 for as_dir in $PATH
6669 do
6670   IFS=$as_save_IFS
6671   test -z "$as_dir" && as_dir=.
6672     for ac_exec_ext in '' $ac_executable_extensions; do
6673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6674     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676     break 2
6677   fi
6678 done
6679   done
6680 IFS=$as_save_IFS
6681
6682 fi
6683 fi
6684 STRIP=$ac_cv_prog_STRIP
6685 if test -n "$STRIP"; then
6686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6687 $as_echo "$STRIP" >&6; }
6688 else
6689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690 $as_echo "no" >&6; }
6691 fi
6692
6693
6694 fi
6695 if test -z "$ac_cv_prog_STRIP"; then
6696   ac_ct_STRIP=$STRIP
6697   # Extract the first word of "strip", so it can be a program name with args.
6698 set dummy strip; ac_word=$2
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6700 $as_echo_n "checking for $ac_word... " >&6; }
6701 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6702   $as_echo_n "(cached) " >&6
6703 else
6704   if test -n "$ac_ct_STRIP"; then
6705   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6706 else
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710   IFS=$as_save_IFS
6711   test -z "$as_dir" && as_dir=.
6712     for ac_exec_ext in '' $ac_executable_extensions; do
6713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6714     ac_cv_prog_ac_ct_STRIP="strip"
6715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6716     break 2
6717   fi
6718 done
6719   done
6720 IFS=$as_save_IFS
6721
6722 fi
6723 fi
6724 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6725 if test -n "$ac_ct_STRIP"; then
6726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6727 $as_echo "$ac_ct_STRIP" >&6; }
6728 else
6729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6731 fi
6732
6733   if test "x$ac_ct_STRIP" = x; then
6734     STRIP=":"
6735   else
6736     case $cross_compiling:$ac_tool_warned in
6737 yes:)
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6740 ac_tool_warned=yes ;;
6741 esac
6742     STRIP=$ac_ct_STRIP
6743   fi
6744 else
6745   STRIP="$ac_cv_prog_STRIP"
6746 fi
6747
6748 test -z "$STRIP" && STRIP=:
6749
6750
6751
6752
6753
6754
6755 if test -n "$ac_tool_prefix"; then
6756   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6757 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_prog_RANLIB+:} false; then :
6761   $as_echo_n "(cached) " >&6
6762 else
6763   if test -n "$RANLIB"; then
6764   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769   IFS=$as_save_IFS
6770   test -z "$as_dir" && as_dir=.
6771     for ac_exec_ext in '' $ac_executable_extensions; do
6772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775     break 2
6776   fi
6777 done
6778   done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 RANLIB=$ac_cv_prog_RANLIB
6784 if test -n "$RANLIB"; then
6785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6786 $as_echo "$RANLIB" >&6; }
6787 else
6788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6790 fi
6791
6792
6793 fi
6794 if test -z "$ac_cv_prog_RANLIB"; then
6795   ac_ct_RANLIB=$RANLIB
6796   # Extract the first word of "ranlib", so it can be a program name with args.
6797 set dummy ranlib; ac_word=$2
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 $as_echo_n "checking for $ac_word... " >&6; }
6800 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6801   $as_echo_n "(cached) " >&6
6802 else
6803   if test -n "$ac_ct_RANLIB"; then
6804   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809   IFS=$as_save_IFS
6810   test -z "$as_dir" && as_dir=.
6811     for ac_exec_ext in '' $ac_executable_extensions; do
6812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813     ac_cv_prog_ac_ct_RANLIB="ranlib"
6814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815     break 2
6816   fi
6817 done
6818   done
6819 IFS=$as_save_IFS
6820
6821 fi
6822 fi
6823 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6824 if test -n "$ac_ct_RANLIB"; then
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6826 $as_echo "$ac_ct_RANLIB" >&6; }
6827 else
6828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6830 fi
6831
6832   if test "x$ac_ct_RANLIB" = x; then
6833     RANLIB=":"
6834   else
6835     case $cross_compiling:$ac_tool_warned in
6836 yes:)
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6839 ac_tool_warned=yes ;;
6840 esac
6841     RANLIB=$ac_ct_RANLIB
6842   fi
6843 else
6844   RANLIB="$ac_cv_prog_RANLIB"
6845 fi
6846
6847 test -z "$RANLIB" && RANLIB=:
6848
6849
6850
6851
6852
6853
6854 # Determine commands to create old-style static archives.
6855 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6856 old_postinstall_cmds='chmod 644 $oldlib'
6857 old_postuninstall_cmds=
6858
6859 if test -n "$RANLIB"; then
6860   case $host_os in
6861   openbsd*)
6862     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6863     ;;
6864   *)
6865     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6866     ;;
6867   esac
6868   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6869 fi
6870
6871 case $host_os in
6872   darwin*)
6873     lock_old_archive_extraction=yes ;;
6874   *)
6875     lock_old_archive_extraction=no ;;
6876 esac
6877
6878
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 # If no C compiler was specified, use CC.
6917 LTCC=${LTCC-"$CC"}
6918
6919 # If no C compiler flags were specified, use CFLAGS.
6920 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6921
6922 # Allow CC to be a program name with arguments.
6923 compiler=$CC
6924
6925
6926 # Check for command to grab the raw symbol name followed by C symbol from nm.
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6928 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6929 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6930   $as_echo_n "(cached) " >&6
6931 else
6932
6933 # These are sane defaults that work on at least a few old systems.
6934 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6935
6936 # Character class describing NM global symbol codes.
6937 symcode='[BCDEGRST]'
6938
6939 # Regexp to match symbols that can be accessed directly from C.
6940 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6941
6942 # Define system-specific variables.
6943 case $host_os in
6944 aix*)
6945   symcode='[BCDT]'
6946   ;;
6947 cygwin* | mingw* | pw32* | cegcc*)
6948   symcode='[ABCDGISTW]'
6949   ;;
6950 hpux*)
6951   if test "$host_cpu" = ia64; then
6952     symcode='[ABCDEGRST]'
6953   fi
6954   ;;
6955 irix* | nonstopux*)
6956   symcode='[BCDEGRST]'
6957   ;;
6958 osf*)
6959   symcode='[BCDEGQRST]'
6960   ;;
6961 solaris*)
6962   symcode='[BDRT]'
6963   ;;
6964 sco3.2v5*)
6965   symcode='[DT]'
6966   ;;
6967 sysv4.2uw2*)
6968   symcode='[DT]'
6969   ;;
6970 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6971   symcode='[ABDT]'
6972   ;;
6973 sysv4)
6974   symcode='[DFNSTU]'
6975   ;;
6976 esac
6977
6978 # If we're using GNU nm, then use its standard symbol codes.
6979 case `$NM -V 2>&1` in
6980 *GNU* | *'with BFD'*)
6981   symcode='[ABCDGIRSTW]' ;;
6982 esac
6983
6984 # Transform an extracted symbol line into a proper C declaration.
6985 # Some systems (esp. on ia64) link data and code symbols differently,
6986 # so use this general approach.
6987 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6988
6989 # Transform an extracted symbol line into symbol name and symbol address
6990 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6991 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6992
6993 # Handle CRLF in mingw tool chain
6994 opt_cr=
6995 case $build_os in
6996 mingw*)
6997   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6998   ;;
6999 esac
7000
7001 # Try without a prefix underscore, then with it.
7002 for ac_symprfx in "" "_"; do
7003
7004   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7005   symxfrm="\\1 $ac_symprfx\\2 \\2"
7006
7007   # Write the raw and C identifiers.
7008   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7009     # Fake it for dumpbin and say T for any non-static function
7010     # and D for any global variable.
7011     # Also find C++ and __fastcall symbols from MSVC++,
7012     # which start with @ or ?.
7013     lt_cv_sys_global_symbol_pipe="$AWK '"\
7014 "     {last_section=section; section=\$ 3};"\
7015 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7016 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7017 "     \$ 0!~/External *\|/{next};"\
7018 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7019 "     {if(hide[section]) next};"\
7020 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7021 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7022 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7023 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7024 "     ' prfx=^$ac_symprfx"
7025   else
7026     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7027   fi
7028   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7029
7030   # Check to see that the pipe works correctly.
7031   pipe_works=no
7032
7033   rm -f conftest*
7034   cat > conftest.$ac_ext <<_LT_EOF
7035 #ifdef __cplusplus
7036 extern "C" {
7037 #endif
7038 char nm_test_var;
7039 void nm_test_func(void);
7040 void nm_test_func(void){}
7041 #ifdef __cplusplus
7042 }
7043 #endif
7044 int main(){nm_test_var='a';nm_test_func();return(0);}
7045 _LT_EOF
7046
7047   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7048   (eval $ac_compile) 2>&5
7049   ac_status=$?
7050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7051   test $ac_status = 0; }; then
7052     # Now try to grab the symbols.
7053     nlist=conftest.nm
7054     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7055   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7056   ac_status=$?
7057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7058   test $ac_status = 0; } && test -s "$nlist"; then
7059       # Try sorting and uniquifying the output.
7060       if sort "$nlist" | uniq > "$nlist"T; then
7061         mv -f "$nlist"T "$nlist"
7062       else
7063         rm -f "$nlist"T
7064       fi
7065
7066       # Make sure that we snagged all the symbols we need.
7067       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7068         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7069           cat <<_LT_EOF > conftest.$ac_ext
7070 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7071 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7072 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7073    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7074 # define LT_DLSYM_CONST
7075 #elif defined(__osf__)
7076 /* This system does not cope well with relocations in const data.  */
7077 # define LT_DLSYM_CONST
7078 #else
7079 # define LT_DLSYM_CONST const
7080 #endif
7081
7082 #ifdef __cplusplus
7083 extern "C" {
7084 #endif
7085
7086 _LT_EOF
7087           # Now generate the symbol file.
7088           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7089
7090           cat <<_LT_EOF >> conftest.$ac_ext
7091
7092 /* The mapping between symbol names and symbols.  */
7093 LT_DLSYM_CONST struct {
7094   const char *name;
7095   void       *address;
7096 }
7097 lt__PROGRAM__LTX_preloaded_symbols[] =
7098 {
7099   { "@PROGRAM@", (void *) 0 },
7100 _LT_EOF
7101           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7102           cat <<\_LT_EOF >> conftest.$ac_ext
7103   {0, (void *) 0}
7104 };
7105
7106 /* This works around a problem in FreeBSD linker */
7107 #ifdef FREEBSD_WORKAROUND
7108 static const void *lt_preloaded_setup() {
7109   return lt__PROGRAM__LTX_preloaded_symbols;
7110 }
7111 #endif
7112
7113 #ifdef __cplusplus
7114 }
7115 #endif
7116 _LT_EOF
7117           # Now try linking the two files.
7118           mv conftest.$ac_objext conftstm.$ac_objext
7119           lt_globsym_save_LIBS=$LIBS
7120           lt_globsym_save_CFLAGS=$CFLAGS
7121           LIBS="conftstm.$ac_objext"
7122           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7123           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7124   (eval $ac_link) 2>&5
7125   ac_status=$?
7126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7127   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7128             pipe_works=yes
7129           fi
7130           LIBS=$lt_globsym_save_LIBS
7131           CFLAGS=$lt_globsym_save_CFLAGS
7132         else
7133           echo "cannot find nm_test_func in $nlist" >&5
7134         fi
7135       else
7136         echo "cannot find nm_test_var in $nlist" >&5
7137       fi
7138     else
7139       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7140     fi
7141   else
7142     echo "$progname: failed program was:" >&5
7143     cat conftest.$ac_ext >&5
7144   fi
7145   rm -rf conftest* conftst*
7146
7147   # Do not use the global_symbol_pipe unless it works.
7148   if test "$pipe_works" = yes; then
7149     break
7150   else
7151     lt_cv_sys_global_symbol_pipe=
7152   fi
7153 done
7154
7155 fi
7156
7157 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7158   lt_cv_sys_global_symbol_to_cdecl=
7159 fi
7160 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7162 $as_echo "failed" >&6; }
7163 else
7164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7165 $as_echo "ok" >&6; }
7166 fi
7167
7168 # Response file support.
7169 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7170   nm_file_list_spec='@'
7171 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7172   nm_file_list_spec='@'
7173 fi
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7202 $as_echo_n "checking for sysroot... " >&6; }
7203
7204 # Check whether --with-sysroot was given.
7205 if test "${with_sysroot+set}" = set; then :
7206   withval=$with_sysroot;
7207 else
7208   with_sysroot=no
7209 fi
7210
7211
7212 lt_sysroot=
7213 case ${with_sysroot} in #(
7214  yes)
7215    if test "$GCC" = yes; then
7216      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7217    fi
7218    ;; #(
7219  /*)
7220    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7221    ;; #(
7222  no|'')
7223    ;; #(
7224  *)
7225    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7226 $as_echo "${with_sysroot}" >&6; }
7227    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7228    ;;
7229 esac
7230
7231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7232 $as_echo "${lt_sysroot:-no}" >&6; }
7233
7234
7235
7236
7237
7238 # Check whether --enable-libtool-lock was given.
7239 if test "${enable_libtool_lock+set}" = set; then :
7240   enableval=$enable_libtool_lock;
7241 fi
7242
7243 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7244
7245 # Some flags need to be propagated to the compiler or linker for good
7246 # libtool support.
7247 case $host in
7248 ia64-*-hpux*)
7249   # Find out which ABI we are using.
7250   echo 'int i;' > conftest.$ac_ext
7251   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7252   (eval $ac_compile) 2>&5
7253   ac_status=$?
7254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7255   test $ac_status = 0; }; then
7256     case `/usr/bin/file conftest.$ac_objext` in
7257       *ELF-32*)
7258         HPUX_IA64_MODE="32"
7259         ;;
7260       *ELF-64*)
7261         HPUX_IA64_MODE="64"
7262         ;;
7263     esac
7264   fi
7265   rm -rf conftest*
7266   ;;
7267 *-*-irix6*)
7268   # Find out which ABI we are using.
7269   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7270   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7271   (eval $ac_compile) 2>&5
7272   ac_status=$?
7273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7274   test $ac_status = 0; }; then
7275     if test "$lt_cv_prog_gnu_ld" = yes; then
7276       case `/usr/bin/file conftest.$ac_objext` in
7277         *32-bit*)
7278           LD="${LD-ld} -melf32bsmip"
7279           ;;
7280         *N32*)
7281           LD="${LD-ld} -melf32bmipn32"
7282           ;;
7283         *64-bit*)
7284           LD="${LD-ld} -melf64bmip"
7285         ;;
7286       esac
7287     else
7288       case `/usr/bin/file conftest.$ac_objext` in
7289         *32-bit*)
7290           LD="${LD-ld} -32"
7291           ;;
7292         *N32*)
7293           LD="${LD-ld} -n32"
7294           ;;
7295         *64-bit*)
7296           LD="${LD-ld} -64"
7297           ;;
7298       esac
7299     fi
7300   fi
7301   rm -rf conftest*
7302   ;;
7303
7304 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7305 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7306   # Find out which ABI we are using.
7307   echo 'int i;' > conftest.$ac_ext
7308   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7309   (eval $ac_compile) 2>&5
7310   ac_status=$?
7311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7312   test $ac_status = 0; }; then
7313     case `/usr/bin/file conftest.o` in
7314       *32-bit*)
7315         case $host in
7316           x86_64-*kfreebsd*-gnu)
7317             LD="${LD-ld} -m elf_i386_fbsd"
7318             ;;
7319           x86_64-*linux*)
7320             case `/usr/bin/file conftest.o` in
7321               *x86-64*)
7322                 LD="${LD-ld} -m elf32_x86_64"
7323                 ;;
7324               *)
7325                 LD="${LD-ld} -m elf_i386"
7326                 ;;
7327             esac
7328             ;;
7329           powerpc64le-*)
7330             LD="${LD-ld} -m elf32lppclinux"
7331             ;;
7332           powerpc64-*)
7333             LD="${LD-ld} -m elf32ppclinux"
7334             ;;
7335           s390x-*linux*)
7336             LD="${LD-ld} -m elf_s390"
7337             ;;
7338           sparc64-*linux*)
7339             LD="${LD-ld} -m elf32_sparc"
7340             ;;
7341         esac
7342         ;;
7343       *64-bit*)
7344         case $host in
7345           x86_64-*kfreebsd*-gnu)
7346             LD="${LD-ld} -m elf_x86_64_fbsd"
7347             ;;
7348           x86_64-*linux*)
7349             LD="${LD-ld} -m elf_x86_64"
7350             ;;
7351           powerpcle-*)
7352             LD="${LD-ld} -m elf64lppc"
7353             ;;
7354           powerpc-*)
7355             LD="${LD-ld} -m elf64ppc"
7356             ;;
7357           s390*-*linux*|s390*-*tpf*)
7358             LD="${LD-ld} -m elf64_s390"
7359             ;;
7360           sparc*-*linux*)
7361             LD="${LD-ld} -m elf64_sparc"
7362             ;;
7363         esac
7364         ;;
7365     esac
7366   fi
7367   rm -rf conftest*
7368   ;;
7369
7370 *-*-sco3.2v5*)
7371   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7372   SAVE_CFLAGS="$CFLAGS"
7373   CFLAGS="$CFLAGS -belf"
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7375 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7376 if ${lt_cv_cc_needs_belf+:} false; then :
7377   $as_echo_n "(cached) " >&6
7378 else
7379   ac_ext=c
7380 ac_cpp='$CPP $CPPFLAGS'
7381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7384
7385      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h.  */
7387
7388 int
7389 main ()
7390 {
7391
7392   ;
7393   return 0;
7394 }
7395 _ACEOF
7396 if ac_fn_c_try_link "$LINENO"; then :
7397   lt_cv_cc_needs_belf=yes
7398 else
7399   lt_cv_cc_needs_belf=no
7400 fi
7401 rm -f core conftest.err conftest.$ac_objext \
7402     conftest$ac_exeext conftest.$ac_ext
7403      ac_ext=c
7404 ac_cpp='$CPP $CPPFLAGS'
7405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7408
7409 fi
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7411 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7412   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7413     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7414     CFLAGS="$SAVE_CFLAGS"
7415   fi
7416   ;;
7417 *-*solaris*)
7418   # Find out which ABI we are using.
7419   echo 'int i;' > conftest.$ac_ext
7420   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7421   (eval $ac_compile) 2>&5
7422   ac_status=$?
7423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7424   test $ac_status = 0; }; then
7425     case `/usr/bin/file conftest.o` in
7426     *64-bit*)
7427       case $lt_cv_prog_gnu_ld in
7428       yes*)
7429         case $host in
7430         i?86-*-solaris*)
7431           LD="${LD-ld} -m elf_x86_64"
7432           ;;
7433         sparc*-*-solaris*)
7434           LD="${LD-ld} -m elf64_sparc"
7435           ;;
7436         esac
7437         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7438         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7439           LD="${LD-ld}_sol2"
7440         fi
7441         ;;
7442       *)
7443         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7444           LD="${LD-ld} -64"
7445         fi
7446         ;;
7447       esac
7448       ;;
7449     esac
7450   fi
7451   rm -rf conftest*
7452   ;;
7453 esac
7454
7455 need_locks="$enable_libtool_lock"
7456
7457 if test -n "$ac_tool_prefix"; then
7458   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7459 set dummy ${ac_tool_prefix}mt; ac_word=$2
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7461 $as_echo_n "checking for $ac_word... " >&6; }
7462 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7463   $as_echo_n "(cached) " >&6
7464 else
7465   if test -n "$MANIFEST_TOOL"; then
7466   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7467 else
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7470 do
7471   IFS=$as_save_IFS
7472   test -z "$as_dir" && as_dir=.
7473     for ac_exec_ext in '' $ac_executable_extensions; do
7474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7475     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7477     break 2
7478   fi
7479 done
7480   done
7481 IFS=$as_save_IFS
7482
7483 fi
7484 fi
7485 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7486 if test -n "$MANIFEST_TOOL"; then
7487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7488 $as_echo "$MANIFEST_TOOL" >&6; }
7489 else
7490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7492 fi
7493
7494
7495 fi
7496 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7497   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7498   # Extract the first word of "mt", so it can be a program name with args.
7499 set dummy mt; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7503   $as_echo_n "(cached) " >&6
7504 else
7505   if test -n "$ac_ct_MANIFEST_TOOL"; then
7506   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7507 else
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511   IFS=$as_save_IFS
7512   test -z "$as_dir" && as_dir=.
7513     for ac_exec_ext in '' $ac_executable_extensions; do
7514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517     break 2
7518   fi
7519 done
7520   done
7521 IFS=$as_save_IFS
7522
7523 fi
7524 fi
7525 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7526 if test -n "$ac_ct_MANIFEST_TOOL"; then
7527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7528 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7529 else
7530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7532 fi
7533
7534   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7535     MANIFEST_TOOL=":"
7536   else
7537     case $cross_compiling:$ac_tool_warned in
7538 yes:)
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7541 ac_tool_warned=yes ;;
7542 esac
7543     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7544   fi
7545 else
7546   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7547 fi
7548
7549 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7551 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7552 if ${lt_cv_path_mainfest_tool+:} false; then :
7553   $as_echo_n "(cached) " >&6
7554 else
7555   lt_cv_path_mainfest_tool=no
7556   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7557   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7558   cat conftest.err >&5
7559   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7560     lt_cv_path_mainfest_tool=yes
7561   fi
7562   rm -f conftest*
7563 fi
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7565 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7566 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7567   MANIFEST_TOOL=:
7568 fi
7569
7570
7571
7572
7573
7574
7575   case $host_os in
7576     rhapsody* | darwin*)
7577     if test -n "$ac_tool_prefix"; then
7578   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7579 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7583   $as_echo_n "(cached) " >&6
7584 else
7585   if test -n "$DSYMUTIL"; then
7586   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7590 do
7591   IFS=$as_save_IFS
7592   test -z "$as_dir" && as_dir=.
7593     for ac_exec_ext in '' $ac_executable_extensions; do
7594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7595     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597     break 2
7598   fi
7599 done
7600   done
7601 IFS=$as_save_IFS
7602
7603 fi
7604 fi
7605 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7606 if test -n "$DSYMUTIL"; then
7607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7608 $as_echo "$DSYMUTIL" >&6; }
7609 else
7610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7612 fi
7613
7614
7615 fi
7616 if test -z "$ac_cv_prog_DSYMUTIL"; then
7617   ac_ct_DSYMUTIL=$DSYMUTIL
7618   # Extract the first word of "dsymutil", so it can be a program name with args.
7619 set dummy dsymutil; ac_word=$2
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621 $as_echo_n "checking for $ac_word... " >&6; }
7622 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7623   $as_echo_n "(cached) " >&6
7624 else
7625   if test -n "$ac_ct_DSYMUTIL"; then
7626   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7627 else
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 for as_dir in $PATH
7630 do
7631   IFS=$as_save_IFS
7632   test -z "$as_dir" && as_dir=.
7633     for ac_exec_ext in '' $ac_executable_extensions; do
7634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7635     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637     break 2
7638   fi
7639 done
7640   done
7641 IFS=$as_save_IFS
7642
7643 fi
7644 fi
7645 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7646 if test -n "$ac_ct_DSYMUTIL"; then
7647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7648 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7649 else
7650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 $as_echo "no" >&6; }
7652 fi
7653
7654   if test "x$ac_ct_DSYMUTIL" = x; then
7655     DSYMUTIL=":"
7656   else
7657     case $cross_compiling:$ac_tool_warned in
7658 yes:)
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7661 ac_tool_warned=yes ;;
7662 esac
7663     DSYMUTIL=$ac_ct_DSYMUTIL
7664   fi
7665 else
7666   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7667 fi
7668
7669     if test -n "$ac_tool_prefix"; then
7670   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7671 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if ${ac_cv_prog_NMEDIT+:} false; then :
7675   $as_echo_n "(cached) " >&6
7676 else
7677   if test -n "$NMEDIT"; then
7678   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7679 else
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7682 do
7683   IFS=$as_save_IFS
7684   test -z "$as_dir" && as_dir=.
7685     for ac_exec_ext in '' $ac_executable_extensions; do
7686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7687     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689     break 2
7690   fi
7691 done
7692   done
7693 IFS=$as_save_IFS
7694
7695 fi
7696 fi
7697 NMEDIT=$ac_cv_prog_NMEDIT
7698 if test -n "$NMEDIT"; then
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7700 $as_echo "$NMEDIT" >&6; }
7701 else
7702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7704 fi
7705
7706
7707 fi
7708 if test -z "$ac_cv_prog_NMEDIT"; then
7709   ac_ct_NMEDIT=$NMEDIT
7710   # Extract the first word of "nmedit", so it can be a program name with args.
7711 set dummy nmedit; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7715   $as_echo_n "(cached) " >&6
7716 else
7717   if test -n "$ac_ct_NMEDIT"; then
7718   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7719 else
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7722 do
7723   IFS=$as_save_IFS
7724   test -z "$as_dir" && as_dir=.
7725     for ac_exec_ext in '' $ac_executable_extensions; do
7726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729     break 2
7730   fi
7731 done
7732   done
7733 IFS=$as_save_IFS
7734
7735 fi
7736 fi
7737 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7738 if test -n "$ac_ct_NMEDIT"; then
7739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7740 $as_echo "$ac_ct_NMEDIT" >&6; }
7741 else
7742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7744 fi
7745
7746   if test "x$ac_ct_NMEDIT" = x; then
7747     NMEDIT=":"
7748   else
7749     case $cross_compiling:$ac_tool_warned in
7750 yes:)
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7753 ac_tool_warned=yes ;;
7754 esac
7755     NMEDIT=$ac_ct_NMEDIT
7756   fi
7757 else
7758   NMEDIT="$ac_cv_prog_NMEDIT"
7759 fi
7760
7761     if test -n "$ac_tool_prefix"; then
7762   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7763 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if ${ac_cv_prog_LIPO+:} false; then :
7767   $as_echo_n "(cached) " >&6
7768 else
7769   if test -n "$LIPO"; then
7770   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7771 else
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7774 do
7775   IFS=$as_save_IFS
7776   test -z "$as_dir" && as_dir=.
7777     for ac_exec_ext in '' $ac_executable_extensions; do
7778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7779     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781     break 2
7782   fi
7783 done
7784   done
7785 IFS=$as_save_IFS
7786
7787 fi
7788 fi
7789 LIPO=$ac_cv_prog_LIPO
7790 if test -n "$LIPO"; then
7791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7792 $as_echo "$LIPO" >&6; }
7793 else
7794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7796 fi
7797
7798
7799 fi
7800 if test -z "$ac_cv_prog_LIPO"; then
7801   ac_ct_LIPO=$LIPO
7802   # Extract the first word of "lipo", so it can be a program name with args.
7803 set dummy lipo; ac_word=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7807   $as_echo_n "(cached) " >&6
7808 else
7809   if test -n "$ac_ct_LIPO"; then
7810   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7814 do
7815   IFS=$as_save_IFS
7816   test -z "$as_dir" && as_dir=.
7817     for ac_exec_ext in '' $ac_executable_extensions; do
7818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7819     ac_cv_prog_ac_ct_LIPO="lipo"
7820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821     break 2
7822   fi
7823 done
7824   done
7825 IFS=$as_save_IFS
7826
7827 fi
7828 fi
7829 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7830 if test -n "$ac_ct_LIPO"; then
7831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7832 $as_echo "$ac_ct_LIPO" >&6; }
7833 else
7834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7836 fi
7837
7838   if test "x$ac_ct_LIPO" = x; then
7839     LIPO=":"
7840   else
7841     case $cross_compiling:$ac_tool_warned in
7842 yes:)
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7845 ac_tool_warned=yes ;;
7846 esac
7847     LIPO=$ac_ct_LIPO
7848   fi
7849 else
7850   LIPO="$ac_cv_prog_LIPO"
7851 fi
7852
7853     if test -n "$ac_tool_prefix"; then
7854   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7855 set dummy ${ac_tool_prefix}otool; ac_word=$2
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857 $as_echo_n "checking for $ac_word... " >&6; }
7858 if ${ac_cv_prog_OTOOL+:} false; then :
7859   $as_echo_n "(cached) " >&6
7860 else
7861   if test -n "$OTOOL"; then
7862   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7863 else
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 for as_dir in $PATH
7866 do
7867   IFS=$as_save_IFS
7868   test -z "$as_dir" && as_dir=.
7869     for ac_exec_ext in '' $ac_executable_extensions; do
7870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7871     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7873     break 2
7874   fi
7875 done
7876   done
7877 IFS=$as_save_IFS
7878
7879 fi
7880 fi
7881 OTOOL=$ac_cv_prog_OTOOL
7882 if test -n "$OTOOL"; then
7883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7884 $as_echo "$OTOOL" >&6; }
7885 else
7886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887 $as_echo "no" >&6; }
7888 fi
7889
7890
7891 fi
7892 if test -z "$ac_cv_prog_OTOOL"; then
7893   ac_ct_OTOOL=$OTOOL
7894   # Extract the first word of "otool", so it can be a program name with args.
7895 set dummy otool; ac_word=$2
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7897 $as_echo_n "checking for $ac_word... " >&6; }
7898 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7899   $as_echo_n "(cached) " >&6
7900 else
7901   if test -n "$ac_ct_OTOOL"; then
7902   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7903 else
7904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905 for as_dir in $PATH
7906 do
7907   IFS=$as_save_IFS
7908   test -z "$as_dir" && as_dir=.
7909     for ac_exec_ext in '' $ac_executable_extensions; do
7910   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7911     ac_cv_prog_ac_ct_OTOOL="otool"
7912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7913     break 2
7914   fi
7915 done
7916   done
7917 IFS=$as_save_IFS
7918
7919 fi
7920 fi
7921 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7922 if test -n "$ac_ct_OTOOL"; then
7923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7924 $as_echo "$ac_ct_OTOOL" >&6; }
7925 else
7926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7927 $as_echo "no" >&6; }
7928 fi
7929
7930   if test "x$ac_ct_OTOOL" = x; then
7931     OTOOL=":"
7932   else
7933     case $cross_compiling:$ac_tool_warned in
7934 yes:)
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7937 ac_tool_warned=yes ;;
7938 esac
7939     OTOOL=$ac_ct_OTOOL
7940   fi
7941 else
7942   OTOOL="$ac_cv_prog_OTOOL"
7943 fi
7944
7945     if test -n "$ac_tool_prefix"; then
7946   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7947 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if ${ac_cv_prog_OTOOL64+:} false; then :
7951   $as_echo_n "(cached) " >&6
7952 else
7953   if test -n "$OTOOL64"; then
7954   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7955 else
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7958 do
7959   IFS=$as_save_IFS
7960   test -z "$as_dir" && as_dir=.
7961     for ac_exec_ext in '' $ac_executable_extensions; do
7962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7963     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965     break 2
7966   fi
7967 done
7968   done
7969 IFS=$as_save_IFS
7970
7971 fi
7972 fi
7973 OTOOL64=$ac_cv_prog_OTOOL64
7974 if test -n "$OTOOL64"; then
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7976 $as_echo "$OTOOL64" >&6; }
7977 else
7978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7980 fi
7981
7982
7983 fi
7984 if test -z "$ac_cv_prog_OTOOL64"; then
7985   ac_ct_OTOOL64=$OTOOL64
7986   # Extract the first word of "otool64", so it can be a program name with args.
7987 set dummy otool64; ac_word=$2
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989 $as_echo_n "checking for $ac_word... " >&6; }
7990 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7991   $as_echo_n "(cached) " >&6
7992 else
7993   if test -n "$ac_ct_OTOOL64"; then
7994   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7995 else
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 for as_dir in $PATH
7998 do
7999   IFS=$as_save_IFS
8000   test -z "$as_dir" && as_dir=.
8001     for ac_exec_ext in '' $ac_executable_extensions; do
8002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8003     ac_cv_prog_ac_ct_OTOOL64="otool64"
8004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005     break 2
8006   fi
8007 done
8008   done
8009 IFS=$as_save_IFS
8010
8011 fi
8012 fi
8013 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8014 if test -n "$ac_ct_OTOOL64"; then
8015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8016 $as_echo "$ac_ct_OTOOL64" >&6; }
8017 else
8018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019 $as_echo "no" >&6; }
8020 fi
8021
8022   if test "x$ac_ct_OTOOL64" = x; then
8023     OTOOL64=":"
8024   else
8025     case $cross_compiling:$ac_tool_warned in
8026 yes:)
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8029 ac_tool_warned=yes ;;
8030 esac
8031     OTOOL64=$ac_ct_OTOOL64
8032   fi
8033 else
8034   OTOOL64="$ac_cv_prog_OTOOL64"
8035 fi
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8064 $as_echo_n "checking for -single_module linker flag... " >&6; }
8065 if ${lt_cv_apple_cc_single_mod+:} false; then :
8066   $as_echo_n "(cached) " >&6
8067 else
8068   lt_cv_apple_cc_single_mod=no
8069       if test -z "${LT_MULTI_MODULE}"; then
8070         # By default we will add the -single_module flag. You can override
8071         # by either setting the environment variable LT_MULTI_MODULE
8072         # non-empty at configure time, or by adding -multi_module to the
8073         # link flags.
8074         rm -rf libconftest.dylib*
8075         echo "int foo(void){return 1;}" > conftest.c
8076         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8077 -dynamiclib -Wl,-single_module conftest.c" >&5
8078         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8079           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8080         _lt_result=$?
8081         # If there is a non-empty error log, and "single_module"
8082         # appears in it, assume the flag caused a linker warning
8083         if test -s conftest.err && $GREP single_module conftest.err; then
8084           cat conftest.err >&5
8085         # Otherwise, if the output was created with a 0 exit code from
8086         # the compiler, it worked.
8087         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8088           lt_cv_apple_cc_single_mod=yes
8089         else
8090           cat conftest.err >&5
8091         fi
8092         rm -rf libconftest.dylib*
8093         rm -f conftest.*
8094       fi
8095 fi
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8097 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8098
8099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8100 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8101 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8102   $as_echo_n "(cached) " >&6
8103 else
8104   lt_cv_ld_exported_symbols_list=no
8105       save_LDFLAGS=$LDFLAGS
8106       echo "_main" > conftest.sym
8107       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8108       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h.  */
8110
8111 int
8112 main ()
8113 {
8114
8115   ;
8116   return 0;
8117 }
8118 _ACEOF
8119 if ac_fn_c_try_link "$LINENO"; then :
8120   lt_cv_ld_exported_symbols_list=yes
8121 else
8122   lt_cv_ld_exported_symbols_list=no
8123 fi
8124 rm -f core conftest.err conftest.$ac_objext \
8125     conftest$ac_exeext conftest.$ac_ext
8126         LDFLAGS="$save_LDFLAGS"
8127
8128 fi
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8130 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8131
8132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8133 $as_echo_n "checking for -force_load linker flag... " >&6; }
8134 if ${lt_cv_ld_force_load+:} false; then :
8135   $as_echo_n "(cached) " >&6
8136 else
8137   lt_cv_ld_force_load=no
8138       cat > conftest.c << _LT_EOF
8139 int forced_loaded() { return 2;}
8140 _LT_EOF
8141       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8142       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8143       echo "$AR cru libconftest.a conftest.o" >&5
8144       $AR cru libconftest.a conftest.o 2>&5
8145       echo "$RANLIB libconftest.a" >&5
8146       $RANLIB libconftest.a 2>&5
8147       cat > conftest.c << _LT_EOF
8148 int main() { return 0;}
8149 _LT_EOF
8150       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8151       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8152       _lt_result=$?
8153       if test -s conftest.err && $GREP force_load conftest.err; then
8154         cat conftest.err >&5
8155       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8156         lt_cv_ld_force_load=yes
8157       else
8158         cat conftest.err >&5
8159       fi
8160         rm -f conftest.err libconftest.a conftest conftest.c
8161         rm -rf conftest.dSYM
8162
8163 fi
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8165 $as_echo "$lt_cv_ld_force_load" >&6; }
8166     case $host_os in
8167     rhapsody* | darwin1.[012])
8168       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8169     darwin1.*)
8170       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8171     darwin*) # darwin 5.x on
8172       # if running on 10.5 or later, the deployment target defaults
8173       # to the OS version, if on x86, and 10.4, the deployment
8174       # target defaults to 10.4. Don't you love it?
8175       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8176         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8177           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8178         10.[012]*)
8179           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8180         10.*)
8181           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8182       esac
8183     ;;
8184   esac
8185     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8186       _lt_dar_single_mod='$single_module'
8187     fi
8188     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8189       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8190     else
8191       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8192     fi
8193     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8194       _lt_dsymutil='~$DSYMUTIL $lib || :'
8195     else
8196       _lt_dsymutil=
8197     fi
8198     ;;
8199   esac
8200
8201 ac_ext=c
8202 ac_cpp='$CPP $CPPFLAGS'
8203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8207 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8208 # On Suns, sometimes $CPP names a directory.
8209 if test -n "$CPP" && test -d "$CPP"; then
8210   CPP=
8211 fi
8212 if test -z "$CPP"; then
8213   if ${ac_cv_prog_CPP+:} false; then :
8214   $as_echo_n "(cached) " >&6
8215 else
8216       # Double quotes because CPP needs to be expanded
8217     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8218     do
8219       ac_preproc_ok=false
8220 for ac_c_preproc_warn_flag in '' yes
8221 do
8222   # Use a header file that comes with gcc, so configuring glibc
8223   # with a fresh cross-compiler works.
8224   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8225   # <limits.h> exists even on freestanding compilers.
8226   # On the NeXT, cc -E runs the code through the compiler's parser,
8227   # not just through cpp. "Syntax error" is here to catch this case.
8228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h.  */
8230 #ifdef __STDC__
8231 # include <limits.h>
8232 #else
8233 # include <assert.h>
8234 #endif
8235                      Syntax error
8236 _ACEOF
8237 if ac_fn_c_try_cpp "$LINENO"; then :
8238
8239 else
8240   # Broken: fails on valid input.
8241 continue
8242 fi
8243 rm -f conftest.err conftest.i conftest.$ac_ext
8244
8245   # OK, works on sane cases.  Now check whether nonexistent headers
8246   # can be detected and how.
8247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h.  */
8249 #include <ac_nonexistent.h>
8250 _ACEOF
8251 if ac_fn_c_try_cpp "$LINENO"; then :
8252   # Broken: success on invalid input.
8253 continue
8254 else
8255   # Passes both tests.
8256 ac_preproc_ok=:
8257 break
8258 fi
8259 rm -f conftest.err conftest.i conftest.$ac_ext
8260
8261 done
8262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8263 rm -f conftest.i conftest.err conftest.$ac_ext
8264 if $ac_preproc_ok; then :
8265   break
8266 fi
8267
8268     done
8269     ac_cv_prog_CPP=$CPP
8270
8271 fi
8272   CPP=$ac_cv_prog_CPP
8273 else
8274   ac_cv_prog_CPP=$CPP
8275 fi
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8277 $as_echo "$CPP" >&6; }
8278 ac_preproc_ok=false
8279 for ac_c_preproc_warn_flag in '' yes
8280 do
8281   # Use a header file that comes with gcc, so configuring glibc
8282   # with a fresh cross-compiler works.
8283   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8284   # <limits.h> exists even on freestanding compilers.
8285   # On the NeXT, cc -E runs the code through the compiler's parser,
8286   # not just through cpp. "Syntax error" is here to catch this case.
8287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h.  */
8289 #ifdef __STDC__
8290 # include <limits.h>
8291 #else
8292 # include <assert.h>
8293 #endif
8294                      Syntax error
8295 _ACEOF
8296 if ac_fn_c_try_cpp "$LINENO"; then :
8297
8298 else
8299   # Broken: fails on valid input.
8300 continue
8301 fi
8302 rm -f conftest.err conftest.i conftest.$ac_ext
8303
8304   # OK, works on sane cases.  Now check whether nonexistent headers
8305   # can be detected and how.
8306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h.  */
8308 #include <ac_nonexistent.h>
8309 _ACEOF
8310 if ac_fn_c_try_cpp "$LINENO"; then :
8311   # Broken: success on invalid input.
8312 continue
8313 else
8314   # Passes both tests.
8315 ac_preproc_ok=:
8316 break
8317 fi
8318 rm -f conftest.err conftest.i conftest.$ac_ext
8319
8320 done
8321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8322 rm -f conftest.i conftest.err conftest.$ac_ext
8323 if $ac_preproc_ok; then :
8324
8325 else
8326   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8328 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8329 See \`config.log' for more details" "$LINENO" 5; }
8330 fi
8331
8332 ac_ext=c
8333 ac_cpp='$CPP $CPPFLAGS'
8334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8337
8338
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8340 $as_echo_n "checking for ANSI C header files... " >&6; }
8341 if ${ac_cv_header_stdc+:} false; then :
8342   $as_echo_n "(cached) " >&6
8343 else
8344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345 /* end confdefs.h.  */
8346 #include <stdlib.h>
8347 #include <stdarg.h>
8348 #include <string.h>
8349 #include <float.h>
8350
8351 int
8352 main ()
8353 {
8354
8355   ;
8356   return 0;
8357 }
8358 _ACEOF
8359 if ac_fn_c_try_compile "$LINENO"; then :
8360   ac_cv_header_stdc=yes
8361 else
8362   ac_cv_header_stdc=no
8363 fi
8364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8365
8366 if test $ac_cv_header_stdc = yes; then
8367   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h.  */
8370 #include <string.h>
8371
8372 _ACEOF
8373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8374   $EGREP "memchr" >/dev/null 2>&1; then :
8375
8376 else
8377   ac_cv_header_stdc=no
8378 fi
8379 rm -f conftest*
8380
8381 fi
8382
8383 if test $ac_cv_header_stdc = yes; then
8384   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h.  */
8387 #include <stdlib.h>
8388
8389 _ACEOF
8390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8391   $EGREP "free" >/dev/null 2>&1; then :
8392
8393 else
8394   ac_cv_header_stdc=no
8395 fi
8396 rm -f conftest*
8397
8398 fi
8399
8400 if test $ac_cv_header_stdc = yes; then
8401   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8402   if test "$cross_compiling" = yes; then :
8403   :
8404 else
8405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h.  */
8407 #include <ctype.h>
8408 #include <stdlib.h>
8409 #if ((' ' & 0x0FF) == 0x020)
8410 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8411 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8412 #else
8413 # define ISLOWER(c) \
8414                    (('a' <= (c) && (c) <= 'i') \
8415                      || ('j' <= (c) && (c) <= 'r') \
8416                      || ('s' <= (c) && (c) <= 'z'))
8417 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8418 #endif
8419
8420 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8421 int
8422 main ()
8423 {
8424   int i;
8425   for (i = 0; i < 256; i++)
8426     if (XOR (islower (i), ISLOWER (i))
8427         || toupper (i) != TOUPPER (i))
8428       return 2;
8429   return 0;
8430 }
8431 _ACEOF
8432 if ac_fn_c_try_run "$LINENO"; then :
8433
8434 else
8435   ac_cv_header_stdc=no
8436 fi
8437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8438   conftest.$ac_objext conftest.beam conftest.$ac_ext
8439 fi
8440
8441 fi
8442 fi
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8444 $as_echo "$ac_cv_header_stdc" >&6; }
8445 if test $ac_cv_header_stdc = yes; then
8446
8447 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8448
8449 fi
8450
8451 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8452 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8453                   inttypes.h stdint.h unistd.h
8454 do :
8455   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8456 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8457 "
8458 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8459   cat >>confdefs.h <<_ACEOF
8460 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8461 _ACEOF
8462
8463 fi
8464
8465 done
8466
8467
8468 for ac_header in dlfcn.h
8469 do :
8470   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8471 "
8472 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8473   cat >>confdefs.h <<_ACEOF
8474 #define HAVE_DLFCN_H 1
8475 _ACEOF
8476
8477 fi
8478
8479 done
8480
8481
8482
8483
8484 func_stripname_cnf ()
8485 {
8486   case ${2} in
8487   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8488   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8489   esac
8490 } # func_stripname_cnf
8491
8492
8493
8494
8495
8496 # Set options
8497 enable_win32_dll=yes
8498
8499 case $host in
8500 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8501   if test -n "$ac_tool_prefix"; then
8502   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8503 set dummy ${ac_tool_prefix}as; ac_word=$2
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 $as_echo_n "checking for $ac_word... " >&6; }
8506 if ${ac_cv_prog_AS+:} false; then :
8507   $as_echo_n "(cached) " >&6
8508 else
8509   if test -n "$AS"; then
8510   ac_cv_prog_AS="$AS" # Let the user override the test.
8511 else
8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 for as_dir in $PATH
8514 do
8515   IFS=$as_save_IFS
8516   test -z "$as_dir" && as_dir=.
8517     for ac_exec_ext in '' $ac_executable_extensions; do
8518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8519     ac_cv_prog_AS="${ac_tool_prefix}as"
8520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8521     break 2
8522   fi
8523 done
8524   done
8525 IFS=$as_save_IFS
8526
8527 fi
8528 fi
8529 AS=$ac_cv_prog_AS
8530 if test -n "$AS"; then
8531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8532 $as_echo "$AS" >&6; }
8533 else
8534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8536 fi
8537
8538
8539 fi
8540 if test -z "$ac_cv_prog_AS"; then
8541   ac_ct_AS=$AS
8542   # Extract the first word of "as", so it can be a program name with args.
8543 set dummy as; ac_word=$2
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8545 $as_echo_n "checking for $ac_word... " >&6; }
8546 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8547   $as_echo_n "(cached) " >&6
8548 else
8549   if test -n "$ac_ct_AS"; then
8550   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8551 else
8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553 for as_dir in $PATH
8554 do
8555   IFS=$as_save_IFS
8556   test -z "$as_dir" && as_dir=.
8557     for ac_exec_ext in '' $ac_executable_extensions; do
8558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8559     ac_cv_prog_ac_ct_AS="as"
8560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8561     break 2
8562   fi
8563 done
8564   done
8565 IFS=$as_save_IFS
8566
8567 fi
8568 fi
8569 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8570 if test -n "$ac_ct_AS"; then
8571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8572 $as_echo "$ac_ct_AS" >&6; }
8573 else
8574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8576 fi
8577
8578   if test "x$ac_ct_AS" = x; then
8579     AS="false"
8580   else
8581     case $cross_compiling:$ac_tool_warned in
8582 yes:)
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8585 ac_tool_warned=yes ;;
8586 esac
8587     AS=$ac_ct_AS
8588   fi
8589 else
8590   AS="$ac_cv_prog_AS"
8591 fi
8592
8593   if test -n "$ac_tool_prefix"; then
8594   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8595 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597 $as_echo_n "checking for $ac_word... " >&6; }
8598 if ${ac_cv_prog_DLLTOOL+:} false; then :
8599   $as_echo_n "(cached) " >&6
8600 else
8601   if test -n "$DLLTOOL"; then
8602   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8603 else
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 for as_dir in $PATH
8606 do
8607   IFS=$as_save_IFS
8608   test -z "$as_dir" && as_dir=.
8609     for ac_exec_ext in '' $ac_executable_extensions; do
8610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8611     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8613     break 2
8614   fi
8615 done
8616   done
8617 IFS=$as_save_IFS
8618
8619 fi
8620 fi
8621 DLLTOOL=$ac_cv_prog_DLLTOOL
8622 if test -n "$DLLTOOL"; then
8623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8624 $as_echo "$DLLTOOL" >&6; }
8625 else
8626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8628 fi
8629
8630
8631 fi
8632 if test -z "$ac_cv_prog_DLLTOOL"; then
8633   ac_ct_DLLTOOL=$DLLTOOL
8634   # Extract the first word of "dlltool", so it can be a program name with args.
8635 set dummy dlltool; ac_word=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8639   $as_echo_n "(cached) " >&6
8640 else
8641   if test -n "$ac_ct_DLLTOOL"; then
8642   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8643 else
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645 for as_dir in $PATH
8646 do
8647   IFS=$as_save_IFS
8648   test -z "$as_dir" && as_dir=.
8649     for ac_exec_ext in '' $ac_executable_extensions; do
8650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8651     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653     break 2
8654   fi
8655 done
8656   done
8657 IFS=$as_save_IFS
8658
8659 fi
8660 fi
8661 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8662 if test -n "$ac_ct_DLLTOOL"; then
8663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8664 $as_echo "$ac_ct_DLLTOOL" >&6; }
8665 else
8666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8668 fi
8669
8670   if test "x$ac_ct_DLLTOOL" = x; then
8671     DLLTOOL="false"
8672   else
8673     case $cross_compiling:$ac_tool_warned in
8674 yes:)
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8677 ac_tool_warned=yes ;;
8678 esac
8679     DLLTOOL=$ac_ct_DLLTOOL
8680   fi
8681 else
8682   DLLTOOL="$ac_cv_prog_DLLTOOL"
8683 fi
8684
8685   if test -n "$ac_tool_prefix"; then
8686   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8687 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 $as_echo_n "checking for $ac_word... " >&6; }
8690 if ${ac_cv_prog_OBJDUMP+:} false; then :
8691   $as_echo_n "(cached) " >&6
8692 else
8693   if test -n "$OBJDUMP"; then
8694   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8695 else
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697 for as_dir in $PATH
8698 do
8699   IFS=$as_save_IFS
8700   test -z "$as_dir" && as_dir=.
8701     for ac_exec_ext in '' $ac_executable_extensions; do
8702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8703     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8705     break 2
8706   fi
8707 done
8708   done
8709 IFS=$as_save_IFS
8710
8711 fi
8712 fi
8713 OBJDUMP=$ac_cv_prog_OBJDUMP
8714 if test -n "$OBJDUMP"; then
8715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8716 $as_echo "$OBJDUMP" >&6; }
8717 else
8718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8720 fi
8721
8722
8723 fi
8724 if test -z "$ac_cv_prog_OBJDUMP"; then
8725   ac_ct_OBJDUMP=$OBJDUMP
8726   # Extract the first word of "objdump", so it can be a program name with args.
8727 set dummy objdump; ac_word=$2
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8731   $as_echo_n "(cached) " >&6
8732 else
8733   if test -n "$ac_ct_OBJDUMP"; then
8734   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8735 else
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 for as_dir in $PATH
8738 do
8739   IFS=$as_save_IFS
8740   test -z "$as_dir" && as_dir=.
8741     for ac_exec_ext in '' $ac_executable_extensions; do
8742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8743     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745     break 2
8746   fi
8747 done
8748   done
8749 IFS=$as_save_IFS
8750
8751 fi
8752 fi
8753 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8754 if test -n "$ac_ct_OBJDUMP"; then
8755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8756 $as_echo "$ac_ct_OBJDUMP" >&6; }
8757 else
8758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759 $as_echo "no" >&6; }
8760 fi
8761
8762   if test "x$ac_ct_OBJDUMP" = x; then
8763     OBJDUMP="false"
8764   else
8765     case $cross_compiling:$ac_tool_warned in
8766 yes:)
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8769 ac_tool_warned=yes ;;
8770 esac
8771     OBJDUMP=$ac_ct_OBJDUMP
8772   fi
8773 else
8774   OBJDUMP="$ac_cv_prog_OBJDUMP"
8775 fi
8776
8777   ;;
8778 esac
8779
8780 test -z "$AS" && AS=as
8781
8782
8783
8784
8785
8786 test -z "$DLLTOOL" && DLLTOOL=dlltool
8787
8788
8789
8790
8791
8792 test -z "$OBJDUMP" && OBJDUMP=objdump
8793
8794
8795
8796
8797
8798
8799
8800         enable_dlopen=no
8801
8802
8803
8804             # Check whether --enable-shared was given.
8805 if test "${enable_shared+set}" = set; then :
8806   enableval=$enable_shared; p=${PACKAGE-default}
8807     case $enableval in
8808     yes) enable_shared=yes ;;
8809     no) enable_shared=no ;;
8810     *)
8811       enable_shared=no
8812       # Look at the argument we got.  We use all the common list separators.
8813       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8814       for pkg in $enableval; do
8815         IFS="$lt_save_ifs"
8816         if test "X$pkg" = "X$p"; then
8817           enable_shared=yes
8818         fi
8819       done
8820       IFS="$lt_save_ifs"
8821       ;;
8822     esac
8823 else
8824   enable_shared=yes
8825 fi
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835   # Check whether --enable-static was given.
8836 if test "${enable_static+set}" = set; then :
8837   enableval=$enable_static; p=${PACKAGE-default}
8838     case $enableval in
8839     yes) enable_static=yes ;;
8840     no) enable_static=no ;;
8841     *)
8842      enable_static=no
8843       # Look at the argument we got.  We use all the common list separators.
8844       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8845       for pkg in $enableval; do
8846         IFS="$lt_save_ifs"
8847         if test "X$pkg" = "X$p"; then
8848           enable_static=yes
8849         fi
8850       done
8851       IFS="$lt_save_ifs"
8852       ;;
8853     esac
8854 else
8855   enable_static=yes
8856 fi
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867 # Check whether --with-pic was given.
8868 if test "${with_pic+set}" = set; then :
8869   withval=$with_pic; lt_p=${PACKAGE-default}
8870     case $withval in
8871     yes|no) pic_mode=$withval ;;
8872     *)
8873       pic_mode=default
8874       # Look at the argument we got.  We use all the common list separators.
8875       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8876       for lt_pkg in $withval; do
8877         IFS="$lt_save_ifs"
8878         if test "X$lt_pkg" = "X$lt_p"; then
8879           pic_mode=yes
8880         fi
8881       done
8882       IFS="$lt_save_ifs"
8883       ;;
8884     esac
8885 else
8886   pic_mode=default
8887 fi
8888
8889
8890 test -z "$pic_mode" && pic_mode=default
8891
8892
8893
8894
8895
8896
8897
8898   # Check whether --enable-fast-install was given.
8899 if test "${enable_fast_install+set}" = set; then :
8900   enableval=$enable_fast_install; p=${PACKAGE-default}
8901     case $enableval in
8902     yes) enable_fast_install=yes ;;
8903     no) enable_fast_install=no ;;
8904     *)
8905       enable_fast_install=no
8906       # Look at the argument we got.  We use all the common list separators.
8907       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8908       for pkg in $enableval; do
8909         IFS="$lt_save_ifs"
8910         if test "X$pkg" = "X$p"; then
8911           enable_fast_install=yes
8912         fi
8913       done
8914       IFS="$lt_save_ifs"
8915       ;;
8916     esac
8917 else
8918   enable_fast_install=yes
8919 fi
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931 # This can be used to rebuild libtool when needed
8932 LIBTOOL_DEPS="$ltmain"
8933
8934 # Always use our own libtool.
8935 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966 test -z "$LN_S" && LN_S="ln -s"
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981 if test -n "${ZSH_VERSION+set}" ; then
8982    setopt NO_GLOB_SUBST
8983 fi
8984
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8986 $as_echo_n "checking for objdir... " >&6; }
8987 if ${lt_cv_objdir+:} false; then :
8988   $as_echo_n "(cached) " >&6
8989 else
8990   rm -f .libs 2>/dev/null
8991 mkdir .libs 2>/dev/null
8992 if test -d .libs; then
8993   lt_cv_objdir=.libs
8994 else
8995   # MS-DOS does not allow filenames that begin with a dot.
8996   lt_cv_objdir=_libs
8997 fi
8998 rmdir .libs 2>/dev/null
8999 fi
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9001 $as_echo "$lt_cv_objdir" >&6; }
9002 objdir=$lt_cv_objdir
9003
9004
9005
9006
9007
9008 cat >>confdefs.h <<_ACEOF
9009 #define LT_OBJDIR "$lt_cv_objdir/"
9010 _ACEOF
9011
9012
9013
9014
9015 case $host_os in
9016 aix3*)
9017   # AIX sometimes has problems with the GCC collect2 program.  For some
9018   # reason, if we set the COLLECT_NAMES environment variable, the problems
9019   # vanish in a puff of smoke.
9020   if test "X${COLLECT_NAMES+set}" != Xset; then
9021     COLLECT_NAMES=
9022     export COLLECT_NAMES
9023   fi
9024   ;;
9025 esac
9026
9027 # Global variables:
9028 ofile=libtool
9029 can_build_shared=yes
9030
9031 # All known linkers require a `.a' archive for static linking (except MSVC,
9032 # which needs '.lib').
9033 libext=a
9034
9035 with_gnu_ld="$lt_cv_prog_gnu_ld"
9036
9037 old_CC="$CC"
9038 old_CFLAGS="$CFLAGS"
9039
9040 # Set sane defaults for various variables
9041 test -z "$CC" && CC=cc
9042 test -z "$LTCC" && LTCC=$CC
9043 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9044 test -z "$LD" && LD=ld
9045 test -z "$ac_objext" && ac_objext=o
9046
9047 for cc_temp in $compiler""; do
9048   case $cc_temp in
9049     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9050     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9051     \-*) ;;
9052     *) break;;
9053   esac
9054 done
9055 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9056
9057
9058 # Only perform the check for file, if the check method requires it
9059 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9060 case $deplibs_check_method in
9061 file_magic*)
9062   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9064 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9065 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9066   $as_echo_n "(cached) " >&6
9067 else
9068   case $MAGIC_CMD in
9069 [\\/*] |  ?:[\\/]*)
9070   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9071   ;;
9072 *)
9073   lt_save_MAGIC_CMD="$MAGIC_CMD"
9074   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9075   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9076   for ac_dir in $ac_dummy; do
9077     IFS="$lt_save_ifs"
9078     test -z "$ac_dir" && ac_dir=.
9079     if test -f $ac_dir/${ac_tool_prefix}file; then
9080       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9081       if test -n "$file_magic_test_file"; then
9082         case $deplibs_check_method in
9083         "file_magic "*)
9084           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9085           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9086           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9087             $EGREP "$file_magic_regex" > /dev/null; then
9088             :
9089           else
9090             cat <<_LT_EOF 1>&2
9091
9092 *** Warning: the command libtool uses to detect shared libraries,
9093 *** $file_magic_cmd, produces output that libtool cannot recognize.
9094 *** The result is that libtool may fail to recognize shared libraries
9095 *** as such.  This will affect the creation of libtool libraries that
9096 *** depend on shared libraries, but programs linked with such libtool
9097 *** libraries will work regardless of this problem.  Nevertheless, you
9098 *** may want to report the problem to your system manager and/or to
9099 *** bug-libtool@gnu.org
9100
9101 _LT_EOF
9102           fi ;;
9103         esac
9104       fi
9105       break
9106     fi
9107   done
9108   IFS="$lt_save_ifs"
9109   MAGIC_CMD="$lt_save_MAGIC_CMD"
9110   ;;
9111 esac
9112 fi
9113
9114 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9115 if test -n "$MAGIC_CMD"; then
9116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9117 $as_echo "$MAGIC_CMD" >&6; }
9118 else
9119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9120 $as_echo "no" >&6; }
9121 fi
9122
9123
9124
9125
9126
9127 if test -z "$lt_cv_path_MAGIC_CMD"; then
9128   if test -n "$ac_tool_prefix"; then
9129     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9130 $as_echo_n "checking for file... " >&6; }
9131 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9132   $as_echo_n "(cached) " >&6
9133 else
9134   case $MAGIC_CMD in
9135 [\\/*] |  ?:[\\/]*)
9136   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9137   ;;
9138 *)
9139   lt_save_MAGIC_CMD="$MAGIC_CMD"
9140   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9141   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9142   for ac_dir in $ac_dummy; do
9143     IFS="$lt_save_ifs"
9144     test -z "$ac_dir" && ac_dir=.
9145     if test -f $ac_dir/file; then
9146       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9147       if test -n "$file_magic_test_file"; then
9148         case $deplibs_check_method in
9149         "file_magic "*)
9150           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9151           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9152           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9153             $EGREP "$file_magic_regex" > /dev/null; then
9154             :
9155           else
9156             cat <<_LT_EOF 1>&2
9157
9158 *** Warning: the command libtool uses to detect shared libraries,
9159 *** $file_magic_cmd, produces output that libtool cannot recognize.
9160 *** The result is that libtool may fail to recognize shared libraries
9161 *** as such.  This will affect the creation of libtool libraries that
9162 *** depend on shared libraries, but programs linked with such libtool
9163 *** libraries will work regardless of this problem.  Nevertheless, you
9164 *** may want to report the problem to your system manager and/or to
9165 *** bug-libtool@gnu.org
9166
9167 _LT_EOF
9168           fi ;;
9169         esac
9170       fi
9171       break
9172     fi
9173   done
9174   IFS="$lt_save_ifs"
9175   MAGIC_CMD="$lt_save_MAGIC_CMD"
9176   ;;
9177 esac
9178 fi
9179
9180 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9181 if test -n "$MAGIC_CMD"; then
9182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9183 $as_echo "$MAGIC_CMD" >&6; }
9184 else
9185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9186 $as_echo "no" >&6; }
9187 fi
9188
9189
9190   else
9191     MAGIC_CMD=:
9192   fi
9193 fi
9194
9195   fi
9196   ;;
9197 esac
9198
9199 # Use C for the default configuration in the libtool script
9200
9201 lt_save_CC="$CC"
9202 ac_ext=c
9203 ac_cpp='$CPP $CPPFLAGS'
9204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9207
9208
9209 # Source file extension for C test sources.
9210 ac_ext=c
9211
9212 # Object file extension for compiled C test sources.
9213 objext=o
9214 objext=$objext
9215
9216 # Code to be used in simple compile tests
9217 lt_simple_compile_test_code="int some_variable = 0;"
9218
9219 # Code to be used in simple link tests
9220 lt_simple_link_test_code='int main(){return(0);}'
9221
9222
9223
9224
9225
9226
9227
9228 # If no C compiler was specified, use CC.
9229 LTCC=${LTCC-"$CC"}
9230
9231 # If no C compiler flags were specified, use CFLAGS.
9232 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9233
9234 # Allow CC to be a program name with arguments.
9235 compiler=$CC
9236
9237 # Save the default compiler, since it gets overwritten when the other
9238 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9239 compiler_DEFAULT=$CC
9240
9241 # save warnings/boilerplate of simple test code
9242 ac_outfile=conftest.$ac_objext
9243 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9244 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9245 _lt_compiler_boilerplate=`cat conftest.err`
9246 $RM conftest*
9247
9248 ac_outfile=conftest.$ac_objext
9249 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9250 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9251 _lt_linker_boilerplate=`cat conftest.err`
9252 $RM -r conftest*
9253
9254
9255 ## CAVEAT EMPTOR:
9256 ## There is no encapsulation within the following macros, do not change
9257 ## the running order or otherwise move them around unless you know exactly
9258 ## what you are doing...
9259 if test -n "$compiler"; then
9260
9261 lt_prog_compiler_no_builtin_flag=
9262
9263 if test "$GCC" = yes; then
9264   case $cc_basename in
9265   nvcc*)
9266     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9267   *)
9268     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9269   esac
9270
9271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9272 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9273 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9274   $as_echo_n "(cached) " >&6
9275 else
9276   lt_cv_prog_compiler_rtti_exceptions=no
9277    ac_outfile=conftest.$ac_objext
9278    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9279    lt_compiler_flag="-fno-rtti -fno-exceptions"
9280    # Insert the option either (1) after the last *FLAGS variable, or
9281    # (2) before a word containing "conftest.", or (3) at the end.
9282    # Note that $ac_compile itself does not contain backslashes and begins
9283    # with a dollar sign (not a hyphen), so the echo should work correctly.
9284    # The option is referenced via a variable to avoid confusing sed.
9285    lt_compile=`echo "$ac_compile" | $SED \
9286    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9287    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9288    -e 's:$: $lt_compiler_flag:'`
9289    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9290    (eval "$lt_compile" 2>conftest.err)
9291    ac_status=$?
9292    cat conftest.err >&5
9293    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294    if (exit $ac_status) && test -s "$ac_outfile"; then
9295      # The compiler can only warn and ignore the option if not recognized
9296      # So say no if there are warnings other than the usual output.
9297      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9298      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9299      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9300        lt_cv_prog_compiler_rtti_exceptions=yes
9301      fi
9302    fi
9303    $RM conftest*
9304
9305 fi
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9307 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9308
9309 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9310     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9311 else
9312     :
9313 fi
9314
9315 fi
9316
9317
9318
9319
9320
9321
9322   lt_prog_compiler_wl=
9323 lt_prog_compiler_pic=
9324 lt_prog_compiler_static=
9325
9326
9327   if test "$GCC" = yes; then
9328     lt_prog_compiler_wl='-Wl,'
9329     lt_prog_compiler_static='-static'
9330
9331     case $host_os in
9332       aix*)
9333       # All AIX code is PIC.
9334       if test "$host_cpu" = ia64; then
9335         # AIX 5 now supports IA64 processor
9336         lt_prog_compiler_static='-Bstatic'
9337       fi
9338       ;;
9339
9340     amigaos*)
9341       case $host_cpu in
9342       powerpc)
9343             # see comment about AmigaOS4 .so support
9344             lt_prog_compiler_pic='-fPIC'
9345         ;;
9346       m68k)
9347             # FIXME: we need at least 68020 code to build shared libraries, but
9348             # adding the `-m68020' flag to GCC prevents building anything better,
9349             # like `-m68040'.
9350             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9351         ;;
9352       esac
9353       ;;
9354
9355     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9356       # PIC is the default for these OSes.
9357       ;;
9358
9359     mingw* | cygwin* | pw32* | os2* | cegcc*)
9360       # This hack is so that the source file can tell whether it is being
9361       # built for inclusion in a dll (and should export symbols for example).
9362       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9363       # (--disable-auto-import) libraries
9364       lt_prog_compiler_pic='-DDLL_EXPORT'
9365       ;;
9366
9367     darwin* | rhapsody*)
9368       # PIC is the default on this platform
9369       # Common symbols not allowed in MH_DYLIB files
9370       lt_prog_compiler_pic='-fno-common'
9371       ;;
9372
9373     haiku*)
9374       # PIC is the default for Haiku.
9375       # The "-static" flag exists, but is broken.
9376       lt_prog_compiler_static=
9377       ;;
9378
9379     hpux*)
9380       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9381       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9382       # sets the default TLS model and affects inlining.
9383       case $host_cpu in
9384       hppa*64*)
9385         # +Z the default
9386         ;;
9387       *)
9388         lt_prog_compiler_pic='-fPIC'
9389         ;;
9390       esac
9391       ;;
9392
9393     interix[3-9]*)
9394       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9395       # Instead, we relocate shared libraries at runtime.
9396       ;;
9397
9398     msdosdjgpp*)
9399       # Just because we use GCC doesn't mean we suddenly get shared libraries
9400       # on systems that don't support them.
9401       lt_prog_compiler_can_build_shared=no
9402       enable_shared=no
9403       ;;
9404
9405     *nto* | *qnx*)
9406       # QNX uses GNU C++, but need to define -shared option too, otherwise
9407       # it will coredump.
9408       lt_prog_compiler_pic='-fPIC -shared'
9409       ;;
9410
9411     sysv4*MP*)
9412       if test -d /usr/nec; then
9413         lt_prog_compiler_pic=-Kconform_pic
9414       fi
9415       ;;
9416
9417     *)
9418       lt_prog_compiler_pic='-fPIC'
9419       ;;
9420     esac
9421
9422     case $cc_basename in
9423     nvcc*) # Cuda Compiler Driver 2.2
9424       lt_prog_compiler_wl='-Xlinker '
9425       if test -n "$lt_prog_compiler_pic"; then
9426         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9427       fi
9428       ;;
9429     esac
9430   else
9431     # PORTME Check for flag to pass linker flags through the system compiler.
9432     case $host_os in
9433     aix*)
9434       lt_prog_compiler_wl='-Wl,'
9435       if test "$host_cpu" = ia64; then
9436         # AIX 5 now supports IA64 processor
9437         lt_prog_compiler_static='-Bstatic'
9438       else
9439         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9440       fi
9441       ;;
9442
9443     mingw* | cygwin* | pw32* | os2* | cegcc*)
9444       # This hack is so that the source file can tell whether it is being
9445       # built for inclusion in a dll (and should export symbols for example).
9446       lt_prog_compiler_pic='-DDLL_EXPORT'
9447       ;;
9448
9449     hpux9* | hpux10* | hpux11*)
9450       lt_prog_compiler_wl='-Wl,'
9451       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9452       # not for PA HP-UX.
9453       case $host_cpu in
9454       hppa*64*|ia64*)
9455         # +Z the default
9456         ;;
9457       *)
9458         lt_prog_compiler_pic='+Z'
9459         ;;
9460       esac
9461       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9462       lt_prog_compiler_static='${wl}-a ${wl}archive'
9463       ;;
9464
9465     irix5* | irix6* | nonstopux*)
9466       lt_prog_compiler_wl='-Wl,'
9467       # PIC (with -KPIC) is the default.
9468       lt_prog_compiler_static='-non_shared'
9469       ;;
9470
9471     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9472       case $cc_basename in
9473       # old Intel for x86_64 which still supported -KPIC.
9474       ecc*)
9475         lt_prog_compiler_wl='-Wl,'
9476         lt_prog_compiler_pic='-KPIC'
9477         lt_prog_compiler_static='-static'
9478         ;;
9479       # icc used to be incompatible with GCC.
9480       # ICC 10 doesn't accept -KPIC any more.
9481       icc* | ifort*)
9482         lt_prog_compiler_wl='-Wl,'
9483         lt_prog_compiler_pic='-fPIC'
9484         lt_prog_compiler_static='-static'
9485         ;;
9486       # Lahey Fortran 8.1.
9487       lf95*)
9488         lt_prog_compiler_wl='-Wl,'
9489         lt_prog_compiler_pic='--shared'
9490         lt_prog_compiler_static='--static'
9491         ;;
9492       nagfor*)
9493         # NAG Fortran compiler
9494         lt_prog_compiler_wl='-Wl,-Wl,,'
9495         lt_prog_compiler_pic='-PIC'
9496         lt_prog_compiler_static='-Bstatic'
9497         ;;
9498       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9499         # Portland Group compilers (*not* the Pentium gcc compiler,
9500         # which looks to be a dead project)
9501         lt_prog_compiler_wl='-Wl,'
9502         lt_prog_compiler_pic='-fpic'
9503         lt_prog_compiler_static='-Bstatic'
9504         ;;
9505       ccc*)
9506         lt_prog_compiler_wl='-Wl,'
9507         # All Alpha code is PIC.
9508         lt_prog_compiler_static='-non_shared'
9509         ;;
9510       xl* | bgxl* | bgf* | mpixl*)
9511         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9512         lt_prog_compiler_wl='-Wl,'
9513         lt_prog_compiler_pic='-qpic'
9514         lt_prog_compiler_static='-qstaticlink'
9515         ;;
9516       *)
9517         case `$CC -V 2>&1 | sed 5q` in
9518         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9519           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9520           lt_prog_compiler_pic='-KPIC'
9521           lt_prog_compiler_static='-Bstatic'
9522           lt_prog_compiler_wl=''
9523           ;;
9524         *Sun\ F* | *Sun*Fortran*)
9525           lt_prog_compiler_pic='-KPIC'
9526           lt_prog_compiler_static='-Bstatic'
9527           lt_prog_compiler_wl='-Qoption ld '
9528           ;;
9529         *Sun\ C*)
9530           # Sun C 5.9
9531           lt_prog_compiler_pic='-KPIC'
9532           lt_prog_compiler_static='-Bstatic'
9533           lt_prog_compiler_wl='-Wl,'
9534           ;;
9535         *Intel*\ [CF]*Compiler*)
9536           lt_prog_compiler_wl='-Wl,'
9537           lt_prog_compiler_pic='-fPIC'
9538           lt_prog_compiler_static='-static'
9539           ;;
9540         *Portland\ Group*)
9541           lt_prog_compiler_wl='-Wl,'
9542           lt_prog_compiler_pic='-fpic'
9543           lt_prog_compiler_static='-Bstatic'
9544           ;;
9545         esac
9546         ;;
9547       esac
9548       ;;
9549
9550     newsos6)
9551       lt_prog_compiler_pic='-KPIC'
9552       lt_prog_compiler_static='-Bstatic'
9553       ;;
9554
9555     *nto* | *qnx*)
9556       # QNX uses GNU C++, but need to define -shared option too, otherwise
9557       # it will coredump.
9558       lt_prog_compiler_pic='-fPIC -shared'
9559       ;;
9560
9561     osf3* | osf4* | osf5*)
9562       lt_prog_compiler_wl='-Wl,'
9563       # All OSF/1 code is PIC.
9564       lt_prog_compiler_static='-non_shared'
9565       ;;
9566
9567     rdos*)
9568       lt_prog_compiler_static='-non_shared'
9569       ;;
9570
9571     solaris*)
9572       lt_prog_compiler_pic='-KPIC'
9573       lt_prog_compiler_static='-Bstatic'
9574       case $cc_basename in
9575       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9576         lt_prog_compiler_wl='-Qoption ld ';;
9577       *)
9578         lt_prog_compiler_wl='-Wl,';;
9579       esac
9580       ;;
9581
9582     sunos4*)
9583       lt_prog_compiler_wl='-Qoption ld '
9584       lt_prog_compiler_pic='-PIC'
9585       lt_prog_compiler_static='-Bstatic'
9586       ;;
9587
9588     sysv4 | sysv4.2uw2* | sysv4.3*)
9589       lt_prog_compiler_wl='-Wl,'
9590       lt_prog_compiler_pic='-KPIC'
9591       lt_prog_compiler_static='-Bstatic'
9592       ;;
9593
9594     sysv4*MP*)
9595       if test -d /usr/nec ;then
9596         lt_prog_compiler_pic='-Kconform_pic'
9597         lt_prog_compiler_static='-Bstatic'
9598       fi
9599       ;;
9600
9601     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9602       lt_prog_compiler_wl='-Wl,'
9603       lt_prog_compiler_pic='-KPIC'
9604       lt_prog_compiler_static='-Bstatic'
9605       ;;
9606
9607     unicos*)
9608       lt_prog_compiler_wl='-Wl,'
9609       lt_prog_compiler_can_build_shared=no
9610       ;;
9611
9612     uts4*)
9613       lt_prog_compiler_pic='-pic'
9614       lt_prog_compiler_static='-Bstatic'
9615       ;;
9616
9617     *)
9618       lt_prog_compiler_can_build_shared=no
9619       ;;
9620     esac
9621   fi
9622
9623 case $host_os in
9624   # For platforms which do not support PIC, -DPIC is meaningless:
9625   *djgpp*)
9626     lt_prog_compiler_pic=
9627     ;;
9628   *)
9629     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9630     ;;
9631 esac
9632
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9634 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9635 if ${lt_cv_prog_compiler_pic+:} false; then :
9636   $as_echo_n "(cached) " >&6
9637 else
9638   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9639 fi
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9641 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9642 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9643
9644 #
9645 # Check to make sure the PIC flag actually works.
9646 #
9647 if test -n "$lt_prog_compiler_pic"; then
9648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9649 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9650 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9651   $as_echo_n "(cached) " >&6
9652 else
9653   lt_cv_prog_compiler_pic_works=no
9654    ac_outfile=conftest.$ac_objext
9655    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9656    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9657    # Insert the option either (1) after the last *FLAGS variable, or
9658    # (2) before a word containing "conftest.", or (3) at the end.
9659    # Note that $ac_compile itself does not contain backslashes and begins
9660    # with a dollar sign (not a hyphen), so the echo should work correctly.
9661    # The option is referenced via a variable to avoid confusing sed.
9662    lt_compile=`echo "$ac_compile" | $SED \
9663    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9664    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9665    -e 's:$: $lt_compiler_flag:'`
9666    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9667    (eval "$lt_compile" 2>conftest.err)
9668    ac_status=$?
9669    cat conftest.err >&5
9670    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671    if (exit $ac_status) && test -s "$ac_outfile"; then
9672      # The compiler can only warn and ignore the option if not recognized
9673      # So say no if there are warnings other than the usual output.
9674      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9675      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9676      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9677        lt_cv_prog_compiler_pic_works=yes
9678      fi
9679    fi
9680    $RM conftest*
9681
9682 fi
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9684 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9685
9686 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9687     case $lt_prog_compiler_pic in
9688      "" | " "*) ;;
9689      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9690      esac
9691 else
9692     lt_prog_compiler_pic=
9693      lt_prog_compiler_can_build_shared=no
9694 fi
9695
9696 fi
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708 #
9709 # Check to make sure the static flag actually works.
9710 #
9711 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9713 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9714 if ${lt_cv_prog_compiler_static_works+:} false; then :
9715   $as_echo_n "(cached) " >&6
9716 else
9717   lt_cv_prog_compiler_static_works=no
9718    save_LDFLAGS="$LDFLAGS"
9719    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9720    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9721    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9722      # The linker can only warn and ignore the option if not recognized
9723      # So say no if there are warnings
9724      if test -s conftest.err; then
9725        # Append any errors to the config.log.
9726        cat conftest.err 1>&5
9727        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9728        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9729        if diff conftest.exp conftest.er2 >/dev/null; then
9730          lt_cv_prog_compiler_static_works=yes
9731        fi
9732      else
9733        lt_cv_prog_compiler_static_works=yes
9734      fi
9735    fi
9736    $RM -r conftest*
9737    LDFLAGS="$save_LDFLAGS"
9738
9739 fi
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9741 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9742
9743 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9744     :
9745 else
9746     lt_prog_compiler_static=
9747 fi
9748
9749
9750
9751
9752
9753
9754
9755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9756 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9757 if ${lt_cv_prog_compiler_c_o+:} false; then :
9758   $as_echo_n "(cached) " >&6
9759 else
9760   lt_cv_prog_compiler_c_o=no
9761    $RM -r conftest 2>/dev/null
9762    mkdir conftest
9763    cd conftest
9764    mkdir out
9765    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9766
9767    lt_compiler_flag="-o out/conftest2.$ac_objext"
9768    # Insert the option either (1) after the last *FLAGS variable, or
9769    # (2) before a word containing "conftest.", or (3) at the end.
9770    # Note that $ac_compile itself does not contain backslashes and begins
9771    # with a dollar sign (not a hyphen), so the echo should work correctly.
9772    lt_compile=`echo "$ac_compile" | $SED \
9773    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9774    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9775    -e 's:$: $lt_compiler_flag:'`
9776    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9777    (eval "$lt_compile" 2>out/conftest.err)
9778    ac_status=$?
9779    cat out/conftest.err >&5
9780    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9782    then
9783      # The compiler can only warn and ignore the option if not recognized
9784      # So say no if there are warnings
9785      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9786      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9787      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9788        lt_cv_prog_compiler_c_o=yes
9789      fi
9790    fi
9791    chmod u+w . 2>&5
9792    $RM conftest*
9793    # SGI C++ compiler will create directory out/ii_files/ for
9794    # template instantiation
9795    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9796    $RM out/* && rmdir out
9797    cd ..
9798    $RM -r conftest
9799    $RM conftest*
9800
9801 fi
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9803 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9804
9805
9806
9807
9808
9809
9810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9811 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9812 if ${lt_cv_prog_compiler_c_o+:} false; then :
9813   $as_echo_n "(cached) " >&6
9814 else
9815   lt_cv_prog_compiler_c_o=no
9816    $RM -r conftest 2>/dev/null
9817    mkdir conftest
9818    cd conftest
9819    mkdir out
9820    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9821
9822    lt_compiler_flag="-o out/conftest2.$ac_objext"
9823    # Insert the option either (1) after the last *FLAGS variable, or
9824    # (2) before a word containing "conftest.", or (3) at the end.
9825    # Note that $ac_compile itself does not contain backslashes and begins
9826    # with a dollar sign (not a hyphen), so the echo should work correctly.
9827    lt_compile=`echo "$ac_compile" | $SED \
9828    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9829    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9830    -e 's:$: $lt_compiler_flag:'`
9831    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9832    (eval "$lt_compile" 2>out/conftest.err)
9833    ac_status=$?
9834    cat out/conftest.err >&5
9835    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9837    then
9838      # The compiler can only warn and ignore the option if not recognized
9839      # So say no if there are warnings
9840      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9841      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9842      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9843        lt_cv_prog_compiler_c_o=yes
9844      fi
9845    fi
9846    chmod u+w . 2>&5
9847    $RM conftest*
9848    # SGI C++ compiler will create directory out/ii_files/ for
9849    # template instantiation
9850    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9851    $RM out/* && rmdir out
9852    cd ..
9853    $RM -r conftest
9854    $RM conftest*
9855
9856 fi
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9858 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9859
9860
9861
9862
9863 hard_links="nottested"
9864 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9865   # do not overwrite the value of need_locks provided by the user
9866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9867 $as_echo_n "checking if we can lock with hard links... " >&6; }
9868   hard_links=yes
9869   $RM conftest*
9870   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9871   touch conftest.a
9872   ln conftest.a conftest.b 2>&5 || hard_links=no
9873   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9875 $as_echo "$hard_links" >&6; }
9876   if test "$hard_links" = no; then
9877     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9878 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9879     need_locks=warn
9880   fi
9881 else
9882   need_locks=no
9883 fi
9884
9885
9886
9887
9888
9889
9890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9891 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9892
9893   runpath_var=
9894   allow_undefined_flag=
9895   always_export_symbols=no
9896   archive_cmds=
9897   archive_expsym_cmds=
9898   compiler_needs_object=no
9899   enable_shared_with_static_runtimes=no
9900   export_dynamic_flag_spec=
9901   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9902   hardcode_automatic=no
9903   hardcode_direct=no
9904   hardcode_direct_absolute=no
9905   hardcode_libdir_flag_spec=
9906   hardcode_libdir_separator=
9907   hardcode_minus_L=no
9908   hardcode_shlibpath_var=unsupported
9909   inherit_rpath=no
9910   link_all_deplibs=unknown
9911   module_cmds=
9912   module_expsym_cmds=
9913   old_archive_from_new_cmds=
9914   old_archive_from_expsyms_cmds=
9915   thread_safe_flag_spec=
9916   whole_archive_flag_spec=
9917   # include_expsyms should be a list of space-separated symbols to be *always*
9918   # included in the symbol list
9919   include_expsyms=
9920   # exclude_expsyms can be an extended regexp of symbols to exclude
9921   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9922   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9923   # as well as any symbol that contains `d'.
9924   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9925   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9926   # platforms (ab)use it in PIC code, but their linkers get confused if
9927   # the symbol is explicitly referenced.  Since portable code cannot
9928   # rely on this symbol name, it's probably fine to never include it in
9929   # preloaded symbol tables.
9930   # Exclude shared library initialization/finalization symbols.
9931   extract_expsyms_cmds=
9932
9933   case $host_os in
9934   cygwin* | mingw* | pw32* | cegcc*)
9935     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9936     # When not using gcc, we currently assume that we are using
9937     # Microsoft Visual C++.
9938     if test "$GCC" != yes; then
9939       with_gnu_ld=no
9940     fi
9941     ;;
9942   interix*)
9943     # we just hope/assume this is gcc and not c89 (= MSVC++)
9944     with_gnu_ld=yes
9945     ;;
9946   openbsd*)
9947     with_gnu_ld=no
9948     ;;
9949   linux* | k*bsd*-gnu | gnu*)
9950     link_all_deplibs=no
9951     ;;
9952   esac
9953
9954   ld_shlibs=yes
9955
9956   # On some targets, GNU ld is compatible enough with the native linker
9957   # that we're better off using the native interface for both.
9958   lt_use_gnu_ld_interface=no
9959   if test "$with_gnu_ld" = yes; then
9960     case $host_os in
9961       aix*)
9962         # The AIX port of GNU ld has always aspired to compatibility
9963         # with the native linker.  However, as the warning in the GNU ld
9964         # block says, versions before 2.19.5* couldn't really create working
9965         # shared libraries, regardless of the interface used.
9966         case `$LD -v 2>&1` in
9967           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9968           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9969           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9970           *)
9971             lt_use_gnu_ld_interface=yes
9972             ;;
9973         esac
9974         ;;
9975       *)
9976         lt_use_gnu_ld_interface=yes
9977         ;;
9978     esac
9979   fi
9980
9981   if test "$lt_use_gnu_ld_interface" = yes; then
9982     # If archive_cmds runs LD, not CC, wlarc should be empty
9983     wlarc='${wl}'
9984
9985     # Set some defaults for GNU ld with shared library support. These
9986     # are reset later if shared libraries are not supported. Putting them
9987     # here allows them to be overridden if necessary.
9988     runpath_var=LD_RUN_PATH
9989     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9990     export_dynamic_flag_spec='${wl}--export-dynamic'
9991     # ancient GNU ld didn't support --whole-archive et. al.
9992     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9993       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9994     else
9995       whole_archive_flag_spec=
9996     fi
9997     supports_anon_versioning=no
9998     case `$LD -v 2>&1` in
9999       *GNU\ gold*) supports_anon_versioning=yes ;;
10000       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10001       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10002       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10003       *\ 2.11.*) ;; # other 2.11 versions
10004       *) supports_anon_versioning=yes ;;
10005     esac
10006
10007     # See if GNU ld supports shared libraries.
10008     case $host_os in
10009     aix[3-9]*)
10010       # On AIX/PPC, the GNU linker is very broken
10011       if test "$host_cpu" != ia64; then
10012         ld_shlibs=no
10013         cat <<_LT_EOF 1>&2
10014
10015 *** Warning: the GNU linker, at least up to release 2.19, is reported
10016 *** to be unable to reliably create shared libraries on AIX.
10017 *** Therefore, libtool is disabling shared libraries support.  If you
10018 *** really care for shared libraries, you may want to install binutils
10019 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10020 *** You will then need to restart the configuration process.
10021
10022 _LT_EOF
10023       fi
10024       ;;
10025
10026     amigaos*)
10027       case $host_cpu in
10028       powerpc)
10029             # see comment about AmigaOS4 .so support
10030             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10031             archive_expsym_cmds=''
10032         ;;
10033       m68k)
10034             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)'
10035             hardcode_libdir_flag_spec='-L$libdir'
10036             hardcode_minus_L=yes
10037         ;;
10038       esac
10039       ;;
10040
10041     beos*)
10042       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10043         allow_undefined_flag=unsupported
10044         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10045         # support --undefined.  This deserves some investigation.  FIXME
10046         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10047       else
10048         ld_shlibs=no
10049       fi
10050       ;;
10051
10052     cygwin* | mingw* | pw32* | cegcc*)
10053       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10054       # as there is no search path for DLLs.
10055       hardcode_libdir_flag_spec='-L$libdir'
10056       export_dynamic_flag_spec='${wl}--export-all-symbols'
10057       allow_undefined_flag=unsupported
10058       always_export_symbols=no
10059       enable_shared_with_static_runtimes=yes
10060       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'
10061       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10062
10063       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10064         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10065         # If the export-symbols file already is a .def file (1st line
10066         # is EXPORTS), use it as is; otherwise, prepend...
10067         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10068           cp $export_symbols $output_objdir/$soname.def;
10069         else
10070           echo EXPORTS > $output_objdir/$soname.def;
10071           cat $export_symbols >> $output_objdir/$soname.def;
10072         fi~
10073         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10074       else
10075         ld_shlibs=no
10076       fi
10077       ;;
10078
10079     haiku*)
10080       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10081       link_all_deplibs=yes
10082       ;;
10083
10084     interix[3-9]*)
10085       hardcode_direct=no
10086       hardcode_shlibpath_var=no
10087       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10088       export_dynamic_flag_spec='${wl}-E'
10089       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10090       # Instead, shared libraries are loaded at an image base (0x10000000 by
10091       # default) and relocated if they conflict, which is a slow very memory
10092       # consuming and fragmenting process.  To avoid this, we pick a random,
10093       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10094       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10095       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10096       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'
10097       ;;
10098
10099     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10100       tmp_diet=no
10101       if test "$host_os" = linux-dietlibc; then
10102         case $cc_basename in
10103           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10104         esac
10105       fi
10106       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10107          && test "$tmp_diet" = no
10108       then
10109         tmp_addflag=' $pic_flag'
10110         tmp_sharedflag='-shared'
10111         case $cc_basename,$host_cpu in
10112         pgcc*)                          # Portland Group C compiler
10113           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'
10114           tmp_addflag=' $pic_flag'
10115           ;;
10116         pgf77* | pgf90* | pgf95* | pgfortran*)
10117                                         # Portland Group f77 and f90 compilers
10118           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'
10119           tmp_addflag=' $pic_flag -Mnomain' ;;
10120         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10121           tmp_addflag=' -i_dynamic' ;;
10122         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10123           tmp_addflag=' -i_dynamic -nofor_main' ;;
10124         ifc* | ifort*)                  # Intel Fortran compiler
10125           tmp_addflag=' -nofor_main' ;;
10126         lf95*)                          # Lahey Fortran 8.1
10127           whole_archive_flag_spec=
10128           tmp_sharedflag='--shared' ;;
10129         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10130           tmp_sharedflag='-qmkshrobj'
10131           tmp_addflag= ;;
10132         nvcc*)  # Cuda Compiler Driver 2.2
10133           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'
10134           compiler_needs_object=yes
10135           ;;
10136         esac
10137         case `$CC -V 2>&1 | sed 5q` in
10138         *Sun\ C*)                       # Sun C 5.9
10139           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'
10140           compiler_needs_object=yes
10141           tmp_sharedflag='-G' ;;
10142         *Sun\ F*)                       # Sun Fortran 8.3
10143           tmp_sharedflag='-G' ;;
10144         esac
10145         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10146
10147         if test "x$supports_anon_versioning" = xyes; then
10148           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10149             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10150             echo "local: *; };" >> $output_objdir/$libname.ver~
10151             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10152         fi
10153
10154         case $cc_basename in
10155         xlf* | bgf* | bgxlf* | mpixlf*)
10156           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10157           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10158           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10159           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10160           if test "x$supports_anon_versioning" = xyes; then
10161             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10162               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10163               echo "local: *; };" >> $output_objdir/$libname.ver~
10164               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10165           fi
10166           ;;
10167         esac
10168       else
10169         ld_shlibs=no
10170       fi
10171       ;;
10172
10173     netbsd* | netbsdelf*-gnu)
10174       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10175         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10176         wlarc=
10177       else
10178         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10179         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10180       fi
10181       ;;
10182
10183     solaris*)
10184       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10185         ld_shlibs=no
10186         cat <<_LT_EOF 1>&2
10187
10188 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10189 *** create shared libraries on Solaris systems.  Therefore, libtool
10190 *** is disabling shared libraries support.  We urge you to upgrade GNU
10191 *** binutils to release 2.9.1 or newer.  Another option is to modify
10192 *** your PATH or compiler configuration so that the native linker is
10193 *** used, and then restart.
10194
10195 _LT_EOF
10196       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10197         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10198         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10199       else
10200         ld_shlibs=no
10201       fi
10202       ;;
10203
10204     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10205       case `$LD -v 2>&1` in
10206         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10207         ld_shlibs=no
10208         cat <<_LT_EOF 1>&2
10209
10210 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10211 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10212 *** is disabling shared libraries support.  We urge you to upgrade GNU
10213 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10214 *** your PATH or compiler configuration so that the native linker is
10215 *** used, and then restart.
10216
10217 _LT_EOF
10218         ;;
10219         *)
10220           # For security reasons, it is highly recommended that you always
10221           # use absolute paths for naming shared libraries, and exclude the
10222           # DT_RUNPATH tag from executables and libraries.  But doing so
10223           # requires that you compile everything twice, which is a pain.
10224           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10225             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10226             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10227             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10228           else
10229             ld_shlibs=no
10230           fi
10231         ;;
10232       esac
10233       ;;
10234
10235     sunos4*)
10236       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10237       wlarc=
10238       hardcode_direct=yes
10239       hardcode_shlibpath_var=no
10240       ;;
10241
10242     *)
10243       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10244         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10245         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10246       else
10247         ld_shlibs=no
10248       fi
10249       ;;
10250     esac
10251
10252     if test "$ld_shlibs" = no; then
10253       runpath_var=
10254       hardcode_libdir_flag_spec=
10255       export_dynamic_flag_spec=
10256       whole_archive_flag_spec=
10257     fi
10258   else
10259     # PORTME fill in a description of your system's linker (not GNU ld)
10260     case $host_os in
10261     aix3*)
10262       allow_undefined_flag=unsupported
10263       always_export_symbols=yes
10264       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'
10265       # Note: this linker hardcodes the directories in LIBPATH if there
10266       # are no directories specified by -L.
10267       hardcode_minus_L=yes
10268       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10269         # Neither direct hardcoding nor static linking is supported with a
10270         # broken collect2.
10271         hardcode_direct=unsupported
10272       fi
10273       ;;
10274
10275     aix[4-9]*)
10276       if test "$host_cpu" = ia64; then
10277         # On IA64, the linker does run time linking by default, so we don't
10278         # have to do anything special.
10279         aix_use_runtimelinking=no
10280         exp_sym_flag='-Bexport'
10281         no_entry_flag=""
10282       else
10283         # If we're using GNU nm, then we don't want the "-C" option.
10284         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10285         # Also, AIX nm treats weak defined symbols like other global
10286         # defined symbols, whereas GNU nm marks them as "W".
10287         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10288           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10289         else
10290           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10291         fi
10292         aix_use_runtimelinking=no
10293
10294         # Test if we are trying to use run time linking or normal
10295         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10296         # need to do runtime linking.
10297         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10298           for ld_flag in $LDFLAGS; do
10299           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10300             aix_use_runtimelinking=yes
10301             break
10302           fi
10303           done
10304           ;;
10305         esac
10306
10307         exp_sym_flag='-bexport'
10308         no_entry_flag='-bnoentry'
10309       fi
10310
10311       # When large executables or shared objects are built, AIX ld can
10312       # have problems creating the table of contents.  If linking a library
10313       # or program results in "error TOC overflow" add -mminimal-toc to
10314       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10315       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10316
10317       archive_cmds=''
10318       hardcode_direct=yes
10319       hardcode_direct_absolute=yes
10320       hardcode_libdir_separator=':'
10321       link_all_deplibs=yes
10322       file_list_spec='${wl}-f,'
10323
10324       if test "$GCC" = yes; then
10325         case $host_os in aix4.[012]|aix4.[012].*)
10326         # We only want to do this on AIX 4.2 and lower, the check
10327         # below for broken collect2 doesn't work under 4.3+
10328           collect2name=`${CC} -print-prog-name=collect2`
10329           if test -f "$collect2name" &&
10330            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10331           then
10332           # We have reworked collect2
10333           :
10334           else
10335           # We have old collect2
10336           hardcode_direct=unsupported
10337           # It fails to find uninstalled libraries when the uninstalled
10338           # path is not listed in the libpath.  Setting hardcode_minus_L
10339           # to unsupported forces relinking
10340           hardcode_minus_L=yes
10341           hardcode_libdir_flag_spec='-L$libdir'
10342           hardcode_libdir_separator=
10343           fi
10344           ;;
10345         esac
10346         shared_flag='-shared'
10347         if test "$aix_use_runtimelinking" = yes; then
10348           shared_flag="$shared_flag "'${wl}-G'
10349         fi
10350         link_all_deplibs=no
10351       else
10352         # not using gcc
10353         if test "$host_cpu" = ia64; then
10354         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10355         # chokes on -Wl,-G. The following line is correct:
10356           shared_flag='-G'
10357         else
10358           if test "$aix_use_runtimelinking" = yes; then
10359             shared_flag='${wl}-G'
10360           else
10361             shared_flag='${wl}-bM:SRE'
10362           fi
10363         fi
10364       fi
10365
10366       export_dynamic_flag_spec='${wl}-bexpall'
10367       # It seems that -bexpall does not export symbols beginning with
10368       # underscore (_), so it is better to generate a list of symbols to export.
10369       always_export_symbols=yes
10370       if test "$aix_use_runtimelinking" = yes; then
10371         # Warning - without using the other runtime loading flags (-brtl),
10372         # -berok will link without error, but may produce a broken library.
10373         allow_undefined_flag='-berok'
10374         # Determine the default libpath from the value encoded in an
10375         # empty executable.
10376         if test "${lt_cv_aix_libpath+set}" = set; then
10377   aix_libpath=$lt_cv_aix_libpath
10378 else
10379   if ${lt_cv_aix_libpath_+:} false; then :
10380   $as_echo_n "(cached) " >&6
10381 else
10382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h.  */
10384
10385 int
10386 main ()
10387 {
10388
10389   ;
10390   return 0;
10391 }
10392 _ACEOF
10393 if ac_fn_c_try_link "$LINENO"; then :
10394
10395   lt_aix_libpath_sed='
10396       /Import File Strings/,/^$/ {
10397           /^0/ {
10398               s/^0  *\([^ ]*\) *$/\1/
10399               p
10400           }
10401       }'
10402   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10403   # Check for a 64-bit object if we didn't find anything.
10404   if test -z "$lt_cv_aix_libpath_"; then
10405     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10406   fi
10407 fi
10408 rm -f core conftest.err conftest.$ac_objext \
10409     conftest$ac_exeext conftest.$ac_ext
10410   if test -z "$lt_cv_aix_libpath_"; then
10411     lt_cv_aix_libpath_="/usr/lib:/lib"
10412   fi
10413
10414 fi
10415
10416   aix_libpath=$lt_cv_aix_libpath_
10417 fi
10418
10419         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10420         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10421       else
10422         if test "$host_cpu" = ia64; then
10423           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10424           allow_undefined_flag="-z nodefs"
10425           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"
10426         else
10427          # Determine the default libpath from the value encoded in an
10428          # empty executable.
10429          if test "${lt_cv_aix_libpath+set}" = set; then
10430   aix_libpath=$lt_cv_aix_libpath
10431 else
10432   if ${lt_cv_aix_libpath_+:} false; then :
10433   $as_echo_n "(cached) " >&6
10434 else
10435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h.  */
10437
10438 int
10439 main ()
10440 {
10441
10442   ;
10443   return 0;
10444 }
10445 _ACEOF
10446 if ac_fn_c_try_link "$LINENO"; then :
10447
10448   lt_aix_libpath_sed='
10449       /Import File Strings/,/^$/ {
10450           /^0/ {
10451               s/^0  *\([^ ]*\) *$/\1/
10452               p
10453           }
10454       }'
10455   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10456   # Check for a 64-bit object if we didn't find anything.
10457   if test -z "$lt_cv_aix_libpath_"; then
10458     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10459   fi
10460 fi
10461 rm -f core conftest.err conftest.$ac_objext \
10462     conftest$ac_exeext conftest.$ac_ext
10463   if test -z "$lt_cv_aix_libpath_"; then
10464     lt_cv_aix_libpath_="/usr/lib:/lib"
10465   fi
10466
10467 fi
10468
10469   aix_libpath=$lt_cv_aix_libpath_
10470 fi
10471
10472          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10473           # Warning - without using the other run time loading flags,
10474           # -berok will link without error, but may produce a broken library.
10475           no_undefined_flag=' ${wl}-bernotok'
10476           allow_undefined_flag=' ${wl}-berok'
10477           if test "$with_gnu_ld" = yes; then
10478             # We only use this code for GNU lds that support --whole-archive.
10479             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10480           else
10481             # Exported symbols can be pulled into shared objects from archives
10482             whole_archive_flag_spec='$convenience'
10483           fi
10484           archive_cmds_need_lc=yes
10485           # This is similar to how AIX traditionally builds its shared libraries.
10486           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10487         fi
10488       fi
10489       ;;
10490
10491     amigaos*)
10492       case $host_cpu in
10493       powerpc)
10494             # see comment about AmigaOS4 .so support
10495             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10496             archive_expsym_cmds=''
10497         ;;
10498       m68k)
10499             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)'
10500             hardcode_libdir_flag_spec='-L$libdir'
10501             hardcode_minus_L=yes
10502         ;;
10503       esac
10504       ;;
10505
10506     bsdi[45]*)
10507       export_dynamic_flag_spec=-rdynamic
10508       ;;
10509
10510     cygwin* | mingw* | pw32* | cegcc*)
10511       # When not using gcc, we currently assume that we are using
10512       # Microsoft Visual C++.
10513       # hardcode_libdir_flag_spec is actually meaningless, as there is
10514       # no search path for DLLs.
10515       case $cc_basename in
10516       cl*)
10517         # Native MSVC
10518         hardcode_libdir_flag_spec=' '
10519         allow_undefined_flag=unsupported
10520         always_export_symbols=yes
10521         file_list_spec='@'
10522         # Tell ltmain to make .lib files, not .a files.
10523         libext=lib
10524         # Tell ltmain to make .dll files, not .so files.
10525         shrext_cmds=".dll"
10526         # FIXME: Setting linknames here is a bad hack.
10527         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10528         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10529             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10530           else
10531             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10532           fi~
10533           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10534           linknames='
10535         # The linker will not automatically build a static lib if we build a DLL.
10536         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10537         enable_shared_with_static_runtimes=yes
10538         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10539         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10540         # Don't use ranlib
10541         old_postinstall_cmds='chmod 644 $oldlib'
10542         postlink_cmds='lt_outputfile="@OUTPUT@"~
10543           lt_tool_outputfile="@TOOL_OUTPUT@"~
10544           case $lt_outputfile in
10545             *.exe|*.EXE) ;;
10546             *)
10547               lt_outputfile="$lt_outputfile.exe"
10548               lt_tool_outputfile="$lt_tool_outputfile.exe"
10549               ;;
10550           esac~
10551           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10552             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10553             $RM "$lt_outputfile.manifest";
10554           fi'
10555         ;;
10556       *)
10557         # Assume MSVC wrapper
10558         hardcode_libdir_flag_spec=' '
10559         allow_undefined_flag=unsupported
10560         # Tell ltmain to make .lib files, not .a files.
10561         libext=lib
10562         # Tell ltmain to make .dll files, not .so files.
10563         shrext_cmds=".dll"
10564         # FIXME: Setting linknames here is a bad hack.
10565         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10566         # The linker will automatically build a .lib file if we build a DLL.
10567         old_archive_from_new_cmds='true'
10568         # FIXME: Should let the user specify the lib program.
10569         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10570         enable_shared_with_static_runtimes=yes
10571         ;;
10572       esac
10573       ;;
10574
10575     darwin* | rhapsody*)
10576
10577
10578   archive_cmds_need_lc=no
10579   hardcode_direct=no
10580   hardcode_automatic=yes
10581   hardcode_shlibpath_var=unsupported
10582   if test "$lt_cv_ld_force_load" = "yes"; then
10583     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\"`'
10584
10585   else
10586     whole_archive_flag_spec=''
10587   fi
10588   link_all_deplibs=yes
10589   allow_undefined_flag="$_lt_dar_allow_undefined"
10590   case $cc_basename in
10591      ifort*) _lt_dar_can_shared=yes ;;
10592      *) _lt_dar_can_shared=$GCC ;;
10593   esac
10594   if test "$_lt_dar_can_shared" = "yes"; then
10595     output_verbose_link_cmd=func_echo_all
10596     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10597     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10598     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}"
10599     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}"
10600
10601   else
10602   ld_shlibs=no
10603   fi
10604
10605       ;;
10606
10607     dgux*)
10608       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10609       hardcode_libdir_flag_spec='-L$libdir'
10610       hardcode_shlibpath_var=no
10611       ;;
10612
10613     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10614     # support.  Future versions do this automatically, but an explicit c++rt0.o
10615     # does not break anything, and helps significantly (at the cost of a little
10616     # extra space).
10617     freebsd2.2*)
10618       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10619       hardcode_libdir_flag_spec='-R$libdir'
10620       hardcode_direct=yes
10621       hardcode_shlibpath_var=no
10622       ;;
10623
10624     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10625     freebsd2.*)
10626       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10627       hardcode_direct=yes
10628       hardcode_minus_L=yes
10629       hardcode_shlibpath_var=no
10630       ;;
10631
10632     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10633     freebsd* | dragonfly*)
10634       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10635       hardcode_libdir_flag_spec='-R$libdir'
10636       hardcode_direct=yes
10637       hardcode_shlibpath_var=no
10638       ;;
10639
10640     hpux9*)
10641       if test "$GCC" = yes; then
10642         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10643       else
10644         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10645       fi
10646       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10647       hardcode_libdir_separator=:
10648       hardcode_direct=yes
10649
10650       # hardcode_minus_L: Not really in the search PATH,
10651       # but as the default location of the library.
10652       hardcode_minus_L=yes
10653       export_dynamic_flag_spec='${wl}-E'
10654       ;;
10655
10656     hpux10*)
10657       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10658         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10659       else
10660         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10661       fi
10662       if test "$with_gnu_ld" = no; then
10663         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10664         hardcode_libdir_separator=:
10665         hardcode_direct=yes
10666         hardcode_direct_absolute=yes
10667         export_dynamic_flag_spec='${wl}-E'
10668         # hardcode_minus_L: Not really in the search PATH,
10669         # but as the default location of the library.
10670         hardcode_minus_L=yes
10671       fi
10672       ;;
10673
10674     hpux11*)
10675       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10676         case $host_cpu in
10677         hppa*64*)
10678           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10679           ;;
10680         ia64*)
10681           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10682           ;;
10683         *)
10684           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10685           ;;
10686         esac
10687       else
10688         case $host_cpu in
10689         hppa*64*)
10690           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10691           ;;
10692         ia64*)
10693           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10694           ;;
10695         *)
10696
10697           # Older versions of the 11.00 compiler do not understand -b yet
10698           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10699           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10700 $as_echo_n "checking if $CC understands -b... " >&6; }
10701 if ${lt_cv_prog_compiler__b+:} false; then :
10702   $as_echo_n "(cached) " >&6
10703 else
10704   lt_cv_prog_compiler__b=no
10705    save_LDFLAGS="$LDFLAGS"
10706    LDFLAGS="$LDFLAGS -b"
10707    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10708    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10709      # The linker can only warn and ignore the option if not recognized
10710      # So say no if there are warnings
10711      if test -s conftest.err; then
10712        # Append any errors to the config.log.
10713        cat conftest.err 1>&5
10714        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10715        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10716        if diff conftest.exp conftest.er2 >/dev/null; then
10717          lt_cv_prog_compiler__b=yes
10718        fi
10719      else
10720        lt_cv_prog_compiler__b=yes
10721      fi
10722    fi
10723    $RM -r conftest*
10724    LDFLAGS="$save_LDFLAGS"
10725
10726 fi
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10728 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10729
10730 if test x"$lt_cv_prog_compiler__b" = xyes; then
10731     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10732 else
10733     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10734 fi
10735
10736           ;;
10737         esac
10738       fi
10739       if test "$with_gnu_ld" = no; then
10740         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10741         hardcode_libdir_separator=:
10742
10743         case $host_cpu in
10744         hppa*64*|ia64*)
10745           hardcode_direct=no
10746           hardcode_shlibpath_var=no
10747           ;;
10748         *)
10749           hardcode_direct=yes
10750           hardcode_direct_absolute=yes
10751           export_dynamic_flag_spec='${wl}-E'
10752
10753           # hardcode_minus_L: Not really in the search PATH,
10754           # but as the default location of the library.
10755           hardcode_minus_L=yes
10756           ;;
10757         esac
10758       fi
10759       ;;
10760
10761     irix5* | irix6* | nonstopux*)
10762       if test "$GCC" = yes; then
10763         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'
10764         # Try to use the -exported_symbol ld option, if it does not
10765         # work, assume that -exports_file does not work either and
10766         # implicitly export all symbols.
10767         # This should be the same for all languages, so no per-tag cache variable.
10768         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10769 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10770 if ${lt_cv_irix_exported_symbol+:} false; then :
10771   $as_echo_n "(cached) " >&6
10772 else
10773   save_LDFLAGS="$LDFLAGS"
10774            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10775            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h.  */
10777 int foo (void) { return 0; }
10778 _ACEOF
10779 if ac_fn_c_try_link "$LINENO"; then :
10780   lt_cv_irix_exported_symbol=yes
10781 else
10782   lt_cv_irix_exported_symbol=no
10783 fi
10784 rm -f core conftest.err conftest.$ac_objext \
10785     conftest$ac_exeext conftest.$ac_ext
10786            LDFLAGS="$save_LDFLAGS"
10787 fi
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10789 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10790         if test "$lt_cv_irix_exported_symbol" = yes; then
10791           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'
10792         fi
10793       else
10794         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'
10795         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'
10796       fi
10797       archive_cmds_need_lc='no'
10798       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10799       hardcode_libdir_separator=:
10800       inherit_rpath=yes
10801       link_all_deplibs=yes
10802       ;;
10803
10804     netbsd* | netbsdelf*-gnu)
10805       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10806         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10807       else
10808         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10809       fi
10810       hardcode_libdir_flag_spec='-R$libdir'
10811       hardcode_direct=yes
10812       hardcode_shlibpath_var=no
10813       ;;
10814
10815     newsos6)
10816       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10817       hardcode_direct=yes
10818       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10819       hardcode_libdir_separator=:
10820       hardcode_shlibpath_var=no
10821       ;;
10822
10823     *nto* | *qnx*)
10824       ;;
10825
10826     openbsd*)
10827       if test -f /usr/libexec/ld.so; then
10828         hardcode_direct=yes
10829         hardcode_shlibpath_var=no
10830         hardcode_direct_absolute=yes
10831         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10832           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10833           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10834           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10835           export_dynamic_flag_spec='${wl}-E'
10836         else
10837           case $host_os in
10838            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10839              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10840              hardcode_libdir_flag_spec='-R$libdir'
10841              ;;
10842            *)
10843              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10844              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10845              ;;
10846           esac
10847         fi
10848       else
10849         ld_shlibs=no
10850       fi
10851       ;;
10852
10853     os2*)
10854       hardcode_libdir_flag_spec='-L$libdir'
10855       hardcode_minus_L=yes
10856       allow_undefined_flag=unsupported
10857       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10858       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10859       ;;
10860
10861     osf3*)
10862       if test "$GCC" = yes; then
10863         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10864         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'
10865       else
10866         allow_undefined_flag=' -expect_unresolved \*'
10867         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'
10868       fi
10869       archive_cmds_need_lc='no'
10870       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10871       hardcode_libdir_separator=:
10872       ;;
10873
10874     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10875       if test "$GCC" = yes; then
10876         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10877         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'
10878         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10879       else
10880         allow_undefined_flag=' -expect_unresolved \*'
10881         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'
10882         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~
10883         $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'
10884
10885         # Both c and cxx compiler support -rpath directly
10886         hardcode_libdir_flag_spec='-rpath $libdir'
10887       fi
10888       archive_cmds_need_lc='no'
10889       hardcode_libdir_separator=:
10890       ;;
10891
10892     solaris*)
10893       no_undefined_flag=' -z defs'
10894       if test "$GCC" = yes; then
10895         wlarc='${wl}'
10896         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10897         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10898           $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'
10899       else
10900         case `$CC -V 2>&1` in
10901         *"Compilers 5.0"*)
10902           wlarc=''
10903           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10904           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10905           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10906           ;;
10907         *)
10908           wlarc='${wl}'
10909           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10910           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10911           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10912           ;;
10913         esac
10914       fi
10915       hardcode_libdir_flag_spec='-R$libdir'
10916       hardcode_shlibpath_var=no
10917       case $host_os in
10918       solaris2.[0-5] | solaris2.[0-5].*) ;;
10919       *)
10920         # The compiler driver will combine and reorder linker options,
10921         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10922         # but is careful enough not to reorder.
10923         # Supported since Solaris 2.6 (maybe 2.5.1?)
10924         if test "$GCC" = yes; then
10925           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10926         else
10927           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10928         fi
10929         ;;
10930       esac
10931       link_all_deplibs=yes
10932       ;;
10933
10934     sunos4*)
10935       if test "x$host_vendor" = xsequent; then
10936         # Use $CC to link under sequent, because it throws in some extra .o
10937         # files that make .init and .fini sections work.
10938         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10939       else
10940         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10941       fi
10942       hardcode_libdir_flag_spec='-L$libdir'
10943       hardcode_direct=yes
10944       hardcode_minus_L=yes
10945       hardcode_shlibpath_var=no
10946       ;;
10947
10948     sysv4)
10949       case $host_vendor in
10950         sni)
10951           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10952           hardcode_direct=yes # is this really true???
10953         ;;
10954         siemens)
10955           ## LD is ld it makes a PLAMLIB
10956           ## CC just makes a GrossModule.
10957           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10958           reload_cmds='$CC -r -o $output$reload_objs'
10959           hardcode_direct=no
10960         ;;
10961         motorola)
10962           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10963           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10964         ;;
10965       esac
10966       runpath_var='LD_RUN_PATH'
10967       hardcode_shlibpath_var=no
10968       ;;
10969
10970     sysv4.3*)
10971       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10972       hardcode_shlibpath_var=no
10973       export_dynamic_flag_spec='-Bexport'
10974       ;;
10975
10976     sysv4*MP*)
10977       if test -d /usr/nec; then
10978         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979         hardcode_shlibpath_var=no
10980         runpath_var=LD_RUN_PATH
10981         hardcode_runpath_var=yes
10982         ld_shlibs=yes
10983       fi
10984       ;;
10985
10986     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10987       no_undefined_flag='${wl}-z,text'
10988       archive_cmds_need_lc=no
10989       hardcode_shlibpath_var=no
10990       runpath_var='LD_RUN_PATH'
10991
10992       if test "$GCC" = yes; then
10993         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10994         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10995       else
10996         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10997         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10998       fi
10999       ;;
11000
11001     sysv5* | sco3.2v5* | sco5v6*)
11002       # Note: We can NOT use -z defs as we might desire, because we do not
11003       # link with -lc, and that would cause any symbols used from libc to
11004       # always be unresolved, which means just about no library would
11005       # ever link correctly.  If we're not using GNU ld we use -z text
11006       # though, which does catch some bad symbols but isn't as heavy-handed
11007       # as -z defs.
11008       no_undefined_flag='${wl}-z,text'
11009       allow_undefined_flag='${wl}-z,nodefs'
11010       archive_cmds_need_lc=no
11011       hardcode_shlibpath_var=no
11012       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11013       hardcode_libdir_separator=':'
11014       link_all_deplibs=yes
11015       export_dynamic_flag_spec='${wl}-Bexport'
11016       runpath_var='LD_RUN_PATH'
11017
11018       if test "$GCC" = yes; then
11019         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11020         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021       else
11022         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11023         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11024       fi
11025       ;;
11026
11027     uts4*)
11028       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11029       hardcode_libdir_flag_spec='-L$libdir'
11030       hardcode_shlibpath_var=no
11031       ;;
11032
11033     *)
11034       ld_shlibs=no
11035       ;;
11036     esac
11037
11038     if test x$host_vendor = xsni; then
11039       case $host in
11040       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11041         export_dynamic_flag_spec='${wl}-Blargedynsym'
11042         ;;
11043       esac
11044     fi
11045   fi
11046
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11048 $as_echo "$ld_shlibs" >&6; }
11049 test "$ld_shlibs" = no && can_build_shared=no
11050
11051 with_gnu_ld=$with_gnu_ld
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067 #
11068 # Do we need to explicitly link libc?
11069 #
11070 case "x$archive_cmds_need_lc" in
11071 x|xyes)
11072   # Assume -lc should be added
11073   archive_cmds_need_lc=yes
11074
11075   if test "$enable_shared" = yes && test "$GCC" = yes; then
11076     case $archive_cmds in
11077     *'~'*)
11078       # FIXME: we may have to deal with multi-command sequences.
11079       ;;
11080     '$CC '*)
11081       # Test whether the compiler implicitly links with -lc since on some
11082       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11083       # to ld, don't add -lc before -lgcc.
11084       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11085 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11086 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11087   $as_echo_n "(cached) " >&6
11088 else
11089   $RM conftest*
11090         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11091
11092         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11093   (eval $ac_compile) 2>&5
11094   ac_status=$?
11095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11096   test $ac_status = 0; } 2>conftest.err; then
11097           soname=conftest
11098           lib=conftest
11099           libobjs=conftest.$ac_objext
11100           deplibs=
11101           wl=$lt_prog_compiler_wl
11102           pic_flag=$lt_prog_compiler_pic
11103           compiler_flags=-v
11104           linker_flags=-v
11105           verstring=
11106           output_objdir=.
11107           libname=conftest
11108           lt_save_allow_undefined_flag=$allow_undefined_flag
11109           allow_undefined_flag=
11110           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11111   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11112   ac_status=$?
11113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11114   test $ac_status = 0; }
11115           then
11116             lt_cv_archive_cmds_need_lc=no
11117           else
11118             lt_cv_archive_cmds_need_lc=yes
11119           fi
11120           allow_undefined_flag=$lt_save_allow_undefined_flag
11121         else
11122           cat conftest.err 1>&5
11123         fi
11124         $RM conftest*
11125
11126 fi
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11128 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11129       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11130       ;;
11131     esac
11132   fi
11133   ;;
11134 esac
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11288 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11289
11290 if test "$GCC" = yes; then
11291   case $host_os in
11292     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11293     *) lt_awk_arg="/^libraries:/" ;;
11294   esac
11295   case $host_os in
11296     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11297     *) lt_sed_strip_eq="s,=/,/,g" ;;
11298   esac
11299   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11300   case $lt_search_path_spec in
11301   *\;*)
11302     # if the path contains ";" then we assume it to be the separator
11303     # otherwise default to the standard path separator (i.e. ":") - it is
11304     # assumed that no part of a normal pathname contains ";" but that should
11305     # okay in the real world where ";" in dirpaths is itself problematic.
11306     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11307     ;;
11308   *)
11309     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11310     ;;
11311   esac
11312   # Ok, now we have the path, separated by spaces, we can step through it
11313   # and add multilib dir if necessary.
11314   lt_tmp_lt_search_path_spec=
11315   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11316   for lt_sys_path in $lt_search_path_spec; do
11317     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11318       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11319     else
11320       test -d "$lt_sys_path" && \
11321         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11322     fi
11323   done
11324   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11325 BEGIN {RS=" "; FS="/|\n";} {
11326   lt_foo="";
11327   lt_count=0;
11328   for (lt_i = NF; lt_i > 0; lt_i--) {
11329     if ($lt_i != "" && $lt_i != ".") {
11330       if ($lt_i == "..") {
11331         lt_count++;
11332       } else {
11333         if (lt_count == 0) {
11334           lt_foo="/" $lt_i lt_foo;
11335         } else {
11336           lt_count--;
11337         }
11338       }
11339     }
11340   }
11341   if (lt_foo != "") { lt_freq[lt_foo]++; }
11342   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11343 }'`
11344   # AWK program above erroneously prepends '/' to C:/dos/paths
11345   # for these hosts.
11346   case $host_os in
11347     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11348       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11349   esac
11350   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11351 else
11352   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11353 fi
11354 library_names_spec=
11355 libname_spec='lib$name'
11356 soname_spec=
11357 shrext_cmds=".so"
11358 postinstall_cmds=
11359 postuninstall_cmds=
11360 finish_cmds=
11361 finish_eval=
11362 shlibpath_var=
11363 shlibpath_overrides_runpath=unknown
11364 version_type=none
11365 dynamic_linker="$host_os ld.so"
11366 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11367 need_lib_prefix=unknown
11368 hardcode_into_libs=no
11369
11370 # when you set need_version to no, make sure it does not cause -set_version
11371 # flags to be left without arguments
11372 need_version=unknown
11373
11374 case $host_os in
11375 aix3*)
11376   version_type=linux # correct to gnu/linux during the next big refactor
11377   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11378   shlibpath_var=LIBPATH
11379
11380   # AIX 3 has no versioning support, so we append a major version to the name.
11381   soname_spec='${libname}${release}${shared_ext}$major'
11382   ;;
11383
11384 aix[4-9]*)
11385   version_type=linux # correct to gnu/linux during the next big refactor
11386   need_lib_prefix=no
11387   need_version=no
11388   hardcode_into_libs=yes
11389   if test "$host_cpu" = ia64; then
11390     # AIX 5 supports IA64
11391     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11392     shlibpath_var=LD_LIBRARY_PATH
11393   else
11394     # With GCC up to 2.95.x, collect2 would create an import file
11395     # for dependence libraries.  The import file would start with
11396     # the line `#! .'.  This would cause the generated library to
11397     # depend on `.', always an invalid library.  This was fixed in
11398     # development snapshots of GCC prior to 3.0.
11399     case $host_os in
11400       aix4 | aix4.[01] | aix4.[01].*)
11401       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11402            echo ' yes '
11403            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11404         :
11405       else
11406         can_build_shared=no
11407       fi
11408       ;;
11409     esac
11410     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11411     # soname into executable. Probably we can add versioning support to
11412     # collect2, so additional links can be useful in future.
11413     if test "$aix_use_runtimelinking" = yes; then
11414       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11415       # instead of lib<name>.a to let people know that these are not
11416       # typical AIX shared libraries.
11417       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418     else
11419       # We preserve .a as extension for shared libraries through AIX4.2
11420       # and later when we are not doing run time linking.
11421       library_names_spec='${libname}${release}.a $libname.a'
11422       soname_spec='${libname}${release}${shared_ext}$major'
11423     fi
11424     shlibpath_var=LIBPATH
11425   fi
11426   ;;
11427
11428 amigaos*)
11429   case $host_cpu in
11430   powerpc)
11431     # Since July 2007 AmigaOS4 officially supports .so libraries.
11432     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11434     ;;
11435   m68k)
11436     library_names_spec='$libname.ixlibrary $libname.a'
11437     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11438     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11439     ;;
11440   esac
11441   ;;
11442
11443 beos*)
11444   library_names_spec='${libname}${shared_ext}'
11445   dynamic_linker="$host_os ld.so"
11446   shlibpath_var=LIBRARY_PATH
11447   ;;
11448
11449 bsdi[45]*)
11450   version_type=linux # correct to gnu/linux during the next big refactor
11451   need_version=no
11452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453   soname_spec='${libname}${release}${shared_ext}$major'
11454   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11455   shlibpath_var=LD_LIBRARY_PATH
11456   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11457   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11458   # the default ld.so.conf also contains /usr/contrib/lib and
11459   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11460   # libtool to hard-code these into programs
11461   ;;
11462
11463 cygwin* | mingw* | pw32* | cegcc*)
11464   version_type=windows
11465   shrext_cmds=".dll"
11466   need_version=no
11467   need_lib_prefix=no
11468
11469   case $GCC,$cc_basename in
11470   yes,*)
11471     # gcc
11472     library_names_spec='$libname.dll.a'
11473     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11474     postinstall_cmds='base_file=`basename \${file}`~
11475       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11476       dldir=$destdir/`dirname \$dlpath`~
11477       test -d \$dldir || mkdir -p \$dldir~
11478       $install_prog $dir/$dlname \$dldir/$dlname~
11479       chmod a+x \$dldir/$dlname~
11480       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11481         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11482       fi'
11483     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11484       dlpath=$dir/\$dldll~
11485        $RM \$dlpath'
11486     shlibpath_overrides_runpath=yes
11487
11488     case $host_os in
11489     cygwin*)
11490       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11491       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11492
11493       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11494       ;;
11495     mingw* | cegcc*)
11496       # MinGW DLLs use traditional 'lib' prefix
11497       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11498       ;;
11499     pw32*)
11500       # pw32 DLLs use 'pw' prefix rather than 'lib'
11501       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11502       ;;
11503     esac
11504     dynamic_linker='Win32 ld.exe'
11505     ;;
11506
11507   *,cl*)
11508     # Native MSVC
11509     libname_spec='$name'
11510     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11511     library_names_spec='${libname}.dll.lib'
11512
11513     case $build_os in
11514     mingw*)
11515       sys_lib_search_path_spec=
11516       lt_save_ifs=$IFS
11517       IFS=';'
11518       for lt_path in $LIB
11519       do
11520         IFS=$lt_save_ifs
11521         # Let DOS variable expansion print the short 8.3 style file name.
11522         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11523         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11524       done
11525       IFS=$lt_save_ifs
11526       # Convert to MSYS style.
11527       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11528       ;;
11529     cygwin*)
11530       # Convert to unix form, then to dos form, then back to unix form
11531       # but this time dos style (no spaces!) so that the unix form looks
11532       # like /cygdrive/c/PROGRA~1:/cygdr...
11533       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11534       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11535       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11536       ;;
11537     *)
11538       sys_lib_search_path_spec="$LIB"
11539       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11540         # It is most probably a Windows format PATH.
11541         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11542       else
11543         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11544       fi
11545       # FIXME: find the short name or the path components, as spaces are
11546       # common. (e.g. "Program Files" -> "PROGRA~1")
11547       ;;
11548     esac
11549
11550     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11551     postinstall_cmds='base_file=`basename \${file}`~
11552       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11553       dldir=$destdir/`dirname \$dlpath`~
11554       test -d \$dldir || mkdir -p \$dldir~
11555       $install_prog $dir/$dlname \$dldir/$dlname'
11556     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11557       dlpath=$dir/\$dldll~
11558        $RM \$dlpath'
11559     shlibpath_overrides_runpath=yes
11560     dynamic_linker='Win32 link.exe'
11561     ;;
11562
11563   *)
11564     # Assume MSVC wrapper
11565     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11566     dynamic_linker='Win32 ld.exe'
11567     ;;
11568   esac
11569   # FIXME: first we should search . and the directory the executable is in
11570   shlibpath_var=PATH
11571   ;;
11572
11573 darwin* | rhapsody*)
11574   dynamic_linker="$host_os dyld"
11575   version_type=darwin
11576   need_lib_prefix=no
11577   need_version=no
11578   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11579   soname_spec='${libname}${release}${major}$shared_ext'
11580   shlibpath_overrides_runpath=yes
11581   shlibpath_var=DYLD_LIBRARY_PATH
11582   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11583
11584   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11585   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11586   ;;
11587
11588 dgux*)
11589   version_type=linux # correct to gnu/linux during the next big refactor
11590   need_lib_prefix=no
11591   need_version=no
11592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11593   soname_spec='${libname}${release}${shared_ext}$major'
11594   shlibpath_var=LD_LIBRARY_PATH
11595   ;;
11596
11597 freebsd* | dragonfly*)
11598   # DragonFly does not have aout.  When/if they implement a new
11599   # versioning mechanism, adjust this.
11600   if test -x /usr/bin/objformat; then
11601     objformat=`/usr/bin/objformat`
11602   else
11603     case $host_os in
11604     freebsd[23].*) objformat=aout ;;
11605     *) objformat=elf ;;
11606     esac
11607   fi
11608   version_type=freebsd-$objformat
11609   case $version_type in
11610     freebsd-elf*)
11611       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11612       need_version=no
11613       need_lib_prefix=no
11614       ;;
11615     freebsd-*)
11616       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11617       need_version=yes
11618       ;;
11619   esac
11620   shlibpath_var=LD_LIBRARY_PATH
11621   case $host_os in
11622   freebsd2.*)
11623     shlibpath_overrides_runpath=yes
11624     ;;
11625   freebsd3.[01]* | freebsdelf3.[01]*)
11626     shlibpath_overrides_runpath=yes
11627     hardcode_into_libs=yes
11628     ;;
11629   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11630   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11631     shlibpath_overrides_runpath=no
11632     hardcode_into_libs=yes
11633     ;;
11634   *) # from 4.6 on, and DragonFly
11635     shlibpath_overrides_runpath=yes
11636     hardcode_into_libs=yes
11637     ;;
11638   esac
11639   ;;
11640
11641 haiku*)
11642   version_type=linux # correct to gnu/linux during the next big refactor
11643   need_lib_prefix=no
11644   need_version=no
11645   dynamic_linker="$host_os runtime_loader"
11646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11647   soname_spec='${libname}${release}${shared_ext}$major'
11648   shlibpath_var=LIBRARY_PATH
11649   shlibpath_overrides_runpath=yes
11650   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11651   hardcode_into_libs=yes
11652   ;;
11653
11654 hpux9* | hpux10* | hpux11*)
11655   # Give a soname corresponding to the major version so that dld.sl refuses to
11656   # link against other versions.
11657   version_type=sunos
11658   need_lib_prefix=no
11659   need_version=no
11660   case $host_cpu in
11661   ia64*)
11662     shrext_cmds='.so'
11663     hardcode_into_libs=yes
11664     dynamic_linker="$host_os dld.so"
11665     shlibpath_var=LD_LIBRARY_PATH
11666     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11668     soname_spec='${libname}${release}${shared_ext}$major'
11669     if test "X$HPUX_IA64_MODE" = X32; then
11670       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11671     else
11672       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11673     fi
11674     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11675     ;;
11676   hppa*64*)
11677     shrext_cmds='.sl'
11678     hardcode_into_libs=yes
11679     dynamic_linker="$host_os dld.sl"
11680     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11681     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11682     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11683     soname_spec='${libname}${release}${shared_ext}$major'
11684     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11685     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11686     ;;
11687   *)
11688     shrext_cmds='.sl'
11689     dynamic_linker="$host_os dld.sl"
11690     shlibpath_var=SHLIB_PATH
11691     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693     soname_spec='${libname}${release}${shared_ext}$major'
11694     ;;
11695   esac
11696   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11697   postinstall_cmds='chmod 555 $lib'
11698   # or fails outright, so override atomically:
11699   install_override_mode=555
11700   ;;
11701
11702 interix[3-9]*)
11703   version_type=linux # correct to gnu/linux during the next big refactor
11704   need_lib_prefix=no
11705   need_version=no
11706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11707   soname_spec='${libname}${release}${shared_ext}$major'
11708   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11709   shlibpath_var=LD_LIBRARY_PATH
11710   shlibpath_overrides_runpath=no
11711   hardcode_into_libs=yes
11712   ;;
11713
11714 irix5* | irix6* | nonstopux*)
11715   case $host_os in
11716     nonstopux*) version_type=nonstopux ;;
11717     *)
11718         if test "$lt_cv_prog_gnu_ld" = yes; then
11719                 version_type=linux # correct to gnu/linux during the next big refactor
11720         else
11721                 version_type=irix
11722         fi ;;
11723   esac
11724   need_lib_prefix=no
11725   need_version=no
11726   soname_spec='${libname}${release}${shared_ext}$major'
11727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11728   case $host_os in
11729   irix5* | nonstopux*)
11730     libsuff= shlibsuff=
11731     ;;
11732   *)
11733     case $LD in # libtool.m4 will add one of these switches to LD
11734     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11735       libsuff= shlibsuff= libmagic=32-bit;;
11736     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11737       libsuff=32 shlibsuff=N32 libmagic=N32;;
11738     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11739       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11740     *) libsuff= shlibsuff= libmagic=never-match;;
11741     esac
11742     ;;
11743   esac
11744   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11745   shlibpath_overrides_runpath=no
11746   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11747   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11748   hardcode_into_libs=yes
11749   ;;
11750
11751 # No shared lib support for Linux oldld, aout, or coff.
11752 linux*oldld* | linux*aout* | linux*coff*)
11753   dynamic_linker=no
11754   ;;
11755
11756 # This must be glibc/ELF.
11757 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11758   version_type=linux # correct to gnu/linux during the next big refactor
11759   need_lib_prefix=no
11760   need_version=no
11761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11762   soname_spec='${libname}${release}${shared_ext}$major'
11763   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11764   shlibpath_var=LD_LIBRARY_PATH
11765   shlibpath_overrides_runpath=no
11766
11767   # Some binutils ld are patched to set DT_RUNPATH
11768   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11769   $as_echo_n "(cached) " >&6
11770 else
11771   lt_cv_shlibpath_overrides_runpath=no
11772     save_LDFLAGS=$LDFLAGS
11773     save_libdir=$libdir
11774     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11775          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11776     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h.  */
11778
11779 int
11780 main ()
11781 {
11782
11783   ;
11784   return 0;
11785 }
11786 _ACEOF
11787 if ac_fn_c_try_link "$LINENO"; then :
11788   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11789   lt_cv_shlibpath_overrides_runpath=yes
11790 fi
11791 fi
11792 rm -f core conftest.err conftest.$ac_objext \
11793     conftest$ac_exeext conftest.$ac_ext
11794     LDFLAGS=$save_LDFLAGS
11795     libdir=$save_libdir
11796
11797 fi
11798
11799   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11800
11801   # This implies no fast_install, which is unacceptable.
11802   # Some rework will be needed to allow for fast_install
11803   # before this can be enabled.
11804   hardcode_into_libs=yes
11805
11806   # Append ld.so.conf contents to the search path
11807   if test -f /etc/ld.so.conf; then
11808     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' ' '`
11809     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11810   fi
11811
11812   # We used to test for /lib/ld.so.1 and disable shared libraries on
11813   # powerpc, because MkLinux only supported shared libraries with the
11814   # GNU dynamic linker.  Since this was broken with cross compilers,
11815   # most powerpc-linux boxes support dynamic linking these days and
11816   # people can always --disable-shared, the test was removed, and we
11817   # assume the GNU/Linux dynamic linker is in use.
11818   dynamic_linker='GNU/Linux ld.so'
11819   ;;
11820
11821 netbsdelf*-gnu)
11822   version_type=linux
11823   need_lib_prefix=no
11824   need_version=no
11825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11826   soname_spec='${libname}${release}${shared_ext}$major'
11827   shlibpath_var=LD_LIBRARY_PATH
11828   shlibpath_overrides_runpath=no
11829   hardcode_into_libs=yes
11830   dynamic_linker='NetBSD ld.elf_so'
11831   ;;
11832
11833 netbsd*)
11834   version_type=sunos
11835   need_lib_prefix=no
11836   need_version=no
11837   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11838     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11839     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11840     dynamic_linker='NetBSD (a.out) ld.so'
11841   else
11842     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11843     soname_spec='${libname}${release}${shared_ext}$major'
11844     dynamic_linker='NetBSD ld.elf_so'
11845   fi
11846   shlibpath_var=LD_LIBRARY_PATH
11847   shlibpath_overrides_runpath=yes
11848   hardcode_into_libs=yes
11849   ;;
11850
11851 newsos6)
11852   version_type=linux # correct to gnu/linux during the next big refactor
11853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854   shlibpath_var=LD_LIBRARY_PATH
11855   shlibpath_overrides_runpath=yes
11856   ;;
11857
11858 *nto* | *qnx*)
11859   version_type=qnx
11860   need_lib_prefix=no
11861   need_version=no
11862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11863   soname_spec='${libname}${release}${shared_ext}$major'
11864   shlibpath_var=LD_LIBRARY_PATH
11865   shlibpath_overrides_runpath=no
11866   hardcode_into_libs=yes
11867   dynamic_linker='ldqnx.so'
11868   ;;
11869
11870 openbsd*)
11871   version_type=sunos
11872   sys_lib_dlsearch_path_spec="/usr/lib"
11873   need_lib_prefix=no
11874   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11875   case $host_os in
11876     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11877     *)                          need_version=no  ;;
11878   esac
11879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11880   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11881   shlibpath_var=LD_LIBRARY_PATH
11882   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11883     case $host_os in
11884       openbsd2.[89] | openbsd2.[89].*)
11885         shlibpath_overrides_runpath=no
11886         ;;
11887       *)
11888         shlibpath_overrides_runpath=yes
11889         ;;
11890       esac
11891   else
11892     shlibpath_overrides_runpath=yes
11893   fi
11894   ;;
11895
11896 os2*)
11897   libname_spec='$name'
11898   shrext_cmds=".dll"
11899   need_lib_prefix=no
11900   library_names_spec='$libname${shared_ext} $libname.a'
11901   dynamic_linker='OS/2 ld.exe'
11902   shlibpath_var=LIBPATH
11903   ;;
11904
11905 osf3* | osf4* | osf5*)
11906   version_type=osf
11907   need_lib_prefix=no
11908   need_version=no
11909   soname_spec='${libname}${release}${shared_ext}$major'
11910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11911   shlibpath_var=LD_LIBRARY_PATH
11912   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11913   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11914   ;;
11915
11916 rdos*)
11917   dynamic_linker=no
11918   ;;
11919
11920 solaris*)
11921   version_type=linux # correct to gnu/linux during the next big refactor
11922   need_lib_prefix=no
11923   need_version=no
11924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11925   soname_spec='${libname}${release}${shared_ext}$major'
11926   shlibpath_var=LD_LIBRARY_PATH
11927   shlibpath_overrides_runpath=yes
11928   hardcode_into_libs=yes
11929   # ldd complains unless libraries are executable
11930   postinstall_cmds='chmod +x $lib'
11931   ;;
11932
11933 sunos4*)
11934   version_type=sunos
11935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11936   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11937   shlibpath_var=LD_LIBRARY_PATH
11938   shlibpath_overrides_runpath=yes
11939   if test "$with_gnu_ld" = yes; then
11940     need_lib_prefix=no
11941   fi
11942   need_version=yes
11943   ;;
11944
11945 sysv4 | sysv4.3*)
11946   version_type=linux # correct to gnu/linux during the next big refactor
11947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11948   soname_spec='${libname}${release}${shared_ext}$major'
11949   shlibpath_var=LD_LIBRARY_PATH
11950   case $host_vendor in
11951     sni)
11952       shlibpath_overrides_runpath=no
11953       need_lib_prefix=no
11954       runpath_var=LD_RUN_PATH
11955       ;;
11956     siemens)
11957       need_lib_prefix=no
11958       ;;
11959     motorola)
11960       need_lib_prefix=no
11961       need_version=no
11962       shlibpath_overrides_runpath=no
11963       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11964       ;;
11965   esac
11966   ;;
11967
11968 sysv4*MP*)
11969   if test -d /usr/nec ;then
11970     version_type=linux # correct to gnu/linux during the next big refactor
11971     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11972     soname_spec='$libname${shared_ext}.$major'
11973     shlibpath_var=LD_LIBRARY_PATH
11974   fi
11975   ;;
11976
11977 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11978   version_type=freebsd-elf
11979   need_lib_prefix=no
11980   need_version=no
11981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11982   soname_spec='${libname}${release}${shared_ext}$major'
11983   shlibpath_var=LD_LIBRARY_PATH
11984   shlibpath_overrides_runpath=yes
11985   hardcode_into_libs=yes
11986   if test "$with_gnu_ld" = yes; then
11987     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11988   else
11989     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11990     case $host_os in
11991       sco3.2v5*)
11992         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11993         ;;
11994     esac
11995   fi
11996   sys_lib_dlsearch_path_spec='/usr/lib'
11997   ;;
11998
11999 tpf*)
12000   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12001   version_type=linux # correct to gnu/linux during the next big refactor
12002   need_lib_prefix=no
12003   need_version=no
12004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12005   shlibpath_var=LD_LIBRARY_PATH
12006   shlibpath_overrides_runpath=no
12007   hardcode_into_libs=yes
12008   ;;
12009
12010 uts4*)
12011   version_type=linux # correct to gnu/linux during the next big refactor
12012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12013   soname_spec='${libname}${release}${shared_ext}$major'
12014   shlibpath_var=LD_LIBRARY_PATH
12015   ;;
12016
12017 *)
12018   dynamic_linker=no
12019   ;;
12020 esac
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12022 $as_echo "$dynamic_linker" >&6; }
12023 test "$dynamic_linker" = no && can_build_shared=no
12024
12025 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12026 if test "$GCC" = yes; then
12027   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12028 fi
12029
12030 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12031   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12032 fi
12033 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12034   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12035 fi
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12129 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12130 hardcode_action=
12131 if test -n "$hardcode_libdir_flag_spec" ||
12132    test -n "$runpath_var" ||
12133    test "X$hardcode_automatic" = "Xyes" ; then
12134
12135   # We can hardcode non-existent directories.
12136   if test "$hardcode_direct" != no &&
12137      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12138      # have to relink, otherwise we might link with an installed library
12139      # when we should be linking with a yet-to-be-installed one
12140      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12141      test "$hardcode_minus_L" != no; then
12142     # Linking always hardcodes the temporary library directory.
12143     hardcode_action=relink
12144   else
12145     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12146     hardcode_action=immediate
12147   fi
12148 else
12149   # We cannot hardcode anything, or else we can only hardcode existing
12150   # directories.
12151   hardcode_action=unsupported
12152 fi
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12154 $as_echo "$hardcode_action" >&6; }
12155
12156 if test "$hardcode_action" = relink ||
12157    test "$inherit_rpath" = yes; then
12158   # Fast installation is not supported
12159   enable_fast_install=no
12160 elif test "$shlibpath_overrides_runpath" = yes ||
12161      test "$enable_shared" = no; then
12162   # Fast installation is not necessary
12163   enable_fast_install=needless
12164 fi
12165
12166
12167
12168
12169
12170
12171   if test "x$enable_dlopen" != xyes; then
12172   enable_dlopen=unknown
12173   enable_dlopen_self=unknown
12174   enable_dlopen_self_static=unknown
12175 else
12176   lt_cv_dlopen=no
12177   lt_cv_dlopen_libs=
12178
12179   case $host_os in
12180   beos*)
12181     lt_cv_dlopen="load_add_on"
12182     lt_cv_dlopen_libs=
12183     lt_cv_dlopen_self=yes
12184     ;;
12185
12186   mingw* | pw32* | cegcc*)
12187     lt_cv_dlopen="LoadLibrary"
12188     lt_cv_dlopen_libs=
12189     ;;
12190
12191   cygwin*)
12192     lt_cv_dlopen="dlopen"
12193     lt_cv_dlopen_libs=
12194     ;;
12195
12196   darwin*)
12197   # if libdl is installed we need to link against it
12198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12199 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12200 if ${ac_cv_lib_dl_dlopen+:} false; then :
12201   $as_echo_n "(cached) " >&6
12202 else
12203   ac_check_lib_save_LIBS=$LIBS
12204 LIBS="-ldl  $LIBS"
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h.  */
12207
12208 /* Override any GCC internal prototype to avoid an error.
12209    Use char because int might match the return type of a GCC
12210    builtin and then its argument prototype would still apply.  */
12211 #ifdef __cplusplus
12212 extern "C"
12213 #endif
12214 char dlopen ();
12215 int
12216 main ()
12217 {
12218 return dlopen ();
12219   ;
12220   return 0;
12221 }
12222 _ACEOF
12223 if ac_fn_c_try_link "$LINENO"; then :
12224   ac_cv_lib_dl_dlopen=yes
12225 else
12226   ac_cv_lib_dl_dlopen=no
12227 fi
12228 rm -f core conftest.err conftest.$ac_objext \
12229     conftest$ac_exeext conftest.$ac_ext
12230 LIBS=$ac_check_lib_save_LIBS
12231 fi
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12233 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12234 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12235   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12236 else
12237
12238     lt_cv_dlopen="dyld"
12239     lt_cv_dlopen_libs=
12240     lt_cv_dlopen_self=yes
12241
12242 fi
12243
12244     ;;
12245
12246   *)
12247     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12248 if test "x$ac_cv_func_shl_load" = xyes; then :
12249   lt_cv_dlopen="shl_load"
12250 else
12251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12252 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12253 if ${ac_cv_lib_dld_shl_load+:} false; then :
12254   $as_echo_n "(cached) " >&6
12255 else
12256   ac_check_lib_save_LIBS=$LIBS
12257 LIBS="-ldld  $LIBS"
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h.  */
12260
12261 /* Override any GCC internal prototype to avoid an error.
12262    Use char because int might match the return type of a GCC
12263    builtin and then its argument prototype would still apply.  */
12264 #ifdef __cplusplus
12265 extern "C"
12266 #endif
12267 char shl_load ();
12268 int
12269 main ()
12270 {
12271 return shl_load ();
12272   ;
12273   return 0;
12274 }
12275 _ACEOF
12276 if ac_fn_c_try_link "$LINENO"; then :
12277   ac_cv_lib_dld_shl_load=yes
12278 else
12279   ac_cv_lib_dld_shl_load=no
12280 fi
12281 rm -f core conftest.err conftest.$ac_objext \
12282     conftest$ac_exeext conftest.$ac_ext
12283 LIBS=$ac_check_lib_save_LIBS
12284 fi
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12286 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12287 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12288   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12289 else
12290   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12291 if test "x$ac_cv_func_dlopen" = xyes; then :
12292   lt_cv_dlopen="dlopen"
12293 else
12294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12295 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12296 if ${ac_cv_lib_dl_dlopen+:} false; then :
12297   $as_echo_n "(cached) " >&6
12298 else
12299   ac_check_lib_save_LIBS=$LIBS
12300 LIBS="-ldl  $LIBS"
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302 /* end confdefs.h.  */
12303
12304 /* Override any GCC internal prototype to avoid an error.
12305    Use char because int might match the return type of a GCC
12306    builtin and then its argument prototype would still apply.  */
12307 #ifdef __cplusplus
12308 extern "C"
12309 #endif
12310 char dlopen ();
12311 int
12312 main ()
12313 {
12314 return dlopen ();
12315   ;
12316   return 0;
12317 }
12318 _ACEOF
12319 if ac_fn_c_try_link "$LINENO"; then :
12320   ac_cv_lib_dl_dlopen=yes
12321 else
12322   ac_cv_lib_dl_dlopen=no
12323 fi
12324 rm -f core conftest.err conftest.$ac_objext \
12325     conftest$ac_exeext conftest.$ac_ext
12326 LIBS=$ac_check_lib_save_LIBS
12327 fi
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12329 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12330 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12331   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12332 else
12333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12334 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12335 if ${ac_cv_lib_svld_dlopen+:} false; then :
12336   $as_echo_n "(cached) " >&6
12337 else
12338   ac_check_lib_save_LIBS=$LIBS
12339 LIBS="-lsvld  $LIBS"
12340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h.  */
12342
12343 /* Override any GCC internal prototype to avoid an error.
12344    Use char because int might match the return type of a GCC
12345    builtin and then its argument prototype would still apply.  */
12346 #ifdef __cplusplus
12347 extern "C"
12348 #endif
12349 char dlopen ();
12350 int
12351 main ()
12352 {
12353 return dlopen ();
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 if ac_fn_c_try_link "$LINENO"; then :
12359   ac_cv_lib_svld_dlopen=yes
12360 else
12361   ac_cv_lib_svld_dlopen=no
12362 fi
12363 rm -f core conftest.err conftest.$ac_objext \
12364     conftest$ac_exeext conftest.$ac_ext
12365 LIBS=$ac_check_lib_save_LIBS
12366 fi
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12368 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12369 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12370   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12371 else
12372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12373 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12374 if ${ac_cv_lib_dld_dld_link+:} false; then :
12375   $as_echo_n "(cached) " >&6
12376 else
12377   ac_check_lib_save_LIBS=$LIBS
12378 LIBS="-ldld  $LIBS"
12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380 /* end confdefs.h.  */
12381
12382 /* Override any GCC internal prototype to avoid an error.
12383    Use char because int might match the return type of a GCC
12384    builtin and then its argument prototype would still apply.  */
12385 #ifdef __cplusplus
12386 extern "C"
12387 #endif
12388 char dld_link ();
12389 int
12390 main ()
12391 {
12392 return dld_link ();
12393   ;
12394   return 0;
12395 }
12396 _ACEOF
12397 if ac_fn_c_try_link "$LINENO"; then :
12398   ac_cv_lib_dld_dld_link=yes
12399 else
12400   ac_cv_lib_dld_dld_link=no
12401 fi
12402 rm -f core conftest.err conftest.$ac_objext \
12403     conftest$ac_exeext conftest.$ac_ext
12404 LIBS=$ac_check_lib_save_LIBS
12405 fi
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12407 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12408 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12409   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12410 fi
12411
12412
12413 fi
12414
12415
12416 fi
12417
12418
12419 fi
12420
12421
12422 fi
12423
12424
12425 fi
12426
12427     ;;
12428   esac
12429
12430   if test "x$lt_cv_dlopen" != xno; then
12431     enable_dlopen=yes
12432   else
12433     enable_dlopen=no
12434   fi
12435
12436   case $lt_cv_dlopen in
12437   dlopen)
12438     save_CPPFLAGS="$CPPFLAGS"
12439     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12440
12441     save_LDFLAGS="$LDFLAGS"
12442     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12443
12444     save_LIBS="$LIBS"
12445     LIBS="$lt_cv_dlopen_libs $LIBS"
12446
12447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12448 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12449 if ${lt_cv_dlopen_self+:} false; then :
12450   $as_echo_n "(cached) " >&6
12451 else
12452           if test "$cross_compiling" = yes; then :
12453   lt_cv_dlopen_self=cross
12454 else
12455   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12456   lt_status=$lt_dlunknown
12457   cat > conftest.$ac_ext <<_LT_EOF
12458 #line $LINENO "configure"
12459 #include "confdefs.h"
12460
12461 #if HAVE_DLFCN_H
12462 #include <dlfcn.h>
12463 #endif
12464
12465 #include <stdio.h>
12466
12467 #ifdef RTLD_GLOBAL
12468 #  define LT_DLGLOBAL           RTLD_GLOBAL
12469 #else
12470 #  ifdef DL_GLOBAL
12471 #    define LT_DLGLOBAL         DL_GLOBAL
12472 #  else
12473 #    define LT_DLGLOBAL         0
12474 #  endif
12475 #endif
12476
12477 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12478    find out it does not work in some platform. */
12479 #ifndef LT_DLLAZY_OR_NOW
12480 #  ifdef RTLD_LAZY
12481 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12482 #  else
12483 #    ifdef DL_LAZY
12484 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12485 #    else
12486 #      ifdef RTLD_NOW
12487 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12488 #      else
12489 #        ifdef DL_NOW
12490 #          define LT_DLLAZY_OR_NOW      DL_NOW
12491 #        else
12492 #          define LT_DLLAZY_OR_NOW      0
12493 #        endif
12494 #      endif
12495 #    endif
12496 #  endif
12497 #endif
12498
12499 /* When -fvisbility=hidden is used, assume the code has been annotated
12500    correspondingly for the symbols needed.  */
12501 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12502 int fnord () __attribute__((visibility("default")));
12503 #endif
12504
12505 int fnord () { return 42; }
12506 int main ()
12507 {
12508   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12509   int status = $lt_dlunknown;
12510
12511   if (self)
12512     {
12513       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12514       else
12515         {
12516           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12517           else puts (dlerror ());
12518         }
12519       /* dlclose (self); */
12520     }
12521   else
12522     puts (dlerror ());
12523
12524   return status;
12525 }
12526 _LT_EOF
12527   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12528   (eval $ac_link) 2>&5
12529   ac_status=$?
12530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12531   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12532     (./conftest; exit; ) >&5 2>/dev/null
12533     lt_status=$?
12534     case x$lt_status in
12535       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12536       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12537       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12538     esac
12539   else :
12540     # compilation failed
12541     lt_cv_dlopen_self=no
12542   fi
12543 fi
12544 rm -fr conftest*
12545
12546
12547 fi
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12549 $as_echo "$lt_cv_dlopen_self" >&6; }
12550
12551     if test "x$lt_cv_dlopen_self" = xyes; then
12552       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12553       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12554 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12555 if ${lt_cv_dlopen_self_static+:} false; then :
12556   $as_echo_n "(cached) " >&6
12557 else
12558           if test "$cross_compiling" = yes; then :
12559   lt_cv_dlopen_self_static=cross
12560 else
12561   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12562   lt_status=$lt_dlunknown
12563   cat > conftest.$ac_ext <<_LT_EOF
12564 #line $LINENO "configure"
12565 #include "confdefs.h"
12566
12567 #if HAVE_DLFCN_H
12568 #include <dlfcn.h>
12569 #endif
12570
12571 #include <stdio.h>
12572
12573 #ifdef RTLD_GLOBAL
12574 #  define LT_DLGLOBAL           RTLD_GLOBAL
12575 #else
12576 #  ifdef DL_GLOBAL
12577 #    define LT_DLGLOBAL         DL_GLOBAL
12578 #  else
12579 #    define LT_DLGLOBAL         0
12580 #  endif
12581 #endif
12582
12583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12584    find out it does not work in some platform. */
12585 #ifndef LT_DLLAZY_OR_NOW
12586 #  ifdef RTLD_LAZY
12587 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12588 #  else
12589 #    ifdef DL_LAZY
12590 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12591 #    else
12592 #      ifdef RTLD_NOW
12593 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12594 #      else
12595 #        ifdef DL_NOW
12596 #          define LT_DLLAZY_OR_NOW      DL_NOW
12597 #        else
12598 #          define LT_DLLAZY_OR_NOW      0
12599 #        endif
12600 #      endif
12601 #    endif
12602 #  endif
12603 #endif
12604
12605 /* When -fvisbility=hidden is used, assume the code has been annotated
12606    correspondingly for the symbols needed.  */
12607 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12608 int fnord () __attribute__((visibility("default")));
12609 #endif
12610
12611 int fnord () { return 42; }
12612 int main ()
12613 {
12614   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12615   int status = $lt_dlunknown;
12616
12617   if (self)
12618     {
12619       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12620       else
12621         {
12622           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12623           else puts (dlerror ());
12624         }
12625       /* dlclose (self); */
12626     }
12627   else
12628     puts (dlerror ());
12629
12630   return status;
12631 }
12632 _LT_EOF
12633   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12634   (eval $ac_link) 2>&5
12635   ac_status=$?
12636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12637   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12638     (./conftest; exit; ) >&5 2>/dev/null
12639     lt_status=$?
12640     case x$lt_status in
12641       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12642       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12643       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12644     esac
12645   else :
12646     # compilation failed
12647     lt_cv_dlopen_self_static=no
12648   fi
12649 fi
12650 rm -fr conftest*
12651
12652
12653 fi
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12655 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12656     fi
12657
12658     CPPFLAGS="$save_CPPFLAGS"
12659     LDFLAGS="$save_LDFLAGS"
12660     LIBS="$save_LIBS"
12661     ;;
12662   esac
12663
12664   case $lt_cv_dlopen_self in
12665   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12666   *) enable_dlopen_self=unknown ;;
12667   esac
12668
12669   case $lt_cv_dlopen_self_static in
12670   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12671   *) enable_dlopen_self_static=unknown ;;
12672   esac
12673 fi
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691 striplib=
12692 old_striplib=
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12694 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12695 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12696   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12697   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12699 $as_echo "yes" >&6; }
12700 else
12701 # FIXME - insert some real tests, host_os isn't really good enough
12702   case $host_os in
12703   darwin*)
12704     if test -n "$STRIP" ; then
12705       striplib="$STRIP -x"
12706       old_striplib="$STRIP -S"
12707       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12708 $as_echo "yes" >&6; }
12709     else
12710       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711 $as_echo "no" >&6; }
12712     fi
12713     ;;
12714   *)
12715     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716 $as_echo "no" >&6; }
12717     ;;
12718   esac
12719 fi
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732   # Report which library types will actually be built
12733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12734 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12736 $as_echo "$can_build_shared" >&6; }
12737
12738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12739 $as_echo_n "checking whether to build shared libraries... " >&6; }
12740   test "$can_build_shared" = "no" && enable_shared=no
12741
12742   # On AIX, shared libraries and static libraries use the same namespace, and
12743   # are all built from PIC.
12744   case $host_os in
12745   aix3*)
12746     test "$enable_shared" = yes && enable_static=no
12747     if test -n "$RANLIB"; then
12748       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12749       postinstall_cmds='$RANLIB $lib'
12750     fi
12751     ;;
12752
12753   aix[4-9]*)
12754     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12755       test "$enable_shared" = yes && enable_static=no
12756     fi
12757     ;;
12758   esac
12759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12760 $as_echo "$enable_shared" >&6; }
12761
12762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12763 $as_echo_n "checking whether to build static libraries... " >&6; }
12764   # Make sure either enable_shared or enable_static is yes.
12765   test "$enable_shared" = yes || enable_static=yes
12766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12767 $as_echo "$enable_static" >&6; }
12768
12769
12770
12771
12772 fi
12773 ac_ext=c
12774 ac_cpp='$CPP $CPPFLAGS'
12775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12778
12779 CC="$lt_save_CC"
12780
12781       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12782     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12783     (test "X$CXX" != "Xg++"))) ; then
12784   ac_ext=cpp
12785 ac_cpp='$CXXCPP $CPPFLAGS'
12786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12790 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12791 if test -z "$CXXCPP"; then
12792   if ${ac_cv_prog_CXXCPP+:} false; then :
12793   $as_echo_n "(cached) " >&6
12794 else
12795       # Double quotes because CXXCPP needs to be expanded
12796     for CXXCPP in "$CXX -E" "/lib/cpp"
12797     do
12798       ac_preproc_ok=false
12799 for ac_cxx_preproc_warn_flag in '' yes
12800 do
12801   # Use a header file that comes with gcc, so configuring glibc
12802   # with a fresh cross-compiler works.
12803   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12804   # <limits.h> exists even on freestanding compilers.
12805   # On the NeXT, cc -E runs the code through the compiler's parser,
12806   # not just through cpp. "Syntax error" is here to catch this case.
12807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h.  */
12809 #ifdef __STDC__
12810 # include <limits.h>
12811 #else
12812 # include <assert.h>
12813 #endif
12814                      Syntax error
12815 _ACEOF
12816 if ac_fn_cxx_try_cpp "$LINENO"; then :
12817
12818 else
12819   # Broken: fails on valid input.
12820 continue
12821 fi
12822 rm -f conftest.err conftest.i conftest.$ac_ext
12823
12824   # OK, works on sane cases.  Now check whether nonexistent headers
12825   # can be detected and how.
12826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h.  */
12828 #include <ac_nonexistent.h>
12829 _ACEOF
12830 if ac_fn_cxx_try_cpp "$LINENO"; then :
12831   # Broken: success on invalid input.
12832 continue
12833 else
12834   # Passes both tests.
12835 ac_preproc_ok=:
12836 break
12837 fi
12838 rm -f conftest.err conftest.i conftest.$ac_ext
12839
12840 done
12841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12842 rm -f conftest.i conftest.err conftest.$ac_ext
12843 if $ac_preproc_ok; then :
12844   break
12845 fi
12846
12847     done
12848     ac_cv_prog_CXXCPP=$CXXCPP
12849
12850 fi
12851   CXXCPP=$ac_cv_prog_CXXCPP
12852 else
12853   ac_cv_prog_CXXCPP=$CXXCPP
12854 fi
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12856 $as_echo "$CXXCPP" >&6; }
12857 ac_preproc_ok=false
12858 for ac_cxx_preproc_warn_flag in '' yes
12859 do
12860   # Use a header file that comes with gcc, so configuring glibc
12861   # with a fresh cross-compiler works.
12862   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12863   # <limits.h> exists even on freestanding compilers.
12864   # On the NeXT, cc -E runs the code through the compiler's parser,
12865   # not just through cpp. "Syntax error" is here to catch this case.
12866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h.  */
12868 #ifdef __STDC__
12869 # include <limits.h>
12870 #else
12871 # include <assert.h>
12872 #endif
12873                      Syntax error
12874 _ACEOF
12875 if ac_fn_cxx_try_cpp "$LINENO"; then :
12876
12877 else
12878   # Broken: fails on valid input.
12879 continue
12880 fi
12881 rm -f conftest.err conftest.i conftest.$ac_ext
12882
12883   # OK, works on sane cases.  Now check whether nonexistent headers
12884   # can be detected and how.
12885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h.  */
12887 #include <ac_nonexistent.h>
12888 _ACEOF
12889 if ac_fn_cxx_try_cpp "$LINENO"; then :
12890   # Broken: success on invalid input.
12891 continue
12892 else
12893   # Passes both tests.
12894 ac_preproc_ok=:
12895 break
12896 fi
12897 rm -f conftest.err conftest.i conftest.$ac_ext
12898
12899 done
12900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12901 rm -f conftest.i conftest.err conftest.$ac_ext
12902 if $ac_preproc_ok; then :
12903
12904 else
12905   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12907 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12908 See \`config.log' for more details" "$LINENO" 5; }
12909 fi
12910
12911 ac_ext=c
12912 ac_cpp='$CPP $CPPFLAGS'
12913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12916
12917 else
12918   _lt_caught_CXX_error=yes
12919 fi
12920
12921 ac_ext=cpp
12922 ac_cpp='$CXXCPP $CPPFLAGS'
12923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12926
12927 archive_cmds_need_lc_CXX=no
12928 allow_undefined_flag_CXX=
12929 always_export_symbols_CXX=no
12930 archive_expsym_cmds_CXX=
12931 compiler_needs_object_CXX=no
12932 export_dynamic_flag_spec_CXX=
12933 hardcode_direct_CXX=no
12934 hardcode_direct_absolute_CXX=no
12935 hardcode_libdir_flag_spec_CXX=
12936 hardcode_libdir_separator_CXX=
12937 hardcode_minus_L_CXX=no
12938 hardcode_shlibpath_var_CXX=unsupported
12939 hardcode_automatic_CXX=no
12940 inherit_rpath_CXX=no
12941 module_cmds_CXX=
12942 module_expsym_cmds_CXX=
12943 link_all_deplibs_CXX=unknown
12944 old_archive_cmds_CXX=$old_archive_cmds
12945 reload_flag_CXX=$reload_flag
12946 reload_cmds_CXX=$reload_cmds
12947 no_undefined_flag_CXX=
12948 whole_archive_flag_spec_CXX=
12949 enable_shared_with_static_runtimes_CXX=no
12950
12951 # Source file extension for C++ test sources.
12952 ac_ext=cpp
12953
12954 # Object file extension for compiled C++ test sources.
12955 objext=o
12956 objext_CXX=$objext
12957
12958 # No sense in running all these tests if we already determined that
12959 # the CXX compiler isn't working.  Some variables (like enable_shared)
12960 # are currently assumed to apply to all compilers on this platform,
12961 # and will be corrupted by setting them based on a non-working compiler.
12962 if test "$_lt_caught_CXX_error" != yes; then
12963   # Code to be used in simple compile tests
12964   lt_simple_compile_test_code="int some_variable = 0;"
12965
12966   # Code to be used in simple link tests
12967   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12968
12969   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12970
12971
12972
12973
12974
12975
12976 # If no C compiler was specified, use CC.
12977 LTCC=${LTCC-"$CC"}
12978
12979 # If no C compiler flags were specified, use CFLAGS.
12980 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12981
12982 # Allow CC to be a program name with arguments.
12983 compiler=$CC
12984
12985
12986   # save warnings/boilerplate of simple test code
12987   ac_outfile=conftest.$ac_objext
12988 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12989 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12990 _lt_compiler_boilerplate=`cat conftest.err`
12991 $RM conftest*
12992
12993   ac_outfile=conftest.$ac_objext
12994 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12995 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12996 _lt_linker_boilerplate=`cat conftest.err`
12997 $RM -r conftest*
12998
12999
13000   # Allow CC to be a program name with arguments.
13001   lt_save_CC=$CC
13002   lt_save_CFLAGS=$CFLAGS
13003   lt_save_LD=$LD
13004   lt_save_GCC=$GCC
13005   GCC=$GXX
13006   lt_save_with_gnu_ld=$with_gnu_ld
13007   lt_save_path_LD=$lt_cv_path_LD
13008   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13009     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13010   else
13011     $as_unset lt_cv_prog_gnu_ld
13012   fi
13013   if test -n "${lt_cv_path_LDCXX+set}"; then
13014     lt_cv_path_LD=$lt_cv_path_LDCXX
13015   else
13016     $as_unset lt_cv_path_LD
13017   fi
13018   test -z "${LDCXX+set}" || LD=$LDCXX
13019   CC=${CXX-"c++"}
13020   CFLAGS=$CXXFLAGS
13021   compiler=$CC
13022   compiler_CXX=$CC
13023   for cc_temp in $compiler""; do
13024   case $cc_temp in
13025     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13026     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13027     \-*) ;;
13028     *) break;;
13029   esac
13030 done
13031 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13032
13033
13034   if test -n "$compiler"; then
13035     # We don't want -fno-exception when compiling C++ code, so set the
13036     # no_builtin_flag separately
13037     if test "$GXX" = yes; then
13038       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13039     else
13040       lt_prog_compiler_no_builtin_flag_CXX=
13041     fi
13042
13043     if test "$GXX" = yes; then
13044       # Set up default GNU C++ configuration
13045
13046
13047
13048 # Check whether --with-gnu-ld was given.
13049 if test "${with_gnu_ld+set}" = set; then :
13050   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13051 else
13052   with_gnu_ld=no
13053 fi
13054
13055 ac_prog=ld
13056 if test "$GCC" = yes; then
13057   # Check if gcc -print-prog-name=ld gives a path.
13058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13059 $as_echo_n "checking for ld used by $CC... " >&6; }
13060   case $host in
13061   *-*-mingw*)
13062     # gcc leaves a trailing carriage return which upsets mingw
13063     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13064   *)
13065     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13066   esac
13067   case $ac_prog in
13068     # Accept absolute paths.
13069     [\\/]* | ?:[\\/]*)
13070       re_direlt='/[^/][^/]*/\.\./'
13071       # Canonicalize the pathname of ld
13072       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13073       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13074         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13075       done
13076       test -z "$LD" && LD="$ac_prog"
13077       ;;
13078   "")
13079     # If it fails, then pretend we aren't using GCC.
13080     ac_prog=ld
13081     ;;
13082   *)
13083     # If it is relative, then search for the first ld in PATH.
13084     with_gnu_ld=unknown
13085     ;;
13086   esac
13087 elif test "$with_gnu_ld" = yes; then
13088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13089 $as_echo_n "checking for GNU ld... " >&6; }
13090 else
13091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13092 $as_echo_n "checking for non-GNU ld... " >&6; }
13093 fi
13094 if ${lt_cv_path_LD+:} false; then :
13095   $as_echo_n "(cached) " >&6
13096 else
13097   if test -z "$LD"; then
13098   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13099   for ac_dir in $PATH; do
13100     IFS="$lt_save_ifs"
13101     test -z "$ac_dir" && ac_dir=.
13102     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13103       lt_cv_path_LD="$ac_dir/$ac_prog"
13104       # Check to see if the program is GNU ld.  I'd rather use --version,
13105       # but apparently some variants of GNU ld only accept -v.
13106       # Break only if it was the GNU/non-GNU ld that we prefer.
13107       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13108       *GNU* | *'with BFD'*)
13109         test "$with_gnu_ld" != no && break
13110         ;;
13111       *)
13112         test "$with_gnu_ld" != yes && break
13113         ;;
13114       esac
13115     fi
13116   done
13117   IFS="$lt_save_ifs"
13118 else
13119   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13120 fi
13121 fi
13122
13123 LD="$lt_cv_path_LD"
13124 if test -n "$LD"; then
13125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13126 $as_echo "$LD" >&6; }
13127 else
13128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13130 fi
13131 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13133 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13134 if ${lt_cv_prog_gnu_ld+:} false; then :
13135   $as_echo_n "(cached) " >&6
13136 else
13137   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13138 case `$LD -v 2>&1 </dev/null` in
13139 *GNU* | *'with BFD'*)
13140   lt_cv_prog_gnu_ld=yes
13141   ;;
13142 *)
13143   lt_cv_prog_gnu_ld=no
13144   ;;
13145 esac
13146 fi
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13148 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13149 with_gnu_ld=$lt_cv_prog_gnu_ld
13150
13151
13152
13153
13154
13155
13156
13157       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13158       # archiving commands below assume that GNU ld is being used.
13159       if test "$with_gnu_ld" = yes; then
13160         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13161         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'
13162
13163         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13164         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13165
13166         # If archive_cmds runs LD, not CC, wlarc should be empty
13167         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13168         #     investigate it a little bit more. (MM)
13169         wlarc='${wl}'
13170
13171         # ancient GNU ld didn't support --whole-archive et. al.
13172         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13173           $GREP 'no-whole-archive' > /dev/null; then
13174           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13175         else
13176           whole_archive_flag_spec_CXX=
13177         fi
13178       else
13179         with_gnu_ld=no
13180         wlarc=
13181
13182         # A generic and very simple default shared library creation
13183         # command for GNU C++ for the case where it uses the native
13184         # linker, instead of GNU ld.  If possible, this setting should
13185         # overridden to take advantage of the native linker features on
13186         # the platform it is being used on.
13187         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13188       fi
13189
13190       # Commands to make compiler produce verbose output that lists
13191       # what "hidden" libraries, object files and flags are used when
13192       # linking a shared library.
13193       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13194
13195     else
13196       GXX=no
13197       with_gnu_ld=no
13198       wlarc=
13199     fi
13200
13201     # PORTME: fill in a description of your system's C++ link characteristics
13202     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13203 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13204     ld_shlibs_CXX=yes
13205     case $host_os in
13206       aix3*)
13207         # FIXME: insert proper C++ library support
13208         ld_shlibs_CXX=no
13209         ;;
13210       aix[4-9]*)
13211         if test "$host_cpu" = ia64; then
13212           # On IA64, the linker does run time linking by default, so we don't
13213           # have to do anything special.
13214           aix_use_runtimelinking=no
13215           exp_sym_flag='-Bexport'
13216           no_entry_flag=""
13217         else
13218           aix_use_runtimelinking=no
13219
13220           # Test if we are trying to use run time linking or normal
13221           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13222           # need to do runtime linking.
13223           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13224             for ld_flag in $LDFLAGS; do
13225               case $ld_flag in
13226               *-brtl*)
13227                 aix_use_runtimelinking=yes
13228                 break
13229                 ;;
13230               esac
13231             done
13232             ;;
13233           esac
13234
13235           exp_sym_flag='-bexport'
13236           no_entry_flag='-bnoentry'
13237         fi
13238
13239         # When large executables or shared objects are built, AIX ld can
13240         # have problems creating the table of contents.  If linking a library
13241         # or program results in "error TOC overflow" add -mminimal-toc to
13242         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13243         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13244
13245         archive_cmds_CXX=''
13246         hardcode_direct_CXX=yes
13247         hardcode_direct_absolute_CXX=yes
13248         hardcode_libdir_separator_CXX=':'
13249         link_all_deplibs_CXX=yes
13250         file_list_spec_CXX='${wl}-f,'
13251
13252         if test "$GXX" = yes; then
13253           case $host_os in aix4.[012]|aix4.[012].*)
13254           # We only want to do this on AIX 4.2 and lower, the check
13255           # below for broken collect2 doesn't work under 4.3+
13256           collect2name=`${CC} -print-prog-name=collect2`
13257           if test -f "$collect2name" &&
13258              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13259           then
13260             # We have reworked collect2
13261             :
13262           else
13263             # We have old collect2
13264             hardcode_direct_CXX=unsupported
13265             # It fails to find uninstalled libraries when the uninstalled
13266             # path is not listed in the libpath.  Setting hardcode_minus_L
13267             # to unsupported forces relinking
13268             hardcode_minus_L_CXX=yes
13269             hardcode_libdir_flag_spec_CXX='-L$libdir'
13270             hardcode_libdir_separator_CXX=
13271           fi
13272           esac
13273           shared_flag='-shared'
13274           if test "$aix_use_runtimelinking" = yes; then
13275             shared_flag="$shared_flag "'${wl}-G'
13276           fi
13277         else
13278           # not using gcc
13279           if test "$host_cpu" = ia64; then
13280           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13281           # chokes on -Wl,-G. The following line is correct:
13282           shared_flag='-G'
13283           else
13284             if test "$aix_use_runtimelinking" = yes; then
13285               shared_flag='${wl}-G'
13286             else
13287               shared_flag='${wl}-bM:SRE'
13288             fi
13289           fi
13290         fi
13291
13292         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13293         # It seems that -bexpall does not export symbols beginning with
13294         # underscore (_), so it is better to generate a list of symbols to
13295         # export.
13296         always_export_symbols_CXX=yes
13297         if test "$aix_use_runtimelinking" = yes; then
13298           # Warning - without using the other runtime loading flags (-brtl),
13299           # -berok will link without error, but may produce a broken library.
13300           allow_undefined_flag_CXX='-berok'
13301           # Determine the default libpath from the value encoded in an empty
13302           # executable.
13303           if test "${lt_cv_aix_libpath+set}" = set; then
13304   aix_libpath=$lt_cv_aix_libpath
13305 else
13306   if ${lt_cv_aix_libpath__CXX+:} false; then :
13307   $as_echo_n "(cached) " >&6
13308 else
13309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310 /* end confdefs.h.  */
13311
13312 int
13313 main ()
13314 {
13315
13316   ;
13317   return 0;
13318 }
13319 _ACEOF
13320 if ac_fn_cxx_try_link "$LINENO"; then :
13321
13322   lt_aix_libpath_sed='
13323       /Import File Strings/,/^$/ {
13324           /^0/ {
13325               s/^0  *\([^ ]*\) *$/\1/
13326               p
13327           }
13328       }'
13329   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13330   # Check for a 64-bit object if we didn't find anything.
13331   if test -z "$lt_cv_aix_libpath__CXX"; then
13332     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13333   fi
13334 fi
13335 rm -f core conftest.err conftest.$ac_objext \
13336     conftest$ac_exeext conftest.$ac_ext
13337   if test -z "$lt_cv_aix_libpath__CXX"; then
13338     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13339   fi
13340
13341 fi
13342
13343   aix_libpath=$lt_cv_aix_libpath__CXX
13344 fi
13345
13346           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13347
13348           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13349         else
13350           if test "$host_cpu" = ia64; then
13351             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13352             allow_undefined_flag_CXX="-z nodefs"
13353             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"
13354           else
13355             # Determine the default libpath from the value encoded in an
13356             # empty executable.
13357             if test "${lt_cv_aix_libpath+set}" = set; then
13358   aix_libpath=$lt_cv_aix_libpath
13359 else
13360   if ${lt_cv_aix_libpath__CXX+:} false; then :
13361   $as_echo_n "(cached) " >&6
13362 else
13363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h.  */
13365
13366 int
13367 main ()
13368 {
13369
13370   ;
13371   return 0;
13372 }
13373 _ACEOF
13374 if ac_fn_cxx_try_link "$LINENO"; then :
13375
13376   lt_aix_libpath_sed='
13377       /Import File Strings/,/^$/ {
13378           /^0/ {
13379               s/^0  *\([^ ]*\) *$/\1/
13380               p
13381           }
13382       }'
13383   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13384   # Check for a 64-bit object if we didn't find anything.
13385   if test -z "$lt_cv_aix_libpath__CXX"; then
13386     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13387   fi
13388 fi
13389 rm -f core conftest.err conftest.$ac_objext \
13390     conftest$ac_exeext conftest.$ac_ext
13391   if test -z "$lt_cv_aix_libpath__CXX"; then
13392     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13393   fi
13394
13395 fi
13396
13397   aix_libpath=$lt_cv_aix_libpath__CXX
13398 fi
13399
13400             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13401             # Warning - without using the other run time loading flags,
13402             # -berok will link without error, but may produce a broken library.
13403             no_undefined_flag_CXX=' ${wl}-bernotok'
13404             allow_undefined_flag_CXX=' ${wl}-berok'
13405             if test "$with_gnu_ld" = yes; then
13406               # We only use this code for GNU lds that support --whole-archive.
13407               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13408             else
13409               # Exported symbols can be pulled into shared objects from archives
13410               whole_archive_flag_spec_CXX='$convenience'
13411             fi
13412             archive_cmds_need_lc_CXX=yes
13413             # This is similar to how AIX traditionally builds its shared
13414             # libraries.
13415             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13416           fi
13417         fi
13418         ;;
13419
13420       beos*)
13421         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13422           allow_undefined_flag_CXX=unsupported
13423           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13424           # support --undefined.  This deserves some investigation.  FIXME
13425           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13426         else
13427           ld_shlibs_CXX=no
13428         fi
13429         ;;
13430
13431       chorus*)
13432         case $cc_basename in
13433           *)
13434           # FIXME: insert proper C++ library support
13435           ld_shlibs_CXX=no
13436           ;;
13437         esac
13438         ;;
13439
13440       cygwin* | mingw* | pw32* | cegcc*)
13441         case $GXX,$cc_basename in
13442         ,cl* | no,cl*)
13443           # Native MSVC
13444           # hardcode_libdir_flag_spec is actually meaningless, as there is
13445           # no search path for DLLs.
13446           hardcode_libdir_flag_spec_CXX=' '
13447           allow_undefined_flag_CXX=unsupported
13448           always_export_symbols_CXX=yes
13449           file_list_spec_CXX='@'
13450           # Tell ltmain to make .lib files, not .a files.
13451           libext=lib
13452           # Tell ltmain to make .dll files, not .so files.
13453           shrext_cmds=".dll"
13454           # FIXME: Setting linknames here is a bad hack.
13455           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13456           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13457               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13458             else
13459               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13460             fi~
13461             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13462             linknames='
13463           # The linker will not automatically build a static lib if we build a DLL.
13464           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13465           enable_shared_with_static_runtimes_CXX=yes
13466           # Don't use ranlib
13467           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13468           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13469             lt_tool_outputfile="@TOOL_OUTPUT@"~
13470             case $lt_outputfile in
13471               *.exe|*.EXE) ;;
13472               *)
13473                 lt_outputfile="$lt_outputfile.exe"
13474                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13475                 ;;
13476             esac~
13477             func_to_tool_file "$lt_outputfile"~
13478             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13479               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13480               $RM "$lt_outputfile.manifest";
13481             fi'
13482           ;;
13483         *)
13484           # g++
13485           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13486           # as there is no search path for DLLs.
13487           hardcode_libdir_flag_spec_CXX='-L$libdir'
13488           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13489           allow_undefined_flag_CXX=unsupported
13490           always_export_symbols_CXX=no
13491           enable_shared_with_static_runtimes_CXX=yes
13492
13493           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13494             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'
13495             # If the export-symbols file already is a .def file (1st line
13496             # is EXPORTS), use it as is; otherwise, prepend...
13497             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13498               cp $export_symbols $output_objdir/$soname.def;
13499             else
13500               echo EXPORTS > $output_objdir/$soname.def;
13501               cat $export_symbols >> $output_objdir/$soname.def;
13502             fi~
13503             $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'
13504           else
13505             ld_shlibs_CXX=no
13506           fi
13507           ;;
13508         esac
13509         ;;
13510       darwin* | rhapsody*)
13511
13512
13513   archive_cmds_need_lc_CXX=no
13514   hardcode_direct_CXX=no
13515   hardcode_automatic_CXX=yes
13516   hardcode_shlibpath_var_CXX=unsupported
13517   if test "$lt_cv_ld_force_load" = "yes"; then
13518     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\"`'
13519
13520   else
13521     whole_archive_flag_spec_CXX=''
13522   fi
13523   link_all_deplibs_CXX=yes
13524   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13525   case $cc_basename in
13526      ifort*) _lt_dar_can_shared=yes ;;
13527      *) _lt_dar_can_shared=$GCC ;;
13528   esac
13529   if test "$_lt_dar_can_shared" = "yes"; then
13530     output_verbose_link_cmd=func_echo_all
13531     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}"
13532     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13533     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}"
13534     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}"
13535        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13536       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}"
13537       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}"
13538     fi
13539
13540   else
13541   ld_shlibs_CXX=no
13542   fi
13543
13544         ;;
13545
13546       dgux*)
13547         case $cc_basename in
13548           ec++*)
13549             # FIXME: insert proper C++ library support
13550             ld_shlibs_CXX=no
13551             ;;
13552           ghcx*)
13553             # Green Hills C++ Compiler
13554             # FIXME: insert proper C++ library support
13555             ld_shlibs_CXX=no
13556             ;;
13557           *)
13558             # FIXME: insert proper C++ library support
13559             ld_shlibs_CXX=no
13560             ;;
13561         esac
13562         ;;
13563
13564       freebsd2.*)
13565         # C++ shared libraries reported to be fairly broken before
13566         # switch to ELF
13567         ld_shlibs_CXX=no
13568         ;;
13569
13570       freebsd-elf*)
13571         archive_cmds_need_lc_CXX=no
13572         ;;
13573
13574       freebsd* | dragonfly*)
13575         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13576         # conventions
13577         ld_shlibs_CXX=yes
13578         ;;
13579
13580       haiku*)
13581         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13582         link_all_deplibs_CXX=yes
13583         ;;
13584
13585       hpux9*)
13586         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13587         hardcode_libdir_separator_CXX=:
13588         export_dynamic_flag_spec_CXX='${wl}-E'
13589         hardcode_direct_CXX=yes
13590         hardcode_minus_L_CXX=yes # Not in the search PATH,
13591                                              # but as the default
13592                                              # location of the library.
13593
13594         case $cc_basename in
13595           CC*)
13596             # FIXME: insert proper C++ library support
13597             ld_shlibs_CXX=no
13598             ;;
13599           aCC*)
13600             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13601             # Commands to make compiler produce verbose output that lists
13602             # what "hidden" libraries, object files and flags are used when
13603             # linking a shared library.
13604             #
13605             # There doesn't appear to be a way to prevent this compiler from
13606             # explicitly linking system object files so we need to strip them
13607             # from the output so that they don't get included in the library
13608             # dependencies.
13609             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"'
13610             ;;
13611           *)
13612             if test "$GXX" = yes; then
13613               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13614             else
13615               # FIXME: insert proper C++ library support
13616               ld_shlibs_CXX=no
13617             fi
13618             ;;
13619         esac
13620         ;;
13621
13622       hpux10*|hpux11*)
13623         if test $with_gnu_ld = no; then
13624           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13625           hardcode_libdir_separator_CXX=:
13626
13627           case $host_cpu in
13628             hppa*64*|ia64*)
13629               ;;
13630             *)
13631               export_dynamic_flag_spec_CXX='${wl}-E'
13632               ;;
13633           esac
13634         fi
13635         case $host_cpu in
13636           hppa*64*|ia64*)
13637             hardcode_direct_CXX=no
13638             hardcode_shlibpath_var_CXX=no
13639             ;;
13640           *)
13641             hardcode_direct_CXX=yes
13642             hardcode_direct_absolute_CXX=yes
13643             hardcode_minus_L_CXX=yes # Not in the search PATH,
13644                                                  # but as the default
13645                                                  # location of the library.
13646             ;;
13647         esac
13648
13649         case $cc_basename in
13650           CC*)
13651             # FIXME: insert proper C++ library support
13652             ld_shlibs_CXX=no
13653             ;;
13654           aCC*)
13655             case $host_cpu in
13656               hppa*64*)
13657                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13658                 ;;
13659               ia64*)
13660                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13661                 ;;
13662               *)
13663                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13664                 ;;
13665             esac
13666             # Commands to make compiler produce verbose output that lists
13667             # what "hidden" libraries, object files and flags are used when
13668             # linking a shared library.
13669             #
13670             # There doesn't appear to be a way to prevent this compiler from
13671             # explicitly linking system object files so we need to strip them
13672             # from the output so that they don't get included in the library
13673             # dependencies.
13674             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"'
13675             ;;
13676           *)
13677             if test "$GXX" = yes; then
13678               if test $with_gnu_ld = no; then
13679                 case $host_cpu in
13680                   hppa*64*)
13681                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13682                     ;;
13683                   ia64*)
13684                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13685                     ;;
13686                   *)
13687                     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'
13688                     ;;
13689                 esac
13690               fi
13691             else
13692               # FIXME: insert proper C++ library support
13693               ld_shlibs_CXX=no
13694             fi
13695             ;;
13696         esac
13697         ;;
13698
13699       interix[3-9]*)
13700         hardcode_direct_CXX=no
13701         hardcode_shlibpath_var_CXX=no
13702         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13703         export_dynamic_flag_spec_CXX='${wl}-E'
13704         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13705         # Instead, shared libraries are loaded at an image base (0x10000000 by
13706         # default) and relocated if they conflict, which is a slow very memory
13707         # consuming and fragmenting process.  To avoid this, we pick a random,
13708         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13709         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13710         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'
13711         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'
13712         ;;
13713       irix5* | irix6*)
13714         case $cc_basename in
13715           CC*)
13716             # SGI C++
13717             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'
13718
13719             # Archives containing C++ object files must be created using
13720             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13721             # necessary to make sure instantiated templates are included
13722             # in the archive.
13723             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13724             ;;
13725           *)
13726             if test "$GXX" = yes; then
13727               if test "$with_gnu_ld" = no; then
13728                 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'
13729               else
13730                 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'
13731               fi
13732             fi
13733             link_all_deplibs_CXX=yes
13734             ;;
13735         esac
13736         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13737         hardcode_libdir_separator_CXX=:
13738         inherit_rpath_CXX=yes
13739         ;;
13740
13741       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13742         case $cc_basename in
13743           KCC*)
13744             # Kuck and Associates, Inc. (KAI) C++ Compiler
13745
13746             # KCC will only create a shared library if the output file
13747             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13748             # to its proper name (with version) after linking.
13749             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'
13750             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'
13751             # Commands to make compiler produce verbose output that lists
13752             # what "hidden" libraries, object files and flags are used when
13753             # linking a shared library.
13754             #
13755             # There doesn't appear to be a way to prevent this compiler from
13756             # explicitly linking system object files so we need to strip them
13757             # from the output so that they don't get included in the library
13758             # dependencies.
13759             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"'
13760
13761             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13762             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13763
13764             # Archives containing C++ object files must be created using
13765             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13766             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13767             ;;
13768           icpc* | ecpc* )
13769             # Intel C++
13770             with_gnu_ld=yes
13771             # version 8.0 and above of icpc choke on multiply defined symbols
13772             # if we add $predep_objects and $postdep_objects, however 7.1 and
13773             # earlier do not add the objects themselves.
13774             case `$CC -V 2>&1` in
13775               *"Version 7."*)
13776                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13777                 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'
13778                 ;;
13779               *)  # Version 8.0 or newer
13780                 tmp_idyn=
13781                 case $host_cpu in
13782                   ia64*) tmp_idyn=' -i_dynamic';;
13783                 esac
13784                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13785                 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'
13786                 ;;
13787             esac
13788             archive_cmds_need_lc_CXX=no
13789             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13790             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13791             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13792             ;;
13793           pgCC* | pgcpp*)
13794             # Portland Group C++ compiler
13795             case `$CC -V` in
13796             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13797               prelink_cmds_CXX='tpldir=Template.dir~
13798                 rm -rf $tpldir~
13799                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13800                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13801               old_archive_cmds_CXX='tpldir=Template.dir~
13802                 rm -rf $tpldir~
13803                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13804                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13805                 $RANLIB $oldlib'
13806               archive_cmds_CXX='tpldir=Template.dir~
13807                 rm -rf $tpldir~
13808                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13809                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13810               archive_expsym_cmds_CXX='tpldir=Template.dir~
13811                 rm -rf $tpldir~
13812                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13813                 $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'
13814               ;;
13815             *) # Version 6 and above use weak symbols
13816               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13817               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'
13818               ;;
13819             esac
13820
13821             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13822             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13823             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'
13824             ;;
13825           cxx*)
13826             # Compaq C++
13827             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13828             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'
13829
13830             runpath_var=LD_RUN_PATH
13831             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13832             hardcode_libdir_separator_CXX=:
13833
13834             # Commands to make compiler produce verbose output that lists
13835             # what "hidden" libraries, object files and flags are used when
13836             # linking a shared library.
13837             #
13838             # There doesn't appear to be a way to prevent this compiler from
13839             # explicitly linking system object files so we need to strip them
13840             # from the output so that they don't get included in the library
13841             # dependencies.
13842             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'
13843             ;;
13844           xl* | mpixl* | bgxl*)
13845             # IBM XL 8.0 on PPC, with GNU ld
13846             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13847             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13848             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13849             if test "x$supports_anon_versioning" = xyes; then
13850               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13851                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13852                 echo "local: *; };" >> $output_objdir/$libname.ver~
13853                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13854             fi
13855             ;;
13856           *)
13857             case `$CC -V 2>&1 | sed 5q` in
13858             *Sun\ C*)
13859               # Sun C++ 5.9
13860               no_undefined_flag_CXX=' -zdefs'
13861               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13862               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'
13863               hardcode_libdir_flag_spec_CXX='-R$libdir'
13864               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'
13865               compiler_needs_object_CXX=yes
13866
13867               # Not sure whether something based on
13868               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13869               # would be better.
13870               output_verbose_link_cmd='func_echo_all'
13871
13872               # Archives containing C++ object files must be created using
13873               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13874               # necessary to make sure instantiated templates are included
13875               # in the archive.
13876               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13877               ;;
13878             esac
13879             ;;
13880         esac
13881         ;;
13882
13883       lynxos*)
13884         # FIXME: insert proper C++ library support
13885         ld_shlibs_CXX=no
13886         ;;
13887
13888       m88k*)
13889         # FIXME: insert proper C++ library support
13890         ld_shlibs_CXX=no
13891         ;;
13892
13893       mvs*)
13894         case $cc_basename in
13895           cxx*)
13896             # FIXME: insert proper C++ library support
13897             ld_shlibs_CXX=no
13898             ;;
13899           *)
13900             # FIXME: insert proper C++ library support
13901             ld_shlibs_CXX=no
13902             ;;
13903         esac
13904         ;;
13905
13906       netbsd*)
13907         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13908           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13909           wlarc=
13910           hardcode_libdir_flag_spec_CXX='-R$libdir'
13911           hardcode_direct_CXX=yes
13912           hardcode_shlibpath_var_CXX=no
13913         fi
13914         # Workaround some broken pre-1.5 toolchains
13915         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13916         ;;
13917
13918       *nto* | *qnx*)
13919         ld_shlibs_CXX=yes
13920         ;;
13921
13922       openbsd2*)
13923         # C++ shared libraries are fairly broken
13924         ld_shlibs_CXX=no
13925         ;;
13926
13927       openbsd*)
13928         if test -f /usr/libexec/ld.so; then
13929           hardcode_direct_CXX=yes
13930           hardcode_shlibpath_var_CXX=no
13931           hardcode_direct_absolute_CXX=yes
13932           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13933           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13934           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13935             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13936             export_dynamic_flag_spec_CXX='${wl}-E'
13937             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13938           fi
13939           output_verbose_link_cmd=func_echo_all
13940         else
13941           ld_shlibs_CXX=no
13942         fi
13943         ;;
13944
13945       osf3* | osf4* | osf5*)
13946         case $cc_basename in
13947           KCC*)
13948             # Kuck and Associates, Inc. (KAI) C++ Compiler
13949
13950             # KCC will only create a shared library if the output file
13951             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13952             # to its proper name (with version) after linking.
13953             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'
13954
13955             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13956             hardcode_libdir_separator_CXX=:
13957
13958             # Archives containing C++ object files must be created using
13959             # the KAI C++ compiler.
13960             case $host in
13961               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13962               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13963             esac
13964             ;;
13965           RCC*)
13966             # Rational C++ 2.4.1
13967             # FIXME: insert proper C++ library support
13968             ld_shlibs_CXX=no
13969             ;;
13970           cxx*)
13971             case $host in
13972               osf3*)
13973                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13974                 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'
13975                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13976                 ;;
13977               *)
13978                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13979                 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'
13980                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13981                   echo "-hidden">> $lib.exp~
13982                   $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~
13983                   $RM $lib.exp'
13984                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13985                 ;;
13986             esac
13987
13988             hardcode_libdir_separator_CXX=:
13989
13990             # Commands to make compiler produce verbose output that lists
13991             # what "hidden" libraries, object files and flags are used when
13992             # linking a shared library.
13993             #
13994             # There doesn't appear to be a way to prevent this compiler from
13995             # explicitly linking system object files so we need to strip them
13996             # from the output so that they don't get included in the library
13997             # dependencies.
13998             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"'
13999             ;;
14000           *)
14001             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14002               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14003               case $host in
14004                 osf3*)
14005                   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'
14006                   ;;
14007                 *)
14008                   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'
14009                   ;;
14010               esac
14011
14012               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14013               hardcode_libdir_separator_CXX=:
14014
14015               # Commands to make compiler produce verbose output that lists
14016               # what "hidden" libraries, object files and flags are used when
14017               # linking a shared library.
14018               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14019
14020             else
14021               # FIXME: insert proper C++ library support
14022               ld_shlibs_CXX=no
14023             fi
14024             ;;
14025         esac
14026         ;;
14027
14028       psos*)
14029         # FIXME: insert proper C++ library support
14030         ld_shlibs_CXX=no
14031         ;;
14032
14033       sunos4*)
14034         case $cc_basename in
14035           CC*)
14036             # Sun C++ 4.x
14037             # FIXME: insert proper C++ library support
14038             ld_shlibs_CXX=no
14039             ;;
14040           lcc*)
14041             # Lucid
14042             # FIXME: insert proper C++ library support
14043             ld_shlibs_CXX=no
14044             ;;
14045           *)
14046             # FIXME: insert proper C++ library support
14047             ld_shlibs_CXX=no
14048             ;;
14049         esac
14050         ;;
14051
14052       solaris*)
14053         case $cc_basename in
14054           CC* | sunCC*)
14055             # Sun C++ 4.2, 5.x and Centerline C++
14056             archive_cmds_need_lc_CXX=yes
14057             no_undefined_flag_CXX=' -zdefs'
14058             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14059             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14060               $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'
14061
14062             hardcode_libdir_flag_spec_CXX='-R$libdir'
14063             hardcode_shlibpath_var_CXX=no
14064             case $host_os in
14065               solaris2.[0-5] | solaris2.[0-5].*) ;;
14066               *)
14067                 # The compiler driver will combine and reorder linker options,
14068                 # but understands `-z linker_flag'.
14069                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14070                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14071                 ;;
14072             esac
14073             link_all_deplibs_CXX=yes
14074
14075             output_verbose_link_cmd='func_echo_all'
14076
14077             # Archives containing C++ object files must be created using
14078             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14079             # necessary to make sure instantiated templates are included
14080             # in the archive.
14081             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14082             ;;
14083           gcx*)
14084             # Green Hills C++ Compiler
14085             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14086
14087             # The C++ compiler must be used to create the archive.
14088             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14089             ;;
14090           *)
14091             # GNU C++ compiler with Solaris linker
14092             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14093               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14094               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14095                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14096                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14097                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14098
14099                 # Commands to make compiler produce verbose output that lists
14100                 # what "hidden" libraries, object files and flags are used when
14101                 # linking a shared library.
14102                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14103               else
14104                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14105                 # platform.
14106                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14107                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14108                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14109
14110                 # Commands to make compiler produce verbose output that lists
14111                 # what "hidden" libraries, object files and flags are used when
14112                 # linking a shared library.
14113                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14114               fi
14115
14116               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14117               case $host_os in
14118                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14119                 *)
14120                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14121                   ;;
14122               esac
14123             fi
14124             ;;
14125         esac
14126         ;;
14127
14128     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14129       no_undefined_flag_CXX='${wl}-z,text'
14130       archive_cmds_need_lc_CXX=no
14131       hardcode_shlibpath_var_CXX=no
14132       runpath_var='LD_RUN_PATH'
14133
14134       case $cc_basename in
14135         CC*)
14136           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14137           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14138           ;;
14139         *)
14140           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14141           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14142           ;;
14143       esac
14144       ;;
14145
14146       sysv5* | sco3.2v5* | sco5v6*)
14147         # Note: We can NOT use -z defs as we might desire, because we do not
14148         # link with -lc, and that would cause any symbols used from libc to
14149         # always be unresolved, which means just about no library would
14150         # ever link correctly.  If we're not using GNU ld we use -z text
14151         # though, which does catch some bad symbols but isn't as heavy-handed
14152         # as -z defs.
14153         no_undefined_flag_CXX='${wl}-z,text'
14154         allow_undefined_flag_CXX='${wl}-z,nodefs'
14155         archive_cmds_need_lc_CXX=no
14156         hardcode_shlibpath_var_CXX=no
14157         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14158         hardcode_libdir_separator_CXX=':'
14159         link_all_deplibs_CXX=yes
14160         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14161         runpath_var='LD_RUN_PATH'
14162
14163         case $cc_basename in
14164           CC*)
14165             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14166             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14167             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14168               '"$old_archive_cmds_CXX"
14169             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14170               '"$reload_cmds_CXX"
14171             ;;
14172           *)
14173             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14174             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14175             ;;
14176         esac
14177       ;;
14178
14179       tandem*)
14180         case $cc_basename in
14181           NCC*)
14182             # NonStop-UX NCC 3.20
14183             # FIXME: insert proper C++ library support
14184             ld_shlibs_CXX=no
14185             ;;
14186           *)
14187             # FIXME: insert proper C++ library support
14188             ld_shlibs_CXX=no
14189             ;;
14190         esac
14191         ;;
14192
14193       vxworks*)
14194         # FIXME: insert proper C++ library support
14195         ld_shlibs_CXX=no
14196         ;;
14197
14198       *)
14199         # FIXME: insert proper C++ library support
14200         ld_shlibs_CXX=no
14201         ;;
14202     esac
14203
14204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14205 $as_echo "$ld_shlibs_CXX" >&6; }
14206     test "$ld_shlibs_CXX" = no && can_build_shared=no
14207
14208     GCC_CXX="$GXX"
14209     LD_CXX="$LD"
14210
14211     ## CAVEAT EMPTOR:
14212     ## There is no encapsulation within the following macros, do not change
14213     ## the running order or otherwise move them around unless you know exactly
14214     ## what you are doing...
14215     # Dependencies to place before and after the object being linked:
14216 predep_objects_CXX=
14217 postdep_objects_CXX=
14218 predeps_CXX=
14219 postdeps_CXX=
14220 compiler_lib_search_path_CXX=
14221
14222 cat > conftest.$ac_ext <<_LT_EOF
14223 class Foo
14224 {
14225 public:
14226   Foo (void) { a = 0; }
14227 private:
14228   int a;
14229 };
14230 _LT_EOF
14231
14232
14233 _lt_libdeps_save_CFLAGS=$CFLAGS
14234 case "$CC $CFLAGS " in #(
14235 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14236 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14237 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14238 esac
14239
14240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14241   (eval $ac_compile) 2>&5
14242   ac_status=$?
14243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14244   test $ac_status = 0; }; then
14245   # Parse the compiler output and extract the necessary
14246   # objects, libraries and library flags.
14247
14248   # Sentinel used to keep track of whether or not we are before
14249   # the conftest object file.
14250   pre_test_object_deps_done=no
14251
14252   for p in `eval "$output_verbose_link_cmd"`; do
14253     case ${prev}${p} in
14254
14255     -L* | -R* | -l*)
14256        # Some compilers place space between "-{L,R}" and the path.
14257        # Remove the space.
14258        if test $p = "-L" ||
14259           test $p = "-R"; then
14260          prev=$p
14261          continue
14262        fi
14263
14264        # Expand the sysroot to ease extracting the directories later.
14265        if test -z "$prev"; then
14266          case $p in
14267          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14268          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14269          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14270          esac
14271        fi
14272        case $p in
14273        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14274        esac
14275        if test "$pre_test_object_deps_done" = no; then
14276          case ${prev} in
14277          -L | -R)
14278            # Internal compiler library paths should come after those
14279            # provided the user.  The postdeps already come after the
14280            # user supplied libs so there is no need to process them.
14281            if test -z "$compiler_lib_search_path_CXX"; then
14282              compiler_lib_search_path_CXX="${prev}${p}"
14283            else
14284              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14285            fi
14286            ;;
14287          # The "-l" case would never come before the object being
14288          # linked, so don't bother handling this case.
14289          esac
14290        else
14291          if test -z "$postdeps_CXX"; then
14292            postdeps_CXX="${prev}${p}"
14293          else
14294            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14295          fi
14296        fi
14297        prev=
14298        ;;
14299
14300     *.lto.$objext) ;; # Ignore GCC LTO objects
14301     *.$objext)
14302        # This assumes that the test object file only shows up
14303        # once in the compiler output.
14304        if test "$p" = "conftest.$objext"; then
14305          pre_test_object_deps_done=yes
14306          continue
14307        fi
14308
14309        if test "$pre_test_object_deps_done" = no; then
14310          if test -z "$predep_objects_CXX"; then
14311            predep_objects_CXX="$p"
14312          else
14313            predep_objects_CXX="$predep_objects_CXX $p"
14314          fi
14315        else
14316          if test -z "$postdep_objects_CXX"; then
14317            postdep_objects_CXX="$p"
14318          else
14319            postdep_objects_CXX="$postdep_objects_CXX $p"
14320          fi
14321        fi
14322        ;;
14323
14324     *) ;; # Ignore the rest.
14325
14326     esac
14327   done
14328
14329   # Clean up.
14330   rm -f a.out a.exe
14331 else
14332   echo "libtool.m4: error: problem compiling CXX test program"
14333 fi
14334
14335 $RM -f confest.$objext
14336 CFLAGS=$_lt_libdeps_save_CFLAGS
14337
14338 # PORTME: override above test on systems where it is broken
14339 case $host_os in
14340 interix[3-9]*)
14341   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14342   # hack all around it, let's just trust "g++" to DTRT.
14343   predep_objects_CXX=
14344   postdep_objects_CXX=
14345   postdeps_CXX=
14346   ;;
14347
14348 linux*)
14349   case `$CC -V 2>&1 | sed 5q` in
14350   *Sun\ C*)
14351     # Sun C++ 5.9
14352
14353     # The more standards-conforming stlport4 library is
14354     # incompatible with the Cstd library. Avoid specifying
14355     # it if it's in CXXFLAGS. Ignore libCrun as
14356     # -library=stlport4 depends on it.
14357     case " $CXX $CXXFLAGS " in
14358     *" -library=stlport4 "*)
14359       solaris_use_stlport4=yes
14360       ;;
14361     esac
14362
14363     if test "$solaris_use_stlport4" != yes; then
14364       postdeps_CXX='-library=Cstd -library=Crun'
14365     fi
14366     ;;
14367   esac
14368   ;;
14369
14370 solaris*)
14371   case $cc_basename in
14372   CC* | sunCC*)
14373     # The more standards-conforming stlport4 library is
14374     # incompatible with the Cstd library. Avoid specifying
14375     # it if it's in CXXFLAGS. Ignore libCrun as
14376     # -library=stlport4 depends on it.
14377     case " $CXX $CXXFLAGS " in
14378     *" -library=stlport4 "*)
14379       solaris_use_stlport4=yes
14380       ;;
14381     esac
14382
14383     # Adding this requires a known-good setup of shared libraries for
14384     # Sun compiler versions before 5.6, else PIC objects from an old
14385     # archive will be linked into the output, leading to subtle bugs.
14386     if test "$solaris_use_stlport4" != yes; then
14387       postdeps_CXX='-library=Cstd -library=Crun'
14388     fi
14389     ;;
14390   esac
14391   ;;
14392 esac
14393
14394
14395 case " $postdeps_CXX " in
14396 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14397 esac
14398  compiler_lib_search_dirs_CXX=
14399 if test -n "${compiler_lib_search_path_CXX}"; then
14400  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14401 fi
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433     lt_prog_compiler_wl_CXX=
14434 lt_prog_compiler_pic_CXX=
14435 lt_prog_compiler_static_CXX=
14436
14437
14438   # C++ specific cases for pic, static, wl, etc.
14439   if test "$GXX" = yes; then
14440     lt_prog_compiler_wl_CXX='-Wl,'
14441     lt_prog_compiler_static_CXX='-static'
14442
14443     case $host_os in
14444     aix*)
14445       # All AIX code is PIC.
14446       if test "$host_cpu" = ia64; then
14447         # AIX 5 now supports IA64 processor
14448         lt_prog_compiler_static_CXX='-Bstatic'
14449       fi
14450       ;;
14451
14452     amigaos*)
14453       case $host_cpu in
14454       powerpc)
14455             # see comment about AmigaOS4 .so support
14456             lt_prog_compiler_pic_CXX='-fPIC'
14457         ;;
14458       m68k)
14459             # FIXME: we need at least 68020 code to build shared libraries, but
14460             # adding the `-m68020' flag to GCC prevents building anything better,
14461             # like `-m68040'.
14462             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14463         ;;
14464       esac
14465       ;;
14466
14467     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14468       # PIC is the default for these OSes.
14469       ;;
14470     mingw* | cygwin* | os2* | pw32* | cegcc*)
14471       # This hack is so that the source file can tell whether it is being
14472       # built for inclusion in a dll (and should export symbols for example).
14473       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14474       # (--disable-auto-import) libraries
14475       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14476       ;;
14477     darwin* | rhapsody*)
14478       # PIC is the default on this platform
14479       # Common symbols not allowed in MH_DYLIB files
14480       lt_prog_compiler_pic_CXX='-fno-common'
14481       ;;
14482     *djgpp*)
14483       # DJGPP does not support shared libraries at all
14484       lt_prog_compiler_pic_CXX=
14485       ;;
14486     haiku*)
14487       # PIC is the default for Haiku.
14488       # The "-static" flag exists, but is broken.
14489       lt_prog_compiler_static_CXX=
14490       ;;
14491     interix[3-9]*)
14492       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14493       # Instead, we relocate shared libraries at runtime.
14494       ;;
14495     sysv4*MP*)
14496       if test -d /usr/nec; then
14497         lt_prog_compiler_pic_CXX=-Kconform_pic
14498       fi
14499       ;;
14500     hpux*)
14501       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14502       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14503       # sets the default TLS model and affects inlining.
14504       case $host_cpu in
14505       hppa*64*)
14506         ;;
14507       *)
14508         lt_prog_compiler_pic_CXX='-fPIC'
14509         ;;
14510       esac
14511       ;;
14512     *qnx* | *nto*)
14513       # QNX uses GNU C++, but need to define -shared option too, otherwise
14514       # it will coredump.
14515       lt_prog_compiler_pic_CXX='-fPIC -shared'
14516       ;;
14517     *)
14518       lt_prog_compiler_pic_CXX='-fPIC'
14519       ;;
14520     esac
14521   else
14522     case $host_os in
14523       aix[4-9]*)
14524         # All AIX code is PIC.
14525         if test "$host_cpu" = ia64; then
14526           # AIX 5 now supports IA64 processor
14527           lt_prog_compiler_static_CXX='-Bstatic'
14528         else
14529           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14530         fi
14531         ;;
14532       chorus*)
14533         case $cc_basename in
14534         cxch68*)
14535           # Green Hills C++ Compiler
14536           # _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"
14537           ;;
14538         esac
14539         ;;
14540       mingw* | cygwin* | os2* | pw32* | cegcc*)
14541         # This hack is so that the source file can tell whether it is being
14542         # built for inclusion in a dll (and should export symbols for example).
14543         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14544         ;;
14545       dgux*)
14546         case $cc_basename in
14547           ec++*)
14548             lt_prog_compiler_pic_CXX='-KPIC'
14549             ;;
14550           ghcx*)
14551             # Green Hills C++ Compiler
14552             lt_prog_compiler_pic_CXX='-pic'
14553             ;;
14554           *)
14555             ;;
14556         esac
14557         ;;
14558       freebsd* | dragonfly*)
14559         # FreeBSD uses GNU C++
14560         ;;
14561       hpux9* | hpux10* | hpux11*)
14562         case $cc_basename in
14563           CC*)
14564             lt_prog_compiler_wl_CXX='-Wl,'
14565             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14566             if test "$host_cpu" != ia64; then
14567               lt_prog_compiler_pic_CXX='+Z'
14568             fi
14569             ;;
14570           aCC*)
14571             lt_prog_compiler_wl_CXX='-Wl,'
14572             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14573             case $host_cpu in
14574             hppa*64*|ia64*)
14575               # +Z the default
14576               ;;
14577             *)
14578               lt_prog_compiler_pic_CXX='+Z'
14579               ;;
14580             esac
14581             ;;
14582           *)
14583             ;;
14584         esac
14585         ;;
14586       interix*)
14587         # This is c89, which is MS Visual C++ (no shared libs)
14588         # Anyone wants to do a port?
14589         ;;
14590       irix5* | irix6* | nonstopux*)
14591         case $cc_basename in
14592           CC*)
14593             lt_prog_compiler_wl_CXX='-Wl,'
14594             lt_prog_compiler_static_CXX='-non_shared'
14595             # CC pic flag -KPIC is the default.
14596             ;;
14597           *)
14598             ;;
14599         esac
14600         ;;
14601       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14602         case $cc_basename in
14603           KCC*)
14604             # KAI C++ Compiler
14605             lt_prog_compiler_wl_CXX='--backend -Wl,'
14606             lt_prog_compiler_pic_CXX='-fPIC'
14607             ;;
14608           ecpc* )
14609             # old Intel C++ for x86_64 which still supported -KPIC.
14610             lt_prog_compiler_wl_CXX='-Wl,'
14611             lt_prog_compiler_pic_CXX='-KPIC'
14612             lt_prog_compiler_static_CXX='-static'
14613             ;;
14614           icpc* )
14615             # Intel C++, used to be incompatible with GCC.
14616             # ICC 10 doesn't accept -KPIC any more.
14617             lt_prog_compiler_wl_CXX='-Wl,'
14618             lt_prog_compiler_pic_CXX='-fPIC'
14619             lt_prog_compiler_static_CXX='-static'
14620             ;;
14621           pgCC* | pgcpp*)
14622             # Portland Group C++ compiler
14623             lt_prog_compiler_wl_CXX='-Wl,'
14624             lt_prog_compiler_pic_CXX='-fpic'
14625             lt_prog_compiler_static_CXX='-Bstatic'
14626             ;;
14627           cxx*)
14628             # Compaq C++
14629             # Make sure the PIC flag is empty.  It appears that all Alpha
14630             # Linux and Compaq Tru64 Unix objects are PIC.
14631             lt_prog_compiler_pic_CXX=
14632             lt_prog_compiler_static_CXX='-non_shared'
14633             ;;
14634           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14635             # IBM XL 8.0, 9.0 on PPC and BlueGene
14636             lt_prog_compiler_wl_CXX='-Wl,'
14637             lt_prog_compiler_pic_CXX='-qpic'
14638             lt_prog_compiler_static_CXX='-qstaticlink'
14639             ;;
14640           *)
14641             case `$CC -V 2>&1 | sed 5q` in
14642             *Sun\ C*)
14643               # Sun C++ 5.9
14644               lt_prog_compiler_pic_CXX='-KPIC'
14645               lt_prog_compiler_static_CXX='-Bstatic'
14646               lt_prog_compiler_wl_CXX='-Qoption ld '
14647               ;;
14648             esac
14649             ;;
14650         esac
14651         ;;
14652       lynxos*)
14653         ;;
14654       m88k*)
14655         ;;
14656       mvs*)
14657         case $cc_basename in
14658           cxx*)
14659             lt_prog_compiler_pic_CXX='-W c,exportall'
14660             ;;
14661           *)
14662             ;;
14663         esac
14664         ;;
14665       netbsd* | netbsdelf*-gnu)
14666         ;;
14667       *qnx* | *nto*)
14668         # QNX uses GNU C++, but need to define -shared option too, otherwise
14669         # it will coredump.
14670         lt_prog_compiler_pic_CXX='-fPIC -shared'
14671         ;;
14672       osf3* | osf4* | osf5*)
14673         case $cc_basename in
14674           KCC*)
14675             lt_prog_compiler_wl_CXX='--backend -Wl,'
14676             ;;
14677           RCC*)
14678             # Rational C++ 2.4.1
14679             lt_prog_compiler_pic_CXX='-pic'
14680             ;;
14681           cxx*)
14682             # Digital/Compaq C++
14683             lt_prog_compiler_wl_CXX='-Wl,'
14684             # Make sure the PIC flag is empty.  It appears that all Alpha
14685             # Linux and Compaq Tru64 Unix objects are PIC.
14686             lt_prog_compiler_pic_CXX=
14687             lt_prog_compiler_static_CXX='-non_shared'
14688             ;;
14689           *)
14690             ;;
14691         esac
14692         ;;
14693       psos*)
14694         ;;
14695       solaris*)
14696         case $cc_basename in
14697           CC* | sunCC*)
14698             # Sun C++ 4.2, 5.x and Centerline C++
14699             lt_prog_compiler_pic_CXX='-KPIC'
14700             lt_prog_compiler_static_CXX='-Bstatic'
14701             lt_prog_compiler_wl_CXX='-Qoption ld '
14702             ;;
14703           gcx*)
14704             # Green Hills C++ Compiler
14705             lt_prog_compiler_pic_CXX='-PIC'
14706             ;;
14707           *)
14708             ;;
14709         esac
14710         ;;
14711       sunos4*)
14712         case $cc_basename in
14713           CC*)
14714             # Sun C++ 4.x
14715             lt_prog_compiler_pic_CXX='-pic'
14716             lt_prog_compiler_static_CXX='-Bstatic'
14717             ;;
14718           lcc*)
14719             # Lucid
14720             lt_prog_compiler_pic_CXX='-pic'
14721             ;;
14722           *)
14723             ;;
14724         esac
14725         ;;
14726       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14727         case $cc_basename in
14728           CC*)
14729             lt_prog_compiler_wl_CXX='-Wl,'
14730             lt_prog_compiler_pic_CXX='-KPIC'
14731             lt_prog_compiler_static_CXX='-Bstatic'
14732             ;;
14733         esac
14734         ;;
14735       tandem*)
14736         case $cc_basename in
14737           NCC*)
14738             # NonStop-UX NCC 3.20
14739             lt_prog_compiler_pic_CXX='-KPIC'
14740             ;;
14741           *)
14742             ;;
14743         esac
14744         ;;
14745       vxworks*)
14746         ;;
14747       *)
14748         lt_prog_compiler_can_build_shared_CXX=no
14749         ;;
14750     esac
14751   fi
14752
14753 case $host_os in
14754   # For platforms which do not support PIC, -DPIC is meaningless:
14755   *djgpp*)
14756     lt_prog_compiler_pic_CXX=
14757     ;;
14758   *)
14759     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14760     ;;
14761 esac
14762
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14764 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14765 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14766   $as_echo_n "(cached) " >&6
14767 else
14768   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14769 fi
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14771 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14772 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14773
14774 #
14775 # Check to make sure the PIC flag actually works.
14776 #
14777 if test -n "$lt_prog_compiler_pic_CXX"; then
14778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14779 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14780 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14781   $as_echo_n "(cached) " >&6
14782 else
14783   lt_cv_prog_compiler_pic_works_CXX=no
14784    ac_outfile=conftest.$ac_objext
14785    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14786    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14787    # Insert the option either (1) after the last *FLAGS variable, or
14788    # (2) before a word containing "conftest.", or (3) at the end.
14789    # Note that $ac_compile itself does not contain backslashes and begins
14790    # with a dollar sign (not a hyphen), so the echo should work correctly.
14791    # The option is referenced via a variable to avoid confusing sed.
14792    lt_compile=`echo "$ac_compile" | $SED \
14793    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14795    -e 's:$: $lt_compiler_flag:'`
14796    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14797    (eval "$lt_compile" 2>conftest.err)
14798    ac_status=$?
14799    cat conftest.err >&5
14800    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801    if (exit $ac_status) && test -s "$ac_outfile"; then
14802      # The compiler can only warn and ignore the option if not recognized
14803      # So say no if there are warnings other than the usual output.
14804      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14805      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14806      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14807        lt_cv_prog_compiler_pic_works_CXX=yes
14808      fi
14809    fi
14810    $RM conftest*
14811
14812 fi
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14814 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14815
14816 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14817     case $lt_prog_compiler_pic_CXX in
14818      "" | " "*) ;;
14819      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14820      esac
14821 else
14822     lt_prog_compiler_pic_CXX=
14823      lt_prog_compiler_can_build_shared_CXX=no
14824 fi
14825
14826 fi
14827
14828
14829
14830
14831
14832 #
14833 # Check to make sure the static flag actually works.
14834 #
14835 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14837 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14838 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14839   $as_echo_n "(cached) " >&6
14840 else
14841   lt_cv_prog_compiler_static_works_CXX=no
14842    save_LDFLAGS="$LDFLAGS"
14843    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14844    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14845    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14846      # The linker can only warn and ignore the option if not recognized
14847      # So say no if there are warnings
14848      if test -s conftest.err; then
14849        # Append any errors to the config.log.
14850        cat conftest.err 1>&5
14851        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14852        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14853        if diff conftest.exp conftest.er2 >/dev/null; then
14854          lt_cv_prog_compiler_static_works_CXX=yes
14855        fi
14856      else
14857        lt_cv_prog_compiler_static_works_CXX=yes
14858      fi
14859    fi
14860    $RM -r conftest*
14861    LDFLAGS="$save_LDFLAGS"
14862
14863 fi
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14865 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14866
14867 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14868     :
14869 else
14870     lt_prog_compiler_static_CXX=
14871 fi
14872
14873
14874
14875
14876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14877 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14878 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14879   $as_echo_n "(cached) " >&6
14880 else
14881   lt_cv_prog_compiler_c_o_CXX=no
14882    $RM -r conftest 2>/dev/null
14883    mkdir conftest
14884    cd conftest
14885    mkdir out
14886    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14887
14888    lt_compiler_flag="-o out/conftest2.$ac_objext"
14889    # Insert the option either (1) after the last *FLAGS variable, or
14890    # (2) before a word containing "conftest.", or (3) at the end.
14891    # Note that $ac_compile itself does not contain backslashes and begins
14892    # with a dollar sign (not a hyphen), so the echo should work correctly.
14893    lt_compile=`echo "$ac_compile" | $SED \
14894    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14895    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14896    -e 's:$: $lt_compiler_flag:'`
14897    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14898    (eval "$lt_compile" 2>out/conftest.err)
14899    ac_status=$?
14900    cat out/conftest.err >&5
14901    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14903    then
14904      # The compiler can only warn and ignore the option if not recognized
14905      # So say no if there are warnings
14906      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14907      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14908      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14909        lt_cv_prog_compiler_c_o_CXX=yes
14910      fi
14911    fi
14912    chmod u+w . 2>&5
14913    $RM conftest*
14914    # SGI C++ compiler will create directory out/ii_files/ for
14915    # template instantiation
14916    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14917    $RM out/* && rmdir out
14918    cd ..
14919    $RM -r conftest
14920    $RM conftest*
14921
14922 fi
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14924 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14925
14926
14927
14928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14929 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14930 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14931   $as_echo_n "(cached) " >&6
14932 else
14933   lt_cv_prog_compiler_c_o_CXX=no
14934    $RM -r conftest 2>/dev/null
14935    mkdir conftest
14936    cd conftest
14937    mkdir out
14938    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14939
14940    lt_compiler_flag="-o out/conftest2.$ac_objext"
14941    # Insert the option either (1) after the last *FLAGS variable, or
14942    # (2) before a word containing "conftest.", or (3) at the end.
14943    # Note that $ac_compile itself does not contain backslashes and begins
14944    # with a dollar sign (not a hyphen), so the echo should work correctly.
14945    lt_compile=`echo "$ac_compile" | $SED \
14946    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14947    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14948    -e 's:$: $lt_compiler_flag:'`
14949    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14950    (eval "$lt_compile" 2>out/conftest.err)
14951    ac_status=$?
14952    cat out/conftest.err >&5
14953    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14955    then
14956      # The compiler can only warn and ignore the option if not recognized
14957      # So say no if there are warnings
14958      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14959      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14960      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14961        lt_cv_prog_compiler_c_o_CXX=yes
14962      fi
14963    fi
14964    chmod u+w . 2>&5
14965    $RM conftest*
14966    # SGI C++ compiler will create directory out/ii_files/ for
14967    # template instantiation
14968    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14969    $RM out/* && rmdir out
14970    cd ..
14971    $RM -r conftest
14972    $RM conftest*
14973
14974 fi
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14976 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14977
14978
14979
14980
14981 hard_links="nottested"
14982 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14983   # do not overwrite the value of need_locks provided by the user
14984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14985 $as_echo_n "checking if we can lock with hard links... " >&6; }
14986   hard_links=yes
14987   $RM conftest*
14988   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14989   touch conftest.a
14990   ln conftest.a conftest.b 2>&5 || hard_links=no
14991   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14993 $as_echo "$hard_links" >&6; }
14994   if test "$hard_links" = no; then
14995     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14996 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14997     need_locks=warn
14998   fi
14999 else
15000   need_locks=no
15001 fi
15002
15003
15004
15005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15006 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15007
15008   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15009   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15010   case $host_os in
15011   aix[4-9]*)
15012     # If we're using GNU nm, then we don't want the "-C" option.
15013     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15014     # Also, AIX nm treats weak defined symbols like other global defined
15015     # symbols, whereas GNU nm marks them as "W".
15016     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15017       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15018     else
15019       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15020     fi
15021     ;;
15022   pw32*)
15023     export_symbols_cmds_CXX="$ltdll_cmds"
15024     ;;
15025   cygwin* | mingw* | cegcc*)
15026     case $cc_basename in
15027     cl*)
15028       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15029       ;;
15030     *)
15031       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'
15032       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15033       ;;
15034     esac
15035     ;;
15036   linux* | k*bsd*-gnu | gnu*)
15037     link_all_deplibs_CXX=no
15038     ;;
15039   *)
15040     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15041     ;;
15042   esac
15043
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15045 $as_echo "$ld_shlibs_CXX" >&6; }
15046 test "$ld_shlibs_CXX" = no && can_build_shared=no
15047
15048 with_gnu_ld_CXX=$with_gnu_ld
15049
15050
15051
15052
15053
15054
15055 #
15056 # Do we need to explicitly link libc?
15057 #
15058 case "x$archive_cmds_need_lc_CXX" in
15059 x|xyes)
15060   # Assume -lc should be added
15061   archive_cmds_need_lc_CXX=yes
15062
15063   if test "$enable_shared" = yes && test "$GCC" = yes; then
15064     case $archive_cmds_CXX in
15065     *'~'*)
15066       # FIXME: we may have to deal with multi-command sequences.
15067       ;;
15068     '$CC '*)
15069       # Test whether the compiler implicitly links with -lc since on some
15070       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15071       # to ld, don't add -lc before -lgcc.
15072       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15073 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15074 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15075   $as_echo_n "(cached) " >&6
15076 else
15077   $RM conftest*
15078         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15079
15080         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15081   (eval $ac_compile) 2>&5
15082   ac_status=$?
15083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15084   test $ac_status = 0; } 2>conftest.err; then
15085           soname=conftest
15086           lib=conftest
15087           libobjs=conftest.$ac_objext
15088           deplibs=
15089           wl=$lt_prog_compiler_wl_CXX
15090           pic_flag=$lt_prog_compiler_pic_CXX
15091           compiler_flags=-v
15092           linker_flags=-v
15093           verstring=
15094           output_objdir=.
15095           libname=conftest
15096           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15097           allow_undefined_flag_CXX=
15098           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15099   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15100   ac_status=$?
15101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15102   test $ac_status = 0; }
15103           then
15104             lt_cv_archive_cmds_need_lc_CXX=no
15105           else
15106             lt_cv_archive_cmds_need_lc_CXX=yes
15107           fi
15108           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15109         else
15110           cat conftest.err 1>&5
15111         fi
15112         $RM conftest*
15113
15114 fi
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15116 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15117       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15118       ;;
15119     esac
15120   fi
15121   ;;
15122 esac
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15186 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15187
15188 library_names_spec=
15189 libname_spec='lib$name'
15190 soname_spec=
15191 shrext_cmds=".so"
15192 postinstall_cmds=
15193 postuninstall_cmds=
15194 finish_cmds=
15195 finish_eval=
15196 shlibpath_var=
15197 shlibpath_overrides_runpath=unknown
15198 version_type=none
15199 dynamic_linker="$host_os ld.so"
15200 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15201 need_lib_prefix=unknown
15202 hardcode_into_libs=no
15203
15204 # when you set need_version to no, make sure it does not cause -set_version
15205 # flags to be left without arguments
15206 need_version=unknown
15207
15208 case $host_os in
15209 aix3*)
15210   version_type=linux # correct to gnu/linux during the next big refactor
15211   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15212   shlibpath_var=LIBPATH
15213
15214   # AIX 3 has no versioning support, so we append a major version to the name.
15215   soname_spec='${libname}${release}${shared_ext}$major'
15216   ;;
15217
15218 aix[4-9]*)
15219   version_type=linux # correct to gnu/linux during the next big refactor
15220   need_lib_prefix=no
15221   need_version=no
15222   hardcode_into_libs=yes
15223   if test "$host_cpu" = ia64; then
15224     # AIX 5 supports IA64
15225     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15226     shlibpath_var=LD_LIBRARY_PATH
15227   else
15228     # With GCC up to 2.95.x, collect2 would create an import file
15229     # for dependence libraries.  The import file would start with
15230     # the line `#! .'.  This would cause the generated library to
15231     # depend on `.', always an invalid library.  This was fixed in
15232     # development snapshots of GCC prior to 3.0.
15233     case $host_os in
15234       aix4 | aix4.[01] | aix4.[01].*)
15235       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15236            echo ' yes '
15237            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15238         :
15239       else
15240         can_build_shared=no
15241       fi
15242       ;;
15243     esac
15244     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15245     # soname into executable. Probably we can add versioning support to
15246     # collect2, so additional links can be useful in future.
15247     if test "$aix_use_runtimelinking" = yes; then
15248       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15249       # instead of lib<name>.a to let people know that these are not
15250       # typical AIX shared libraries.
15251       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15252     else
15253       # We preserve .a as extension for shared libraries through AIX4.2
15254       # and later when we are not doing run time linking.
15255       library_names_spec='${libname}${release}.a $libname.a'
15256       soname_spec='${libname}${release}${shared_ext}$major'
15257     fi
15258     shlibpath_var=LIBPATH
15259   fi
15260   ;;
15261
15262 amigaos*)
15263   case $host_cpu in
15264   powerpc)
15265     # Since July 2007 AmigaOS4 officially supports .so libraries.
15266     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15267     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15268     ;;
15269   m68k)
15270     library_names_spec='$libname.ixlibrary $libname.a'
15271     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15272     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15273     ;;
15274   esac
15275   ;;
15276
15277 beos*)
15278   library_names_spec='${libname}${shared_ext}'
15279   dynamic_linker="$host_os ld.so"
15280   shlibpath_var=LIBRARY_PATH
15281   ;;
15282
15283 bsdi[45]*)
15284   version_type=linux # correct to gnu/linux during the next big refactor
15285   need_version=no
15286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15287   soname_spec='${libname}${release}${shared_ext}$major'
15288   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15289   shlibpath_var=LD_LIBRARY_PATH
15290   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15291   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15292   # the default ld.so.conf also contains /usr/contrib/lib and
15293   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15294   # libtool to hard-code these into programs
15295   ;;
15296
15297 cygwin* | mingw* | pw32* | cegcc*)
15298   version_type=windows
15299   shrext_cmds=".dll"
15300   need_version=no
15301   need_lib_prefix=no
15302
15303   case $GCC,$cc_basename in
15304   yes,*)
15305     # gcc
15306     library_names_spec='$libname.dll.a'
15307     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15308     postinstall_cmds='base_file=`basename \${file}`~
15309       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15310       dldir=$destdir/`dirname \$dlpath`~
15311       test -d \$dldir || mkdir -p \$dldir~
15312       $install_prog $dir/$dlname \$dldir/$dlname~
15313       chmod a+x \$dldir/$dlname~
15314       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15315         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15316       fi'
15317     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15318       dlpath=$dir/\$dldll~
15319        $RM \$dlpath'
15320     shlibpath_overrides_runpath=yes
15321
15322     case $host_os in
15323     cygwin*)
15324       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15325       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15326
15327       ;;
15328     mingw* | cegcc*)
15329       # MinGW DLLs use traditional 'lib' prefix
15330       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15331       ;;
15332     pw32*)
15333       # pw32 DLLs use 'pw' prefix rather than 'lib'
15334       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15335       ;;
15336     esac
15337     dynamic_linker='Win32 ld.exe'
15338     ;;
15339
15340   *,cl*)
15341     # Native MSVC
15342     libname_spec='$name'
15343     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15344     library_names_spec='${libname}.dll.lib'
15345
15346     case $build_os in
15347     mingw*)
15348       sys_lib_search_path_spec=
15349       lt_save_ifs=$IFS
15350       IFS=';'
15351       for lt_path in $LIB
15352       do
15353         IFS=$lt_save_ifs
15354         # Let DOS variable expansion print the short 8.3 style file name.
15355         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15356         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15357       done
15358       IFS=$lt_save_ifs
15359       # Convert to MSYS style.
15360       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15361       ;;
15362     cygwin*)
15363       # Convert to unix form, then to dos form, then back to unix form
15364       # but this time dos style (no spaces!) so that the unix form looks
15365       # like /cygdrive/c/PROGRA~1:/cygdr...
15366       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15367       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15368       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15369       ;;
15370     *)
15371       sys_lib_search_path_spec="$LIB"
15372       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15373         # It is most probably a Windows format PATH.
15374         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15375       else
15376         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15377       fi
15378       # FIXME: find the short name or the path components, as spaces are
15379       # common. (e.g. "Program Files" -> "PROGRA~1")
15380       ;;
15381     esac
15382
15383     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15384     postinstall_cmds='base_file=`basename \${file}`~
15385       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15386       dldir=$destdir/`dirname \$dlpath`~
15387       test -d \$dldir || mkdir -p \$dldir~
15388       $install_prog $dir/$dlname \$dldir/$dlname'
15389     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15390       dlpath=$dir/\$dldll~
15391        $RM \$dlpath'
15392     shlibpath_overrides_runpath=yes
15393     dynamic_linker='Win32 link.exe'
15394     ;;
15395
15396   *)
15397     # Assume MSVC wrapper
15398     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15399     dynamic_linker='Win32 ld.exe'
15400     ;;
15401   esac
15402   # FIXME: first we should search . and the directory the executable is in
15403   shlibpath_var=PATH
15404   ;;
15405
15406 darwin* | rhapsody*)
15407   dynamic_linker="$host_os dyld"
15408   version_type=darwin
15409   need_lib_prefix=no
15410   need_version=no
15411   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15412   soname_spec='${libname}${release}${major}$shared_ext'
15413   shlibpath_overrides_runpath=yes
15414   shlibpath_var=DYLD_LIBRARY_PATH
15415   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15416
15417   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15418   ;;
15419
15420 dgux*)
15421   version_type=linux # correct to gnu/linux during the next big refactor
15422   need_lib_prefix=no
15423   need_version=no
15424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15425   soname_spec='${libname}${release}${shared_ext}$major'
15426   shlibpath_var=LD_LIBRARY_PATH
15427   ;;
15428
15429 freebsd* | dragonfly*)
15430   # DragonFly does not have aout.  When/if they implement a new
15431   # versioning mechanism, adjust this.
15432   if test -x /usr/bin/objformat; then
15433     objformat=`/usr/bin/objformat`
15434   else
15435     case $host_os in
15436     freebsd[23].*) objformat=aout ;;
15437     *) objformat=elf ;;
15438     esac
15439   fi
15440   version_type=freebsd-$objformat
15441   case $version_type in
15442     freebsd-elf*)
15443       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15444       need_version=no
15445       need_lib_prefix=no
15446       ;;
15447     freebsd-*)
15448       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15449       need_version=yes
15450       ;;
15451   esac
15452   shlibpath_var=LD_LIBRARY_PATH
15453   case $host_os in
15454   freebsd2.*)
15455     shlibpath_overrides_runpath=yes
15456     ;;
15457   freebsd3.[01]* | freebsdelf3.[01]*)
15458     shlibpath_overrides_runpath=yes
15459     hardcode_into_libs=yes
15460     ;;
15461   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15462   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15463     shlibpath_overrides_runpath=no
15464     hardcode_into_libs=yes
15465     ;;
15466   *) # from 4.6 on, and DragonFly
15467     shlibpath_overrides_runpath=yes
15468     hardcode_into_libs=yes
15469     ;;
15470   esac
15471   ;;
15472
15473 haiku*)
15474   version_type=linux # correct to gnu/linux during the next big refactor
15475   need_lib_prefix=no
15476   need_version=no
15477   dynamic_linker="$host_os runtime_loader"
15478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15479   soname_spec='${libname}${release}${shared_ext}$major'
15480   shlibpath_var=LIBRARY_PATH
15481   shlibpath_overrides_runpath=yes
15482   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15483   hardcode_into_libs=yes
15484   ;;
15485
15486 hpux9* | hpux10* | hpux11*)
15487   # Give a soname corresponding to the major version so that dld.sl refuses to
15488   # link against other versions.
15489   version_type=sunos
15490   need_lib_prefix=no
15491   need_version=no
15492   case $host_cpu in
15493   ia64*)
15494     shrext_cmds='.so'
15495     hardcode_into_libs=yes
15496     dynamic_linker="$host_os dld.so"
15497     shlibpath_var=LD_LIBRARY_PATH
15498     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15500     soname_spec='${libname}${release}${shared_ext}$major'
15501     if test "X$HPUX_IA64_MODE" = X32; then
15502       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15503     else
15504       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15505     fi
15506     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15507     ;;
15508   hppa*64*)
15509     shrext_cmds='.sl'
15510     hardcode_into_libs=yes
15511     dynamic_linker="$host_os dld.sl"
15512     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15513     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15514     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15515     soname_spec='${libname}${release}${shared_ext}$major'
15516     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15517     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15518     ;;
15519   *)
15520     shrext_cmds='.sl'
15521     dynamic_linker="$host_os dld.sl"
15522     shlibpath_var=SHLIB_PATH
15523     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15524     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15525     soname_spec='${libname}${release}${shared_ext}$major'
15526     ;;
15527   esac
15528   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15529   postinstall_cmds='chmod 555 $lib'
15530   # or fails outright, so override atomically:
15531   install_override_mode=555
15532   ;;
15533
15534 interix[3-9]*)
15535   version_type=linux # correct to gnu/linux during the next big refactor
15536   need_lib_prefix=no
15537   need_version=no
15538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15539   soname_spec='${libname}${release}${shared_ext}$major'
15540   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15541   shlibpath_var=LD_LIBRARY_PATH
15542   shlibpath_overrides_runpath=no
15543   hardcode_into_libs=yes
15544   ;;
15545
15546 irix5* | irix6* | nonstopux*)
15547   case $host_os in
15548     nonstopux*) version_type=nonstopux ;;
15549     *)
15550         if test "$lt_cv_prog_gnu_ld" = yes; then
15551                 version_type=linux # correct to gnu/linux during the next big refactor
15552         else
15553                 version_type=irix
15554         fi ;;
15555   esac
15556   need_lib_prefix=no
15557   need_version=no
15558   soname_spec='${libname}${release}${shared_ext}$major'
15559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15560   case $host_os in
15561   irix5* | nonstopux*)
15562     libsuff= shlibsuff=
15563     ;;
15564   *)
15565     case $LD in # libtool.m4 will add one of these switches to LD
15566     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15567       libsuff= shlibsuff= libmagic=32-bit;;
15568     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15569       libsuff=32 shlibsuff=N32 libmagic=N32;;
15570     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15571       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15572     *) libsuff= shlibsuff= libmagic=never-match;;
15573     esac
15574     ;;
15575   esac
15576   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15577   shlibpath_overrides_runpath=no
15578   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15579   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15580   hardcode_into_libs=yes
15581   ;;
15582
15583 # No shared lib support for Linux oldld, aout, or coff.
15584 linux*oldld* | linux*aout* | linux*coff*)
15585   dynamic_linker=no
15586   ;;
15587
15588 # This must be glibc/ELF.
15589 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15590   version_type=linux # correct to gnu/linux during the next big refactor
15591   need_lib_prefix=no
15592   need_version=no
15593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594   soname_spec='${libname}${release}${shared_ext}$major'
15595   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15596   shlibpath_var=LD_LIBRARY_PATH
15597   shlibpath_overrides_runpath=no
15598
15599   # Some binutils ld are patched to set DT_RUNPATH
15600   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15601   $as_echo_n "(cached) " >&6
15602 else
15603   lt_cv_shlibpath_overrides_runpath=no
15604     save_LDFLAGS=$LDFLAGS
15605     save_libdir=$libdir
15606     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15607          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15608     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15609 /* end confdefs.h.  */
15610
15611 int
15612 main ()
15613 {
15614
15615   ;
15616   return 0;
15617 }
15618 _ACEOF
15619 if ac_fn_cxx_try_link "$LINENO"; then :
15620   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15621   lt_cv_shlibpath_overrides_runpath=yes
15622 fi
15623 fi
15624 rm -f core conftest.err conftest.$ac_objext \
15625     conftest$ac_exeext conftest.$ac_ext
15626     LDFLAGS=$save_LDFLAGS
15627     libdir=$save_libdir
15628
15629 fi
15630
15631   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15632
15633   # This implies no fast_install, which is unacceptable.
15634   # Some rework will be needed to allow for fast_install
15635   # before this can be enabled.
15636   hardcode_into_libs=yes
15637
15638   # Append ld.so.conf contents to the search path
15639   if test -f /etc/ld.so.conf; then
15640     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' ' '`
15641     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15642   fi
15643
15644   # We used to test for /lib/ld.so.1 and disable shared libraries on
15645   # powerpc, because MkLinux only supported shared libraries with the
15646   # GNU dynamic linker.  Since this was broken with cross compilers,
15647   # most powerpc-linux boxes support dynamic linking these days and
15648   # people can always --disable-shared, the test was removed, and we
15649   # assume the GNU/Linux dynamic linker is in use.
15650   dynamic_linker='GNU/Linux ld.so'
15651   ;;
15652
15653 netbsdelf*-gnu)
15654   version_type=linux
15655   need_lib_prefix=no
15656   need_version=no
15657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15658   soname_spec='${libname}${release}${shared_ext}$major'
15659   shlibpath_var=LD_LIBRARY_PATH
15660   shlibpath_overrides_runpath=no
15661   hardcode_into_libs=yes
15662   dynamic_linker='NetBSD ld.elf_so'
15663   ;;
15664
15665 netbsd*)
15666   version_type=sunos
15667   need_lib_prefix=no
15668   need_version=no
15669   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15670     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15671     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15672     dynamic_linker='NetBSD (a.out) ld.so'
15673   else
15674     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15675     soname_spec='${libname}${release}${shared_ext}$major'
15676     dynamic_linker='NetBSD ld.elf_so'
15677   fi
15678   shlibpath_var=LD_LIBRARY_PATH
15679   shlibpath_overrides_runpath=yes
15680   hardcode_into_libs=yes
15681   ;;
15682
15683 newsos6)
15684   version_type=linux # correct to gnu/linux during the next big refactor
15685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15686   shlibpath_var=LD_LIBRARY_PATH
15687   shlibpath_overrides_runpath=yes
15688   ;;
15689
15690 *nto* | *qnx*)
15691   version_type=qnx
15692   need_lib_prefix=no
15693   need_version=no
15694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15695   soname_spec='${libname}${release}${shared_ext}$major'
15696   shlibpath_var=LD_LIBRARY_PATH
15697   shlibpath_overrides_runpath=no
15698   hardcode_into_libs=yes
15699   dynamic_linker='ldqnx.so'
15700   ;;
15701
15702 openbsd*)
15703   version_type=sunos
15704   sys_lib_dlsearch_path_spec="/usr/lib"
15705   need_lib_prefix=no
15706   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15707   case $host_os in
15708     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15709     *)                          need_version=no  ;;
15710   esac
15711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15712   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15713   shlibpath_var=LD_LIBRARY_PATH
15714   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15715     case $host_os in
15716       openbsd2.[89] | openbsd2.[89].*)
15717         shlibpath_overrides_runpath=no
15718         ;;
15719       *)
15720         shlibpath_overrides_runpath=yes
15721         ;;
15722       esac
15723   else
15724     shlibpath_overrides_runpath=yes
15725   fi
15726   ;;
15727
15728 os2*)
15729   libname_spec='$name'
15730   shrext_cmds=".dll"
15731   need_lib_prefix=no
15732   library_names_spec='$libname${shared_ext} $libname.a'
15733   dynamic_linker='OS/2 ld.exe'
15734   shlibpath_var=LIBPATH
15735   ;;
15736
15737 osf3* | osf4* | osf5*)
15738   version_type=osf
15739   need_lib_prefix=no
15740   need_version=no
15741   soname_spec='${libname}${release}${shared_ext}$major'
15742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15743   shlibpath_var=LD_LIBRARY_PATH
15744   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15745   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15746   ;;
15747
15748 rdos*)
15749   dynamic_linker=no
15750   ;;
15751
15752 solaris*)
15753   version_type=linux # correct to gnu/linux during the next big refactor
15754   need_lib_prefix=no
15755   need_version=no
15756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15757   soname_spec='${libname}${release}${shared_ext}$major'
15758   shlibpath_var=LD_LIBRARY_PATH
15759   shlibpath_overrides_runpath=yes
15760   hardcode_into_libs=yes
15761   # ldd complains unless libraries are executable
15762   postinstall_cmds='chmod +x $lib'
15763   ;;
15764
15765 sunos4*)
15766   version_type=sunos
15767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15768   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15769   shlibpath_var=LD_LIBRARY_PATH
15770   shlibpath_overrides_runpath=yes
15771   if test "$with_gnu_ld" = yes; then
15772     need_lib_prefix=no
15773   fi
15774   need_version=yes
15775   ;;
15776
15777 sysv4 | sysv4.3*)
15778   version_type=linux # correct to gnu/linux during the next big refactor
15779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780   soname_spec='${libname}${release}${shared_ext}$major'
15781   shlibpath_var=LD_LIBRARY_PATH
15782   case $host_vendor in
15783     sni)
15784       shlibpath_overrides_runpath=no
15785       need_lib_prefix=no
15786       runpath_var=LD_RUN_PATH
15787       ;;
15788     siemens)
15789       need_lib_prefix=no
15790       ;;
15791     motorola)
15792       need_lib_prefix=no
15793       need_version=no
15794       shlibpath_overrides_runpath=no
15795       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15796       ;;
15797   esac
15798   ;;
15799
15800 sysv4*MP*)
15801   if test -d /usr/nec ;then
15802     version_type=linux # correct to gnu/linux during the next big refactor
15803     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15804     soname_spec='$libname${shared_ext}.$major'
15805     shlibpath_var=LD_LIBRARY_PATH
15806   fi
15807   ;;
15808
15809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15810   version_type=freebsd-elf
15811   need_lib_prefix=no
15812   need_version=no
15813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15814   soname_spec='${libname}${release}${shared_ext}$major'
15815   shlibpath_var=LD_LIBRARY_PATH
15816   shlibpath_overrides_runpath=yes
15817   hardcode_into_libs=yes
15818   if test "$with_gnu_ld" = yes; then
15819     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15820   else
15821     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15822     case $host_os in
15823       sco3.2v5*)
15824         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15825         ;;
15826     esac
15827   fi
15828   sys_lib_dlsearch_path_spec='/usr/lib'
15829   ;;
15830
15831 tpf*)
15832   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15833   version_type=linux # correct to gnu/linux during the next big refactor
15834   need_lib_prefix=no
15835   need_version=no
15836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15837   shlibpath_var=LD_LIBRARY_PATH
15838   shlibpath_overrides_runpath=no
15839   hardcode_into_libs=yes
15840   ;;
15841
15842 uts4*)
15843   version_type=linux # correct to gnu/linux during the next big refactor
15844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15845   soname_spec='${libname}${release}${shared_ext}$major'
15846   shlibpath_var=LD_LIBRARY_PATH
15847   ;;
15848
15849 *)
15850   dynamic_linker=no
15851   ;;
15852 esac
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15854 $as_echo "$dynamic_linker" >&6; }
15855 test "$dynamic_linker" = no && can_build_shared=no
15856
15857 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15858 if test "$GCC" = yes; then
15859   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15860 fi
15861
15862 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15863   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15864 fi
15865 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15866   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15867 fi
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15907 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15908 hardcode_action_CXX=
15909 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15910    test -n "$runpath_var_CXX" ||
15911    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15912
15913   # We can hardcode non-existent directories.
15914   if test "$hardcode_direct_CXX" != no &&
15915      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15916      # have to relink, otherwise we might link with an installed library
15917      # when we should be linking with a yet-to-be-installed one
15918      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15919      test "$hardcode_minus_L_CXX" != no; then
15920     # Linking always hardcodes the temporary library directory.
15921     hardcode_action_CXX=relink
15922   else
15923     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15924     hardcode_action_CXX=immediate
15925   fi
15926 else
15927   # We cannot hardcode anything, or else we can only hardcode existing
15928   # directories.
15929   hardcode_action_CXX=unsupported
15930 fi
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15932 $as_echo "$hardcode_action_CXX" >&6; }
15933
15934 if test "$hardcode_action_CXX" = relink ||
15935    test "$inherit_rpath_CXX" = yes; then
15936   # Fast installation is not supported
15937   enable_fast_install=no
15938 elif test "$shlibpath_overrides_runpath" = yes ||
15939      test "$enable_shared" = no; then
15940   # Fast installation is not necessary
15941   enable_fast_install=needless
15942 fi
15943
15944
15945
15946
15947
15948
15949
15950   fi # test -n "$compiler"
15951
15952   CC=$lt_save_CC
15953   CFLAGS=$lt_save_CFLAGS
15954   LDCXX=$LD
15955   LD=$lt_save_LD
15956   GCC=$lt_save_GCC
15957   with_gnu_ld=$lt_save_with_gnu_ld
15958   lt_cv_path_LDCXX=$lt_cv_path_LD
15959   lt_cv_path_LD=$lt_save_path_LD
15960   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15961   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15962 fi # test "$_lt_caught_CXX_error" != yes
15963
15964 ac_ext=c
15965 ac_cpp='$CPP $CPPFLAGS'
15966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984         ac_config_commands="$ac_config_commands libtool"
15985
15986
15987
15988
15989 # Only expand once:
15990
15991
15992
15993
15994 # Checks for header files.
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15996 $as_echo_n "checking for ANSI C header files... " >&6; }
15997 if ${ac_cv_header_stdc+:} false; then :
15998   $as_echo_n "(cached) " >&6
15999 else
16000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h.  */
16002 #include <stdlib.h>
16003 #include <stdarg.h>
16004 #include <string.h>
16005 #include <float.h>
16006
16007 int
16008 main ()
16009 {
16010
16011   ;
16012   return 0;
16013 }
16014 _ACEOF
16015 if ac_fn_c_try_compile "$LINENO"; then :
16016   ac_cv_header_stdc=yes
16017 else
16018   ac_cv_header_stdc=no
16019 fi
16020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16021
16022 if test $ac_cv_header_stdc = yes; then
16023   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025 /* end confdefs.h.  */
16026 #include <string.h>
16027
16028 _ACEOF
16029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16030   $EGREP "memchr" >/dev/null 2>&1; then :
16031
16032 else
16033   ac_cv_header_stdc=no
16034 fi
16035 rm -f conftest*
16036
16037 fi
16038
16039 if test $ac_cv_header_stdc = yes; then
16040   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h.  */
16043 #include <stdlib.h>
16044
16045 _ACEOF
16046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16047   $EGREP "free" >/dev/null 2>&1; then :
16048
16049 else
16050   ac_cv_header_stdc=no
16051 fi
16052 rm -f conftest*
16053
16054 fi
16055
16056 if test $ac_cv_header_stdc = yes; then
16057   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16058   if test "$cross_compiling" = yes; then :
16059   :
16060 else
16061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h.  */
16063 #include <ctype.h>
16064 #include <stdlib.h>
16065 #if ((' ' & 0x0FF) == 0x020)
16066 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16067 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16068 #else
16069 # define ISLOWER(c) \
16070                    (('a' <= (c) && (c) <= 'i') \
16071                      || ('j' <= (c) && (c) <= 'r') \
16072                      || ('s' <= (c) && (c) <= 'z'))
16073 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16074 #endif
16075
16076 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16077 int
16078 main ()
16079 {
16080   int i;
16081   for (i = 0; i < 256; i++)
16082     if (XOR (islower (i), ISLOWER (i))
16083         || toupper (i) != TOUPPER (i))
16084       return 2;
16085   return 0;
16086 }
16087 _ACEOF
16088 if ac_fn_c_try_run "$LINENO"; then :
16089
16090 else
16091   ac_cv_header_stdc=no
16092 fi
16093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16094   conftest.$ac_objext conftest.beam conftest.$ac_ext
16095 fi
16096
16097 fi
16098 fi
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16100 $as_echo "$ac_cv_header_stdc" >&6; }
16101 if test $ac_cv_header_stdc = yes; then
16102
16103 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16104
16105 fi
16106
16107 for ac_header in sys/ioctl.h unistd.h
16108 do :
16109   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16110 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16111 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16112   cat >>confdefs.h <<_ACEOF
16113 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16114 _ACEOF
16115
16116 fi
16117
16118 done
16119
16120
16121 # Check compiler and use -Wall if gnu
16122 if test x"$GXX" = "xyes"; then
16123   CXXFLAGS="${CXXFLAGS} -Wall -Wextra"
16124   # Add -Werror in debug mode
16125   if test x"${enable_debug+set}" = xset; then
16126     CXXFLAGS="${CXXFLAGS} -Werror"
16127   fi
16128 fi
16129
16130 # Checks for functions
16131 for ac_func in gettimeofday
16132 do :
16133   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16134 if test "x$ac_cv_func_gettimeofday" = xyes; then :
16135   cat >>confdefs.h <<_ACEOF
16136 #define HAVE_GETTIMEOFDAY 1
16137 _ACEOF
16138
16139 fi
16140 done
16141
16142
16143 # Checks for doxygen
16144 # Extract the first word of "doxygen", so it can be a program name with args.
16145 set dummy doxygen; ac_word=$2
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16147 $as_echo_n "checking for $ac_word... " >&6; }
16148 if ${ac_cv_prog_DOXYGEN+:} false; then :
16149   $as_echo_n "(cached) " >&6
16150 else
16151   if test -n "$DOXYGEN"; then
16152   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
16153 else
16154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16155 for as_dir in $PATH
16156 do
16157   IFS=$as_save_IFS
16158   test -z "$as_dir" && as_dir=.
16159     for ac_exec_ext in '' $ac_executable_extensions; do
16160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16161     ac_cv_prog_DOXYGEN="doxygen "
16162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16163     break 2
16164   fi
16165 done
16166   done
16167 IFS=$as_save_IFS
16168
16169 fi
16170 fi
16171 DOXYGEN=$ac_cv_prog_DOXYGEN
16172 if test -n "$DOXYGEN"; then
16173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16174 $as_echo "$DOXYGEN" >&6; }
16175 else
16176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16177 $as_echo "no" >&6; }
16178 fi
16179
16180
16181  if test "x${DOXYGEN}" != x ; then
16182   MAKE_DOC_TRUE=
16183   MAKE_DOC_FALSE='#'
16184 else
16185   MAKE_DOC_TRUE='#'
16186   MAKE_DOC_FALSE=
16187 fi
16188
16189
16190 # Copy doc files to build dir if necessary
16191 ac_config_links="$ac_config_links doc/release.txt:doc/release.txt"
16192
16193 ac_config_links="$ac_config_links doc/doxygen/footer.html:doc/doxygen/footer.html"
16194
16195 ac_config_links="$ac_config_links doc/doxygen/error.txt:doc/doxygen/error.txt"
16196
16197 ac_config_links="$ac_config_links doc/doxygen/tutorial.txt:doc/doxygen/tutorial.txt"
16198
16199 ac_config_links="$ac_config_links doc/doxygen/compiling.txt:doc/doxygen/compiling.txt"
16200
16201 ac_config_links="$ac_config_links doc/doxygen/acknowledge.txt:doc/doxygen/acknowledge.txt"
16202
16203 ac_config_links="$ac_config_links doc/doxygen/license.txt:doc/doxygen/license.txt"
16204
16205 ac_config_links="$ac_config_links doc/doxygen/header.html:doc/doxygen/header.html"
16206
16207 ac_config_links="$ac_config_links doc/doxygen/duplex.txt:doc/doxygen/duplex.txt"
16208
16209 ac_config_links="$ac_config_links doc/doxygen/settings.txt:doc/doxygen/settings.txt"
16210
16211 ac_config_links="$ac_config_links doc/doxygen/probe.txt:doc/doxygen/probe.txt"
16212
16213 ac_config_links="$ac_config_links doc/doxygen/playback.txt:doc/doxygen/playback.txt"
16214
16215 ac_config_links="$ac_config_links doc/doxygen/multi.txt:doc/doxygen/multi.txt"
16216
16217 ac_config_links="$ac_config_links doc/doxygen/recording.txt:doc/doxygen/recording.txt"
16218
16219 ac_config_links="$ac_config_links doc/doxygen/apinotes.txt:doc/doxygen/apinotes.txt"
16220
16221 ac_config_links="$ac_config_links doc/images/mcgill.gif:doc/images/mcgill.gif"
16222
16223 ac_config_links="$ac_config_links doc/images/ccrma.gif:doc/images/ccrma.gif"
16224
16225
16226 # Checks for package options and external software
16227
16228
16229 api=""
16230
16231 req=""
16232
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audio API" >&5
16234 $as_echo_n "checking for audio API... " >&6; }
16235 case $host in
16236   *-*-netbsd*)
16237     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
16238 $as_echo "using OSS" >&6; }
16239     api="$api -D__LINUX_OSS__"
16240     LIBS="$LIBS -lossaudio"
16241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16242 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16243 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16244   $as_echo_n "(cached) " >&6
16245 else
16246   ac_check_lib_save_LIBS=$LIBS
16247 LIBS="-lpthread  $LIBS"
16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h.  */
16250
16251 /* Override any GCC internal prototype to avoid an error.
16252    Use char because int might match the return type of a GCC
16253    builtin and then its argument prototype would still apply.  */
16254 #ifdef __cplusplus
16255 extern "C"
16256 #endif
16257 char pthread_create ();
16258 int
16259 main ()
16260 {
16261 return pthread_create ();
16262   ;
16263   return 0;
16264 }
16265 _ACEOF
16266 if ac_fn_c_try_link "$LINENO"; then :
16267   ac_cv_lib_pthread_pthread_create=yes
16268 else
16269   ac_cv_lib_pthread_pthread_create=no
16270 fi
16271 rm -f core conftest.err conftest.$ac_objext \
16272     conftest$ac_exeext conftest.$ac_ext
16273 LIBS=$ac_check_lib_save_LIBS
16274 fi
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16276 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16277 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16278   cat >>confdefs.h <<_ACEOF
16279 #define HAVE_LIBPTHREAD 1
16280 _ACEOF
16281
16282   LIBS="-lpthread $LIBS"
16283
16284 else
16285   as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
16286 fi
16287
16288   ;;
16289
16290   *-*-linux*)
16291
16292 # Check whether --with-jack was given.
16293 if test "${with_jack+set}" = set; then :
16294   withval=$with_jack;
16295     api="$api -D__UNIX_JACK__"
16296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using JACK" >&5
16297 $as_echo "using JACK" >&6; }
16298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack_client_open in -ljack" >&5
16299 $as_echo_n "checking for jack_client_open in -ljack... " >&6; }
16300 if ${ac_cv_lib_jack_jack_client_open+:} false; then :
16301   $as_echo_n "(cached) " >&6
16302 else
16303   ac_check_lib_save_LIBS=$LIBS
16304 LIBS="-ljack  $LIBS"
16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306 /* end confdefs.h.  */
16307
16308 /* Override any GCC internal prototype to avoid an error.
16309    Use char because int might match the return type of a GCC
16310    builtin and then its argument prototype would still apply.  */
16311 #ifdef __cplusplus
16312 extern "C"
16313 #endif
16314 char jack_client_open ();
16315 int
16316 main ()
16317 {
16318 return jack_client_open ();
16319   ;
16320   return 0;
16321 }
16322 _ACEOF
16323 if ac_fn_c_try_link "$LINENO"; then :
16324   ac_cv_lib_jack_jack_client_open=yes
16325 else
16326   ac_cv_lib_jack_jack_client_open=no
16327 fi
16328 rm -f core conftest.err conftest.$ac_objext \
16329     conftest$ac_exeext conftest.$ac_ext
16330 LIBS=$ac_check_lib_save_LIBS
16331 fi
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jack_jack_client_open" >&5
16333 $as_echo "$ac_cv_lib_jack_jack_client_open" >&6; }
16334 if test "x$ac_cv_lib_jack_jack_client_open" = xyes; then :
16335   cat >>confdefs.h <<_ACEOF
16336 #define HAVE_LIBJACK 1
16337 _ACEOF
16338
16339   LIBS="-ljack $LIBS"
16340
16341 else
16342   as_fn_error $? "JACK support requires the jack library!" "$LINENO" 5
16343 fi
16344
16345     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
16346 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
16347 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
16348   $as_echo_n "(cached) " >&6
16349 else
16350   ac_check_lib_save_LIBS=$LIBS
16351 LIBS="-lasound  $LIBS"
16352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h.  */
16354
16355 /* Override any GCC internal prototype to avoid an error.
16356    Use char because int might match the return type of a GCC
16357    builtin and then its argument prototype would still apply.  */
16358 #ifdef __cplusplus
16359 extern "C"
16360 #endif
16361 char snd_pcm_open ();
16362 int
16363 main ()
16364 {
16365 return snd_pcm_open ();
16366   ;
16367   return 0;
16368 }
16369 _ACEOF
16370 if ac_fn_c_try_link "$LINENO"; then :
16371   ac_cv_lib_asound_snd_pcm_open=yes
16372 else
16373   ac_cv_lib_asound_snd_pcm_open=no
16374 fi
16375 rm -f core conftest.err conftest.$ac_objext \
16376     conftest$ac_exeext conftest.$ac_ext
16377 LIBS=$ac_check_lib_save_LIBS
16378 fi
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
16380 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
16381 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
16382   cat >>confdefs.h <<_ACEOF
16383 #define HAVE_LIBASOUND 1
16384 _ACEOF
16385
16386   LIBS="-lasound $LIBS"
16387
16388 else
16389   as_fn_error $? "Jack support also requires the asound library!" "$LINENO" 5
16390 fi
16391
16392 fi
16393
16394
16395   # Look for ALSA flag
16396
16397 # Check whether --with-alsa was given.
16398 if test "${with_alsa+set}" = set; then :
16399   withval=$with_alsa;
16400     api="$api -D__LINUX_ALSA__"
16401     req="$req alsa"
16402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ALSA" >&5
16403 $as_echo "using ALSA" >&6; }
16404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
16405 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
16406 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
16407   $as_echo_n "(cached) " >&6
16408 else
16409   ac_check_lib_save_LIBS=$LIBS
16410 LIBS="-lasound  $LIBS"
16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16412 /* end confdefs.h.  */
16413
16414 /* Override any GCC internal prototype to avoid an error.
16415    Use char because int might match the return type of a GCC
16416    builtin and then its argument prototype would still apply.  */
16417 #ifdef __cplusplus
16418 extern "C"
16419 #endif
16420 char snd_pcm_open ();
16421 int
16422 main ()
16423 {
16424 return snd_pcm_open ();
16425   ;
16426   return 0;
16427 }
16428 _ACEOF
16429 if ac_fn_c_try_link "$LINENO"; then :
16430   ac_cv_lib_asound_snd_pcm_open=yes
16431 else
16432   ac_cv_lib_asound_snd_pcm_open=no
16433 fi
16434 rm -f core conftest.err conftest.$ac_objext \
16435     conftest$ac_exeext conftest.$ac_ext
16436 LIBS=$ac_check_lib_save_LIBS
16437 fi
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
16439 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
16440 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
16441   cat >>confdefs.h <<_ACEOF
16442 #define HAVE_LIBASOUND 1
16443 _ACEOF
16444
16445   LIBS="-lasound $LIBS"
16446
16447 else
16448   as_fn_error $? "ALSA support requires the asound library!" "$LINENO" 5
16449 fi
16450
16451 fi
16452
16453
16454   # Look for PULSE flag
16455
16456 # Check whether --with-pulse was given.
16457 if test "${with_pulse+set}" = set; then :
16458   withval=$with_pulse;
16459     api="$api -D__LINUX_PULSE__"
16460     req="$req libpulse-simple"
16461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PulseAudio" >&5
16462 $as_echo "using PulseAudio" >&6; }
16463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_simple_flush in -lpulse-simple" >&5
16464 $as_echo_n "checking for pa_simple_flush in -lpulse-simple... " >&6; }
16465 if ${ac_cv_lib_pulse_simple_pa_simple_flush+:} false; then :
16466   $as_echo_n "(cached) " >&6
16467 else
16468   ac_check_lib_save_LIBS=$LIBS
16469 LIBS="-lpulse-simple  $LIBS"
16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h.  */
16472
16473 /* Override any GCC internal prototype to avoid an error.
16474    Use char because int might match the return type of a GCC
16475    builtin and then its argument prototype would still apply.  */
16476 #ifdef __cplusplus
16477 extern "C"
16478 #endif
16479 char pa_simple_flush ();
16480 int
16481 main ()
16482 {
16483 return pa_simple_flush ();
16484   ;
16485   return 0;
16486 }
16487 _ACEOF
16488 if ac_fn_c_try_link "$LINENO"; then :
16489   ac_cv_lib_pulse_simple_pa_simple_flush=yes
16490 else
16491   ac_cv_lib_pulse_simple_pa_simple_flush=no
16492 fi
16493 rm -f core conftest.err conftest.$ac_objext \
16494     conftest$ac_exeext conftest.$ac_ext
16495 LIBS=$ac_check_lib_save_LIBS
16496 fi
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pulse_simple_pa_simple_flush" >&5
16498 $as_echo "$ac_cv_lib_pulse_simple_pa_simple_flush" >&6; }
16499 if test "x$ac_cv_lib_pulse_simple_pa_simple_flush" = xyes; then :
16500   cat >>confdefs.h <<_ACEOF
16501 #define HAVE_LIBPULSE_SIMPLE 1
16502 _ACEOF
16503
16504   LIBS="-lpulse-simple $LIBS"
16505
16506 else
16507   as_fn_error $? "PulseAudio support requires the pulse-simple library!" "$LINENO" 5
16508 fi
16509
16510 fi
16511
16512
16513   # Look for OSS flag
16514
16515 # Check whether --with-oss was given.
16516 if test "${with_oss+set}" = set; then :
16517   withval=$with_oss;
16518     api="$api -D__LINUX_OSS__"
16519     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
16520 $as_echo "using OSS" >&6; }
16521 fi
16522
16523
16524   # If no audio api flags specified, use ALSA
16525   if test "$api" == ""; then
16526     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ALSA" >&5
16527 $as_echo "using ALSA" >&6; }
16528     api=-D__LINUX_ALSA__
16529
16530     req="$req alsa"
16531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
16532 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
16533 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
16534   $as_echo_n "(cached) " >&6
16535 else
16536   ac_check_lib_save_LIBS=$LIBS
16537 LIBS="-lasound  $LIBS"
16538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16539 /* end confdefs.h.  */
16540
16541 /* Override any GCC internal prototype to avoid an error.
16542    Use char because int might match the return type of a GCC
16543    builtin and then its argument prototype would still apply.  */
16544 #ifdef __cplusplus
16545 extern "C"
16546 #endif
16547 char snd_pcm_open ();
16548 int
16549 main ()
16550 {
16551 return snd_pcm_open ();
16552   ;
16553   return 0;
16554 }
16555 _ACEOF
16556 if ac_fn_c_try_link "$LINENO"; then :
16557   ac_cv_lib_asound_snd_pcm_open=yes
16558 else
16559   ac_cv_lib_asound_snd_pcm_open=no
16560 fi
16561 rm -f core conftest.err conftest.$ac_objext \
16562     conftest$ac_exeext conftest.$ac_ext
16563 LIBS=$ac_check_lib_save_LIBS
16564 fi
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
16566 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
16567 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
16568   cat >>confdefs.h <<_ACEOF
16569 #define HAVE_LIBASOUND 1
16570 _ACEOF
16571
16572   LIBS="-lasound $LIBS"
16573
16574 else
16575   as_fn_error $? "ALSA support requires the asound library!" "$LINENO" 5
16576 fi
16577
16578   fi
16579
16580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16581 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16582 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16583   $as_echo_n "(cached) " >&6
16584 else
16585   ac_check_lib_save_LIBS=$LIBS
16586 LIBS="-lpthread  $LIBS"
16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h.  */
16589
16590 /* Override any GCC internal prototype to avoid an error.
16591    Use char because int might match the return type of a GCC
16592    builtin and then its argument prototype would still apply.  */
16593 #ifdef __cplusplus
16594 extern "C"
16595 #endif
16596 char pthread_create ();
16597 int
16598 main ()
16599 {
16600 return pthread_create ();
16601   ;
16602   return 0;
16603 }
16604 _ACEOF
16605 if ac_fn_c_try_link "$LINENO"; then :
16606   ac_cv_lib_pthread_pthread_create=yes
16607 else
16608   ac_cv_lib_pthread_pthread_create=no
16609 fi
16610 rm -f core conftest.err conftest.$ac_objext \
16611     conftest$ac_exeext conftest.$ac_ext
16612 LIBS=$ac_check_lib_save_LIBS
16613 fi
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16615 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16616 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16617   cat >>confdefs.h <<_ACEOF
16618 #define HAVE_LIBPTHREAD 1
16619 _ACEOF
16620
16621   LIBS="-lpthread $LIBS"
16622
16623 else
16624   as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
16625 fi
16626
16627   ;;
16628
16629   *-apple*)
16630
16631 # Check whether --with-jack was given.
16632 if test "${with_jack+set}" = set; then :
16633   withval=$with_jack;
16634     api="$api -D__UNIX_JACK__"
16635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using JACK" >&5
16636 $as_echo "using JACK" >&6; }
16637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack_client_open in -ljack" >&5
16638 $as_echo_n "checking for jack_client_open in -ljack... " >&6; }
16639 if ${ac_cv_lib_jack_jack_client_open+:} false; then :
16640   $as_echo_n "(cached) " >&6
16641 else
16642   ac_check_lib_save_LIBS=$LIBS
16643 LIBS="-ljack  $LIBS"
16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h.  */
16646
16647 /* Override any GCC internal prototype to avoid an error.
16648    Use char because int might match the return type of a GCC
16649    builtin and then its argument prototype would still apply.  */
16650 #ifdef __cplusplus
16651 extern "C"
16652 #endif
16653 char jack_client_open ();
16654 int
16655 main ()
16656 {
16657 return jack_client_open ();
16658   ;
16659   return 0;
16660 }
16661 _ACEOF
16662 if ac_fn_c_try_link "$LINENO"; then :
16663   ac_cv_lib_jack_jack_client_open=yes
16664 else
16665   ac_cv_lib_jack_jack_client_open=no
16666 fi
16667 rm -f core conftest.err conftest.$ac_objext \
16668     conftest$ac_exeext conftest.$ac_ext
16669 LIBS=$ac_check_lib_save_LIBS
16670 fi
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jack_jack_client_open" >&5
16672 $as_echo "$ac_cv_lib_jack_jack_client_open" >&6; }
16673 if test "x$ac_cv_lib_jack_jack_client_open" = xyes; then :
16674   cat >>confdefs.h <<_ACEOF
16675 #define HAVE_LIBJACK 1
16676 _ACEOF
16677
16678   LIBS="-ljack $LIBS"
16679
16680 else
16681   as_fn_error $? "JACK support requires the jack library!" "$LINENO" 5
16682 fi
16683
16684 fi
16685
16686
16687 #    AC_CHECK_HEADER(jack/jack.h, [], [AC_MSG_ERROR(Jack header file not found!)] )
16688 #    LIBS="$LIBS -framework jackmp" ], )
16689
16690
16691   # Look for Core flag
16692
16693 # Check whether --with-core was given.
16694 if test "${with_core+set}" = set; then :
16695   withval=$with_core;
16696     api="$api -D__MACOSX_CORE__"
16697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using CoreAudio" >&5
16698 $as_echo "using CoreAudio" >&6; }
16699     ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
16700 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then :
16701
16702 else
16703   as_fn_error $? "CoreAudio header files not found!" "$LINENO" 5
16704 fi
16705
16706
16707     LIBS="$LIBS -framework CoreAudio -framework CoreFoundation"
16708 fi
16709
16710
16711   # If no audio api flags specified, use CoreAudio
16712   if test "$api" == "";  then
16713     api=-D__MACOSX_CORE__
16714
16715     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using CoreAudio" >&5
16716 $as_echo "using CoreAudio" >&6; }
16717     ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
16718 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then :
16719
16720 else
16721   as_fn_error $? "CoreAudio header files not found!" "$LINENO" 5
16722 fi
16723
16724
16725     LIBS="-framework CoreAudio -framework CoreFoundation"
16726
16727   fi
16728
16729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16730 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16731 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16732   $as_echo_n "(cached) " >&6
16733 else
16734   ac_check_lib_save_LIBS=$LIBS
16735 LIBS="-lpthread  $LIBS"
16736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737 /* end confdefs.h.  */
16738
16739 /* Override any GCC internal prototype to avoid an error.
16740    Use char because int might match the return type of a GCC
16741    builtin and then its argument prototype would still apply.  */
16742 #ifdef __cplusplus
16743 extern "C"
16744 #endif
16745 char pthread_create ();
16746 int
16747 main ()
16748 {
16749 return pthread_create ();
16750   ;
16751   return 0;
16752 }
16753 _ACEOF
16754 if ac_fn_c_try_link "$LINENO"; then :
16755   ac_cv_lib_pthread_pthread_create=yes
16756 else
16757   ac_cv_lib_pthread_pthread_create=no
16758 fi
16759 rm -f core conftest.err conftest.$ac_objext \
16760     conftest$ac_exeext conftest.$ac_ext
16761 LIBS=$ac_check_lib_save_LIBS
16762 fi
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16764 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16765 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16766   cat >>confdefs.h <<_ACEOF
16767 #define HAVE_LIBPTHREAD 1
16768 _ACEOF
16769
16770   LIBS="-lpthread $LIBS"
16771
16772 else
16773   as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
16774 fi
16775
16776   ;;
16777
16778   *-mingw32*)
16779
16780 # Check whether --with-asio was given.
16781 if test "${with_asio+set}" = set; then :
16782   withval=$with_asio;
16783     api="$api -D__WINDOWS_ASIO__"
16784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ASIO" >&5
16785 $as_echo "using ASIO" >&6; }
16786     objects="asio.o asiodrivers.o asiolist.o iasiothiscallresolver.o"
16787
16788 fi
16789
16790
16791   # Look for DirectSound flag
16792
16793 # Check whether --with-ds was given.
16794 if test "${with_ds+set}" = set; then :
16795   withval=$with_ds;
16796     api="$api -D__WINDOWS_DS__"
16797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using DirectSound" >&5
16798 $as_echo "using DirectSound" >&6; }
16799     LIBS="-ldsound -lwinmm $LIBS"
16800 fi
16801
16802
16803   # Look for WASAPI flag
16804
16805 # Check whether --with-wasapi was given.
16806 if test "${with_wasapi+set}" = set; then :
16807   withval=$with_wasapi;
16808     api="$api -D__WINDOWS_WASAPI__"
16809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using WASAPI" >&5
16810 $as_echo "using WASAPI" >&6; }
16811     LIBS="-lwinmm -luuid -lksuser $LIBS"
16812 fi
16813
16814
16815   # If no audio api flags specified, use DS
16816   if test "$api" == ""; then
16817     api=-D__WINDOWS_DS__
16818
16819     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using DirectSound" >&5
16820 $as_echo "using DirectSound" >&6; }
16821     LIBS="-ldsound -lwinmm $LIBS"
16822   fi
16823
16824   LIBS="-lole32 $LIBS"
16825   ;;
16826
16827   *)
16828   # Default case for unknown realtime systems.
16829   as_fn_error $? "Unknown system type for realtime support!" "$LINENO" 5
16830   ;;
16831 esac
16832
16833 CPPFLAGS="$CPPFLAGS $api"
16834
16835 cat >confcache <<\_ACEOF
16836 # This file is a shell script that caches the results of configure
16837 # tests run on this system so they can be shared between configure
16838 # scripts and configure runs, see configure's option --config-cache.
16839 # It is not useful on other systems.  If it contains results you don't
16840 # want to keep, you may remove or edit it.
16841 #
16842 # config.status only pays attention to the cache file if you give it
16843 # the --recheck option to rerun configure.
16844 #
16845 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16846 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16847 # following values.
16848
16849 _ACEOF
16850
16851 # The following way of writing the cache mishandles newlines in values,
16852 # but we know of no workaround that is simple, portable, and efficient.
16853 # So, we kill variables containing newlines.
16854 # Ultrix sh set writes to stderr and can't be redirected directly,
16855 # and sets the high bit in the cache file unless we assign to the vars.
16856 (
16857   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16858     eval ac_val=\$$ac_var
16859     case $ac_val in #(
16860     *${as_nl}*)
16861       case $ac_var in #(
16862       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16863 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16864       esac
16865       case $ac_var in #(
16866       _ | IFS | as_nl) ;; #(
16867       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16868       *) { eval $ac_var=; unset $ac_var;} ;;
16869       esac ;;
16870     esac
16871   done
16872
16873   (set) 2>&1 |
16874     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16875     *${as_nl}ac_space=\ *)
16876       # `set' does not quote correctly, so add quotes: double-quote
16877       # substitution turns \\\\ into \\, and sed turns \\ into \.
16878       sed -n \
16879         "s/'/'\\\\''/g;
16880           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16881       ;; #(
16882     *)
16883       # `set' quotes correctly as required by POSIX, so do not add quotes.
16884       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16885       ;;
16886     esac |
16887     sort
16888 ) |
16889   sed '
16890      /^ac_cv_env_/b end
16891      t clear
16892      :clear
16893      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16894      t end
16895      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16896      :end' >>confcache
16897 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16898   if test -w "$cache_file"; then
16899     if test "x$cache_file" != "x/dev/null"; then
16900       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16901 $as_echo "$as_me: updating cache $cache_file" >&6;}
16902       if test ! -f "$cache_file" || test -h "$cache_file"; then
16903         cat confcache >"$cache_file"
16904       else
16905         case $cache_file in #(
16906         */* | ?:*)
16907           mv -f confcache "$cache_file"$$ &&
16908           mv -f "$cache_file"$$ "$cache_file" ;; #(
16909         *)
16910           mv -f confcache "$cache_file" ;;
16911         esac
16912       fi
16913     fi
16914   else
16915     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16916 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16917   fi
16918 fi
16919 rm -f confcache
16920
16921 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16922 # Let make expand exec_prefix.
16923 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16924
16925 # Transform confdefs.h into DEFS.
16926 # Protect against shell expansion while executing Makefile rules.
16927 # Protect against Makefile macro expansion.
16928 #
16929 # If the first sed substitution is executed (which looks for macros that
16930 # take arguments), then branch to the quote section.  Otherwise,
16931 # look for a macro that doesn't take arguments.
16932 ac_script='
16933 :mline
16934 /\\$/{
16935  N
16936  s,\\\n,,
16937  b mline
16938 }
16939 t clear
16940 :clear
16941 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
16942 t quote
16943 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
16944 t quote
16945 b any
16946 :quote
16947 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16948 s/\[/\\&/g
16949 s/\]/\\&/g
16950 s/\$/$$/g
16951 H
16952 :any
16953 ${
16954         g
16955         s/^\n//
16956         s/\n/ /g
16957         p
16958 }
16959 '
16960 DEFS=`sed -n "$ac_script" confdefs.h`
16961
16962
16963 ac_libobjs=
16964 ac_ltlibobjs=
16965 U=
16966 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16967   # 1. Remove the extension, and $U if already installed.
16968   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16969   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16970   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16971   #    will be set to the directory where LIBOBJS objects are built.
16972   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16973   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16974 done
16975 LIBOBJS=$ac_libobjs
16976
16977 LTLIBOBJS=$ac_ltlibobjs
16978
16979
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16981 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16982    if test -n "$am_sleep_pid"; then
16983      # Hide warnings about reused PIDs.
16984      wait $am_sleep_pid 2>/dev/null
16985    fi
16986    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16987 $as_echo "done" >&6; }
16988  if test -n "$EXEEXT"; then
16989   am__EXEEXT_TRUE=
16990   am__EXEEXT_FALSE='#'
16991 else
16992   am__EXEEXT_TRUE='#'
16993   am__EXEEXT_FALSE=
16994 fi
16995
16996 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16997   as_fn_error $? "conditional \"AMDEP\" was never defined.
16998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16999 fi
17000 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17001   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17003 fi
17004 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17005   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17007 fi
17008 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17009   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17011 fi
17012 if test -z "${MAKE_DOC_TRUE}" && test -z "${MAKE_DOC_FALSE}"; then
17013   as_fn_error $? "conditional \"MAKE_DOC\" was never defined.
17014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17015 fi
17016
17017 : "${CONFIG_STATUS=./config.status}"
17018 ac_write_fail=0
17019 ac_clean_files_save=$ac_clean_files
17020 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17022 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17023 as_write_fail=0
17024 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17025 #! $SHELL
17026 # Generated by $as_me.
17027 # Run this file to recreate the current configuration.
17028 # Compiler output produced by configure, useful for debugging
17029 # configure, is in config.log if it exists.
17030
17031 debug=false
17032 ac_cs_recheck=false
17033 ac_cs_silent=false
17034
17035 SHELL=\${CONFIG_SHELL-$SHELL}
17036 export SHELL
17037 _ASEOF
17038 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17039 ## -------------------- ##
17040 ## M4sh Initialization. ##
17041 ## -------------------- ##
17042
17043 # Be more Bourne compatible
17044 DUALCASE=1; export DUALCASE # for MKS sh
17045 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17046   emulate sh
17047   NULLCMD=:
17048   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17049   # is contrary to our usage.  Disable this feature.
17050   alias -g '${1+"$@"}'='"$@"'
17051   setopt NO_GLOB_SUBST
17052 else
17053   case `(set -o) 2>/dev/null` in #(
17054   *posix*) :
17055     set -o posix ;; #(
17056   *) :
17057      ;;
17058 esac
17059 fi
17060
17061
17062 as_nl='
17063 '
17064 export as_nl
17065 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17066 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17067 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17069 # Prefer a ksh shell builtin over an external printf program on Solaris,
17070 # but without wasting forks for bash or zsh.
17071 if test -z "$BASH_VERSION$ZSH_VERSION" \
17072     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17073   as_echo='print -r --'
17074   as_echo_n='print -rn --'
17075 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17076   as_echo='printf %s\n'
17077   as_echo_n='printf %s'
17078 else
17079   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17080     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17081     as_echo_n='/usr/ucb/echo -n'
17082   else
17083     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17084     as_echo_n_body='eval
17085       arg=$1;
17086       case $arg in #(
17087       *"$as_nl"*)
17088         expr "X$arg" : "X\\(.*\\)$as_nl";
17089         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17090       esac;
17091       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17092     '
17093     export as_echo_n_body
17094     as_echo_n='sh -c $as_echo_n_body as_echo'
17095   fi
17096   export as_echo_body
17097   as_echo='sh -c $as_echo_body as_echo'
17098 fi
17099
17100 # The user is always right.
17101 if test "${PATH_SEPARATOR+set}" != set; then
17102   PATH_SEPARATOR=:
17103   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17104     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17105       PATH_SEPARATOR=';'
17106   }
17107 fi
17108
17109
17110 # IFS
17111 # We need space, tab and new line, in precisely that order.  Quoting is
17112 # there to prevent editors from complaining about space-tab.
17113 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17114 # splitting by setting IFS to empty value.)
17115 IFS=" ""        $as_nl"
17116
17117 # Find who we are.  Look in the path if we contain no directory separator.
17118 as_myself=
17119 case $0 in #((
17120   *[\\/]* ) as_myself=$0 ;;
17121   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17122 for as_dir in $PATH
17123 do
17124   IFS=$as_save_IFS
17125   test -z "$as_dir" && as_dir=.
17126     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17127   done
17128 IFS=$as_save_IFS
17129
17130      ;;
17131 esac
17132 # We did not find ourselves, most probably we were run as `sh COMMAND'
17133 # in which case we are not to be found in the path.
17134 if test "x$as_myself" = x; then
17135   as_myself=$0
17136 fi
17137 if test ! -f "$as_myself"; then
17138   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17139   exit 1
17140 fi
17141
17142 # Unset variables that we do not need and which cause bugs (e.g. in
17143 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17144 # suppresses any "Segmentation fault" message there.  '((' could
17145 # trigger a bug in pdksh 5.2.14.
17146 for as_var in BASH_ENV ENV MAIL MAILPATH
17147 do eval test x\${$as_var+set} = xset \
17148   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17149 done
17150 PS1='$ '
17151 PS2='> '
17152 PS4='+ '
17153
17154 # NLS nuisances.
17155 LC_ALL=C
17156 export LC_ALL
17157 LANGUAGE=C
17158 export LANGUAGE
17159
17160 # CDPATH.
17161 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17162
17163
17164 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17165 # ----------------------------------------
17166 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17167 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17168 # script with STATUS, using 1 if that was 0.
17169 as_fn_error ()
17170 {
17171   as_status=$1; test $as_status -eq 0 && as_status=1
17172   if test "$4"; then
17173     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17174     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17175   fi
17176   $as_echo "$as_me: error: $2" >&2
17177   as_fn_exit $as_status
17178 } # as_fn_error
17179
17180
17181 # as_fn_set_status STATUS
17182 # -----------------------
17183 # Set $? to STATUS, without forking.
17184 as_fn_set_status ()
17185 {
17186   return $1
17187 } # as_fn_set_status
17188
17189 # as_fn_exit STATUS
17190 # -----------------
17191 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17192 as_fn_exit ()
17193 {
17194   set +e
17195   as_fn_set_status $1
17196   exit $1
17197 } # as_fn_exit
17198
17199 # as_fn_unset VAR
17200 # ---------------
17201 # Portably unset VAR.
17202 as_fn_unset ()
17203 {
17204   { eval $1=; unset $1;}
17205 }
17206 as_unset=as_fn_unset
17207 # as_fn_append VAR VALUE
17208 # ----------------------
17209 # Append the text in VALUE to the end of the definition contained in VAR. Take
17210 # advantage of any shell optimizations that allow amortized linear growth over
17211 # repeated appends, instead of the typical quadratic growth present in naive
17212 # implementations.
17213 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17214   eval 'as_fn_append ()
17215   {
17216     eval $1+=\$2
17217   }'
17218 else
17219   as_fn_append ()
17220   {
17221     eval $1=\$$1\$2
17222   }
17223 fi # as_fn_append
17224
17225 # as_fn_arith ARG...
17226 # ------------------
17227 # Perform arithmetic evaluation on the ARGs, and store the result in the
17228 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17229 # must be portable across $(()) and expr.
17230 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17231   eval 'as_fn_arith ()
17232   {
17233     as_val=$(( $* ))
17234   }'
17235 else
17236   as_fn_arith ()
17237   {
17238     as_val=`expr "$@" || test $? -eq 1`
17239   }
17240 fi # as_fn_arith
17241
17242
17243 if expr a : '\(a\)' >/dev/null 2>&1 &&
17244    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17245   as_expr=expr
17246 else
17247   as_expr=false
17248 fi
17249
17250 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17251   as_basename=basename
17252 else
17253   as_basename=false
17254 fi
17255
17256 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17257   as_dirname=dirname
17258 else
17259   as_dirname=false
17260 fi
17261
17262 as_me=`$as_basename -- "$0" ||
17263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17264          X"$0" : 'X\(//\)$' \| \
17265          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17266 $as_echo X/"$0" |
17267     sed '/^.*\/\([^/][^/]*\)\/*$/{
17268             s//\1/
17269             q
17270           }
17271           /^X\/\(\/\/\)$/{
17272             s//\1/
17273             q
17274           }
17275           /^X\/\(\/\).*/{
17276             s//\1/
17277             q
17278           }
17279           s/.*/./; q'`
17280
17281 # Avoid depending upon Character Ranges.
17282 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17283 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17284 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17285 as_cr_digits='0123456789'
17286 as_cr_alnum=$as_cr_Letters$as_cr_digits
17287
17288 ECHO_C= ECHO_N= ECHO_T=
17289 case `echo -n x` in #(((((
17290 -n*)
17291   case `echo 'xy\c'` in
17292   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17293   xy)  ECHO_C='\c';;
17294   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17295        ECHO_T=' ';;
17296   esac;;
17297 *)
17298   ECHO_N='-n';;
17299 esac
17300
17301 rm -f conf$$ conf$$.exe conf$$.file
17302 if test -d conf$$.dir; then
17303   rm -f conf$$.dir/conf$$.file
17304 else
17305   rm -f conf$$.dir
17306   mkdir conf$$.dir 2>/dev/null
17307 fi
17308 if (echo >conf$$.file) 2>/dev/null; then
17309   if ln -s conf$$.file conf$$ 2>/dev/null; then
17310     as_ln_s='ln -s'
17311     # ... but there are two gotchas:
17312     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17313     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17314     # In both cases, we have to default to `cp -pR'.
17315     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17316       as_ln_s='cp -pR'
17317   elif ln conf$$.file conf$$ 2>/dev/null; then
17318     as_ln_s=ln
17319   else
17320     as_ln_s='cp -pR'
17321   fi
17322 else
17323   as_ln_s='cp -pR'
17324 fi
17325 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17326 rmdir conf$$.dir 2>/dev/null
17327
17328
17329 # as_fn_mkdir_p
17330 # -------------
17331 # Create "$as_dir" as a directory, including parents if necessary.
17332 as_fn_mkdir_p ()
17333 {
17334
17335   case $as_dir in #(
17336   -*) as_dir=./$as_dir;;
17337   esac
17338   test -d "$as_dir" || eval $as_mkdir_p || {
17339     as_dirs=
17340     while :; do
17341       case $as_dir in #(
17342       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17343       *) as_qdir=$as_dir;;
17344       esac
17345       as_dirs="'$as_qdir' $as_dirs"
17346       as_dir=`$as_dirname -- "$as_dir" ||
17347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17348          X"$as_dir" : 'X\(//\)[^/]' \| \
17349          X"$as_dir" : 'X\(//\)$' \| \
17350          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17351 $as_echo X"$as_dir" |
17352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17353             s//\1/
17354             q
17355           }
17356           /^X\(\/\/\)[^/].*/{
17357             s//\1/
17358             q
17359           }
17360           /^X\(\/\/\)$/{
17361             s//\1/
17362             q
17363           }
17364           /^X\(\/\).*/{
17365             s//\1/
17366             q
17367           }
17368           s/.*/./; q'`
17369       test -d "$as_dir" && break
17370     done
17371     test -z "$as_dirs" || eval "mkdir $as_dirs"
17372   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17373
17374
17375 } # as_fn_mkdir_p
17376 if mkdir -p . 2>/dev/null; then
17377   as_mkdir_p='mkdir -p "$as_dir"'
17378 else
17379   test -d ./-p && rmdir ./-p
17380   as_mkdir_p=false
17381 fi
17382
17383
17384 # as_fn_executable_p FILE
17385 # -----------------------
17386 # Test if FILE is an executable regular file.
17387 as_fn_executable_p ()
17388 {
17389   test -f "$1" && test -x "$1"
17390 } # as_fn_executable_p
17391 as_test_x='test -x'
17392 as_executable_p=as_fn_executable_p
17393
17394 # Sed expression to map a string onto a valid CPP name.
17395 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17396
17397 # Sed expression to map a string onto a valid variable name.
17398 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17399
17400
17401 exec 6>&1
17402 ## ----------------------------------- ##
17403 ## Main body of $CONFIG_STATUS script. ##
17404 ## ----------------------------------- ##
17405 _ASEOF
17406 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17407
17408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17409 # Save the log message, to keep $0 and so on meaningful, and to
17410 # report actual input values of CONFIG_FILES etc. instead of their
17411 # values after options handling.
17412 ac_log="
17413 This file was extended by RtAudio $as_me 4.1.2, which was
17414 generated by GNU Autoconf 2.69.  Invocation command line was
17415
17416   CONFIG_FILES    = $CONFIG_FILES
17417   CONFIG_HEADERS  = $CONFIG_HEADERS
17418   CONFIG_LINKS    = $CONFIG_LINKS
17419   CONFIG_COMMANDS = $CONFIG_COMMANDS
17420   $ $0 $@
17421
17422 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17423 "
17424
17425 _ACEOF
17426
17427 case $ac_config_files in *"
17428 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17429 esac
17430
17431
17432
17433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17434 # Files that config.status was made for.
17435 config_files="$ac_config_files"
17436 config_links="$ac_config_links"
17437 config_commands="$ac_config_commands"
17438
17439 _ACEOF
17440
17441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17442 ac_cs_usage="\
17443 \`$as_me' instantiates files and other configuration actions
17444 from templates according to the current configuration.  Unless the files
17445 and actions are specified as TAGs, all are instantiated by default.
17446
17447 Usage: $0 [OPTION]... [TAG]...
17448
17449   -h, --help       print this help, then exit
17450   -V, --version    print version number and configuration settings, then exit
17451       --config     print configuration, then exit
17452   -q, --quiet, --silent
17453                    do not print progress messages
17454   -d, --debug      don't remove temporary files
17455       --recheck    update $as_me by reconfiguring in the same conditions
17456       --file=FILE[:TEMPLATE]
17457                    instantiate the configuration file FILE
17458
17459 Configuration files:
17460 $config_files
17461
17462 Configuration links:
17463 $config_links
17464
17465 Configuration commands:
17466 $config_commands
17467
17468 Report bugs to <gary@music.mcgill.ca>."
17469
17470 _ACEOF
17471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17472 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17473 ac_cs_version="\\
17474 RtAudio config.status 4.1.2
17475 configured by $0, generated by GNU Autoconf 2.69,
17476   with options \\"\$ac_cs_config\\"
17477
17478 Copyright (C) 2012 Free Software Foundation, Inc.
17479 This config.status script is free software; the Free Software Foundation
17480 gives unlimited permission to copy, distribute and modify it."
17481
17482 ac_pwd='$ac_pwd'
17483 srcdir='$srcdir'
17484 INSTALL='$INSTALL'
17485 MKDIR_P='$MKDIR_P'
17486 AWK='$AWK'
17487 test -n "\$AWK" || AWK=awk
17488 _ACEOF
17489
17490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17491 # The default lists apply if the user does not specify any file.
17492 ac_need_defaults=:
17493 while test $# != 0
17494 do
17495   case $1 in
17496   --*=?*)
17497     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17498     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17499     ac_shift=:
17500     ;;
17501   --*=)
17502     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17503     ac_optarg=
17504     ac_shift=:
17505     ;;
17506   *)
17507     ac_option=$1
17508     ac_optarg=$2
17509     ac_shift=shift
17510     ;;
17511   esac
17512
17513   case $ac_option in
17514   # Handling of the options.
17515   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17516     ac_cs_recheck=: ;;
17517   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17518     $as_echo "$ac_cs_version"; exit ;;
17519   --config | --confi | --conf | --con | --co | --c )
17520     $as_echo "$ac_cs_config"; exit ;;
17521   --debug | --debu | --deb | --de | --d | -d )
17522     debug=: ;;
17523   --file | --fil | --fi | --f )
17524     $ac_shift
17525     case $ac_optarg in
17526     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17527     '') as_fn_error $? "missing file argument" ;;
17528     esac
17529     as_fn_append CONFIG_FILES " '$ac_optarg'"
17530     ac_need_defaults=false;;
17531   --he | --h |  --help | --hel | -h )
17532     $as_echo "$ac_cs_usage"; exit ;;
17533   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17534   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17535     ac_cs_silent=: ;;
17536
17537   # This is an error.
17538   -*) as_fn_error $? "unrecognized option: \`$1'
17539 Try \`$0 --help' for more information." ;;
17540
17541   *) as_fn_append ac_config_targets " $1"
17542      ac_need_defaults=false ;;
17543
17544   esac
17545   shift
17546 done
17547
17548 ac_configure_extra_args=
17549
17550 if $ac_cs_silent; then
17551   exec 6>/dev/null
17552   ac_configure_extra_args="$ac_configure_extra_args --silent"
17553 fi
17554
17555 _ACEOF
17556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17557 if \$ac_cs_recheck; then
17558   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17559   shift
17560   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17561   CONFIG_SHELL='$SHELL'
17562   export CONFIG_SHELL
17563   exec "\$@"
17564 fi
17565
17566 _ACEOF
17567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17568 exec 5>>config.log
17569 {
17570   echo
17571   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17572 ## Running $as_me. ##
17573 _ASBOX
17574   $as_echo "$ac_log"
17575 } >&5
17576
17577 _ACEOF
17578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17579 #
17580 # INIT-COMMANDS
17581 #
17582 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17583
17584
17585 # The HP-UX ksh and POSIX shell print the target directory to stdout
17586 # if CDPATH is set.
17587 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17588
17589 sed_quote_subst='$sed_quote_subst'
17590 double_quote_subst='$double_quote_subst'
17591 delay_variable_subst='$delay_variable_subst'
17592 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17593 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17594 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17595 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17596 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17597 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17598 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17599 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17600 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17601 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17602 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17603 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17604 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17605 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17606 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17607 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17608 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17609 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17610 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17611 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17612 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17613 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17614 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17615 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17616 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17617 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17618 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17619 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17620 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17621 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17622 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17623 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17624 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17625 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17626 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17627 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17628 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17629 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17630 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17631 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17632 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17633 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17634 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17635 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17636 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17637 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17638 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17639 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17640 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17641 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17642 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17643 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17644 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17645 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17646 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17647 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17648 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17649 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"`'
17650 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17651 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17652 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17653 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17654 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17655 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17656 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17657 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17658 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17659 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17660 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17661 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17662 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17663 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17664 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17665 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17666 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17667 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17668 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17669 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17670 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17671 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17672 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17673 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17674 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17675 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17676 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17677 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17678 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17679 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17680 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17681 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17682 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17683 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17684 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17685 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17686 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17687 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17688 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17689 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17690 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17691 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17692 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17693 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17694 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17695 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17696 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17697 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17698 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17699 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17700 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17701 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17702 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17703 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17704 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17705 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17706 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17707 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17708 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17709 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17710 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17711 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17712 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17713 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17714 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17715 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17716 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17717 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17718 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17719 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17720 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17721 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17722 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17723 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17724 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17725 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17726 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17727 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17728 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17729 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17730 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17731 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17732 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17733 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17734 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17735 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17736 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17737 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17738 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17739 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17740 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17741 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17742 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17743 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17744 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17745 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17746 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17747 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17748 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17749 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17750 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17751 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17752 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17753 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17754 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17755 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17756 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17757 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17758 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17759 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17760 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17761 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17762 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17763 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17764 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17765 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17766 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17767 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17768 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17769 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17770 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17771 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17772 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17773 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17774 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17775 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17776 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17777
17778 LTCC='$LTCC'
17779 LTCFLAGS='$LTCFLAGS'
17780 compiler='$compiler_DEFAULT'
17781
17782 # A function that is used when there is no print builtin or printf.
17783 func_fallback_echo ()
17784 {
17785   eval 'cat <<_LTECHO_EOF
17786 \$1
17787 _LTECHO_EOF'
17788 }
17789
17790 # Quote evaled strings.
17791 for var in AS \
17792 DLLTOOL \
17793 OBJDUMP \
17794 SHELL \
17795 ECHO \
17796 PATH_SEPARATOR \
17797 SED \
17798 GREP \
17799 EGREP \
17800 FGREP \
17801 LD \
17802 NM \
17803 LN_S \
17804 lt_SP2NL \
17805 lt_NL2SP \
17806 reload_flag \
17807 deplibs_check_method \
17808 file_magic_cmd \
17809 file_magic_glob \
17810 want_nocaseglob \
17811 sharedlib_from_linklib_cmd \
17812 AR \
17813 AR_FLAGS \
17814 archiver_list_spec \
17815 STRIP \
17816 RANLIB \
17817 CC \
17818 CFLAGS \
17819 compiler \
17820 lt_cv_sys_global_symbol_pipe \
17821 lt_cv_sys_global_symbol_to_cdecl \
17822 lt_cv_sys_global_symbol_to_c_name_address \
17823 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17824 nm_file_list_spec \
17825 lt_prog_compiler_no_builtin_flag \
17826 lt_prog_compiler_pic \
17827 lt_prog_compiler_wl \
17828 lt_prog_compiler_static \
17829 lt_cv_prog_compiler_c_o \
17830 need_locks \
17831 MANIFEST_TOOL \
17832 DSYMUTIL \
17833 NMEDIT \
17834 LIPO \
17835 OTOOL \
17836 OTOOL64 \
17837 shrext_cmds \
17838 export_dynamic_flag_spec \
17839 whole_archive_flag_spec \
17840 compiler_needs_object \
17841 with_gnu_ld \
17842 allow_undefined_flag \
17843 no_undefined_flag \
17844 hardcode_libdir_flag_spec \
17845 hardcode_libdir_separator \
17846 exclude_expsyms \
17847 include_expsyms \
17848 file_list_spec \
17849 variables_saved_for_relink \
17850 libname_spec \
17851 library_names_spec \
17852 soname_spec \
17853 install_override_mode \
17854 finish_eval \
17855 old_striplib \
17856 striplib \
17857 compiler_lib_search_dirs \
17858 predep_objects \
17859 postdep_objects \
17860 predeps \
17861 postdeps \
17862 compiler_lib_search_path \
17863 LD_CXX \
17864 reload_flag_CXX \
17865 compiler_CXX \
17866 lt_prog_compiler_no_builtin_flag_CXX \
17867 lt_prog_compiler_pic_CXX \
17868 lt_prog_compiler_wl_CXX \
17869 lt_prog_compiler_static_CXX \
17870 lt_cv_prog_compiler_c_o_CXX \
17871 export_dynamic_flag_spec_CXX \
17872 whole_archive_flag_spec_CXX \
17873 compiler_needs_object_CXX \
17874 with_gnu_ld_CXX \
17875 allow_undefined_flag_CXX \
17876 no_undefined_flag_CXX \
17877 hardcode_libdir_flag_spec_CXX \
17878 hardcode_libdir_separator_CXX \
17879 exclude_expsyms_CXX \
17880 include_expsyms_CXX \
17881 file_list_spec_CXX \
17882 compiler_lib_search_dirs_CXX \
17883 predep_objects_CXX \
17884 postdep_objects_CXX \
17885 predeps_CXX \
17886 postdeps_CXX \
17887 compiler_lib_search_path_CXX; do
17888     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17889     *[\\\\\\\`\\"\\\$]*)
17890       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17891       ;;
17892     *)
17893       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17894       ;;
17895     esac
17896 done
17897
17898 # Double-quote double-evaled strings.
17899 for var in reload_cmds \
17900 old_postinstall_cmds \
17901 old_postuninstall_cmds \
17902 old_archive_cmds \
17903 extract_expsyms_cmds \
17904 old_archive_from_new_cmds \
17905 old_archive_from_expsyms_cmds \
17906 archive_cmds \
17907 archive_expsym_cmds \
17908 module_cmds \
17909 module_expsym_cmds \
17910 export_symbols_cmds \
17911 prelink_cmds \
17912 postlink_cmds \
17913 postinstall_cmds \
17914 postuninstall_cmds \
17915 finish_cmds \
17916 sys_lib_search_path_spec \
17917 sys_lib_dlsearch_path_spec \
17918 reload_cmds_CXX \
17919 old_archive_cmds_CXX \
17920 old_archive_from_new_cmds_CXX \
17921 old_archive_from_expsyms_cmds_CXX \
17922 archive_cmds_CXX \
17923 archive_expsym_cmds_CXX \
17924 module_cmds_CXX \
17925 module_expsym_cmds_CXX \
17926 export_symbols_cmds_CXX \
17927 prelink_cmds_CXX \
17928 postlink_cmds_CXX; do
17929     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17930     *[\\\\\\\`\\"\\\$]*)
17931       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17932       ;;
17933     *)
17934       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17935       ;;
17936     esac
17937 done
17938
17939 ac_aux_dir='$ac_aux_dir'
17940 xsi_shell='$xsi_shell'
17941 lt_shell_append='$lt_shell_append'
17942
17943 # See if we are running on zsh, and set the options which allow our
17944 # commands through without removal of \ escapes INIT.
17945 if test -n "\${ZSH_VERSION+set}" ; then
17946    setopt NO_GLOB_SUBST
17947 fi
17948
17949
17950     PACKAGE='$PACKAGE'
17951     VERSION='$VERSION'
17952     TIMESTAMP='$TIMESTAMP'
17953     RM='$RM'
17954     ofile='$ofile'
17955
17956
17957
17958
17959
17960
17961 _ACEOF
17962
17963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17964
17965 # Handling of arguments.
17966 for ac_config_target in $ac_config_targets
17967 do
17968   case $ac_config_target in
17969     "rtaudio-config") CONFIG_FILES="$CONFIG_FILES rtaudio-config" ;;
17970     "rtaudio.pc") CONFIG_FILES="$CONFIG_FILES rtaudio.pc" ;;
17971     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17972     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17973     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17974     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
17975     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17976     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17977     "doc/release.txt") CONFIG_LINKS="$CONFIG_LINKS doc/release.txt:doc/release.txt" ;;
17978     "doc/doxygen/footer.html") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/footer.html:doc/doxygen/footer.html" ;;
17979     "doc/doxygen/error.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/error.txt:doc/doxygen/error.txt" ;;
17980     "doc/doxygen/tutorial.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/tutorial.txt:doc/doxygen/tutorial.txt" ;;
17981     "doc/doxygen/compiling.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/compiling.txt:doc/doxygen/compiling.txt" ;;
17982     "doc/doxygen/acknowledge.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/acknowledge.txt:doc/doxygen/acknowledge.txt" ;;
17983     "doc/doxygen/license.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/license.txt:doc/doxygen/license.txt" ;;
17984     "doc/doxygen/header.html") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/header.html:doc/doxygen/header.html" ;;
17985     "doc/doxygen/duplex.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/duplex.txt:doc/doxygen/duplex.txt" ;;
17986     "doc/doxygen/settings.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/settings.txt:doc/doxygen/settings.txt" ;;
17987     "doc/doxygen/probe.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/probe.txt:doc/doxygen/probe.txt" ;;
17988     "doc/doxygen/playback.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/playback.txt:doc/doxygen/playback.txt" ;;
17989     "doc/doxygen/multi.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/multi.txt:doc/doxygen/multi.txt" ;;
17990     "doc/doxygen/recording.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/recording.txt:doc/doxygen/recording.txt" ;;
17991     "doc/doxygen/apinotes.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/apinotes.txt:doc/doxygen/apinotes.txt" ;;
17992     "doc/images/mcgill.gif") CONFIG_LINKS="$CONFIG_LINKS doc/images/mcgill.gif:doc/images/mcgill.gif" ;;
17993     "doc/images/ccrma.gif") CONFIG_LINKS="$CONFIG_LINKS doc/images/ccrma.gif:doc/images/ccrma.gif" ;;
17994
17995   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17996   esac
17997 done
17998
17999
18000 # If the user did not use the arguments to specify the items to instantiate,
18001 # then the envvar interface is used.  Set only those that are not.
18002 # We use the long form for the default assignment because of an extremely
18003 # bizarre bug on SunOS 4.1.3.
18004 if $ac_need_defaults; then
18005   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18006   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18007   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18008 fi
18009
18010 # Have a temporary directory for convenience.  Make it in the build tree
18011 # simply because there is no reason against having it here, and in addition,
18012 # creating and moving files from /tmp can sometimes cause problems.
18013 # Hook for its removal unless debugging.
18014 # Note that there is a small window in which the directory will not be cleaned:
18015 # after its creation but before its name has been assigned to `$tmp'.
18016 $debug ||
18017 {
18018   tmp= ac_tmp=
18019   trap 'exit_status=$?
18020   : "${ac_tmp:=$tmp}"
18021   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18022 ' 0
18023   trap 'as_fn_exit 1' 1 2 13 15
18024 }
18025 # Create a (secure) tmp directory for tmp files.
18026
18027 {
18028   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18029   test -d "$tmp"
18030 }  ||
18031 {
18032   tmp=./conf$$-$RANDOM
18033   (umask 077 && mkdir "$tmp")
18034 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18035 ac_tmp=$tmp
18036
18037 # Set up the scripts for CONFIG_FILES section.
18038 # No need to generate them if there are no CONFIG_FILES.
18039 # This happens for instance with `./config.status config.h'.
18040 if test -n "$CONFIG_FILES"; then
18041
18042
18043 ac_cr=`echo X | tr X '\015'`
18044 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18045 # But we know of no other shell where ac_cr would be empty at this
18046 # point, so we can use a bashism as a fallback.
18047 if test "x$ac_cr" = x; then
18048   eval ac_cr=\$\'\\r\'
18049 fi
18050 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18051 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18052   ac_cs_awk_cr='\\r'
18053 else
18054   ac_cs_awk_cr=$ac_cr
18055 fi
18056
18057 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18058 _ACEOF
18059
18060
18061 {
18062   echo "cat >conf$$subs.awk <<_ACEOF" &&
18063   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18064   echo "_ACEOF"
18065 } >conf$$subs.sh ||
18066   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18067 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18068 ac_delim='%!_!# '
18069 for ac_last_try in false false false false false :; do
18070   . ./conf$$subs.sh ||
18071     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18072
18073   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18074   if test $ac_delim_n = $ac_delim_num; then
18075     break
18076   elif $ac_last_try; then
18077     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18078   else
18079     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18080   fi
18081 done
18082 rm -f conf$$subs.sh
18083
18084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18085 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18086 _ACEOF
18087 sed -n '
18088 h
18089 s/^/S["/; s/!.*/"]=/
18090 p
18091 g
18092 s/^[^!]*!//
18093 :repl
18094 t repl
18095 s/'"$ac_delim"'$//
18096 t delim
18097 :nl
18098 h
18099 s/\(.\{148\}\)..*/\1/
18100 t more1
18101 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18102 p
18103 n
18104 b repl
18105 :more1
18106 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18107 p
18108 g
18109 s/.\{148\}//
18110 t nl
18111 :delim
18112 h
18113 s/\(.\{148\}\)..*/\1/
18114 t more2
18115 s/["\\]/\\&/g; s/^/"/; s/$/"/
18116 p
18117 b
18118 :more2
18119 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18120 p
18121 g
18122 s/.\{148\}//
18123 t delim
18124 ' <conf$$subs.awk | sed '
18125 /^[^""]/{
18126   N
18127   s/\n//
18128 }
18129 ' >>$CONFIG_STATUS || ac_write_fail=1
18130 rm -f conf$$subs.awk
18131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18132 _ACAWK
18133 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18134   for (key in S) S_is_set[key] = 1
18135   FS = "\a"
18136
18137 }
18138 {
18139   line = $ 0
18140   nfields = split(line, field, "@")
18141   substed = 0
18142   len = length(field[1])
18143   for (i = 2; i < nfields; i++) {
18144     key = field[i]
18145     keylen = length(key)
18146     if (S_is_set[key]) {
18147       value = S[key]
18148       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18149       len += length(value) + length(field[++i])
18150       substed = 1
18151     } else
18152       len += 1 + keylen
18153   }
18154
18155   print line
18156 }
18157
18158 _ACAWK
18159 _ACEOF
18160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18161 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18162   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18163 else
18164   cat
18165 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18166   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18167 _ACEOF
18168
18169 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18170 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18171 # trailing colons and then remove the whole line if VPATH becomes empty
18172 # (actually we leave an empty line to preserve line numbers).
18173 if test "x$srcdir" = x.; then
18174   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18175 h
18176 s///
18177 s/^/:/
18178 s/[      ]*$/:/
18179 s/:\$(srcdir):/:/g
18180 s/:\${srcdir}:/:/g
18181 s/:@srcdir@:/:/g
18182 s/^:*//
18183 s/:*$//
18184 x
18185 s/\(=[   ]*\).*/\1/
18186 G
18187 s/\n//
18188 s/^[^=]*=[       ]*$//
18189 }'
18190 fi
18191
18192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18193 fi # test -n "$CONFIG_FILES"
18194
18195
18196 eval set X "  :F $CONFIG_FILES    :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
18197 shift
18198 for ac_tag
18199 do
18200   case $ac_tag in
18201   :[FHLC]) ac_mode=$ac_tag; continue;;
18202   esac
18203   case $ac_mode$ac_tag in
18204   :[FHL]*:*);;
18205   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18206   :[FH]-) ac_tag=-:-;;
18207   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18208   esac
18209   ac_save_IFS=$IFS
18210   IFS=:
18211   set x $ac_tag
18212   IFS=$ac_save_IFS
18213   shift
18214   ac_file=$1
18215   shift
18216
18217   case $ac_mode in
18218   :L) ac_source=$1;;
18219   :[FH])
18220     ac_file_inputs=
18221     for ac_f
18222     do
18223       case $ac_f in
18224       -) ac_f="$ac_tmp/stdin";;
18225       *) # Look for the file first in the build tree, then in the source tree
18226          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18227          # because $ac_f cannot contain `:'.
18228          test -f "$ac_f" ||
18229            case $ac_f in
18230            [\\/$]*) false;;
18231            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18232            esac ||
18233            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18234       esac
18235       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18236       as_fn_append ac_file_inputs " '$ac_f'"
18237     done
18238
18239     # Let's still pretend it is `configure' which instantiates (i.e., don't
18240     # use $as_me), people would be surprised to read:
18241     #    /* config.h.  Generated by config.status.  */
18242     configure_input='Generated from '`
18243           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18244         `' by configure.'
18245     if test x"$ac_file" != x-; then
18246       configure_input="$ac_file.  $configure_input"
18247       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18248 $as_echo "$as_me: creating $ac_file" >&6;}
18249     fi
18250     # Neutralize special characters interpreted by sed in replacement strings.
18251     case $configure_input in #(
18252     *\&* | *\|* | *\\* )
18253        ac_sed_conf_input=`$as_echo "$configure_input" |
18254        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18255     *) ac_sed_conf_input=$configure_input;;
18256     esac
18257
18258     case $ac_tag in
18259     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18260       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18261     esac
18262     ;;
18263   esac
18264
18265   ac_dir=`$as_dirname -- "$ac_file" ||
18266 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18267          X"$ac_file" : 'X\(//\)[^/]' \| \
18268          X"$ac_file" : 'X\(//\)$' \| \
18269          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18270 $as_echo X"$ac_file" |
18271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18272             s//\1/
18273             q
18274           }
18275           /^X\(\/\/\)[^/].*/{
18276             s//\1/
18277             q
18278           }
18279           /^X\(\/\/\)$/{
18280             s//\1/
18281             q
18282           }
18283           /^X\(\/\).*/{
18284             s//\1/
18285             q
18286           }
18287           s/.*/./; q'`
18288   as_dir="$ac_dir"; as_fn_mkdir_p
18289   ac_builddir=.
18290
18291 case "$ac_dir" in
18292 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18293 *)
18294   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18295   # A ".." for each directory in $ac_dir_suffix.
18296   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18297   case $ac_top_builddir_sub in
18298   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18299   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18300   esac ;;
18301 esac
18302 ac_abs_top_builddir=$ac_pwd
18303 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18304 # for backward compatibility:
18305 ac_top_builddir=$ac_top_build_prefix
18306
18307 case $srcdir in
18308   .)  # We are building in place.
18309     ac_srcdir=.
18310     ac_top_srcdir=$ac_top_builddir_sub
18311     ac_abs_top_srcdir=$ac_pwd ;;
18312   [\\/]* | ?:[\\/]* )  # Absolute name.
18313     ac_srcdir=$srcdir$ac_dir_suffix;
18314     ac_top_srcdir=$srcdir
18315     ac_abs_top_srcdir=$srcdir ;;
18316   *) # Relative name.
18317     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18318     ac_top_srcdir=$ac_top_build_prefix$srcdir
18319     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18320 esac
18321 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18322
18323
18324   case $ac_mode in
18325   :F)
18326   #
18327   # CONFIG_FILE
18328   #
18329
18330   case $INSTALL in
18331   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18332   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18333   esac
18334   ac_MKDIR_P=$MKDIR_P
18335   case $MKDIR_P in
18336   [\\/$]* | ?:[\\/]* ) ;;
18337   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18338   esac
18339 _ACEOF
18340
18341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18342 # If the template does not know about datarootdir, expand it.
18343 # FIXME: This hack should be removed a few years after 2.60.
18344 ac_datarootdir_hack=; ac_datarootdir_seen=
18345 ac_sed_dataroot='
18346 /datarootdir/ {
18347   p
18348   q
18349 }
18350 /@datadir@/p
18351 /@docdir@/p
18352 /@infodir@/p
18353 /@localedir@/p
18354 /@mandir@/p'
18355 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18356 *datarootdir*) ac_datarootdir_seen=yes;;
18357 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18358   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18359 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18360 _ACEOF
18361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18362   ac_datarootdir_hack='
18363   s&@datadir@&$datadir&g
18364   s&@docdir@&$docdir&g
18365   s&@infodir@&$infodir&g
18366   s&@localedir@&$localedir&g
18367   s&@mandir@&$mandir&g
18368   s&\\\${datarootdir}&$datarootdir&g' ;;
18369 esac
18370 _ACEOF
18371
18372 # Neutralize VPATH when `$srcdir' = `.'.
18373 # Shell code in configure.ac might set extrasub.
18374 # FIXME: do we really want to maintain this feature?
18375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18376 ac_sed_extra="$ac_vpsub
18377 $extrasub
18378 _ACEOF
18379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18380 :t
18381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18382 s|@configure_input@|$ac_sed_conf_input|;t t
18383 s&@top_builddir@&$ac_top_builddir_sub&;t t
18384 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18385 s&@srcdir@&$ac_srcdir&;t t
18386 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18387 s&@top_srcdir@&$ac_top_srcdir&;t t
18388 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18389 s&@builddir@&$ac_builddir&;t t
18390 s&@abs_builddir@&$ac_abs_builddir&;t t
18391 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18392 s&@INSTALL@&$ac_INSTALL&;t t
18393 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18394 $ac_datarootdir_hack
18395 "
18396 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18397   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18398
18399 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18400   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18401   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18402       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18403   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18404 which seems to be undefined.  Please make sure it is defined" >&5
18405 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18406 which seems to be undefined.  Please make sure it is defined" >&2;}
18407
18408   rm -f "$ac_tmp/stdin"
18409   case $ac_file in
18410   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18411   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18412   esac \
18413   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18414  ;;
18415
18416   :L)
18417   #
18418   # CONFIG_LINK
18419   #
18420
18421   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18422     :
18423   else
18424     # Prefer the file from the source tree if names are identical.
18425     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18426       ac_source=$srcdir/$ac_source
18427     fi
18428
18429     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18430 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18431
18432     if test ! -r "$ac_source"; then
18433       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18434     fi
18435     rm -f "$ac_file"
18436
18437     # Try a relative symlink, then a hard link, then a copy.
18438     case $ac_source in
18439     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18440         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18441     esac
18442     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18443       ln "$ac_source" "$ac_file" 2>/dev/null ||
18444       cp -p "$ac_source" "$ac_file" ||
18445       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18446   fi
18447  ;;
18448   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18449 $as_echo "$as_me: executing $ac_file commands" >&6;}
18450  ;;
18451   esac
18452
18453
18454   case $ac_file$ac_mode in
18455     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18456   # Older Autoconf quotes --file arguments for eval, but not when files
18457   # are listed without --file.  Let's play safe and only enable the eval
18458   # if we detect the quoting.
18459   case $CONFIG_FILES in
18460   *\'*) eval set x "$CONFIG_FILES" ;;
18461   *)   set x $CONFIG_FILES ;;
18462   esac
18463   shift
18464   for mf
18465   do
18466     # Strip MF so we end up with the name of the file.
18467     mf=`echo "$mf" | sed -e 's/:.*$//'`
18468     # Check whether this is an Automake generated Makefile or not.
18469     # We used to match only the files named 'Makefile.in', but
18470     # some people rename them; so instead we look at the file content.
18471     # Grep'ing the first line is not enough: some people post-process
18472     # each Makefile.in and add a new line on top of each file to say so.
18473     # Grep'ing the whole file is not good either: AIX grep has a line
18474     # limit of 2048, but all sed's we know have understand at least 4000.
18475     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18476       dirpart=`$as_dirname -- "$mf" ||
18477 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18478          X"$mf" : 'X\(//\)[^/]' \| \
18479          X"$mf" : 'X\(//\)$' \| \
18480          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18481 $as_echo X"$mf" |
18482     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18483             s//\1/
18484             q
18485           }
18486           /^X\(\/\/\)[^/].*/{
18487             s//\1/
18488             q
18489           }
18490           /^X\(\/\/\)$/{
18491             s//\1/
18492             q
18493           }
18494           /^X\(\/\).*/{
18495             s//\1/
18496             q
18497           }
18498           s/.*/./; q'`
18499     else
18500       continue
18501     fi
18502     # Extract the definition of DEPDIR, am__include, and am__quote
18503     # from the Makefile without running 'make'.
18504     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18505     test -z "$DEPDIR" && continue
18506     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18507     test -z "$am__include" && continue
18508     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18509     # Find all dependency output files, they are included files with
18510     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18511     # simplest approach to changing $(DEPDIR) to its actual value in the
18512     # expansion.
18513     for file in `sed -n "
18514       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18515          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18516       # Make sure the directory exists.
18517       test -f "$dirpart/$file" && continue
18518       fdir=`$as_dirname -- "$file" ||
18519 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18520          X"$file" : 'X\(//\)[^/]' \| \
18521          X"$file" : 'X\(//\)$' \| \
18522          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18523 $as_echo X"$file" |
18524     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18525             s//\1/
18526             q
18527           }
18528           /^X\(\/\/\)[^/].*/{
18529             s//\1/
18530             q
18531           }
18532           /^X\(\/\/\)$/{
18533             s//\1/
18534             q
18535           }
18536           /^X\(\/\).*/{
18537             s//\1/
18538             q
18539           }
18540           s/.*/./; q'`
18541       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18542       # echo "creating $dirpart/$file"
18543       echo '# dummy' > "$dirpart/$file"
18544     done
18545   done
18546 }
18547  ;;
18548     "libtool":C)
18549
18550     # See if we are running on zsh, and set the options which allow our
18551     # commands through without removal of \ escapes.
18552     if test -n "${ZSH_VERSION+set}" ; then
18553       setopt NO_GLOB_SUBST
18554     fi
18555
18556     cfgfile="${ofile}T"
18557     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18558     $RM "$cfgfile"
18559
18560     cat <<_LT_EOF >> "$cfgfile"
18561 #! $SHELL
18562
18563 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18564 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18565 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18566 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18567 #
18568 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18569 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18570 #                 Foundation, Inc.
18571 #   Written by Gordon Matzigkeit, 1996
18572 #
18573 #   This file is part of GNU Libtool.
18574 #
18575 # GNU Libtool is free software; you can redistribute it and/or
18576 # modify it under the terms of the GNU General Public License as
18577 # published by the Free Software Foundation; either version 2 of
18578 # the License, or (at your option) any later version.
18579 #
18580 # As a special exception to the GNU General Public License,
18581 # if you distribute this file as part of a program or library that
18582 # is built using GNU Libtool, you may include this file under the
18583 # same distribution terms that you use for the rest of that program.
18584 #
18585 # GNU Libtool is distributed in the hope that it will be useful,
18586 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18587 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18588 # GNU General Public License for more details.
18589 #
18590 # You should have received a copy of the GNU General Public License
18591 # along with GNU Libtool; see the file COPYING.  If not, a copy
18592 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18593 # obtained by writing to the Free Software Foundation, Inc.,
18594 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18595
18596
18597 # The names of the tagged configurations supported by this script.
18598 available_tags="CXX "
18599
18600 # ### BEGIN LIBTOOL CONFIG
18601
18602 # Which release of libtool.m4 was used?
18603 macro_version=$macro_version
18604 macro_revision=$macro_revision
18605
18606 # Assembler program.
18607 AS=$lt_AS
18608
18609 # DLL creation program.
18610 DLLTOOL=$lt_DLLTOOL
18611
18612 # Object dumper program.
18613 OBJDUMP=$lt_OBJDUMP
18614
18615 # Whether or not to build shared libraries.
18616 build_libtool_libs=$enable_shared
18617
18618 # Whether or not to build static libraries.
18619 build_old_libs=$enable_static
18620
18621 # What type of objects to build.
18622 pic_mode=$pic_mode
18623
18624 # Whether or not to optimize for fast installation.
18625 fast_install=$enable_fast_install
18626
18627 # Shell to use when invoking shell scripts.
18628 SHELL=$lt_SHELL
18629
18630 # An echo program that protects backslashes.
18631 ECHO=$lt_ECHO
18632
18633 # The PATH separator for the build system.
18634 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18635
18636 # The host system.
18637 host_alias=$host_alias
18638 host=$host
18639 host_os=$host_os
18640
18641 # The build system.
18642 build_alias=$build_alias
18643 build=$build
18644 build_os=$build_os
18645
18646 # A sed program that does not truncate output.
18647 SED=$lt_SED
18648
18649 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18650 Xsed="\$SED -e 1s/^X//"
18651
18652 # A grep program that handles long lines.
18653 GREP=$lt_GREP
18654
18655 # An ERE matcher.
18656 EGREP=$lt_EGREP
18657
18658 # A literal string matcher.
18659 FGREP=$lt_FGREP
18660
18661 # A BSD- or MS-compatible name lister.
18662 NM=$lt_NM
18663
18664 # Whether we need soft or hard links.
18665 LN_S=$lt_LN_S
18666
18667 # What is the maximum length of a command?
18668 max_cmd_len=$max_cmd_len
18669
18670 # Object file suffix (normally "o").
18671 objext=$ac_objext
18672
18673 # Executable file suffix (normally "").
18674 exeext=$exeext
18675
18676 # whether the shell understands "unset".
18677 lt_unset=$lt_unset
18678
18679 # turn spaces into newlines.
18680 SP2NL=$lt_lt_SP2NL
18681
18682 # turn newlines into spaces.
18683 NL2SP=$lt_lt_NL2SP
18684
18685 # convert \$build file names to \$host format.
18686 to_host_file_cmd=$lt_cv_to_host_file_cmd
18687
18688 # convert \$build files to toolchain format.
18689 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18690
18691 # Method to check whether dependent libraries are shared objects.
18692 deplibs_check_method=$lt_deplibs_check_method
18693
18694 # Command to use when deplibs_check_method = "file_magic".
18695 file_magic_cmd=$lt_file_magic_cmd
18696
18697 # How to find potential files when deplibs_check_method = "file_magic".
18698 file_magic_glob=$lt_file_magic_glob
18699
18700 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18701 want_nocaseglob=$lt_want_nocaseglob
18702
18703 # Command to associate shared and link libraries.
18704 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18705
18706 # The archiver.
18707 AR=$lt_AR
18708
18709 # Flags to create an archive.
18710 AR_FLAGS=$lt_AR_FLAGS
18711
18712 # How to feed a file listing to the archiver.
18713 archiver_list_spec=$lt_archiver_list_spec
18714
18715 # A symbol stripping program.
18716 STRIP=$lt_STRIP
18717
18718 # Commands used to install an old-style archive.
18719 RANLIB=$lt_RANLIB
18720 old_postinstall_cmds=$lt_old_postinstall_cmds
18721 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18722
18723 # Whether to use a lock for old archive extraction.
18724 lock_old_archive_extraction=$lock_old_archive_extraction
18725
18726 # A C compiler.
18727 LTCC=$lt_CC
18728
18729 # LTCC compiler flags.
18730 LTCFLAGS=$lt_CFLAGS
18731
18732 # Take the output of nm and produce a listing of raw symbols and C names.
18733 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18734
18735 # Transform the output of nm in a proper C declaration.
18736 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18737
18738 # Transform the output of nm in a C name address pair.
18739 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18740
18741 # Transform the output of nm in a C name address pair when lib prefix is needed.
18742 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18743
18744 # Specify filename containing input files for \$NM.
18745 nm_file_list_spec=$lt_nm_file_list_spec
18746
18747 # The root where to search for dependent libraries,and in which our libraries should be installed.
18748 lt_sysroot=$lt_sysroot
18749
18750 # The name of the directory that contains temporary libtool files.
18751 objdir=$objdir
18752
18753 # Used to examine libraries when file_magic_cmd begins with "file".
18754 MAGIC_CMD=$MAGIC_CMD
18755
18756 # Must we lock files when doing compilation?
18757 need_locks=$lt_need_locks
18758
18759 # Manifest tool.
18760 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18761
18762 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18763 DSYMUTIL=$lt_DSYMUTIL
18764
18765 # Tool to change global to local symbols on Mac OS X.
18766 NMEDIT=$lt_NMEDIT
18767
18768 # Tool to manipulate fat objects and archives on Mac OS X.
18769 LIPO=$lt_LIPO
18770
18771 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18772 OTOOL=$lt_OTOOL
18773
18774 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18775 OTOOL64=$lt_OTOOL64
18776
18777 # Old archive suffix (normally "a").
18778 libext=$libext
18779
18780 # Shared library suffix (normally ".so").
18781 shrext_cmds=$lt_shrext_cmds
18782
18783 # The commands to extract the exported symbol list from a shared archive.
18784 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18785
18786 # Variables whose values should be saved in libtool wrapper scripts and
18787 # restored at link time.
18788 variables_saved_for_relink=$lt_variables_saved_for_relink
18789
18790 # Do we need the "lib" prefix for modules?
18791 need_lib_prefix=$need_lib_prefix
18792
18793 # Do we need a version for libraries?
18794 need_version=$need_version
18795
18796 # Library versioning type.
18797 version_type=$version_type
18798
18799 # Shared library runtime path variable.
18800 runpath_var=$runpath_var
18801
18802 # Shared library path variable.
18803 shlibpath_var=$shlibpath_var
18804
18805 # Is shlibpath searched before the hard-coded library search path?
18806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18807
18808 # Format of library name prefix.
18809 libname_spec=$lt_libname_spec
18810
18811 # List of archive names.  First name is the real one, the rest are links.
18812 # The last name is the one that the linker finds with -lNAME
18813 library_names_spec=$lt_library_names_spec
18814
18815 # The coded name of the library, if different from the real name.
18816 soname_spec=$lt_soname_spec
18817
18818 # Permission mode override for installation of shared libraries.
18819 install_override_mode=$lt_install_override_mode
18820
18821 # Command to use after installation of a shared archive.
18822 postinstall_cmds=$lt_postinstall_cmds
18823
18824 # Command to use after uninstallation of a shared archive.
18825 postuninstall_cmds=$lt_postuninstall_cmds
18826
18827 # Commands used to finish a libtool library installation in a directory.
18828 finish_cmds=$lt_finish_cmds
18829
18830 # As "finish_cmds", except a single script fragment to be evaled but
18831 # not shown.
18832 finish_eval=$lt_finish_eval
18833
18834 # Whether we should hardcode library paths into libraries.
18835 hardcode_into_libs=$hardcode_into_libs
18836
18837 # Compile-time system search path for libraries.
18838 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18839
18840 # Run-time system search path for libraries.
18841 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18842
18843 # Whether dlopen is supported.
18844 dlopen_support=$enable_dlopen
18845
18846 # Whether dlopen of programs is supported.
18847 dlopen_self=$enable_dlopen_self
18848
18849 # Whether dlopen of statically linked programs is supported.
18850 dlopen_self_static=$enable_dlopen_self_static
18851
18852 # Commands to strip libraries.
18853 old_striplib=$lt_old_striplib
18854 striplib=$lt_striplib
18855
18856
18857 # The linker used to build libraries.
18858 LD=$lt_LD
18859
18860 # How to create reloadable object files.
18861 reload_flag=$lt_reload_flag
18862 reload_cmds=$lt_reload_cmds
18863
18864 # Commands used to build an old-style archive.
18865 old_archive_cmds=$lt_old_archive_cmds
18866
18867 # A language specific compiler.
18868 CC=$lt_compiler
18869
18870 # Is the compiler the GNU compiler?
18871 with_gcc=$GCC
18872
18873 # Compiler flag to turn off builtin functions.
18874 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18875
18876 # Additional compiler flags for building library objects.
18877 pic_flag=$lt_lt_prog_compiler_pic
18878
18879 # How to pass a linker flag through the compiler.
18880 wl=$lt_lt_prog_compiler_wl
18881
18882 # Compiler flag to prevent dynamic linking.
18883 link_static_flag=$lt_lt_prog_compiler_static
18884
18885 # Does compiler simultaneously support -c and -o options?
18886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18887
18888 # Whether or not to add -lc for building shared libraries.
18889 build_libtool_need_lc=$archive_cmds_need_lc
18890
18891 # Whether or not to disallow shared libs when runtime libs are static.
18892 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18893
18894 # Compiler flag to allow reflexive dlopens.
18895 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18896
18897 # Compiler flag to generate shared objects directly from archives.
18898 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18899
18900 # Whether the compiler copes with passing no objects directly.
18901 compiler_needs_object=$lt_compiler_needs_object
18902
18903 # Create an old-style archive from a shared archive.
18904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18905
18906 # Create a temporary old-style archive to link instead of a shared archive.
18907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18908
18909 # Commands used to build a shared archive.
18910 archive_cmds=$lt_archive_cmds
18911 archive_expsym_cmds=$lt_archive_expsym_cmds
18912
18913 # Commands used to build a loadable module if different from building
18914 # a shared archive.
18915 module_cmds=$lt_module_cmds
18916 module_expsym_cmds=$lt_module_expsym_cmds
18917
18918 # Whether we are building with GNU ld or not.
18919 with_gnu_ld=$lt_with_gnu_ld
18920
18921 # Flag that allows shared libraries with undefined symbols to be built.
18922 allow_undefined_flag=$lt_allow_undefined_flag
18923
18924 # Flag that enforces no undefined symbols.
18925 no_undefined_flag=$lt_no_undefined_flag
18926
18927 # Flag to hardcode \$libdir into a binary during linking.
18928 # This must work even if \$libdir does not exist
18929 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18930
18931 # Whether we need a single "-rpath" flag with a separated argument.
18932 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18933
18934 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18935 # DIR into the resulting binary.
18936 hardcode_direct=$hardcode_direct
18937
18938 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18939 # DIR into the resulting binary and the resulting library dependency is
18940 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18941 # library is relocated.
18942 hardcode_direct_absolute=$hardcode_direct_absolute
18943
18944 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18945 # into the resulting binary.
18946 hardcode_minus_L=$hardcode_minus_L
18947
18948 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18949 # into the resulting binary.
18950 hardcode_shlibpath_var=$hardcode_shlibpath_var
18951
18952 # Set to "yes" if building a shared library automatically hardcodes DIR
18953 # into the library and all subsequent libraries and executables linked
18954 # against it.
18955 hardcode_automatic=$hardcode_automatic
18956
18957 # Set to yes if linker adds runtime paths of dependent libraries
18958 # to runtime path list.
18959 inherit_rpath=$inherit_rpath
18960
18961 # Whether libtool must link a program against all its dependency libraries.
18962 link_all_deplibs=$link_all_deplibs
18963
18964 # Set to "yes" if exported symbols are required.
18965 always_export_symbols=$always_export_symbols
18966
18967 # The commands to list exported symbols.
18968 export_symbols_cmds=$lt_export_symbols_cmds
18969
18970 # Symbols that should not be listed in the preloaded symbols.
18971 exclude_expsyms=$lt_exclude_expsyms
18972
18973 # Symbols that must always be exported.
18974 include_expsyms=$lt_include_expsyms
18975
18976 # Commands necessary for linking programs (against libraries) with templates.
18977 prelink_cmds=$lt_prelink_cmds
18978
18979 # Commands necessary for finishing linking programs.
18980 postlink_cmds=$lt_postlink_cmds
18981
18982 # Specify filename containing input files.
18983 file_list_spec=$lt_file_list_spec
18984
18985 # How to hardcode a shared library path into an executable.
18986 hardcode_action=$hardcode_action
18987
18988 # The directories searched by this compiler when creating a shared library.
18989 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18990
18991 # Dependencies to place before and after the objects being linked to
18992 # create a shared library.
18993 predep_objects=$lt_predep_objects
18994 postdep_objects=$lt_postdep_objects
18995 predeps=$lt_predeps
18996 postdeps=$lt_postdeps
18997
18998 # The library search path used internally by the compiler when linking
18999 # a shared library.
19000 compiler_lib_search_path=$lt_compiler_lib_search_path
19001
19002 # ### END LIBTOOL CONFIG
19003
19004 _LT_EOF
19005
19006   case $host_os in
19007   aix3*)
19008     cat <<\_LT_EOF >> "$cfgfile"
19009 # AIX sometimes has problems with the GCC collect2 program.  For some
19010 # reason, if we set the COLLECT_NAMES environment variable, the problems
19011 # vanish in a puff of smoke.
19012 if test "X${COLLECT_NAMES+set}" != Xset; then
19013   COLLECT_NAMES=
19014   export COLLECT_NAMES
19015 fi
19016 _LT_EOF
19017     ;;
19018   esac
19019
19020
19021 ltmain="$ac_aux_dir/ltmain.sh"
19022
19023
19024   # We use sed instead of cat because bash on DJGPP gets confused if
19025   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19026   # text mode, it properly converts lines to CR/LF.  This bash problem
19027   # is reportedly fixed, but why not run on old versions too?
19028   sed '$q' "$ltmain" >> "$cfgfile" \
19029      || (rm -f "$cfgfile"; exit 1)
19030
19031   if test x"$xsi_shell" = xyes; then
19032   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19033 func_dirname ()\
19034 {\
19035 \    case ${1} in\
19036 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19037 \      *  ) func_dirname_result="${3}" ;;\
19038 \    esac\
19039 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19040   && mv -f "$cfgfile.tmp" "$cfgfile" \
19041     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19042 test 0 -eq $? || _lt_function_replace_fail=:
19043
19044
19045   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19046 func_basename ()\
19047 {\
19048 \    func_basename_result="${1##*/}"\
19049 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19050   && mv -f "$cfgfile.tmp" "$cfgfile" \
19051     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19052 test 0 -eq $? || _lt_function_replace_fail=:
19053
19054
19055   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19056 func_dirname_and_basename ()\
19057 {\
19058 \    case ${1} in\
19059 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19060 \      *  ) func_dirname_result="${3}" ;;\
19061 \    esac\
19062 \    func_basename_result="${1##*/}"\
19063 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19064   && mv -f "$cfgfile.tmp" "$cfgfile" \
19065     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19066 test 0 -eq $? || _lt_function_replace_fail=:
19067
19068
19069   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19070 func_stripname ()\
19071 {\
19072 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19073 \    # positional parameters, so assign one to ordinary parameter first.\
19074 \    func_stripname_result=${3}\
19075 \    func_stripname_result=${func_stripname_result#"${1}"}\
19076 \    func_stripname_result=${func_stripname_result%"${2}"}\
19077 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19078   && mv -f "$cfgfile.tmp" "$cfgfile" \
19079     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19080 test 0 -eq $? || _lt_function_replace_fail=:
19081
19082
19083   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19084 func_split_long_opt ()\
19085 {\
19086 \    func_split_long_opt_name=${1%%=*}\
19087 \    func_split_long_opt_arg=${1#*=}\
19088 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19089   && mv -f "$cfgfile.tmp" "$cfgfile" \
19090     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19091 test 0 -eq $? || _lt_function_replace_fail=:
19092
19093
19094   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19095 func_split_short_opt ()\
19096 {\
19097 \    func_split_short_opt_arg=${1#??}\
19098 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19099 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19100   && mv -f "$cfgfile.tmp" "$cfgfile" \
19101     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19102 test 0 -eq $? || _lt_function_replace_fail=:
19103
19104
19105   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19106 func_lo2o ()\
19107 {\
19108 \    case ${1} in\
19109 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19110 \      *)    func_lo2o_result=${1} ;;\
19111 \    esac\
19112 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19113   && mv -f "$cfgfile.tmp" "$cfgfile" \
19114     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19115 test 0 -eq $? || _lt_function_replace_fail=:
19116
19117
19118   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19119 func_xform ()\
19120 {\
19121     func_xform_result=${1%.*}.lo\
19122 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19123   && mv -f "$cfgfile.tmp" "$cfgfile" \
19124     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19125 test 0 -eq $? || _lt_function_replace_fail=:
19126
19127
19128   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19129 func_arith ()\
19130 {\
19131     func_arith_result=$(( $* ))\
19132 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19133   && mv -f "$cfgfile.tmp" "$cfgfile" \
19134     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19135 test 0 -eq $? || _lt_function_replace_fail=:
19136
19137
19138   sed -e '/^func_len ()$/,/^} # func_len /c\
19139 func_len ()\
19140 {\
19141     func_len_result=${#1}\
19142 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19143   && mv -f "$cfgfile.tmp" "$cfgfile" \
19144     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19145 test 0 -eq $? || _lt_function_replace_fail=:
19146
19147 fi
19148
19149 if test x"$lt_shell_append" = xyes; then
19150   sed -e '/^func_append ()$/,/^} # func_append /c\
19151 func_append ()\
19152 {\
19153     eval "${1}+=\\${2}"\
19154 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19155   && mv -f "$cfgfile.tmp" "$cfgfile" \
19156     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19157 test 0 -eq $? || _lt_function_replace_fail=:
19158
19159
19160   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19161 func_append_quoted ()\
19162 {\
19163 \    func_quote_for_eval "${2}"\
19164 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19165 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19166   && mv -f "$cfgfile.tmp" "$cfgfile" \
19167     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19168 test 0 -eq $? || _lt_function_replace_fail=:
19169
19170
19171   # Save a `func_append' function call where possible by direct use of '+='
19172   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19173     && mv -f "$cfgfile.tmp" "$cfgfile" \
19174       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19175   test 0 -eq $? || _lt_function_replace_fail=:
19176 else
19177   # Save a `func_append' function call even when '+=' is not available
19178   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19179     && mv -f "$cfgfile.tmp" "$cfgfile" \
19180       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19181   test 0 -eq $? || _lt_function_replace_fail=:
19182 fi
19183
19184 if test x"$_lt_function_replace_fail" = x":"; then
19185   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19186 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19187 fi
19188
19189
19190    mv -f "$cfgfile" "$ofile" ||
19191     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19192   chmod +x "$ofile"
19193
19194
19195     cat <<_LT_EOF >> "$ofile"
19196
19197 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19198
19199 # The linker used to build libraries.
19200 LD=$lt_LD_CXX
19201
19202 # How to create reloadable object files.
19203 reload_flag=$lt_reload_flag_CXX
19204 reload_cmds=$lt_reload_cmds_CXX
19205
19206 # Commands used to build an old-style archive.
19207 old_archive_cmds=$lt_old_archive_cmds_CXX
19208
19209 # A language specific compiler.
19210 CC=$lt_compiler_CXX
19211
19212 # Is the compiler the GNU compiler?
19213 with_gcc=$GCC_CXX
19214
19215 # Compiler flag to turn off builtin functions.
19216 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19217
19218 # Additional compiler flags for building library objects.
19219 pic_flag=$lt_lt_prog_compiler_pic_CXX
19220
19221 # How to pass a linker flag through the compiler.
19222 wl=$lt_lt_prog_compiler_wl_CXX
19223
19224 # Compiler flag to prevent dynamic linking.
19225 link_static_flag=$lt_lt_prog_compiler_static_CXX
19226
19227 # Does compiler simultaneously support -c and -o options?
19228 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19229
19230 # Whether or not to add -lc for building shared libraries.
19231 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19232
19233 # Whether or not to disallow shared libs when runtime libs are static.
19234 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19235
19236 # Compiler flag to allow reflexive dlopens.
19237 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19238
19239 # Compiler flag to generate shared objects directly from archives.
19240 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19241
19242 # Whether the compiler copes with passing no objects directly.
19243 compiler_needs_object=$lt_compiler_needs_object_CXX
19244
19245 # Create an old-style archive from a shared archive.
19246 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19247
19248 # Create a temporary old-style archive to link instead of a shared archive.
19249 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19250
19251 # Commands used to build a shared archive.
19252 archive_cmds=$lt_archive_cmds_CXX
19253 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19254
19255 # Commands used to build a loadable module if different from building
19256 # a shared archive.
19257 module_cmds=$lt_module_cmds_CXX
19258 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19259
19260 # Whether we are building with GNU ld or not.
19261 with_gnu_ld=$lt_with_gnu_ld_CXX
19262
19263 # Flag that allows shared libraries with undefined symbols to be built.
19264 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19265
19266 # Flag that enforces no undefined symbols.
19267 no_undefined_flag=$lt_no_undefined_flag_CXX
19268
19269 # Flag to hardcode \$libdir into a binary during linking.
19270 # This must work even if \$libdir does not exist
19271 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19272
19273 # Whether we need a single "-rpath" flag with a separated argument.
19274 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19275
19276 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19277 # DIR into the resulting binary.
19278 hardcode_direct=$hardcode_direct_CXX
19279
19280 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19281 # DIR into the resulting binary and the resulting library dependency is
19282 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19283 # library is relocated.
19284 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19285
19286 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19287 # into the resulting binary.
19288 hardcode_minus_L=$hardcode_minus_L_CXX
19289
19290 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19291 # into the resulting binary.
19292 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19293
19294 # Set to "yes" if building a shared library automatically hardcodes DIR
19295 # into the library and all subsequent libraries and executables linked
19296 # against it.
19297 hardcode_automatic=$hardcode_automatic_CXX
19298
19299 # Set to yes if linker adds runtime paths of dependent libraries
19300 # to runtime path list.
19301 inherit_rpath=$inherit_rpath_CXX
19302
19303 # Whether libtool must link a program against all its dependency libraries.
19304 link_all_deplibs=$link_all_deplibs_CXX
19305
19306 # Set to "yes" if exported symbols are required.
19307 always_export_symbols=$always_export_symbols_CXX
19308
19309 # The commands to list exported symbols.
19310 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19311
19312 # Symbols that should not be listed in the preloaded symbols.
19313 exclude_expsyms=$lt_exclude_expsyms_CXX
19314
19315 # Symbols that must always be exported.
19316 include_expsyms=$lt_include_expsyms_CXX
19317
19318 # Commands necessary for linking programs (against libraries) with templates.
19319 prelink_cmds=$lt_prelink_cmds_CXX
19320
19321 # Commands necessary for finishing linking programs.
19322 postlink_cmds=$lt_postlink_cmds_CXX
19323
19324 # Specify filename containing input files.
19325 file_list_spec=$lt_file_list_spec_CXX
19326
19327 # How to hardcode a shared library path into an executable.
19328 hardcode_action=$hardcode_action_CXX
19329
19330 # The directories searched by this compiler when creating a shared library.
19331 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19332
19333 # Dependencies to place before and after the objects being linked to
19334 # create a shared library.
19335 predep_objects=$lt_predep_objects_CXX
19336 postdep_objects=$lt_postdep_objects_CXX
19337 predeps=$lt_predeps_CXX
19338 postdeps=$lt_postdeps_CXX
19339
19340 # The library search path used internally by the compiler when linking
19341 # a shared library.
19342 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19343
19344 # ### END LIBTOOL TAG CONFIG: CXX
19345 _LT_EOF
19346
19347  ;;
19348
19349   esac
19350 done # for ac_tag
19351
19352
19353 as_fn_exit 0
19354 _ACEOF
19355 ac_clean_files=$ac_clean_files_save
19356
19357 test $ac_write_fail = 0 ||
19358   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19359
19360
19361 # configure is writing to config.log, and then calls config.status.
19362 # config.status does its own redirection, appending to config.log.
19363 # Unfortunately, on DOS this fails, as config.log is still kept open
19364 # by configure, so config.status won't be able to write to it; its
19365 # output is simply discarded.  So we exec the FD to /dev/null,
19366 # effectively closing config.log, so it can be properly (re)opened and
19367 # appended to by config.status.  When coming back to configure, we
19368 # need to make the FD available again.
19369 if test "$no_create" != yes; then
19370   ac_cs_success=:
19371   ac_config_status_args=
19372   test "$silent" = yes &&
19373     ac_config_status_args="$ac_config_status_args --quiet"
19374   exec 5>/dev/null
19375   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19376   exec 5>>config.log
19377   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19378   # would make configure fail if this is the last instruction.
19379   $ac_cs_success || as_fn_exit 1
19380 fi
19381 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19382   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19383 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19384 fi
19385
19386
19387 chmod oug+x rtaudio-config