Fix typo in previous.
[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 # Enable some nice automake features if they are available
4064
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4066 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4067     # Check whether --enable-maintainer-mode was given.
4068 if test "${enable_maintainer_mode+set}" = set; then :
4069   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4070 else
4071   USE_MAINTAINER_MODE=no
4072 fi
4073
4074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4075 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4076    if test $USE_MAINTAINER_MODE = yes; then
4077   MAINTAINER_MODE_TRUE=
4078   MAINTAINER_MODE_FALSE='#'
4079 else
4080   MAINTAINER_MODE_TRUE='#'
4081   MAINTAINER_MODE_FALSE=
4082 fi
4083
4084   MAINT=$MAINTAINER_MODE_TRUE
4085
4086
4087 # Check whether --enable-silent-rules was given.
4088 if test "${enable_silent_rules+set}" = set; then :
4089   enableval=$enable_silent_rules;
4090 fi
4091
4092 case $enable_silent_rules in # (((
4093   yes) AM_DEFAULT_VERBOSITY=0;;
4094    no) AM_DEFAULT_VERBOSITY=1;;
4095     *) AM_DEFAULT_VERBOSITY=0;;
4096 esac
4097 am_make=${MAKE-make}
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4099 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4100 if ${am_cv_make_support_nested_variables+:} false; then :
4101   $as_echo_n "(cached) " >&6
4102 else
4103   if $as_echo 'TRUE=$(BAR$(V))
4104 BAR0=false
4105 BAR1=true
4106 V=1
4107 am__doit:
4108         @$(TRUE)
4109 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4110   am_cv_make_support_nested_variables=yes
4111 else
4112   am_cv_make_support_nested_variables=no
4113 fi
4114 fi
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4116 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4117 if test $am_cv_make_support_nested_variables = yes; then
4118     AM_V='$(V)'
4119   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4120 else
4121   AM_V=$AM_DEFAULT_VERBOSITY
4122   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4123 fi
4124 AM_BACKSLASH='\'
4125
4126
4127 # Fill GXX with something before test.
4128 GXX="no"
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4141         if test -n "$ac_tool_prefix"; then
4142   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4143 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145 $as_echo_n "checking for $ac_word... " >&6; }
4146 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4147   $as_echo_n "(cached) " >&6
4148 else
4149   case $PKG_CONFIG in
4150   [\\/]* | ?:[\\/]*)
4151   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4152   ;;
4153   *)
4154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4156 do
4157   IFS=$as_save_IFS
4158   test -z "$as_dir" && as_dir=.
4159     for ac_exec_ext in '' $ac_executable_extensions; do
4160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4163     break 2
4164   fi
4165 done
4166   done
4167 IFS=$as_save_IFS
4168
4169   ;;
4170 esac
4171 fi
4172 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4173 if test -n "$PKG_CONFIG"; then
4174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4175 $as_echo "$PKG_CONFIG" >&6; }
4176 else
4177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178 $as_echo "no" >&6; }
4179 fi
4180
4181
4182 fi
4183 if test -z "$ac_cv_path_PKG_CONFIG"; then
4184   ac_pt_PKG_CONFIG=$PKG_CONFIG
4185   # Extract the first word of "pkg-config", so it can be a program name with args.
4186 set dummy pkg-config; ac_word=$2
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188 $as_echo_n "checking for $ac_word... " >&6; }
4189 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4190   $as_echo_n "(cached) " >&6
4191 else
4192   case $ac_pt_PKG_CONFIG in
4193   [\\/]* | ?:[\\/]*)
4194   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4195   ;;
4196   *)
4197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200   IFS=$as_save_IFS
4201   test -z "$as_dir" && as_dir=.
4202     for ac_exec_ext in '' $ac_executable_extensions; do
4203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206     break 2
4207   fi
4208 done
4209   done
4210 IFS=$as_save_IFS
4211
4212   ;;
4213 esac
4214 fi
4215 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4216 if test -n "$ac_pt_PKG_CONFIG"; then
4217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4218 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4219 else
4220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4222 fi
4223
4224   if test "x$ac_pt_PKG_CONFIG" = x; then
4225     PKG_CONFIG=""
4226   else
4227     case $cross_compiling:$ac_tool_warned in
4228 yes:)
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4231 ac_tool_warned=yes ;;
4232 esac
4233     PKG_CONFIG=$ac_pt_PKG_CONFIG
4234   fi
4235 else
4236   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4237 fi
4238
4239 fi
4240 if test -n "$PKG_CONFIG"; then
4241         _pkg_min_version=0.9.0
4242         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4243 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4244         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4245                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4246 $as_echo "yes" >&6; }
4247         else
4248                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4250                 PKG_CONFIG=""
4251         fi
4252 fi
4253
4254
4255
4256 # Check for debug
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile debug version" >&5
4258 $as_echo_n "checking whether to compile debug version... " >&6; }
4259 # Check whether --enable-debug was given.
4260 if test "${enable_debug+set}" = set; then :
4261   enableval=$enable_debug; : ${CXXFLAGS="-g -O0"}; $as_echo "#define __RTAUDIO_DEBUG__ 1" >>confdefs.h
4262
4263 else
4264   : ${CXXFLAGS="-O3"}
4265 fi
4266
4267
4268 # Checks for programs.
4269 ac_ext=cpp
4270 ac_cpp='$CXXCPP $CPPFLAGS'
4271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4274 if test -z "$CXX"; then
4275   if test -n "$CCC"; then
4276     CXX=$CCC
4277   else
4278     if test -n "$ac_tool_prefix"; then
4279   for ac_prog in g++ CC c++ cxx
4280   do
4281     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if ${ac_cv_prog_CXX+:} false; then :
4286   $as_echo_n "(cached) " >&6
4287 else
4288   if test -n "$CXX"; then
4289   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4290 else
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4293 do
4294   IFS=$as_save_IFS
4295   test -z "$as_dir" && as_dir=.
4296     for ac_exec_ext in '' $ac_executable_extensions; do
4297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4300     break 2
4301   fi
4302 done
4303   done
4304 IFS=$as_save_IFS
4305
4306 fi
4307 fi
4308 CXX=$ac_cv_prog_CXX
4309 if test -n "$CXX"; then
4310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4311 $as_echo "$CXX" >&6; }
4312 else
4313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4315 fi
4316
4317
4318     test -n "$CXX" && break
4319   done
4320 fi
4321 if test -z "$CXX"; then
4322   ac_ct_CXX=$CXX
4323   for ac_prog in g++ CC c++ cxx
4324 do
4325   # Extract the first word of "$ac_prog", so it can be a program name with args.
4326 set dummy $ac_prog; ac_word=$2
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328 $as_echo_n "checking for $ac_word... " >&6; }
4329 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4330   $as_echo_n "(cached) " >&6
4331 else
4332   if test -n "$ac_ct_CXX"; then
4333   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4334 else
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4337 do
4338   IFS=$as_save_IFS
4339   test -z "$as_dir" && as_dir=.
4340     for ac_exec_ext in '' $ac_executable_extensions; do
4341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342     ac_cv_prog_ac_ct_CXX="$ac_prog"
4343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344     break 2
4345   fi
4346 done
4347   done
4348 IFS=$as_save_IFS
4349
4350 fi
4351 fi
4352 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4353 if test -n "$ac_ct_CXX"; then
4354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4355 $as_echo "$ac_ct_CXX" >&6; }
4356 else
4357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4359 fi
4360
4361
4362   test -n "$ac_ct_CXX" && break
4363 done
4364
4365   if test "x$ac_ct_CXX" = x; then
4366     CXX="g++"
4367   else
4368     case $cross_compiling:$ac_tool_warned in
4369 yes:)
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4372 ac_tool_warned=yes ;;
4373 esac
4374     CXX=$ac_ct_CXX
4375   fi
4376 fi
4377
4378   fi
4379 fi
4380 # Provide some information about the compiler.
4381 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4382 set X $ac_compile
4383 ac_compiler=$2
4384 for ac_option in --version -v -V -qversion; do
4385   { { ac_try="$ac_compiler $ac_option >&5"
4386 case "(($ac_try" in
4387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388   *) ac_try_echo=$ac_try;;
4389 esac
4390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4391 $as_echo "$ac_try_echo"; } >&5
4392   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4393   ac_status=$?
4394   if test -s conftest.err; then
4395     sed '10a\
4396 ... rest of stderr output deleted ...
4397          10q' conftest.err >conftest.er1
4398     cat conftest.er1 >&5
4399   fi
4400   rm -f conftest.er1 conftest.err
4401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402   test $ac_status = 0; }
4403 done
4404
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4406 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4407 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4408   $as_echo_n "(cached) " >&6
4409 else
4410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h.  */
4412
4413 int
4414 main ()
4415 {
4416 #ifndef __GNUC__
4417        choke me
4418 #endif
4419
4420   ;
4421   return 0;
4422 }
4423 _ACEOF
4424 if ac_fn_cxx_try_compile "$LINENO"; then :
4425   ac_compiler_gnu=yes
4426 else
4427   ac_compiler_gnu=no
4428 fi
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4431
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4434 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4435 if test $ac_compiler_gnu = yes; then
4436   GXX=yes
4437 else
4438   GXX=
4439 fi
4440 ac_test_CXXFLAGS=${CXXFLAGS+set}
4441 ac_save_CXXFLAGS=$CXXFLAGS
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4443 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4444 if ${ac_cv_prog_cxx_g+:} false; then :
4445   $as_echo_n "(cached) " >&6
4446 else
4447   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4448    ac_cxx_werror_flag=yes
4449    ac_cv_prog_cxx_g=no
4450    CXXFLAGS="-g"
4451    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h.  */
4453
4454 int
4455 main ()
4456 {
4457
4458   ;
4459   return 0;
4460 }
4461 _ACEOF
4462 if ac_fn_cxx_try_compile "$LINENO"; then :
4463   ac_cv_prog_cxx_g=yes
4464 else
4465   CXXFLAGS=""
4466       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h.  */
4468
4469 int
4470 main ()
4471 {
4472
4473   ;
4474   return 0;
4475 }
4476 _ACEOF
4477 if ac_fn_cxx_try_compile "$LINENO"; then :
4478
4479 else
4480   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4481          CXXFLAGS="-g"
4482          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h.  */
4484
4485 int
4486 main ()
4487 {
4488
4489   ;
4490   return 0;
4491 }
4492 _ACEOF
4493 if ac_fn_cxx_try_compile "$LINENO"; then :
4494   ac_cv_prog_cxx_g=yes
4495 fi
4496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497 fi
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 fi
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4502 fi
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4504 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4505 if test "$ac_test_CXXFLAGS" = set; then
4506   CXXFLAGS=$ac_save_CXXFLAGS
4507 elif test $ac_cv_prog_cxx_g = yes; then
4508   if test "$GXX" = yes; then
4509     CXXFLAGS="-g -O2"
4510   else
4511     CXXFLAGS="-g"
4512   fi
4513 else
4514   if test "$GXX" = yes; then
4515     CXXFLAGS="-O2"
4516   else
4517     CXXFLAGS=
4518   fi
4519 fi
4520 ac_ext=c
4521 ac_cpp='$CPP $CPPFLAGS'
4522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4525
4526 depcc="$CXX"  am_compiler_list=
4527
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4529 $as_echo_n "checking dependency style of $depcc... " >&6; }
4530 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4531   $as_echo_n "(cached) " >&6
4532 else
4533   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4534   # We make a subdir and do the tests there.  Otherwise we can end up
4535   # making bogus files that we don't know about and never remove.  For
4536   # instance it was reported that on HP-UX the gcc test will end up
4537   # making a dummy file named 'D' -- because '-MD' means "put the output
4538   # in D".
4539   rm -rf conftest.dir
4540   mkdir conftest.dir
4541   # Copy depcomp to subdir because otherwise we won't find it if we're
4542   # using a relative directory.
4543   cp "$am_depcomp" conftest.dir
4544   cd conftest.dir
4545   # We will build objects and dependencies in a subdirectory because
4546   # it helps to detect inapplicable dependency modes.  For instance
4547   # both Tru64's cc and ICC support -MD to output dependencies as a
4548   # side effect of compilation, but ICC will put the dependencies in
4549   # the current directory while Tru64 will put them in the object
4550   # directory.
4551   mkdir sub
4552
4553   am_cv_CXX_dependencies_compiler_type=none
4554   if test "$am_compiler_list" = ""; then
4555      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4556   fi
4557   am__universal=false
4558   case " $depcc " in #(
4559      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4560      esac
4561
4562   for depmode in $am_compiler_list; do
4563     # Setup a source with many dependencies, because some compilers
4564     # like to wrap large dependency lists on column 80 (with \), and
4565     # we should not choose a depcomp mode which is confused by this.
4566     #
4567     # We need to recreate these files for each test, as the compiler may
4568     # overwrite some of them when testing with obscure command lines.
4569     # This happens at least with the AIX C compiler.
4570     : > sub/conftest.c
4571     for i in 1 2 3 4 5 6; do
4572       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4573       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4574       # Solaris 10 /bin/sh.
4575       echo '/* dummy */' > sub/conftst$i.h
4576     done
4577     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4578
4579     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4580     # mode.  It turns out that the SunPro C++ compiler does not properly
4581     # handle '-M -o', and we need to detect this.  Also, some Intel
4582     # versions had trouble with output in subdirs.
4583     am__obj=sub/conftest.${OBJEXT-o}
4584     am__minus_obj="-o $am__obj"
4585     case $depmode in
4586     gcc)
4587       # This depmode causes a compiler race in universal mode.
4588       test "$am__universal" = false || continue
4589       ;;
4590     nosideeffect)
4591       # After this tag, mechanisms are not by side-effect, so they'll
4592       # only be used when explicitly requested.
4593       if test "x$enable_dependency_tracking" = xyes; then
4594         continue
4595       else
4596         break
4597       fi
4598       ;;
4599     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4600       # This compiler won't grok '-c -o', but also, the minuso test has
4601       # not run yet.  These depmodes are late enough in the game, and
4602       # so weak that their functioning should not be impacted.
4603       am__obj=conftest.${OBJEXT-o}
4604       am__minus_obj=
4605       ;;
4606     none) break ;;
4607     esac
4608     if depmode=$depmode \
4609        source=sub/conftest.c object=$am__obj \
4610        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4611        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4612          >/dev/null 2>conftest.err &&
4613        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4614        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4615        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4616        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4617       # icc doesn't choke on unknown options, it will just issue warnings
4618       # or remarks (even with -Werror).  So we grep stderr for any message
4619       # that says an option was ignored or not supported.
4620       # When given -MP, icc 7.0 and 7.1 complain thusly:
4621       #   icc: Command line warning: ignoring option '-M'; no argument required
4622       # The diagnosis changed in icc 8.0:
4623       #   icc: Command line remark: option '-MP' not supported
4624       if (grep 'ignoring option' conftest.err ||
4625           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4626         am_cv_CXX_dependencies_compiler_type=$depmode
4627         break
4628       fi
4629     fi
4630   done
4631
4632   cd ..
4633   rm -rf conftest.dir
4634 else
4635   am_cv_CXX_dependencies_compiler_type=none
4636 fi
4637
4638 fi
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4640 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4641 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4642
4643  if
4644   test "x$enable_dependency_tracking" != xno \
4645   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4646   am__fastdepCXX_TRUE=
4647   am__fastdepCXX_FALSE='#'
4648 else
4649   am__fastdepCXX_TRUE='#'
4650   am__fastdepCXX_FALSE=
4651 fi
4652
4653
4654 if test -n "$ac_tool_prefix"; then
4655   for ac_prog in ar lib "link -lib"
4656   do
4657     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if ${ac_cv_prog_AR+:} false; then :
4662   $as_echo_n "(cached) " >&6
4663 else
4664   if test -n "$AR"; then
4665   ac_cv_prog_AR="$AR" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670   IFS=$as_save_IFS
4671   test -z "$as_dir" && as_dir=.
4672     for ac_exec_ext in '' $ac_executable_extensions; do
4673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4674     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676     break 2
4677   fi
4678 done
4679   done
4680 IFS=$as_save_IFS
4681
4682 fi
4683 fi
4684 AR=$ac_cv_prog_AR
4685 if test -n "$AR"; then
4686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4687 $as_echo "$AR" >&6; }
4688 else
4689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4691 fi
4692
4693
4694     test -n "$AR" && break
4695   done
4696 fi
4697 if test -z "$AR"; then
4698   ac_ct_AR=$AR
4699   for ac_prog in ar lib "link -lib"
4700 do
4701   # Extract the first word of "$ac_prog", so it can be a program name with args.
4702 set dummy $ac_prog; ac_word=$2
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4704 $as_echo_n "checking for $ac_word... " >&6; }
4705 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4706   $as_echo_n "(cached) " >&6
4707 else
4708   if test -n "$ac_ct_AR"; then
4709   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714   IFS=$as_save_IFS
4715   test -z "$as_dir" && as_dir=.
4716     for ac_exec_ext in '' $ac_executable_extensions; do
4717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4718     ac_cv_prog_ac_ct_AR="$ac_prog"
4719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720     break 2
4721   fi
4722 done
4723   done
4724 IFS=$as_save_IFS
4725
4726 fi
4727 fi
4728 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4729 if test -n "$ac_ct_AR"; then
4730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4731 $as_echo "$ac_ct_AR" >&6; }
4732 else
4733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734 $as_echo "no" >&6; }
4735 fi
4736
4737
4738   test -n "$ac_ct_AR" && break
4739 done
4740
4741   if test "x$ac_ct_AR" = x; then
4742     AR="false"
4743   else
4744     case $cross_compiling:$ac_tool_warned in
4745 yes:)
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4748 ac_tool_warned=yes ;;
4749 esac
4750     AR=$ac_ct_AR
4751   fi
4752 fi
4753
4754 : ${AR=ar}
4755
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4757 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4758 if ${am_cv_ar_interface+:} false; then :
4759   $as_echo_n "(cached) " >&6
4760 else
4761   ac_ext=c
4762 ac_cpp='$CPP $CPPFLAGS'
4763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4766
4767    am_cv_ar_interface=ar
4768    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h.  */
4770 int some_variable = 0;
4771 _ACEOF
4772 if ac_fn_c_try_compile "$LINENO"; then :
4773   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4774       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4775   (eval $am_ar_try) 2>&5
4776   ac_status=$?
4777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4778   test $ac_status = 0; }
4779       if test "$ac_status" -eq 0; then
4780         am_cv_ar_interface=ar
4781       else
4782         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4783         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4784   (eval $am_ar_try) 2>&5
4785   ac_status=$?
4786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4787   test $ac_status = 0; }
4788         if test "$ac_status" -eq 0; then
4789           am_cv_ar_interface=lib
4790         else
4791           am_cv_ar_interface=unknown
4792         fi
4793       fi
4794       rm -f conftest.lib libconftest.a
4795
4796 fi
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798    ac_ext=c
4799 ac_cpp='$CPP $CPPFLAGS'
4800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4803
4804 fi
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4806 $as_echo "$am_cv_ar_interface" >&6; }
4807
4808 case $am_cv_ar_interface in
4809 ar)
4810   ;;
4811 lib)
4812   # Microsoft lib, so override with the ar-lib wrapper script.
4813   # FIXME: It is wrong to rewrite AR.
4814   # But if we don't then we get into trouble of one sort or another.
4815   # A longer-term fix would be to have automake use am__AR in this case,
4816   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4817   # similar.
4818   AR="$am_aux_dir/ar-lib $AR"
4819   ;;
4820 unknown)
4821   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4822   ;;
4823 esac
4824
4825 # Extract the first word of "ar", so it can be a program name with args.
4826 set dummy ar; ac_word=$2
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4828 $as_echo_n "checking for $ac_word... " >&6; }
4829 if ${ac_cv_path_AR+:} false; then :
4830   $as_echo_n "(cached) " >&6
4831 else
4832   case $AR in
4833   [\\/]* | ?:[\\/]*)
4834   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4835   ;;
4836   *)
4837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4839 do
4840   IFS=$as_save_IFS
4841   test -z "$as_dir" && as_dir=.
4842     for ac_exec_ext in '' $ac_executable_extensions; do
4843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4844     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846     break 2
4847   fi
4848 done
4849   done
4850 IFS=$as_save_IFS
4851
4852   test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
4853   ;;
4854 esac
4855 fi
4856 AR=$ac_cv_path_AR
4857 if test -n "$AR"; then
4858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4859 $as_echo "$AR" >&6; }
4860 else
4861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4863 fi
4864
4865
4866 if [ $AR = "no" ] ; then
4867     as_fn_error $? "\"Could not find ar - needed to create a library\"" "$LINENO" 5;
4868 fi
4869
4870 # Initialize libtool
4871 case `pwd` in
4872   *\ * | *\     *)
4873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4874 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4875 esac
4876
4877
4878
4879 macro_version='2.4.2'
4880 macro_revision='1.3337'
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894 ltmain="$ac_aux_dir/ltmain.sh"
4895
4896 # Make sure we can run config.sub.
4897 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4898   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4899
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4901 $as_echo_n "checking build system type... " >&6; }
4902 if ${ac_cv_build+:} false; then :
4903   $as_echo_n "(cached) " >&6
4904 else
4905   ac_build_alias=$build_alias
4906 test "x$ac_build_alias" = x &&
4907   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4908 test "x$ac_build_alias" = x &&
4909   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4910 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4911   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4912
4913 fi
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4915 $as_echo "$ac_cv_build" >&6; }
4916 case $ac_cv_build in
4917 *-*-*) ;;
4918 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4919 esac
4920 build=$ac_cv_build
4921 ac_save_IFS=$IFS; IFS='-'
4922 set x $ac_cv_build
4923 shift
4924 build_cpu=$1
4925 build_vendor=$2
4926 shift; shift
4927 # Remember, the first character of IFS is used to create $*,
4928 # except with old shells:
4929 build_os=$*
4930 IFS=$ac_save_IFS
4931 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4932
4933
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4935 $as_echo_n "checking host system type... " >&6; }
4936 if ${ac_cv_host+:} false; then :
4937   $as_echo_n "(cached) " >&6
4938 else
4939   if test "x$host_alias" = x; then
4940   ac_cv_host=$ac_cv_build
4941 else
4942   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4943     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4944 fi
4945
4946 fi
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4948 $as_echo "$ac_cv_host" >&6; }
4949 case $ac_cv_host in
4950 *-*-*) ;;
4951 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4952 esac
4953 host=$ac_cv_host
4954 ac_save_IFS=$IFS; IFS='-'
4955 set x $ac_cv_host
4956 shift
4957 host_cpu=$1
4958 host_vendor=$2
4959 shift; shift
4960 # Remember, the first character of IFS is used to create $*,
4961 # except with old shells:
4962 host_os=$*
4963 IFS=$ac_save_IFS
4964 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4965
4966
4967 # Backslashify metacharacters that are still active within
4968 # double-quoted strings.
4969 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4970
4971 # Same as above, but do not quote variable references.
4972 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4973
4974 # Sed substitution to delay expansion of an escaped shell variable in a
4975 # double_quote_subst'ed string.
4976 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4977
4978 # Sed substitution to delay expansion of an escaped single quote.
4979 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4980
4981 # Sed substitution to avoid accidental globbing in evaled expressions
4982 no_glob_subst='s/\*/\\\*/g'
4983
4984 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4985 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4986 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4987
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4989 $as_echo_n "checking how to print strings... " >&6; }
4990 # Test print first, because it will be a builtin if present.
4991 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4992    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4993   ECHO='print -r --'
4994 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4995   ECHO='printf %s\n'
4996 else
4997   # Use this function as a fallback that always works.
4998   func_fallback_echo ()
4999   {
5000     eval 'cat <<_LTECHO_EOF
5001 $1
5002 _LTECHO_EOF'
5003   }
5004   ECHO='func_fallback_echo'
5005 fi
5006
5007 # func_echo_all arg...
5008 # Invoke $ECHO with all args, space-separated.
5009 func_echo_all ()
5010 {
5011     $ECHO ""
5012 }
5013
5014 case "$ECHO" in
5015   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5016 $as_echo "printf" >&6; } ;;
5017   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5018 $as_echo "print -r" >&6; } ;;
5019   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5020 $as_echo "cat" >&6; } ;;
5021 esac
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5037 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5038 if ${ac_cv_path_SED+:} false; then :
5039   $as_echo_n "(cached) " >&6
5040 else
5041             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5042      for ac_i in 1 2 3 4 5 6 7; do
5043        ac_script="$ac_script$as_nl$ac_script"
5044      done
5045      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5046      { ac_script=; unset ac_script;}
5047      if test -z "$SED"; then
5048   ac_path_SED_found=false
5049   # Loop through the user's path and test for each of PROGNAME-LIST
5050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053   IFS=$as_save_IFS
5054   test -z "$as_dir" && as_dir=.
5055     for ac_prog in sed gsed; do
5056     for ac_exec_ext in '' $ac_executable_extensions; do
5057       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5058       as_fn_executable_p "$ac_path_SED" || continue
5059 # Check for GNU ac_path_SED and select it if it is found.
5060   # Check for GNU $ac_path_SED
5061 case `"$ac_path_SED" --version 2>&1` in
5062 *GNU*)
5063   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5064 *)
5065   ac_count=0
5066   $as_echo_n 0123456789 >"conftest.in"
5067   while :
5068   do
5069     cat "conftest.in" "conftest.in" >"conftest.tmp"
5070     mv "conftest.tmp" "conftest.in"
5071     cp "conftest.in" "conftest.nl"
5072     $as_echo '' >> "conftest.nl"
5073     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5074     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5075     as_fn_arith $ac_count + 1 && ac_count=$as_val
5076     if test $ac_count -gt ${ac_path_SED_max-0}; then
5077       # Best one so far, save it but keep looking for a better one
5078       ac_cv_path_SED="$ac_path_SED"
5079       ac_path_SED_max=$ac_count
5080     fi
5081     # 10*(2^10) chars as input seems more than enough
5082     test $ac_count -gt 10 && break
5083   done
5084   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5085 esac
5086
5087       $ac_path_SED_found && break 3
5088     done
5089   done
5090   done
5091 IFS=$as_save_IFS
5092   if test -z "$ac_cv_path_SED"; then
5093     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5094   fi
5095 else
5096   ac_cv_path_SED=$SED
5097 fi
5098
5099 fi
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5101 $as_echo "$ac_cv_path_SED" >&6; }
5102  SED="$ac_cv_path_SED"
5103   rm -f conftest.sed
5104
5105 test -z "$SED" && SED=sed
5106 Xsed="$SED -e 1s/^X//"
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5119 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5120 if ${ac_cv_path_GREP+:} false; then :
5121   $as_echo_n "(cached) " >&6
5122 else
5123   if test -z "$GREP"; then
5124   ac_path_GREP_found=false
5125   # Loop through the user's path and test for each of PROGNAME-LIST
5126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5128 do
5129   IFS=$as_save_IFS
5130   test -z "$as_dir" && as_dir=.
5131     for ac_prog in grep ggrep; do
5132     for ac_exec_ext in '' $ac_executable_extensions; do
5133       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5134       as_fn_executable_p "$ac_path_GREP" || continue
5135 # Check for GNU ac_path_GREP and select it if it is found.
5136   # Check for GNU $ac_path_GREP
5137 case `"$ac_path_GREP" --version 2>&1` in
5138 *GNU*)
5139   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5140 *)
5141   ac_count=0
5142   $as_echo_n 0123456789 >"conftest.in"
5143   while :
5144   do
5145     cat "conftest.in" "conftest.in" >"conftest.tmp"
5146     mv "conftest.tmp" "conftest.in"
5147     cp "conftest.in" "conftest.nl"
5148     $as_echo 'GREP' >> "conftest.nl"
5149     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5150     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5151     as_fn_arith $ac_count + 1 && ac_count=$as_val
5152     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5153       # Best one so far, save it but keep looking for a better one
5154       ac_cv_path_GREP="$ac_path_GREP"
5155       ac_path_GREP_max=$ac_count
5156     fi
5157     # 10*(2^10) chars as input seems more than enough
5158     test $ac_count -gt 10 && break
5159   done
5160   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5161 esac
5162
5163       $ac_path_GREP_found && break 3
5164     done
5165   done
5166   done
5167 IFS=$as_save_IFS
5168   if test -z "$ac_cv_path_GREP"; then
5169     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5170   fi
5171 else
5172   ac_cv_path_GREP=$GREP
5173 fi
5174
5175 fi
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5177 $as_echo "$ac_cv_path_GREP" >&6; }
5178  GREP="$ac_cv_path_GREP"
5179
5180
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5182 $as_echo_n "checking for egrep... " >&6; }
5183 if ${ac_cv_path_EGREP+:} false; then :
5184   $as_echo_n "(cached) " >&6
5185 else
5186   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5187    then ac_cv_path_EGREP="$GREP -E"
5188    else
5189      if test -z "$EGREP"; then
5190   ac_path_EGREP_found=false
5191   # Loop through the user's path and test for each of PROGNAME-LIST
5192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197     for ac_prog in egrep; do
5198     for ac_exec_ext in '' $ac_executable_extensions; do
5199       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5200       as_fn_executable_p "$ac_path_EGREP" || continue
5201 # Check for GNU ac_path_EGREP and select it if it is found.
5202   # Check for GNU $ac_path_EGREP
5203 case `"$ac_path_EGREP" --version 2>&1` in
5204 *GNU*)
5205   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5206 *)
5207   ac_count=0
5208   $as_echo_n 0123456789 >"conftest.in"
5209   while :
5210   do
5211     cat "conftest.in" "conftest.in" >"conftest.tmp"
5212     mv "conftest.tmp" "conftest.in"
5213     cp "conftest.in" "conftest.nl"
5214     $as_echo 'EGREP' >> "conftest.nl"
5215     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5216     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5217     as_fn_arith $ac_count + 1 && ac_count=$as_val
5218     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5219       # Best one so far, save it but keep looking for a better one
5220       ac_cv_path_EGREP="$ac_path_EGREP"
5221       ac_path_EGREP_max=$ac_count
5222     fi
5223     # 10*(2^10) chars as input seems more than enough
5224     test $ac_count -gt 10 && break
5225   done
5226   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5227 esac
5228
5229       $ac_path_EGREP_found && break 3
5230     done
5231   done
5232   done
5233 IFS=$as_save_IFS
5234   if test -z "$ac_cv_path_EGREP"; then
5235     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5236   fi
5237 else
5238   ac_cv_path_EGREP=$EGREP
5239 fi
5240
5241    fi
5242 fi
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5244 $as_echo "$ac_cv_path_EGREP" >&6; }
5245  EGREP="$ac_cv_path_EGREP"
5246
5247
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5249 $as_echo_n "checking for fgrep... " >&6; }
5250 if ${ac_cv_path_FGREP+:} false; then :
5251   $as_echo_n "(cached) " >&6
5252 else
5253   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5254    then ac_cv_path_FGREP="$GREP -F"
5255    else
5256      if test -z "$FGREP"; then
5257   ac_path_FGREP_found=false
5258   # Loop through the user's path and test for each of PROGNAME-LIST
5259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264     for ac_prog in fgrep; do
5265     for ac_exec_ext in '' $ac_executable_extensions; do
5266       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5267       as_fn_executable_p "$ac_path_FGREP" || continue
5268 # Check for GNU ac_path_FGREP and select it if it is found.
5269   # Check for GNU $ac_path_FGREP
5270 case `"$ac_path_FGREP" --version 2>&1` in
5271 *GNU*)
5272   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5273 *)
5274   ac_count=0
5275   $as_echo_n 0123456789 >"conftest.in"
5276   while :
5277   do
5278     cat "conftest.in" "conftest.in" >"conftest.tmp"
5279     mv "conftest.tmp" "conftest.in"
5280     cp "conftest.in" "conftest.nl"
5281     $as_echo 'FGREP' >> "conftest.nl"
5282     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5283     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5284     as_fn_arith $ac_count + 1 && ac_count=$as_val
5285     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5286       # Best one so far, save it but keep looking for a better one
5287       ac_cv_path_FGREP="$ac_path_FGREP"
5288       ac_path_FGREP_max=$ac_count
5289     fi
5290     # 10*(2^10) chars as input seems more than enough
5291     test $ac_count -gt 10 && break
5292   done
5293   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5294 esac
5295
5296       $ac_path_FGREP_found && break 3
5297     done
5298   done
5299   done
5300 IFS=$as_save_IFS
5301   if test -z "$ac_cv_path_FGREP"; then
5302     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5303   fi
5304 else
5305   ac_cv_path_FGREP=$FGREP
5306 fi
5307
5308    fi
5309 fi
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5311 $as_echo "$ac_cv_path_FGREP" >&6; }
5312  FGREP="$ac_cv_path_FGREP"
5313
5314
5315 test -z "$GREP" && GREP=grep
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335 # Check whether --with-gnu-ld was given.
5336 if test "${with_gnu_ld+set}" = set; then :
5337   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5338 else
5339   with_gnu_ld=no
5340 fi
5341
5342 ac_prog=ld
5343 if test "$GCC" = yes; then
5344   # Check if gcc -print-prog-name=ld gives a path.
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5346 $as_echo_n "checking for ld used by $CC... " >&6; }
5347   case $host in
5348   *-*-mingw*)
5349     # gcc leaves a trailing carriage return which upsets mingw
5350     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5351   *)
5352     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5353   esac
5354   case $ac_prog in
5355     # Accept absolute paths.
5356     [\\/]* | ?:[\\/]*)
5357       re_direlt='/[^/][^/]*/\.\./'
5358       # Canonicalize the pathname of ld
5359       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5360       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5361         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5362       done
5363       test -z "$LD" && LD="$ac_prog"
5364       ;;
5365   "")
5366     # If it fails, then pretend we aren't using GCC.
5367     ac_prog=ld
5368     ;;
5369   *)
5370     # If it is relative, then search for the first ld in PATH.
5371     with_gnu_ld=unknown
5372     ;;
5373   esac
5374 elif test "$with_gnu_ld" = yes; then
5375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5376 $as_echo_n "checking for GNU ld... " >&6; }
5377 else
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5379 $as_echo_n "checking for non-GNU ld... " >&6; }
5380 fi
5381 if ${lt_cv_path_LD+:} false; then :
5382   $as_echo_n "(cached) " >&6
5383 else
5384   if test -z "$LD"; then
5385   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5386   for ac_dir in $PATH; do
5387     IFS="$lt_save_ifs"
5388     test -z "$ac_dir" && ac_dir=.
5389     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5390       lt_cv_path_LD="$ac_dir/$ac_prog"
5391       # Check to see if the program is GNU ld.  I'd rather use --version,
5392       # but apparently some variants of GNU ld only accept -v.
5393       # Break only if it was the GNU/non-GNU ld that we prefer.
5394       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5395       *GNU* | *'with BFD'*)
5396         test "$with_gnu_ld" != no && break
5397         ;;
5398       *)
5399         test "$with_gnu_ld" != yes && break
5400         ;;
5401       esac
5402     fi
5403   done
5404   IFS="$lt_save_ifs"
5405 else
5406   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5407 fi
5408 fi
5409
5410 LD="$lt_cv_path_LD"
5411 if test -n "$LD"; then
5412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5413 $as_echo "$LD" >&6; }
5414 else
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5417 fi
5418 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5420 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5421 if ${lt_cv_prog_gnu_ld+:} false; then :
5422   $as_echo_n "(cached) " >&6
5423 else
5424   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5425 case `$LD -v 2>&1 </dev/null` in
5426 *GNU* | *'with BFD'*)
5427   lt_cv_prog_gnu_ld=yes
5428   ;;
5429 *)
5430   lt_cv_prog_gnu_ld=no
5431   ;;
5432 esac
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5435 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5436 with_gnu_ld=$lt_cv_prog_gnu_ld
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5447 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5448 if ${lt_cv_path_NM+:} false; then :
5449   $as_echo_n "(cached) " >&6
5450 else
5451   if test -n "$NM"; then
5452   # Let the user override the test.
5453   lt_cv_path_NM="$NM"
5454 else
5455   lt_nm_to_check="${ac_tool_prefix}nm"
5456   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5457     lt_nm_to_check="$lt_nm_to_check nm"
5458   fi
5459   for lt_tmp_nm in $lt_nm_to_check; do
5460     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5461     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5462       IFS="$lt_save_ifs"
5463       test -z "$ac_dir" && ac_dir=.
5464       tmp_nm="$ac_dir/$lt_tmp_nm"
5465       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5466         # Check to see if the nm accepts a BSD-compat flag.
5467         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5468         #   nm: unknown option "B" ignored
5469         # Tru64's nm complains that /dev/null is an invalid object file
5470         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5471         */dev/null* | *'Invalid file or object type'*)
5472           lt_cv_path_NM="$tmp_nm -B"
5473           break
5474           ;;
5475         *)
5476           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5477           */dev/null*)
5478             lt_cv_path_NM="$tmp_nm -p"
5479             break
5480             ;;
5481           *)
5482             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5483             continue # so that we can try to find one that supports BSD flags
5484             ;;
5485           esac
5486           ;;
5487         esac
5488       fi
5489     done
5490     IFS="$lt_save_ifs"
5491   done
5492   : ${lt_cv_path_NM=no}
5493 fi
5494 fi
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5496 $as_echo "$lt_cv_path_NM" >&6; }
5497 if test "$lt_cv_path_NM" != "no"; then
5498   NM="$lt_cv_path_NM"
5499 else
5500   # Didn't find any BSD compatible name lister, look for dumpbin.
5501   if test -n "$DUMPBIN"; then :
5502     # Let the user override the test.
5503   else
5504     if test -n "$ac_tool_prefix"; then
5505   for ac_prog in dumpbin "link -dump"
5506   do
5507     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if ${ac_cv_prog_DUMPBIN+:} false; then :
5512   $as_echo_n "(cached) " >&6
5513 else
5514   if test -n "$DUMPBIN"; then
5515   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5516 else
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5519 do
5520   IFS=$as_save_IFS
5521   test -z "$as_dir" && as_dir=.
5522     for ac_exec_ext in '' $ac_executable_extensions; do
5523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526     break 2
5527   fi
5528 done
5529   done
5530 IFS=$as_save_IFS
5531
5532 fi
5533 fi
5534 DUMPBIN=$ac_cv_prog_DUMPBIN
5535 if test -n "$DUMPBIN"; then
5536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5537 $as_echo "$DUMPBIN" >&6; }
5538 else
5539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5541 fi
5542
5543
5544     test -n "$DUMPBIN" && break
5545   done
5546 fi
5547 if test -z "$DUMPBIN"; then
5548   ac_ct_DUMPBIN=$DUMPBIN
5549   for ac_prog in dumpbin "link -dump"
5550 do
5551   # Extract the first word of "$ac_prog", so it can be a program name with args.
5552 set dummy $ac_prog; ac_word=$2
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554 $as_echo_n "checking for $ac_word... " >&6; }
5555 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5556   $as_echo_n "(cached) " >&6
5557 else
5558   if test -n "$ac_ct_DUMPBIN"; then
5559   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5560 else
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH
5563 do
5564   IFS=$as_save_IFS
5565   test -z "$as_dir" && as_dir=.
5566     for ac_exec_ext in '' $ac_executable_extensions; do
5567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5568     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5570     break 2
5571   fi
5572 done
5573   done
5574 IFS=$as_save_IFS
5575
5576 fi
5577 fi
5578 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5579 if test -n "$ac_ct_DUMPBIN"; then
5580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5581 $as_echo "$ac_ct_DUMPBIN" >&6; }
5582 else
5583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584 $as_echo "no" >&6; }
5585 fi
5586
5587
5588   test -n "$ac_ct_DUMPBIN" && break
5589 done
5590
5591   if test "x$ac_ct_DUMPBIN" = x; then
5592     DUMPBIN=":"
5593   else
5594     case $cross_compiling:$ac_tool_warned in
5595 yes:)
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5598 ac_tool_warned=yes ;;
5599 esac
5600     DUMPBIN=$ac_ct_DUMPBIN
5601   fi
5602 fi
5603
5604     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5605     *COFF*)
5606       DUMPBIN="$DUMPBIN -symbols"
5607       ;;
5608     *)
5609       DUMPBIN=:
5610       ;;
5611     esac
5612   fi
5613
5614   if test "$DUMPBIN" != ":"; then
5615     NM="$DUMPBIN"
5616   fi
5617 fi
5618 test -z "$NM" && NM=nm
5619
5620
5621
5622
5623
5624
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5626 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5627 if ${lt_cv_nm_interface+:} false; then :
5628   $as_echo_n "(cached) " >&6
5629 else
5630   lt_cv_nm_interface="BSD nm"
5631   echo "int some_variable = 0;" > conftest.$ac_ext
5632   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5633   (eval "$ac_compile" 2>conftest.err)
5634   cat conftest.err >&5
5635   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5636   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5637   cat conftest.err >&5
5638   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5639   cat conftest.out >&5
5640   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5641     lt_cv_nm_interface="MS dumpbin"
5642   fi
5643   rm -f conftest*
5644 fi
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5646 $as_echo "$lt_cv_nm_interface" >&6; }
5647
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5649 $as_echo_n "checking whether ln -s works... " >&6; }
5650 LN_S=$as_ln_s
5651 if test "$LN_S" = "ln -s"; then
5652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5653 $as_echo "yes" >&6; }
5654 else
5655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5656 $as_echo "no, using $LN_S" >&6; }
5657 fi
5658
5659 # find the maximum length of command line arguments
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5661 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5662 if ${lt_cv_sys_max_cmd_len+:} false; then :
5663   $as_echo_n "(cached) " >&6
5664 else
5665     i=0
5666   teststring="ABCD"
5667
5668   case $build_os in
5669   msdosdjgpp*)
5670     # On DJGPP, this test can blow up pretty badly due to problems in libc
5671     # (any single argument exceeding 2000 bytes causes a buffer overrun
5672     # during glob expansion).  Even if it were fixed, the result of this
5673     # check would be larger than it should be.
5674     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5675     ;;
5676
5677   gnu*)
5678     # Under GNU Hurd, this test is not required because there is
5679     # no limit to the length of command line arguments.
5680     # Libtool will interpret -1 as no limit whatsoever
5681     lt_cv_sys_max_cmd_len=-1;
5682     ;;
5683
5684   cygwin* | mingw* | cegcc*)
5685     # On Win9x/ME, this test blows up -- it succeeds, but takes
5686     # about 5 minutes as the teststring grows exponentially.
5687     # Worse, since 9x/ME are not pre-emptively multitasking,
5688     # you end up with a "frozen" computer, even though with patience
5689     # the test eventually succeeds (with a max line length of 256k).
5690     # Instead, let's just punt: use the minimum linelength reported by
5691     # all of the supported platforms: 8192 (on NT/2K/XP).
5692     lt_cv_sys_max_cmd_len=8192;
5693     ;;
5694
5695   mint*)
5696     # On MiNT this can take a long time and run out of memory.
5697     lt_cv_sys_max_cmd_len=8192;
5698     ;;
5699
5700   amigaos*)
5701     # On AmigaOS with pdksh, this test takes hours, literally.
5702     # So we just punt and use a minimum line length of 8192.
5703     lt_cv_sys_max_cmd_len=8192;
5704     ;;
5705
5706   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5707     # This has been around since 386BSD, at least.  Likely further.
5708     if test -x /sbin/sysctl; then
5709       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5710     elif test -x /usr/sbin/sysctl; then
5711       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5712     else
5713       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5714     fi
5715     # And add a safety zone
5716     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5717     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5718     ;;
5719
5720   interix*)
5721     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5722     lt_cv_sys_max_cmd_len=196608
5723     ;;
5724
5725   os2*)
5726     # The test takes a long time on OS/2.
5727     lt_cv_sys_max_cmd_len=8192
5728     ;;
5729
5730   osf*)
5731     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5732     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5733     # nice to cause kernel panics so lets avoid the loop below.
5734     # First set a reasonable default.
5735     lt_cv_sys_max_cmd_len=16384
5736     #
5737     if test -x /sbin/sysconfig; then
5738       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5739         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5740       esac
5741     fi
5742     ;;
5743   sco3.2v5*)
5744     lt_cv_sys_max_cmd_len=102400
5745     ;;
5746   sysv5* | sco5v6* | sysv4.2uw2*)
5747     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5748     if test -n "$kargmax"; then
5749       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5750     else
5751       lt_cv_sys_max_cmd_len=32768
5752     fi
5753     ;;
5754   *)
5755     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5756     if test -n "$lt_cv_sys_max_cmd_len" && \
5757         test undefined != "$lt_cv_sys_max_cmd_len"; then
5758       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5759       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5760     else
5761       # Make teststring a little bigger before we do anything with it.
5762       # a 1K string should be a reasonable start.
5763       for i in 1 2 3 4 5 6 7 8 ; do
5764         teststring=$teststring$teststring
5765       done
5766       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5767       # If test is not a shell built-in, we'll probably end up computing a
5768       # maximum length that is only half of the actual maximum length, but
5769       # we can't tell.
5770       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5771                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5772               test $i != 17 # 1/2 MB should be enough
5773       do
5774         i=`expr $i + 1`
5775         teststring=$teststring$teststring
5776       done
5777       # Only check the string length outside the loop.
5778       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5779       teststring=
5780       # Add a significant safety factor because C++ compilers can tack on
5781       # massive amounts of additional arguments before passing them to the
5782       # linker.  It appears as though 1/2 is a usable value.
5783       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5784     fi
5785     ;;
5786   esac
5787
5788 fi
5789
5790 if test -n $lt_cv_sys_max_cmd_len ; then
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5792 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5793 else
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5795 $as_echo "none" >&6; }
5796 fi
5797 max_cmd_len=$lt_cv_sys_max_cmd_len
5798
5799
5800
5801
5802
5803
5804 : ${CP="cp -f"}
5805 : ${MV="mv -f"}
5806 : ${RM="rm -f"}
5807
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5809 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5810 # Try some XSI features
5811 xsi_shell=no
5812 ( _lt_dummy="a/b/c"
5813   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5814       = c,a/b,b/c, \
5815     && eval 'test $(( 1 + 1 )) -eq 2 \
5816     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5817   && xsi_shell=yes
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5819 $as_echo "$xsi_shell" >&6; }
5820
5821
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5823 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5824 lt_shell_append=no
5825 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5826     >/dev/null 2>&1 \
5827   && lt_shell_append=yes
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5829 $as_echo "$lt_shell_append" >&6; }
5830
5831
5832 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5833   lt_unset=unset
5834 else
5835   lt_unset=false
5836 fi
5837
5838
5839
5840
5841
5842 # test EBCDIC or ASCII
5843 case `echo X|tr X '\101'` in
5844  A) # ASCII based system
5845     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5846   lt_SP2NL='tr \040 \012'
5847   lt_NL2SP='tr \015\012 \040\040'
5848   ;;
5849  *) # EBCDIC based system
5850   lt_SP2NL='tr \100 \n'
5851   lt_NL2SP='tr \r\n \100\100'
5852   ;;
5853 esac
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5864 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5865 if ${lt_cv_to_host_file_cmd+:} false; then :
5866   $as_echo_n "(cached) " >&6
5867 else
5868   case $host in
5869   *-*-mingw* )
5870     case $build in
5871       *-*-mingw* ) # actually msys
5872         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5873         ;;
5874       *-*-cygwin* )
5875         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5876         ;;
5877       * ) # otherwise, assume *nix
5878         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5879         ;;
5880     esac
5881     ;;
5882   *-*-cygwin* )
5883     case $build in
5884       *-*-mingw* ) # actually msys
5885         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5886         ;;
5887       *-*-cygwin* )
5888         lt_cv_to_host_file_cmd=func_convert_file_noop
5889         ;;
5890       * ) # otherwise, assume *nix
5891         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5892         ;;
5893     esac
5894     ;;
5895   * ) # unhandled hosts (and "normal" native builds)
5896     lt_cv_to_host_file_cmd=func_convert_file_noop
5897     ;;
5898 esac
5899
5900 fi
5901
5902 to_host_file_cmd=$lt_cv_to_host_file_cmd
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5904 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5905
5906
5907
5908
5909
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5911 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5912 if ${lt_cv_to_tool_file_cmd+:} false; then :
5913   $as_echo_n "(cached) " >&6
5914 else
5915   #assume ordinary cross tools, or native build.
5916 lt_cv_to_tool_file_cmd=func_convert_file_noop
5917 case $host in
5918   *-*-mingw* )
5919     case $build in
5920       *-*-mingw* ) # actually msys
5921         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5922         ;;
5923     esac
5924     ;;
5925 esac
5926
5927 fi
5928
5929 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5931 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5932
5933
5934
5935
5936
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5938 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5939 if ${lt_cv_ld_reload_flag+:} false; then :
5940   $as_echo_n "(cached) " >&6
5941 else
5942   lt_cv_ld_reload_flag='-r'
5943 fi
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5945 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5946 reload_flag=$lt_cv_ld_reload_flag
5947 case $reload_flag in
5948 "" | " "*) ;;
5949 *) reload_flag=" $reload_flag" ;;
5950 esac
5951 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5952 case $host_os in
5953   cygwin* | mingw* | pw32* | cegcc*)
5954     if test "$GCC" != yes; then
5955       reload_cmds=false
5956     fi
5957     ;;
5958   darwin*)
5959     if test "$GCC" = yes; then
5960       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5961     else
5962       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5963     fi
5964     ;;
5965 esac
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975 if test -n "$ac_tool_prefix"; then
5976   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5977 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979 $as_echo_n "checking for $ac_word... " >&6; }
5980 if ${ac_cv_prog_OBJDUMP+:} false; then :
5981   $as_echo_n "(cached) " >&6
5982 else
5983   if test -n "$OBJDUMP"; then
5984   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5985 else
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 for as_dir in $PATH
5988 do
5989   IFS=$as_save_IFS
5990   test -z "$as_dir" && as_dir=.
5991     for ac_exec_ext in '' $ac_executable_extensions; do
5992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5993     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5995     break 2
5996   fi
5997 done
5998   done
5999 IFS=$as_save_IFS
6000
6001 fi
6002 fi
6003 OBJDUMP=$ac_cv_prog_OBJDUMP
6004 if test -n "$OBJDUMP"; then
6005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6006 $as_echo "$OBJDUMP" >&6; }
6007 else
6008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 $as_echo "no" >&6; }
6010 fi
6011
6012
6013 fi
6014 if test -z "$ac_cv_prog_OBJDUMP"; then
6015   ac_ct_OBJDUMP=$OBJDUMP
6016   # Extract the first word of "objdump", so it can be a program name with args.
6017 set dummy objdump; ac_word=$2
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019 $as_echo_n "checking for $ac_word... " >&6; }
6020 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6021   $as_echo_n "(cached) " >&6
6022 else
6023   if test -n "$ac_ct_OBJDUMP"; then
6024   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6025 else
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6028 do
6029   IFS=$as_save_IFS
6030   test -z "$as_dir" && as_dir=.
6031     for ac_exec_ext in '' $ac_executable_extensions; do
6032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035     break 2
6036   fi
6037 done
6038   done
6039 IFS=$as_save_IFS
6040
6041 fi
6042 fi
6043 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6044 if test -n "$ac_ct_OBJDUMP"; then
6045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6046 $as_echo "$ac_ct_OBJDUMP" >&6; }
6047 else
6048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049 $as_echo "no" >&6; }
6050 fi
6051
6052   if test "x$ac_ct_OBJDUMP" = x; then
6053     OBJDUMP="false"
6054   else
6055     case $cross_compiling:$ac_tool_warned in
6056 yes:)
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6059 ac_tool_warned=yes ;;
6060 esac
6061     OBJDUMP=$ac_ct_OBJDUMP
6062   fi
6063 else
6064   OBJDUMP="$ac_cv_prog_OBJDUMP"
6065 fi
6066
6067 test -z "$OBJDUMP" && OBJDUMP=objdump
6068
6069
6070
6071
6072
6073
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6075 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6076 if ${lt_cv_deplibs_check_method+:} false; then :
6077   $as_echo_n "(cached) " >&6
6078 else
6079   lt_cv_file_magic_cmd='$MAGIC_CMD'
6080 lt_cv_file_magic_test_file=
6081 lt_cv_deplibs_check_method='unknown'
6082 # Need to set the preceding variable on all platforms that support
6083 # interlibrary dependencies.
6084 # 'none' -- dependencies not supported.
6085 # `unknown' -- same as none, but documents that we really don't know.
6086 # 'pass_all' -- all dependencies passed with no checks.
6087 # 'test_compile' -- check by making test program.
6088 # 'file_magic [[regex]]' -- check by looking for files in library path
6089 # which responds to the $file_magic_cmd with a given extended regex.
6090 # If you have `file' or equivalent on your system and you're not sure
6091 # whether `pass_all' will *always* work, you probably want this one.
6092
6093 case $host_os in
6094 aix[4-9]*)
6095   lt_cv_deplibs_check_method=pass_all
6096   ;;
6097
6098 beos*)
6099   lt_cv_deplibs_check_method=pass_all
6100   ;;
6101
6102 bsdi[45]*)
6103   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6104   lt_cv_file_magic_cmd='/usr/bin/file -L'
6105   lt_cv_file_magic_test_file=/shlib/libc.so
6106   ;;
6107
6108 cygwin*)
6109   # func_win32_libid is a shell function defined in ltmain.sh
6110   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6111   lt_cv_file_magic_cmd='func_win32_libid'
6112   ;;
6113
6114 mingw* | pw32*)
6115   # Base MSYS/MinGW do not provide the 'file' command needed by
6116   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6117   # unless we find 'file', for example because we are cross-compiling.
6118   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6119   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6120     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6121     lt_cv_file_magic_cmd='func_win32_libid'
6122   else
6123     # Keep this pattern in sync with the one in func_win32_libid.
6124     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6125     lt_cv_file_magic_cmd='$OBJDUMP -f'
6126   fi
6127   ;;
6128
6129 cegcc*)
6130   # use the weaker test based on 'objdump'. See mingw*.
6131   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6132   lt_cv_file_magic_cmd='$OBJDUMP -f'
6133   ;;
6134
6135 darwin* | rhapsody*)
6136   lt_cv_deplibs_check_method=pass_all
6137   ;;
6138
6139 freebsd* | dragonfly*)
6140   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6141     case $host_cpu in
6142     i*86 )
6143       # Not sure whether the presence of OpenBSD here was a mistake.
6144       # Let's accept both of them until this is cleared up.
6145       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6146       lt_cv_file_magic_cmd=/usr/bin/file
6147       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6148       ;;
6149     esac
6150   else
6151     lt_cv_deplibs_check_method=pass_all
6152   fi
6153   ;;
6154
6155 haiku*)
6156   lt_cv_deplibs_check_method=pass_all
6157   ;;
6158
6159 hpux10.20* | hpux11*)
6160   lt_cv_file_magic_cmd=/usr/bin/file
6161   case $host_cpu in
6162   ia64*)
6163     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6164     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6165     ;;
6166   hppa*64*)
6167     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6168     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6169     ;;
6170   *)
6171     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6172     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6173     ;;
6174   esac
6175   ;;
6176
6177 interix[3-9]*)
6178   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6179   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6180   ;;
6181
6182 irix5* | irix6* | nonstopux*)
6183   case $LD in
6184   *-32|*"-32 ") libmagic=32-bit;;
6185   *-n32|*"-n32 ") libmagic=N32;;
6186   *-64|*"-64 ") libmagic=64-bit;;
6187   *) libmagic=never-match;;
6188   esac
6189   lt_cv_deplibs_check_method=pass_all
6190   ;;
6191
6192 # This must be glibc/ELF.
6193 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6194   lt_cv_deplibs_check_method=pass_all
6195   ;;
6196
6197 netbsd* | netbsdelf*-gnu)
6198   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6199     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6200   else
6201     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6202   fi
6203   ;;
6204
6205 newos6*)
6206   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6207   lt_cv_file_magic_cmd=/usr/bin/file
6208   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6209   ;;
6210
6211 *nto* | *qnx*)
6212   lt_cv_deplibs_check_method=pass_all
6213   ;;
6214
6215 openbsd*)
6216   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6217     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6218   else
6219     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6220   fi
6221   ;;
6222
6223 osf3* | osf4* | osf5*)
6224   lt_cv_deplibs_check_method=pass_all
6225   ;;
6226
6227 rdos*)
6228   lt_cv_deplibs_check_method=pass_all
6229   ;;
6230
6231 solaris*)
6232   lt_cv_deplibs_check_method=pass_all
6233   ;;
6234
6235 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6236   lt_cv_deplibs_check_method=pass_all
6237   ;;
6238
6239 sysv4 | sysv4.3*)
6240   case $host_vendor in
6241   motorola)
6242     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6243     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6244     ;;
6245   ncr)
6246     lt_cv_deplibs_check_method=pass_all
6247     ;;
6248   sequent)
6249     lt_cv_file_magic_cmd='/bin/file'
6250     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6251     ;;
6252   sni)
6253     lt_cv_file_magic_cmd='/bin/file'
6254     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6255     lt_cv_file_magic_test_file=/lib/libc.so
6256     ;;
6257   siemens)
6258     lt_cv_deplibs_check_method=pass_all
6259     ;;
6260   pc)
6261     lt_cv_deplibs_check_method=pass_all
6262     ;;
6263   esac
6264   ;;
6265
6266 tpf*)
6267   lt_cv_deplibs_check_method=pass_all
6268   ;;
6269 esac
6270
6271 fi
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6273 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6274
6275 file_magic_glob=
6276 want_nocaseglob=no
6277 if test "$build" = "$host"; then
6278   case $host_os in
6279   mingw* | pw32*)
6280     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6281       want_nocaseglob=yes
6282     else
6283       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6284     fi
6285     ;;
6286   esac
6287 fi
6288
6289 file_magic_cmd=$lt_cv_file_magic_cmd
6290 deplibs_check_method=$lt_cv_deplibs_check_method
6291 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314 if test -n "$ac_tool_prefix"; then
6315   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6316 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318 $as_echo_n "checking for $ac_word... " >&6; }
6319 if ${ac_cv_prog_DLLTOOL+:} false; then :
6320   $as_echo_n "(cached) " >&6
6321 else
6322   if test -n "$DLLTOOL"; then
6323   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6324 else
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6327 do
6328   IFS=$as_save_IFS
6329   test -z "$as_dir" && as_dir=.
6330     for ac_exec_ext in '' $ac_executable_extensions; do
6331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6332     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334     break 2
6335   fi
6336 done
6337   done
6338 IFS=$as_save_IFS
6339
6340 fi
6341 fi
6342 DLLTOOL=$ac_cv_prog_DLLTOOL
6343 if test -n "$DLLTOOL"; then
6344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6345 $as_echo "$DLLTOOL" >&6; }
6346 else
6347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6349 fi
6350
6351
6352 fi
6353 if test -z "$ac_cv_prog_DLLTOOL"; then
6354   ac_ct_DLLTOOL=$DLLTOOL
6355   # Extract the first word of "dlltool", so it can be a program name with args.
6356 set dummy dlltool; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6360   $as_echo_n "(cached) " >&6
6361 else
6362   if test -n "$ac_ct_DLLTOOL"; then
6363   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6364 else
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6367 do
6368   IFS=$as_save_IFS
6369   test -z "$as_dir" && as_dir=.
6370     for ac_exec_ext in '' $ac_executable_extensions; do
6371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6372     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374     break 2
6375   fi
6376 done
6377   done
6378 IFS=$as_save_IFS
6379
6380 fi
6381 fi
6382 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6383 if test -n "$ac_ct_DLLTOOL"; then
6384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6385 $as_echo "$ac_ct_DLLTOOL" >&6; }
6386 else
6387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6389 fi
6390
6391   if test "x$ac_ct_DLLTOOL" = x; then
6392     DLLTOOL="false"
6393   else
6394     case $cross_compiling:$ac_tool_warned in
6395 yes:)
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6398 ac_tool_warned=yes ;;
6399 esac
6400     DLLTOOL=$ac_ct_DLLTOOL
6401   fi
6402 else
6403   DLLTOOL="$ac_cv_prog_DLLTOOL"
6404 fi
6405
6406 test -z "$DLLTOOL" && DLLTOOL=dlltool
6407
6408
6409
6410
6411
6412
6413
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6415 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6416 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6417   $as_echo_n "(cached) " >&6
6418 else
6419   lt_cv_sharedlib_from_linklib_cmd='unknown'
6420
6421 case $host_os in
6422 cygwin* | mingw* | pw32* | cegcc*)
6423   # two different shell functions defined in ltmain.sh
6424   # decide which to use based on capabilities of $DLLTOOL
6425   case `$DLLTOOL --help 2>&1` in
6426   *--identify-strict*)
6427     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6428     ;;
6429   *)
6430     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6431     ;;
6432   esac
6433   ;;
6434 *)
6435   # fallback: assume linklib IS sharedlib
6436   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6437   ;;
6438 esac
6439
6440 fi
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6442 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6443 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6444 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6445
6446
6447
6448
6449
6450
6451
6452 if test -n "$ac_tool_prefix"; then
6453   for ac_prog in ar
6454   do
6455     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if ${ac_cv_prog_AR+:} false; then :
6460   $as_echo_n "(cached) " >&6
6461 else
6462   if test -n "$AR"; then
6463   ac_cv_prog_AR="$AR" # Let the user override the test.
6464 else
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468   IFS=$as_save_IFS
6469   test -z "$as_dir" && as_dir=.
6470     for ac_exec_ext in '' $ac_executable_extensions; do
6471   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6472     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6474     break 2
6475   fi
6476 done
6477   done
6478 IFS=$as_save_IFS
6479
6480 fi
6481 fi
6482 AR=$ac_cv_prog_AR
6483 if test -n "$AR"; then
6484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6485 $as_echo "$AR" >&6; }
6486 else
6487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 $as_echo "no" >&6; }
6489 fi
6490
6491
6492     test -n "$AR" && break
6493   done
6494 fi
6495 if test -z "$AR"; then
6496   ac_ct_AR=$AR
6497   for ac_prog in ar
6498 do
6499   # Extract the first word of "$ac_prog", so it can be a program name with args.
6500 set dummy $ac_prog; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6504   $as_echo_n "(cached) " >&6
6505 else
6506   if test -n "$ac_ct_AR"; then
6507   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6508 else
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6511 do
6512   IFS=$as_save_IFS
6513   test -z "$as_dir" && as_dir=.
6514     for ac_exec_ext in '' $ac_executable_extensions; do
6515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6516     ac_cv_prog_ac_ct_AR="$ac_prog"
6517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518     break 2
6519   fi
6520 done
6521   done
6522 IFS=$as_save_IFS
6523
6524 fi
6525 fi
6526 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6527 if test -n "$ac_ct_AR"; then
6528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6529 $as_echo "$ac_ct_AR" >&6; }
6530 else
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6533 fi
6534
6535
6536   test -n "$ac_ct_AR" && break
6537 done
6538
6539   if test "x$ac_ct_AR" = x; then
6540     AR="false"
6541   else
6542     case $cross_compiling:$ac_tool_warned in
6543 yes:)
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6546 ac_tool_warned=yes ;;
6547 esac
6548     AR=$ac_ct_AR
6549   fi
6550 fi
6551
6552 : ${AR=ar}
6553 : ${AR_FLAGS=cru}
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6566 $as_echo_n "checking for archiver @FILE support... " >&6; }
6567 if ${lt_cv_ar_at_file+:} false; then :
6568   $as_echo_n "(cached) " >&6
6569 else
6570   lt_cv_ar_at_file=no
6571    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h.  */
6573
6574 int
6575 main ()
6576 {
6577
6578   ;
6579   return 0;
6580 }
6581 _ACEOF
6582 if ac_fn_c_try_compile "$LINENO"; then :
6583   echo conftest.$ac_objext > conftest.lst
6584       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6585       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6586   (eval $lt_ar_try) 2>&5
6587   ac_status=$?
6588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6589   test $ac_status = 0; }
6590       if test "$ac_status" -eq 0; then
6591         # Ensure the archiver fails upon bogus file names.
6592         rm -f conftest.$ac_objext libconftest.a
6593         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6594   (eval $lt_ar_try) 2>&5
6595   ac_status=$?
6596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597   test $ac_status = 0; }
6598         if test "$ac_status" -ne 0; then
6599           lt_cv_ar_at_file=@
6600         fi
6601       fi
6602       rm -f conftest.* libconftest.a
6603
6604 fi
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606
6607 fi
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6609 $as_echo "$lt_cv_ar_at_file" >&6; }
6610
6611 if test "x$lt_cv_ar_at_file" = xno; then
6612   archiver_list_spec=
6613 else
6614   archiver_list_spec=$lt_cv_ar_at_file
6615 fi
6616
6617
6618
6619
6620
6621
6622
6623 if test -n "$ac_tool_prefix"; then
6624   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}strip; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if ${ac_cv_prog_STRIP+:} false; then :
6629   $as_echo_n "(cached) " >&6
6630 else
6631   if test -n "$STRIP"; then
6632   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637   IFS=$as_save_IFS
6638   test -z "$as_dir" && as_dir=.
6639     for ac_exec_ext in '' $ac_executable_extensions; do
6640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643     break 2
6644   fi
6645 done
6646   done
6647 IFS=$as_save_IFS
6648
6649 fi
6650 fi
6651 STRIP=$ac_cv_prog_STRIP
6652 if test -n "$STRIP"; then
6653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6654 $as_echo "$STRIP" >&6; }
6655 else
6656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6658 fi
6659
6660
6661 fi
6662 if test -z "$ac_cv_prog_STRIP"; then
6663   ac_ct_STRIP=$STRIP
6664   # Extract the first word of "strip", so it can be a program name with args.
6665 set dummy strip; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6669   $as_echo_n "(cached) " >&6
6670 else
6671   if test -n "$ac_ct_STRIP"; then
6672   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677   IFS=$as_save_IFS
6678   test -z "$as_dir" && as_dir=.
6679     for ac_exec_ext in '' $ac_executable_extensions; do
6680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681     ac_cv_prog_ac_ct_STRIP="strip"
6682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683     break 2
6684   fi
6685 done
6686   done
6687 IFS=$as_save_IFS
6688
6689 fi
6690 fi
6691 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6692 if test -n "$ac_ct_STRIP"; then
6693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6694 $as_echo "$ac_ct_STRIP" >&6; }
6695 else
6696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6698 fi
6699
6700   if test "x$ac_ct_STRIP" = x; then
6701     STRIP=":"
6702   else
6703     case $cross_compiling:$ac_tool_warned in
6704 yes:)
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707 ac_tool_warned=yes ;;
6708 esac
6709     STRIP=$ac_ct_STRIP
6710   fi
6711 else
6712   STRIP="$ac_cv_prog_STRIP"
6713 fi
6714
6715 test -z "$STRIP" && STRIP=:
6716
6717
6718
6719
6720
6721
6722 if test -n "$ac_tool_prefix"; then
6723   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if ${ac_cv_prog_RANLIB+:} false; then :
6728   $as_echo_n "(cached) " >&6
6729 else
6730   if test -n "$RANLIB"; then
6731   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736   IFS=$as_save_IFS
6737   test -z "$as_dir" && as_dir=.
6738     for ac_exec_ext in '' $ac_executable_extensions; do
6739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6740     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742     break 2
6743   fi
6744 done
6745   done
6746 IFS=$as_save_IFS
6747
6748 fi
6749 fi
6750 RANLIB=$ac_cv_prog_RANLIB
6751 if test -n "$RANLIB"; then
6752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6753 $as_echo "$RANLIB" >&6; }
6754 else
6755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6757 fi
6758
6759
6760 fi
6761 if test -z "$ac_cv_prog_RANLIB"; then
6762   ac_ct_RANLIB=$RANLIB
6763   # Extract the first word of "ranlib", so it can be a program name with args.
6764 set dummy ranlib; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6768   $as_echo_n "(cached) " >&6
6769 else
6770   if test -n "$ac_ct_RANLIB"; then
6771   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776   IFS=$as_save_IFS
6777   test -z "$as_dir" && as_dir=.
6778     for ac_exec_ext in '' $ac_executable_extensions; do
6779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780     ac_cv_prog_ac_ct_RANLIB="ranlib"
6781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782     break 2
6783   fi
6784 done
6785   done
6786 IFS=$as_save_IFS
6787
6788 fi
6789 fi
6790 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6791 if test -n "$ac_ct_RANLIB"; then
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6793 $as_echo "$ac_ct_RANLIB" >&6; }
6794 else
6795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6797 fi
6798
6799   if test "x$ac_ct_RANLIB" = x; then
6800     RANLIB=":"
6801   else
6802     case $cross_compiling:$ac_tool_warned in
6803 yes:)
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6806 ac_tool_warned=yes ;;
6807 esac
6808     RANLIB=$ac_ct_RANLIB
6809   fi
6810 else
6811   RANLIB="$ac_cv_prog_RANLIB"
6812 fi
6813
6814 test -z "$RANLIB" && RANLIB=:
6815
6816
6817
6818
6819
6820
6821 # Determine commands to create old-style static archives.
6822 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6823 old_postinstall_cmds='chmod 644 $oldlib'
6824 old_postuninstall_cmds=
6825
6826 if test -n "$RANLIB"; then
6827   case $host_os in
6828   openbsd*)
6829     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6830     ;;
6831   *)
6832     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6833     ;;
6834   esac
6835   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6836 fi
6837
6838 case $host_os in
6839   darwin*)
6840     lock_old_archive_extraction=yes ;;
6841   *)
6842     lock_old_archive_extraction=no ;;
6843 esac
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883 # If no C compiler was specified, use CC.
6884 LTCC=${LTCC-"$CC"}
6885
6886 # If no C compiler flags were specified, use CFLAGS.
6887 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6888
6889 # Allow CC to be a program name with arguments.
6890 compiler=$CC
6891
6892
6893 # Check for command to grab the raw symbol name followed by C symbol from nm.
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6895 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6896 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6897   $as_echo_n "(cached) " >&6
6898 else
6899
6900 # These are sane defaults that work on at least a few old systems.
6901 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6902
6903 # Character class describing NM global symbol codes.
6904 symcode='[BCDEGRST]'
6905
6906 # Regexp to match symbols that can be accessed directly from C.
6907 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6908
6909 # Define system-specific variables.
6910 case $host_os in
6911 aix*)
6912   symcode='[BCDT]'
6913   ;;
6914 cygwin* | mingw* | pw32* | cegcc*)
6915   symcode='[ABCDGISTW]'
6916   ;;
6917 hpux*)
6918   if test "$host_cpu" = ia64; then
6919     symcode='[ABCDEGRST]'
6920   fi
6921   ;;
6922 irix* | nonstopux*)
6923   symcode='[BCDEGRST]'
6924   ;;
6925 osf*)
6926   symcode='[BCDEGQRST]'
6927   ;;
6928 solaris*)
6929   symcode='[BDRT]'
6930   ;;
6931 sco3.2v5*)
6932   symcode='[DT]'
6933   ;;
6934 sysv4.2uw2*)
6935   symcode='[DT]'
6936   ;;
6937 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6938   symcode='[ABDT]'
6939   ;;
6940 sysv4)
6941   symcode='[DFNSTU]'
6942   ;;
6943 esac
6944
6945 # If we're using GNU nm, then use its standard symbol codes.
6946 case `$NM -V 2>&1` in
6947 *GNU* | *'with BFD'*)
6948   symcode='[ABCDGIRSTW]' ;;
6949 esac
6950
6951 # Transform an extracted symbol line into a proper C declaration.
6952 # Some systems (esp. on ia64) link data and code symbols differently,
6953 # so use this general approach.
6954 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6955
6956 # Transform an extracted symbol line into symbol name and symbol address
6957 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6958 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'"
6959
6960 # Handle CRLF in mingw tool chain
6961 opt_cr=
6962 case $build_os in
6963 mingw*)
6964   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6965   ;;
6966 esac
6967
6968 # Try without a prefix underscore, then with it.
6969 for ac_symprfx in "" "_"; do
6970
6971   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6972   symxfrm="\\1 $ac_symprfx\\2 \\2"
6973
6974   # Write the raw and C identifiers.
6975   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6976     # Fake it for dumpbin and say T for any non-static function
6977     # and D for any global variable.
6978     # Also find C++ and __fastcall symbols from MSVC++,
6979     # which start with @ or ?.
6980     lt_cv_sys_global_symbol_pipe="$AWK '"\
6981 "     {last_section=section; section=\$ 3};"\
6982 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6983 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6984 "     \$ 0!~/External *\|/{next};"\
6985 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6986 "     {if(hide[section]) next};"\
6987 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6988 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6989 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6990 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6991 "     ' prfx=^$ac_symprfx"
6992   else
6993     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6994   fi
6995   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6996
6997   # Check to see that the pipe works correctly.
6998   pipe_works=no
6999
7000   rm -f conftest*
7001   cat > conftest.$ac_ext <<_LT_EOF
7002 #ifdef __cplusplus
7003 extern "C" {
7004 #endif
7005 char nm_test_var;
7006 void nm_test_func(void);
7007 void nm_test_func(void){}
7008 #ifdef __cplusplus
7009 }
7010 #endif
7011 int main(){nm_test_var='a';nm_test_func();return(0);}
7012 _LT_EOF
7013
7014   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7015   (eval $ac_compile) 2>&5
7016   ac_status=$?
7017   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7018   test $ac_status = 0; }; then
7019     # Now try to grab the symbols.
7020     nlist=conftest.nm
7021     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7022   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7023   ac_status=$?
7024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7025   test $ac_status = 0; } && test -s "$nlist"; then
7026       # Try sorting and uniquifying the output.
7027       if sort "$nlist" | uniq > "$nlist"T; then
7028         mv -f "$nlist"T "$nlist"
7029       else
7030         rm -f "$nlist"T
7031       fi
7032
7033       # Make sure that we snagged all the symbols we need.
7034       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7035         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7036           cat <<_LT_EOF > conftest.$ac_ext
7037 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7038 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7039 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7040    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7041 # define LT_DLSYM_CONST
7042 #elif defined(__osf__)
7043 /* This system does not cope well with relocations in const data.  */
7044 # define LT_DLSYM_CONST
7045 #else
7046 # define LT_DLSYM_CONST const
7047 #endif
7048
7049 #ifdef __cplusplus
7050 extern "C" {
7051 #endif
7052
7053 _LT_EOF
7054           # Now generate the symbol file.
7055           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7056
7057           cat <<_LT_EOF >> conftest.$ac_ext
7058
7059 /* The mapping between symbol names and symbols.  */
7060 LT_DLSYM_CONST struct {
7061   const char *name;
7062   void       *address;
7063 }
7064 lt__PROGRAM__LTX_preloaded_symbols[] =
7065 {
7066   { "@PROGRAM@", (void *) 0 },
7067 _LT_EOF
7068           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7069           cat <<\_LT_EOF >> conftest.$ac_ext
7070   {0, (void *) 0}
7071 };
7072
7073 /* This works around a problem in FreeBSD linker */
7074 #ifdef FREEBSD_WORKAROUND
7075 static const void *lt_preloaded_setup() {
7076   return lt__PROGRAM__LTX_preloaded_symbols;
7077 }
7078 #endif
7079
7080 #ifdef __cplusplus
7081 }
7082 #endif
7083 _LT_EOF
7084           # Now try linking the two files.
7085           mv conftest.$ac_objext conftstm.$ac_objext
7086           lt_globsym_save_LIBS=$LIBS
7087           lt_globsym_save_CFLAGS=$CFLAGS
7088           LIBS="conftstm.$ac_objext"
7089           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7090           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7091   (eval $ac_link) 2>&5
7092   ac_status=$?
7093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7094   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7095             pipe_works=yes
7096           fi
7097           LIBS=$lt_globsym_save_LIBS
7098           CFLAGS=$lt_globsym_save_CFLAGS
7099         else
7100           echo "cannot find nm_test_func in $nlist" >&5
7101         fi
7102       else
7103         echo "cannot find nm_test_var in $nlist" >&5
7104       fi
7105     else
7106       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7107     fi
7108   else
7109     echo "$progname: failed program was:" >&5
7110     cat conftest.$ac_ext >&5
7111   fi
7112   rm -rf conftest* conftst*
7113
7114   # Do not use the global_symbol_pipe unless it works.
7115   if test "$pipe_works" = yes; then
7116     break
7117   else
7118     lt_cv_sys_global_symbol_pipe=
7119   fi
7120 done
7121
7122 fi
7123
7124 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7125   lt_cv_sys_global_symbol_to_cdecl=
7126 fi
7127 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7129 $as_echo "failed" >&6; }
7130 else
7131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7132 $as_echo "ok" >&6; }
7133 fi
7134
7135 # Response file support.
7136 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7137   nm_file_list_spec='@'
7138 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7139   nm_file_list_spec='@'
7140 fi
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7169 $as_echo_n "checking for sysroot... " >&6; }
7170
7171 # Check whether --with-sysroot was given.
7172 if test "${with_sysroot+set}" = set; then :
7173   withval=$with_sysroot;
7174 else
7175   with_sysroot=no
7176 fi
7177
7178
7179 lt_sysroot=
7180 case ${with_sysroot} in #(
7181  yes)
7182    if test "$GCC" = yes; then
7183      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7184    fi
7185    ;; #(
7186  /*)
7187    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7188    ;; #(
7189  no|'')
7190    ;; #(
7191  *)
7192    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7193 $as_echo "${with_sysroot}" >&6; }
7194    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7195    ;;
7196 esac
7197
7198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7199 $as_echo "${lt_sysroot:-no}" >&6; }
7200
7201
7202
7203
7204
7205 # Check whether --enable-libtool-lock was given.
7206 if test "${enable_libtool_lock+set}" = set; then :
7207   enableval=$enable_libtool_lock;
7208 fi
7209
7210 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7211
7212 # Some flags need to be propagated to the compiler or linker for good
7213 # libtool support.
7214 case $host in
7215 ia64-*-hpux*)
7216   # Find out which ABI we are using.
7217   echo 'int i;' > conftest.$ac_ext
7218   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7219   (eval $ac_compile) 2>&5
7220   ac_status=$?
7221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7222   test $ac_status = 0; }; then
7223     case `/usr/bin/file conftest.$ac_objext` in
7224       *ELF-32*)
7225         HPUX_IA64_MODE="32"
7226         ;;
7227       *ELF-64*)
7228         HPUX_IA64_MODE="64"
7229         ;;
7230     esac
7231   fi
7232   rm -rf conftest*
7233   ;;
7234 *-*-irix6*)
7235   # Find out which ABI we are using.
7236   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7237   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7238   (eval $ac_compile) 2>&5
7239   ac_status=$?
7240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241   test $ac_status = 0; }; then
7242     if test "$lt_cv_prog_gnu_ld" = yes; then
7243       case `/usr/bin/file conftest.$ac_objext` in
7244         *32-bit*)
7245           LD="${LD-ld} -melf32bsmip"
7246           ;;
7247         *N32*)
7248           LD="${LD-ld} -melf32bmipn32"
7249           ;;
7250         *64-bit*)
7251           LD="${LD-ld} -melf64bmip"
7252         ;;
7253       esac
7254     else
7255       case `/usr/bin/file conftest.$ac_objext` in
7256         *32-bit*)
7257           LD="${LD-ld} -32"
7258           ;;
7259         *N32*)
7260           LD="${LD-ld} -n32"
7261           ;;
7262         *64-bit*)
7263           LD="${LD-ld} -64"
7264           ;;
7265       esac
7266     fi
7267   fi
7268   rm -rf conftest*
7269   ;;
7270
7271 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7272 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7273   # Find out which ABI we are using.
7274   echo 'int i;' > conftest.$ac_ext
7275   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7276   (eval $ac_compile) 2>&5
7277   ac_status=$?
7278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7279   test $ac_status = 0; }; then
7280     case `/usr/bin/file conftest.o` in
7281       *32-bit*)
7282         case $host in
7283           x86_64-*kfreebsd*-gnu)
7284             LD="${LD-ld} -m elf_i386_fbsd"
7285             ;;
7286           x86_64-*linux*)
7287             case `/usr/bin/file conftest.o` in
7288               *x86-64*)
7289                 LD="${LD-ld} -m elf32_x86_64"
7290                 ;;
7291               *)
7292                 LD="${LD-ld} -m elf_i386"
7293                 ;;
7294             esac
7295             ;;
7296           powerpc64le-*)
7297             LD="${LD-ld} -m elf32lppclinux"
7298             ;;
7299           powerpc64-*)
7300             LD="${LD-ld} -m elf32ppclinux"
7301             ;;
7302           s390x-*linux*)
7303             LD="${LD-ld} -m elf_s390"
7304             ;;
7305           sparc64-*linux*)
7306             LD="${LD-ld} -m elf32_sparc"
7307             ;;
7308         esac
7309         ;;
7310       *64-bit*)
7311         case $host in
7312           x86_64-*kfreebsd*-gnu)
7313             LD="${LD-ld} -m elf_x86_64_fbsd"
7314             ;;
7315           x86_64-*linux*)
7316             LD="${LD-ld} -m elf_x86_64"
7317             ;;
7318           powerpcle-*)
7319             LD="${LD-ld} -m elf64lppc"
7320             ;;
7321           powerpc-*)
7322             LD="${LD-ld} -m elf64ppc"
7323             ;;
7324           s390*-*linux*|s390*-*tpf*)
7325             LD="${LD-ld} -m elf64_s390"
7326             ;;
7327           sparc*-*linux*)
7328             LD="${LD-ld} -m elf64_sparc"
7329             ;;
7330         esac
7331         ;;
7332     esac
7333   fi
7334   rm -rf conftest*
7335   ;;
7336
7337 *-*-sco3.2v5*)
7338   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7339   SAVE_CFLAGS="$CFLAGS"
7340   CFLAGS="$CFLAGS -belf"
7341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7342 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7343 if ${lt_cv_cc_needs_belf+:} false; then :
7344   $as_echo_n "(cached) " >&6
7345 else
7346   ac_ext=c
7347 ac_cpp='$CPP $CPPFLAGS'
7348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7351
7352      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h.  */
7354
7355 int
7356 main ()
7357 {
7358
7359   ;
7360   return 0;
7361 }
7362 _ACEOF
7363 if ac_fn_c_try_link "$LINENO"; then :
7364   lt_cv_cc_needs_belf=yes
7365 else
7366   lt_cv_cc_needs_belf=no
7367 fi
7368 rm -f core conftest.err conftest.$ac_objext \
7369     conftest$ac_exeext conftest.$ac_ext
7370      ac_ext=c
7371 ac_cpp='$CPP $CPPFLAGS'
7372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7375
7376 fi
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7378 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7379   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7380     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7381     CFLAGS="$SAVE_CFLAGS"
7382   fi
7383   ;;
7384 *-*solaris*)
7385   # Find out which ABI we are using.
7386   echo 'int i;' > conftest.$ac_ext
7387   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7388   (eval $ac_compile) 2>&5
7389   ac_status=$?
7390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7391   test $ac_status = 0; }; then
7392     case `/usr/bin/file conftest.o` in
7393     *64-bit*)
7394       case $lt_cv_prog_gnu_ld in
7395       yes*)
7396         case $host in
7397         i?86-*-solaris*)
7398           LD="${LD-ld} -m elf_x86_64"
7399           ;;
7400         sparc*-*-solaris*)
7401           LD="${LD-ld} -m elf64_sparc"
7402           ;;
7403         esac
7404         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7405         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7406           LD="${LD-ld}_sol2"
7407         fi
7408         ;;
7409       *)
7410         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7411           LD="${LD-ld} -64"
7412         fi
7413         ;;
7414       esac
7415       ;;
7416     esac
7417   fi
7418   rm -rf conftest*
7419   ;;
7420 esac
7421
7422 need_locks="$enable_libtool_lock"
7423
7424 if test -n "$ac_tool_prefix"; then
7425   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7426 set dummy ${ac_tool_prefix}mt; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7430   $as_echo_n "(cached) " >&6
7431 else
7432   if test -n "$MANIFEST_TOOL"; then
7433   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7434 else
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438   IFS=$as_save_IFS
7439   test -z "$as_dir" && as_dir=.
7440     for ac_exec_ext in '' $ac_executable_extensions; do
7441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444     break 2
7445   fi
7446 done
7447   done
7448 IFS=$as_save_IFS
7449
7450 fi
7451 fi
7452 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7453 if test -n "$MANIFEST_TOOL"; then
7454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7455 $as_echo "$MANIFEST_TOOL" >&6; }
7456 else
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7459 fi
7460
7461
7462 fi
7463 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7464   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7465   # Extract the first word of "mt", so it can be a program name with args.
7466 set dummy mt; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7470   $as_echo_n "(cached) " >&6
7471 else
7472   if test -n "$ac_ct_MANIFEST_TOOL"; then
7473   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478   IFS=$as_save_IFS
7479   test -z "$as_dir" && as_dir=.
7480     for ac_exec_ext in '' $ac_executable_extensions; do
7481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484     break 2
7485   fi
7486 done
7487   done
7488 IFS=$as_save_IFS
7489
7490 fi
7491 fi
7492 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7493 if test -n "$ac_ct_MANIFEST_TOOL"; then
7494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7495 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7496 else
7497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7499 fi
7500
7501   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7502     MANIFEST_TOOL=":"
7503   else
7504     case $cross_compiling:$ac_tool_warned in
7505 yes:)
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7508 ac_tool_warned=yes ;;
7509 esac
7510     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7511   fi
7512 else
7513   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7514 fi
7515
7516 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7518 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7519 if ${lt_cv_path_mainfest_tool+:} false; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522   lt_cv_path_mainfest_tool=no
7523   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7524   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7525   cat conftest.err >&5
7526   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7527     lt_cv_path_mainfest_tool=yes
7528   fi
7529   rm -f conftest*
7530 fi
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7532 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7533 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7534   MANIFEST_TOOL=:
7535 fi
7536
7537
7538
7539
7540
7541
7542   case $host_os in
7543     rhapsody* | darwin*)
7544     if test -n "$ac_tool_prefix"; then
7545   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7546 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552   if test -n "$DSYMUTIL"; then
7553   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560     for ac_exec_ext in '' $ac_executable_extensions; do
7561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567   done
7568 IFS=$as_save_IFS
7569
7570 fi
7571 fi
7572 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7573 if test -n "$DSYMUTIL"; then
7574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7575 $as_echo "$DSYMUTIL" >&6; }
7576 else
7577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7579 fi
7580
7581
7582 fi
7583 if test -z "$ac_cv_prog_DSYMUTIL"; then
7584   ac_ct_DSYMUTIL=$DSYMUTIL
7585   # Extract the first word of "dsymutil", so it can be a program name with args.
7586 set dummy dsymutil; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7590   $as_echo_n "(cached) " >&6
7591 else
7592   if test -n "$ac_ct_DSYMUTIL"; then
7593   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598   IFS=$as_save_IFS
7599   test -z "$as_dir" && as_dir=.
7600     for ac_exec_ext in '' $ac_executable_extensions; do
7601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607   done
7608 IFS=$as_save_IFS
7609
7610 fi
7611 fi
7612 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7613 if test -n "$ac_ct_DSYMUTIL"; then
7614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7615 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7616 else
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621   if test "x$ac_ct_DSYMUTIL" = x; then
7622     DSYMUTIL=":"
7623   else
7624     case $cross_compiling:$ac_tool_warned in
7625 yes:)
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7628 ac_tool_warned=yes ;;
7629 esac
7630     DSYMUTIL=$ac_ct_DSYMUTIL
7631   fi
7632 else
7633   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7634 fi
7635
7636     if test -n "$ac_tool_prefix"; then
7637   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7638 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640 $as_echo_n "checking for $ac_word... " >&6; }
7641 if ${ac_cv_prog_NMEDIT+:} false; then :
7642   $as_echo_n "(cached) " >&6
7643 else
7644   if test -n "$NMEDIT"; then
7645   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7646 else
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 for as_dir in $PATH
7649 do
7650   IFS=$as_save_IFS
7651   test -z "$as_dir" && as_dir=.
7652     for ac_exec_ext in '' $ac_executable_extensions; do
7653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656     break 2
7657   fi
7658 done
7659   done
7660 IFS=$as_save_IFS
7661
7662 fi
7663 fi
7664 NMEDIT=$ac_cv_prog_NMEDIT
7665 if test -n "$NMEDIT"; then
7666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7667 $as_echo "$NMEDIT" >&6; }
7668 else
7669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7671 fi
7672
7673
7674 fi
7675 if test -z "$ac_cv_prog_NMEDIT"; then
7676   ac_ct_NMEDIT=$NMEDIT
7677   # Extract the first word of "nmedit", so it can be a program name with args.
7678 set dummy nmedit; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   if test -n "$ac_ct_NMEDIT"; then
7685   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690   IFS=$as_save_IFS
7691   test -z "$as_dir" && as_dir=.
7692     for ac_exec_ext in '' $ac_executable_extensions; do
7693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696     break 2
7697   fi
7698 done
7699   done
7700 IFS=$as_save_IFS
7701
7702 fi
7703 fi
7704 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7705 if test -n "$ac_ct_NMEDIT"; then
7706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7707 $as_echo "$ac_ct_NMEDIT" >&6; }
7708 else
7709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 fi
7712
7713   if test "x$ac_ct_NMEDIT" = x; then
7714     NMEDIT=":"
7715   else
7716     case $cross_compiling:$ac_tool_warned in
7717 yes:)
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7720 ac_tool_warned=yes ;;
7721 esac
7722     NMEDIT=$ac_ct_NMEDIT
7723   fi
7724 else
7725   NMEDIT="$ac_cv_prog_NMEDIT"
7726 fi
7727
7728     if test -n "$ac_tool_prefix"; then
7729   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7730 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732 $as_echo_n "checking for $ac_word... " >&6; }
7733 if ${ac_cv_prog_LIPO+:} false; then :
7734   $as_echo_n "(cached) " >&6
7735 else
7736   if test -n "$LIPO"; then
7737   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7738 else
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 for as_dir in $PATH
7741 do
7742   IFS=$as_save_IFS
7743   test -z "$as_dir" && as_dir=.
7744     for ac_exec_ext in '' $ac_executable_extensions; do
7745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748     break 2
7749   fi
7750 done
7751   done
7752 IFS=$as_save_IFS
7753
7754 fi
7755 fi
7756 LIPO=$ac_cv_prog_LIPO
7757 if test -n "$LIPO"; then
7758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7759 $as_echo "$LIPO" >&6; }
7760 else
7761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 $as_echo "no" >&6; }
7763 fi
7764
7765
7766 fi
7767 if test -z "$ac_cv_prog_LIPO"; then
7768   ac_ct_LIPO=$LIPO
7769   # Extract the first word of "lipo", so it can be a program name with args.
7770 set dummy lipo; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7774   $as_echo_n "(cached) " >&6
7775 else
7776   if test -n "$ac_ct_LIPO"; then
7777   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7778 else
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7781 do
7782   IFS=$as_save_IFS
7783   test -z "$as_dir" && as_dir=.
7784     for ac_exec_ext in '' $ac_executable_extensions; do
7785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786     ac_cv_prog_ac_ct_LIPO="lipo"
7787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788     break 2
7789   fi
7790 done
7791   done
7792 IFS=$as_save_IFS
7793
7794 fi
7795 fi
7796 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7797 if test -n "$ac_ct_LIPO"; then
7798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7799 $as_echo "$ac_ct_LIPO" >&6; }
7800 else
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7803 fi
7804
7805   if test "x$ac_ct_LIPO" = x; then
7806     LIPO=":"
7807   else
7808     case $cross_compiling:$ac_tool_warned in
7809 yes:)
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7812 ac_tool_warned=yes ;;
7813 esac
7814     LIPO=$ac_ct_LIPO
7815   fi
7816 else
7817   LIPO="$ac_cv_prog_LIPO"
7818 fi
7819
7820     if test -n "$ac_tool_prefix"; then
7821   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7822 set dummy ${ac_tool_prefix}otool; ac_word=$2
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824 $as_echo_n "checking for $ac_word... " >&6; }
7825 if ${ac_cv_prog_OTOOL+:} false; then :
7826   $as_echo_n "(cached) " >&6
7827 else
7828   if test -n "$OTOOL"; then
7829   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7830 else
7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832 for as_dir in $PATH
7833 do
7834   IFS=$as_save_IFS
7835   test -z "$as_dir" && as_dir=.
7836     for ac_exec_ext in '' $ac_executable_extensions; do
7837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7838     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7840     break 2
7841   fi
7842 done
7843   done
7844 IFS=$as_save_IFS
7845
7846 fi
7847 fi
7848 OTOOL=$ac_cv_prog_OTOOL
7849 if test -n "$OTOOL"; then
7850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7851 $as_echo "$OTOOL" >&6; }
7852 else
7853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854 $as_echo "no" >&6; }
7855 fi
7856
7857
7858 fi
7859 if test -z "$ac_cv_prog_OTOOL"; then
7860   ac_ct_OTOOL=$OTOOL
7861   # Extract the first word of "otool", so it can be a program name with args.
7862 set dummy otool; ac_word=$2
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 $as_echo_n "checking for $ac_word... " >&6; }
7865 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7866   $as_echo_n "(cached) " >&6
7867 else
7868   if test -n "$ac_ct_OTOOL"; then
7869   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7870 else
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 for as_dir in $PATH
7873 do
7874   IFS=$as_save_IFS
7875   test -z "$as_dir" && as_dir=.
7876     for ac_exec_ext in '' $ac_executable_extensions; do
7877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7878     ac_cv_prog_ac_ct_OTOOL="otool"
7879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880     break 2
7881   fi
7882 done
7883   done
7884 IFS=$as_save_IFS
7885
7886 fi
7887 fi
7888 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7889 if test -n "$ac_ct_OTOOL"; then
7890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7891 $as_echo "$ac_ct_OTOOL" >&6; }
7892 else
7893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 $as_echo "no" >&6; }
7895 fi
7896
7897   if test "x$ac_ct_OTOOL" = x; then
7898     OTOOL=":"
7899   else
7900     case $cross_compiling:$ac_tool_warned in
7901 yes:)
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7904 ac_tool_warned=yes ;;
7905 esac
7906     OTOOL=$ac_ct_OTOOL
7907   fi
7908 else
7909   OTOOL="$ac_cv_prog_OTOOL"
7910 fi
7911
7912     if test -n "$ac_tool_prefix"; then
7913   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7914 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916 $as_echo_n "checking for $ac_word... " >&6; }
7917 if ${ac_cv_prog_OTOOL64+:} false; then :
7918   $as_echo_n "(cached) " >&6
7919 else
7920   if test -n "$OTOOL64"; then
7921   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7922 else
7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 for as_dir in $PATH
7925 do
7926   IFS=$as_save_IFS
7927   test -z "$as_dir" && as_dir=.
7928     for ac_exec_ext in '' $ac_executable_extensions; do
7929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7930     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7932     break 2
7933   fi
7934 done
7935   done
7936 IFS=$as_save_IFS
7937
7938 fi
7939 fi
7940 OTOOL64=$ac_cv_prog_OTOOL64
7941 if test -n "$OTOOL64"; then
7942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7943 $as_echo "$OTOOL64" >&6; }
7944 else
7945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7947 fi
7948
7949
7950 fi
7951 if test -z "$ac_cv_prog_OTOOL64"; then
7952   ac_ct_OTOOL64=$OTOOL64
7953   # Extract the first word of "otool64", so it can be a program name with args.
7954 set dummy otool64; ac_word=$2
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956 $as_echo_n "checking for $ac_word... " >&6; }
7957 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7958   $as_echo_n "(cached) " >&6
7959 else
7960   if test -n "$ac_ct_OTOOL64"; then
7961   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7962 else
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7965 do
7966   IFS=$as_save_IFS
7967   test -z "$as_dir" && as_dir=.
7968     for ac_exec_ext in '' $ac_executable_extensions; do
7969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7970     ac_cv_prog_ac_ct_OTOOL64="otool64"
7971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7972     break 2
7973   fi
7974 done
7975   done
7976 IFS=$as_save_IFS
7977
7978 fi
7979 fi
7980 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7981 if test -n "$ac_ct_OTOOL64"; then
7982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7983 $as_echo "$ac_ct_OTOOL64" >&6; }
7984 else
7985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7987 fi
7988
7989   if test "x$ac_ct_OTOOL64" = x; then
7990     OTOOL64=":"
7991   else
7992     case $cross_compiling:$ac_tool_warned in
7993 yes:)
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7996 ac_tool_warned=yes ;;
7997 esac
7998     OTOOL64=$ac_ct_OTOOL64
7999   fi
8000 else
8001   OTOOL64="$ac_cv_prog_OTOOL64"
8002 fi
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8031 $as_echo_n "checking for -single_module linker flag... " >&6; }
8032 if ${lt_cv_apple_cc_single_mod+:} false; then :
8033   $as_echo_n "(cached) " >&6
8034 else
8035   lt_cv_apple_cc_single_mod=no
8036       if test -z "${LT_MULTI_MODULE}"; then
8037         # By default we will add the -single_module flag. You can override
8038         # by either setting the environment variable LT_MULTI_MODULE
8039         # non-empty at configure time, or by adding -multi_module to the
8040         # link flags.
8041         rm -rf libconftest.dylib*
8042         echo "int foo(void){return 1;}" > conftest.c
8043         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8044 -dynamiclib -Wl,-single_module conftest.c" >&5
8045         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8046           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8047         _lt_result=$?
8048         # If there is a non-empty error log, and "single_module"
8049         # appears in it, assume the flag caused a linker warning
8050         if test -s conftest.err && $GREP single_module conftest.err; then
8051           cat conftest.err >&5
8052         # Otherwise, if the output was created with a 0 exit code from
8053         # the compiler, it worked.
8054         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8055           lt_cv_apple_cc_single_mod=yes
8056         else
8057           cat conftest.err >&5
8058         fi
8059         rm -rf libconftest.dylib*
8060         rm -f conftest.*
8061       fi
8062 fi
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8064 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8065
8066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8067 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8068 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8069   $as_echo_n "(cached) " >&6
8070 else
8071   lt_cv_ld_exported_symbols_list=no
8072       save_LDFLAGS=$LDFLAGS
8073       echo "_main" > conftest.sym
8074       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8075       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h.  */
8077
8078 int
8079 main ()
8080 {
8081
8082   ;
8083   return 0;
8084 }
8085 _ACEOF
8086 if ac_fn_c_try_link "$LINENO"; then :
8087   lt_cv_ld_exported_symbols_list=yes
8088 else
8089   lt_cv_ld_exported_symbols_list=no
8090 fi
8091 rm -f core conftest.err conftest.$ac_objext \
8092     conftest$ac_exeext conftest.$ac_ext
8093         LDFLAGS="$save_LDFLAGS"
8094
8095 fi
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8097 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8098
8099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8100 $as_echo_n "checking for -force_load linker flag... " >&6; }
8101 if ${lt_cv_ld_force_load+:} false; then :
8102   $as_echo_n "(cached) " >&6
8103 else
8104   lt_cv_ld_force_load=no
8105       cat > conftest.c << _LT_EOF
8106 int forced_loaded() { return 2;}
8107 _LT_EOF
8108       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8109       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8110       echo "$AR cru libconftest.a conftest.o" >&5
8111       $AR cru libconftest.a conftest.o 2>&5
8112       echo "$RANLIB libconftest.a" >&5
8113       $RANLIB libconftest.a 2>&5
8114       cat > conftest.c << _LT_EOF
8115 int main() { return 0;}
8116 _LT_EOF
8117       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8118       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8119       _lt_result=$?
8120       if test -s conftest.err && $GREP force_load conftest.err; then
8121         cat conftest.err >&5
8122       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8123         lt_cv_ld_force_load=yes
8124       else
8125         cat conftest.err >&5
8126       fi
8127         rm -f conftest.err libconftest.a conftest conftest.c
8128         rm -rf conftest.dSYM
8129
8130 fi
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8132 $as_echo "$lt_cv_ld_force_load" >&6; }
8133     case $host_os in
8134     rhapsody* | darwin1.[012])
8135       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8136     darwin1.*)
8137       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8138     darwin*) # darwin 5.x on
8139       # if running on 10.5 or later, the deployment target defaults
8140       # to the OS version, if on x86, and 10.4, the deployment
8141       # target defaults to 10.4. Don't you love it?
8142       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8143         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8144           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8145         10.[012]*)
8146           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8147         10.*)
8148           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8149       esac
8150     ;;
8151   esac
8152     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8153       _lt_dar_single_mod='$single_module'
8154     fi
8155     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8156       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8157     else
8158       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8159     fi
8160     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8161       _lt_dsymutil='~$DSYMUTIL $lib || :'
8162     else
8163       _lt_dsymutil=
8164     fi
8165     ;;
8166   esac
8167
8168 ac_ext=c
8169 ac_cpp='$CPP $CPPFLAGS'
8170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8174 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8175 # On Suns, sometimes $CPP names a directory.
8176 if test -n "$CPP" && test -d "$CPP"; then
8177   CPP=
8178 fi
8179 if test -z "$CPP"; then
8180   if ${ac_cv_prog_CPP+:} false; then :
8181   $as_echo_n "(cached) " >&6
8182 else
8183       # Double quotes because CPP needs to be expanded
8184     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8185     do
8186       ac_preproc_ok=false
8187 for ac_c_preproc_warn_flag in '' yes
8188 do
8189   # Use a header file that comes with gcc, so configuring glibc
8190   # with a fresh cross-compiler works.
8191   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8192   # <limits.h> exists even on freestanding compilers.
8193   # On the NeXT, cc -E runs the code through the compiler's parser,
8194   # not just through cpp. "Syntax error" is here to catch this case.
8195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h.  */
8197 #ifdef __STDC__
8198 # include <limits.h>
8199 #else
8200 # include <assert.h>
8201 #endif
8202                      Syntax error
8203 _ACEOF
8204 if ac_fn_c_try_cpp "$LINENO"; then :
8205
8206 else
8207   # Broken: fails on valid input.
8208 continue
8209 fi
8210 rm -f conftest.err conftest.i conftest.$ac_ext
8211
8212   # OK, works on sane cases.  Now check whether nonexistent headers
8213   # can be detected and how.
8214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h.  */
8216 #include <ac_nonexistent.h>
8217 _ACEOF
8218 if ac_fn_c_try_cpp "$LINENO"; then :
8219   # Broken: success on invalid input.
8220 continue
8221 else
8222   # Passes both tests.
8223 ac_preproc_ok=:
8224 break
8225 fi
8226 rm -f conftest.err conftest.i conftest.$ac_ext
8227
8228 done
8229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8230 rm -f conftest.i conftest.err conftest.$ac_ext
8231 if $ac_preproc_ok; then :
8232   break
8233 fi
8234
8235     done
8236     ac_cv_prog_CPP=$CPP
8237
8238 fi
8239   CPP=$ac_cv_prog_CPP
8240 else
8241   ac_cv_prog_CPP=$CPP
8242 fi
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8244 $as_echo "$CPP" >&6; }
8245 ac_preproc_ok=false
8246 for ac_c_preproc_warn_flag in '' yes
8247 do
8248   # Use a header file that comes with gcc, so configuring glibc
8249   # with a fresh cross-compiler works.
8250   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8251   # <limits.h> exists even on freestanding compilers.
8252   # On the NeXT, cc -E runs the code through the compiler's parser,
8253   # not just through cpp. "Syntax error" is here to catch this case.
8254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h.  */
8256 #ifdef __STDC__
8257 # include <limits.h>
8258 #else
8259 # include <assert.h>
8260 #endif
8261                      Syntax error
8262 _ACEOF
8263 if ac_fn_c_try_cpp "$LINENO"; then :
8264
8265 else
8266   # Broken: fails on valid input.
8267 continue
8268 fi
8269 rm -f conftest.err conftest.i conftest.$ac_ext
8270
8271   # OK, works on sane cases.  Now check whether nonexistent headers
8272   # can be detected and how.
8273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h.  */
8275 #include <ac_nonexistent.h>
8276 _ACEOF
8277 if ac_fn_c_try_cpp "$LINENO"; then :
8278   # Broken: success on invalid input.
8279 continue
8280 else
8281   # Passes both tests.
8282 ac_preproc_ok=:
8283 break
8284 fi
8285 rm -f conftest.err conftest.i conftest.$ac_ext
8286
8287 done
8288 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8289 rm -f conftest.i conftest.err conftest.$ac_ext
8290 if $ac_preproc_ok; then :
8291
8292 else
8293   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8295 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8296 See \`config.log' for more details" "$LINENO" 5; }
8297 fi
8298
8299 ac_ext=c
8300 ac_cpp='$CPP $CPPFLAGS'
8301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8304
8305
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8307 $as_echo_n "checking for ANSI C header files... " >&6; }
8308 if ${ac_cv_header_stdc+:} false; then :
8309   $as_echo_n "(cached) " >&6
8310 else
8311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h.  */
8313 #include <stdlib.h>
8314 #include <stdarg.h>
8315 #include <string.h>
8316 #include <float.h>
8317
8318 int
8319 main ()
8320 {
8321
8322   ;
8323   return 0;
8324 }
8325 _ACEOF
8326 if ac_fn_c_try_compile "$LINENO"; then :
8327   ac_cv_header_stdc=yes
8328 else
8329   ac_cv_header_stdc=no
8330 fi
8331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332
8333 if test $ac_cv_header_stdc = yes; then
8334   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h.  */
8337 #include <string.h>
8338
8339 _ACEOF
8340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8341   $EGREP "memchr" >/dev/null 2>&1; then :
8342
8343 else
8344   ac_cv_header_stdc=no
8345 fi
8346 rm -f conftest*
8347
8348 fi
8349
8350 if test $ac_cv_header_stdc = yes; then
8351   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h.  */
8354 #include <stdlib.h>
8355
8356 _ACEOF
8357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8358   $EGREP "free" >/dev/null 2>&1; then :
8359
8360 else
8361   ac_cv_header_stdc=no
8362 fi
8363 rm -f conftest*
8364
8365 fi
8366
8367 if test $ac_cv_header_stdc = yes; then
8368   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8369   if test "$cross_compiling" = yes; then :
8370   :
8371 else
8372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h.  */
8374 #include <ctype.h>
8375 #include <stdlib.h>
8376 #if ((' ' & 0x0FF) == 0x020)
8377 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8378 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8379 #else
8380 # define ISLOWER(c) \
8381                    (('a' <= (c) && (c) <= 'i') \
8382                      || ('j' <= (c) && (c) <= 'r') \
8383                      || ('s' <= (c) && (c) <= 'z'))
8384 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8385 #endif
8386
8387 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8388 int
8389 main ()
8390 {
8391   int i;
8392   for (i = 0; i < 256; i++)
8393     if (XOR (islower (i), ISLOWER (i))
8394         || toupper (i) != TOUPPER (i))
8395       return 2;
8396   return 0;
8397 }
8398 _ACEOF
8399 if ac_fn_c_try_run "$LINENO"; then :
8400
8401 else
8402   ac_cv_header_stdc=no
8403 fi
8404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8405   conftest.$ac_objext conftest.beam conftest.$ac_ext
8406 fi
8407
8408 fi
8409 fi
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8411 $as_echo "$ac_cv_header_stdc" >&6; }
8412 if test $ac_cv_header_stdc = yes; then
8413
8414 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8415
8416 fi
8417
8418 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8419 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8420                   inttypes.h stdint.h unistd.h
8421 do :
8422   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8423 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8424 "
8425 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8426   cat >>confdefs.h <<_ACEOF
8427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8428 _ACEOF
8429
8430 fi
8431
8432 done
8433
8434
8435 for ac_header in dlfcn.h
8436 do :
8437   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8438 "
8439 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8440   cat >>confdefs.h <<_ACEOF
8441 #define HAVE_DLFCN_H 1
8442 _ACEOF
8443
8444 fi
8445
8446 done
8447
8448
8449
8450
8451 func_stripname_cnf ()
8452 {
8453   case ${2} in
8454   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8455   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8456   esac
8457 } # func_stripname_cnf
8458
8459
8460
8461
8462
8463 # Set options
8464 enable_win32_dll=yes
8465
8466 case $host in
8467 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8468   if test -n "$ac_tool_prefix"; then
8469   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8470 set dummy ${ac_tool_prefix}as; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if ${ac_cv_prog_AS+:} false; then :
8474   $as_echo_n "(cached) " >&6
8475 else
8476   if test -n "$AS"; then
8477   ac_cv_prog_AS="$AS" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8481 do
8482   IFS=$as_save_IFS
8483   test -z "$as_dir" && as_dir=.
8484     for ac_exec_ext in '' $ac_executable_extensions; do
8485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8486     ac_cv_prog_AS="${ac_tool_prefix}as"
8487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488     break 2
8489   fi
8490 done
8491   done
8492 IFS=$as_save_IFS
8493
8494 fi
8495 fi
8496 AS=$ac_cv_prog_AS
8497 if test -n "$AS"; then
8498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8499 $as_echo "$AS" >&6; }
8500 else
8501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8503 fi
8504
8505
8506 fi
8507 if test -z "$ac_cv_prog_AS"; then
8508   ac_ct_AS=$AS
8509   # Extract the first word of "as", so it can be a program name with args.
8510 set dummy as; ac_word=$2
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512 $as_echo_n "checking for $ac_word... " >&6; }
8513 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8514   $as_echo_n "(cached) " >&6
8515 else
8516   if test -n "$ac_ct_AS"; then
8517   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8518 else
8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 for as_dir in $PATH
8521 do
8522   IFS=$as_save_IFS
8523   test -z "$as_dir" && as_dir=.
8524     for ac_exec_ext in '' $ac_executable_extensions; do
8525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8526     ac_cv_prog_ac_ct_AS="as"
8527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528     break 2
8529   fi
8530 done
8531   done
8532 IFS=$as_save_IFS
8533
8534 fi
8535 fi
8536 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8537 if test -n "$ac_ct_AS"; then
8538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8539 $as_echo "$ac_ct_AS" >&6; }
8540 else
8541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8543 fi
8544
8545   if test "x$ac_ct_AS" = x; then
8546     AS="false"
8547   else
8548     case $cross_compiling:$ac_tool_warned in
8549 yes:)
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8552 ac_tool_warned=yes ;;
8553 esac
8554     AS=$ac_ct_AS
8555   fi
8556 else
8557   AS="$ac_cv_prog_AS"
8558 fi
8559
8560   if test -n "$ac_tool_prefix"; then
8561   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8562 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 $as_echo_n "checking for $ac_word... " >&6; }
8565 if ${ac_cv_prog_DLLTOOL+:} false; then :
8566   $as_echo_n "(cached) " >&6
8567 else
8568   if test -n "$DLLTOOL"; then
8569   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8570 else
8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572 for as_dir in $PATH
8573 do
8574   IFS=$as_save_IFS
8575   test -z "$as_dir" && as_dir=.
8576     for ac_exec_ext in '' $ac_executable_extensions; do
8577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8578     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8580     break 2
8581   fi
8582 done
8583   done
8584 IFS=$as_save_IFS
8585
8586 fi
8587 fi
8588 DLLTOOL=$ac_cv_prog_DLLTOOL
8589 if test -n "$DLLTOOL"; then
8590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8591 $as_echo "$DLLTOOL" >&6; }
8592 else
8593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 $as_echo "no" >&6; }
8595 fi
8596
8597
8598 fi
8599 if test -z "$ac_cv_prog_DLLTOOL"; then
8600   ac_ct_DLLTOOL=$DLLTOOL
8601   # Extract the first word of "dlltool", so it can be a program name with args.
8602 set dummy dlltool; ac_word=$2
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604 $as_echo_n "checking for $ac_word... " >&6; }
8605 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8606   $as_echo_n "(cached) " >&6
8607 else
8608   if test -n "$ac_ct_DLLTOOL"; then
8609   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8610 else
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 for as_dir in $PATH
8613 do
8614   IFS=$as_save_IFS
8615   test -z "$as_dir" && as_dir=.
8616     for ac_exec_ext in '' $ac_executable_extensions; do
8617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8618     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620     break 2
8621   fi
8622 done
8623   done
8624 IFS=$as_save_IFS
8625
8626 fi
8627 fi
8628 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8629 if test -n "$ac_ct_DLLTOOL"; then
8630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8631 $as_echo "$ac_ct_DLLTOOL" >&6; }
8632 else
8633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 $as_echo "no" >&6; }
8635 fi
8636
8637   if test "x$ac_ct_DLLTOOL" = x; then
8638     DLLTOOL="false"
8639   else
8640     case $cross_compiling:$ac_tool_warned in
8641 yes:)
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8644 ac_tool_warned=yes ;;
8645 esac
8646     DLLTOOL=$ac_ct_DLLTOOL
8647   fi
8648 else
8649   DLLTOOL="$ac_cv_prog_DLLTOOL"
8650 fi
8651
8652   if test -n "$ac_tool_prefix"; then
8653   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8654 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 $as_echo_n "checking for $ac_word... " >&6; }
8657 if ${ac_cv_prog_OBJDUMP+:} false; then :
8658   $as_echo_n "(cached) " >&6
8659 else
8660   if test -n "$OBJDUMP"; then
8661   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8662 else
8663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664 for as_dir in $PATH
8665 do
8666   IFS=$as_save_IFS
8667   test -z "$as_dir" && as_dir=.
8668     for ac_exec_ext in '' $ac_executable_extensions; do
8669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8670     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8672     break 2
8673   fi
8674 done
8675   done
8676 IFS=$as_save_IFS
8677
8678 fi
8679 fi
8680 OBJDUMP=$ac_cv_prog_OBJDUMP
8681 if test -n "$OBJDUMP"; then
8682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8683 $as_echo "$OBJDUMP" >&6; }
8684 else
8685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8687 fi
8688
8689
8690 fi
8691 if test -z "$ac_cv_prog_OBJDUMP"; then
8692   ac_ct_OBJDUMP=$OBJDUMP
8693   # Extract the first word of "objdump", so it can be a program name with args.
8694 set dummy objdump; ac_word=$2
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8696 $as_echo_n "checking for $ac_word... " >&6; }
8697 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8698   $as_echo_n "(cached) " >&6
8699 else
8700   if test -n "$ac_ct_OBJDUMP"; then
8701   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8702 else
8703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704 for as_dir in $PATH
8705 do
8706   IFS=$as_save_IFS
8707   test -z "$as_dir" && as_dir=.
8708     for ac_exec_ext in '' $ac_executable_extensions; do
8709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8710     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8712     break 2
8713   fi
8714 done
8715   done
8716 IFS=$as_save_IFS
8717
8718 fi
8719 fi
8720 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8721 if test -n "$ac_ct_OBJDUMP"; then
8722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8723 $as_echo "$ac_ct_OBJDUMP" >&6; }
8724 else
8725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8727 fi
8728
8729   if test "x$ac_ct_OBJDUMP" = x; then
8730     OBJDUMP="false"
8731   else
8732     case $cross_compiling:$ac_tool_warned in
8733 yes:)
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8736 ac_tool_warned=yes ;;
8737 esac
8738     OBJDUMP=$ac_ct_OBJDUMP
8739   fi
8740 else
8741   OBJDUMP="$ac_cv_prog_OBJDUMP"
8742 fi
8743
8744   ;;
8745 esac
8746
8747 test -z "$AS" && AS=as
8748
8749
8750
8751
8752
8753 test -z "$DLLTOOL" && DLLTOOL=dlltool
8754
8755
8756
8757
8758
8759 test -z "$OBJDUMP" && OBJDUMP=objdump
8760
8761
8762
8763
8764
8765
8766
8767         enable_dlopen=no
8768
8769
8770
8771             # Check whether --enable-shared was given.
8772 if test "${enable_shared+set}" = set; then :
8773   enableval=$enable_shared; p=${PACKAGE-default}
8774     case $enableval in
8775     yes) enable_shared=yes ;;
8776     no) enable_shared=no ;;
8777     *)
8778       enable_shared=no
8779       # Look at the argument we got.  We use all the common list separators.
8780       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8781       for pkg in $enableval; do
8782         IFS="$lt_save_ifs"
8783         if test "X$pkg" = "X$p"; then
8784           enable_shared=yes
8785         fi
8786       done
8787       IFS="$lt_save_ifs"
8788       ;;
8789     esac
8790 else
8791   enable_shared=yes
8792 fi
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802   # Check whether --enable-static was given.
8803 if test "${enable_static+set}" = set; then :
8804   enableval=$enable_static; p=${PACKAGE-default}
8805     case $enableval in
8806     yes) enable_static=yes ;;
8807     no) enable_static=no ;;
8808     *)
8809      enable_static=no
8810       # Look at the argument we got.  We use all the common list separators.
8811       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8812       for pkg in $enableval; do
8813         IFS="$lt_save_ifs"
8814         if test "X$pkg" = "X$p"; then
8815           enable_static=yes
8816         fi
8817       done
8818       IFS="$lt_save_ifs"
8819       ;;
8820     esac
8821 else
8822   enable_static=yes
8823 fi
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834 # Check whether --with-pic was given.
8835 if test "${with_pic+set}" = set; then :
8836   withval=$with_pic; lt_p=${PACKAGE-default}
8837     case $withval in
8838     yes|no) pic_mode=$withval ;;
8839     *)
8840       pic_mode=default
8841       # Look at the argument we got.  We use all the common list separators.
8842       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8843       for lt_pkg in $withval; do
8844         IFS="$lt_save_ifs"
8845         if test "X$lt_pkg" = "X$lt_p"; then
8846           pic_mode=yes
8847         fi
8848       done
8849       IFS="$lt_save_ifs"
8850       ;;
8851     esac
8852 else
8853   pic_mode=default
8854 fi
8855
8856
8857 test -z "$pic_mode" && pic_mode=default
8858
8859
8860
8861
8862
8863
8864
8865   # Check whether --enable-fast-install was given.
8866 if test "${enable_fast_install+set}" = set; then :
8867   enableval=$enable_fast_install; p=${PACKAGE-default}
8868     case $enableval in
8869     yes) enable_fast_install=yes ;;
8870     no) enable_fast_install=no ;;
8871     *)
8872       enable_fast_install=no
8873       # Look at the argument we got.  We use all the common list separators.
8874       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8875       for pkg in $enableval; do
8876         IFS="$lt_save_ifs"
8877         if test "X$pkg" = "X$p"; then
8878           enable_fast_install=yes
8879         fi
8880       done
8881       IFS="$lt_save_ifs"
8882       ;;
8883     esac
8884 else
8885   enable_fast_install=yes
8886 fi
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898 # This can be used to rebuild libtool when needed
8899 LIBTOOL_DEPS="$ltmain"
8900
8901 # Always use our own libtool.
8902 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933 test -z "$LN_S" && LN_S="ln -s"
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948 if test -n "${ZSH_VERSION+set}" ; then
8949    setopt NO_GLOB_SUBST
8950 fi
8951
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8953 $as_echo_n "checking for objdir... " >&6; }
8954 if ${lt_cv_objdir+:} false; then :
8955   $as_echo_n "(cached) " >&6
8956 else
8957   rm -f .libs 2>/dev/null
8958 mkdir .libs 2>/dev/null
8959 if test -d .libs; then
8960   lt_cv_objdir=.libs
8961 else
8962   # MS-DOS does not allow filenames that begin with a dot.
8963   lt_cv_objdir=_libs
8964 fi
8965 rmdir .libs 2>/dev/null
8966 fi
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8968 $as_echo "$lt_cv_objdir" >&6; }
8969 objdir=$lt_cv_objdir
8970
8971
8972
8973
8974
8975 cat >>confdefs.h <<_ACEOF
8976 #define LT_OBJDIR "$lt_cv_objdir/"
8977 _ACEOF
8978
8979
8980
8981
8982 case $host_os in
8983 aix3*)
8984   # AIX sometimes has problems with the GCC collect2 program.  For some
8985   # reason, if we set the COLLECT_NAMES environment variable, the problems
8986   # vanish in a puff of smoke.
8987   if test "X${COLLECT_NAMES+set}" != Xset; then
8988     COLLECT_NAMES=
8989     export COLLECT_NAMES
8990   fi
8991   ;;
8992 esac
8993
8994 # Global variables:
8995 ofile=libtool
8996 can_build_shared=yes
8997
8998 # All known linkers require a `.a' archive for static linking (except MSVC,
8999 # which needs '.lib').
9000 libext=a
9001
9002 with_gnu_ld="$lt_cv_prog_gnu_ld"
9003
9004 old_CC="$CC"
9005 old_CFLAGS="$CFLAGS"
9006
9007 # Set sane defaults for various variables
9008 test -z "$CC" && CC=cc
9009 test -z "$LTCC" && LTCC=$CC
9010 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9011 test -z "$LD" && LD=ld
9012 test -z "$ac_objext" && ac_objext=o
9013
9014 for cc_temp in $compiler""; do
9015   case $cc_temp in
9016     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9017     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9018     \-*) ;;
9019     *) break;;
9020   esac
9021 done
9022 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9023
9024
9025 # Only perform the check for file, if the check method requires it
9026 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9027 case $deplibs_check_method in
9028 file_magic*)
9029   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9031 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9032 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9033   $as_echo_n "(cached) " >&6
9034 else
9035   case $MAGIC_CMD in
9036 [\\/*] |  ?:[\\/]*)
9037   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9038   ;;
9039 *)
9040   lt_save_MAGIC_CMD="$MAGIC_CMD"
9041   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9042   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9043   for ac_dir in $ac_dummy; do
9044     IFS="$lt_save_ifs"
9045     test -z "$ac_dir" && ac_dir=.
9046     if test -f $ac_dir/${ac_tool_prefix}file; then
9047       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9048       if test -n "$file_magic_test_file"; then
9049         case $deplibs_check_method in
9050         "file_magic "*)
9051           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9052           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9053           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9054             $EGREP "$file_magic_regex" > /dev/null; then
9055             :
9056           else
9057             cat <<_LT_EOF 1>&2
9058
9059 *** Warning: the command libtool uses to detect shared libraries,
9060 *** $file_magic_cmd, produces output that libtool cannot recognize.
9061 *** The result is that libtool may fail to recognize shared libraries
9062 *** as such.  This will affect the creation of libtool libraries that
9063 *** depend on shared libraries, but programs linked with such libtool
9064 *** libraries will work regardless of this problem.  Nevertheless, you
9065 *** may want to report the problem to your system manager and/or to
9066 *** bug-libtool@gnu.org
9067
9068 _LT_EOF
9069           fi ;;
9070         esac
9071       fi
9072       break
9073     fi
9074   done
9075   IFS="$lt_save_ifs"
9076   MAGIC_CMD="$lt_save_MAGIC_CMD"
9077   ;;
9078 esac
9079 fi
9080
9081 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9082 if test -n "$MAGIC_CMD"; then
9083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9084 $as_echo "$MAGIC_CMD" >&6; }
9085 else
9086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }
9088 fi
9089
9090
9091
9092
9093
9094 if test -z "$lt_cv_path_MAGIC_CMD"; then
9095   if test -n "$ac_tool_prefix"; then
9096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9097 $as_echo_n "checking for file... " >&6; }
9098 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9099   $as_echo_n "(cached) " >&6
9100 else
9101   case $MAGIC_CMD in
9102 [\\/*] |  ?:[\\/]*)
9103   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9104   ;;
9105 *)
9106   lt_save_MAGIC_CMD="$MAGIC_CMD"
9107   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9108   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9109   for ac_dir in $ac_dummy; do
9110     IFS="$lt_save_ifs"
9111     test -z "$ac_dir" && ac_dir=.
9112     if test -f $ac_dir/file; then
9113       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9114       if test -n "$file_magic_test_file"; then
9115         case $deplibs_check_method in
9116         "file_magic "*)
9117           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9118           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9119           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9120             $EGREP "$file_magic_regex" > /dev/null; then
9121             :
9122           else
9123             cat <<_LT_EOF 1>&2
9124
9125 *** Warning: the command libtool uses to detect shared libraries,
9126 *** $file_magic_cmd, produces output that libtool cannot recognize.
9127 *** The result is that libtool may fail to recognize shared libraries
9128 *** as such.  This will affect the creation of libtool libraries that
9129 *** depend on shared libraries, but programs linked with such libtool
9130 *** libraries will work regardless of this problem.  Nevertheless, you
9131 *** may want to report the problem to your system manager and/or to
9132 *** bug-libtool@gnu.org
9133
9134 _LT_EOF
9135           fi ;;
9136         esac
9137       fi
9138       break
9139     fi
9140   done
9141   IFS="$lt_save_ifs"
9142   MAGIC_CMD="$lt_save_MAGIC_CMD"
9143   ;;
9144 esac
9145 fi
9146
9147 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9148 if test -n "$MAGIC_CMD"; then
9149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9150 $as_echo "$MAGIC_CMD" >&6; }
9151 else
9152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153 $as_echo "no" >&6; }
9154 fi
9155
9156
9157   else
9158     MAGIC_CMD=:
9159   fi
9160 fi
9161
9162   fi
9163   ;;
9164 esac
9165
9166 # Use C for the default configuration in the libtool script
9167
9168 lt_save_CC="$CC"
9169 ac_ext=c
9170 ac_cpp='$CPP $CPPFLAGS'
9171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9174
9175
9176 # Source file extension for C test sources.
9177 ac_ext=c
9178
9179 # Object file extension for compiled C test sources.
9180 objext=o
9181 objext=$objext
9182
9183 # Code to be used in simple compile tests
9184 lt_simple_compile_test_code="int some_variable = 0;"
9185
9186 # Code to be used in simple link tests
9187 lt_simple_link_test_code='int main(){return(0);}'
9188
9189
9190
9191
9192
9193
9194
9195 # If no C compiler was specified, use CC.
9196 LTCC=${LTCC-"$CC"}
9197
9198 # If no C compiler flags were specified, use CFLAGS.
9199 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9200
9201 # Allow CC to be a program name with arguments.
9202 compiler=$CC
9203
9204 # Save the default compiler, since it gets overwritten when the other
9205 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9206 compiler_DEFAULT=$CC
9207
9208 # save warnings/boilerplate of simple test code
9209 ac_outfile=conftest.$ac_objext
9210 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9211 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9212 _lt_compiler_boilerplate=`cat conftest.err`
9213 $RM conftest*
9214
9215 ac_outfile=conftest.$ac_objext
9216 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9217 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9218 _lt_linker_boilerplate=`cat conftest.err`
9219 $RM -r conftest*
9220
9221
9222 ## CAVEAT EMPTOR:
9223 ## There is no encapsulation within the following macros, do not change
9224 ## the running order or otherwise move them around unless you know exactly
9225 ## what you are doing...
9226 if test -n "$compiler"; then
9227
9228 lt_prog_compiler_no_builtin_flag=
9229
9230 if test "$GCC" = yes; then
9231   case $cc_basename in
9232   nvcc*)
9233     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9234   *)
9235     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9236   esac
9237
9238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9239 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9240 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9241   $as_echo_n "(cached) " >&6
9242 else
9243   lt_cv_prog_compiler_rtti_exceptions=no
9244    ac_outfile=conftest.$ac_objext
9245    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9246    lt_compiler_flag="-fno-rtti -fno-exceptions"
9247    # Insert the option either (1) after the last *FLAGS variable, or
9248    # (2) before a word containing "conftest.", or (3) at the end.
9249    # Note that $ac_compile itself does not contain backslashes and begins
9250    # with a dollar sign (not a hyphen), so the echo should work correctly.
9251    # The option is referenced via a variable to avoid confusing sed.
9252    lt_compile=`echo "$ac_compile" | $SED \
9253    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9254    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9255    -e 's:$: $lt_compiler_flag:'`
9256    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9257    (eval "$lt_compile" 2>conftest.err)
9258    ac_status=$?
9259    cat conftest.err >&5
9260    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261    if (exit $ac_status) && test -s "$ac_outfile"; then
9262      # The compiler can only warn and ignore the option if not recognized
9263      # So say no if there are warnings other than the usual output.
9264      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9265      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9266      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9267        lt_cv_prog_compiler_rtti_exceptions=yes
9268      fi
9269    fi
9270    $RM conftest*
9271
9272 fi
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9274 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9275
9276 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9277     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9278 else
9279     :
9280 fi
9281
9282 fi
9283
9284
9285
9286
9287
9288
9289   lt_prog_compiler_wl=
9290 lt_prog_compiler_pic=
9291 lt_prog_compiler_static=
9292
9293
9294   if test "$GCC" = yes; then
9295     lt_prog_compiler_wl='-Wl,'
9296     lt_prog_compiler_static='-static'
9297
9298     case $host_os in
9299       aix*)
9300       # All AIX code is PIC.
9301       if test "$host_cpu" = ia64; then
9302         # AIX 5 now supports IA64 processor
9303         lt_prog_compiler_static='-Bstatic'
9304       fi
9305       ;;
9306
9307     amigaos*)
9308       case $host_cpu in
9309       powerpc)
9310             # see comment about AmigaOS4 .so support
9311             lt_prog_compiler_pic='-fPIC'
9312         ;;
9313       m68k)
9314             # FIXME: we need at least 68020 code to build shared libraries, but
9315             # adding the `-m68020' flag to GCC prevents building anything better,
9316             # like `-m68040'.
9317             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9318         ;;
9319       esac
9320       ;;
9321
9322     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9323       # PIC is the default for these OSes.
9324       ;;
9325
9326     mingw* | cygwin* | pw32* | os2* | cegcc*)
9327       # This hack is so that the source file can tell whether it is being
9328       # built for inclusion in a dll (and should export symbols for example).
9329       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9330       # (--disable-auto-import) libraries
9331       lt_prog_compiler_pic='-DDLL_EXPORT'
9332       ;;
9333
9334     darwin* | rhapsody*)
9335       # PIC is the default on this platform
9336       # Common symbols not allowed in MH_DYLIB files
9337       lt_prog_compiler_pic='-fno-common'
9338       ;;
9339
9340     haiku*)
9341       # PIC is the default for Haiku.
9342       # The "-static" flag exists, but is broken.
9343       lt_prog_compiler_static=
9344       ;;
9345
9346     hpux*)
9347       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9348       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9349       # sets the default TLS model and affects inlining.
9350       case $host_cpu in
9351       hppa*64*)
9352         # +Z the default
9353         ;;
9354       *)
9355         lt_prog_compiler_pic='-fPIC'
9356         ;;
9357       esac
9358       ;;
9359
9360     interix[3-9]*)
9361       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9362       # Instead, we relocate shared libraries at runtime.
9363       ;;
9364
9365     msdosdjgpp*)
9366       # Just because we use GCC doesn't mean we suddenly get shared libraries
9367       # on systems that don't support them.
9368       lt_prog_compiler_can_build_shared=no
9369       enable_shared=no
9370       ;;
9371
9372     *nto* | *qnx*)
9373       # QNX uses GNU C++, but need to define -shared option too, otherwise
9374       # it will coredump.
9375       lt_prog_compiler_pic='-fPIC -shared'
9376       ;;
9377
9378     sysv4*MP*)
9379       if test -d /usr/nec; then
9380         lt_prog_compiler_pic=-Kconform_pic
9381       fi
9382       ;;
9383
9384     *)
9385       lt_prog_compiler_pic='-fPIC'
9386       ;;
9387     esac
9388
9389     case $cc_basename in
9390     nvcc*) # Cuda Compiler Driver 2.2
9391       lt_prog_compiler_wl='-Xlinker '
9392       if test -n "$lt_prog_compiler_pic"; then
9393         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9394       fi
9395       ;;
9396     esac
9397   else
9398     # PORTME Check for flag to pass linker flags through the system compiler.
9399     case $host_os in
9400     aix*)
9401       lt_prog_compiler_wl='-Wl,'
9402       if test "$host_cpu" = ia64; then
9403         # AIX 5 now supports IA64 processor
9404         lt_prog_compiler_static='-Bstatic'
9405       else
9406         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9407       fi
9408       ;;
9409
9410     mingw* | cygwin* | pw32* | os2* | cegcc*)
9411       # This hack is so that the source file can tell whether it is being
9412       # built for inclusion in a dll (and should export symbols for example).
9413       lt_prog_compiler_pic='-DDLL_EXPORT'
9414       ;;
9415
9416     hpux9* | hpux10* | hpux11*)
9417       lt_prog_compiler_wl='-Wl,'
9418       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9419       # not for PA HP-UX.
9420       case $host_cpu in
9421       hppa*64*|ia64*)
9422         # +Z the default
9423         ;;
9424       *)
9425         lt_prog_compiler_pic='+Z'
9426         ;;
9427       esac
9428       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9429       lt_prog_compiler_static='${wl}-a ${wl}archive'
9430       ;;
9431
9432     irix5* | irix6* | nonstopux*)
9433       lt_prog_compiler_wl='-Wl,'
9434       # PIC (with -KPIC) is the default.
9435       lt_prog_compiler_static='-non_shared'
9436       ;;
9437
9438     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9439       case $cc_basename in
9440       # old Intel for x86_64 which still supported -KPIC.
9441       ecc*)
9442         lt_prog_compiler_wl='-Wl,'
9443         lt_prog_compiler_pic='-KPIC'
9444         lt_prog_compiler_static='-static'
9445         ;;
9446       # icc used to be incompatible with GCC.
9447       # ICC 10 doesn't accept -KPIC any more.
9448       icc* | ifort*)
9449         lt_prog_compiler_wl='-Wl,'
9450         lt_prog_compiler_pic='-fPIC'
9451         lt_prog_compiler_static='-static'
9452         ;;
9453       # Lahey Fortran 8.1.
9454       lf95*)
9455         lt_prog_compiler_wl='-Wl,'
9456         lt_prog_compiler_pic='--shared'
9457         lt_prog_compiler_static='--static'
9458         ;;
9459       nagfor*)
9460         # NAG Fortran compiler
9461         lt_prog_compiler_wl='-Wl,-Wl,,'
9462         lt_prog_compiler_pic='-PIC'
9463         lt_prog_compiler_static='-Bstatic'
9464         ;;
9465       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9466         # Portland Group compilers (*not* the Pentium gcc compiler,
9467         # which looks to be a dead project)
9468         lt_prog_compiler_wl='-Wl,'
9469         lt_prog_compiler_pic='-fpic'
9470         lt_prog_compiler_static='-Bstatic'
9471         ;;
9472       ccc*)
9473         lt_prog_compiler_wl='-Wl,'
9474         # All Alpha code is PIC.
9475         lt_prog_compiler_static='-non_shared'
9476         ;;
9477       xl* | bgxl* | bgf* | mpixl*)
9478         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9479         lt_prog_compiler_wl='-Wl,'
9480         lt_prog_compiler_pic='-qpic'
9481         lt_prog_compiler_static='-qstaticlink'
9482         ;;
9483       *)
9484         case `$CC -V 2>&1 | sed 5q` in
9485         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9486           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9487           lt_prog_compiler_pic='-KPIC'
9488           lt_prog_compiler_static='-Bstatic'
9489           lt_prog_compiler_wl=''
9490           ;;
9491         *Sun\ F* | *Sun*Fortran*)
9492           lt_prog_compiler_pic='-KPIC'
9493           lt_prog_compiler_static='-Bstatic'
9494           lt_prog_compiler_wl='-Qoption ld '
9495           ;;
9496         *Sun\ C*)
9497           # Sun C 5.9
9498           lt_prog_compiler_pic='-KPIC'
9499           lt_prog_compiler_static='-Bstatic'
9500           lt_prog_compiler_wl='-Wl,'
9501           ;;
9502         *Intel*\ [CF]*Compiler*)
9503           lt_prog_compiler_wl='-Wl,'
9504           lt_prog_compiler_pic='-fPIC'
9505           lt_prog_compiler_static='-static'
9506           ;;
9507         *Portland\ Group*)
9508           lt_prog_compiler_wl='-Wl,'
9509           lt_prog_compiler_pic='-fpic'
9510           lt_prog_compiler_static='-Bstatic'
9511           ;;
9512         esac
9513         ;;
9514       esac
9515       ;;
9516
9517     newsos6)
9518       lt_prog_compiler_pic='-KPIC'
9519       lt_prog_compiler_static='-Bstatic'
9520       ;;
9521
9522     *nto* | *qnx*)
9523       # QNX uses GNU C++, but need to define -shared option too, otherwise
9524       # it will coredump.
9525       lt_prog_compiler_pic='-fPIC -shared'
9526       ;;
9527
9528     osf3* | osf4* | osf5*)
9529       lt_prog_compiler_wl='-Wl,'
9530       # All OSF/1 code is PIC.
9531       lt_prog_compiler_static='-non_shared'
9532       ;;
9533
9534     rdos*)
9535       lt_prog_compiler_static='-non_shared'
9536       ;;
9537
9538     solaris*)
9539       lt_prog_compiler_pic='-KPIC'
9540       lt_prog_compiler_static='-Bstatic'
9541       case $cc_basename in
9542       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9543         lt_prog_compiler_wl='-Qoption ld ';;
9544       *)
9545         lt_prog_compiler_wl='-Wl,';;
9546       esac
9547       ;;
9548
9549     sunos4*)
9550       lt_prog_compiler_wl='-Qoption ld '
9551       lt_prog_compiler_pic='-PIC'
9552       lt_prog_compiler_static='-Bstatic'
9553       ;;
9554
9555     sysv4 | sysv4.2uw2* | sysv4.3*)
9556       lt_prog_compiler_wl='-Wl,'
9557       lt_prog_compiler_pic='-KPIC'
9558       lt_prog_compiler_static='-Bstatic'
9559       ;;
9560
9561     sysv4*MP*)
9562       if test -d /usr/nec ;then
9563         lt_prog_compiler_pic='-Kconform_pic'
9564         lt_prog_compiler_static='-Bstatic'
9565       fi
9566       ;;
9567
9568     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9569       lt_prog_compiler_wl='-Wl,'
9570       lt_prog_compiler_pic='-KPIC'
9571       lt_prog_compiler_static='-Bstatic'
9572       ;;
9573
9574     unicos*)
9575       lt_prog_compiler_wl='-Wl,'
9576       lt_prog_compiler_can_build_shared=no
9577       ;;
9578
9579     uts4*)
9580       lt_prog_compiler_pic='-pic'
9581       lt_prog_compiler_static='-Bstatic'
9582       ;;
9583
9584     *)
9585       lt_prog_compiler_can_build_shared=no
9586       ;;
9587     esac
9588   fi
9589
9590 case $host_os in
9591   # For platforms which do not support PIC, -DPIC is meaningless:
9592   *djgpp*)
9593     lt_prog_compiler_pic=
9594     ;;
9595   *)
9596     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9597     ;;
9598 esac
9599
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9601 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9602 if ${lt_cv_prog_compiler_pic+:} false; then :
9603   $as_echo_n "(cached) " >&6
9604 else
9605   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9606 fi
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9608 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9609 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9610
9611 #
9612 # Check to make sure the PIC flag actually works.
9613 #
9614 if test -n "$lt_prog_compiler_pic"; then
9615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9616 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9617 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9618   $as_echo_n "(cached) " >&6
9619 else
9620   lt_cv_prog_compiler_pic_works=no
9621    ac_outfile=conftest.$ac_objext
9622    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9623    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9624    # Insert the option either (1) after the last *FLAGS variable, or
9625    # (2) before a word containing "conftest.", or (3) at the end.
9626    # Note that $ac_compile itself does not contain backslashes and begins
9627    # with a dollar sign (not a hyphen), so the echo should work correctly.
9628    # The option is referenced via a variable to avoid confusing sed.
9629    lt_compile=`echo "$ac_compile" | $SED \
9630    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9631    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9632    -e 's:$: $lt_compiler_flag:'`
9633    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9634    (eval "$lt_compile" 2>conftest.err)
9635    ac_status=$?
9636    cat conftest.err >&5
9637    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638    if (exit $ac_status) && test -s "$ac_outfile"; then
9639      # The compiler can only warn and ignore the option if not recognized
9640      # So say no if there are warnings other than the usual output.
9641      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9642      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9643      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9644        lt_cv_prog_compiler_pic_works=yes
9645      fi
9646    fi
9647    $RM conftest*
9648
9649 fi
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9651 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9652
9653 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9654     case $lt_prog_compiler_pic in
9655      "" | " "*) ;;
9656      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9657      esac
9658 else
9659     lt_prog_compiler_pic=
9660      lt_prog_compiler_can_build_shared=no
9661 fi
9662
9663 fi
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675 #
9676 # Check to make sure the static flag actually works.
9677 #
9678 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9680 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9681 if ${lt_cv_prog_compiler_static_works+:} false; then :
9682   $as_echo_n "(cached) " >&6
9683 else
9684   lt_cv_prog_compiler_static_works=no
9685    save_LDFLAGS="$LDFLAGS"
9686    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9687    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9688    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9689      # The linker can only warn and ignore the option if not recognized
9690      # So say no if there are warnings
9691      if test -s conftest.err; then
9692        # Append any errors to the config.log.
9693        cat conftest.err 1>&5
9694        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9695        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9696        if diff conftest.exp conftest.er2 >/dev/null; then
9697          lt_cv_prog_compiler_static_works=yes
9698        fi
9699      else
9700        lt_cv_prog_compiler_static_works=yes
9701      fi
9702    fi
9703    $RM -r conftest*
9704    LDFLAGS="$save_LDFLAGS"
9705
9706 fi
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9708 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9709
9710 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9711     :
9712 else
9713     lt_prog_compiler_static=
9714 fi
9715
9716
9717
9718
9719
9720
9721
9722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9723 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9724 if ${lt_cv_prog_compiler_c_o+:} false; then :
9725   $as_echo_n "(cached) " >&6
9726 else
9727   lt_cv_prog_compiler_c_o=no
9728    $RM -r conftest 2>/dev/null
9729    mkdir conftest
9730    cd conftest
9731    mkdir out
9732    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9733
9734    lt_compiler_flag="-o out/conftest2.$ac_objext"
9735    # Insert the option either (1) after the last *FLAGS variable, or
9736    # (2) before a word containing "conftest.", or (3) at the end.
9737    # Note that $ac_compile itself does not contain backslashes and begins
9738    # with a dollar sign (not a hyphen), so the echo should work correctly.
9739    lt_compile=`echo "$ac_compile" | $SED \
9740    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9741    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9742    -e 's:$: $lt_compiler_flag:'`
9743    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9744    (eval "$lt_compile" 2>out/conftest.err)
9745    ac_status=$?
9746    cat out/conftest.err >&5
9747    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9749    then
9750      # The compiler can only warn and ignore the option if not recognized
9751      # So say no if there are warnings
9752      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9753      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9754      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9755        lt_cv_prog_compiler_c_o=yes
9756      fi
9757    fi
9758    chmod u+w . 2>&5
9759    $RM conftest*
9760    # SGI C++ compiler will create directory out/ii_files/ for
9761    # template instantiation
9762    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9763    $RM out/* && rmdir out
9764    cd ..
9765    $RM -r conftest
9766    $RM conftest*
9767
9768 fi
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9770 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9771
9772
9773
9774
9775
9776
9777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9778 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9779 if ${lt_cv_prog_compiler_c_o+:} false; then :
9780   $as_echo_n "(cached) " >&6
9781 else
9782   lt_cv_prog_compiler_c_o=no
9783    $RM -r conftest 2>/dev/null
9784    mkdir conftest
9785    cd conftest
9786    mkdir out
9787    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9788
9789    lt_compiler_flag="-o out/conftest2.$ac_objext"
9790    # Insert the option either (1) after the last *FLAGS variable, or
9791    # (2) before a word containing "conftest.", or (3) at the end.
9792    # Note that $ac_compile itself does not contain backslashes and begins
9793    # with a dollar sign (not a hyphen), so the echo should work correctly.
9794    lt_compile=`echo "$ac_compile" | $SED \
9795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9797    -e 's:$: $lt_compiler_flag:'`
9798    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9799    (eval "$lt_compile" 2>out/conftest.err)
9800    ac_status=$?
9801    cat out/conftest.err >&5
9802    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9804    then
9805      # The compiler can only warn and ignore the option if not recognized
9806      # So say no if there are warnings
9807      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9808      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9809      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9810        lt_cv_prog_compiler_c_o=yes
9811      fi
9812    fi
9813    chmod u+w . 2>&5
9814    $RM conftest*
9815    # SGI C++ compiler will create directory out/ii_files/ for
9816    # template instantiation
9817    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9818    $RM out/* && rmdir out
9819    cd ..
9820    $RM -r conftest
9821    $RM conftest*
9822
9823 fi
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9825 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9826
9827
9828
9829
9830 hard_links="nottested"
9831 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9832   # do not overwrite the value of need_locks provided by the user
9833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9834 $as_echo_n "checking if we can lock with hard links... " >&6; }
9835   hard_links=yes
9836   $RM conftest*
9837   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9838   touch conftest.a
9839   ln conftest.a conftest.b 2>&5 || hard_links=no
9840   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9842 $as_echo "$hard_links" >&6; }
9843   if test "$hard_links" = no; then
9844     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9845 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9846     need_locks=warn
9847   fi
9848 else
9849   need_locks=no
9850 fi
9851
9852
9853
9854
9855
9856
9857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9858 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9859
9860   runpath_var=
9861   allow_undefined_flag=
9862   always_export_symbols=no
9863   archive_cmds=
9864   archive_expsym_cmds=
9865   compiler_needs_object=no
9866   enable_shared_with_static_runtimes=no
9867   export_dynamic_flag_spec=
9868   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9869   hardcode_automatic=no
9870   hardcode_direct=no
9871   hardcode_direct_absolute=no
9872   hardcode_libdir_flag_spec=
9873   hardcode_libdir_separator=
9874   hardcode_minus_L=no
9875   hardcode_shlibpath_var=unsupported
9876   inherit_rpath=no
9877   link_all_deplibs=unknown
9878   module_cmds=
9879   module_expsym_cmds=
9880   old_archive_from_new_cmds=
9881   old_archive_from_expsyms_cmds=
9882   thread_safe_flag_spec=
9883   whole_archive_flag_spec=
9884   # include_expsyms should be a list of space-separated symbols to be *always*
9885   # included in the symbol list
9886   include_expsyms=
9887   # exclude_expsyms can be an extended regexp of symbols to exclude
9888   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9889   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9890   # as well as any symbol that contains `d'.
9891   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9892   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9893   # platforms (ab)use it in PIC code, but their linkers get confused if
9894   # the symbol is explicitly referenced.  Since portable code cannot
9895   # rely on this symbol name, it's probably fine to never include it in
9896   # preloaded symbol tables.
9897   # Exclude shared library initialization/finalization symbols.
9898   extract_expsyms_cmds=
9899
9900   case $host_os in
9901   cygwin* | mingw* | pw32* | cegcc*)
9902     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9903     # When not using gcc, we currently assume that we are using
9904     # Microsoft Visual C++.
9905     if test "$GCC" != yes; then
9906       with_gnu_ld=no
9907     fi
9908     ;;
9909   interix*)
9910     # we just hope/assume this is gcc and not c89 (= MSVC++)
9911     with_gnu_ld=yes
9912     ;;
9913   openbsd*)
9914     with_gnu_ld=no
9915     ;;
9916   linux* | k*bsd*-gnu | gnu*)
9917     link_all_deplibs=no
9918     ;;
9919   esac
9920
9921   ld_shlibs=yes
9922
9923   # On some targets, GNU ld is compatible enough with the native linker
9924   # that we're better off using the native interface for both.
9925   lt_use_gnu_ld_interface=no
9926   if test "$with_gnu_ld" = yes; then
9927     case $host_os in
9928       aix*)
9929         # The AIX port of GNU ld has always aspired to compatibility
9930         # with the native linker.  However, as the warning in the GNU ld
9931         # block says, versions before 2.19.5* couldn't really create working
9932         # shared libraries, regardless of the interface used.
9933         case `$LD -v 2>&1` in
9934           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9935           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9936           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9937           *)
9938             lt_use_gnu_ld_interface=yes
9939             ;;
9940         esac
9941         ;;
9942       *)
9943         lt_use_gnu_ld_interface=yes
9944         ;;
9945     esac
9946   fi
9947
9948   if test "$lt_use_gnu_ld_interface" = yes; then
9949     # If archive_cmds runs LD, not CC, wlarc should be empty
9950     wlarc='${wl}'
9951
9952     # Set some defaults for GNU ld with shared library support. These
9953     # are reset later if shared libraries are not supported. Putting them
9954     # here allows them to be overridden if necessary.
9955     runpath_var=LD_RUN_PATH
9956     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9957     export_dynamic_flag_spec='${wl}--export-dynamic'
9958     # ancient GNU ld didn't support --whole-archive et. al.
9959     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9960       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9961     else
9962       whole_archive_flag_spec=
9963     fi
9964     supports_anon_versioning=no
9965     case `$LD -v 2>&1` in
9966       *GNU\ gold*) supports_anon_versioning=yes ;;
9967       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9968       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9969       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9970       *\ 2.11.*) ;; # other 2.11 versions
9971       *) supports_anon_versioning=yes ;;
9972     esac
9973
9974     # See if GNU ld supports shared libraries.
9975     case $host_os in
9976     aix[3-9]*)
9977       # On AIX/PPC, the GNU linker is very broken
9978       if test "$host_cpu" != ia64; then
9979         ld_shlibs=no
9980         cat <<_LT_EOF 1>&2
9981
9982 *** Warning: the GNU linker, at least up to release 2.19, is reported
9983 *** to be unable to reliably create shared libraries on AIX.
9984 *** Therefore, libtool is disabling shared libraries support.  If you
9985 *** really care for shared libraries, you may want to install binutils
9986 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9987 *** You will then need to restart the configuration process.
9988
9989 _LT_EOF
9990       fi
9991       ;;
9992
9993     amigaos*)
9994       case $host_cpu in
9995       powerpc)
9996             # see comment about AmigaOS4 .so support
9997             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9998             archive_expsym_cmds=''
9999         ;;
10000       m68k)
10001             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)'
10002             hardcode_libdir_flag_spec='-L$libdir'
10003             hardcode_minus_L=yes
10004         ;;
10005       esac
10006       ;;
10007
10008     beos*)
10009       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10010         allow_undefined_flag=unsupported
10011         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10012         # support --undefined.  This deserves some investigation.  FIXME
10013         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10014       else
10015         ld_shlibs=no
10016       fi
10017       ;;
10018
10019     cygwin* | mingw* | pw32* | cegcc*)
10020       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10021       # as there is no search path for DLLs.
10022       hardcode_libdir_flag_spec='-L$libdir'
10023       export_dynamic_flag_spec='${wl}--export-all-symbols'
10024       allow_undefined_flag=unsupported
10025       always_export_symbols=no
10026       enable_shared_with_static_runtimes=yes
10027       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'
10028       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10029
10030       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10031         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10032         # If the export-symbols file already is a .def file (1st line
10033         # is EXPORTS), use it as is; otherwise, prepend...
10034         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10035           cp $export_symbols $output_objdir/$soname.def;
10036         else
10037           echo EXPORTS > $output_objdir/$soname.def;
10038           cat $export_symbols >> $output_objdir/$soname.def;
10039         fi~
10040         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10041       else
10042         ld_shlibs=no
10043       fi
10044       ;;
10045
10046     haiku*)
10047       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10048       link_all_deplibs=yes
10049       ;;
10050
10051     interix[3-9]*)
10052       hardcode_direct=no
10053       hardcode_shlibpath_var=no
10054       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10055       export_dynamic_flag_spec='${wl}-E'
10056       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10057       # Instead, shared libraries are loaded at an image base (0x10000000 by
10058       # default) and relocated if they conflict, which is a slow very memory
10059       # consuming and fragmenting process.  To avoid this, we pick a random,
10060       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10061       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10062       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10063       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'
10064       ;;
10065
10066     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10067       tmp_diet=no
10068       if test "$host_os" = linux-dietlibc; then
10069         case $cc_basename in
10070           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10071         esac
10072       fi
10073       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10074          && test "$tmp_diet" = no
10075       then
10076         tmp_addflag=' $pic_flag'
10077         tmp_sharedflag='-shared'
10078         case $cc_basename,$host_cpu in
10079         pgcc*)                          # Portland Group C compiler
10080           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'
10081           tmp_addflag=' $pic_flag'
10082           ;;
10083         pgf77* | pgf90* | pgf95* | pgfortran*)
10084                                         # Portland Group f77 and f90 compilers
10085           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'
10086           tmp_addflag=' $pic_flag -Mnomain' ;;
10087         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10088           tmp_addflag=' -i_dynamic' ;;
10089         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10090           tmp_addflag=' -i_dynamic -nofor_main' ;;
10091         ifc* | ifort*)                  # Intel Fortran compiler
10092           tmp_addflag=' -nofor_main' ;;
10093         lf95*)                          # Lahey Fortran 8.1
10094           whole_archive_flag_spec=
10095           tmp_sharedflag='--shared' ;;
10096         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10097           tmp_sharedflag='-qmkshrobj'
10098           tmp_addflag= ;;
10099         nvcc*)  # Cuda Compiler Driver 2.2
10100           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'
10101           compiler_needs_object=yes
10102           ;;
10103         esac
10104         case `$CC -V 2>&1 | sed 5q` in
10105         *Sun\ C*)                       # Sun C 5.9
10106           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'
10107           compiler_needs_object=yes
10108           tmp_sharedflag='-G' ;;
10109         *Sun\ F*)                       # Sun Fortran 8.3
10110           tmp_sharedflag='-G' ;;
10111         esac
10112         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10113
10114         if test "x$supports_anon_versioning" = xyes; then
10115           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10116             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10117             echo "local: *; };" >> $output_objdir/$libname.ver~
10118             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10119         fi
10120
10121         case $cc_basename in
10122         xlf* | bgf* | bgxlf* | mpixlf*)
10123           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10124           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10125           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10126           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10127           if test "x$supports_anon_versioning" = xyes; then
10128             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10129               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10130               echo "local: *; };" >> $output_objdir/$libname.ver~
10131               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10132           fi
10133           ;;
10134         esac
10135       else
10136         ld_shlibs=no
10137       fi
10138       ;;
10139
10140     netbsd* | netbsdelf*-gnu)
10141       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10142         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10143         wlarc=
10144       else
10145         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10146         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10147       fi
10148       ;;
10149
10150     solaris*)
10151       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10152         ld_shlibs=no
10153         cat <<_LT_EOF 1>&2
10154
10155 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10156 *** create shared libraries on Solaris systems.  Therefore, libtool
10157 *** is disabling shared libraries support.  We urge you to upgrade GNU
10158 *** binutils to release 2.9.1 or newer.  Another option is to modify
10159 *** your PATH or compiler configuration so that the native linker is
10160 *** used, and then restart.
10161
10162 _LT_EOF
10163       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10164         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10165         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10166       else
10167         ld_shlibs=no
10168       fi
10169       ;;
10170
10171     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10172       case `$LD -v 2>&1` in
10173         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10174         ld_shlibs=no
10175         cat <<_LT_EOF 1>&2
10176
10177 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10178 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10179 *** is disabling shared libraries support.  We urge you to upgrade GNU
10180 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10181 *** your PATH or compiler configuration so that the native linker is
10182 *** used, and then restart.
10183
10184 _LT_EOF
10185         ;;
10186         *)
10187           # For security reasons, it is highly recommended that you always
10188           # use absolute paths for naming shared libraries, and exclude the
10189           # DT_RUNPATH tag from executables and libraries.  But doing so
10190           # requires that you compile everything twice, which is a pain.
10191           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10192             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10193             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10194             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10195           else
10196             ld_shlibs=no
10197           fi
10198         ;;
10199       esac
10200       ;;
10201
10202     sunos4*)
10203       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10204       wlarc=
10205       hardcode_direct=yes
10206       hardcode_shlibpath_var=no
10207       ;;
10208
10209     *)
10210       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10211         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10212         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10213       else
10214         ld_shlibs=no
10215       fi
10216       ;;
10217     esac
10218
10219     if test "$ld_shlibs" = no; then
10220       runpath_var=
10221       hardcode_libdir_flag_spec=
10222       export_dynamic_flag_spec=
10223       whole_archive_flag_spec=
10224     fi
10225   else
10226     # PORTME fill in a description of your system's linker (not GNU ld)
10227     case $host_os in
10228     aix3*)
10229       allow_undefined_flag=unsupported
10230       always_export_symbols=yes
10231       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'
10232       # Note: this linker hardcodes the directories in LIBPATH if there
10233       # are no directories specified by -L.
10234       hardcode_minus_L=yes
10235       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10236         # Neither direct hardcoding nor static linking is supported with a
10237         # broken collect2.
10238         hardcode_direct=unsupported
10239       fi
10240       ;;
10241
10242     aix[4-9]*)
10243       if test "$host_cpu" = ia64; then
10244         # On IA64, the linker does run time linking by default, so we don't
10245         # have to do anything special.
10246         aix_use_runtimelinking=no
10247         exp_sym_flag='-Bexport'
10248         no_entry_flag=""
10249       else
10250         # If we're using GNU nm, then we don't want the "-C" option.
10251         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10252         # Also, AIX nm treats weak defined symbols like other global
10253         # defined symbols, whereas GNU nm marks them as "W".
10254         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10255           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'
10256         else
10257           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'
10258         fi
10259         aix_use_runtimelinking=no
10260
10261         # Test if we are trying to use run time linking or normal
10262         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10263         # need to do runtime linking.
10264         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10265           for ld_flag in $LDFLAGS; do
10266           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10267             aix_use_runtimelinking=yes
10268             break
10269           fi
10270           done
10271           ;;
10272         esac
10273
10274         exp_sym_flag='-bexport'
10275         no_entry_flag='-bnoentry'
10276       fi
10277
10278       # When large executables or shared objects are built, AIX ld can
10279       # have problems creating the table of contents.  If linking a library
10280       # or program results in "error TOC overflow" add -mminimal-toc to
10281       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10282       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10283
10284       archive_cmds=''
10285       hardcode_direct=yes
10286       hardcode_direct_absolute=yes
10287       hardcode_libdir_separator=':'
10288       link_all_deplibs=yes
10289       file_list_spec='${wl}-f,'
10290
10291       if test "$GCC" = yes; then
10292         case $host_os in aix4.[012]|aix4.[012].*)
10293         # We only want to do this on AIX 4.2 and lower, the check
10294         # below for broken collect2 doesn't work under 4.3+
10295           collect2name=`${CC} -print-prog-name=collect2`
10296           if test -f "$collect2name" &&
10297            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10298           then
10299           # We have reworked collect2
10300           :
10301           else
10302           # We have old collect2
10303           hardcode_direct=unsupported
10304           # It fails to find uninstalled libraries when the uninstalled
10305           # path is not listed in the libpath.  Setting hardcode_minus_L
10306           # to unsupported forces relinking
10307           hardcode_minus_L=yes
10308           hardcode_libdir_flag_spec='-L$libdir'
10309           hardcode_libdir_separator=
10310           fi
10311           ;;
10312         esac
10313         shared_flag='-shared'
10314         if test "$aix_use_runtimelinking" = yes; then
10315           shared_flag="$shared_flag "'${wl}-G'
10316         fi
10317         link_all_deplibs=no
10318       else
10319         # not using gcc
10320         if test "$host_cpu" = ia64; then
10321         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10322         # chokes on -Wl,-G. The following line is correct:
10323           shared_flag='-G'
10324         else
10325           if test "$aix_use_runtimelinking" = yes; then
10326             shared_flag='${wl}-G'
10327           else
10328             shared_flag='${wl}-bM:SRE'
10329           fi
10330         fi
10331       fi
10332
10333       export_dynamic_flag_spec='${wl}-bexpall'
10334       # It seems that -bexpall does not export symbols beginning with
10335       # underscore (_), so it is better to generate a list of symbols to export.
10336       always_export_symbols=yes
10337       if test "$aix_use_runtimelinking" = yes; then
10338         # Warning - without using the other runtime loading flags (-brtl),
10339         # -berok will link without error, but may produce a broken library.
10340         allow_undefined_flag='-berok'
10341         # Determine the default libpath from the value encoded in an
10342         # empty executable.
10343         if test "${lt_cv_aix_libpath+set}" = set; then
10344   aix_libpath=$lt_cv_aix_libpath
10345 else
10346   if ${lt_cv_aix_libpath_+:} false; then :
10347   $as_echo_n "(cached) " >&6
10348 else
10349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h.  */
10351
10352 int
10353 main ()
10354 {
10355
10356   ;
10357   return 0;
10358 }
10359 _ACEOF
10360 if ac_fn_c_try_link "$LINENO"; then :
10361
10362   lt_aix_libpath_sed='
10363       /Import File Strings/,/^$/ {
10364           /^0/ {
10365               s/^0  *\([^ ]*\) *$/\1/
10366               p
10367           }
10368       }'
10369   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10370   # Check for a 64-bit object if we didn't find anything.
10371   if test -z "$lt_cv_aix_libpath_"; then
10372     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10373   fi
10374 fi
10375 rm -f core conftest.err conftest.$ac_objext \
10376     conftest$ac_exeext conftest.$ac_ext
10377   if test -z "$lt_cv_aix_libpath_"; then
10378     lt_cv_aix_libpath_="/usr/lib:/lib"
10379   fi
10380
10381 fi
10382
10383   aix_libpath=$lt_cv_aix_libpath_
10384 fi
10385
10386         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10387         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"
10388       else
10389         if test "$host_cpu" = ia64; then
10390           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10391           allow_undefined_flag="-z nodefs"
10392           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"
10393         else
10394          # Determine the default libpath from the value encoded in an
10395          # empty executable.
10396          if test "${lt_cv_aix_libpath+set}" = set; then
10397   aix_libpath=$lt_cv_aix_libpath
10398 else
10399   if ${lt_cv_aix_libpath_+:} false; then :
10400   $as_echo_n "(cached) " >&6
10401 else
10402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h.  */
10404
10405 int
10406 main ()
10407 {
10408
10409   ;
10410   return 0;
10411 }
10412 _ACEOF
10413 if ac_fn_c_try_link "$LINENO"; then :
10414
10415   lt_aix_libpath_sed='
10416       /Import File Strings/,/^$/ {
10417           /^0/ {
10418               s/^0  *\([^ ]*\) *$/\1/
10419               p
10420           }
10421       }'
10422   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10423   # Check for a 64-bit object if we didn't find anything.
10424   if test -z "$lt_cv_aix_libpath_"; then
10425     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10426   fi
10427 fi
10428 rm -f core conftest.err conftest.$ac_objext \
10429     conftest$ac_exeext conftest.$ac_ext
10430   if test -z "$lt_cv_aix_libpath_"; then
10431     lt_cv_aix_libpath_="/usr/lib:/lib"
10432   fi
10433
10434 fi
10435
10436   aix_libpath=$lt_cv_aix_libpath_
10437 fi
10438
10439          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10440           # Warning - without using the other run time loading flags,
10441           # -berok will link without error, but may produce a broken library.
10442           no_undefined_flag=' ${wl}-bernotok'
10443           allow_undefined_flag=' ${wl}-berok'
10444           if test "$with_gnu_ld" = yes; then
10445             # We only use this code for GNU lds that support --whole-archive.
10446             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10447           else
10448             # Exported symbols can be pulled into shared objects from archives
10449             whole_archive_flag_spec='$convenience'
10450           fi
10451           archive_cmds_need_lc=yes
10452           # This is similar to how AIX traditionally builds its shared libraries.
10453           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'
10454         fi
10455       fi
10456       ;;
10457
10458     amigaos*)
10459       case $host_cpu in
10460       powerpc)
10461             # see comment about AmigaOS4 .so support
10462             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10463             archive_expsym_cmds=''
10464         ;;
10465       m68k)
10466             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)'
10467             hardcode_libdir_flag_spec='-L$libdir'
10468             hardcode_minus_L=yes
10469         ;;
10470       esac
10471       ;;
10472
10473     bsdi[45]*)
10474       export_dynamic_flag_spec=-rdynamic
10475       ;;
10476
10477     cygwin* | mingw* | pw32* | cegcc*)
10478       # When not using gcc, we currently assume that we are using
10479       # Microsoft Visual C++.
10480       # hardcode_libdir_flag_spec is actually meaningless, as there is
10481       # no search path for DLLs.
10482       case $cc_basename in
10483       cl*)
10484         # Native MSVC
10485         hardcode_libdir_flag_spec=' '
10486         allow_undefined_flag=unsupported
10487         always_export_symbols=yes
10488         file_list_spec='@'
10489         # Tell ltmain to make .lib files, not .a files.
10490         libext=lib
10491         # Tell ltmain to make .dll files, not .so files.
10492         shrext_cmds=".dll"
10493         # FIXME: Setting linknames here is a bad hack.
10494         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10495         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10496             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10497           else
10498             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10499           fi~
10500           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10501           linknames='
10502         # The linker will not automatically build a static lib if we build a DLL.
10503         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10504         enable_shared_with_static_runtimes=yes
10505         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10506         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10507         # Don't use ranlib
10508         old_postinstall_cmds='chmod 644 $oldlib'
10509         postlink_cmds='lt_outputfile="@OUTPUT@"~
10510           lt_tool_outputfile="@TOOL_OUTPUT@"~
10511           case $lt_outputfile in
10512             *.exe|*.EXE) ;;
10513             *)
10514               lt_outputfile="$lt_outputfile.exe"
10515               lt_tool_outputfile="$lt_tool_outputfile.exe"
10516               ;;
10517           esac~
10518           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10519             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10520             $RM "$lt_outputfile.manifest";
10521           fi'
10522         ;;
10523       *)
10524         # Assume MSVC wrapper
10525         hardcode_libdir_flag_spec=' '
10526         allow_undefined_flag=unsupported
10527         # Tell ltmain to make .lib files, not .a files.
10528         libext=lib
10529         # Tell ltmain to make .dll files, not .so files.
10530         shrext_cmds=".dll"
10531         # FIXME: Setting linknames here is a bad hack.
10532         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10533         # The linker will automatically build a .lib file if we build a DLL.
10534         old_archive_from_new_cmds='true'
10535         # FIXME: Should let the user specify the lib program.
10536         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10537         enable_shared_with_static_runtimes=yes
10538         ;;
10539       esac
10540       ;;
10541
10542     darwin* | rhapsody*)
10543
10544
10545   archive_cmds_need_lc=no
10546   hardcode_direct=no
10547   hardcode_automatic=yes
10548   hardcode_shlibpath_var=unsupported
10549   if test "$lt_cv_ld_force_load" = "yes"; then
10550     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\"`'
10551
10552   else
10553     whole_archive_flag_spec=''
10554   fi
10555   link_all_deplibs=yes
10556   allow_undefined_flag="$_lt_dar_allow_undefined"
10557   case $cc_basename in
10558      ifort*) _lt_dar_can_shared=yes ;;
10559      *) _lt_dar_can_shared=$GCC ;;
10560   esac
10561   if test "$_lt_dar_can_shared" = "yes"; then
10562     output_verbose_link_cmd=func_echo_all
10563     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10564     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10565     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}"
10566     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}"
10567
10568   else
10569   ld_shlibs=no
10570   fi
10571
10572       ;;
10573
10574     dgux*)
10575       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10576       hardcode_libdir_flag_spec='-L$libdir'
10577       hardcode_shlibpath_var=no
10578       ;;
10579
10580     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10581     # support.  Future versions do this automatically, but an explicit c++rt0.o
10582     # does not break anything, and helps significantly (at the cost of a little
10583     # extra space).
10584     freebsd2.2*)
10585       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10586       hardcode_libdir_flag_spec='-R$libdir'
10587       hardcode_direct=yes
10588       hardcode_shlibpath_var=no
10589       ;;
10590
10591     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10592     freebsd2.*)
10593       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10594       hardcode_direct=yes
10595       hardcode_minus_L=yes
10596       hardcode_shlibpath_var=no
10597       ;;
10598
10599     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10600     freebsd* | dragonfly*)
10601       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10602       hardcode_libdir_flag_spec='-R$libdir'
10603       hardcode_direct=yes
10604       hardcode_shlibpath_var=no
10605       ;;
10606
10607     hpux9*)
10608       if test "$GCC" = yes; then
10609         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'
10610       else
10611         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'
10612       fi
10613       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10614       hardcode_libdir_separator=:
10615       hardcode_direct=yes
10616
10617       # hardcode_minus_L: Not really in the search PATH,
10618       # but as the default location of the library.
10619       hardcode_minus_L=yes
10620       export_dynamic_flag_spec='${wl}-E'
10621       ;;
10622
10623     hpux10*)
10624       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10625         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10626       else
10627         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10628       fi
10629       if test "$with_gnu_ld" = no; then
10630         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10631         hardcode_libdir_separator=:
10632         hardcode_direct=yes
10633         hardcode_direct_absolute=yes
10634         export_dynamic_flag_spec='${wl}-E'
10635         # hardcode_minus_L: Not really in the search PATH,
10636         # but as the default location of the library.
10637         hardcode_minus_L=yes
10638       fi
10639       ;;
10640
10641     hpux11*)
10642       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10643         case $host_cpu in
10644         hppa*64*)
10645           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10646           ;;
10647         ia64*)
10648           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10649           ;;
10650         *)
10651           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10652           ;;
10653         esac
10654       else
10655         case $host_cpu in
10656         hppa*64*)
10657           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10658           ;;
10659         ia64*)
10660           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10661           ;;
10662         *)
10663
10664           # Older versions of the 11.00 compiler do not understand -b yet
10665           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10666           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10667 $as_echo_n "checking if $CC understands -b... " >&6; }
10668 if ${lt_cv_prog_compiler__b+:} false; then :
10669   $as_echo_n "(cached) " >&6
10670 else
10671   lt_cv_prog_compiler__b=no
10672    save_LDFLAGS="$LDFLAGS"
10673    LDFLAGS="$LDFLAGS -b"
10674    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10675    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10676      # The linker can only warn and ignore the option if not recognized
10677      # So say no if there are warnings
10678      if test -s conftest.err; then
10679        # Append any errors to the config.log.
10680        cat conftest.err 1>&5
10681        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10682        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10683        if diff conftest.exp conftest.er2 >/dev/null; then
10684          lt_cv_prog_compiler__b=yes
10685        fi
10686      else
10687        lt_cv_prog_compiler__b=yes
10688      fi
10689    fi
10690    $RM -r conftest*
10691    LDFLAGS="$save_LDFLAGS"
10692
10693 fi
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10695 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10696
10697 if test x"$lt_cv_prog_compiler__b" = xyes; then
10698     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10699 else
10700     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10701 fi
10702
10703           ;;
10704         esac
10705       fi
10706       if test "$with_gnu_ld" = no; then
10707         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10708         hardcode_libdir_separator=:
10709
10710         case $host_cpu in
10711         hppa*64*|ia64*)
10712           hardcode_direct=no
10713           hardcode_shlibpath_var=no
10714           ;;
10715         *)
10716           hardcode_direct=yes
10717           hardcode_direct_absolute=yes
10718           export_dynamic_flag_spec='${wl}-E'
10719
10720           # hardcode_minus_L: Not really in the search PATH,
10721           # but as the default location of the library.
10722           hardcode_minus_L=yes
10723           ;;
10724         esac
10725       fi
10726       ;;
10727
10728     irix5* | irix6* | nonstopux*)
10729       if test "$GCC" = yes; then
10730         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'
10731         # Try to use the -exported_symbol ld option, if it does not
10732         # work, assume that -exports_file does not work either and
10733         # implicitly export all symbols.
10734         # This should be the same for all languages, so no per-tag cache variable.
10735         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10736 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10737 if ${lt_cv_irix_exported_symbol+:} false; then :
10738   $as_echo_n "(cached) " >&6
10739 else
10740   save_LDFLAGS="$LDFLAGS"
10741            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10742            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h.  */
10744 int foo (void) { return 0; }
10745 _ACEOF
10746 if ac_fn_c_try_link "$LINENO"; then :
10747   lt_cv_irix_exported_symbol=yes
10748 else
10749   lt_cv_irix_exported_symbol=no
10750 fi
10751 rm -f core conftest.err conftest.$ac_objext \
10752     conftest$ac_exeext conftest.$ac_ext
10753            LDFLAGS="$save_LDFLAGS"
10754 fi
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10756 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10757         if test "$lt_cv_irix_exported_symbol" = yes; then
10758           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'
10759         fi
10760       else
10761         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'
10762         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'
10763       fi
10764       archive_cmds_need_lc='no'
10765       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10766       hardcode_libdir_separator=:
10767       inherit_rpath=yes
10768       link_all_deplibs=yes
10769       ;;
10770
10771     netbsd* | netbsdelf*-gnu)
10772       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10773         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10774       else
10775         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10776       fi
10777       hardcode_libdir_flag_spec='-R$libdir'
10778       hardcode_direct=yes
10779       hardcode_shlibpath_var=no
10780       ;;
10781
10782     newsos6)
10783       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10784       hardcode_direct=yes
10785       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10786       hardcode_libdir_separator=:
10787       hardcode_shlibpath_var=no
10788       ;;
10789
10790     *nto* | *qnx*)
10791       ;;
10792
10793     openbsd*)
10794       if test -f /usr/libexec/ld.so; then
10795         hardcode_direct=yes
10796         hardcode_shlibpath_var=no
10797         hardcode_direct_absolute=yes
10798         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10799           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10800           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10801           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10802           export_dynamic_flag_spec='${wl}-E'
10803         else
10804           case $host_os in
10805            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10806              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10807              hardcode_libdir_flag_spec='-R$libdir'
10808              ;;
10809            *)
10810              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10811              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10812              ;;
10813           esac
10814         fi
10815       else
10816         ld_shlibs=no
10817       fi
10818       ;;
10819
10820     os2*)
10821       hardcode_libdir_flag_spec='-L$libdir'
10822       hardcode_minus_L=yes
10823       allow_undefined_flag=unsupported
10824       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'
10825       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10826       ;;
10827
10828     osf3*)
10829       if test "$GCC" = yes; then
10830         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10831         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'
10832       else
10833         allow_undefined_flag=' -expect_unresolved \*'
10834         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'
10835       fi
10836       archive_cmds_need_lc='no'
10837       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10838       hardcode_libdir_separator=:
10839       ;;
10840
10841     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10842       if test "$GCC" = yes; then
10843         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10844         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'
10845         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10846       else
10847         allow_undefined_flag=' -expect_unresolved \*'
10848         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'
10849         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~
10850         $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'
10851
10852         # Both c and cxx compiler support -rpath directly
10853         hardcode_libdir_flag_spec='-rpath $libdir'
10854       fi
10855       archive_cmds_need_lc='no'
10856       hardcode_libdir_separator=:
10857       ;;
10858
10859     solaris*)
10860       no_undefined_flag=' -z defs'
10861       if test "$GCC" = yes; then
10862         wlarc='${wl}'
10863         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10864         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10865           $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'
10866       else
10867         case `$CC -V 2>&1` in
10868         *"Compilers 5.0"*)
10869           wlarc=''
10870           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10871           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10872           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10873           ;;
10874         *)
10875           wlarc='${wl}'
10876           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10877           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10878           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10879           ;;
10880         esac
10881       fi
10882       hardcode_libdir_flag_spec='-R$libdir'
10883       hardcode_shlibpath_var=no
10884       case $host_os in
10885       solaris2.[0-5] | solaris2.[0-5].*) ;;
10886       *)
10887         # The compiler driver will combine and reorder linker options,
10888         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10889         # but is careful enough not to reorder.
10890         # Supported since Solaris 2.6 (maybe 2.5.1?)
10891         if test "$GCC" = yes; then
10892           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10893         else
10894           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10895         fi
10896         ;;
10897       esac
10898       link_all_deplibs=yes
10899       ;;
10900
10901     sunos4*)
10902       if test "x$host_vendor" = xsequent; then
10903         # Use $CC to link under sequent, because it throws in some extra .o
10904         # files that make .init and .fini sections work.
10905         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10906       else
10907         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10908       fi
10909       hardcode_libdir_flag_spec='-L$libdir'
10910       hardcode_direct=yes
10911       hardcode_minus_L=yes
10912       hardcode_shlibpath_var=no
10913       ;;
10914
10915     sysv4)
10916       case $host_vendor in
10917         sni)
10918           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10919           hardcode_direct=yes # is this really true???
10920         ;;
10921         siemens)
10922           ## LD is ld it makes a PLAMLIB
10923           ## CC just makes a GrossModule.
10924           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10925           reload_cmds='$CC -r -o $output$reload_objs'
10926           hardcode_direct=no
10927         ;;
10928         motorola)
10929           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10930           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10931         ;;
10932       esac
10933       runpath_var='LD_RUN_PATH'
10934       hardcode_shlibpath_var=no
10935       ;;
10936
10937     sysv4.3*)
10938       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10939       hardcode_shlibpath_var=no
10940       export_dynamic_flag_spec='-Bexport'
10941       ;;
10942
10943     sysv4*MP*)
10944       if test -d /usr/nec; then
10945         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10946         hardcode_shlibpath_var=no
10947         runpath_var=LD_RUN_PATH
10948         hardcode_runpath_var=yes
10949         ld_shlibs=yes
10950       fi
10951       ;;
10952
10953     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10954       no_undefined_flag='${wl}-z,text'
10955       archive_cmds_need_lc=no
10956       hardcode_shlibpath_var=no
10957       runpath_var='LD_RUN_PATH'
10958
10959       if test "$GCC" = yes; then
10960         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10961         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10962       else
10963         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10964         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10965       fi
10966       ;;
10967
10968     sysv5* | sco3.2v5* | sco5v6*)
10969       # Note: We can NOT use -z defs as we might desire, because we do not
10970       # link with -lc, and that would cause any symbols used from libc to
10971       # always be unresolved, which means just about no library would
10972       # ever link correctly.  If we're not using GNU ld we use -z text
10973       # though, which does catch some bad symbols but isn't as heavy-handed
10974       # as -z defs.
10975       no_undefined_flag='${wl}-z,text'
10976       allow_undefined_flag='${wl}-z,nodefs'
10977       archive_cmds_need_lc=no
10978       hardcode_shlibpath_var=no
10979       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10980       hardcode_libdir_separator=':'
10981       link_all_deplibs=yes
10982       export_dynamic_flag_spec='${wl}-Bexport'
10983       runpath_var='LD_RUN_PATH'
10984
10985       if test "$GCC" = yes; then
10986         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10987         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10988       else
10989         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10990         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10991       fi
10992       ;;
10993
10994     uts4*)
10995       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10996       hardcode_libdir_flag_spec='-L$libdir'
10997       hardcode_shlibpath_var=no
10998       ;;
10999
11000     *)
11001       ld_shlibs=no
11002       ;;
11003     esac
11004
11005     if test x$host_vendor = xsni; then
11006       case $host in
11007       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11008         export_dynamic_flag_spec='${wl}-Blargedynsym'
11009         ;;
11010       esac
11011     fi
11012   fi
11013
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11015 $as_echo "$ld_shlibs" >&6; }
11016 test "$ld_shlibs" = no && can_build_shared=no
11017
11018 with_gnu_ld=$with_gnu_ld
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034 #
11035 # Do we need to explicitly link libc?
11036 #
11037 case "x$archive_cmds_need_lc" in
11038 x|xyes)
11039   # Assume -lc should be added
11040   archive_cmds_need_lc=yes
11041
11042   if test "$enable_shared" = yes && test "$GCC" = yes; then
11043     case $archive_cmds in
11044     *'~'*)
11045       # FIXME: we may have to deal with multi-command sequences.
11046       ;;
11047     '$CC '*)
11048       # Test whether the compiler implicitly links with -lc since on some
11049       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11050       # to ld, don't add -lc before -lgcc.
11051       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11052 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11053 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11054   $as_echo_n "(cached) " >&6
11055 else
11056   $RM conftest*
11057         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11058
11059         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11060   (eval $ac_compile) 2>&5
11061   ac_status=$?
11062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11063   test $ac_status = 0; } 2>conftest.err; then
11064           soname=conftest
11065           lib=conftest
11066           libobjs=conftest.$ac_objext
11067           deplibs=
11068           wl=$lt_prog_compiler_wl
11069           pic_flag=$lt_prog_compiler_pic
11070           compiler_flags=-v
11071           linker_flags=-v
11072           verstring=
11073           output_objdir=.
11074           libname=conftest
11075           lt_save_allow_undefined_flag=$allow_undefined_flag
11076           allow_undefined_flag=
11077           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11078   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11079   ac_status=$?
11080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11081   test $ac_status = 0; }
11082           then
11083             lt_cv_archive_cmds_need_lc=no
11084           else
11085             lt_cv_archive_cmds_need_lc=yes
11086           fi
11087           allow_undefined_flag=$lt_save_allow_undefined_flag
11088         else
11089           cat conftest.err 1>&5
11090         fi
11091         $RM conftest*
11092
11093 fi
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11095 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11096       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11097       ;;
11098     esac
11099   fi
11100   ;;
11101 esac
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11255 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11256
11257 if test "$GCC" = yes; then
11258   case $host_os in
11259     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11260     *) lt_awk_arg="/^libraries:/" ;;
11261   esac
11262   case $host_os in
11263     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11264     *) lt_sed_strip_eq="s,=/,/,g" ;;
11265   esac
11266   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11267   case $lt_search_path_spec in
11268   *\;*)
11269     # if the path contains ";" then we assume it to be the separator
11270     # otherwise default to the standard path separator (i.e. ":") - it is
11271     # assumed that no part of a normal pathname contains ";" but that should
11272     # okay in the real world where ";" in dirpaths is itself problematic.
11273     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11274     ;;
11275   *)
11276     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11277     ;;
11278   esac
11279   # Ok, now we have the path, separated by spaces, we can step through it
11280   # and add multilib dir if necessary.
11281   lt_tmp_lt_search_path_spec=
11282   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11283   for lt_sys_path in $lt_search_path_spec; do
11284     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11285       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11286     else
11287       test -d "$lt_sys_path" && \
11288         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11289     fi
11290   done
11291   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11292 BEGIN {RS=" "; FS="/|\n";} {
11293   lt_foo="";
11294   lt_count=0;
11295   for (lt_i = NF; lt_i > 0; lt_i--) {
11296     if ($lt_i != "" && $lt_i != ".") {
11297       if ($lt_i == "..") {
11298         lt_count++;
11299       } else {
11300         if (lt_count == 0) {
11301           lt_foo="/" $lt_i lt_foo;
11302         } else {
11303           lt_count--;
11304         }
11305       }
11306     }
11307   }
11308   if (lt_foo != "") { lt_freq[lt_foo]++; }
11309   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11310 }'`
11311   # AWK program above erroneously prepends '/' to C:/dos/paths
11312   # for these hosts.
11313   case $host_os in
11314     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11315       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11316   esac
11317   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11318 else
11319   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11320 fi
11321 library_names_spec=
11322 libname_spec='lib$name'
11323 soname_spec=
11324 shrext_cmds=".so"
11325 postinstall_cmds=
11326 postuninstall_cmds=
11327 finish_cmds=
11328 finish_eval=
11329 shlibpath_var=
11330 shlibpath_overrides_runpath=unknown
11331 version_type=none
11332 dynamic_linker="$host_os ld.so"
11333 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11334 need_lib_prefix=unknown
11335 hardcode_into_libs=no
11336
11337 # when you set need_version to no, make sure it does not cause -set_version
11338 # flags to be left without arguments
11339 need_version=unknown
11340
11341 case $host_os in
11342 aix3*)
11343   version_type=linux # correct to gnu/linux during the next big refactor
11344   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11345   shlibpath_var=LIBPATH
11346
11347   # AIX 3 has no versioning support, so we append a major version to the name.
11348   soname_spec='${libname}${release}${shared_ext}$major'
11349   ;;
11350
11351 aix[4-9]*)
11352   version_type=linux # correct to gnu/linux during the next big refactor
11353   need_lib_prefix=no
11354   need_version=no
11355   hardcode_into_libs=yes
11356   if test "$host_cpu" = ia64; then
11357     # AIX 5 supports IA64
11358     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11359     shlibpath_var=LD_LIBRARY_PATH
11360   else
11361     # With GCC up to 2.95.x, collect2 would create an import file
11362     # for dependence libraries.  The import file would start with
11363     # the line `#! .'.  This would cause the generated library to
11364     # depend on `.', always an invalid library.  This was fixed in
11365     # development snapshots of GCC prior to 3.0.
11366     case $host_os in
11367       aix4 | aix4.[01] | aix4.[01].*)
11368       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11369            echo ' yes '
11370            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11371         :
11372       else
11373         can_build_shared=no
11374       fi
11375       ;;
11376     esac
11377     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11378     # soname into executable. Probably we can add versioning support to
11379     # collect2, so additional links can be useful in future.
11380     if test "$aix_use_runtimelinking" = yes; then
11381       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11382       # instead of lib<name>.a to let people know that these are not
11383       # typical AIX shared libraries.
11384       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11385     else
11386       # We preserve .a as extension for shared libraries through AIX4.2
11387       # and later when we are not doing run time linking.
11388       library_names_spec='${libname}${release}.a $libname.a'
11389       soname_spec='${libname}${release}${shared_ext}$major'
11390     fi
11391     shlibpath_var=LIBPATH
11392   fi
11393   ;;
11394
11395 amigaos*)
11396   case $host_cpu in
11397   powerpc)
11398     # Since July 2007 AmigaOS4 officially supports .so libraries.
11399     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11400     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11401     ;;
11402   m68k)
11403     library_names_spec='$libname.ixlibrary $libname.a'
11404     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11405     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'
11406     ;;
11407   esac
11408   ;;
11409
11410 beos*)
11411   library_names_spec='${libname}${shared_ext}'
11412   dynamic_linker="$host_os ld.so"
11413   shlibpath_var=LIBRARY_PATH
11414   ;;
11415
11416 bsdi[45]*)
11417   version_type=linux # correct to gnu/linux during the next big refactor
11418   need_version=no
11419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420   soname_spec='${libname}${release}${shared_ext}$major'
11421   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11422   shlibpath_var=LD_LIBRARY_PATH
11423   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11424   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11425   # the default ld.so.conf also contains /usr/contrib/lib and
11426   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11427   # libtool to hard-code these into programs
11428   ;;
11429
11430 cygwin* | mingw* | pw32* | cegcc*)
11431   version_type=windows
11432   shrext_cmds=".dll"
11433   need_version=no
11434   need_lib_prefix=no
11435
11436   case $GCC,$cc_basename in
11437   yes,*)
11438     # gcc
11439     library_names_spec='$libname.dll.a'
11440     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11441     postinstall_cmds='base_file=`basename \${file}`~
11442       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11443       dldir=$destdir/`dirname \$dlpath`~
11444       test -d \$dldir || mkdir -p \$dldir~
11445       $install_prog $dir/$dlname \$dldir/$dlname~
11446       chmod a+x \$dldir/$dlname~
11447       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11448         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11449       fi'
11450     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11451       dlpath=$dir/\$dldll~
11452        $RM \$dlpath'
11453     shlibpath_overrides_runpath=yes
11454
11455     case $host_os in
11456     cygwin*)
11457       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11458       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11459
11460       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11461       ;;
11462     mingw* | cegcc*)
11463       # MinGW DLLs use traditional 'lib' prefix
11464       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11465       ;;
11466     pw32*)
11467       # pw32 DLLs use 'pw' prefix rather than 'lib'
11468       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11469       ;;
11470     esac
11471     dynamic_linker='Win32 ld.exe'
11472     ;;
11473
11474   *,cl*)
11475     # Native MSVC
11476     libname_spec='$name'
11477     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11478     library_names_spec='${libname}.dll.lib'
11479
11480     case $build_os in
11481     mingw*)
11482       sys_lib_search_path_spec=
11483       lt_save_ifs=$IFS
11484       IFS=';'
11485       for lt_path in $LIB
11486       do
11487         IFS=$lt_save_ifs
11488         # Let DOS variable expansion print the short 8.3 style file name.
11489         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11490         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11491       done
11492       IFS=$lt_save_ifs
11493       # Convert to MSYS style.
11494       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11495       ;;
11496     cygwin*)
11497       # Convert to unix form, then to dos form, then back to unix form
11498       # but this time dos style (no spaces!) so that the unix form looks
11499       # like /cygdrive/c/PROGRA~1:/cygdr...
11500       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11501       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11502       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11503       ;;
11504     *)
11505       sys_lib_search_path_spec="$LIB"
11506       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11507         # It is most probably a Windows format PATH.
11508         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11509       else
11510         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11511       fi
11512       # FIXME: find the short name or the path components, as spaces are
11513       # common. (e.g. "Program Files" -> "PROGRA~1")
11514       ;;
11515     esac
11516
11517     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11518     postinstall_cmds='base_file=`basename \${file}`~
11519       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11520       dldir=$destdir/`dirname \$dlpath`~
11521       test -d \$dldir || mkdir -p \$dldir~
11522       $install_prog $dir/$dlname \$dldir/$dlname'
11523     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11524       dlpath=$dir/\$dldll~
11525        $RM \$dlpath'
11526     shlibpath_overrides_runpath=yes
11527     dynamic_linker='Win32 link.exe'
11528     ;;
11529
11530   *)
11531     # Assume MSVC wrapper
11532     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11533     dynamic_linker='Win32 ld.exe'
11534     ;;
11535   esac
11536   # FIXME: first we should search . and the directory the executable is in
11537   shlibpath_var=PATH
11538   ;;
11539
11540 darwin* | rhapsody*)
11541   dynamic_linker="$host_os dyld"
11542   version_type=darwin
11543   need_lib_prefix=no
11544   need_version=no
11545   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11546   soname_spec='${libname}${release}${major}$shared_ext'
11547   shlibpath_overrides_runpath=yes
11548   shlibpath_var=DYLD_LIBRARY_PATH
11549   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11550
11551   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11552   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11553   ;;
11554
11555 dgux*)
11556   version_type=linux # correct to gnu/linux during the next big refactor
11557   need_lib_prefix=no
11558   need_version=no
11559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11560   soname_spec='${libname}${release}${shared_ext}$major'
11561   shlibpath_var=LD_LIBRARY_PATH
11562   ;;
11563
11564 freebsd* | dragonfly*)
11565   # DragonFly does not have aout.  When/if they implement a new
11566   # versioning mechanism, adjust this.
11567   if test -x /usr/bin/objformat; then
11568     objformat=`/usr/bin/objformat`
11569   else
11570     case $host_os in
11571     freebsd[23].*) objformat=aout ;;
11572     *) objformat=elf ;;
11573     esac
11574   fi
11575   version_type=freebsd-$objformat
11576   case $version_type in
11577     freebsd-elf*)
11578       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11579       need_version=no
11580       need_lib_prefix=no
11581       ;;
11582     freebsd-*)
11583       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11584       need_version=yes
11585       ;;
11586   esac
11587   shlibpath_var=LD_LIBRARY_PATH
11588   case $host_os in
11589   freebsd2.*)
11590     shlibpath_overrides_runpath=yes
11591     ;;
11592   freebsd3.[01]* | freebsdelf3.[01]*)
11593     shlibpath_overrides_runpath=yes
11594     hardcode_into_libs=yes
11595     ;;
11596   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11597   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11598     shlibpath_overrides_runpath=no
11599     hardcode_into_libs=yes
11600     ;;
11601   *) # from 4.6 on, and DragonFly
11602     shlibpath_overrides_runpath=yes
11603     hardcode_into_libs=yes
11604     ;;
11605   esac
11606   ;;
11607
11608 haiku*)
11609   version_type=linux # correct to gnu/linux during the next big refactor
11610   need_lib_prefix=no
11611   need_version=no
11612   dynamic_linker="$host_os runtime_loader"
11613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11614   soname_spec='${libname}${release}${shared_ext}$major'
11615   shlibpath_var=LIBRARY_PATH
11616   shlibpath_overrides_runpath=yes
11617   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11618   hardcode_into_libs=yes
11619   ;;
11620
11621 hpux9* | hpux10* | hpux11*)
11622   # Give a soname corresponding to the major version so that dld.sl refuses to
11623   # link against other versions.
11624   version_type=sunos
11625   need_lib_prefix=no
11626   need_version=no
11627   case $host_cpu in
11628   ia64*)
11629     shrext_cmds='.so'
11630     hardcode_into_libs=yes
11631     dynamic_linker="$host_os dld.so"
11632     shlibpath_var=LD_LIBRARY_PATH
11633     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11634     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635     soname_spec='${libname}${release}${shared_ext}$major'
11636     if test "X$HPUX_IA64_MODE" = X32; then
11637       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11638     else
11639       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11640     fi
11641     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11642     ;;
11643   hppa*64*)
11644     shrext_cmds='.sl'
11645     hardcode_into_libs=yes
11646     dynamic_linker="$host_os dld.sl"
11647     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11648     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11649     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11650     soname_spec='${libname}${release}${shared_ext}$major'
11651     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11652     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11653     ;;
11654   *)
11655     shrext_cmds='.sl'
11656     dynamic_linker="$host_os dld.sl"
11657     shlibpath_var=SHLIB_PATH
11658     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11659     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11660     soname_spec='${libname}${release}${shared_ext}$major'
11661     ;;
11662   esac
11663   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11664   postinstall_cmds='chmod 555 $lib'
11665   # or fails outright, so override atomically:
11666   install_override_mode=555
11667   ;;
11668
11669 interix[3-9]*)
11670   version_type=linux # correct to gnu/linux during the next big refactor
11671   need_lib_prefix=no
11672   need_version=no
11673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11674   soname_spec='${libname}${release}${shared_ext}$major'
11675   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11676   shlibpath_var=LD_LIBRARY_PATH
11677   shlibpath_overrides_runpath=no
11678   hardcode_into_libs=yes
11679   ;;
11680
11681 irix5* | irix6* | nonstopux*)
11682   case $host_os in
11683     nonstopux*) version_type=nonstopux ;;
11684     *)
11685         if test "$lt_cv_prog_gnu_ld" = yes; then
11686                 version_type=linux # correct to gnu/linux during the next big refactor
11687         else
11688                 version_type=irix
11689         fi ;;
11690   esac
11691   need_lib_prefix=no
11692   need_version=no
11693   soname_spec='${libname}${release}${shared_ext}$major'
11694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11695   case $host_os in
11696   irix5* | nonstopux*)
11697     libsuff= shlibsuff=
11698     ;;
11699   *)
11700     case $LD in # libtool.m4 will add one of these switches to LD
11701     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11702       libsuff= shlibsuff= libmagic=32-bit;;
11703     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11704       libsuff=32 shlibsuff=N32 libmagic=N32;;
11705     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11706       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11707     *) libsuff= shlibsuff= libmagic=never-match;;
11708     esac
11709     ;;
11710   esac
11711   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11712   shlibpath_overrides_runpath=no
11713   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11714   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11715   hardcode_into_libs=yes
11716   ;;
11717
11718 # No shared lib support for Linux oldld, aout, or coff.
11719 linux*oldld* | linux*aout* | linux*coff*)
11720   dynamic_linker=no
11721   ;;
11722
11723 # This must be glibc/ELF.
11724 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11725   version_type=linux # correct to gnu/linux during the next big refactor
11726   need_lib_prefix=no
11727   need_version=no
11728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11729   soname_spec='${libname}${release}${shared_ext}$major'
11730   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11731   shlibpath_var=LD_LIBRARY_PATH
11732   shlibpath_overrides_runpath=no
11733
11734   # Some binutils ld are patched to set DT_RUNPATH
11735   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11736   $as_echo_n "(cached) " >&6
11737 else
11738   lt_cv_shlibpath_overrides_runpath=no
11739     save_LDFLAGS=$LDFLAGS
11740     save_libdir=$libdir
11741     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11742          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11743     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744 /* end confdefs.h.  */
11745
11746 int
11747 main ()
11748 {
11749
11750   ;
11751   return 0;
11752 }
11753 _ACEOF
11754 if ac_fn_c_try_link "$LINENO"; then :
11755   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11756   lt_cv_shlibpath_overrides_runpath=yes
11757 fi
11758 fi
11759 rm -f core conftest.err conftest.$ac_objext \
11760     conftest$ac_exeext conftest.$ac_ext
11761     LDFLAGS=$save_LDFLAGS
11762     libdir=$save_libdir
11763
11764 fi
11765
11766   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11767
11768   # This implies no fast_install, which is unacceptable.
11769   # Some rework will be needed to allow for fast_install
11770   # before this can be enabled.
11771   hardcode_into_libs=yes
11772
11773   # Append ld.so.conf contents to the search path
11774   if test -f /etc/ld.so.conf; then
11775     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' ' '`
11776     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11777   fi
11778
11779   # We used to test for /lib/ld.so.1 and disable shared libraries on
11780   # powerpc, because MkLinux only supported shared libraries with the
11781   # GNU dynamic linker.  Since this was broken with cross compilers,
11782   # most powerpc-linux boxes support dynamic linking these days and
11783   # people can always --disable-shared, the test was removed, and we
11784   # assume the GNU/Linux dynamic linker is in use.
11785   dynamic_linker='GNU/Linux ld.so'
11786   ;;
11787
11788 netbsdelf*-gnu)
11789   version_type=linux
11790   need_lib_prefix=no
11791   need_version=no
11792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11793   soname_spec='${libname}${release}${shared_ext}$major'
11794   shlibpath_var=LD_LIBRARY_PATH
11795   shlibpath_overrides_runpath=no
11796   hardcode_into_libs=yes
11797   dynamic_linker='NetBSD ld.elf_so'
11798   ;;
11799
11800 netbsd*)
11801   version_type=sunos
11802   need_lib_prefix=no
11803   need_version=no
11804   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11805     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11806     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11807     dynamic_linker='NetBSD (a.out) ld.so'
11808   else
11809     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11810     soname_spec='${libname}${release}${shared_ext}$major'
11811     dynamic_linker='NetBSD ld.elf_so'
11812   fi
11813   shlibpath_var=LD_LIBRARY_PATH
11814   shlibpath_overrides_runpath=yes
11815   hardcode_into_libs=yes
11816   ;;
11817
11818 newsos6)
11819   version_type=linux # correct to gnu/linux during the next big refactor
11820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11821   shlibpath_var=LD_LIBRARY_PATH
11822   shlibpath_overrides_runpath=yes
11823   ;;
11824
11825 *nto* | *qnx*)
11826   version_type=qnx
11827   need_lib_prefix=no
11828   need_version=no
11829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11830   soname_spec='${libname}${release}${shared_ext}$major'
11831   shlibpath_var=LD_LIBRARY_PATH
11832   shlibpath_overrides_runpath=no
11833   hardcode_into_libs=yes
11834   dynamic_linker='ldqnx.so'
11835   ;;
11836
11837 openbsd*)
11838   version_type=sunos
11839   sys_lib_dlsearch_path_spec="/usr/lib"
11840   need_lib_prefix=no
11841   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11842   case $host_os in
11843     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11844     *)                          need_version=no  ;;
11845   esac
11846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11847   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11848   shlibpath_var=LD_LIBRARY_PATH
11849   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11850     case $host_os in
11851       openbsd2.[89] | openbsd2.[89].*)
11852         shlibpath_overrides_runpath=no
11853         ;;
11854       *)
11855         shlibpath_overrides_runpath=yes
11856         ;;
11857       esac
11858   else
11859     shlibpath_overrides_runpath=yes
11860   fi
11861   ;;
11862
11863 os2*)
11864   libname_spec='$name'
11865   shrext_cmds=".dll"
11866   need_lib_prefix=no
11867   library_names_spec='$libname${shared_ext} $libname.a'
11868   dynamic_linker='OS/2 ld.exe'
11869   shlibpath_var=LIBPATH
11870   ;;
11871
11872 osf3* | osf4* | osf5*)
11873   version_type=osf
11874   need_lib_prefix=no
11875   need_version=no
11876   soname_spec='${libname}${release}${shared_ext}$major'
11877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11878   shlibpath_var=LD_LIBRARY_PATH
11879   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11880   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11881   ;;
11882
11883 rdos*)
11884   dynamic_linker=no
11885   ;;
11886
11887 solaris*)
11888   version_type=linux # correct to gnu/linux during the next big refactor
11889   need_lib_prefix=no
11890   need_version=no
11891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11892   soname_spec='${libname}${release}${shared_ext}$major'
11893   shlibpath_var=LD_LIBRARY_PATH
11894   shlibpath_overrides_runpath=yes
11895   hardcode_into_libs=yes
11896   # ldd complains unless libraries are executable
11897   postinstall_cmds='chmod +x $lib'
11898   ;;
11899
11900 sunos4*)
11901   version_type=sunos
11902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11903   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11904   shlibpath_var=LD_LIBRARY_PATH
11905   shlibpath_overrides_runpath=yes
11906   if test "$with_gnu_ld" = yes; then
11907     need_lib_prefix=no
11908   fi
11909   need_version=yes
11910   ;;
11911
11912 sysv4 | sysv4.3*)
11913   version_type=linux # correct to gnu/linux during the next big refactor
11914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11915   soname_spec='${libname}${release}${shared_ext}$major'
11916   shlibpath_var=LD_LIBRARY_PATH
11917   case $host_vendor in
11918     sni)
11919       shlibpath_overrides_runpath=no
11920       need_lib_prefix=no
11921       runpath_var=LD_RUN_PATH
11922       ;;
11923     siemens)
11924       need_lib_prefix=no
11925       ;;
11926     motorola)
11927       need_lib_prefix=no
11928       need_version=no
11929       shlibpath_overrides_runpath=no
11930       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11931       ;;
11932   esac
11933   ;;
11934
11935 sysv4*MP*)
11936   if test -d /usr/nec ;then
11937     version_type=linux # correct to gnu/linux during the next big refactor
11938     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11939     soname_spec='$libname${shared_ext}.$major'
11940     shlibpath_var=LD_LIBRARY_PATH
11941   fi
11942   ;;
11943
11944 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11945   version_type=freebsd-elf
11946   need_lib_prefix=no
11947   need_version=no
11948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11949   soname_spec='${libname}${release}${shared_ext}$major'
11950   shlibpath_var=LD_LIBRARY_PATH
11951   shlibpath_overrides_runpath=yes
11952   hardcode_into_libs=yes
11953   if test "$with_gnu_ld" = yes; then
11954     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11955   else
11956     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11957     case $host_os in
11958       sco3.2v5*)
11959         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11960         ;;
11961     esac
11962   fi
11963   sys_lib_dlsearch_path_spec='/usr/lib'
11964   ;;
11965
11966 tpf*)
11967   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11968   version_type=linux # correct to gnu/linux during the next big refactor
11969   need_lib_prefix=no
11970   need_version=no
11971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11972   shlibpath_var=LD_LIBRARY_PATH
11973   shlibpath_overrides_runpath=no
11974   hardcode_into_libs=yes
11975   ;;
11976
11977 uts4*)
11978   version_type=linux # correct to gnu/linux during the next big refactor
11979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11980   soname_spec='${libname}${release}${shared_ext}$major'
11981   shlibpath_var=LD_LIBRARY_PATH
11982   ;;
11983
11984 *)
11985   dynamic_linker=no
11986   ;;
11987 esac
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11989 $as_echo "$dynamic_linker" >&6; }
11990 test "$dynamic_linker" = no && can_build_shared=no
11991
11992 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11993 if test "$GCC" = yes; then
11994   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11995 fi
11996
11997 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11998   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11999 fi
12000 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12001   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12002 fi
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12096 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12097 hardcode_action=
12098 if test -n "$hardcode_libdir_flag_spec" ||
12099    test -n "$runpath_var" ||
12100    test "X$hardcode_automatic" = "Xyes" ; then
12101
12102   # We can hardcode non-existent directories.
12103   if test "$hardcode_direct" != no &&
12104      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12105      # have to relink, otherwise we might link with an installed library
12106      # when we should be linking with a yet-to-be-installed one
12107      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12108      test "$hardcode_minus_L" != no; then
12109     # Linking always hardcodes the temporary library directory.
12110     hardcode_action=relink
12111   else
12112     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12113     hardcode_action=immediate
12114   fi
12115 else
12116   # We cannot hardcode anything, or else we can only hardcode existing
12117   # directories.
12118   hardcode_action=unsupported
12119 fi
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12121 $as_echo "$hardcode_action" >&6; }
12122
12123 if test "$hardcode_action" = relink ||
12124    test "$inherit_rpath" = yes; then
12125   # Fast installation is not supported
12126   enable_fast_install=no
12127 elif test "$shlibpath_overrides_runpath" = yes ||
12128      test "$enable_shared" = no; then
12129   # Fast installation is not necessary
12130   enable_fast_install=needless
12131 fi
12132
12133
12134
12135
12136
12137
12138   if test "x$enable_dlopen" != xyes; then
12139   enable_dlopen=unknown
12140   enable_dlopen_self=unknown
12141   enable_dlopen_self_static=unknown
12142 else
12143   lt_cv_dlopen=no
12144   lt_cv_dlopen_libs=
12145
12146   case $host_os in
12147   beos*)
12148     lt_cv_dlopen="load_add_on"
12149     lt_cv_dlopen_libs=
12150     lt_cv_dlopen_self=yes
12151     ;;
12152
12153   mingw* | pw32* | cegcc*)
12154     lt_cv_dlopen="LoadLibrary"
12155     lt_cv_dlopen_libs=
12156     ;;
12157
12158   cygwin*)
12159     lt_cv_dlopen="dlopen"
12160     lt_cv_dlopen_libs=
12161     ;;
12162
12163   darwin*)
12164   # if libdl is installed we need to link against it
12165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12166 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12167 if ${ac_cv_lib_dl_dlopen+:} false; then :
12168   $as_echo_n "(cached) " >&6
12169 else
12170   ac_check_lib_save_LIBS=$LIBS
12171 LIBS="-ldl  $LIBS"
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h.  */
12174
12175 /* Override any GCC internal prototype to avoid an error.
12176    Use char because int might match the return type of a GCC
12177    builtin and then its argument prototype would still apply.  */
12178 #ifdef __cplusplus
12179 extern "C"
12180 #endif
12181 char dlopen ();
12182 int
12183 main ()
12184 {
12185 return dlopen ();
12186   ;
12187   return 0;
12188 }
12189 _ACEOF
12190 if ac_fn_c_try_link "$LINENO"; then :
12191   ac_cv_lib_dl_dlopen=yes
12192 else
12193   ac_cv_lib_dl_dlopen=no
12194 fi
12195 rm -f core conftest.err conftest.$ac_objext \
12196     conftest$ac_exeext conftest.$ac_ext
12197 LIBS=$ac_check_lib_save_LIBS
12198 fi
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12200 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12201 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12202   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12203 else
12204
12205     lt_cv_dlopen="dyld"
12206     lt_cv_dlopen_libs=
12207     lt_cv_dlopen_self=yes
12208
12209 fi
12210
12211     ;;
12212
12213   *)
12214     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12215 if test "x$ac_cv_func_shl_load" = xyes; then :
12216   lt_cv_dlopen="shl_load"
12217 else
12218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12219 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12220 if ${ac_cv_lib_dld_shl_load+:} false; then :
12221   $as_echo_n "(cached) " >&6
12222 else
12223   ac_check_lib_save_LIBS=$LIBS
12224 LIBS="-ldld  $LIBS"
12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226 /* end confdefs.h.  */
12227
12228 /* Override any GCC internal prototype to avoid an error.
12229    Use char because int might match the return type of a GCC
12230    builtin and then its argument prototype would still apply.  */
12231 #ifdef __cplusplus
12232 extern "C"
12233 #endif
12234 char shl_load ();
12235 int
12236 main ()
12237 {
12238 return shl_load ();
12239   ;
12240   return 0;
12241 }
12242 _ACEOF
12243 if ac_fn_c_try_link "$LINENO"; then :
12244   ac_cv_lib_dld_shl_load=yes
12245 else
12246   ac_cv_lib_dld_shl_load=no
12247 fi
12248 rm -f core conftest.err conftest.$ac_objext \
12249     conftest$ac_exeext conftest.$ac_ext
12250 LIBS=$ac_check_lib_save_LIBS
12251 fi
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12253 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12254 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12255   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12256 else
12257   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12258 if test "x$ac_cv_func_dlopen" = xyes; then :
12259   lt_cv_dlopen="dlopen"
12260 else
12261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12262 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12263 if ${ac_cv_lib_dl_dlopen+:} false; then :
12264   $as_echo_n "(cached) " >&6
12265 else
12266   ac_check_lib_save_LIBS=$LIBS
12267 LIBS="-ldl  $LIBS"
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h.  */
12270
12271 /* Override any GCC internal prototype to avoid an error.
12272    Use char because int might match the return type of a GCC
12273    builtin and then its argument prototype would still apply.  */
12274 #ifdef __cplusplus
12275 extern "C"
12276 #endif
12277 char dlopen ();
12278 int
12279 main ()
12280 {
12281 return dlopen ();
12282   ;
12283   return 0;
12284 }
12285 _ACEOF
12286 if ac_fn_c_try_link "$LINENO"; then :
12287   ac_cv_lib_dl_dlopen=yes
12288 else
12289   ac_cv_lib_dl_dlopen=no
12290 fi
12291 rm -f core conftest.err conftest.$ac_objext \
12292     conftest$ac_exeext conftest.$ac_ext
12293 LIBS=$ac_check_lib_save_LIBS
12294 fi
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12296 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12297 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12298   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12299 else
12300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12301 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12302 if ${ac_cv_lib_svld_dlopen+:} false; then :
12303   $as_echo_n "(cached) " >&6
12304 else
12305   ac_check_lib_save_LIBS=$LIBS
12306 LIBS="-lsvld  $LIBS"
12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h.  */
12309
12310 /* Override any GCC internal prototype to avoid an error.
12311    Use char because int might match the return type of a GCC
12312    builtin and then its argument prototype would still apply.  */
12313 #ifdef __cplusplus
12314 extern "C"
12315 #endif
12316 char dlopen ();
12317 int
12318 main ()
12319 {
12320 return dlopen ();
12321   ;
12322   return 0;
12323 }
12324 _ACEOF
12325 if ac_fn_c_try_link "$LINENO"; then :
12326   ac_cv_lib_svld_dlopen=yes
12327 else
12328   ac_cv_lib_svld_dlopen=no
12329 fi
12330 rm -f core conftest.err conftest.$ac_objext \
12331     conftest$ac_exeext conftest.$ac_ext
12332 LIBS=$ac_check_lib_save_LIBS
12333 fi
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12335 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12336 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12337   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12338 else
12339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12340 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12341 if ${ac_cv_lib_dld_dld_link+:} false; then :
12342   $as_echo_n "(cached) " >&6
12343 else
12344   ac_check_lib_save_LIBS=$LIBS
12345 LIBS="-ldld  $LIBS"
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h.  */
12348
12349 /* Override any GCC internal prototype to avoid an error.
12350    Use char because int might match the return type of a GCC
12351    builtin and then its argument prototype would still apply.  */
12352 #ifdef __cplusplus
12353 extern "C"
12354 #endif
12355 char dld_link ();
12356 int
12357 main ()
12358 {
12359 return dld_link ();
12360   ;
12361   return 0;
12362 }
12363 _ACEOF
12364 if ac_fn_c_try_link "$LINENO"; then :
12365   ac_cv_lib_dld_dld_link=yes
12366 else
12367   ac_cv_lib_dld_dld_link=no
12368 fi
12369 rm -f core conftest.err conftest.$ac_objext \
12370     conftest$ac_exeext conftest.$ac_ext
12371 LIBS=$ac_check_lib_save_LIBS
12372 fi
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12374 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12375 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12376   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12377 fi
12378
12379
12380 fi
12381
12382
12383 fi
12384
12385
12386 fi
12387
12388
12389 fi
12390
12391
12392 fi
12393
12394     ;;
12395   esac
12396
12397   if test "x$lt_cv_dlopen" != xno; then
12398     enable_dlopen=yes
12399   else
12400     enable_dlopen=no
12401   fi
12402
12403   case $lt_cv_dlopen in
12404   dlopen)
12405     save_CPPFLAGS="$CPPFLAGS"
12406     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12407
12408     save_LDFLAGS="$LDFLAGS"
12409     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12410
12411     save_LIBS="$LIBS"
12412     LIBS="$lt_cv_dlopen_libs $LIBS"
12413
12414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12415 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12416 if ${lt_cv_dlopen_self+:} false; then :
12417   $as_echo_n "(cached) " >&6
12418 else
12419           if test "$cross_compiling" = yes; then :
12420   lt_cv_dlopen_self=cross
12421 else
12422   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12423   lt_status=$lt_dlunknown
12424   cat > conftest.$ac_ext <<_LT_EOF
12425 #line $LINENO "configure"
12426 #include "confdefs.h"
12427
12428 #if HAVE_DLFCN_H
12429 #include <dlfcn.h>
12430 #endif
12431
12432 #include <stdio.h>
12433
12434 #ifdef RTLD_GLOBAL
12435 #  define LT_DLGLOBAL           RTLD_GLOBAL
12436 #else
12437 #  ifdef DL_GLOBAL
12438 #    define LT_DLGLOBAL         DL_GLOBAL
12439 #  else
12440 #    define LT_DLGLOBAL         0
12441 #  endif
12442 #endif
12443
12444 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12445    find out it does not work in some platform. */
12446 #ifndef LT_DLLAZY_OR_NOW
12447 #  ifdef RTLD_LAZY
12448 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12449 #  else
12450 #    ifdef DL_LAZY
12451 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12452 #    else
12453 #      ifdef RTLD_NOW
12454 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12455 #      else
12456 #        ifdef DL_NOW
12457 #          define LT_DLLAZY_OR_NOW      DL_NOW
12458 #        else
12459 #          define LT_DLLAZY_OR_NOW      0
12460 #        endif
12461 #      endif
12462 #    endif
12463 #  endif
12464 #endif
12465
12466 /* When -fvisbility=hidden is used, assume the code has been annotated
12467    correspondingly for the symbols needed.  */
12468 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12469 int fnord () __attribute__((visibility("default")));
12470 #endif
12471
12472 int fnord () { return 42; }
12473 int main ()
12474 {
12475   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12476   int status = $lt_dlunknown;
12477
12478   if (self)
12479     {
12480       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12481       else
12482         {
12483           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12484           else puts (dlerror ());
12485         }
12486       /* dlclose (self); */
12487     }
12488   else
12489     puts (dlerror ());
12490
12491   return status;
12492 }
12493 _LT_EOF
12494   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12495   (eval $ac_link) 2>&5
12496   ac_status=$?
12497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12498   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12499     (./conftest; exit; ) >&5 2>/dev/null
12500     lt_status=$?
12501     case x$lt_status in
12502       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12503       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12504       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12505     esac
12506   else :
12507     # compilation failed
12508     lt_cv_dlopen_self=no
12509   fi
12510 fi
12511 rm -fr conftest*
12512
12513
12514 fi
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12516 $as_echo "$lt_cv_dlopen_self" >&6; }
12517
12518     if test "x$lt_cv_dlopen_self" = xyes; then
12519       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12520       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12521 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12522 if ${lt_cv_dlopen_self_static+:} false; then :
12523   $as_echo_n "(cached) " >&6
12524 else
12525           if test "$cross_compiling" = yes; then :
12526   lt_cv_dlopen_self_static=cross
12527 else
12528   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12529   lt_status=$lt_dlunknown
12530   cat > conftest.$ac_ext <<_LT_EOF
12531 #line $LINENO "configure"
12532 #include "confdefs.h"
12533
12534 #if HAVE_DLFCN_H
12535 #include <dlfcn.h>
12536 #endif
12537
12538 #include <stdio.h>
12539
12540 #ifdef RTLD_GLOBAL
12541 #  define LT_DLGLOBAL           RTLD_GLOBAL
12542 #else
12543 #  ifdef DL_GLOBAL
12544 #    define LT_DLGLOBAL         DL_GLOBAL
12545 #  else
12546 #    define LT_DLGLOBAL         0
12547 #  endif
12548 #endif
12549
12550 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12551    find out it does not work in some platform. */
12552 #ifndef LT_DLLAZY_OR_NOW
12553 #  ifdef RTLD_LAZY
12554 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12555 #  else
12556 #    ifdef DL_LAZY
12557 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12558 #    else
12559 #      ifdef RTLD_NOW
12560 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12561 #      else
12562 #        ifdef DL_NOW
12563 #          define LT_DLLAZY_OR_NOW      DL_NOW
12564 #        else
12565 #          define LT_DLLAZY_OR_NOW      0
12566 #        endif
12567 #      endif
12568 #    endif
12569 #  endif
12570 #endif
12571
12572 /* When -fvisbility=hidden is used, assume the code has been annotated
12573    correspondingly for the symbols needed.  */
12574 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12575 int fnord () __attribute__((visibility("default")));
12576 #endif
12577
12578 int fnord () { return 42; }
12579 int main ()
12580 {
12581   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12582   int status = $lt_dlunknown;
12583
12584   if (self)
12585     {
12586       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12587       else
12588         {
12589           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12590           else puts (dlerror ());
12591         }
12592       /* dlclose (self); */
12593     }
12594   else
12595     puts (dlerror ());
12596
12597   return status;
12598 }
12599 _LT_EOF
12600   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12601   (eval $ac_link) 2>&5
12602   ac_status=$?
12603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12604   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12605     (./conftest; exit; ) >&5 2>/dev/null
12606     lt_status=$?
12607     case x$lt_status in
12608       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12609       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12610       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12611     esac
12612   else :
12613     # compilation failed
12614     lt_cv_dlopen_self_static=no
12615   fi
12616 fi
12617 rm -fr conftest*
12618
12619
12620 fi
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12622 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12623     fi
12624
12625     CPPFLAGS="$save_CPPFLAGS"
12626     LDFLAGS="$save_LDFLAGS"
12627     LIBS="$save_LIBS"
12628     ;;
12629   esac
12630
12631   case $lt_cv_dlopen_self in
12632   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12633   *) enable_dlopen_self=unknown ;;
12634   esac
12635
12636   case $lt_cv_dlopen_self_static in
12637   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12638   *) enable_dlopen_self_static=unknown ;;
12639   esac
12640 fi
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658 striplib=
12659 old_striplib=
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12661 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12662 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12663   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12664   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12666 $as_echo "yes" >&6; }
12667 else
12668 # FIXME - insert some real tests, host_os isn't really good enough
12669   case $host_os in
12670   darwin*)
12671     if test -n "$STRIP" ; then
12672       striplib="$STRIP -x"
12673       old_striplib="$STRIP -S"
12674       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12675 $as_echo "yes" >&6; }
12676     else
12677       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678 $as_echo "no" >&6; }
12679     fi
12680     ;;
12681   *)
12682     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12683 $as_echo "no" >&6; }
12684     ;;
12685   esac
12686 fi
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699   # Report which library types will actually be built
12700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12701 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12703 $as_echo "$can_build_shared" >&6; }
12704
12705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12706 $as_echo_n "checking whether to build shared libraries... " >&6; }
12707   test "$can_build_shared" = "no" && enable_shared=no
12708
12709   # On AIX, shared libraries and static libraries use the same namespace, and
12710   # are all built from PIC.
12711   case $host_os in
12712   aix3*)
12713     test "$enable_shared" = yes && enable_static=no
12714     if test -n "$RANLIB"; then
12715       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12716       postinstall_cmds='$RANLIB $lib'
12717     fi
12718     ;;
12719
12720   aix[4-9]*)
12721     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12722       test "$enable_shared" = yes && enable_static=no
12723     fi
12724     ;;
12725   esac
12726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12727 $as_echo "$enable_shared" >&6; }
12728
12729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12730 $as_echo_n "checking whether to build static libraries... " >&6; }
12731   # Make sure either enable_shared or enable_static is yes.
12732   test "$enable_shared" = yes || enable_static=yes
12733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12734 $as_echo "$enable_static" >&6; }
12735
12736
12737
12738
12739 fi
12740 ac_ext=c
12741 ac_cpp='$CPP $CPPFLAGS'
12742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12745
12746 CC="$lt_save_CC"
12747
12748       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12749     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12750     (test "X$CXX" != "Xg++"))) ; then
12751   ac_ext=cpp
12752 ac_cpp='$CXXCPP $CPPFLAGS'
12753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12757 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12758 if test -z "$CXXCPP"; then
12759   if ${ac_cv_prog_CXXCPP+:} false; then :
12760   $as_echo_n "(cached) " >&6
12761 else
12762       # Double quotes because CXXCPP needs to be expanded
12763     for CXXCPP in "$CXX -E" "/lib/cpp"
12764     do
12765       ac_preproc_ok=false
12766 for ac_cxx_preproc_warn_flag in '' yes
12767 do
12768   # Use a header file that comes with gcc, so configuring glibc
12769   # with a fresh cross-compiler works.
12770   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12771   # <limits.h> exists even on freestanding compilers.
12772   # On the NeXT, cc -E runs the code through the compiler's parser,
12773   # not just through cpp. "Syntax error" is here to catch this case.
12774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775 /* end confdefs.h.  */
12776 #ifdef __STDC__
12777 # include <limits.h>
12778 #else
12779 # include <assert.h>
12780 #endif
12781                      Syntax error
12782 _ACEOF
12783 if ac_fn_cxx_try_cpp "$LINENO"; then :
12784
12785 else
12786   # Broken: fails on valid input.
12787 continue
12788 fi
12789 rm -f conftest.err conftest.i conftest.$ac_ext
12790
12791   # OK, works on sane cases.  Now check whether nonexistent headers
12792   # can be detected and how.
12793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h.  */
12795 #include <ac_nonexistent.h>
12796 _ACEOF
12797 if ac_fn_cxx_try_cpp "$LINENO"; then :
12798   # Broken: success on invalid input.
12799 continue
12800 else
12801   # Passes both tests.
12802 ac_preproc_ok=:
12803 break
12804 fi
12805 rm -f conftest.err conftest.i conftest.$ac_ext
12806
12807 done
12808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12809 rm -f conftest.i conftest.err conftest.$ac_ext
12810 if $ac_preproc_ok; then :
12811   break
12812 fi
12813
12814     done
12815     ac_cv_prog_CXXCPP=$CXXCPP
12816
12817 fi
12818   CXXCPP=$ac_cv_prog_CXXCPP
12819 else
12820   ac_cv_prog_CXXCPP=$CXXCPP
12821 fi
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12823 $as_echo "$CXXCPP" >&6; }
12824 ac_preproc_ok=false
12825 for ac_cxx_preproc_warn_flag in '' yes
12826 do
12827   # Use a header file that comes with gcc, so configuring glibc
12828   # with a fresh cross-compiler works.
12829   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12830   # <limits.h> exists even on freestanding compilers.
12831   # On the NeXT, cc -E runs the code through the compiler's parser,
12832   # not just through cpp. "Syntax error" is here to catch this case.
12833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h.  */
12835 #ifdef __STDC__
12836 # include <limits.h>
12837 #else
12838 # include <assert.h>
12839 #endif
12840                      Syntax error
12841 _ACEOF
12842 if ac_fn_cxx_try_cpp "$LINENO"; then :
12843
12844 else
12845   # Broken: fails on valid input.
12846 continue
12847 fi
12848 rm -f conftest.err conftest.i conftest.$ac_ext
12849
12850   # OK, works on sane cases.  Now check whether nonexistent headers
12851   # can be detected and how.
12852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853 /* end confdefs.h.  */
12854 #include <ac_nonexistent.h>
12855 _ACEOF
12856 if ac_fn_cxx_try_cpp "$LINENO"; then :
12857   # Broken: success on invalid input.
12858 continue
12859 else
12860   # Passes both tests.
12861 ac_preproc_ok=:
12862 break
12863 fi
12864 rm -f conftest.err conftest.i conftest.$ac_ext
12865
12866 done
12867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12868 rm -f conftest.i conftest.err conftest.$ac_ext
12869 if $ac_preproc_ok; then :
12870
12871 else
12872   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12874 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12875 See \`config.log' for more details" "$LINENO" 5; }
12876 fi
12877
12878 ac_ext=c
12879 ac_cpp='$CPP $CPPFLAGS'
12880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12883
12884 else
12885   _lt_caught_CXX_error=yes
12886 fi
12887
12888 ac_ext=cpp
12889 ac_cpp='$CXXCPP $CPPFLAGS'
12890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12893
12894 archive_cmds_need_lc_CXX=no
12895 allow_undefined_flag_CXX=
12896 always_export_symbols_CXX=no
12897 archive_expsym_cmds_CXX=
12898 compiler_needs_object_CXX=no
12899 export_dynamic_flag_spec_CXX=
12900 hardcode_direct_CXX=no
12901 hardcode_direct_absolute_CXX=no
12902 hardcode_libdir_flag_spec_CXX=
12903 hardcode_libdir_separator_CXX=
12904 hardcode_minus_L_CXX=no
12905 hardcode_shlibpath_var_CXX=unsupported
12906 hardcode_automatic_CXX=no
12907 inherit_rpath_CXX=no
12908 module_cmds_CXX=
12909 module_expsym_cmds_CXX=
12910 link_all_deplibs_CXX=unknown
12911 old_archive_cmds_CXX=$old_archive_cmds
12912 reload_flag_CXX=$reload_flag
12913 reload_cmds_CXX=$reload_cmds
12914 no_undefined_flag_CXX=
12915 whole_archive_flag_spec_CXX=
12916 enable_shared_with_static_runtimes_CXX=no
12917
12918 # Source file extension for C++ test sources.
12919 ac_ext=cpp
12920
12921 # Object file extension for compiled C++ test sources.
12922 objext=o
12923 objext_CXX=$objext
12924
12925 # No sense in running all these tests if we already determined that
12926 # the CXX compiler isn't working.  Some variables (like enable_shared)
12927 # are currently assumed to apply to all compilers on this platform,
12928 # and will be corrupted by setting them based on a non-working compiler.
12929 if test "$_lt_caught_CXX_error" != yes; then
12930   # Code to be used in simple compile tests
12931   lt_simple_compile_test_code="int some_variable = 0;"
12932
12933   # Code to be used in simple link tests
12934   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12935
12936   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12937
12938
12939
12940
12941
12942
12943 # If no C compiler was specified, use CC.
12944 LTCC=${LTCC-"$CC"}
12945
12946 # If no C compiler flags were specified, use CFLAGS.
12947 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12948
12949 # Allow CC to be a program name with arguments.
12950 compiler=$CC
12951
12952
12953   # save warnings/boilerplate of simple test code
12954   ac_outfile=conftest.$ac_objext
12955 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12956 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12957 _lt_compiler_boilerplate=`cat conftest.err`
12958 $RM conftest*
12959
12960   ac_outfile=conftest.$ac_objext
12961 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12962 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12963 _lt_linker_boilerplate=`cat conftest.err`
12964 $RM -r conftest*
12965
12966
12967   # Allow CC to be a program name with arguments.
12968   lt_save_CC=$CC
12969   lt_save_CFLAGS=$CFLAGS
12970   lt_save_LD=$LD
12971   lt_save_GCC=$GCC
12972   GCC=$GXX
12973   lt_save_with_gnu_ld=$with_gnu_ld
12974   lt_save_path_LD=$lt_cv_path_LD
12975   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12976     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12977   else
12978     $as_unset lt_cv_prog_gnu_ld
12979   fi
12980   if test -n "${lt_cv_path_LDCXX+set}"; then
12981     lt_cv_path_LD=$lt_cv_path_LDCXX
12982   else
12983     $as_unset lt_cv_path_LD
12984   fi
12985   test -z "${LDCXX+set}" || LD=$LDCXX
12986   CC=${CXX-"c++"}
12987   CFLAGS=$CXXFLAGS
12988   compiler=$CC
12989   compiler_CXX=$CC
12990   for cc_temp in $compiler""; do
12991   case $cc_temp in
12992     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12993     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12994     \-*) ;;
12995     *) break;;
12996   esac
12997 done
12998 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12999
13000
13001   if test -n "$compiler"; then
13002     # We don't want -fno-exception when compiling C++ code, so set the
13003     # no_builtin_flag separately
13004     if test "$GXX" = yes; then
13005       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13006     else
13007       lt_prog_compiler_no_builtin_flag_CXX=
13008     fi
13009
13010     if test "$GXX" = yes; then
13011       # Set up default GNU C++ configuration
13012
13013
13014
13015 # Check whether --with-gnu-ld was given.
13016 if test "${with_gnu_ld+set}" = set; then :
13017   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13018 else
13019   with_gnu_ld=no
13020 fi
13021
13022 ac_prog=ld
13023 if test "$GCC" = yes; then
13024   # Check if gcc -print-prog-name=ld gives a path.
13025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13026 $as_echo_n "checking for ld used by $CC... " >&6; }
13027   case $host in
13028   *-*-mingw*)
13029     # gcc leaves a trailing carriage return which upsets mingw
13030     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13031   *)
13032     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13033   esac
13034   case $ac_prog in
13035     # Accept absolute paths.
13036     [\\/]* | ?:[\\/]*)
13037       re_direlt='/[^/][^/]*/\.\./'
13038       # Canonicalize the pathname of ld
13039       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13040       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13041         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13042       done
13043       test -z "$LD" && LD="$ac_prog"
13044       ;;
13045   "")
13046     # If it fails, then pretend we aren't using GCC.
13047     ac_prog=ld
13048     ;;
13049   *)
13050     # If it is relative, then search for the first ld in PATH.
13051     with_gnu_ld=unknown
13052     ;;
13053   esac
13054 elif test "$with_gnu_ld" = yes; then
13055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13056 $as_echo_n "checking for GNU ld... " >&6; }
13057 else
13058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13059 $as_echo_n "checking for non-GNU ld... " >&6; }
13060 fi
13061 if ${lt_cv_path_LD+:} false; then :
13062   $as_echo_n "(cached) " >&6
13063 else
13064   if test -z "$LD"; then
13065   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13066   for ac_dir in $PATH; do
13067     IFS="$lt_save_ifs"
13068     test -z "$ac_dir" && ac_dir=.
13069     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13070       lt_cv_path_LD="$ac_dir/$ac_prog"
13071       # Check to see if the program is GNU ld.  I'd rather use --version,
13072       # but apparently some variants of GNU ld only accept -v.
13073       # Break only if it was the GNU/non-GNU ld that we prefer.
13074       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13075       *GNU* | *'with BFD'*)
13076         test "$with_gnu_ld" != no && break
13077         ;;
13078       *)
13079         test "$with_gnu_ld" != yes && break
13080         ;;
13081       esac
13082     fi
13083   done
13084   IFS="$lt_save_ifs"
13085 else
13086   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13087 fi
13088 fi
13089
13090 LD="$lt_cv_path_LD"
13091 if test -n "$LD"; then
13092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13093 $as_echo "$LD" >&6; }
13094 else
13095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13096 $as_echo "no" >&6; }
13097 fi
13098 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13100 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13101 if ${lt_cv_prog_gnu_ld+:} false; then :
13102   $as_echo_n "(cached) " >&6
13103 else
13104   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13105 case `$LD -v 2>&1 </dev/null` in
13106 *GNU* | *'with BFD'*)
13107   lt_cv_prog_gnu_ld=yes
13108   ;;
13109 *)
13110   lt_cv_prog_gnu_ld=no
13111   ;;
13112 esac
13113 fi
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13115 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13116 with_gnu_ld=$lt_cv_prog_gnu_ld
13117
13118
13119
13120
13121
13122
13123
13124       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13125       # archiving commands below assume that GNU ld is being used.
13126       if test "$with_gnu_ld" = yes; then
13127         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13128         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'
13129
13130         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13131         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13132
13133         # If archive_cmds runs LD, not CC, wlarc should be empty
13134         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13135         #     investigate it a little bit more. (MM)
13136         wlarc='${wl}'
13137
13138         # ancient GNU ld didn't support --whole-archive et. al.
13139         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13140           $GREP 'no-whole-archive' > /dev/null; then
13141           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13142         else
13143           whole_archive_flag_spec_CXX=
13144         fi
13145       else
13146         with_gnu_ld=no
13147         wlarc=
13148
13149         # A generic and very simple default shared library creation
13150         # command for GNU C++ for the case where it uses the native
13151         # linker, instead of GNU ld.  If possible, this setting should
13152         # overridden to take advantage of the native linker features on
13153         # the platform it is being used on.
13154         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13155       fi
13156
13157       # Commands to make compiler produce verbose output that lists
13158       # what "hidden" libraries, object files and flags are used when
13159       # linking a shared library.
13160       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13161
13162     else
13163       GXX=no
13164       with_gnu_ld=no
13165       wlarc=
13166     fi
13167
13168     # PORTME: fill in a description of your system's C++ link characteristics
13169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13170 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13171     ld_shlibs_CXX=yes
13172     case $host_os in
13173       aix3*)
13174         # FIXME: insert proper C++ library support
13175         ld_shlibs_CXX=no
13176         ;;
13177       aix[4-9]*)
13178         if test "$host_cpu" = ia64; then
13179           # On IA64, the linker does run time linking by default, so we don't
13180           # have to do anything special.
13181           aix_use_runtimelinking=no
13182           exp_sym_flag='-Bexport'
13183           no_entry_flag=""
13184         else
13185           aix_use_runtimelinking=no
13186
13187           # Test if we are trying to use run time linking or normal
13188           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13189           # need to do runtime linking.
13190           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13191             for ld_flag in $LDFLAGS; do
13192               case $ld_flag in
13193               *-brtl*)
13194                 aix_use_runtimelinking=yes
13195                 break
13196                 ;;
13197               esac
13198             done
13199             ;;
13200           esac
13201
13202           exp_sym_flag='-bexport'
13203           no_entry_flag='-bnoentry'
13204         fi
13205
13206         # When large executables or shared objects are built, AIX ld can
13207         # have problems creating the table of contents.  If linking a library
13208         # or program results in "error TOC overflow" add -mminimal-toc to
13209         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13210         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13211
13212         archive_cmds_CXX=''
13213         hardcode_direct_CXX=yes
13214         hardcode_direct_absolute_CXX=yes
13215         hardcode_libdir_separator_CXX=':'
13216         link_all_deplibs_CXX=yes
13217         file_list_spec_CXX='${wl}-f,'
13218
13219         if test "$GXX" = yes; then
13220           case $host_os in aix4.[012]|aix4.[012].*)
13221           # We only want to do this on AIX 4.2 and lower, the check
13222           # below for broken collect2 doesn't work under 4.3+
13223           collect2name=`${CC} -print-prog-name=collect2`
13224           if test -f "$collect2name" &&
13225              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13226           then
13227             # We have reworked collect2
13228             :
13229           else
13230             # We have old collect2
13231             hardcode_direct_CXX=unsupported
13232             # It fails to find uninstalled libraries when the uninstalled
13233             # path is not listed in the libpath.  Setting hardcode_minus_L
13234             # to unsupported forces relinking
13235             hardcode_minus_L_CXX=yes
13236             hardcode_libdir_flag_spec_CXX='-L$libdir'
13237             hardcode_libdir_separator_CXX=
13238           fi
13239           esac
13240           shared_flag='-shared'
13241           if test "$aix_use_runtimelinking" = yes; then
13242             shared_flag="$shared_flag "'${wl}-G'
13243           fi
13244         else
13245           # not using gcc
13246           if test "$host_cpu" = ia64; then
13247           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13248           # chokes on -Wl,-G. The following line is correct:
13249           shared_flag='-G'
13250           else
13251             if test "$aix_use_runtimelinking" = yes; then
13252               shared_flag='${wl}-G'
13253             else
13254               shared_flag='${wl}-bM:SRE'
13255             fi
13256           fi
13257         fi
13258
13259         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13260         # It seems that -bexpall does not export symbols beginning with
13261         # underscore (_), so it is better to generate a list of symbols to
13262         # export.
13263         always_export_symbols_CXX=yes
13264         if test "$aix_use_runtimelinking" = yes; then
13265           # Warning - without using the other runtime loading flags (-brtl),
13266           # -berok will link without error, but may produce a broken library.
13267           allow_undefined_flag_CXX='-berok'
13268           # Determine the default libpath from the value encoded in an empty
13269           # executable.
13270           if test "${lt_cv_aix_libpath+set}" = set; then
13271   aix_libpath=$lt_cv_aix_libpath
13272 else
13273   if ${lt_cv_aix_libpath__CXX+:} false; then :
13274   $as_echo_n "(cached) " >&6
13275 else
13276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h.  */
13278
13279 int
13280 main ()
13281 {
13282
13283   ;
13284   return 0;
13285 }
13286 _ACEOF
13287 if ac_fn_cxx_try_link "$LINENO"; then :
13288
13289   lt_aix_libpath_sed='
13290       /Import File Strings/,/^$/ {
13291           /^0/ {
13292               s/^0  *\([^ ]*\) *$/\1/
13293               p
13294           }
13295       }'
13296   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13297   # Check for a 64-bit object if we didn't find anything.
13298   if test -z "$lt_cv_aix_libpath__CXX"; then
13299     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13300   fi
13301 fi
13302 rm -f core conftest.err conftest.$ac_objext \
13303     conftest$ac_exeext conftest.$ac_ext
13304   if test -z "$lt_cv_aix_libpath__CXX"; then
13305     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13306   fi
13307
13308 fi
13309
13310   aix_libpath=$lt_cv_aix_libpath__CXX
13311 fi
13312
13313           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13314
13315           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"
13316         else
13317           if test "$host_cpu" = ia64; then
13318             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13319             allow_undefined_flag_CXX="-z nodefs"
13320             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"
13321           else
13322             # Determine the default libpath from the value encoded in an
13323             # empty executable.
13324             if test "${lt_cv_aix_libpath+set}" = set; then
13325   aix_libpath=$lt_cv_aix_libpath
13326 else
13327   if ${lt_cv_aix_libpath__CXX+:} false; then :
13328   $as_echo_n "(cached) " >&6
13329 else
13330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331 /* end confdefs.h.  */
13332
13333 int
13334 main ()
13335 {
13336
13337   ;
13338   return 0;
13339 }
13340 _ACEOF
13341 if ac_fn_cxx_try_link "$LINENO"; then :
13342
13343   lt_aix_libpath_sed='
13344       /Import File Strings/,/^$/ {
13345           /^0/ {
13346               s/^0  *\([^ ]*\) *$/\1/
13347               p
13348           }
13349       }'
13350   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13351   # Check for a 64-bit object if we didn't find anything.
13352   if test -z "$lt_cv_aix_libpath__CXX"; then
13353     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13354   fi
13355 fi
13356 rm -f core conftest.err conftest.$ac_objext \
13357     conftest$ac_exeext conftest.$ac_ext
13358   if test -z "$lt_cv_aix_libpath__CXX"; then
13359     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13360   fi
13361
13362 fi
13363
13364   aix_libpath=$lt_cv_aix_libpath__CXX
13365 fi
13366
13367             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13368             # Warning - without using the other run time loading flags,
13369             # -berok will link without error, but may produce a broken library.
13370             no_undefined_flag_CXX=' ${wl}-bernotok'
13371             allow_undefined_flag_CXX=' ${wl}-berok'
13372             if test "$with_gnu_ld" = yes; then
13373               # We only use this code for GNU lds that support --whole-archive.
13374               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13375             else
13376               # Exported symbols can be pulled into shared objects from archives
13377               whole_archive_flag_spec_CXX='$convenience'
13378             fi
13379             archive_cmds_need_lc_CXX=yes
13380             # This is similar to how AIX traditionally builds its shared
13381             # libraries.
13382             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'
13383           fi
13384         fi
13385         ;;
13386
13387       beos*)
13388         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13389           allow_undefined_flag_CXX=unsupported
13390           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13391           # support --undefined.  This deserves some investigation.  FIXME
13392           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13393         else
13394           ld_shlibs_CXX=no
13395         fi
13396         ;;
13397
13398       chorus*)
13399         case $cc_basename in
13400           *)
13401           # FIXME: insert proper C++ library support
13402           ld_shlibs_CXX=no
13403           ;;
13404         esac
13405         ;;
13406
13407       cygwin* | mingw* | pw32* | cegcc*)
13408         case $GXX,$cc_basename in
13409         ,cl* | no,cl*)
13410           # Native MSVC
13411           # hardcode_libdir_flag_spec is actually meaningless, as there is
13412           # no search path for DLLs.
13413           hardcode_libdir_flag_spec_CXX=' '
13414           allow_undefined_flag_CXX=unsupported
13415           always_export_symbols_CXX=yes
13416           file_list_spec_CXX='@'
13417           # Tell ltmain to make .lib files, not .a files.
13418           libext=lib
13419           # Tell ltmain to make .dll files, not .so files.
13420           shrext_cmds=".dll"
13421           # FIXME: Setting linknames here is a bad hack.
13422           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13423           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13424               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13425             else
13426               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13427             fi~
13428             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13429             linknames='
13430           # The linker will not automatically build a static lib if we build a DLL.
13431           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13432           enable_shared_with_static_runtimes_CXX=yes
13433           # Don't use ranlib
13434           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13435           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13436             lt_tool_outputfile="@TOOL_OUTPUT@"~
13437             case $lt_outputfile in
13438               *.exe|*.EXE) ;;
13439               *)
13440                 lt_outputfile="$lt_outputfile.exe"
13441                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13442                 ;;
13443             esac~
13444             func_to_tool_file "$lt_outputfile"~
13445             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13446               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13447               $RM "$lt_outputfile.manifest";
13448             fi'
13449           ;;
13450         *)
13451           # g++
13452           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13453           # as there is no search path for DLLs.
13454           hardcode_libdir_flag_spec_CXX='-L$libdir'
13455           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13456           allow_undefined_flag_CXX=unsupported
13457           always_export_symbols_CXX=no
13458           enable_shared_with_static_runtimes_CXX=yes
13459
13460           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13461             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'
13462             # If the export-symbols file already is a .def file (1st line
13463             # is EXPORTS), use it as is; otherwise, prepend...
13464             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13465               cp $export_symbols $output_objdir/$soname.def;
13466             else
13467               echo EXPORTS > $output_objdir/$soname.def;
13468               cat $export_symbols >> $output_objdir/$soname.def;
13469             fi~
13470             $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'
13471           else
13472             ld_shlibs_CXX=no
13473           fi
13474           ;;
13475         esac
13476         ;;
13477       darwin* | rhapsody*)
13478
13479
13480   archive_cmds_need_lc_CXX=no
13481   hardcode_direct_CXX=no
13482   hardcode_automatic_CXX=yes
13483   hardcode_shlibpath_var_CXX=unsupported
13484   if test "$lt_cv_ld_force_load" = "yes"; then
13485     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\"`'
13486
13487   else
13488     whole_archive_flag_spec_CXX=''
13489   fi
13490   link_all_deplibs_CXX=yes
13491   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13492   case $cc_basename in
13493      ifort*) _lt_dar_can_shared=yes ;;
13494      *) _lt_dar_can_shared=$GCC ;;
13495   esac
13496   if test "$_lt_dar_can_shared" = "yes"; then
13497     output_verbose_link_cmd=func_echo_all
13498     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}"
13499     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13500     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}"
13501     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}"
13502        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13503       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}"
13504       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}"
13505     fi
13506
13507   else
13508   ld_shlibs_CXX=no
13509   fi
13510
13511         ;;
13512
13513       dgux*)
13514         case $cc_basename in
13515           ec++*)
13516             # FIXME: insert proper C++ library support
13517             ld_shlibs_CXX=no
13518             ;;
13519           ghcx*)
13520             # Green Hills C++ Compiler
13521             # FIXME: insert proper C++ library support
13522             ld_shlibs_CXX=no
13523             ;;
13524           *)
13525             # FIXME: insert proper C++ library support
13526             ld_shlibs_CXX=no
13527             ;;
13528         esac
13529         ;;
13530
13531       freebsd2.*)
13532         # C++ shared libraries reported to be fairly broken before
13533         # switch to ELF
13534         ld_shlibs_CXX=no
13535         ;;
13536
13537       freebsd-elf*)
13538         archive_cmds_need_lc_CXX=no
13539         ;;
13540
13541       freebsd* | dragonfly*)
13542         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13543         # conventions
13544         ld_shlibs_CXX=yes
13545         ;;
13546
13547       haiku*)
13548         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13549         link_all_deplibs_CXX=yes
13550         ;;
13551
13552       hpux9*)
13553         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13554         hardcode_libdir_separator_CXX=:
13555         export_dynamic_flag_spec_CXX='${wl}-E'
13556         hardcode_direct_CXX=yes
13557         hardcode_minus_L_CXX=yes # Not in the search PATH,
13558                                              # but as the default
13559                                              # location of the library.
13560
13561         case $cc_basename in
13562           CC*)
13563             # FIXME: insert proper C++ library support
13564             ld_shlibs_CXX=no
13565             ;;
13566           aCC*)
13567             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'
13568             # Commands to make compiler produce verbose output that lists
13569             # what "hidden" libraries, object files and flags are used when
13570             # linking a shared library.
13571             #
13572             # There doesn't appear to be a way to prevent this compiler from
13573             # explicitly linking system object files so we need to strip them
13574             # from the output so that they don't get included in the library
13575             # dependencies.
13576             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"'
13577             ;;
13578           *)
13579             if test "$GXX" = yes; then
13580               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'
13581             else
13582               # FIXME: insert proper C++ library support
13583               ld_shlibs_CXX=no
13584             fi
13585             ;;
13586         esac
13587         ;;
13588
13589       hpux10*|hpux11*)
13590         if test $with_gnu_ld = no; then
13591           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13592           hardcode_libdir_separator_CXX=:
13593
13594           case $host_cpu in
13595             hppa*64*|ia64*)
13596               ;;
13597             *)
13598               export_dynamic_flag_spec_CXX='${wl}-E'
13599               ;;
13600           esac
13601         fi
13602         case $host_cpu in
13603           hppa*64*|ia64*)
13604             hardcode_direct_CXX=no
13605             hardcode_shlibpath_var_CXX=no
13606             ;;
13607           *)
13608             hardcode_direct_CXX=yes
13609             hardcode_direct_absolute_CXX=yes
13610             hardcode_minus_L_CXX=yes # Not in the search PATH,
13611                                                  # but as the default
13612                                                  # location of the library.
13613             ;;
13614         esac
13615
13616         case $cc_basename in
13617           CC*)
13618             # FIXME: insert proper C++ library support
13619             ld_shlibs_CXX=no
13620             ;;
13621           aCC*)
13622             case $host_cpu in
13623               hppa*64*)
13624                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13625                 ;;
13626               ia64*)
13627                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13628                 ;;
13629               *)
13630                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13631                 ;;
13632             esac
13633             # Commands to make compiler produce verbose output that lists
13634             # what "hidden" libraries, object files and flags are used when
13635             # linking a shared library.
13636             #
13637             # There doesn't appear to be a way to prevent this compiler from
13638             # explicitly linking system object files so we need to strip them
13639             # from the output so that they don't get included in the library
13640             # dependencies.
13641             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"'
13642             ;;
13643           *)
13644             if test "$GXX" = yes; then
13645               if test $with_gnu_ld = no; then
13646                 case $host_cpu in
13647                   hppa*64*)
13648                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13649                     ;;
13650                   ia64*)
13651                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13652                     ;;
13653                   *)
13654                     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'
13655                     ;;
13656                 esac
13657               fi
13658             else
13659               # FIXME: insert proper C++ library support
13660               ld_shlibs_CXX=no
13661             fi
13662             ;;
13663         esac
13664         ;;
13665
13666       interix[3-9]*)
13667         hardcode_direct_CXX=no
13668         hardcode_shlibpath_var_CXX=no
13669         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13670         export_dynamic_flag_spec_CXX='${wl}-E'
13671         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13672         # Instead, shared libraries are loaded at an image base (0x10000000 by
13673         # default) and relocated if they conflict, which is a slow very memory
13674         # consuming and fragmenting process.  To avoid this, we pick a random,
13675         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13676         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13677         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'
13678         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'
13679         ;;
13680       irix5* | irix6*)
13681         case $cc_basename in
13682           CC*)
13683             # SGI C++
13684             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'
13685
13686             # Archives containing C++ object files must be created using
13687             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13688             # necessary to make sure instantiated templates are included
13689             # in the archive.
13690             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13691             ;;
13692           *)
13693             if test "$GXX" = yes; then
13694               if test "$with_gnu_ld" = no; then
13695                 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'
13696               else
13697                 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'
13698               fi
13699             fi
13700             link_all_deplibs_CXX=yes
13701             ;;
13702         esac
13703         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13704         hardcode_libdir_separator_CXX=:
13705         inherit_rpath_CXX=yes
13706         ;;
13707
13708       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13709         case $cc_basename in
13710           KCC*)
13711             # Kuck and Associates, Inc. (KAI) C++ Compiler
13712
13713             # KCC will only create a shared library if the output file
13714             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13715             # to its proper name (with version) after linking.
13716             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'
13717             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'
13718             # Commands to make compiler produce verbose output that lists
13719             # what "hidden" libraries, object files and flags are used when
13720             # linking a shared library.
13721             #
13722             # There doesn't appear to be a way to prevent this compiler from
13723             # explicitly linking system object files so we need to strip them
13724             # from the output so that they don't get included in the library
13725             # dependencies.
13726             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"'
13727
13728             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13729             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13730
13731             # Archives containing C++ object files must be created using
13732             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13733             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13734             ;;
13735           icpc* | ecpc* )
13736             # Intel C++
13737             with_gnu_ld=yes
13738             # version 8.0 and above of icpc choke on multiply defined symbols
13739             # if we add $predep_objects and $postdep_objects, however 7.1 and
13740             # earlier do not add the objects themselves.
13741             case `$CC -V 2>&1` in
13742               *"Version 7."*)
13743                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13744                 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'
13745                 ;;
13746               *)  # Version 8.0 or newer
13747                 tmp_idyn=
13748                 case $host_cpu in
13749                   ia64*) tmp_idyn=' -i_dynamic';;
13750                 esac
13751                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13752                 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'
13753                 ;;
13754             esac
13755             archive_cmds_need_lc_CXX=no
13756             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13757             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13758             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13759             ;;
13760           pgCC* | pgcpp*)
13761             # Portland Group C++ compiler
13762             case `$CC -V` in
13763             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13764               prelink_cmds_CXX='tpldir=Template.dir~
13765                 rm -rf $tpldir~
13766                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13767                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13768               old_archive_cmds_CXX='tpldir=Template.dir~
13769                 rm -rf $tpldir~
13770                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13771                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13772                 $RANLIB $oldlib'
13773               archive_cmds_CXX='tpldir=Template.dir~
13774                 rm -rf $tpldir~
13775                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13776                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13777               archive_expsym_cmds_CXX='tpldir=Template.dir~
13778                 rm -rf $tpldir~
13779                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13780                 $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'
13781               ;;
13782             *) # Version 6 and above use weak symbols
13783               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13784               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'
13785               ;;
13786             esac
13787
13788             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13789             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13790             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'
13791             ;;
13792           cxx*)
13793             # Compaq C++
13794             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13795             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'
13796
13797             runpath_var=LD_RUN_PATH
13798             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13799             hardcode_libdir_separator_CXX=:
13800
13801             # Commands to make compiler produce verbose output that lists
13802             # what "hidden" libraries, object files and flags are used when
13803             # linking a shared library.
13804             #
13805             # There doesn't appear to be a way to prevent this compiler from
13806             # explicitly linking system object files so we need to strip them
13807             # from the output so that they don't get included in the library
13808             # dependencies.
13809             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'
13810             ;;
13811           xl* | mpixl* | bgxl*)
13812             # IBM XL 8.0 on PPC, with GNU ld
13813             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13814             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13815             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13816             if test "x$supports_anon_versioning" = xyes; then
13817               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13818                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13819                 echo "local: *; };" >> $output_objdir/$libname.ver~
13820                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13821             fi
13822             ;;
13823           *)
13824             case `$CC -V 2>&1 | sed 5q` in
13825             *Sun\ C*)
13826               # Sun C++ 5.9
13827               no_undefined_flag_CXX=' -zdefs'
13828               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13829               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'
13830               hardcode_libdir_flag_spec_CXX='-R$libdir'
13831               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'
13832               compiler_needs_object_CXX=yes
13833
13834               # Not sure whether something based on
13835               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13836               # would be better.
13837               output_verbose_link_cmd='func_echo_all'
13838
13839               # Archives containing C++ object files must be created using
13840               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13841               # necessary to make sure instantiated templates are included
13842               # in the archive.
13843               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13844               ;;
13845             esac
13846             ;;
13847         esac
13848         ;;
13849
13850       lynxos*)
13851         # FIXME: insert proper C++ library support
13852         ld_shlibs_CXX=no
13853         ;;
13854
13855       m88k*)
13856         # FIXME: insert proper C++ library support
13857         ld_shlibs_CXX=no
13858         ;;
13859
13860       mvs*)
13861         case $cc_basename in
13862           cxx*)
13863             # FIXME: insert proper C++ library support
13864             ld_shlibs_CXX=no
13865             ;;
13866           *)
13867             # FIXME: insert proper C++ library support
13868             ld_shlibs_CXX=no
13869             ;;
13870         esac
13871         ;;
13872
13873       netbsd*)
13874         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13875           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13876           wlarc=
13877           hardcode_libdir_flag_spec_CXX='-R$libdir'
13878           hardcode_direct_CXX=yes
13879           hardcode_shlibpath_var_CXX=no
13880         fi
13881         # Workaround some broken pre-1.5 toolchains
13882         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13883         ;;
13884
13885       *nto* | *qnx*)
13886         ld_shlibs_CXX=yes
13887         ;;
13888
13889       openbsd2*)
13890         # C++ shared libraries are fairly broken
13891         ld_shlibs_CXX=no
13892         ;;
13893
13894       openbsd*)
13895         if test -f /usr/libexec/ld.so; then
13896           hardcode_direct_CXX=yes
13897           hardcode_shlibpath_var_CXX=no
13898           hardcode_direct_absolute_CXX=yes
13899           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13900           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13901           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13902             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13903             export_dynamic_flag_spec_CXX='${wl}-E'
13904             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13905           fi
13906           output_verbose_link_cmd=func_echo_all
13907         else
13908           ld_shlibs_CXX=no
13909         fi
13910         ;;
13911
13912       osf3* | osf4* | osf5*)
13913         case $cc_basename in
13914           KCC*)
13915             # Kuck and Associates, Inc. (KAI) C++ Compiler
13916
13917             # KCC will only create a shared library if the output file
13918             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13919             # to its proper name (with version) after linking.
13920             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'
13921
13922             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13923             hardcode_libdir_separator_CXX=:
13924
13925             # Archives containing C++ object files must be created using
13926             # the KAI C++ compiler.
13927             case $host in
13928               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13929               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13930             esac
13931             ;;
13932           RCC*)
13933             # Rational C++ 2.4.1
13934             # FIXME: insert proper C++ library support
13935             ld_shlibs_CXX=no
13936             ;;
13937           cxx*)
13938             case $host in
13939               osf3*)
13940                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13941                 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'
13942                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13943                 ;;
13944               *)
13945                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13946                 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'
13947                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13948                   echo "-hidden">> $lib.exp~
13949                   $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~
13950                   $RM $lib.exp'
13951                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13952                 ;;
13953             esac
13954
13955             hardcode_libdir_separator_CXX=:
13956
13957             # Commands to make compiler produce verbose output that lists
13958             # what "hidden" libraries, object files and flags are used when
13959             # linking a shared library.
13960             #
13961             # There doesn't appear to be a way to prevent this compiler from
13962             # explicitly linking system object files so we need to strip them
13963             # from the output so that they don't get included in the library
13964             # dependencies.
13965             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"'
13966             ;;
13967           *)
13968             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13969               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13970               case $host in
13971                 osf3*)
13972                   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'
13973                   ;;
13974                 *)
13975                   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'
13976                   ;;
13977               esac
13978
13979               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13980               hardcode_libdir_separator_CXX=:
13981
13982               # Commands to make compiler produce verbose output that lists
13983               # what "hidden" libraries, object files and flags are used when
13984               # linking a shared library.
13985               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13986
13987             else
13988               # FIXME: insert proper C++ library support
13989               ld_shlibs_CXX=no
13990             fi
13991             ;;
13992         esac
13993         ;;
13994
13995       psos*)
13996         # FIXME: insert proper C++ library support
13997         ld_shlibs_CXX=no
13998         ;;
13999
14000       sunos4*)
14001         case $cc_basename in
14002           CC*)
14003             # Sun C++ 4.x
14004             # FIXME: insert proper C++ library support
14005             ld_shlibs_CXX=no
14006             ;;
14007           lcc*)
14008             # Lucid
14009             # FIXME: insert proper C++ library support
14010             ld_shlibs_CXX=no
14011             ;;
14012           *)
14013             # FIXME: insert proper C++ library support
14014             ld_shlibs_CXX=no
14015             ;;
14016         esac
14017         ;;
14018
14019       solaris*)
14020         case $cc_basename in
14021           CC* | sunCC*)
14022             # Sun C++ 4.2, 5.x and Centerline C++
14023             archive_cmds_need_lc_CXX=yes
14024             no_undefined_flag_CXX=' -zdefs'
14025             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14026             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14027               $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'
14028
14029             hardcode_libdir_flag_spec_CXX='-R$libdir'
14030             hardcode_shlibpath_var_CXX=no
14031             case $host_os in
14032               solaris2.[0-5] | solaris2.[0-5].*) ;;
14033               *)
14034                 # The compiler driver will combine and reorder linker options,
14035                 # but understands `-z linker_flag'.
14036                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14037                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14038                 ;;
14039             esac
14040             link_all_deplibs_CXX=yes
14041
14042             output_verbose_link_cmd='func_echo_all'
14043
14044             # Archives containing C++ object files must be created using
14045             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14046             # necessary to make sure instantiated templates are included
14047             # in the archive.
14048             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14049             ;;
14050           gcx*)
14051             # Green Hills C++ Compiler
14052             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14053
14054             # The C++ compiler must be used to create the archive.
14055             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14056             ;;
14057           *)
14058             # GNU C++ compiler with Solaris linker
14059             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14060               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14061               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14062                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14063                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14064                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14065
14066                 # Commands to make compiler produce verbose output that lists
14067                 # what "hidden" libraries, object files and flags are used when
14068                 # linking a shared library.
14069                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14070               else
14071                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14072                 # platform.
14073                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14074                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14075                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14076
14077                 # Commands to make compiler produce verbose output that lists
14078                 # what "hidden" libraries, object files and flags are used when
14079                 # linking a shared library.
14080                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14081               fi
14082
14083               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14084               case $host_os in
14085                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14086                 *)
14087                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14088                   ;;
14089               esac
14090             fi
14091             ;;
14092         esac
14093         ;;
14094
14095     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14096       no_undefined_flag_CXX='${wl}-z,text'
14097       archive_cmds_need_lc_CXX=no
14098       hardcode_shlibpath_var_CXX=no
14099       runpath_var='LD_RUN_PATH'
14100
14101       case $cc_basename in
14102         CC*)
14103           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14104           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14105           ;;
14106         *)
14107           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14108           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14109           ;;
14110       esac
14111       ;;
14112
14113       sysv5* | sco3.2v5* | sco5v6*)
14114         # Note: We can NOT use -z defs as we might desire, because we do not
14115         # link with -lc, and that would cause any symbols used from libc to
14116         # always be unresolved, which means just about no library would
14117         # ever link correctly.  If we're not using GNU ld we use -z text
14118         # though, which does catch some bad symbols but isn't as heavy-handed
14119         # as -z defs.
14120         no_undefined_flag_CXX='${wl}-z,text'
14121         allow_undefined_flag_CXX='${wl}-z,nodefs'
14122         archive_cmds_need_lc_CXX=no
14123         hardcode_shlibpath_var_CXX=no
14124         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14125         hardcode_libdir_separator_CXX=':'
14126         link_all_deplibs_CXX=yes
14127         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14128         runpath_var='LD_RUN_PATH'
14129
14130         case $cc_basename in
14131           CC*)
14132             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14133             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14134             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14135               '"$old_archive_cmds_CXX"
14136             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14137               '"$reload_cmds_CXX"
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       tandem*)
14147         case $cc_basename in
14148           NCC*)
14149             # NonStop-UX NCC 3.20
14150             # FIXME: insert proper C++ library support
14151             ld_shlibs_CXX=no
14152             ;;
14153           *)
14154             # FIXME: insert proper C++ library support
14155             ld_shlibs_CXX=no
14156             ;;
14157         esac
14158         ;;
14159
14160       vxworks*)
14161         # FIXME: insert proper C++ library support
14162         ld_shlibs_CXX=no
14163         ;;
14164
14165       *)
14166         # FIXME: insert proper C++ library support
14167         ld_shlibs_CXX=no
14168         ;;
14169     esac
14170
14171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14172 $as_echo "$ld_shlibs_CXX" >&6; }
14173     test "$ld_shlibs_CXX" = no && can_build_shared=no
14174
14175     GCC_CXX="$GXX"
14176     LD_CXX="$LD"
14177
14178     ## CAVEAT EMPTOR:
14179     ## There is no encapsulation within the following macros, do not change
14180     ## the running order or otherwise move them around unless you know exactly
14181     ## what you are doing...
14182     # Dependencies to place before and after the object being linked:
14183 predep_objects_CXX=
14184 postdep_objects_CXX=
14185 predeps_CXX=
14186 postdeps_CXX=
14187 compiler_lib_search_path_CXX=
14188
14189 cat > conftest.$ac_ext <<_LT_EOF
14190 class Foo
14191 {
14192 public:
14193   Foo (void) { a = 0; }
14194 private:
14195   int a;
14196 };
14197 _LT_EOF
14198
14199
14200 _lt_libdeps_save_CFLAGS=$CFLAGS
14201 case "$CC $CFLAGS " in #(
14202 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14203 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14204 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14205 esac
14206
14207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14208   (eval $ac_compile) 2>&5
14209   ac_status=$?
14210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14211   test $ac_status = 0; }; then
14212   # Parse the compiler output and extract the necessary
14213   # objects, libraries and library flags.
14214
14215   # Sentinel used to keep track of whether or not we are before
14216   # the conftest object file.
14217   pre_test_object_deps_done=no
14218
14219   for p in `eval "$output_verbose_link_cmd"`; do
14220     case ${prev}${p} in
14221
14222     -L* | -R* | -l*)
14223        # Some compilers place space between "-{L,R}" and the path.
14224        # Remove the space.
14225        if test $p = "-L" ||
14226           test $p = "-R"; then
14227          prev=$p
14228          continue
14229        fi
14230
14231        # Expand the sysroot to ease extracting the directories later.
14232        if test -z "$prev"; then
14233          case $p in
14234          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14235          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14236          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14237          esac
14238        fi
14239        case $p in
14240        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14241        esac
14242        if test "$pre_test_object_deps_done" = no; then
14243          case ${prev} in
14244          -L | -R)
14245            # Internal compiler library paths should come after those
14246            # provided the user.  The postdeps already come after the
14247            # user supplied libs so there is no need to process them.
14248            if test -z "$compiler_lib_search_path_CXX"; then
14249              compiler_lib_search_path_CXX="${prev}${p}"
14250            else
14251              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14252            fi
14253            ;;
14254          # The "-l" case would never come before the object being
14255          # linked, so don't bother handling this case.
14256          esac
14257        else
14258          if test -z "$postdeps_CXX"; then
14259            postdeps_CXX="${prev}${p}"
14260          else
14261            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14262          fi
14263        fi
14264        prev=
14265        ;;
14266
14267     *.lto.$objext) ;; # Ignore GCC LTO objects
14268     *.$objext)
14269        # This assumes that the test object file only shows up
14270        # once in the compiler output.
14271        if test "$p" = "conftest.$objext"; then
14272          pre_test_object_deps_done=yes
14273          continue
14274        fi
14275
14276        if test "$pre_test_object_deps_done" = no; then
14277          if test -z "$predep_objects_CXX"; then
14278            predep_objects_CXX="$p"
14279          else
14280            predep_objects_CXX="$predep_objects_CXX $p"
14281          fi
14282        else
14283          if test -z "$postdep_objects_CXX"; then
14284            postdep_objects_CXX="$p"
14285          else
14286            postdep_objects_CXX="$postdep_objects_CXX $p"
14287          fi
14288        fi
14289        ;;
14290
14291     *) ;; # Ignore the rest.
14292
14293     esac
14294   done
14295
14296   # Clean up.
14297   rm -f a.out a.exe
14298 else
14299   echo "libtool.m4: error: problem compiling CXX test program"
14300 fi
14301
14302 $RM -f confest.$objext
14303 CFLAGS=$_lt_libdeps_save_CFLAGS
14304
14305 # PORTME: override above test on systems where it is broken
14306 case $host_os in
14307 interix[3-9]*)
14308   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14309   # hack all around it, let's just trust "g++" to DTRT.
14310   predep_objects_CXX=
14311   postdep_objects_CXX=
14312   postdeps_CXX=
14313   ;;
14314
14315 linux*)
14316   case `$CC -V 2>&1 | sed 5q` in
14317   *Sun\ C*)
14318     # Sun C++ 5.9
14319
14320     # The more standards-conforming stlport4 library is
14321     # incompatible with the Cstd library. Avoid specifying
14322     # it if it's in CXXFLAGS. Ignore libCrun as
14323     # -library=stlport4 depends on it.
14324     case " $CXX $CXXFLAGS " in
14325     *" -library=stlport4 "*)
14326       solaris_use_stlport4=yes
14327       ;;
14328     esac
14329
14330     if test "$solaris_use_stlport4" != yes; then
14331       postdeps_CXX='-library=Cstd -library=Crun'
14332     fi
14333     ;;
14334   esac
14335   ;;
14336
14337 solaris*)
14338   case $cc_basename in
14339   CC* | sunCC*)
14340     # The more standards-conforming stlport4 library is
14341     # incompatible with the Cstd library. Avoid specifying
14342     # it if it's in CXXFLAGS. Ignore libCrun as
14343     # -library=stlport4 depends on it.
14344     case " $CXX $CXXFLAGS " in
14345     *" -library=stlport4 "*)
14346       solaris_use_stlport4=yes
14347       ;;
14348     esac
14349
14350     # Adding this requires a known-good setup of shared libraries for
14351     # Sun compiler versions before 5.6, else PIC objects from an old
14352     # archive will be linked into the output, leading to subtle bugs.
14353     if test "$solaris_use_stlport4" != yes; then
14354       postdeps_CXX='-library=Cstd -library=Crun'
14355     fi
14356     ;;
14357   esac
14358   ;;
14359 esac
14360
14361
14362 case " $postdeps_CXX " in
14363 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14364 esac
14365  compiler_lib_search_dirs_CXX=
14366 if test -n "${compiler_lib_search_path_CXX}"; then
14367  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14368 fi
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400     lt_prog_compiler_wl_CXX=
14401 lt_prog_compiler_pic_CXX=
14402 lt_prog_compiler_static_CXX=
14403
14404
14405   # C++ specific cases for pic, static, wl, etc.
14406   if test "$GXX" = yes; then
14407     lt_prog_compiler_wl_CXX='-Wl,'
14408     lt_prog_compiler_static_CXX='-static'
14409
14410     case $host_os in
14411     aix*)
14412       # All AIX code is PIC.
14413       if test "$host_cpu" = ia64; then
14414         # AIX 5 now supports IA64 processor
14415         lt_prog_compiler_static_CXX='-Bstatic'
14416       fi
14417       ;;
14418
14419     amigaos*)
14420       case $host_cpu in
14421       powerpc)
14422             # see comment about AmigaOS4 .so support
14423             lt_prog_compiler_pic_CXX='-fPIC'
14424         ;;
14425       m68k)
14426             # FIXME: we need at least 68020 code to build shared libraries, but
14427             # adding the `-m68020' flag to GCC prevents building anything better,
14428             # like `-m68040'.
14429             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14430         ;;
14431       esac
14432       ;;
14433
14434     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14435       # PIC is the default for these OSes.
14436       ;;
14437     mingw* | cygwin* | os2* | pw32* | cegcc*)
14438       # This hack is so that the source file can tell whether it is being
14439       # built for inclusion in a dll (and should export symbols for example).
14440       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14441       # (--disable-auto-import) libraries
14442       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14443       ;;
14444     darwin* | rhapsody*)
14445       # PIC is the default on this platform
14446       # Common symbols not allowed in MH_DYLIB files
14447       lt_prog_compiler_pic_CXX='-fno-common'
14448       ;;
14449     *djgpp*)
14450       # DJGPP does not support shared libraries at all
14451       lt_prog_compiler_pic_CXX=
14452       ;;
14453     haiku*)
14454       # PIC is the default for Haiku.
14455       # The "-static" flag exists, but is broken.
14456       lt_prog_compiler_static_CXX=
14457       ;;
14458     interix[3-9]*)
14459       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14460       # Instead, we relocate shared libraries at runtime.
14461       ;;
14462     sysv4*MP*)
14463       if test -d /usr/nec; then
14464         lt_prog_compiler_pic_CXX=-Kconform_pic
14465       fi
14466       ;;
14467     hpux*)
14468       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14469       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14470       # sets the default TLS model and affects inlining.
14471       case $host_cpu in
14472       hppa*64*)
14473         ;;
14474       *)
14475         lt_prog_compiler_pic_CXX='-fPIC'
14476         ;;
14477       esac
14478       ;;
14479     *qnx* | *nto*)
14480       # QNX uses GNU C++, but need to define -shared option too, otherwise
14481       # it will coredump.
14482       lt_prog_compiler_pic_CXX='-fPIC -shared'
14483       ;;
14484     *)
14485       lt_prog_compiler_pic_CXX='-fPIC'
14486       ;;
14487     esac
14488   else
14489     case $host_os in
14490       aix[4-9]*)
14491         # All AIX code is PIC.
14492         if test "$host_cpu" = ia64; then
14493           # AIX 5 now supports IA64 processor
14494           lt_prog_compiler_static_CXX='-Bstatic'
14495         else
14496           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14497         fi
14498         ;;
14499       chorus*)
14500         case $cc_basename in
14501         cxch68*)
14502           # Green Hills C++ Compiler
14503           # _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"
14504           ;;
14505         esac
14506         ;;
14507       mingw* | cygwin* | os2* | pw32* | cegcc*)
14508         # This hack is so that the source file can tell whether it is being
14509         # built for inclusion in a dll (and should export symbols for example).
14510         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14511         ;;
14512       dgux*)
14513         case $cc_basename in
14514           ec++*)
14515             lt_prog_compiler_pic_CXX='-KPIC'
14516             ;;
14517           ghcx*)
14518             # Green Hills C++ Compiler
14519             lt_prog_compiler_pic_CXX='-pic'
14520             ;;
14521           *)
14522             ;;
14523         esac
14524         ;;
14525       freebsd* | dragonfly*)
14526         # FreeBSD uses GNU C++
14527         ;;
14528       hpux9* | hpux10* | hpux11*)
14529         case $cc_basename in
14530           CC*)
14531             lt_prog_compiler_wl_CXX='-Wl,'
14532             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14533             if test "$host_cpu" != ia64; then
14534               lt_prog_compiler_pic_CXX='+Z'
14535             fi
14536             ;;
14537           aCC*)
14538             lt_prog_compiler_wl_CXX='-Wl,'
14539             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14540             case $host_cpu in
14541             hppa*64*|ia64*)
14542               # +Z the default
14543               ;;
14544             *)
14545               lt_prog_compiler_pic_CXX='+Z'
14546               ;;
14547             esac
14548             ;;
14549           *)
14550             ;;
14551         esac
14552         ;;
14553       interix*)
14554         # This is c89, which is MS Visual C++ (no shared libs)
14555         # Anyone wants to do a port?
14556         ;;
14557       irix5* | irix6* | nonstopux*)
14558         case $cc_basename in
14559           CC*)
14560             lt_prog_compiler_wl_CXX='-Wl,'
14561             lt_prog_compiler_static_CXX='-non_shared'
14562             # CC pic flag -KPIC is the default.
14563             ;;
14564           *)
14565             ;;
14566         esac
14567         ;;
14568       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14569         case $cc_basename in
14570           KCC*)
14571             # KAI C++ Compiler
14572             lt_prog_compiler_wl_CXX='--backend -Wl,'
14573             lt_prog_compiler_pic_CXX='-fPIC'
14574             ;;
14575           ecpc* )
14576             # old Intel C++ for x86_64 which still supported -KPIC.
14577             lt_prog_compiler_wl_CXX='-Wl,'
14578             lt_prog_compiler_pic_CXX='-KPIC'
14579             lt_prog_compiler_static_CXX='-static'
14580             ;;
14581           icpc* )
14582             # Intel C++, used to be incompatible with GCC.
14583             # ICC 10 doesn't accept -KPIC any more.
14584             lt_prog_compiler_wl_CXX='-Wl,'
14585             lt_prog_compiler_pic_CXX='-fPIC'
14586             lt_prog_compiler_static_CXX='-static'
14587             ;;
14588           pgCC* | pgcpp*)
14589             # Portland Group C++ compiler
14590             lt_prog_compiler_wl_CXX='-Wl,'
14591             lt_prog_compiler_pic_CXX='-fpic'
14592             lt_prog_compiler_static_CXX='-Bstatic'
14593             ;;
14594           cxx*)
14595             # Compaq C++
14596             # Make sure the PIC flag is empty.  It appears that all Alpha
14597             # Linux and Compaq Tru64 Unix objects are PIC.
14598             lt_prog_compiler_pic_CXX=
14599             lt_prog_compiler_static_CXX='-non_shared'
14600             ;;
14601           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14602             # IBM XL 8.0, 9.0 on PPC and BlueGene
14603             lt_prog_compiler_wl_CXX='-Wl,'
14604             lt_prog_compiler_pic_CXX='-qpic'
14605             lt_prog_compiler_static_CXX='-qstaticlink'
14606             ;;
14607           *)
14608             case `$CC -V 2>&1 | sed 5q` in
14609             *Sun\ C*)
14610               # Sun C++ 5.9
14611               lt_prog_compiler_pic_CXX='-KPIC'
14612               lt_prog_compiler_static_CXX='-Bstatic'
14613               lt_prog_compiler_wl_CXX='-Qoption ld '
14614               ;;
14615             esac
14616             ;;
14617         esac
14618         ;;
14619       lynxos*)
14620         ;;
14621       m88k*)
14622         ;;
14623       mvs*)
14624         case $cc_basename in
14625           cxx*)
14626             lt_prog_compiler_pic_CXX='-W c,exportall'
14627             ;;
14628           *)
14629             ;;
14630         esac
14631         ;;
14632       netbsd* | netbsdelf*-gnu)
14633         ;;
14634       *qnx* | *nto*)
14635         # QNX uses GNU C++, but need to define -shared option too, otherwise
14636         # it will coredump.
14637         lt_prog_compiler_pic_CXX='-fPIC -shared'
14638         ;;
14639       osf3* | osf4* | osf5*)
14640         case $cc_basename in
14641           KCC*)
14642             lt_prog_compiler_wl_CXX='--backend -Wl,'
14643             ;;
14644           RCC*)
14645             # Rational C++ 2.4.1
14646             lt_prog_compiler_pic_CXX='-pic'
14647             ;;
14648           cxx*)
14649             # Digital/Compaq C++
14650             lt_prog_compiler_wl_CXX='-Wl,'
14651             # Make sure the PIC flag is empty.  It appears that all Alpha
14652             # Linux and Compaq Tru64 Unix objects are PIC.
14653             lt_prog_compiler_pic_CXX=
14654             lt_prog_compiler_static_CXX='-non_shared'
14655             ;;
14656           *)
14657             ;;
14658         esac
14659         ;;
14660       psos*)
14661         ;;
14662       solaris*)
14663         case $cc_basename in
14664           CC* | sunCC*)
14665             # Sun C++ 4.2, 5.x and Centerline C++
14666             lt_prog_compiler_pic_CXX='-KPIC'
14667             lt_prog_compiler_static_CXX='-Bstatic'
14668             lt_prog_compiler_wl_CXX='-Qoption ld '
14669             ;;
14670           gcx*)
14671             # Green Hills C++ Compiler
14672             lt_prog_compiler_pic_CXX='-PIC'
14673             ;;
14674           *)
14675             ;;
14676         esac
14677         ;;
14678       sunos4*)
14679         case $cc_basename in
14680           CC*)
14681             # Sun C++ 4.x
14682             lt_prog_compiler_pic_CXX='-pic'
14683             lt_prog_compiler_static_CXX='-Bstatic'
14684             ;;
14685           lcc*)
14686             # Lucid
14687             lt_prog_compiler_pic_CXX='-pic'
14688             ;;
14689           *)
14690             ;;
14691         esac
14692         ;;
14693       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14694         case $cc_basename in
14695           CC*)
14696             lt_prog_compiler_wl_CXX='-Wl,'
14697             lt_prog_compiler_pic_CXX='-KPIC'
14698             lt_prog_compiler_static_CXX='-Bstatic'
14699             ;;
14700         esac
14701         ;;
14702       tandem*)
14703         case $cc_basename in
14704           NCC*)
14705             # NonStop-UX NCC 3.20
14706             lt_prog_compiler_pic_CXX='-KPIC'
14707             ;;
14708           *)
14709             ;;
14710         esac
14711         ;;
14712       vxworks*)
14713         ;;
14714       *)
14715         lt_prog_compiler_can_build_shared_CXX=no
14716         ;;
14717     esac
14718   fi
14719
14720 case $host_os in
14721   # For platforms which do not support PIC, -DPIC is meaningless:
14722   *djgpp*)
14723     lt_prog_compiler_pic_CXX=
14724     ;;
14725   *)
14726     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14727     ;;
14728 esac
14729
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14731 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14732 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14733   $as_echo_n "(cached) " >&6
14734 else
14735   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14736 fi
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14738 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14739 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14740
14741 #
14742 # Check to make sure the PIC flag actually works.
14743 #
14744 if test -n "$lt_prog_compiler_pic_CXX"; then
14745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14746 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14747 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14748   $as_echo_n "(cached) " >&6
14749 else
14750   lt_cv_prog_compiler_pic_works_CXX=no
14751    ac_outfile=conftest.$ac_objext
14752    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14753    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14754    # Insert the option either (1) after the last *FLAGS variable, or
14755    # (2) before a word containing "conftest.", or (3) at the end.
14756    # Note that $ac_compile itself does not contain backslashes and begins
14757    # with a dollar sign (not a hyphen), so the echo should work correctly.
14758    # The option is referenced via a variable to avoid confusing sed.
14759    lt_compile=`echo "$ac_compile" | $SED \
14760    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14761    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14762    -e 's:$: $lt_compiler_flag:'`
14763    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14764    (eval "$lt_compile" 2>conftest.err)
14765    ac_status=$?
14766    cat conftest.err >&5
14767    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768    if (exit $ac_status) && test -s "$ac_outfile"; then
14769      # The compiler can only warn and ignore the option if not recognized
14770      # So say no if there are warnings other than the usual output.
14771      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14772      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14773      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14774        lt_cv_prog_compiler_pic_works_CXX=yes
14775      fi
14776    fi
14777    $RM conftest*
14778
14779 fi
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14781 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14782
14783 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14784     case $lt_prog_compiler_pic_CXX in
14785      "" | " "*) ;;
14786      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14787      esac
14788 else
14789     lt_prog_compiler_pic_CXX=
14790      lt_prog_compiler_can_build_shared_CXX=no
14791 fi
14792
14793 fi
14794
14795
14796
14797
14798
14799 #
14800 # Check to make sure the static flag actually works.
14801 #
14802 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14804 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14805 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14806   $as_echo_n "(cached) " >&6
14807 else
14808   lt_cv_prog_compiler_static_works_CXX=no
14809    save_LDFLAGS="$LDFLAGS"
14810    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14811    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14812    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14813      # The linker can only warn and ignore the option if not recognized
14814      # So say no if there are warnings
14815      if test -s conftest.err; then
14816        # Append any errors to the config.log.
14817        cat conftest.err 1>&5
14818        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14819        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14820        if diff conftest.exp conftest.er2 >/dev/null; then
14821          lt_cv_prog_compiler_static_works_CXX=yes
14822        fi
14823      else
14824        lt_cv_prog_compiler_static_works_CXX=yes
14825      fi
14826    fi
14827    $RM -r conftest*
14828    LDFLAGS="$save_LDFLAGS"
14829
14830 fi
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14832 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14833
14834 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14835     :
14836 else
14837     lt_prog_compiler_static_CXX=
14838 fi
14839
14840
14841
14842
14843     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14844 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14845 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14846   $as_echo_n "(cached) " >&6
14847 else
14848   lt_cv_prog_compiler_c_o_CXX=no
14849    $RM -r conftest 2>/dev/null
14850    mkdir conftest
14851    cd conftest
14852    mkdir out
14853    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14854
14855    lt_compiler_flag="-o out/conftest2.$ac_objext"
14856    # Insert the option either (1) after the last *FLAGS variable, or
14857    # (2) before a word containing "conftest.", or (3) at the end.
14858    # Note that $ac_compile itself does not contain backslashes and begins
14859    # with a dollar sign (not a hyphen), so the echo should work correctly.
14860    lt_compile=`echo "$ac_compile" | $SED \
14861    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14862    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14863    -e 's:$: $lt_compiler_flag:'`
14864    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14865    (eval "$lt_compile" 2>out/conftest.err)
14866    ac_status=$?
14867    cat out/conftest.err >&5
14868    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14870    then
14871      # The compiler can only warn and ignore the option if not recognized
14872      # So say no if there are warnings
14873      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14874      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14875      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14876        lt_cv_prog_compiler_c_o_CXX=yes
14877      fi
14878    fi
14879    chmod u+w . 2>&5
14880    $RM conftest*
14881    # SGI C++ compiler will create directory out/ii_files/ for
14882    # template instantiation
14883    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14884    $RM out/* && rmdir out
14885    cd ..
14886    $RM -r conftest
14887    $RM conftest*
14888
14889 fi
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14891 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14892
14893
14894
14895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14896 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14897 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14898   $as_echo_n "(cached) " >&6
14899 else
14900   lt_cv_prog_compiler_c_o_CXX=no
14901    $RM -r conftest 2>/dev/null
14902    mkdir conftest
14903    cd conftest
14904    mkdir out
14905    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14906
14907    lt_compiler_flag="-o out/conftest2.$ac_objext"
14908    # Insert the option either (1) after the last *FLAGS variable, or
14909    # (2) before a word containing "conftest.", or (3) at the end.
14910    # Note that $ac_compile itself does not contain backslashes and begins
14911    # with a dollar sign (not a hyphen), so the echo should work correctly.
14912    lt_compile=`echo "$ac_compile" | $SED \
14913    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14914    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14915    -e 's:$: $lt_compiler_flag:'`
14916    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14917    (eval "$lt_compile" 2>out/conftest.err)
14918    ac_status=$?
14919    cat out/conftest.err >&5
14920    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14922    then
14923      # The compiler can only warn and ignore the option if not recognized
14924      # So say no if there are warnings
14925      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14926      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14927      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14928        lt_cv_prog_compiler_c_o_CXX=yes
14929      fi
14930    fi
14931    chmod u+w . 2>&5
14932    $RM conftest*
14933    # SGI C++ compiler will create directory out/ii_files/ for
14934    # template instantiation
14935    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14936    $RM out/* && rmdir out
14937    cd ..
14938    $RM -r conftest
14939    $RM conftest*
14940
14941 fi
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14943 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14944
14945
14946
14947
14948 hard_links="nottested"
14949 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14950   # do not overwrite the value of need_locks provided by the user
14951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14952 $as_echo_n "checking if we can lock with hard links... " >&6; }
14953   hard_links=yes
14954   $RM conftest*
14955   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14956   touch conftest.a
14957   ln conftest.a conftest.b 2>&5 || hard_links=no
14958   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14960 $as_echo "$hard_links" >&6; }
14961   if test "$hard_links" = no; then
14962     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14963 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14964     need_locks=warn
14965   fi
14966 else
14967   need_locks=no
14968 fi
14969
14970
14971
14972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14973 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14974
14975   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14976   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14977   case $host_os in
14978   aix[4-9]*)
14979     # If we're using GNU nm, then we don't want the "-C" option.
14980     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14981     # Also, AIX nm treats weak defined symbols like other global defined
14982     # symbols, whereas GNU nm marks them as "W".
14983     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14984       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'
14985     else
14986       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'
14987     fi
14988     ;;
14989   pw32*)
14990     export_symbols_cmds_CXX="$ltdll_cmds"
14991     ;;
14992   cygwin* | mingw* | cegcc*)
14993     case $cc_basename in
14994     cl*)
14995       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14996       ;;
14997     *)
14998       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'
14999       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15000       ;;
15001     esac
15002     ;;
15003   linux* | k*bsd*-gnu | gnu*)
15004     link_all_deplibs_CXX=no
15005     ;;
15006   *)
15007     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15008     ;;
15009   esac
15010
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15012 $as_echo "$ld_shlibs_CXX" >&6; }
15013 test "$ld_shlibs_CXX" = no && can_build_shared=no
15014
15015 with_gnu_ld_CXX=$with_gnu_ld
15016
15017
15018
15019
15020
15021
15022 #
15023 # Do we need to explicitly link libc?
15024 #
15025 case "x$archive_cmds_need_lc_CXX" in
15026 x|xyes)
15027   # Assume -lc should be added
15028   archive_cmds_need_lc_CXX=yes
15029
15030   if test "$enable_shared" = yes && test "$GCC" = yes; then
15031     case $archive_cmds_CXX in
15032     *'~'*)
15033       # FIXME: we may have to deal with multi-command sequences.
15034       ;;
15035     '$CC '*)
15036       # Test whether the compiler implicitly links with -lc since on some
15037       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15038       # to ld, don't add -lc before -lgcc.
15039       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15040 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15041 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15042   $as_echo_n "(cached) " >&6
15043 else
15044   $RM conftest*
15045         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15046
15047         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15048   (eval $ac_compile) 2>&5
15049   ac_status=$?
15050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15051   test $ac_status = 0; } 2>conftest.err; then
15052           soname=conftest
15053           lib=conftest
15054           libobjs=conftest.$ac_objext
15055           deplibs=
15056           wl=$lt_prog_compiler_wl_CXX
15057           pic_flag=$lt_prog_compiler_pic_CXX
15058           compiler_flags=-v
15059           linker_flags=-v
15060           verstring=
15061           output_objdir=.
15062           libname=conftest
15063           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15064           allow_undefined_flag_CXX=
15065           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15066   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15067   ac_status=$?
15068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15069   test $ac_status = 0; }
15070           then
15071             lt_cv_archive_cmds_need_lc_CXX=no
15072           else
15073             lt_cv_archive_cmds_need_lc_CXX=yes
15074           fi
15075           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15076         else
15077           cat conftest.err 1>&5
15078         fi
15079         $RM conftest*
15080
15081 fi
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15083 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15084       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15085       ;;
15086     esac
15087   fi
15088   ;;
15089 esac
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15153 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15154
15155 library_names_spec=
15156 libname_spec='lib$name'
15157 soname_spec=
15158 shrext_cmds=".so"
15159 postinstall_cmds=
15160 postuninstall_cmds=
15161 finish_cmds=
15162 finish_eval=
15163 shlibpath_var=
15164 shlibpath_overrides_runpath=unknown
15165 version_type=none
15166 dynamic_linker="$host_os ld.so"
15167 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15168 need_lib_prefix=unknown
15169 hardcode_into_libs=no
15170
15171 # when you set need_version to no, make sure it does not cause -set_version
15172 # flags to be left without arguments
15173 need_version=unknown
15174
15175 case $host_os in
15176 aix3*)
15177   version_type=linux # correct to gnu/linux during the next big refactor
15178   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15179   shlibpath_var=LIBPATH
15180
15181   # AIX 3 has no versioning support, so we append a major version to the name.
15182   soname_spec='${libname}${release}${shared_ext}$major'
15183   ;;
15184
15185 aix[4-9]*)
15186   version_type=linux # correct to gnu/linux during the next big refactor
15187   need_lib_prefix=no
15188   need_version=no
15189   hardcode_into_libs=yes
15190   if test "$host_cpu" = ia64; then
15191     # AIX 5 supports IA64
15192     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15193     shlibpath_var=LD_LIBRARY_PATH
15194   else
15195     # With GCC up to 2.95.x, collect2 would create an import file
15196     # for dependence libraries.  The import file would start with
15197     # the line `#! .'.  This would cause the generated library to
15198     # depend on `.', always an invalid library.  This was fixed in
15199     # development snapshots of GCC prior to 3.0.
15200     case $host_os in
15201       aix4 | aix4.[01] | aix4.[01].*)
15202       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15203            echo ' yes '
15204            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15205         :
15206       else
15207         can_build_shared=no
15208       fi
15209       ;;
15210     esac
15211     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15212     # soname into executable. Probably we can add versioning support to
15213     # collect2, so additional links can be useful in future.
15214     if test "$aix_use_runtimelinking" = yes; then
15215       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15216       # instead of lib<name>.a to let people know that these are not
15217       # typical AIX shared libraries.
15218       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15219     else
15220       # We preserve .a as extension for shared libraries through AIX4.2
15221       # and later when we are not doing run time linking.
15222       library_names_spec='${libname}${release}.a $libname.a'
15223       soname_spec='${libname}${release}${shared_ext}$major'
15224     fi
15225     shlibpath_var=LIBPATH
15226   fi
15227   ;;
15228
15229 amigaos*)
15230   case $host_cpu in
15231   powerpc)
15232     # Since July 2007 AmigaOS4 officially supports .so libraries.
15233     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15235     ;;
15236   m68k)
15237     library_names_spec='$libname.ixlibrary $libname.a'
15238     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15239     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'
15240     ;;
15241   esac
15242   ;;
15243
15244 beos*)
15245   library_names_spec='${libname}${shared_ext}'
15246   dynamic_linker="$host_os ld.so"
15247   shlibpath_var=LIBRARY_PATH
15248   ;;
15249
15250 bsdi[45]*)
15251   version_type=linux # correct to gnu/linux during the next big refactor
15252   need_version=no
15253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254   soname_spec='${libname}${release}${shared_ext}$major'
15255   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15256   shlibpath_var=LD_LIBRARY_PATH
15257   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15258   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15259   # the default ld.so.conf also contains /usr/contrib/lib and
15260   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15261   # libtool to hard-code these into programs
15262   ;;
15263
15264 cygwin* | mingw* | pw32* | cegcc*)
15265   version_type=windows
15266   shrext_cmds=".dll"
15267   need_version=no
15268   need_lib_prefix=no
15269
15270   case $GCC,$cc_basename in
15271   yes,*)
15272     # gcc
15273     library_names_spec='$libname.dll.a'
15274     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15275     postinstall_cmds='base_file=`basename \${file}`~
15276       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15277       dldir=$destdir/`dirname \$dlpath`~
15278       test -d \$dldir || mkdir -p \$dldir~
15279       $install_prog $dir/$dlname \$dldir/$dlname~
15280       chmod a+x \$dldir/$dlname~
15281       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15282         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15283       fi'
15284     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15285       dlpath=$dir/\$dldll~
15286        $RM \$dlpath'
15287     shlibpath_overrides_runpath=yes
15288
15289     case $host_os in
15290     cygwin*)
15291       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15292       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15293
15294       ;;
15295     mingw* | cegcc*)
15296       # MinGW DLLs use traditional 'lib' prefix
15297       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15298       ;;
15299     pw32*)
15300       # pw32 DLLs use 'pw' prefix rather than 'lib'
15301       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15302       ;;
15303     esac
15304     dynamic_linker='Win32 ld.exe'
15305     ;;
15306
15307   *,cl*)
15308     # Native MSVC
15309     libname_spec='$name'
15310     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15311     library_names_spec='${libname}.dll.lib'
15312
15313     case $build_os in
15314     mingw*)
15315       sys_lib_search_path_spec=
15316       lt_save_ifs=$IFS
15317       IFS=';'
15318       for lt_path in $LIB
15319       do
15320         IFS=$lt_save_ifs
15321         # Let DOS variable expansion print the short 8.3 style file name.
15322         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15323         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15324       done
15325       IFS=$lt_save_ifs
15326       # Convert to MSYS style.
15327       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15328       ;;
15329     cygwin*)
15330       # Convert to unix form, then to dos form, then back to unix form
15331       # but this time dos style (no spaces!) so that the unix form looks
15332       # like /cygdrive/c/PROGRA~1:/cygdr...
15333       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15334       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15335       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15336       ;;
15337     *)
15338       sys_lib_search_path_spec="$LIB"
15339       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15340         # It is most probably a Windows format PATH.
15341         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15342       else
15343         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15344       fi
15345       # FIXME: find the short name or the path components, as spaces are
15346       # common. (e.g. "Program Files" -> "PROGRA~1")
15347       ;;
15348     esac
15349
15350     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15351     postinstall_cmds='base_file=`basename \${file}`~
15352       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15353       dldir=$destdir/`dirname \$dlpath`~
15354       test -d \$dldir || mkdir -p \$dldir~
15355       $install_prog $dir/$dlname \$dldir/$dlname'
15356     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15357       dlpath=$dir/\$dldll~
15358        $RM \$dlpath'
15359     shlibpath_overrides_runpath=yes
15360     dynamic_linker='Win32 link.exe'
15361     ;;
15362
15363   *)
15364     # Assume MSVC wrapper
15365     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15366     dynamic_linker='Win32 ld.exe'
15367     ;;
15368   esac
15369   # FIXME: first we should search . and the directory the executable is in
15370   shlibpath_var=PATH
15371   ;;
15372
15373 darwin* | rhapsody*)
15374   dynamic_linker="$host_os dyld"
15375   version_type=darwin
15376   need_lib_prefix=no
15377   need_version=no
15378   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15379   soname_spec='${libname}${release}${major}$shared_ext'
15380   shlibpath_overrides_runpath=yes
15381   shlibpath_var=DYLD_LIBRARY_PATH
15382   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15383
15384   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15385   ;;
15386
15387 dgux*)
15388   version_type=linux # correct to gnu/linux during the next big refactor
15389   need_lib_prefix=no
15390   need_version=no
15391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15392   soname_spec='${libname}${release}${shared_ext}$major'
15393   shlibpath_var=LD_LIBRARY_PATH
15394   ;;
15395
15396 freebsd* | dragonfly*)
15397   # DragonFly does not have aout.  When/if they implement a new
15398   # versioning mechanism, adjust this.
15399   if test -x /usr/bin/objformat; then
15400     objformat=`/usr/bin/objformat`
15401   else
15402     case $host_os in
15403     freebsd[23].*) objformat=aout ;;
15404     *) objformat=elf ;;
15405     esac
15406   fi
15407   version_type=freebsd-$objformat
15408   case $version_type in
15409     freebsd-elf*)
15410       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15411       need_version=no
15412       need_lib_prefix=no
15413       ;;
15414     freebsd-*)
15415       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15416       need_version=yes
15417       ;;
15418   esac
15419   shlibpath_var=LD_LIBRARY_PATH
15420   case $host_os in
15421   freebsd2.*)
15422     shlibpath_overrides_runpath=yes
15423     ;;
15424   freebsd3.[01]* | freebsdelf3.[01]*)
15425     shlibpath_overrides_runpath=yes
15426     hardcode_into_libs=yes
15427     ;;
15428   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15429   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15430     shlibpath_overrides_runpath=no
15431     hardcode_into_libs=yes
15432     ;;
15433   *) # from 4.6 on, and DragonFly
15434     shlibpath_overrides_runpath=yes
15435     hardcode_into_libs=yes
15436     ;;
15437   esac
15438   ;;
15439
15440 haiku*)
15441   version_type=linux # correct to gnu/linux during the next big refactor
15442   need_lib_prefix=no
15443   need_version=no
15444   dynamic_linker="$host_os runtime_loader"
15445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15446   soname_spec='${libname}${release}${shared_ext}$major'
15447   shlibpath_var=LIBRARY_PATH
15448   shlibpath_overrides_runpath=yes
15449   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15450   hardcode_into_libs=yes
15451   ;;
15452
15453 hpux9* | hpux10* | hpux11*)
15454   # Give a soname corresponding to the major version so that dld.sl refuses to
15455   # link against other versions.
15456   version_type=sunos
15457   need_lib_prefix=no
15458   need_version=no
15459   case $host_cpu in
15460   ia64*)
15461     shrext_cmds='.so'
15462     hardcode_into_libs=yes
15463     dynamic_linker="$host_os dld.so"
15464     shlibpath_var=LD_LIBRARY_PATH
15465     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15466     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467     soname_spec='${libname}${release}${shared_ext}$major'
15468     if test "X$HPUX_IA64_MODE" = X32; then
15469       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15470     else
15471       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15472     fi
15473     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15474     ;;
15475   hppa*64*)
15476     shrext_cmds='.sl'
15477     hardcode_into_libs=yes
15478     dynamic_linker="$host_os dld.sl"
15479     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15480     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15481     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15482     soname_spec='${libname}${release}${shared_ext}$major'
15483     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15484     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15485     ;;
15486   *)
15487     shrext_cmds='.sl'
15488     dynamic_linker="$host_os dld.sl"
15489     shlibpath_var=SHLIB_PATH
15490     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15491     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15492     soname_spec='${libname}${release}${shared_ext}$major'
15493     ;;
15494   esac
15495   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15496   postinstall_cmds='chmod 555 $lib'
15497   # or fails outright, so override atomically:
15498   install_override_mode=555
15499   ;;
15500
15501 interix[3-9]*)
15502   version_type=linux # correct to gnu/linux during the next big refactor
15503   need_lib_prefix=no
15504   need_version=no
15505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15506   soname_spec='${libname}${release}${shared_ext}$major'
15507   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15508   shlibpath_var=LD_LIBRARY_PATH
15509   shlibpath_overrides_runpath=no
15510   hardcode_into_libs=yes
15511   ;;
15512
15513 irix5* | irix6* | nonstopux*)
15514   case $host_os in
15515     nonstopux*) version_type=nonstopux ;;
15516     *)
15517         if test "$lt_cv_prog_gnu_ld" = yes; then
15518                 version_type=linux # correct to gnu/linux during the next big refactor
15519         else
15520                 version_type=irix
15521         fi ;;
15522   esac
15523   need_lib_prefix=no
15524   need_version=no
15525   soname_spec='${libname}${release}${shared_ext}$major'
15526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15527   case $host_os in
15528   irix5* | nonstopux*)
15529     libsuff= shlibsuff=
15530     ;;
15531   *)
15532     case $LD in # libtool.m4 will add one of these switches to LD
15533     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15534       libsuff= shlibsuff= libmagic=32-bit;;
15535     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15536       libsuff=32 shlibsuff=N32 libmagic=N32;;
15537     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15538       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15539     *) libsuff= shlibsuff= libmagic=never-match;;
15540     esac
15541     ;;
15542   esac
15543   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15544   shlibpath_overrides_runpath=no
15545   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15546   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15547   hardcode_into_libs=yes
15548   ;;
15549
15550 # No shared lib support for Linux oldld, aout, or coff.
15551 linux*oldld* | linux*aout* | linux*coff*)
15552   dynamic_linker=no
15553   ;;
15554
15555 # This must be glibc/ELF.
15556 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15557   version_type=linux # correct to gnu/linux during the next big refactor
15558   need_lib_prefix=no
15559   need_version=no
15560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561   soname_spec='${libname}${release}${shared_ext}$major'
15562   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15563   shlibpath_var=LD_LIBRARY_PATH
15564   shlibpath_overrides_runpath=no
15565
15566   # Some binutils ld are patched to set DT_RUNPATH
15567   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15568   $as_echo_n "(cached) " >&6
15569 else
15570   lt_cv_shlibpath_overrides_runpath=no
15571     save_LDFLAGS=$LDFLAGS
15572     save_libdir=$libdir
15573     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15574          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15575     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15576 /* end confdefs.h.  */
15577
15578 int
15579 main ()
15580 {
15581
15582   ;
15583   return 0;
15584 }
15585 _ACEOF
15586 if ac_fn_cxx_try_link "$LINENO"; then :
15587   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15588   lt_cv_shlibpath_overrides_runpath=yes
15589 fi
15590 fi
15591 rm -f core conftest.err conftest.$ac_objext \
15592     conftest$ac_exeext conftest.$ac_ext
15593     LDFLAGS=$save_LDFLAGS
15594     libdir=$save_libdir
15595
15596 fi
15597
15598   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15599
15600   # This implies no fast_install, which is unacceptable.
15601   # Some rework will be needed to allow for fast_install
15602   # before this can be enabled.
15603   hardcode_into_libs=yes
15604
15605   # Append ld.so.conf contents to the search path
15606   if test -f /etc/ld.so.conf; then
15607     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' ' '`
15608     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15609   fi
15610
15611   # We used to test for /lib/ld.so.1 and disable shared libraries on
15612   # powerpc, because MkLinux only supported shared libraries with the
15613   # GNU dynamic linker.  Since this was broken with cross compilers,
15614   # most powerpc-linux boxes support dynamic linking these days and
15615   # people can always --disable-shared, the test was removed, and we
15616   # assume the GNU/Linux dynamic linker is in use.
15617   dynamic_linker='GNU/Linux ld.so'
15618   ;;
15619
15620 netbsdelf*-gnu)
15621   version_type=linux
15622   need_lib_prefix=no
15623   need_version=no
15624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15625   soname_spec='${libname}${release}${shared_ext}$major'
15626   shlibpath_var=LD_LIBRARY_PATH
15627   shlibpath_overrides_runpath=no
15628   hardcode_into_libs=yes
15629   dynamic_linker='NetBSD ld.elf_so'
15630   ;;
15631
15632 netbsd*)
15633   version_type=sunos
15634   need_lib_prefix=no
15635   need_version=no
15636   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15638     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15639     dynamic_linker='NetBSD (a.out) ld.so'
15640   else
15641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15642     soname_spec='${libname}${release}${shared_ext}$major'
15643     dynamic_linker='NetBSD ld.elf_so'
15644   fi
15645   shlibpath_var=LD_LIBRARY_PATH
15646   shlibpath_overrides_runpath=yes
15647   hardcode_into_libs=yes
15648   ;;
15649
15650 newsos6)
15651   version_type=linux # correct to gnu/linux during the next big refactor
15652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653   shlibpath_var=LD_LIBRARY_PATH
15654   shlibpath_overrides_runpath=yes
15655   ;;
15656
15657 *nto* | *qnx*)
15658   version_type=qnx
15659   need_lib_prefix=no
15660   need_version=no
15661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15662   soname_spec='${libname}${release}${shared_ext}$major'
15663   shlibpath_var=LD_LIBRARY_PATH
15664   shlibpath_overrides_runpath=no
15665   hardcode_into_libs=yes
15666   dynamic_linker='ldqnx.so'
15667   ;;
15668
15669 openbsd*)
15670   version_type=sunos
15671   sys_lib_dlsearch_path_spec="/usr/lib"
15672   need_lib_prefix=no
15673   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15674   case $host_os in
15675     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15676     *)                          need_version=no  ;;
15677   esac
15678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15679   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15680   shlibpath_var=LD_LIBRARY_PATH
15681   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15682     case $host_os in
15683       openbsd2.[89] | openbsd2.[89].*)
15684         shlibpath_overrides_runpath=no
15685         ;;
15686       *)
15687         shlibpath_overrides_runpath=yes
15688         ;;
15689       esac
15690   else
15691     shlibpath_overrides_runpath=yes
15692   fi
15693   ;;
15694
15695 os2*)
15696   libname_spec='$name'
15697   shrext_cmds=".dll"
15698   need_lib_prefix=no
15699   library_names_spec='$libname${shared_ext} $libname.a'
15700   dynamic_linker='OS/2 ld.exe'
15701   shlibpath_var=LIBPATH
15702   ;;
15703
15704 osf3* | osf4* | osf5*)
15705   version_type=osf
15706   need_lib_prefix=no
15707   need_version=no
15708   soname_spec='${libname}${release}${shared_ext}$major'
15709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15710   shlibpath_var=LD_LIBRARY_PATH
15711   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15712   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15713   ;;
15714
15715 rdos*)
15716   dynamic_linker=no
15717   ;;
15718
15719 solaris*)
15720   version_type=linux # correct to gnu/linux during the next big refactor
15721   need_lib_prefix=no
15722   need_version=no
15723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724   soname_spec='${libname}${release}${shared_ext}$major'
15725   shlibpath_var=LD_LIBRARY_PATH
15726   shlibpath_overrides_runpath=yes
15727   hardcode_into_libs=yes
15728   # ldd complains unless libraries are executable
15729   postinstall_cmds='chmod +x $lib'
15730   ;;
15731
15732 sunos4*)
15733   version_type=sunos
15734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15735   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15736   shlibpath_var=LD_LIBRARY_PATH
15737   shlibpath_overrides_runpath=yes
15738   if test "$with_gnu_ld" = yes; then
15739     need_lib_prefix=no
15740   fi
15741   need_version=yes
15742   ;;
15743
15744 sysv4 | sysv4.3*)
15745   version_type=linux # correct to gnu/linux during the next big refactor
15746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15747   soname_spec='${libname}${release}${shared_ext}$major'
15748   shlibpath_var=LD_LIBRARY_PATH
15749   case $host_vendor in
15750     sni)
15751       shlibpath_overrides_runpath=no
15752       need_lib_prefix=no
15753       runpath_var=LD_RUN_PATH
15754       ;;
15755     siemens)
15756       need_lib_prefix=no
15757       ;;
15758     motorola)
15759       need_lib_prefix=no
15760       need_version=no
15761       shlibpath_overrides_runpath=no
15762       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15763       ;;
15764   esac
15765   ;;
15766
15767 sysv4*MP*)
15768   if test -d /usr/nec ;then
15769     version_type=linux # correct to gnu/linux during the next big refactor
15770     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15771     soname_spec='$libname${shared_ext}.$major'
15772     shlibpath_var=LD_LIBRARY_PATH
15773   fi
15774   ;;
15775
15776 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15777   version_type=freebsd-elf
15778   need_lib_prefix=no
15779   need_version=no
15780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15781   soname_spec='${libname}${release}${shared_ext}$major'
15782   shlibpath_var=LD_LIBRARY_PATH
15783   shlibpath_overrides_runpath=yes
15784   hardcode_into_libs=yes
15785   if test "$with_gnu_ld" = yes; then
15786     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15787   else
15788     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15789     case $host_os in
15790       sco3.2v5*)
15791         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15792         ;;
15793     esac
15794   fi
15795   sys_lib_dlsearch_path_spec='/usr/lib'
15796   ;;
15797
15798 tpf*)
15799   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15800   version_type=linux # correct to gnu/linux during the next big refactor
15801   need_lib_prefix=no
15802   need_version=no
15803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15804   shlibpath_var=LD_LIBRARY_PATH
15805   shlibpath_overrides_runpath=no
15806   hardcode_into_libs=yes
15807   ;;
15808
15809 uts4*)
15810   version_type=linux # correct to gnu/linux during the next big refactor
15811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15812   soname_spec='${libname}${release}${shared_ext}$major'
15813   shlibpath_var=LD_LIBRARY_PATH
15814   ;;
15815
15816 *)
15817   dynamic_linker=no
15818   ;;
15819 esac
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15821 $as_echo "$dynamic_linker" >&6; }
15822 test "$dynamic_linker" = no && can_build_shared=no
15823
15824 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15825 if test "$GCC" = yes; then
15826   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15827 fi
15828
15829 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15830   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15831 fi
15832 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15833   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15834 fi
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15874 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15875 hardcode_action_CXX=
15876 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15877    test -n "$runpath_var_CXX" ||
15878    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15879
15880   # We can hardcode non-existent directories.
15881   if test "$hardcode_direct_CXX" != no &&
15882      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15883      # have to relink, otherwise we might link with an installed library
15884      # when we should be linking with a yet-to-be-installed one
15885      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15886      test "$hardcode_minus_L_CXX" != no; then
15887     # Linking always hardcodes the temporary library directory.
15888     hardcode_action_CXX=relink
15889   else
15890     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15891     hardcode_action_CXX=immediate
15892   fi
15893 else
15894   # We cannot hardcode anything, or else we can only hardcode existing
15895   # directories.
15896   hardcode_action_CXX=unsupported
15897 fi
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15899 $as_echo "$hardcode_action_CXX" >&6; }
15900
15901 if test "$hardcode_action_CXX" = relink ||
15902    test "$inherit_rpath_CXX" = yes; then
15903   # Fast installation is not supported
15904   enable_fast_install=no
15905 elif test "$shlibpath_overrides_runpath" = yes ||
15906      test "$enable_shared" = no; then
15907   # Fast installation is not necessary
15908   enable_fast_install=needless
15909 fi
15910
15911
15912
15913
15914
15915
15916
15917   fi # test -n "$compiler"
15918
15919   CC=$lt_save_CC
15920   CFLAGS=$lt_save_CFLAGS
15921   LDCXX=$LD
15922   LD=$lt_save_LD
15923   GCC=$lt_save_GCC
15924   with_gnu_ld=$lt_save_with_gnu_ld
15925   lt_cv_path_LDCXX=$lt_cv_path_LD
15926   lt_cv_path_LD=$lt_save_path_LD
15927   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15928   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15929 fi # test "$_lt_caught_CXX_error" != yes
15930
15931 ac_ext=c
15932 ac_cpp='$CPP $CPPFLAGS'
15933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951         ac_config_commands="$ac_config_commands libtool"
15952
15953
15954
15955
15956 # Only expand once:
15957
15958
15959
15960
15961 # Checks for header files.
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15963 $as_echo_n "checking for ANSI C header files... " >&6; }
15964 if ${ac_cv_header_stdc+:} false; then :
15965   $as_echo_n "(cached) " >&6
15966 else
15967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h.  */
15969 #include <stdlib.h>
15970 #include <stdarg.h>
15971 #include <string.h>
15972 #include <float.h>
15973
15974 int
15975 main ()
15976 {
15977
15978   ;
15979   return 0;
15980 }
15981 _ACEOF
15982 if ac_fn_c_try_compile "$LINENO"; then :
15983   ac_cv_header_stdc=yes
15984 else
15985   ac_cv_header_stdc=no
15986 fi
15987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15988
15989 if test $ac_cv_header_stdc = yes; then
15990   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15992 /* end confdefs.h.  */
15993 #include <string.h>
15994
15995 _ACEOF
15996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15997   $EGREP "memchr" >/dev/null 2>&1; then :
15998
15999 else
16000   ac_cv_header_stdc=no
16001 fi
16002 rm -f conftest*
16003
16004 fi
16005
16006 if test $ac_cv_header_stdc = yes; then
16007   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h.  */
16010 #include <stdlib.h>
16011
16012 _ACEOF
16013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16014   $EGREP "free" >/dev/null 2>&1; then :
16015
16016 else
16017   ac_cv_header_stdc=no
16018 fi
16019 rm -f conftest*
16020
16021 fi
16022
16023 if test $ac_cv_header_stdc = yes; then
16024   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16025   if test "$cross_compiling" = yes; then :
16026   :
16027 else
16028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029 /* end confdefs.h.  */
16030 #include <ctype.h>
16031 #include <stdlib.h>
16032 #if ((' ' & 0x0FF) == 0x020)
16033 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16034 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16035 #else
16036 # define ISLOWER(c) \
16037                    (('a' <= (c) && (c) <= 'i') \
16038                      || ('j' <= (c) && (c) <= 'r') \
16039                      || ('s' <= (c) && (c) <= 'z'))
16040 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16041 #endif
16042
16043 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16044 int
16045 main ()
16046 {
16047   int i;
16048   for (i = 0; i < 256; i++)
16049     if (XOR (islower (i), ISLOWER (i))
16050         || toupper (i) != TOUPPER (i))
16051       return 2;
16052   return 0;
16053 }
16054 _ACEOF
16055 if ac_fn_c_try_run "$LINENO"; then :
16056
16057 else
16058   ac_cv_header_stdc=no
16059 fi
16060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16061   conftest.$ac_objext conftest.beam conftest.$ac_ext
16062 fi
16063
16064 fi
16065 fi
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16067 $as_echo "$ac_cv_header_stdc" >&6; }
16068 if test $ac_cv_header_stdc = yes; then
16069
16070 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16071
16072 fi
16073
16074 for ac_header in sys/ioctl.h unistd.h
16075 do :
16076   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16077 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16078 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16079   cat >>confdefs.h <<_ACEOF
16080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16081 _ACEOF
16082
16083 fi
16084
16085 done
16086
16087
16088 # Check compiler and use -Wall if gnu
16089 if test x"$GXX" = "xyes"; then
16090   CXXFLAGS="${CXXFLAGS} -Wall -Wextra"
16091   # Add -Werror in debug mode
16092   if test x"${enable_debug+set}" = xset; then
16093     CXXFLAGS="${CXXFLAGS} -Werror"
16094   fi
16095 fi
16096
16097 # Checks for functions
16098 for ac_func in gettimeofday
16099 do :
16100   ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16101 if test "x$ac_cv_func_gettimeofday" = xyes; then :
16102   cat >>confdefs.h <<_ACEOF
16103 #define HAVE_GETTIMEOFDAY 1
16104 _ACEOF
16105
16106 fi
16107 done
16108
16109
16110 # Checks for doxygen
16111 # Extract the first word of "doxygen", so it can be a program name with args.
16112 set dummy doxygen; ac_word=$2
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16114 $as_echo_n "checking for $ac_word... " >&6; }
16115 if ${ac_cv_prog_DOXYGEN+:} false; then :
16116   $as_echo_n "(cached) " >&6
16117 else
16118   if test -n "$DOXYGEN"; then
16119   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
16120 else
16121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16122 for as_dir in $PATH
16123 do
16124   IFS=$as_save_IFS
16125   test -z "$as_dir" && as_dir=.
16126     for ac_exec_ext in '' $ac_executable_extensions; do
16127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16128     ac_cv_prog_DOXYGEN="doxygen "
16129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16130     break 2
16131   fi
16132 done
16133   done
16134 IFS=$as_save_IFS
16135
16136 fi
16137 fi
16138 DOXYGEN=$ac_cv_prog_DOXYGEN
16139 if test -n "$DOXYGEN"; then
16140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16141 $as_echo "$DOXYGEN" >&6; }
16142 else
16143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16144 $as_echo "no" >&6; }
16145 fi
16146
16147
16148  if test "x${DOXYGEN}" != x ; then
16149   MAKE_DOC_TRUE=
16150   MAKE_DOC_FALSE='#'
16151 else
16152   MAKE_DOC_TRUE='#'
16153   MAKE_DOC_FALSE=
16154 fi
16155
16156
16157 # Copy doc files to build dir if necessary
16158 ac_config_links="$ac_config_links doc/release.txt:doc/release.txt"
16159
16160 ac_config_links="$ac_config_links doc/doxygen/footer.html:doc/doxygen/footer.html"
16161
16162 ac_config_links="$ac_config_links doc/doxygen/error.txt:doc/doxygen/error.txt"
16163
16164 ac_config_links="$ac_config_links doc/doxygen/tutorial.txt:doc/doxygen/tutorial.txt"
16165
16166 ac_config_links="$ac_config_links doc/doxygen/compiling.txt:doc/doxygen/compiling.txt"
16167
16168 ac_config_links="$ac_config_links doc/doxygen/acknowledge.txt:doc/doxygen/acknowledge.txt"
16169
16170 ac_config_links="$ac_config_links doc/doxygen/license.txt:doc/doxygen/license.txt"
16171
16172 ac_config_links="$ac_config_links doc/doxygen/header.html:doc/doxygen/header.html"
16173
16174 ac_config_links="$ac_config_links doc/doxygen/duplex.txt:doc/doxygen/duplex.txt"
16175
16176 ac_config_links="$ac_config_links doc/doxygen/settings.txt:doc/doxygen/settings.txt"
16177
16178 ac_config_links="$ac_config_links doc/doxygen/probe.txt:doc/doxygen/probe.txt"
16179
16180 ac_config_links="$ac_config_links doc/doxygen/playback.txt:doc/doxygen/playback.txt"
16181
16182 ac_config_links="$ac_config_links doc/doxygen/multi.txt:doc/doxygen/multi.txt"
16183
16184 ac_config_links="$ac_config_links doc/doxygen/recording.txt:doc/doxygen/recording.txt"
16185
16186 ac_config_links="$ac_config_links doc/doxygen/apinotes.txt:doc/doxygen/apinotes.txt"
16187
16188 ac_config_links="$ac_config_links doc/images/mcgill.gif:doc/images/mcgill.gif"
16189
16190 ac_config_links="$ac_config_links doc/images/ccrma.gif:doc/images/ccrma.gif"
16191
16192
16193 # Checks for package options and external software
16194
16195
16196 api=""
16197
16198 req=""
16199
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audio API" >&5
16201 $as_echo_n "checking for audio API... " >&6; }
16202 case $host in
16203   *-*-netbsd*)
16204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
16205 $as_echo "using OSS" >&6; }
16206     api="$api -D__LINUX_OSS__"
16207     LIBS="$LIBS -lossaudio"
16208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16209 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16210 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16211   $as_echo_n "(cached) " >&6
16212 else
16213   ac_check_lib_save_LIBS=$LIBS
16214 LIBS="-lpthread  $LIBS"
16215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16216 /* end confdefs.h.  */
16217
16218 /* Override any GCC internal prototype to avoid an error.
16219    Use char because int might match the return type of a GCC
16220    builtin and then its argument prototype would still apply.  */
16221 #ifdef __cplusplus
16222 extern "C"
16223 #endif
16224 char pthread_create ();
16225 int
16226 main ()
16227 {
16228 return pthread_create ();
16229   ;
16230   return 0;
16231 }
16232 _ACEOF
16233 if ac_fn_c_try_link "$LINENO"; then :
16234   ac_cv_lib_pthread_pthread_create=yes
16235 else
16236   ac_cv_lib_pthread_pthread_create=no
16237 fi
16238 rm -f core conftest.err conftest.$ac_objext \
16239     conftest$ac_exeext conftest.$ac_ext
16240 LIBS=$ac_check_lib_save_LIBS
16241 fi
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16243 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16244 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16245   cat >>confdefs.h <<_ACEOF
16246 #define HAVE_LIBPTHREAD 1
16247 _ACEOF
16248
16249   LIBS="-lpthread $LIBS"
16250
16251 else
16252   as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
16253 fi
16254
16255   ;;
16256
16257   *-*-linux*)
16258
16259 # Check whether --with-jack was given.
16260 if test "${with_jack+set}" = set; then :
16261   withval=$with_jack;
16262     api="$api -D__UNIX_JACK__"
16263     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using JACK" >&5
16264 $as_echo "using JACK" >&6; }
16265     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack_client_open in -ljack" >&5
16266 $as_echo_n "checking for jack_client_open in -ljack... " >&6; }
16267 if ${ac_cv_lib_jack_jack_client_open+:} false; then :
16268   $as_echo_n "(cached) " >&6
16269 else
16270   ac_check_lib_save_LIBS=$LIBS
16271 LIBS="-ljack  $LIBS"
16272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273 /* end confdefs.h.  */
16274
16275 /* Override any GCC internal prototype to avoid an error.
16276    Use char because int might match the return type of a GCC
16277    builtin and then its argument prototype would still apply.  */
16278 #ifdef __cplusplus
16279 extern "C"
16280 #endif
16281 char jack_client_open ();
16282 int
16283 main ()
16284 {
16285 return jack_client_open ();
16286   ;
16287   return 0;
16288 }
16289 _ACEOF
16290 if ac_fn_c_try_link "$LINENO"; then :
16291   ac_cv_lib_jack_jack_client_open=yes
16292 else
16293   ac_cv_lib_jack_jack_client_open=no
16294 fi
16295 rm -f core conftest.err conftest.$ac_objext \
16296     conftest$ac_exeext conftest.$ac_ext
16297 LIBS=$ac_check_lib_save_LIBS
16298 fi
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jack_jack_client_open" >&5
16300 $as_echo "$ac_cv_lib_jack_jack_client_open" >&6; }
16301 if test "x$ac_cv_lib_jack_jack_client_open" = xyes; then :
16302   cat >>confdefs.h <<_ACEOF
16303 #define HAVE_LIBJACK 1
16304 _ACEOF
16305
16306   LIBS="-ljack $LIBS"
16307
16308 else
16309   as_fn_error $? "JACK support requires the jack library!" "$LINENO" 5
16310 fi
16311
16312     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
16313 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
16314 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
16315   $as_echo_n "(cached) " >&6
16316 else
16317   ac_check_lib_save_LIBS=$LIBS
16318 LIBS="-lasound  $LIBS"
16319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h.  */
16321
16322 /* Override any GCC internal prototype to avoid an error.
16323    Use char because int might match the return type of a GCC
16324    builtin and then its argument prototype would still apply.  */
16325 #ifdef __cplusplus
16326 extern "C"
16327 #endif
16328 char snd_pcm_open ();
16329 int
16330 main ()
16331 {
16332 return snd_pcm_open ();
16333   ;
16334   return 0;
16335 }
16336 _ACEOF
16337 if ac_fn_c_try_link "$LINENO"; then :
16338   ac_cv_lib_asound_snd_pcm_open=yes
16339 else
16340   ac_cv_lib_asound_snd_pcm_open=no
16341 fi
16342 rm -f core conftest.err conftest.$ac_objext \
16343     conftest$ac_exeext conftest.$ac_ext
16344 LIBS=$ac_check_lib_save_LIBS
16345 fi
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
16347 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
16348 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
16349   cat >>confdefs.h <<_ACEOF
16350 #define HAVE_LIBASOUND 1
16351 _ACEOF
16352
16353   LIBS="-lasound $LIBS"
16354
16355 else
16356   as_fn_error $? "Jack support also requires the asound library!" "$LINENO" 5
16357 fi
16358
16359 fi
16360
16361
16362   # Look for ALSA flag
16363
16364 # Check whether --with-alsa was given.
16365 if test "${with_alsa+set}" = set; then :
16366   withval=$with_alsa;
16367     api="$api -D__LINUX_ALSA__"
16368     req="$req alsa"
16369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ALSA" >&5
16370 $as_echo "using ALSA" >&6; }
16371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
16372 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
16373 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
16374   $as_echo_n "(cached) " >&6
16375 else
16376   ac_check_lib_save_LIBS=$LIBS
16377 LIBS="-lasound  $LIBS"
16378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379 /* end confdefs.h.  */
16380
16381 /* Override any GCC internal prototype to avoid an error.
16382    Use char because int might match the return type of a GCC
16383    builtin and then its argument prototype would still apply.  */
16384 #ifdef __cplusplus
16385 extern "C"
16386 #endif
16387 char snd_pcm_open ();
16388 int
16389 main ()
16390 {
16391 return snd_pcm_open ();
16392   ;
16393   return 0;
16394 }
16395 _ACEOF
16396 if ac_fn_c_try_link "$LINENO"; then :
16397   ac_cv_lib_asound_snd_pcm_open=yes
16398 else
16399   ac_cv_lib_asound_snd_pcm_open=no
16400 fi
16401 rm -f core conftest.err conftest.$ac_objext \
16402     conftest$ac_exeext conftest.$ac_ext
16403 LIBS=$ac_check_lib_save_LIBS
16404 fi
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
16406 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
16407 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
16408   cat >>confdefs.h <<_ACEOF
16409 #define HAVE_LIBASOUND 1
16410 _ACEOF
16411
16412   LIBS="-lasound $LIBS"
16413
16414 else
16415   as_fn_error $? "ALSA support requires the asound library!" "$LINENO" 5
16416 fi
16417
16418 fi
16419
16420
16421   # Look for PULSE flag
16422
16423 # Check whether --with-pulse was given.
16424 if test "${with_pulse+set}" = set; then :
16425   withval=$with_pulse;
16426     api="$api -D__LINUX_PULSE__"
16427     req="$req libpulse-simple"
16428     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PulseAudio" >&5
16429 $as_echo "using PulseAudio" >&6; }
16430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_simple_flush in -lpulse-simple" >&5
16431 $as_echo_n "checking for pa_simple_flush in -lpulse-simple... " >&6; }
16432 if ${ac_cv_lib_pulse_simple_pa_simple_flush+:} false; then :
16433   $as_echo_n "(cached) " >&6
16434 else
16435   ac_check_lib_save_LIBS=$LIBS
16436 LIBS="-lpulse-simple  $LIBS"
16437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16438 /* end confdefs.h.  */
16439
16440 /* Override any GCC internal prototype to avoid an error.
16441    Use char because int might match the return type of a GCC
16442    builtin and then its argument prototype would still apply.  */
16443 #ifdef __cplusplus
16444 extern "C"
16445 #endif
16446 char pa_simple_flush ();
16447 int
16448 main ()
16449 {
16450 return pa_simple_flush ();
16451   ;
16452   return 0;
16453 }
16454 _ACEOF
16455 if ac_fn_c_try_link "$LINENO"; then :
16456   ac_cv_lib_pulse_simple_pa_simple_flush=yes
16457 else
16458   ac_cv_lib_pulse_simple_pa_simple_flush=no
16459 fi
16460 rm -f core conftest.err conftest.$ac_objext \
16461     conftest$ac_exeext conftest.$ac_ext
16462 LIBS=$ac_check_lib_save_LIBS
16463 fi
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pulse_simple_pa_simple_flush" >&5
16465 $as_echo "$ac_cv_lib_pulse_simple_pa_simple_flush" >&6; }
16466 if test "x$ac_cv_lib_pulse_simple_pa_simple_flush" = xyes; then :
16467   cat >>confdefs.h <<_ACEOF
16468 #define HAVE_LIBPULSE_SIMPLE 1
16469 _ACEOF
16470
16471   LIBS="-lpulse-simple $LIBS"
16472
16473 else
16474   as_fn_error $? "PulseAudio support requires the pulse-simple library!" "$LINENO" 5
16475 fi
16476
16477 fi
16478
16479
16480   # Look for OSS flag
16481
16482 # Check whether --with-oss was given.
16483 if test "${with_oss+set}" = set; then :
16484   withval=$with_oss;
16485     api="$api -D__LINUX_OSS__"
16486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
16487 $as_echo "using OSS" >&6; }
16488 fi
16489
16490
16491   # If no audio api flags specified, use ALSA
16492   if test "$api" == ""; then
16493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ALSA" >&5
16494 $as_echo "using ALSA" >&6; }
16495     api=-D__LINUX_ALSA__
16496
16497     req="$req alsa"
16498     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
16499 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
16500 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
16501   $as_echo_n "(cached) " >&6
16502 else
16503   ac_check_lib_save_LIBS=$LIBS
16504 LIBS="-lasound  $LIBS"
16505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506 /* end confdefs.h.  */
16507
16508 /* Override any GCC internal prototype to avoid an error.
16509    Use char because int might match the return type of a GCC
16510    builtin and then its argument prototype would still apply.  */
16511 #ifdef __cplusplus
16512 extern "C"
16513 #endif
16514 char snd_pcm_open ();
16515 int
16516 main ()
16517 {
16518 return snd_pcm_open ();
16519   ;
16520   return 0;
16521 }
16522 _ACEOF
16523 if ac_fn_c_try_link "$LINENO"; then :
16524   ac_cv_lib_asound_snd_pcm_open=yes
16525 else
16526   ac_cv_lib_asound_snd_pcm_open=no
16527 fi
16528 rm -f core conftest.err conftest.$ac_objext \
16529     conftest$ac_exeext conftest.$ac_ext
16530 LIBS=$ac_check_lib_save_LIBS
16531 fi
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
16533 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
16534 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
16535   cat >>confdefs.h <<_ACEOF
16536 #define HAVE_LIBASOUND 1
16537 _ACEOF
16538
16539   LIBS="-lasound $LIBS"
16540
16541 else
16542   as_fn_error $? "ALSA support requires the asound library!" "$LINENO" 5
16543 fi
16544
16545   fi
16546
16547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16548 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16549 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16550   $as_echo_n "(cached) " >&6
16551 else
16552   ac_check_lib_save_LIBS=$LIBS
16553 LIBS="-lpthread  $LIBS"
16554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16555 /* end confdefs.h.  */
16556
16557 /* Override any GCC internal prototype to avoid an error.
16558    Use char because int might match the return type of a GCC
16559    builtin and then its argument prototype would still apply.  */
16560 #ifdef __cplusplus
16561 extern "C"
16562 #endif
16563 char pthread_create ();
16564 int
16565 main ()
16566 {
16567 return pthread_create ();
16568   ;
16569   return 0;
16570 }
16571 _ACEOF
16572 if ac_fn_c_try_link "$LINENO"; then :
16573   ac_cv_lib_pthread_pthread_create=yes
16574 else
16575   ac_cv_lib_pthread_pthread_create=no
16576 fi
16577 rm -f core conftest.err conftest.$ac_objext \
16578     conftest$ac_exeext conftest.$ac_ext
16579 LIBS=$ac_check_lib_save_LIBS
16580 fi
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16582 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16583 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16584   cat >>confdefs.h <<_ACEOF
16585 #define HAVE_LIBPTHREAD 1
16586 _ACEOF
16587
16588   LIBS="-lpthread $LIBS"
16589
16590 else
16591   as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
16592 fi
16593
16594   ;;
16595
16596   *-apple*)
16597
16598 # Check whether --with-jack was given.
16599 if test "${with_jack+set}" = set; then :
16600   withval=$with_jack;
16601     api="$api -D__UNIX_JACK__"
16602     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using JACK" >&5
16603 $as_echo "using JACK" >&6; }
16604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack_client_open in -ljack" >&5
16605 $as_echo_n "checking for jack_client_open in -ljack... " >&6; }
16606 if ${ac_cv_lib_jack_jack_client_open+:} false; then :
16607   $as_echo_n "(cached) " >&6
16608 else
16609   ac_check_lib_save_LIBS=$LIBS
16610 LIBS="-ljack  $LIBS"
16611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16612 /* end confdefs.h.  */
16613
16614 /* Override any GCC internal prototype to avoid an error.
16615    Use char because int might match the return type of a GCC
16616    builtin and then its argument prototype would still apply.  */
16617 #ifdef __cplusplus
16618 extern "C"
16619 #endif
16620 char jack_client_open ();
16621 int
16622 main ()
16623 {
16624 return jack_client_open ();
16625   ;
16626   return 0;
16627 }
16628 _ACEOF
16629 if ac_fn_c_try_link "$LINENO"; then :
16630   ac_cv_lib_jack_jack_client_open=yes
16631 else
16632   ac_cv_lib_jack_jack_client_open=no
16633 fi
16634 rm -f core conftest.err conftest.$ac_objext \
16635     conftest$ac_exeext conftest.$ac_ext
16636 LIBS=$ac_check_lib_save_LIBS
16637 fi
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jack_jack_client_open" >&5
16639 $as_echo "$ac_cv_lib_jack_jack_client_open" >&6; }
16640 if test "x$ac_cv_lib_jack_jack_client_open" = xyes; then :
16641   cat >>confdefs.h <<_ACEOF
16642 #define HAVE_LIBJACK 1
16643 _ACEOF
16644
16645   LIBS="-ljack $LIBS"
16646
16647 else
16648   as_fn_error $? "JACK support requires the jack library!" "$LINENO" 5
16649 fi
16650
16651 fi
16652
16653
16654 #    AC_CHECK_HEADER(jack/jack.h, [], [AC_MSG_ERROR(Jack header file not found!)] )
16655 #    LIBS="$LIBS -framework jackmp" ], )
16656
16657
16658   # Look for Core flag
16659
16660 # Check whether --with-core was given.
16661 if test "${with_core+set}" = set; then :
16662   withval=$with_core;
16663     api="$api -D__MACOSX_CORE__"
16664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using CoreAudio" >&5
16665 $as_echo "using CoreAudio" >&6; }
16666     ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
16667 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then :
16668
16669 else
16670   as_fn_error $? "CoreAudio header files not found!" "$LINENO" 5
16671 fi
16672
16673
16674     LIBS="$LIBS -framework CoreAudio -framework CoreFoundation"
16675 fi
16676
16677
16678   # If no audio api flags specified, use CoreAudio
16679   if test "$api" == "";  then
16680     api=-D__MACOSX_CORE__
16681
16682     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using CoreAudio" >&5
16683 $as_echo "using CoreAudio" >&6; }
16684     ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
16685 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then :
16686
16687 else
16688   as_fn_error $? "CoreAudio header files not found!" "$LINENO" 5
16689 fi
16690
16691
16692     LIBS="-framework CoreAudio -framework CoreFoundation"
16693
16694   fi
16695
16696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16697 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16698 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16699   $as_echo_n "(cached) " >&6
16700 else
16701   ac_check_lib_save_LIBS=$LIBS
16702 LIBS="-lpthread  $LIBS"
16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h.  */
16705
16706 /* Override any GCC internal prototype to avoid an error.
16707    Use char because int might match the return type of a GCC
16708    builtin and then its argument prototype would still apply.  */
16709 #ifdef __cplusplus
16710 extern "C"
16711 #endif
16712 char pthread_create ();
16713 int
16714 main ()
16715 {
16716 return pthread_create ();
16717   ;
16718   return 0;
16719 }
16720 _ACEOF
16721 if ac_fn_c_try_link "$LINENO"; then :
16722   ac_cv_lib_pthread_pthread_create=yes
16723 else
16724   ac_cv_lib_pthread_pthread_create=no
16725 fi
16726 rm -f core conftest.err conftest.$ac_objext \
16727     conftest$ac_exeext conftest.$ac_ext
16728 LIBS=$ac_check_lib_save_LIBS
16729 fi
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16731 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16732 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16733   cat >>confdefs.h <<_ACEOF
16734 #define HAVE_LIBPTHREAD 1
16735 _ACEOF
16736
16737   LIBS="-lpthread $LIBS"
16738
16739 else
16740   as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
16741 fi
16742
16743   ;;
16744
16745   *-mingw32*)
16746
16747 # Check whether --with-asio was given.
16748 if test "${with_asio+set}" = set; then :
16749   withval=$with_asio;
16750     api="$api -D__WINDOWS_ASIO__"
16751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ASIO" >&5
16752 $as_echo "using ASIO" >&6; }
16753     objects="asio.o asiodrivers.o asiolist.o iasiothiscallresolver.o"
16754
16755 fi
16756
16757
16758   # Look for DirectSound flag
16759
16760 # Check whether --with-ds was given.
16761 if test "${with_ds+set}" = set; then :
16762   withval=$with_ds;
16763     api="$api -D__WINDOWS_DS__"
16764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using DirectSound" >&5
16765 $as_echo "using DirectSound" >&6; }
16766     LIBS="-ldsound -lwinmm $LIBS"
16767 fi
16768
16769
16770   # Look for WASAPI flag
16771
16772 # Check whether --with-wasapi was given.
16773 if test "${with_wasapi+set}" = set; then :
16774   withval=$with_wasapi;
16775     api="$api -D__WINDOWS_WASAPI__"
16776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using WASAPI" >&5
16777 $as_echo "using WASAPI" >&6; }
16778     LIBS="-lwinmm -luuid -lksuser $LIBS"
16779 fi
16780
16781
16782   # If no audio api flags specified, use DS
16783   if test "$api" == ""; then
16784     api=-D__WINDOWS_DS__
16785
16786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: using DirectSound" >&5
16787 $as_echo "using DirectSound" >&6; }
16788     LIBS="-ldsound -lwinmm $LIBS"
16789   fi
16790
16791   LIBS="-lole32 $LIBS"
16792   ;;
16793
16794   *)
16795   # Default case for unknown realtime systems.
16796   as_fn_error $? "Unknown system type for realtime support!" "$LINENO" 5
16797   ;;
16798 esac
16799
16800 CPPFLAGS="$CPPFLAGS $api"
16801
16802 cat >confcache <<\_ACEOF
16803 # This file is a shell script that caches the results of configure
16804 # tests run on this system so they can be shared between configure
16805 # scripts and configure runs, see configure's option --config-cache.
16806 # It is not useful on other systems.  If it contains results you don't
16807 # want to keep, you may remove or edit it.
16808 #
16809 # config.status only pays attention to the cache file if you give it
16810 # the --recheck option to rerun configure.
16811 #
16812 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16813 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16814 # following values.
16815
16816 _ACEOF
16817
16818 # The following way of writing the cache mishandles newlines in values,
16819 # but we know of no workaround that is simple, portable, and efficient.
16820 # So, we kill variables containing newlines.
16821 # Ultrix sh set writes to stderr and can't be redirected directly,
16822 # and sets the high bit in the cache file unless we assign to the vars.
16823 (
16824   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16825     eval ac_val=\$$ac_var
16826     case $ac_val in #(
16827     *${as_nl}*)
16828       case $ac_var in #(
16829       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16830 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16831       esac
16832       case $ac_var in #(
16833       _ | IFS | as_nl) ;; #(
16834       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16835       *) { eval $ac_var=; unset $ac_var;} ;;
16836       esac ;;
16837     esac
16838   done
16839
16840   (set) 2>&1 |
16841     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16842     *${as_nl}ac_space=\ *)
16843       # `set' does not quote correctly, so add quotes: double-quote
16844       # substitution turns \\\\ into \\, and sed turns \\ into \.
16845       sed -n \
16846         "s/'/'\\\\''/g;
16847           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16848       ;; #(
16849     *)
16850       # `set' quotes correctly as required by POSIX, so do not add quotes.
16851       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16852       ;;
16853     esac |
16854     sort
16855 ) |
16856   sed '
16857      /^ac_cv_env_/b end
16858      t clear
16859      :clear
16860      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16861      t end
16862      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16863      :end' >>confcache
16864 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16865   if test -w "$cache_file"; then
16866     if test "x$cache_file" != "x/dev/null"; then
16867       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16868 $as_echo "$as_me: updating cache $cache_file" >&6;}
16869       if test ! -f "$cache_file" || test -h "$cache_file"; then
16870         cat confcache >"$cache_file"
16871       else
16872         case $cache_file in #(
16873         */* | ?:*)
16874           mv -f confcache "$cache_file"$$ &&
16875           mv -f "$cache_file"$$ "$cache_file" ;; #(
16876         *)
16877           mv -f confcache "$cache_file" ;;
16878         esac
16879       fi
16880     fi
16881   else
16882     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16883 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16884   fi
16885 fi
16886 rm -f confcache
16887
16888 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16889 # Let make expand exec_prefix.
16890 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16891
16892 # Transform confdefs.h into DEFS.
16893 # Protect against shell expansion while executing Makefile rules.
16894 # Protect against Makefile macro expansion.
16895 #
16896 # If the first sed substitution is executed (which looks for macros that
16897 # take arguments), then branch to the quote section.  Otherwise,
16898 # look for a macro that doesn't take arguments.
16899 ac_script='
16900 :mline
16901 /\\$/{
16902  N
16903  s,\\\n,,
16904  b mline
16905 }
16906 t clear
16907 :clear
16908 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
16909 t quote
16910 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
16911 t quote
16912 b any
16913 :quote
16914 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16915 s/\[/\\&/g
16916 s/\]/\\&/g
16917 s/\$/$$/g
16918 H
16919 :any
16920 ${
16921         g
16922         s/^\n//
16923         s/\n/ /g
16924         p
16925 }
16926 '
16927 DEFS=`sed -n "$ac_script" confdefs.h`
16928
16929
16930 ac_libobjs=
16931 ac_ltlibobjs=
16932 U=
16933 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16934   # 1. Remove the extension, and $U if already installed.
16935   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16936   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16937   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16938   #    will be set to the directory where LIBOBJS objects are built.
16939   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16940   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16941 done
16942 LIBOBJS=$ac_libobjs
16943
16944 LTLIBOBJS=$ac_ltlibobjs
16945
16946
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16948 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16949    if test -n "$am_sleep_pid"; then
16950      # Hide warnings about reused PIDs.
16951      wait $am_sleep_pid 2>/dev/null
16952    fi
16953    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16954 $as_echo "done" >&6; }
16955  if test -n "$EXEEXT"; then
16956   am__EXEEXT_TRUE=
16957   am__EXEEXT_FALSE='#'
16958 else
16959   am__EXEEXT_TRUE='#'
16960   am__EXEEXT_FALSE=
16961 fi
16962
16963 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16964   as_fn_error $? "conditional \"AMDEP\" was never defined.
16965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16966 fi
16967 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16968   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16970 fi
16971 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16972   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16974 fi
16975 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16976   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16978 fi
16979 if test -z "${MAKE_DOC_TRUE}" && test -z "${MAKE_DOC_FALSE}"; then
16980   as_fn_error $? "conditional \"MAKE_DOC\" was never defined.
16981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16982 fi
16983
16984 : "${CONFIG_STATUS=./config.status}"
16985 ac_write_fail=0
16986 ac_clean_files_save=$ac_clean_files
16987 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16989 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16990 as_write_fail=0
16991 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16992 #! $SHELL
16993 # Generated by $as_me.
16994 # Run this file to recreate the current configuration.
16995 # Compiler output produced by configure, useful for debugging
16996 # configure, is in config.log if it exists.
16997
16998 debug=false
16999 ac_cs_recheck=false
17000 ac_cs_silent=false
17001
17002 SHELL=\${CONFIG_SHELL-$SHELL}
17003 export SHELL
17004 _ASEOF
17005 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17006 ## -------------------- ##
17007 ## M4sh Initialization. ##
17008 ## -------------------- ##
17009
17010 # Be more Bourne compatible
17011 DUALCASE=1; export DUALCASE # for MKS sh
17012 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17013   emulate sh
17014   NULLCMD=:
17015   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17016   # is contrary to our usage.  Disable this feature.
17017   alias -g '${1+"$@"}'='"$@"'
17018   setopt NO_GLOB_SUBST
17019 else
17020   case `(set -o) 2>/dev/null` in #(
17021   *posix*) :
17022     set -o posix ;; #(
17023   *) :
17024      ;;
17025 esac
17026 fi
17027
17028
17029 as_nl='
17030 '
17031 export as_nl
17032 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17033 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17034 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17035 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17036 # Prefer a ksh shell builtin over an external printf program on Solaris,
17037 # but without wasting forks for bash or zsh.
17038 if test -z "$BASH_VERSION$ZSH_VERSION" \
17039     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17040   as_echo='print -r --'
17041   as_echo_n='print -rn --'
17042 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17043   as_echo='printf %s\n'
17044   as_echo_n='printf %s'
17045 else
17046   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17047     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17048     as_echo_n='/usr/ucb/echo -n'
17049   else
17050     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17051     as_echo_n_body='eval
17052       arg=$1;
17053       case $arg in #(
17054       *"$as_nl"*)
17055         expr "X$arg" : "X\\(.*\\)$as_nl";
17056         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17057       esac;
17058       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17059     '
17060     export as_echo_n_body
17061     as_echo_n='sh -c $as_echo_n_body as_echo'
17062   fi
17063   export as_echo_body
17064   as_echo='sh -c $as_echo_body as_echo'
17065 fi
17066
17067 # The user is always right.
17068 if test "${PATH_SEPARATOR+set}" != set; then
17069   PATH_SEPARATOR=:
17070   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17071     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17072       PATH_SEPARATOR=';'
17073   }
17074 fi
17075
17076
17077 # IFS
17078 # We need space, tab and new line, in precisely that order.  Quoting is
17079 # there to prevent editors from complaining about space-tab.
17080 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17081 # splitting by setting IFS to empty value.)
17082 IFS=" ""        $as_nl"
17083
17084 # Find who we are.  Look in the path if we contain no directory separator.
17085 as_myself=
17086 case $0 in #((
17087   *[\\/]* ) as_myself=$0 ;;
17088   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17089 for as_dir in $PATH
17090 do
17091   IFS=$as_save_IFS
17092   test -z "$as_dir" && as_dir=.
17093     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17094   done
17095 IFS=$as_save_IFS
17096
17097      ;;
17098 esac
17099 # We did not find ourselves, most probably we were run as `sh COMMAND'
17100 # in which case we are not to be found in the path.
17101 if test "x$as_myself" = x; then
17102   as_myself=$0
17103 fi
17104 if test ! -f "$as_myself"; then
17105   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17106   exit 1
17107 fi
17108
17109 # Unset variables that we do not need and which cause bugs (e.g. in
17110 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17111 # suppresses any "Segmentation fault" message there.  '((' could
17112 # trigger a bug in pdksh 5.2.14.
17113 for as_var in BASH_ENV ENV MAIL MAILPATH
17114 do eval test x\${$as_var+set} = xset \
17115   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17116 done
17117 PS1='$ '
17118 PS2='> '
17119 PS4='+ '
17120
17121 # NLS nuisances.
17122 LC_ALL=C
17123 export LC_ALL
17124 LANGUAGE=C
17125 export LANGUAGE
17126
17127 # CDPATH.
17128 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17129
17130
17131 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17132 # ----------------------------------------
17133 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17134 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17135 # script with STATUS, using 1 if that was 0.
17136 as_fn_error ()
17137 {
17138   as_status=$1; test $as_status -eq 0 && as_status=1
17139   if test "$4"; then
17140     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17141     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17142   fi
17143   $as_echo "$as_me: error: $2" >&2
17144   as_fn_exit $as_status
17145 } # as_fn_error
17146
17147
17148 # as_fn_set_status STATUS
17149 # -----------------------
17150 # Set $? to STATUS, without forking.
17151 as_fn_set_status ()
17152 {
17153   return $1
17154 } # as_fn_set_status
17155
17156 # as_fn_exit STATUS
17157 # -----------------
17158 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17159 as_fn_exit ()
17160 {
17161   set +e
17162   as_fn_set_status $1
17163   exit $1
17164 } # as_fn_exit
17165
17166 # as_fn_unset VAR
17167 # ---------------
17168 # Portably unset VAR.
17169 as_fn_unset ()
17170 {
17171   { eval $1=; unset $1;}
17172 }
17173 as_unset=as_fn_unset
17174 # as_fn_append VAR VALUE
17175 # ----------------------
17176 # Append the text in VALUE to the end of the definition contained in VAR. Take
17177 # advantage of any shell optimizations that allow amortized linear growth over
17178 # repeated appends, instead of the typical quadratic growth present in naive
17179 # implementations.
17180 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17181   eval 'as_fn_append ()
17182   {
17183     eval $1+=\$2
17184   }'
17185 else
17186   as_fn_append ()
17187   {
17188     eval $1=\$$1\$2
17189   }
17190 fi # as_fn_append
17191
17192 # as_fn_arith ARG...
17193 # ------------------
17194 # Perform arithmetic evaluation on the ARGs, and store the result in the
17195 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17196 # must be portable across $(()) and expr.
17197 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17198   eval 'as_fn_arith ()
17199   {
17200     as_val=$(( $* ))
17201   }'
17202 else
17203   as_fn_arith ()
17204   {
17205     as_val=`expr "$@" || test $? -eq 1`
17206   }
17207 fi # as_fn_arith
17208
17209
17210 if expr a : '\(a\)' >/dev/null 2>&1 &&
17211    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17212   as_expr=expr
17213 else
17214   as_expr=false
17215 fi
17216
17217 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17218   as_basename=basename
17219 else
17220   as_basename=false
17221 fi
17222
17223 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17224   as_dirname=dirname
17225 else
17226   as_dirname=false
17227 fi
17228
17229 as_me=`$as_basename -- "$0" ||
17230 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17231          X"$0" : 'X\(//\)$' \| \
17232          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17233 $as_echo X/"$0" |
17234     sed '/^.*\/\([^/][^/]*\)\/*$/{
17235             s//\1/
17236             q
17237           }
17238           /^X\/\(\/\/\)$/{
17239             s//\1/
17240             q
17241           }
17242           /^X\/\(\/\).*/{
17243             s//\1/
17244             q
17245           }
17246           s/.*/./; q'`
17247
17248 # Avoid depending upon Character Ranges.
17249 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17250 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17251 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17252 as_cr_digits='0123456789'
17253 as_cr_alnum=$as_cr_Letters$as_cr_digits
17254
17255 ECHO_C= ECHO_N= ECHO_T=
17256 case `echo -n x` in #(((((
17257 -n*)
17258   case `echo 'xy\c'` in
17259   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17260   xy)  ECHO_C='\c';;
17261   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17262        ECHO_T=' ';;
17263   esac;;
17264 *)
17265   ECHO_N='-n';;
17266 esac
17267
17268 rm -f conf$$ conf$$.exe conf$$.file
17269 if test -d conf$$.dir; then
17270   rm -f conf$$.dir/conf$$.file
17271 else
17272   rm -f conf$$.dir
17273   mkdir conf$$.dir 2>/dev/null
17274 fi
17275 if (echo >conf$$.file) 2>/dev/null; then
17276   if ln -s conf$$.file conf$$ 2>/dev/null; then
17277     as_ln_s='ln -s'
17278     # ... but there are two gotchas:
17279     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17280     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17281     # In both cases, we have to default to `cp -pR'.
17282     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17283       as_ln_s='cp -pR'
17284   elif ln conf$$.file conf$$ 2>/dev/null; then
17285     as_ln_s=ln
17286   else
17287     as_ln_s='cp -pR'
17288   fi
17289 else
17290   as_ln_s='cp -pR'
17291 fi
17292 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17293 rmdir conf$$.dir 2>/dev/null
17294
17295
17296 # as_fn_mkdir_p
17297 # -------------
17298 # Create "$as_dir" as a directory, including parents if necessary.
17299 as_fn_mkdir_p ()
17300 {
17301
17302   case $as_dir in #(
17303   -*) as_dir=./$as_dir;;
17304   esac
17305   test -d "$as_dir" || eval $as_mkdir_p || {
17306     as_dirs=
17307     while :; do
17308       case $as_dir in #(
17309       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17310       *) as_qdir=$as_dir;;
17311       esac
17312       as_dirs="'$as_qdir' $as_dirs"
17313       as_dir=`$as_dirname -- "$as_dir" ||
17314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17315          X"$as_dir" : 'X\(//\)[^/]' \| \
17316          X"$as_dir" : 'X\(//\)$' \| \
17317          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17318 $as_echo X"$as_dir" |
17319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17320             s//\1/
17321             q
17322           }
17323           /^X\(\/\/\)[^/].*/{
17324             s//\1/
17325             q
17326           }
17327           /^X\(\/\/\)$/{
17328             s//\1/
17329             q
17330           }
17331           /^X\(\/\).*/{
17332             s//\1/
17333             q
17334           }
17335           s/.*/./; q'`
17336       test -d "$as_dir" && break
17337     done
17338     test -z "$as_dirs" || eval "mkdir $as_dirs"
17339   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17340
17341
17342 } # as_fn_mkdir_p
17343 if mkdir -p . 2>/dev/null; then
17344   as_mkdir_p='mkdir -p "$as_dir"'
17345 else
17346   test -d ./-p && rmdir ./-p
17347   as_mkdir_p=false
17348 fi
17349
17350
17351 # as_fn_executable_p FILE
17352 # -----------------------
17353 # Test if FILE is an executable regular file.
17354 as_fn_executable_p ()
17355 {
17356   test -f "$1" && test -x "$1"
17357 } # as_fn_executable_p
17358 as_test_x='test -x'
17359 as_executable_p=as_fn_executable_p
17360
17361 # Sed expression to map a string onto a valid CPP name.
17362 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17363
17364 # Sed expression to map a string onto a valid variable name.
17365 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17366
17367
17368 exec 6>&1
17369 ## ----------------------------------- ##
17370 ## Main body of $CONFIG_STATUS script. ##
17371 ## ----------------------------------- ##
17372 _ASEOF
17373 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17374
17375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17376 # Save the log message, to keep $0 and so on meaningful, and to
17377 # report actual input values of CONFIG_FILES etc. instead of their
17378 # values after options handling.
17379 ac_log="
17380 This file was extended by RtAudio $as_me 4.1.2, which was
17381 generated by GNU Autoconf 2.69.  Invocation command line was
17382
17383   CONFIG_FILES    = $CONFIG_FILES
17384   CONFIG_HEADERS  = $CONFIG_HEADERS
17385   CONFIG_LINKS    = $CONFIG_LINKS
17386   CONFIG_COMMANDS = $CONFIG_COMMANDS
17387   $ $0 $@
17388
17389 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17390 "
17391
17392 _ACEOF
17393
17394 case $ac_config_files in *"
17395 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17396 esac
17397
17398
17399
17400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17401 # Files that config.status was made for.
17402 config_files="$ac_config_files"
17403 config_links="$ac_config_links"
17404 config_commands="$ac_config_commands"
17405
17406 _ACEOF
17407
17408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17409 ac_cs_usage="\
17410 \`$as_me' instantiates files and other configuration actions
17411 from templates according to the current configuration.  Unless the files
17412 and actions are specified as TAGs, all are instantiated by default.
17413
17414 Usage: $0 [OPTION]... [TAG]...
17415
17416   -h, --help       print this help, then exit
17417   -V, --version    print version number and configuration settings, then exit
17418       --config     print configuration, then exit
17419   -q, --quiet, --silent
17420                    do not print progress messages
17421   -d, --debug      don't remove temporary files
17422       --recheck    update $as_me by reconfiguring in the same conditions
17423       --file=FILE[:TEMPLATE]
17424                    instantiate the configuration file FILE
17425
17426 Configuration files:
17427 $config_files
17428
17429 Configuration links:
17430 $config_links
17431
17432 Configuration commands:
17433 $config_commands
17434
17435 Report bugs to <gary@music.mcgill.ca>."
17436
17437 _ACEOF
17438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17439 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17440 ac_cs_version="\\
17441 RtAudio config.status 4.1.2
17442 configured by $0, generated by GNU Autoconf 2.69,
17443   with options \\"\$ac_cs_config\\"
17444
17445 Copyright (C) 2012 Free Software Foundation, Inc.
17446 This config.status script is free software; the Free Software Foundation
17447 gives unlimited permission to copy, distribute and modify it."
17448
17449 ac_pwd='$ac_pwd'
17450 srcdir='$srcdir'
17451 INSTALL='$INSTALL'
17452 MKDIR_P='$MKDIR_P'
17453 AWK='$AWK'
17454 test -n "\$AWK" || AWK=awk
17455 _ACEOF
17456
17457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17458 # The default lists apply if the user does not specify any file.
17459 ac_need_defaults=:
17460 while test $# != 0
17461 do
17462   case $1 in
17463   --*=?*)
17464     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17465     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17466     ac_shift=:
17467     ;;
17468   --*=)
17469     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17470     ac_optarg=
17471     ac_shift=:
17472     ;;
17473   *)
17474     ac_option=$1
17475     ac_optarg=$2
17476     ac_shift=shift
17477     ;;
17478   esac
17479
17480   case $ac_option in
17481   # Handling of the options.
17482   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17483     ac_cs_recheck=: ;;
17484   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17485     $as_echo "$ac_cs_version"; exit ;;
17486   --config | --confi | --conf | --con | --co | --c )
17487     $as_echo "$ac_cs_config"; exit ;;
17488   --debug | --debu | --deb | --de | --d | -d )
17489     debug=: ;;
17490   --file | --fil | --fi | --f )
17491     $ac_shift
17492     case $ac_optarg in
17493     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17494     '') as_fn_error $? "missing file argument" ;;
17495     esac
17496     as_fn_append CONFIG_FILES " '$ac_optarg'"
17497     ac_need_defaults=false;;
17498   --he | --h |  --help | --hel | -h )
17499     $as_echo "$ac_cs_usage"; exit ;;
17500   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17501   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17502     ac_cs_silent=: ;;
17503
17504   # This is an error.
17505   -*) as_fn_error $? "unrecognized option: \`$1'
17506 Try \`$0 --help' for more information." ;;
17507
17508   *) as_fn_append ac_config_targets " $1"
17509      ac_need_defaults=false ;;
17510
17511   esac
17512   shift
17513 done
17514
17515 ac_configure_extra_args=
17516
17517 if $ac_cs_silent; then
17518   exec 6>/dev/null
17519   ac_configure_extra_args="$ac_configure_extra_args --silent"
17520 fi
17521
17522 _ACEOF
17523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17524 if \$ac_cs_recheck; then
17525   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17526   shift
17527   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17528   CONFIG_SHELL='$SHELL'
17529   export CONFIG_SHELL
17530   exec "\$@"
17531 fi
17532
17533 _ACEOF
17534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17535 exec 5>>config.log
17536 {
17537   echo
17538   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17539 ## Running $as_me. ##
17540 _ASBOX
17541   $as_echo "$ac_log"
17542 } >&5
17543
17544 _ACEOF
17545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17546 #
17547 # INIT-COMMANDS
17548 #
17549 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17550
17551
17552 # The HP-UX ksh and POSIX shell print the target directory to stdout
17553 # if CDPATH is set.
17554 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17555
17556 sed_quote_subst='$sed_quote_subst'
17557 double_quote_subst='$double_quote_subst'
17558 delay_variable_subst='$delay_variable_subst'
17559 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17560 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17561 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17562 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17563 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17564 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17565 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17566 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17567 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17568 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17569 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17570 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17571 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17572 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17573 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17574 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17575 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17576 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17577 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17578 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17579 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17580 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17581 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17582 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17583 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17584 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17585 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17586 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17587 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17588 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17589 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17590 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17591 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17592 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17593 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17594 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17595 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17596 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17597 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17598 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17599 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17600 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17601 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17602 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17603 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17604 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17605 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17606 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17607 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17608 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17609 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17610 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17611 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17612 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17613 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17614 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17615 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17616 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"`'
17617 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17618 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17619 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17620 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17621 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17622 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17623 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17624 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17625 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17626 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17627 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17628 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17629 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17630 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17631 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17632 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17633 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17634 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17635 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17636 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17637 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17638 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17639 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17640 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17641 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17642 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17643 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17644 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17645 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17646 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17647 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17648 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17649 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17650 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17651 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17652 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17653 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17654 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17655 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17656 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17657 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17658 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17659 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17660 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17661 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17662 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17663 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17664 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17665 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17666 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17667 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17668 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17669 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17670 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17671 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17672 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17673 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17674 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17675 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17676 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17677 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17678 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17679 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17680 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17681 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17682 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17683 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17684 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17685 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17686 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17687 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17688 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17689 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17690 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17691 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17692 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17693 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17694 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17695 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17696 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17697 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17698 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17699 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17700 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17701 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17702 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17703 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17704 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17705 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17706 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17707 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17708 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17709 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17710 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17711 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17712 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17713 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17714 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17715 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17716 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17717 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17718 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17719 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17720 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17721 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17722 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17723 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17724 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17725 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17726 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17727 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17728 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17729 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17730 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17731 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17732 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17733 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17734 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17735 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17736 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17737 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17738 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17739 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17740 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17741 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17742 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17743 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17744
17745 LTCC='$LTCC'
17746 LTCFLAGS='$LTCFLAGS'
17747 compiler='$compiler_DEFAULT'
17748
17749 # A function that is used when there is no print builtin or printf.
17750 func_fallback_echo ()
17751 {
17752   eval 'cat <<_LTECHO_EOF
17753 \$1
17754 _LTECHO_EOF'
17755 }
17756
17757 # Quote evaled strings.
17758 for var in AS \
17759 DLLTOOL \
17760 OBJDUMP \
17761 SHELL \
17762 ECHO \
17763 PATH_SEPARATOR \
17764 SED \
17765 GREP \
17766 EGREP \
17767 FGREP \
17768 LD \
17769 NM \
17770 LN_S \
17771 lt_SP2NL \
17772 lt_NL2SP \
17773 reload_flag \
17774 deplibs_check_method \
17775 file_magic_cmd \
17776 file_magic_glob \
17777 want_nocaseglob \
17778 sharedlib_from_linklib_cmd \
17779 AR \
17780 AR_FLAGS \
17781 archiver_list_spec \
17782 STRIP \
17783 RANLIB \
17784 CC \
17785 CFLAGS \
17786 compiler \
17787 lt_cv_sys_global_symbol_pipe \
17788 lt_cv_sys_global_symbol_to_cdecl \
17789 lt_cv_sys_global_symbol_to_c_name_address \
17790 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17791 nm_file_list_spec \
17792 lt_prog_compiler_no_builtin_flag \
17793 lt_prog_compiler_pic \
17794 lt_prog_compiler_wl \
17795 lt_prog_compiler_static \
17796 lt_cv_prog_compiler_c_o \
17797 need_locks \
17798 MANIFEST_TOOL \
17799 DSYMUTIL \
17800 NMEDIT \
17801 LIPO \
17802 OTOOL \
17803 OTOOL64 \
17804 shrext_cmds \
17805 export_dynamic_flag_spec \
17806 whole_archive_flag_spec \
17807 compiler_needs_object \
17808 with_gnu_ld \
17809 allow_undefined_flag \
17810 no_undefined_flag \
17811 hardcode_libdir_flag_spec \
17812 hardcode_libdir_separator \
17813 exclude_expsyms \
17814 include_expsyms \
17815 file_list_spec \
17816 variables_saved_for_relink \
17817 libname_spec \
17818 library_names_spec \
17819 soname_spec \
17820 install_override_mode \
17821 finish_eval \
17822 old_striplib \
17823 striplib \
17824 compiler_lib_search_dirs \
17825 predep_objects \
17826 postdep_objects \
17827 predeps \
17828 postdeps \
17829 compiler_lib_search_path \
17830 LD_CXX \
17831 reload_flag_CXX \
17832 compiler_CXX \
17833 lt_prog_compiler_no_builtin_flag_CXX \
17834 lt_prog_compiler_pic_CXX \
17835 lt_prog_compiler_wl_CXX \
17836 lt_prog_compiler_static_CXX \
17837 lt_cv_prog_compiler_c_o_CXX \
17838 export_dynamic_flag_spec_CXX \
17839 whole_archive_flag_spec_CXX \
17840 compiler_needs_object_CXX \
17841 with_gnu_ld_CXX \
17842 allow_undefined_flag_CXX \
17843 no_undefined_flag_CXX \
17844 hardcode_libdir_flag_spec_CXX \
17845 hardcode_libdir_separator_CXX \
17846 exclude_expsyms_CXX \
17847 include_expsyms_CXX \
17848 file_list_spec_CXX \
17849 compiler_lib_search_dirs_CXX \
17850 predep_objects_CXX \
17851 postdep_objects_CXX \
17852 predeps_CXX \
17853 postdeps_CXX \
17854 compiler_lib_search_path_CXX; do
17855     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17856     *[\\\\\\\`\\"\\\$]*)
17857       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17858       ;;
17859     *)
17860       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17861       ;;
17862     esac
17863 done
17864
17865 # Double-quote double-evaled strings.
17866 for var in reload_cmds \
17867 old_postinstall_cmds \
17868 old_postuninstall_cmds \
17869 old_archive_cmds \
17870 extract_expsyms_cmds \
17871 old_archive_from_new_cmds \
17872 old_archive_from_expsyms_cmds \
17873 archive_cmds \
17874 archive_expsym_cmds \
17875 module_cmds \
17876 module_expsym_cmds \
17877 export_symbols_cmds \
17878 prelink_cmds \
17879 postlink_cmds \
17880 postinstall_cmds \
17881 postuninstall_cmds \
17882 finish_cmds \
17883 sys_lib_search_path_spec \
17884 sys_lib_dlsearch_path_spec \
17885 reload_cmds_CXX \
17886 old_archive_cmds_CXX \
17887 old_archive_from_new_cmds_CXX \
17888 old_archive_from_expsyms_cmds_CXX \
17889 archive_cmds_CXX \
17890 archive_expsym_cmds_CXX \
17891 module_cmds_CXX \
17892 module_expsym_cmds_CXX \
17893 export_symbols_cmds_CXX \
17894 prelink_cmds_CXX \
17895 postlink_cmds_CXX; do
17896     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17897     *[\\\\\\\`\\"\\\$]*)
17898       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17899       ;;
17900     *)
17901       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17902       ;;
17903     esac
17904 done
17905
17906 ac_aux_dir='$ac_aux_dir'
17907 xsi_shell='$xsi_shell'
17908 lt_shell_append='$lt_shell_append'
17909
17910 # See if we are running on zsh, and set the options which allow our
17911 # commands through without removal of \ escapes INIT.
17912 if test -n "\${ZSH_VERSION+set}" ; then
17913    setopt NO_GLOB_SUBST
17914 fi
17915
17916
17917     PACKAGE='$PACKAGE'
17918     VERSION='$VERSION'
17919     TIMESTAMP='$TIMESTAMP'
17920     RM='$RM'
17921     ofile='$ofile'
17922
17923
17924
17925
17926
17927
17928 _ACEOF
17929
17930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17931
17932 # Handling of arguments.
17933 for ac_config_target in $ac_config_targets
17934 do
17935   case $ac_config_target in
17936     "rtaudio-config") CONFIG_FILES="$CONFIG_FILES rtaudio-config" ;;
17937     "rtaudio.pc") CONFIG_FILES="$CONFIG_FILES rtaudio.pc" ;;
17938     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17939     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17940     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17941     "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
17942     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17943     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17944     "doc/release.txt") CONFIG_LINKS="$CONFIG_LINKS doc/release.txt:doc/release.txt" ;;
17945     "doc/doxygen/footer.html") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/footer.html:doc/doxygen/footer.html" ;;
17946     "doc/doxygen/error.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/error.txt:doc/doxygen/error.txt" ;;
17947     "doc/doxygen/tutorial.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/tutorial.txt:doc/doxygen/tutorial.txt" ;;
17948     "doc/doxygen/compiling.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/compiling.txt:doc/doxygen/compiling.txt" ;;
17949     "doc/doxygen/acknowledge.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/acknowledge.txt:doc/doxygen/acknowledge.txt" ;;
17950     "doc/doxygen/license.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/license.txt:doc/doxygen/license.txt" ;;
17951     "doc/doxygen/header.html") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/header.html:doc/doxygen/header.html" ;;
17952     "doc/doxygen/duplex.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/duplex.txt:doc/doxygen/duplex.txt" ;;
17953     "doc/doxygen/settings.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/settings.txt:doc/doxygen/settings.txt" ;;
17954     "doc/doxygen/probe.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/probe.txt:doc/doxygen/probe.txt" ;;
17955     "doc/doxygen/playback.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/playback.txt:doc/doxygen/playback.txt" ;;
17956     "doc/doxygen/multi.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/multi.txt:doc/doxygen/multi.txt" ;;
17957     "doc/doxygen/recording.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/recording.txt:doc/doxygen/recording.txt" ;;
17958     "doc/doxygen/apinotes.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/apinotes.txt:doc/doxygen/apinotes.txt" ;;
17959     "doc/images/mcgill.gif") CONFIG_LINKS="$CONFIG_LINKS doc/images/mcgill.gif:doc/images/mcgill.gif" ;;
17960     "doc/images/ccrma.gif") CONFIG_LINKS="$CONFIG_LINKS doc/images/ccrma.gif:doc/images/ccrma.gif" ;;
17961
17962   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17963   esac
17964 done
17965
17966
17967 # If the user did not use the arguments to specify the items to instantiate,
17968 # then the envvar interface is used.  Set only those that are not.
17969 # We use the long form for the default assignment because of an extremely
17970 # bizarre bug on SunOS 4.1.3.
17971 if $ac_need_defaults; then
17972   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17973   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17974   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17975 fi
17976
17977 # Have a temporary directory for convenience.  Make it in the build tree
17978 # simply because there is no reason against having it here, and in addition,
17979 # creating and moving files from /tmp can sometimes cause problems.
17980 # Hook for its removal unless debugging.
17981 # Note that there is a small window in which the directory will not be cleaned:
17982 # after its creation but before its name has been assigned to `$tmp'.
17983 $debug ||
17984 {
17985   tmp= ac_tmp=
17986   trap 'exit_status=$?
17987   : "${ac_tmp:=$tmp}"
17988   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17989 ' 0
17990   trap 'as_fn_exit 1' 1 2 13 15
17991 }
17992 # Create a (secure) tmp directory for tmp files.
17993
17994 {
17995   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17996   test -d "$tmp"
17997 }  ||
17998 {
17999   tmp=./conf$$-$RANDOM
18000   (umask 077 && mkdir "$tmp")
18001 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18002 ac_tmp=$tmp
18003
18004 # Set up the scripts for CONFIG_FILES section.
18005 # No need to generate them if there are no CONFIG_FILES.
18006 # This happens for instance with `./config.status config.h'.
18007 if test -n "$CONFIG_FILES"; then
18008
18009
18010 ac_cr=`echo X | tr X '\015'`
18011 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18012 # But we know of no other shell where ac_cr would be empty at this
18013 # point, so we can use a bashism as a fallback.
18014 if test "x$ac_cr" = x; then
18015   eval ac_cr=\$\'\\r\'
18016 fi
18017 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18018 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18019   ac_cs_awk_cr='\\r'
18020 else
18021   ac_cs_awk_cr=$ac_cr
18022 fi
18023
18024 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18025 _ACEOF
18026
18027
18028 {
18029   echo "cat >conf$$subs.awk <<_ACEOF" &&
18030   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18031   echo "_ACEOF"
18032 } >conf$$subs.sh ||
18033   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18034 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18035 ac_delim='%!_!# '
18036 for ac_last_try in false false false false false :; do
18037   . ./conf$$subs.sh ||
18038     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18039
18040   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18041   if test $ac_delim_n = $ac_delim_num; then
18042     break
18043   elif $ac_last_try; then
18044     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18045   else
18046     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18047   fi
18048 done
18049 rm -f conf$$subs.sh
18050
18051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18052 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18053 _ACEOF
18054 sed -n '
18055 h
18056 s/^/S["/; s/!.*/"]=/
18057 p
18058 g
18059 s/^[^!]*!//
18060 :repl
18061 t repl
18062 s/'"$ac_delim"'$//
18063 t delim
18064 :nl
18065 h
18066 s/\(.\{148\}\)..*/\1/
18067 t more1
18068 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18069 p
18070 n
18071 b repl
18072 :more1
18073 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18074 p
18075 g
18076 s/.\{148\}//
18077 t nl
18078 :delim
18079 h
18080 s/\(.\{148\}\)..*/\1/
18081 t more2
18082 s/["\\]/\\&/g; s/^/"/; s/$/"/
18083 p
18084 b
18085 :more2
18086 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18087 p
18088 g
18089 s/.\{148\}//
18090 t delim
18091 ' <conf$$subs.awk | sed '
18092 /^[^""]/{
18093   N
18094   s/\n//
18095 }
18096 ' >>$CONFIG_STATUS || ac_write_fail=1
18097 rm -f conf$$subs.awk
18098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18099 _ACAWK
18100 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18101   for (key in S) S_is_set[key] = 1
18102   FS = "\a"
18103
18104 }
18105 {
18106   line = $ 0
18107   nfields = split(line, field, "@")
18108   substed = 0
18109   len = length(field[1])
18110   for (i = 2; i < nfields; i++) {
18111     key = field[i]
18112     keylen = length(key)
18113     if (S_is_set[key]) {
18114       value = S[key]
18115       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18116       len += length(value) + length(field[++i])
18117       substed = 1
18118     } else
18119       len += 1 + keylen
18120   }
18121
18122   print line
18123 }
18124
18125 _ACAWK
18126 _ACEOF
18127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18128 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18129   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18130 else
18131   cat
18132 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18133   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18134 _ACEOF
18135
18136 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18137 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18138 # trailing colons and then remove the whole line if VPATH becomes empty
18139 # (actually we leave an empty line to preserve line numbers).
18140 if test "x$srcdir" = x.; then
18141   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18142 h
18143 s///
18144 s/^/:/
18145 s/[      ]*$/:/
18146 s/:\$(srcdir):/:/g
18147 s/:\${srcdir}:/:/g
18148 s/:@srcdir@:/:/g
18149 s/^:*//
18150 s/:*$//
18151 x
18152 s/\(=[   ]*\).*/\1/
18153 G
18154 s/\n//
18155 s/^[^=]*=[       ]*$//
18156 }'
18157 fi
18158
18159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18160 fi # test -n "$CONFIG_FILES"
18161
18162
18163 eval set X "  :F $CONFIG_FILES    :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
18164 shift
18165 for ac_tag
18166 do
18167   case $ac_tag in
18168   :[FHLC]) ac_mode=$ac_tag; continue;;
18169   esac
18170   case $ac_mode$ac_tag in
18171   :[FHL]*:*);;
18172   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18173   :[FH]-) ac_tag=-:-;;
18174   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18175   esac
18176   ac_save_IFS=$IFS
18177   IFS=:
18178   set x $ac_tag
18179   IFS=$ac_save_IFS
18180   shift
18181   ac_file=$1
18182   shift
18183
18184   case $ac_mode in
18185   :L) ac_source=$1;;
18186   :[FH])
18187     ac_file_inputs=
18188     for ac_f
18189     do
18190       case $ac_f in
18191       -) ac_f="$ac_tmp/stdin";;
18192       *) # Look for the file first in the build tree, then in the source tree
18193          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18194          # because $ac_f cannot contain `:'.
18195          test -f "$ac_f" ||
18196            case $ac_f in
18197            [\\/$]*) false;;
18198            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18199            esac ||
18200            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18201       esac
18202       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18203       as_fn_append ac_file_inputs " '$ac_f'"
18204     done
18205
18206     # Let's still pretend it is `configure' which instantiates (i.e., don't
18207     # use $as_me), people would be surprised to read:
18208     #    /* config.h.  Generated by config.status.  */
18209     configure_input='Generated from '`
18210           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18211         `' by configure.'
18212     if test x"$ac_file" != x-; then
18213       configure_input="$ac_file.  $configure_input"
18214       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18215 $as_echo "$as_me: creating $ac_file" >&6;}
18216     fi
18217     # Neutralize special characters interpreted by sed in replacement strings.
18218     case $configure_input in #(
18219     *\&* | *\|* | *\\* )
18220        ac_sed_conf_input=`$as_echo "$configure_input" |
18221        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18222     *) ac_sed_conf_input=$configure_input;;
18223     esac
18224
18225     case $ac_tag in
18226     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18227       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18228     esac
18229     ;;
18230   esac
18231
18232   ac_dir=`$as_dirname -- "$ac_file" ||
18233 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18234          X"$ac_file" : 'X\(//\)[^/]' \| \
18235          X"$ac_file" : 'X\(//\)$' \| \
18236          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18237 $as_echo X"$ac_file" |
18238     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18239             s//\1/
18240             q
18241           }
18242           /^X\(\/\/\)[^/].*/{
18243             s//\1/
18244             q
18245           }
18246           /^X\(\/\/\)$/{
18247             s//\1/
18248             q
18249           }
18250           /^X\(\/\).*/{
18251             s//\1/
18252             q
18253           }
18254           s/.*/./; q'`
18255   as_dir="$ac_dir"; as_fn_mkdir_p
18256   ac_builddir=.
18257
18258 case "$ac_dir" in
18259 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18260 *)
18261   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18262   # A ".." for each directory in $ac_dir_suffix.
18263   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18264   case $ac_top_builddir_sub in
18265   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18266   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18267   esac ;;
18268 esac
18269 ac_abs_top_builddir=$ac_pwd
18270 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18271 # for backward compatibility:
18272 ac_top_builddir=$ac_top_build_prefix
18273
18274 case $srcdir in
18275   .)  # We are building in place.
18276     ac_srcdir=.
18277     ac_top_srcdir=$ac_top_builddir_sub
18278     ac_abs_top_srcdir=$ac_pwd ;;
18279   [\\/]* | ?:[\\/]* )  # Absolute name.
18280     ac_srcdir=$srcdir$ac_dir_suffix;
18281     ac_top_srcdir=$srcdir
18282     ac_abs_top_srcdir=$srcdir ;;
18283   *) # Relative name.
18284     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18285     ac_top_srcdir=$ac_top_build_prefix$srcdir
18286     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18287 esac
18288 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18289
18290
18291   case $ac_mode in
18292   :F)
18293   #
18294   # CONFIG_FILE
18295   #
18296
18297   case $INSTALL in
18298   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18299   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18300   esac
18301   ac_MKDIR_P=$MKDIR_P
18302   case $MKDIR_P in
18303   [\\/$]* | ?:[\\/]* ) ;;
18304   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18305   esac
18306 _ACEOF
18307
18308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18309 # If the template does not know about datarootdir, expand it.
18310 # FIXME: This hack should be removed a few years after 2.60.
18311 ac_datarootdir_hack=; ac_datarootdir_seen=
18312 ac_sed_dataroot='
18313 /datarootdir/ {
18314   p
18315   q
18316 }
18317 /@datadir@/p
18318 /@docdir@/p
18319 /@infodir@/p
18320 /@localedir@/p
18321 /@mandir@/p'
18322 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18323 *datarootdir*) ac_datarootdir_seen=yes;;
18324 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18325   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18326 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18327 _ACEOF
18328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18329   ac_datarootdir_hack='
18330   s&@datadir@&$datadir&g
18331   s&@docdir@&$docdir&g
18332   s&@infodir@&$infodir&g
18333   s&@localedir@&$localedir&g
18334   s&@mandir@&$mandir&g
18335   s&\\\${datarootdir}&$datarootdir&g' ;;
18336 esac
18337 _ACEOF
18338
18339 # Neutralize VPATH when `$srcdir' = `.'.
18340 # Shell code in configure.ac might set extrasub.
18341 # FIXME: do we really want to maintain this feature?
18342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18343 ac_sed_extra="$ac_vpsub
18344 $extrasub
18345 _ACEOF
18346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18347 :t
18348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18349 s|@configure_input@|$ac_sed_conf_input|;t t
18350 s&@top_builddir@&$ac_top_builddir_sub&;t t
18351 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18352 s&@srcdir@&$ac_srcdir&;t t
18353 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18354 s&@top_srcdir@&$ac_top_srcdir&;t t
18355 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18356 s&@builddir@&$ac_builddir&;t t
18357 s&@abs_builddir@&$ac_abs_builddir&;t t
18358 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18359 s&@INSTALL@&$ac_INSTALL&;t t
18360 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18361 $ac_datarootdir_hack
18362 "
18363 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18364   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18365
18366 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18367   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18368   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18369       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18370   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18371 which seems to be undefined.  Please make sure it is defined" >&5
18372 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18373 which seems to be undefined.  Please make sure it is defined" >&2;}
18374
18375   rm -f "$ac_tmp/stdin"
18376   case $ac_file in
18377   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18378   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18379   esac \
18380   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18381  ;;
18382
18383   :L)
18384   #
18385   # CONFIG_LINK
18386   #
18387
18388   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18389     :
18390   else
18391     # Prefer the file from the source tree if names are identical.
18392     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18393       ac_source=$srcdir/$ac_source
18394     fi
18395
18396     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18397 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18398
18399     if test ! -r "$ac_source"; then
18400       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18401     fi
18402     rm -f "$ac_file"
18403
18404     # Try a relative symlink, then a hard link, then a copy.
18405     case $ac_source in
18406     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18407         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18408     esac
18409     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18410       ln "$ac_source" "$ac_file" 2>/dev/null ||
18411       cp -p "$ac_source" "$ac_file" ||
18412       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18413   fi
18414  ;;
18415   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18416 $as_echo "$as_me: executing $ac_file commands" >&6;}
18417  ;;
18418   esac
18419
18420
18421   case $ac_file$ac_mode in
18422     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18423   # Older Autoconf quotes --file arguments for eval, but not when files
18424   # are listed without --file.  Let's play safe and only enable the eval
18425   # if we detect the quoting.
18426   case $CONFIG_FILES in
18427   *\'*) eval set x "$CONFIG_FILES" ;;
18428   *)   set x $CONFIG_FILES ;;
18429   esac
18430   shift
18431   for mf
18432   do
18433     # Strip MF so we end up with the name of the file.
18434     mf=`echo "$mf" | sed -e 's/:.*$//'`
18435     # Check whether this is an Automake generated Makefile or not.
18436     # We used to match only the files named 'Makefile.in', but
18437     # some people rename them; so instead we look at the file content.
18438     # Grep'ing the first line is not enough: some people post-process
18439     # each Makefile.in and add a new line on top of each file to say so.
18440     # Grep'ing the whole file is not good either: AIX grep has a line
18441     # limit of 2048, but all sed's we know have understand at least 4000.
18442     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18443       dirpart=`$as_dirname -- "$mf" ||
18444 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18445          X"$mf" : 'X\(//\)[^/]' \| \
18446          X"$mf" : 'X\(//\)$' \| \
18447          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18448 $as_echo X"$mf" |
18449     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18450             s//\1/
18451             q
18452           }
18453           /^X\(\/\/\)[^/].*/{
18454             s//\1/
18455             q
18456           }
18457           /^X\(\/\/\)$/{
18458             s//\1/
18459             q
18460           }
18461           /^X\(\/\).*/{
18462             s//\1/
18463             q
18464           }
18465           s/.*/./; q'`
18466     else
18467       continue
18468     fi
18469     # Extract the definition of DEPDIR, am__include, and am__quote
18470     # from the Makefile without running 'make'.
18471     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18472     test -z "$DEPDIR" && continue
18473     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18474     test -z "$am__include" && continue
18475     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18476     # Find all dependency output files, they are included files with
18477     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18478     # simplest approach to changing $(DEPDIR) to its actual value in the
18479     # expansion.
18480     for file in `sed -n "
18481       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18482          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18483       # Make sure the directory exists.
18484       test -f "$dirpart/$file" && continue
18485       fdir=`$as_dirname -- "$file" ||
18486 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18487          X"$file" : 'X\(//\)[^/]' \| \
18488          X"$file" : 'X\(//\)$' \| \
18489          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18490 $as_echo X"$file" |
18491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18492             s//\1/
18493             q
18494           }
18495           /^X\(\/\/\)[^/].*/{
18496             s//\1/
18497             q
18498           }
18499           /^X\(\/\/\)$/{
18500             s//\1/
18501             q
18502           }
18503           /^X\(\/\).*/{
18504             s//\1/
18505             q
18506           }
18507           s/.*/./; q'`
18508       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18509       # echo "creating $dirpart/$file"
18510       echo '# dummy' > "$dirpart/$file"
18511     done
18512   done
18513 }
18514  ;;
18515     "libtool":C)
18516
18517     # See if we are running on zsh, and set the options which allow our
18518     # commands through without removal of \ escapes.
18519     if test -n "${ZSH_VERSION+set}" ; then
18520       setopt NO_GLOB_SUBST
18521     fi
18522
18523     cfgfile="${ofile}T"
18524     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18525     $RM "$cfgfile"
18526
18527     cat <<_LT_EOF >> "$cfgfile"
18528 #! $SHELL
18529
18530 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18531 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18532 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18533 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18534 #
18535 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18536 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18537 #                 Foundation, Inc.
18538 #   Written by Gordon Matzigkeit, 1996
18539 #
18540 #   This file is part of GNU Libtool.
18541 #
18542 # GNU Libtool is free software; you can redistribute it and/or
18543 # modify it under the terms of the GNU General Public License as
18544 # published by the Free Software Foundation; either version 2 of
18545 # the License, or (at your option) any later version.
18546 #
18547 # As a special exception to the GNU General Public License,
18548 # if you distribute this file as part of a program or library that
18549 # is built using GNU Libtool, you may include this file under the
18550 # same distribution terms that you use for the rest of that program.
18551 #
18552 # GNU Libtool is distributed in the hope that it will be useful,
18553 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18554 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18555 # GNU General Public License for more details.
18556 #
18557 # You should have received a copy of the GNU General Public License
18558 # along with GNU Libtool; see the file COPYING.  If not, a copy
18559 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18560 # obtained by writing to the Free Software Foundation, Inc.,
18561 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18562
18563
18564 # The names of the tagged configurations supported by this script.
18565 available_tags="CXX "
18566
18567 # ### BEGIN LIBTOOL CONFIG
18568
18569 # Which release of libtool.m4 was used?
18570 macro_version=$macro_version
18571 macro_revision=$macro_revision
18572
18573 # Assembler program.
18574 AS=$lt_AS
18575
18576 # DLL creation program.
18577 DLLTOOL=$lt_DLLTOOL
18578
18579 # Object dumper program.
18580 OBJDUMP=$lt_OBJDUMP
18581
18582 # Whether or not to build shared libraries.
18583 build_libtool_libs=$enable_shared
18584
18585 # Whether or not to build static libraries.
18586 build_old_libs=$enable_static
18587
18588 # What type of objects to build.
18589 pic_mode=$pic_mode
18590
18591 # Whether or not to optimize for fast installation.
18592 fast_install=$enable_fast_install
18593
18594 # Shell to use when invoking shell scripts.
18595 SHELL=$lt_SHELL
18596
18597 # An echo program that protects backslashes.
18598 ECHO=$lt_ECHO
18599
18600 # The PATH separator for the build system.
18601 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18602
18603 # The host system.
18604 host_alias=$host_alias
18605 host=$host
18606 host_os=$host_os
18607
18608 # The build system.
18609 build_alias=$build_alias
18610 build=$build
18611 build_os=$build_os
18612
18613 # A sed program that does not truncate output.
18614 SED=$lt_SED
18615
18616 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18617 Xsed="\$SED -e 1s/^X//"
18618
18619 # A grep program that handles long lines.
18620 GREP=$lt_GREP
18621
18622 # An ERE matcher.
18623 EGREP=$lt_EGREP
18624
18625 # A literal string matcher.
18626 FGREP=$lt_FGREP
18627
18628 # A BSD- or MS-compatible name lister.
18629 NM=$lt_NM
18630
18631 # Whether we need soft or hard links.
18632 LN_S=$lt_LN_S
18633
18634 # What is the maximum length of a command?
18635 max_cmd_len=$max_cmd_len
18636
18637 # Object file suffix (normally "o").
18638 objext=$ac_objext
18639
18640 # Executable file suffix (normally "").
18641 exeext=$exeext
18642
18643 # whether the shell understands "unset".
18644 lt_unset=$lt_unset
18645
18646 # turn spaces into newlines.
18647 SP2NL=$lt_lt_SP2NL
18648
18649 # turn newlines into spaces.
18650 NL2SP=$lt_lt_NL2SP
18651
18652 # convert \$build file names to \$host format.
18653 to_host_file_cmd=$lt_cv_to_host_file_cmd
18654
18655 # convert \$build files to toolchain format.
18656 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18657
18658 # Method to check whether dependent libraries are shared objects.
18659 deplibs_check_method=$lt_deplibs_check_method
18660
18661 # Command to use when deplibs_check_method = "file_magic".
18662 file_magic_cmd=$lt_file_magic_cmd
18663
18664 # How to find potential files when deplibs_check_method = "file_magic".
18665 file_magic_glob=$lt_file_magic_glob
18666
18667 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18668 want_nocaseglob=$lt_want_nocaseglob
18669
18670 # Command to associate shared and link libraries.
18671 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18672
18673 # The archiver.
18674 AR=$lt_AR
18675
18676 # Flags to create an archive.
18677 AR_FLAGS=$lt_AR_FLAGS
18678
18679 # How to feed a file listing to the archiver.
18680 archiver_list_spec=$lt_archiver_list_spec
18681
18682 # A symbol stripping program.
18683 STRIP=$lt_STRIP
18684
18685 # Commands used to install an old-style archive.
18686 RANLIB=$lt_RANLIB
18687 old_postinstall_cmds=$lt_old_postinstall_cmds
18688 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18689
18690 # Whether to use a lock for old archive extraction.
18691 lock_old_archive_extraction=$lock_old_archive_extraction
18692
18693 # A C compiler.
18694 LTCC=$lt_CC
18695
18696 # LTCC compiler flags.
18697 LTCFLAGS=$lt_CFLAGS
18698
18699 # Take the output of nm and produce a listing of raw symbols and C names.
18700 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18701
18702 # Transform the output of nm in a proper C declaration.
18703 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18704
18705 # Transform the output of nm in a C name address pair.
18706 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18707
18708 # Transform the output of nm in a C name address pair when lib prefix is needed.
18709 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18710
18711 # Specify filename containing input files for \$NM.
18712 nm_file_list_spec=$lt_nm_file_list_spec
18713
18714 # The root where to search for dependent libraries,and in which our libraries should be installed.
18715 lt_sysroot=$lt_sysroot
18716
18717 # The name of the directory that contains temporary libtool files.
18718 objdir=$objdir
18719
18720 # Used to examine libraries when file_magic_cmd begins with "file".
18721 MAGIC_CMD=$MAGIC_CMD
18722
18723 # Must we lock files when doing compilation?
18724 need_locks=$lt_need_locks
18725
18726 # Manifest tool.
18727 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18728
18729 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18730 DSYMUTIL=$lt_DSYMUTIL
18731
18732 # Tool to change global to local symbols on Mac OS X.
18733 NMEDIT=$lt_NMEDIT
18734
18735 # Tool to manipulate fat objects and archives on Mac OS X.
18736 LIPO=$lt_LIPO
18737
18738 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18739 OTOOL=$lt_OTOOL
18740
18741 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18742 OTOOL64=$lt_OTOOL64
18743
18744 # Old archive suffix (normally "a").
18745 libext=$libext
18746
18747 # Shared library suffix (normally ".so").
18748 shrext_cmds=$lt_shrext_cmds
18749
18750 # The commands to extract the exported symbol list from a shared archive.
18751 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18752
18753 # Variables whose values should be saved in libtool wrapper scripts and
18754 # restored at link time.
18755 variables_saved_for_relink=$lt_variables_saved_for_relink
18756
18757 # Do we need the "lib" prefix for modules?
18758 need_lib_prefix=$need_lib_prefix
18759
18760 # Do we need a version for libraries?
18761 need_version=$need_version
18762
18763 # Library versioning type.
18764 version_type=$version_type
18765
18766 # Shared library runtime path variable.
18767 runpath_var=$runpath_var
18768
18769 # Shared library path variable.
18770 shlibpath_var=$shlibpath_var
18771
18772 # Is shlibpath searched before the hard-coded library search path?
18773 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18774
18775 # Format of library name prefix.
18776 libname_spec=$lt_libname_spec
18777
18778 # List of archive names.  First name is the real one, the rest are links.
18779 # The last name is the one that the linker finds with -lNAME
18780 library_names_spec=$lt_library_names_spec
18781
18782 # The coded name of the library, if different from the real name.
18783 soname_spec=$lt_soname_spec
18784
18785 # Permission mode override for installation of shared libraries.
18786 install_override_mode=$lt_install_override_mode
18787
18788 # Command to use after installation of a shared archive.
18789 postinstall_cmds=$lt_postinstall_cmds
18790
18791 # Command to use after uninstallation of a shared archive.
18792 postuninstall_cmds=$lt_postuninstall_cmds
18793
18794 # Commands used to finish a libtool library installation in a directory.
18795 finish_cmds=$lt_finish_cmds
18796
18797 # As "finish_cmds", except a single script fragment to be evaled but
18798 # not shown.
18799 finish_eval=$lt_finish_eval
18800
18801 # Whether we should hardcode library paths into libraries.
18802 hardcode_into_libs=$hardcode_into_libs
18803
18804 # Compile-time system search path for libraries.
18805 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18806
18807 # Run-time system search path for libraries.
18808 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18809
18810 # Whether dlopen is supported.
18811 dlopen_support=$enable_dlopen
18812
18813 # Whether dlopen of programs is supported.
18814 dlopen_self=$enable_dlopen_self
18815
18816 # Whether dlopen of statically linked programs is supported.
18817 dlopen_self_static=$enable_dlopen_self_static
18818
18819 # Commands to strip libraries.
18820 old_striplib=$lt_old_striplib
18821 striplib=$lt_striplib
18822
18823
18824 # The linker used to build libraries.
18825 LD=$lt_LD
18826
18827 # How to create reloadable object files.
18828 reload_flag=$lt_reload_flag
18829 reload_cmds=$lt_reload_cmds
18830
18831 # Commands used to build an old-style archive.
18832 old_archive_cmds=$lt_old_archive_cmds
18833
18834 # A language specific compiler.
18835 CC=$lt_compiler
18836
18837 # Is the compiler the GNU compiler?
18838 with_gcc=$GCC
18839
18840 # Compiler flag to turn off builtin functions.
18841 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18842
18843 # Additional compiler flags for building library objects.
18844 pic_flag=$lt_lt_prog_compiler_pic
18845
18846 # How to pass a linker flag through the compiler.
18847 wl=$lt_lt_prog_compiler_wl
18848
18849 # Compiler flag to prevent dynamic linking.
18850 link_static_flag=$lt_lt_prog_compiler_static
18851
18852 # Does compiler simultaneously support -c and -o options?
18853 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18854
18855 # Whether or not to add -lc for building shared libraries.
18856 build_libtool_need_lc=$archive_cmds_need_lc
18857
18858 # Whether or not to disallow shared libs when runtime libs are static.
18859 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18860
18861 # Compiler flag to allow reflexive dlopens.
18862 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18863
18864 # Compiler flag to generate shared objects directly from archives.
18865 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18866
18867 # Whether the compiler copes with passing no objects directly.
18868 compiler_needs_object=$lt_compiler_needs_object
18869
18870 # Create an old-style archive from a shared archive.
18871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18872
18873 # Create a temporary old-style archive to link instead of a shared archive.
18874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18875
18876 # Commands used to build a shared archive.
18877 archive_cmds=$lt_archive_cmds
18878 archive_expsym_cmds=$lt_archive_expsym_cmds
18879
18880 # Commands used to build a loadable module if different from building
18881 # a shared archive.
18882 module_cmds=$lt_module_cmds
18883 module_expsym_cmds=$lt_module_expsym_cmds
18884
18885 # Whether we are building with GNU ld or not.
18886 with_gnu_ld=$lt_with_gnu_ld
18887
18888 # Flag that allows shared libraries with undefined symbols to be built.
18889 allow_undefined_flag=$lt_allow_undefined_flag
18890
18891 # Flag that enforces no undefined symbols.
18892 no_undefined_flag=$lt_no_undefined_flag
18893
18894 # Flag to hardcode \$libdir into a binary during linking.
18895 # This must work even if \$libdir does not exist
18896 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18897
18898 # Whether we need a single "-rpath" flag with a separated argument.
18899 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18900
18901 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18902 # DIR into the resulting binary.
18903 hardcode_direct=$hardcode_direct
18904
18905 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18906 # DIR into the resulting binary and the resulting library dependency is
18907 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18908 # library is relocated.
18909 hardcode_direct_absolute=$hardcode_direct_absolute
18910
18911 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18912 # into the resulting binary.
18913 hardcode_minus_L=$hardcode_minus_L
18914
18915 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18916 # into the resulting binary.
18917 hardcode_shlibpath_var=$hardcode_shlibpath_var
18918
18919 # Set to "yes" if building a shared library automatically hardcodes DIR
18920 # into the library and all subsequent libraries and executables linked
18921 # against it.
18922 hardcode_automatic=$hardcode_automatic
18923
18924 # Set to yes if linker adds runtime paths of dependent libraries
18925 # to runtime path list.
18926 inherit_rpath=$inherit_rpath
18927
18928 # Whether libtool must link a program against all its dependency libraries.
18929 link_all_deplibs=$link_all_deplibs
18930
18931 # Set to "yes" if exported symbols are required.
18932 always_export_symbols=$always_export_symbols
18933
18934 # The commands to list exported symbols.
18935 export_symbols_cmds=$lt_export_symbols_cmds
18936
18937 # Symbols that should not be listed in the preloaded symbols.
18938 exclude_expsyms=$lt_exclude_expsyms
18939
18940 # Symbols that must always be exported.
18941 include_expsyms=$lt_include_expsyms
18942
18943 # Commands necessary for linking programs (against libraries) with templates.
18944 prelink_cmds=$lt_prelink_cmds
18945
18946 # Commands necessary for finishing linking programs.
18947 postlink_cmds=$lt_postlink_cmds
18948
18949 # Specify filename containing input files.
18950 file_list_spec=$lt_file_list_spec
18951
18952 # How to hardcode a shared library path into an executable.
18953 hardcode_action=$hardcode_action
18954
18955 # The directories searched by this compiler when creating a shared library.
18956 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18957
18958 # Dependencies to place before and after the objects being linked to
18959 # create a shared library.
18960 predep_objects=$lt_predep_objects
18961 postdep_objects=$lt_postdep_objects
18962 predeps=$lt_predeps
18963 postdeps=$lt_postdeps
18964
18965 # The library search path used internally by the compiler when linking
18966 # a shared library.
18967 compiler_lib_search_path=$lt_compiler_lib_search_path
18968
18969 # ### END LIBTOOL CONFIG
18970
18971 _LT_EOF
18972
18973   case $host_os in
18974   aix3*)
18975     cat <<\_LT_EOF >> "$cfgfile"
18976 # AIX sometimes has problems with the GCC collect2 program.  For some
18977 # reason, if we set the COLLECT_NAMES environment variable, the problems
18978 # vanish in a puff of smoke.
18979 if test "X${COLLECT_NAMES+set}" != Xset; then
18980   COLLECT_NAMES=
18981   export COLLECT_NAMES
18982 fi
18983 _LT_EOF
18984     ;;
18985   esac
18986
18987
18988 ltmain="$ac_aux_dir/ltmain.sh"
18989
18990
18991   # We use sed instead of cat because bash on DJGPP gets confused if
18992   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18993   # text mode, it properly converts lines to CR/LF.  This bash problem
18994   # is reportedly fixed, but why not run on old versions too?
18995   sed '$q' "$ltmain" >> "$cfgfile" \
18996      || (rm -f "$cfgfile"; exit 1)
18997
18998   if test x"$xsi_shell" = xyes; then
18999   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19000 func_dirname ()\
19001 {\
19002 \    case ${1} in\
19003 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19004 \      *  ) func_dirname_result="${3}" ;;\
19005 \    esac\
19006 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19007   && mv -f "$cfgfile.tmp" "$cfgfile" \
19008     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19009 test 0 -eq $? || _lt_function_replace_fail=:
19010
19011
19012   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19013 func_basename ()\
19014 {\
19015 \    func_basename_result="${1##*/}"\
19016 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19017   && mv -f "$cfgfile.tmp" "$cfgfile" \
19018     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19019 test 0 -eq $? || _lt_function_replace_fail=:
19020
19021
19022   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19023 func_dirname_and_basename ()\
19024 {\
19025 \    case ${1} in\
19026 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19027 \      *  ) func_dirname_result="${3}" ;;\
19028 \    esac\
19029 \    func_basename_result="${1##*/}"\
19030 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19031   && mv -f "$cfgfile.tmp" "$cfgfile" \
19032     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19033 test 0 -eq $? || _lt_function_replace_fail=:
19034
19035
19036   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19037 func_stripname ()\
19038 {\
19039 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19040 \    # positional parameters, so assign one to ordinary parameter first.\
19041 \    func_stripname_result=${3}\
19042 \    func_stripname_result=${func_stripname_result#"${1}"}\
19043 \    func_stripname_result=${func_stripname_result%"${2}"}\
19044 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19045   && mv -f "$cfgfile.tmp" "$cfgfile" \
19046     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19047 test 0 -eq $? || _lt_function_replace_fail=:
19048
19049
19050   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19051 func_split_long_opt ()\
19052 {\
19053 \    func_split_long_opt_name=${1%%=*}\
19054 \    func_split_long_opt_arg=${1#*=}\
19055 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19056   && mv -f "$cfgfile.tmp" "$cfgfile" \
19057     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19058 test 0 -eq $? || _lt_function_replace_fail=:
19059
19060
19061   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19062 func_split_short_opt ()\
19063 {\
19064 \    func_split_short_opt_arg=${1#??}\
19065 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19066 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19067   && mv -f "$cfgfile.tmp" "$cfgfile" \
19068     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19069 test 0 -eq $? || _lt_function_replace_fail=:
19070
19071
19072   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19073 func_lo2o ()\
19074 {\
19075 \    case ${1} in\
19076 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19077 \      *)    func_lo2o_result=${1} ;;\
19078 \    esac\
19079 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19080   && mv -f "$cfgfile.tmp" "$cfgfile" \
19081     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19082 test 0 -eq $? || _lt_function_replace_fail=:
19083
19084
19085   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19086 func_xform ()\
19087 {\
19088     func_xform_result=${1%.*}.lo\
19089 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19090   && mv -f "$cfgfile.tmp" "$cfgfile" \
19091     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19092 test 0 -eq $? || _lt_function_replace_fail=:
19093
19094
19095   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19096 func_arith ()\
19097 {\
19098     func_arith_result=$(( $* ))\
19099 } # Extended-shell func_arith 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_len ()$/,/^} # func_len /c\
19106 func_len ()\
19107 {\
19108     func_len_result=${#1}\
19109 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19110   && mv -f "$cfgfile.tmp" "$cfgfile" \
19111     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19112 test 0 -eq $? || _lt_function_replace_fail=:
19113
19114 fi
19115
19116 if test x"$lt_shell_append" = xyes; then
19117   sed -e '/^func_append ()$/,/^} # func_append /c\
19118 func_append ()\
19119 {\
19120     eval "${1}+=\\${2}"\
19121 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19122   && mv -f "$cfgfile.tmp" "$cfgfile" \
19123     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19124 test 0 -eq $? || _lt_function_replace_fail=:
19125
19126
19127   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19128 func_append_quoted ()\
19129 {\
19130 \    func_quote_for_eval "${2}"\
19131 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19132 } # Extended-shell func_append_quoted 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   # Save a `func_append' function call where possible by direct use of '+='
19139   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19140     && mv -f "$cfgfile.tmp" "$cfgfile" \
19141       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19142   test 0 -eq $? || _lt_function_replace_fail=:
19143 else
19144   # Save a `func_append' function call even when '+=' is not available
19145   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19146     && mv -f "$cfgfile.tmp" "$cfgfile" \
19147       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19148   test 0 -eq $? || _lt_function_replace_fail=:
19149 fi
19150
19151 if test x"$_lt_function_replace_fail" = x":"; then
19152   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19153 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19154 fi
19155
19156
19157    mv -f "$cfgfile" "$ofile" ||
19158     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19159   chmod +x "$ofile"
19160
19161
19162     cat <<_LT_EOF >> "$ofile"
19163
19164 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19165
19166 # The linker used to build libraries.
19167 LD=$lt_LD_CXX
19168
19169 # How to create reloadable object files.
19170 reload_flag=$lt_reload_flag_CXX
19171 reload_cmds=$lt_reload_cmds_CXX
19172
19173 # Commands used to build an old-style archive.
19174 old_archive_cmds=$lt_old_archive_cmds_CXX
19175
19176 # A language specific compiler.
19177 CC=$lt_compiler_CXX
19178
19179 # Is the compiler the GNU compiler?
19180 with_gcc=$GCC_CXX
19181
19182 # Compiler flag to turn off builtin functions.
19183 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19184
19185 # Additional compiler flags for building library objects.
19186 pic_flag=$lt_lt_prog_compiler_pic_CXX
19187
19188 # How to pass a linker flag through the compiler.
19189 wl=$lt_lt_prog_compiler_wl_CXX
19190
19191 # Compiler flag to prevent dynamic linking.
19192 link_static_flag=$lt_lt_prog_compiler_static_CXX
19193
19194 # Does compiler simultaneously support -c and -o options?
19195 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19196
19197 # Whether or not to add -lc for building shared libraries.
19198 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19199
19200 # Whether or not to disallow shared libs when runtime libs are static.
19201 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19202
19203 # Compiler flag to allow reflexive dlopens.
19204 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19205
19206 # Compiler flag to generate shared objects directly from archives.
19207 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19208
19209 # Whether the compiler copes with passing no objects directly.
19210 compiler_needs_object=$lt_compiler_needs_object_CXX
19211
19212 # Create an old-style archive from a shared archive.
19213 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19214
19215 # Create a temporary old-style archive to link instead of a shared archive.
19216 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19217
19218 # Commands used to build a shared archive.
19219 archive_cmds=$lt_archive_cmds_CXX
19220 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19221
19222 # Commands used to build a loadable module if different from building
19223 # a shared archive.
19224 module_cmds=$lt_module_cmds_CXX
19225 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19226
19227 # Whether we are building with GNU ld or not.
19228 with_gnu_ld=$lt_with_gnu_ld_CXX
19229
19230 # Flag that allows shared libraries with undefined symbols to be built.
19231 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19232
19233 # Flag that enforces no undefined symbols.
19234 no_undefined_flag=$lt_no_undefined_flag_CXX
19235
19236 # Flag to hardcode \$libdir into a binary during linking.
19237 # This must work even if \$libdir does not exist
19238 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19239
19240 # Whether we need a single "-rpath" flag with a separated argument.
19241 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19242
19243 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19244 # DIR into the resulting binary.
19245 hardcode_direct=$hardcode_direct_CXX
19246
19247 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19248 # DIR into the resulting binary and the resulting library dependency is
19249 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19250 # library is relocated.
19251 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19252
19253 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19254 # into the resulting binary.
19255 hardcode_minus_L=$hardcode_minus_L_CXX
19256
19257 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19258 # into the resulting binary.
19259 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19260
19261 # Set to "yes" if building a shared library automatically hardcodes DIR
19262 # into the library and all subsequent libraries and executables linked
19263 # against it.
19264 hardcode_automatic=$hardcode_automatic_CXX
19265
19266 # Set to yes if linker adds runtime paths of dependent libraries
19267 # to runtime path list.
19268 inherit_rpath=$inherit_rpath_CXX
19269
19270 # Whether libtool must link a program against all its dependency libraries.
19271 link_all_deplibs=$link_all_deplibs_CXX
19272
19273 # Set to "yes" if exported symbols are required.
19274 always_export_symbols=$always_export_symbols_CXX
19275
19276 # The commands to list exported symbols.
19277 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19278
19279 # Symbols that should not be listed in the preloaded symbols.
19280 exclude_expsyms=$lt_exclude_expsyms_CXX
19281
19282 # Symbols that must always be exported.
19283 include_expsyms=$lt_include_expsyms_CXX
19284
19285 # Commands necessary for linking programs (against libraries) with templates.
19286 prelink_cmds=$lt_prelink_cmds_CXX
19287
19288 # Commands necessary for finishing linking programs.
19289 postlink_cmds=$lt_postlink_cmds_CXX
19290
19291 # Specify filename containing input files.
19292 file_list_spec=$lt_file_list_spec_CXX
19293
19294 # How to hardcode a shared library path into an executable.
19295 hardcode_action=$hardcode_action_CXX
19296
19297 # The directories searched by this compiler when creating a shared library.
19298 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19299
19300 # Dependencies to place before and after the objects being linked to
19301 # create a shared library.
19302 predep_objects=$lt_predep_objects_CXX
19303 postdep_objects=$lt_postdep_objects_CXX
19304 predeps=$lt_predeps_CXX
19305 postdeps=$lt_postdeps_CXX
19306
19307 # The library search path used internally by the compiler when linking
19308 # a shared library.
19309 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19310
19311 # ### END LIBTOOL TAG CONFIG: CXX
19312 _LT_EOF
19313
19314  ;;
19315
19316   esac
19317 done # for ac_tag
19318
19319
19320 as_fn_exit 0
19321 _ACEOF
19322 ac_clean_files=$ac_clean_files_save
19323
19324 test $ac_write_fail = 0 ||
19325   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19326
19327
19328 # configure is writing to config.log, and then calls config.status.
19329 # config.status does its own redirection, appending to config.log.
19330 # Unfortunately, on DOS this fails, as config.log is still kept open
19331 # by configure, so config.status won't be able to write to it; its
19332 # output is simply discarded.  So we exec the FD to /dev/null,
19333 # effectively closing config.log, so it can be properly (re)opened and
19334 # appended to by config.status.  When coming back to configure, we
19335 # need to make the FD available again.
19336 if test "$no_create" != yes; then
19337   ac_cs_success=:
19338   ac_config_status_args=
19339   test "$silent" = yes &&
19340     ac_config_status_args="$ac_config_status_args --quiet"
19341   exec 5>/dev/null
19342   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19343   exec 5>>config.log
19344   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19345   # would make configure fail if this is the last instruction.
19346   $ac_cs_success || as_fn_exit 1
19347 fi
19348 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19349   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19350 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19351 fi
19352
19353
19354 chmod oug+x rtaudio-config