Change license name in spec file (BSD-3-Clause to BSD-2.0)
[platform/upstream/libogg.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libogg 1.3.2.
4 #
5 # Report bugs to <ogg-dev@xiph.org>.
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 ogg-dev@xiph.org
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: 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='libogg'
592 PACKAGE_TARNAME='libogg'
593 PACKAGE_VERSION='1.3.2'
594 PACKAGE_STRING='libogg 1.3.2'
595 PACKAGE_BUGREPORT='ogg-dev@xiph.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/framing.c"
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 PROFILE
639 DEBUG
640 OPT
641 SIZE64
642 USIZE32
643 SIZE32
644 USIZE16
645 SIZE16
646 INCLUDE_SYS_TYPES_H
647 INCLUDE_STDINT_H
648 INCLUDE_INTTYPES_H
649 LIBTOOL_DEPS
650 LIBOBJS
651 CPP
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 MANIFEST_TOOL
658 RANLIB
659 ac_ct_AR
660 AR
661 DLLTOOL
662 OBJDUMP
663 LN_S
664 NM
665 ac_ct_DUMPBIN
666 DUMPBIN
667 LD
668 FGREP
669 EGREP
670 GREP
671 SED
672 host_os
673 host_vendor
674 host_cpu
675 host
676 build_os
677 build_vendor
678 build_cpu
679 build
680 LIBTOOL
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 CCDEPMODE
684 am__nodep
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 am__quote
689 am__include
690 DEPDIR
691 OBJEXT
692 EXEEXT
693 ac_ct_CC
694 CPPFLAGS
695 LDFLAGS
696 CFLAGS
697 CC
698 LIB_AGE
699 LIB_REVISION
700 LIB_CURRENT
701 MAINT
702 MAINTAINER_MODE_FALSE
703 MAINTAINER_MODE_TRUE
704 AM_BACKSLASH
705 AM_DEFAULT_VERBOSITY
706 AM_DEFAULT_V
707 AM_V
708 am__untar
709 am__tar
710 AMTAR
711 am__leading_dot
712 SET_MAKE
713 AWK
714 mkdir_p
715 MKDIR_P
716 INSTALL_STRIP_PROGRAM
717 STRIP
718 install_sh
719 MAKEINFO
720 AUTOHEADER
721 AUTOMAKE
722 AUTOCONF
723 ACLOCAL
724 VERSION
725 PACKAGE
726 CYGPATH_W
727 am__isrc
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL'
769 ac_subst_files=''
770 ac_user_opts='
771 enable_option_checking
772 enable_silent_rules
773 enable_maintainer_mode
774 enable_dependency_tracking
775 enable_shared
776 enable_static
777 with_pic
778 enable_fast_install
779 with_gnu_ld
780 with_sysroot
781 enable_libtool_lock
782 '
783       ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 CPP'
792
793
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 ac_unrecognized_opts=
798 ac_unrecognized_sep=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
801 cache_file=/dev/null
802 exec_prefix=NONE
803 no_create=
804 no_recursion=
805 prefix=NONE
806 program_prefix=NONE
807 program_suffix=NONE
808 program_transform_name=s,x,x,
809 silent=
810 site=
811 srcdir=
812 verbose=
813 x_includes=NONE
814 x_libraries=NONE
815
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 includedir='${prefix}/include'
831 oldincludedir='/usr/include'
832 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
833 infodir='${datarootdir}/info'
834 htmldir='${docdir}'
835 dvidir='${docdir}'
836 pdfdir='${docdir}'
837 psdir='${docdir}'
838 libdir='${exec_prefix}/lib'
839 localedir='${datarootdir}/locale'
840 mandir='${datarootdir}/man'
841
842 ac_prev=
843 ac_dashdash=
844 for ac_option
845 do
846   # If the previous option needs an argument, assign it.
847   if test -n "$ac_prev"; then
848     eval $ac_prev=\$ac_option
849     ac_prev=
850     continue
851   fi
852
853   case $ac_option in
854   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855   *=)   ac_optarg= ;;
856   *)    ac_optarg=yes ;;
857   esac
858
859   # Accept the important Cygnus configure options, so we can diagnose typos.
860
861   case $ac_dashdash$ac_option in
862   --)
863     ac_dashdash=yes ;;
864
865   -bindir | --bindir | --bindi | --bind | --bin | --bi)
866     ac_prev=bindir ;;
867   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868     bindir=$ac_optarg ;;
869
870   -build | --build | --buil | --bui | --bu)
871     ac_prev=build_alias ;;
872   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873     build_alias=$ac_optarg ;;
874
875   -cache-file | --cache-file | --cache-fil | --cache-fi \
876   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877     ac_prev=cache_file ;;
878   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880     cache_file=$ac_optarg ;;
881
882   --config-cache | -C)
883     cache_file=config.cache ;;
884
885   -datadir | --datadir | --datadi | --datad)
886     ac_prev=datadir ;;
887   -datadir=* | --datadir=* | --datadi=* | --datad=*)
888     datadir=$ac_optarg ;;
889
890   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891   | --dataroo | --dataro | --datar)
892     ac_prev=datarootdir ;;
893   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895     datarootdir=$ac_optarg ;;
896
897   -disable-* | --disable-*)
898     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899     # Reject names that are not valid shell variable names.
900     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901       as_fn_error $? "invalid feature name: $ac_useropt"
902     ac_useropt_orig=$ac_useropt
903     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904     case $ac_user_opts in
905       *"
906 "enable_$ac_useropt"
907 "*) ;;
908       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
909          ac_unrecognized_sep=', ';;
910     esac
911     eval enable_$ac_useropt=no ;;
912
913   -docdir | --docdir | --docdi | --doc | --do)
914     ac_prev=docdir ;;
915   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916     docdir=$ac_optarg ;;
917
918   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919     ac_prev=dvidir ;;
920   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921     dvidir=$ac_optarg ;;
922
923   -enable-* | --enable-*)
924     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927       as_fn_error $? "invalid feature name: $ac_useropt"
928     ac_useropt_orig=$ac_useropt
929     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930     case $ac_user_opts in
931       *"
932 "enable_$ac_useropt"
933 "*) ;;
934       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
935          ac_unrecognized_sep=', ';;
936     esac
937     eval enable_$ac_useropt=\$ac_optarg ;;
938
939   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941   | --exec | --exe | --ex)
942     ac_prev=exec_prefix ;;
943   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945   | --exec=* | --exe=* | --ex=*)
946     exec_prefix=$ac_optarg ;;
947
948   -gas | --gas | --ga | --g)
949     # Obsolete; use --with-gas.
950     with_gas=yes ;;
951
952   -help | --help | --hel | --he | -h)
953     ac_init_help=long ;;
954   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955     ac_init_help=recursive ;;
956   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957     ac_init_help=short ;;
958
959   -host | --host | --hos | --ho)
960     ac_prev=host_alias ;;
961   -host=* | --host=* | --hos=* | --ho=*)
962     host_alias=$ac_optarg ;;
963
964   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965     ac_prev=htmldir ;;
966   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967   | --ht=*)
968     htmldir=$ac_optarg ;;
969
970   -includedir | --includedir | --includedi | --included | --include \
971   | --includ | --inclu | --incl | --inc)
972     ac_prev=includedir ;;
973   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974   | --includ=* | --inclu=* | --incl=* | --inc=*)
975     includedir=$ac_optarg ;;
976
977   -infodir | --infodir | --infodi | --infod | --info | --inf)
978     ac_prev=infodir ;;
979   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980     infodir=$ac_optarg ;;
981
982   -libdir | --libdir | --libdi | --libd)
983     ac_prev=libdir ;;
984   -libdir=* | --libdir=* | --libdi=* | --libd=*)
985     libdir=$ac_optarg ;;
986
987   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988   | --libexe | --libex | --libe)
989     ac_prev=libexecdir ;;
990   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991   | --libexe=* | --libex=* | --libe=*)
992     libexecdir=$ac_optarg ;;
993
994   -localedir | --localedir | --localedi | --localed | --locale)
995     ac_prev=localedir ;;
996   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997     localedir=$ac_optarg ;;
998
999   -localstatedir | --localstatedir | --localstatedi | --localstated \
1000   | --localstate | --localstat | --localsta | --localst | --locals)
1001     ac_prev=localstatedir ;;
1002   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004     localstatedir=$ac_optarg ;;
1005
1006   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007     ac_prev=mandir ;;
1008   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009     mandir=$ac_optarg ;;
1010
1011   -nfp | --nfp | --nf)
1012     # Obsolete; use --without-fp.
1013     with_fp=no ;;
1014
1015   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016   | --no-cr | --no-c | -n)
1017     no_create=yes ;;
1018
1019   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021     no_recursion=yes ;;
1022
1023   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025   | --oldin | --oldi | --old | --ol | --o)
1026     ac_prev=oldincludedir ;;
1027   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030     oldincludedir=$ac_optarg ;;
1031
1032   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033     ac_prev=prefix ;;
1034   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035     prefix=$ac_optarg ;;
1036
1037   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038   | --program-pre | --program-pr | --program-p)
1039     ac_prev=program_prefix ;;
1040   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042     program_prefix=$ac_optarg ;;
1043
1044   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045   | --program-suf | --program-su | --program-s)
1046     ac_prev=program_suffix ;;
1047   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049     program_suffix=$ac_optarg ;;
1050
1051   -program-transform-name | --program-transform-name \
1052   | --program-transform-nam | --program-transform-na \
1053   | --program-transform-n | --program-transform- \
1054   | --program-transform | --program-transfor \
1055   | --program-transfo | --program-transf \
1056   | --program-trans | --program-tran \
1057   | --progr-tra | --program-tr | --program-t)
1058     ac_prev=program_transform_name ;;
1059   -program-transform-name=* | --program-transform-name=* \
1060   | --program-transform-nam=* | --program-transform-na=* \
1061   | --program-transform-n=* | --program-transform-=* \
1062   | --program-transform=* | --program-transfor=* \
1063   | --program-transfo=* | --program-transf=* \
1064   | --program-trans=* | --program-tran=* \
1065   | --progr-tra=* | --program-tr=* | --program-t=*)
1066     program_transform_name=$ac_optarg ;;
1067
1068   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069     ac_prev=pdfdir ;;
1070   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071     pdfdir=$ac_optarg ;;
1072
1073   -psdir | --psdir | --psdi | --psd | --ps)
1074     ac_prev=psdir ;;
1075   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076     psdir=$ac_optarg ;;
1077
1078   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079   | -silent | --silent | --silen | --sile | --sil)
1080     silent=yes ;;
1081
1082   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083     ac_prev=sbindir ;;
1084   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085   | --sbi=* | --sb=*)
1086     sbindir=$ac_optarg ;;
1087
1088   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090   | --sharedst | --shareds | --shared | --share | --shar \
1091   | --sha | --sh)
1092     ac_prev=sharedstatedir ;;
1093   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096   | --sha=* | --sh=*)
1097     sharedstatedir=$ac_optarg ;;
1098
1099   -site | --site | --sit)
1100     ac_prev=site ;;
1101   -site=* | --site=* | --sit=*)
1102     site=$ac_optarg ;;
1103
1104   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105     ac_prev=srcdir ;;
1106   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107     srcdir=$ac_optarg ;;
1108
1109   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110   | --syscon | --sysco | --sysc | --sys | --sy)
1111     ac_prev=sysconfdir ;;
1112   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114     sysconfdir=$ac_optarg ;;
1115
1116   -target | --target | --targe | --targ | --tar | --ta | --t)
1117     ac_prev=target_alias ;;
1118   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119     target_alias=$ac_optarg ;;
1120
1121   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122     verbose=yes ;;
1123
1124   -version | --version | --versio | --versi | --vers | -V)
1125     ac_init_version=: ;;
1126
1127   -with-* | --with-*)
1128     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129     # Reject names that are not valid shell variable names.
1130     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131       as_fn_error $? "invalid package name: $ac_useropt"
1132     ac_useropt_orig=$ac_useropt
1133     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134     case $ac_user_opts in
1135       *"
1136 "with_$ac_useropt"
1137 "*) ;;
1138       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139          ac_unrecognized_sep=', ';;
1140     esac
1141     eval with_$ac_useropt=\$ac_optarg ;;
1142
1143   -without-* | --without-*)
1144     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147       as_fn_error $? "invalid package name: $ac_useropt"
1148     ac_useropt_orig=$ac_useropt
1149     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150     case $ac_user_opts in
1151       *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155          ac_unrecognized_sep=', ';;
1156     esac
1157     eval with_$ac_useropt=no ;;
1158
1159   --x)
1160     # Obsolete; use --with-x.
1161     with_x=yes ;;
1162
1163   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164   | --x-incl | --x-inc | --x-in | --x-i)
1165     ac_prev=x_includes ;;
1166   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168     x_includes=$ac_optarg ;;
1169
1170   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172     ac_prev=x_libraries ;;
1173   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175     x_libraries=$ac_optarg ;;
1176
1177   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1178 Try \`$0 --help' for more information"
1179     ;;
1180
1181   *=*)
1182     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183     # Reject names that are not valid shell variable names.
1184     case $ac_envvar in #(
1185       '' | [0-9]* | *[!_$as_cr_alnum]* )
1186       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1187     esac
1188     eval $ac_envvar=\$ac_optarg
1189     export $ac_envvar ;;
1190
1191   *)
1192     # FIXME: should be removed in autoconf 3.0.
1193     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197     ;;
1198
1199   esac
1200 done
1201
1202 if test -n "$ac_prev"; then
1203   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204   as_fn_error $? "missing argument to $ac_option"
1205 fi
1206
1207 if test -n "$ac_unrecognized_opts"; then
1208   case $enable_option_checking in
1209     no) ;;
1210     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1211     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212   esac
1213 fi
1214
1215 # Check all directory arguments for consistency.
1216 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217                 datadir sysconfdir sharedstatedir localstatedir includedir \
1218                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219                 libdir localedir mandir
1220 do
1221   eval ac_val=\$$ac_var
1222   # Remove trailing slashes.
1223   case $ac_val in
1224     */ )
1225       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226       eval $ac_var=\$ac_val;;
1227   esac
1228   # Be sure to have absolute directory names.
1229   case $ac_val in
1230     [\\/$]* | ?:[\\/]* )  continue;;
1231     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232   esac
1233   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234 done
1235
1236 # There might be people who depend on the old broken behavior: `$host'
1237 # used to hold the argument of --host etc.
1238 # FIXME: To remove some day.
1239 build=$build_alias
1240 host=$host_alias
1241 target=$target_alias
1242
1243 # FIXME: To remove some day.
1244 if test "x$host_alias" != x; then
1245   if test "x$build_alias" = x; then
1246     cross_compiling=maybe
1247   elif test "x$build_alias" != "x$host_alias"; then
1248     cross_compiling=yes
1249   fi
1250 fi
1251
1252 ac_tool_prefix=
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255 test "$silent" = yes && exec 6>/dev/null
1256
1257
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261   as_fn_error $? "working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263   as_fn_error $? "pwd does not report name of working directory"
1264
1265
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268   ac_srcdir_defaulted=yes
1269   # Try the directory containing this script, then the parent directory.
1270   ac_confdir=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272          X"$as_myself" : 'X\(//\)[^/]' \| \
1273          X"$as_myself" : 'X\(//\)$' \| \
1274          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 $as_echo X"$as_myself" |
1276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)[^/].*/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\/\)$/{
1285             s//\1/
1286             q
1287           }
1288           /^X\(\/\).*/{
1289             s//\1/
1290             q
1291           }
1292           s/.*/./; q'`
1293   srcdir=$ac_confdir
1294   if test ! -r "$srcdir/$ac_unique_file"; then
1295     srcdir=..
1296   fi
1297 else
1298   ac_srcdir_defaulted=no
1299 fi
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1303 fi
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307         pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310   srcdir=.
1311 fi
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320   eval ac_env_${ac_var}_value=\$${ac_var}
1321   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1324
1325 #
1326 # Report the --help message.
1327 #
1328 if test "$ac_init_help" = "long"; then
1329   # Omit some internal or obsolete options to make the list less imposing.
1330   # This message is too long to be a string in the A/UX 3.1 sh.
1331   cat <<_ACEOF
1332 \`configure' configures libogg 1.3.2 to adapt to many kinds of systems.
1333
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE.  See below for descriptions of some of the useful variables.
1338
1339 Defaults for the options are specified in brackets.
1340
1341 Configuration:
1342   -h, --help              display this help and exit
1343       --help=short        display options specific to this package
1344       --help=recursive    display the short help of all the included packages
1345   -V, --version           display version information and exit
1346   -q, --quiet, --silent   do not print \`checking ...' messages
1347       --cache-file=FILE   cache test results in FILE [disabled]
1348   -C, --config-cache      alias for \`--cache-file=config.cache'
1349   -n, --no-create         do not create output files
1350       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1351
1352 Installation directories:
1353   --prefix=PREFIX         install architecture-independent files in PREFIX
1354                           [$ac_default_prefix]
1355   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1356                           [PREFIX]
1357
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1362
1363 For better control, use the options below.
1364
1365 Fine tuning of the installation directories:
1366   --bindir=DIR            user executables [EPREFIX/bin]
1367   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1368   --libexecdir=DIR        program executables [EPREFIX/libexec]
1369   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1370   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1371   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1372   --libdir=DIR            object code libraries [EPREFIX/lib]
1373   --includedir=DIR        C header files [PREFIX/include]
1374   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1375   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1376   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1377   --infodir=DIR           info documentation [DATAROOTDIR/info]
1378   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1379   --mandir=DIR            man documentation [DATAROOTDIR/man]
1380   --docdir=DIR            documentation root [DATAROOTDIR/doc/libogg]
1381   --htmldir=DIR           html documentation [DOCDIR]
1382   --dvidir=DIR            dvi documentation [DOCDIR]
1383   --pdfdir=DIR            pdf documentation [DOCDIR]
1384   --psdir=DIR             ps documentation [DOCDIR]
1385 _ACEOF
1386
1387   cat <<\_ACEOF
1388
1389 Program names:
1390   --program-prefix=PREFIX            prepend PREFIX to installed program names
1391   --program-suffix=SUFFIX            append SUFFIX to installed program names
1392   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1393
1394 System types:
1395   --build=BUILD     configure for building on BUILD [guessed]
1396   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1397 _ACEOF
1398 fi
1399
1400 if test -n "$ac_init_help"; then
1401   case $ac_init_help in
1402      short | recursive ) echo "Configuration of libogg 1.3.2:";;
1403    esac
1404   cat <<\_ACEOF
1405
1406 Optional Features:
1407   --disable-option-checking  ignore unrecognized --enable/--with options
1408   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1409   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1410   --enable-silent-rules   less verbose build output (undo: "make V=1")
1411   --disable-silent-rules  verbose build output (undo: "make V=0")
1412   --disable-maintainer-mode
1413                           disable make rules and dependencies not useful (and
1414                           sometimes confusing) to the casual installer
1415   --enable-dependency-tracking
1416                           do not reject slow dependency extractors
1417   --disable-dependency-tracking
1418                           speeds up one-time build
1419   --enable-shared[=PKGS]  build shared libraries [default=yes]
1420   --enable-static[=PKGS]  build static libraries [default=yes]
1421   --enable-fast-install[=PKGS]
1422                           optimize for fast installation [default=yes]
1423   --disable-libtool-lock  avoid locking (might break parallel builds)
1424
1425 Optional Packages:
1426   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1427   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1428   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1429                           both]
1430   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1431   --with-sysroot=DIR Search for dependent libraries within DIR
1432                         (or the compiler's sysroot if not specified).
1433
1434 Some influential environment variables:
1435   CC          C compiler command
1436   CFLAGS      C compiler flags
1437   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1438               nonstandard directory <lib dir>
1439   LIBS        libraries to pass to the linker, e.g. -l<library>
1440   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441               you have headers in a nonstandard directory <include dir>
1442   CPP         C preprocessor
1443
1444 Use these variables to override the choices made by `configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1446
1447 Report bugs to <ogg-dev@xiph.org>.
1448 _ACEOF
1449 ac_status=$?
1450 fi
1451
1452 if test "$ac_init_help" = "recursive"; then
1453   # If there are subdirs, report their specific --help.
1454   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455     test -d "$ac_dir" ||
1456       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457       continue
1458     ac_builddir=.
1459
1460 case "$ac_dir" in
1461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *)
1463   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464   # A ".." for each directory in $ac_dir_suffix.
1465   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466   case $ac_top_builddir_sub in
1467   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469   esac ;;
1470 esac
1471 ac_abs_top_builddir=$ac_pwd
1472 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473 # for backward compatibility:
1474 ac_top_builddir=$ac_top_build_prefix
1475
1476 case $srcdir in
1477   .)  # We are building in place.
1478     ac_srcdir=.
1479     ac_top_srcdir=$ac_top_builddir_sub
1480     ac_abs_top_srcdir=$ac_pwd ;;
1481   [\\/]* | ?:[\\/]* )  # Absolute name.
1482     ac_srcdir=$srcdir$ac_dir_suffix;
1483     ac_top_srcdir=$srcdir
1484     ac_abs_top_srcdir=$srcdir ;;
1485   *) # Relative name.
1486     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487     ac_top_srcdir=$ac_top_build_prefix$srcdir
1488     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 esac
1490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491
1492     cd "$ac_dir" || { ac_status=$?; continue; }
1493     # Check for guested configure.
1494     if test -f "$ac_srcdir/configure.gnu"; then
1495       echo &&
1496       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497     elif test -f "$ac_srcdir/configure"; then
1498       echo &&
1499       $SHELL "$ac_srcdir/configure" --help=recursive
1500     else
1501       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502     fi || ac_status=$?
1503     cd "$ac_pwd" || { ac_status=$?; break; }
1504   done
1505 fi
1506
1507 test -n "$ac_init_help" && exit $ac_status
1508 if $ac_init_version; then
1509   cat <<\_ACEOF
1510 libogg configure 1.3.2
1511 generated by GNU Autoconf 2.69
1512
1513 Copyright (C) 2012 Free Software Foundation, Inc.
1514 This configure script is free software; the Free Software Foundation
1515 gives unlimited permission to copy, distribute and modify it.
1516 _ACEOF
1517   exit
1518 fi
1519
1520 ## ------------------------ ##
1521 ## Autoconf initialization. ##
1522 ## ------------------------ ##
1523
1524 # ac_fn_c_try_compile LINENO
1525 # --------------------------
1526 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1527 ac_fn_c_try_compile ()
1528 {
1529   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530   rm -f conftest.$ac_objext
1531   if { { ac_try="$ac_compile"
1532 case "(($ac_try" in
1533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534   *) ac_try_echo=$ac_try;;
1535 esac
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537 $as_echo "$ac_try_echo"; } >&5
1538   (eval "$ac_compile") 2>conftest.err
1539   ac_status=$?
1540   if test -s conftest.err; then
1541     grep -v '^ *+' conftest.err >conftest.er1
1542     cat conftest.er1 >&5
1543     mv -f conftest.er1 conftest.err
1544   fi
1545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546   test $ac_status = 0; } && {
1547          test -z "$ac_c_werror_flag" ||
1548          test ! -s conftest.err
1549        } && test -s conftest.$ac_objext; then :
1550   ac_retval=0
1551 else
1552   $as_echo "$as_me: failed program was:" >&5
1553 sed 's/^/| /' conftest.$ac_ext >&5
1554
1555         ac_retval=1
1556 fi
1557   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558   as_fn_set_status $ac_retval
1559
1560 } # ac_fn_c_try_compile
1561
1562 # ac_fn_c_try_link LINENO
1563 # -----------------------
1564 # Try to link conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_link ()
1566 {
1567   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568   rm -f conftest.$ac_objext conftest$ac_exeext
1569   if { { ac_try="$ac_link"
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_link") 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_exeext && {
1588          test "$cross_compiling" = yes ||
1589          test -x conftest$ac_exeext
1590        }; then :
1591   ac_retval=0
1592 else
1593   $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1595
1596         ac_retval=1
1597 fi
1598   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1599   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1600   # interfere with the next link command; also delete a directory that is
1601   # left behind by Apple's compiler.  We do this before executing the actions.
1602   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1603   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604   as_fn_set_status $ac_retval
1605
1606 } # ac_fn_c_try_link
1607
1608 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1609 # -------------------------------------------------------
1610 # Tests whether HEADER exists and can be compiled using the include files in
1611 # INCLUDES, setting the cache variable VAR accordingly.
1612 ac_fn_c_check_header_compile ()
1613 {
1614   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1616 $as_echo_n "checking for $2... " >&6; }
1617 if eval \${$3+:} false; then :
1618   $as_echo_n "(cached) " >&6
1619 else
1620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621 /* end confdefs.h.  */
1622 $4
1623 #include <$2>
1624 _ACEOF
1625 if ac_fn_c_try_compile "$LINENO"; then :
1626   eval "$3=yes"
1627 else
1628   eval "$3=no"
1629 fi
1630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1631 fi
1632 eval ac_res=\$$3
1633                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1634 $as_echo "$ac_res" >&6; }
1635   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636
1637 } # ac_fn_c_check_header_compile
1638
1639 # ac_fn_c_try_cpp LINENO
1640 # ----------------------
1641 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_cpp ()
1643 {
1644   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645   if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 case "(($ac_try" in
1647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648   *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653   ac_status=$?
1654   if test -s conftest.err; then
1655     grep -v '^ *+' conftest.err >conftest.er1
1656     cat conftest.er1 >&5
1657     mv -f conftest.er1 conftest.err
1658   fi
1659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660   test $ac_status = 0; } > conftest.i && {
1661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1662          test ! -s conftest.err
1663        }; then :
1664   ac_retval=0
1665 else
1666   $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1668
1669     ac_retval=1
1670 fi
1671   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672   as_fn_set_status $ac_retval
1673
1674 } # ac_fn_c_try_cpp
1675
1676 # ac_fn_c_try_run LINENO
1677 # ----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679 # that executables *can* be run.
1680 ac_fn_c_try_run ()
1681 {
1682   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683   if { { ac_try="$ac_link"
1684 case "(($ac_try" in
1685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686   *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690   (eval "$ac_link") 2>&5
1691   ac_status=$?
1692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694   { { case "(($ac_try" in
1695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696   *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700   (eval "$ac_try") 2>&5
1701   ac_status=$?
1702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703   test $ac_status = 0; }; }; then :
1704   ac_retval=0
1705 else
1706   $as_echo "$as_me: program exited with status $ac_status" >&5
1707        $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710        ac_retval=$ac_status
1711 fi
1712   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714   as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_run
1717
1718 # ac_fn_c_check_func LINENO FUNC VAR
1719 # ----------------------------------
1720 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1721 ac_fn_c_check_func ()
1722 {
1723   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727   $as_echo_n "(cached) " >&6
1728 else
1729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h.  */
1731 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1733 #define $2 innocuous_$2
1734
1735 /* System header to define __stub macros and hopefully few prototypes,
1736     which can conflict with char $2 (); below.
1737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1738     <limits.h> exists even on freestanding compilers.  */
1739
1740 #ifdef __STDC__
1741 # include <limits.h>
1742 #else
1743 # include <assert.h>
1744 #endif
1745
1746 #undef $2
1747
1748 /* Override any GCC internal prototype to avoid an error.
1749    Use char because int might match the return type of a GCC
1750    builtin and then its argument prototype would still apply.  */
1751 #ifdef __cplusplus
1752 extern "C"
1753 #endif
1754 char $2 ();
1755 /* The GNU C library defines this for functions which it implements
1756     to always fail with ENOSYS.  Some functions are actually named
1757     something starting with __ and the normal name is an alias.  */
1758 #if defined __stub_$2 || defined __stub___$2
1759 choke me
1760 #endif
1761
1762 int
1763 main ()
1764 {
1765 return $2 ();
1766   ;
1767   return 0;
1768 }
1769 _ACEOF
1770 if ac_fn_c_try_link "$LINENO"; then :
1771   eval "$3=yes"
1772 else
1773   eval "$3=no"
1774 fi
1775 rm -f core conftest.err conftest.$ac_objext \
1776     conftest$ac_exeext conftest.$ac_ext
1777 fi
1778 eval ac_res=\$$3
1779                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783 } # ac_fn_c_check_func
1784
1785 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1788 # the include files in INCLUDES and setting the cache variable VAR
1789 # accordingly.
1790 ac_fn_c_check_header_mongrel ()
1791 {
1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793   if eval \${$3+:} false; then :
1794   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797   $as_echo_n "(cached) " >&6
1798 fi
1799 eval ac_res=\$$3
1800                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 else
1803   # Is the header compilable?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1805 $as_echo_n "checking $2 usability... " >&6; }
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h.  */
1808 $4
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812   ac_header_compiler=yes
1813 else
1814   ac_header_compiler=no
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1818 $as_echo "$ac_header_compiler" >&6; }
1819
1820 # Is the header present?
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1822 $as_echo_n "checking $2 presence... " >&6; }
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h.  */
1825 #include <$2>
1826 _ACEOF
1827 if ac_fn_c_try_cpp "$LINENO"; then :
1828   ac_header_preproc=yes
1829 else
1830   ac_header_preproc=no
1831 fi
1832 rm -f conftest.err conftest.i conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1834 $as_echo "$ac_header_preproc" >&6; }
1835
1836 # So?  What about this header?
1837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1838   yes:no: )
1839     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1840 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843     ;;
1844   no:yes:* )
1845     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1846 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1847     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1848 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1850 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1852 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855 ( $as_echo "## ------------------------------- ##
1856 ## Report this to ogg-dev@xiph.org ##
1857 ## ------------------------------- ##"
1858      ) | sed "s/^/$as_me: WARNING:     /" >&2
1859     ;;
1860 esac
1861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864   $as_echo_n "(cached) " >&6
1865 else
1866   eval "$3=\$ac_header_compiler"
1867 fi
1868 eval ac_res=\$$3
1869                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 fi
1872   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874 } # ac_fn_c_check_header_mongrel
1875
1876 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1877 # --------------------------------------------
1878 # Tries to find the compile-time value of EXPR in a program that includes
1879 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1880 # computed
1881 ac_fn_c_compute_int ()
1882 {
1883   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884   if test "$cross_compiling" = yes; then
1885     # Depending upon the size, compute the lo and hi bounds.
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h.  */
1888 $4
1889 int
1890 main ()
1891 {
1892 static int test_array [1 - 2 * !(($2) >= 0)];
1893 test_array [0] = 0;
1894 return test_array [0];
1895
1896   ;
1897   return 0;
1898 }
1899 _ACEOF
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901   ac_lo=0 ac_mid=0
1902   while :; do
1903     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h.  */
1905 $4
1906 int
1907 main ()
1908 {
1909 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1910 test_array [0] = 0;
1911 return test_array [0];
1912
1913   ;
1914   return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918   ac_hi=$ac_mid; break
1919 else
1920   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1921                         if test $ac_lo -le $ac_mid; then
1922                           ac_lo= ac_hi=
1923                           break
1924                         fi
1925                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1926 fi
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928   done
1929 else
1930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h.  */
1932 $4
1933 int
1934 main ()
1935 {
1936 static int test_array [1 - 2 * !(($2) < 0)];
1937 test_array [0] = 0;
1938 return test_array [0];
1939
1940   ;
1941   return 0;
1942 }
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945   ac_hi=-1 ac_mid=-1
1946   while :; do
1947     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h.  */
1949 $4
1950 int
1951 main ()
1952 {
1953 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1954 test_array [0] = 0;
1955 return test_array [0];
1956
1957   ;
1958   return 0;
1959 }
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962   ac_lo=$ac_mid; break
1963 else
1964   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1965                         if test $ac_mid -le $ac_hi; then
1966                           ac_lo= ac_hi=
1967                           break
1968                         fi
1969                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1970 fi
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972   done
1973 else
1974   ac_lo= ac_hi=
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 # Binary search between lo and hi bounds.
1980 while test "x$ac_lo" != "x$ac_hi"; do
1981   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h.  */
1984 $4
1985 int
1986 main ()
1987 {
1988 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1989 test_array [0] = 0;
1990 return test_array [0];
1991
1992   ;
1993   return 0;
1994 }
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997   ac_hi=$ac_mid
1998 else
1999   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2000 fi
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 done
2003 case $ac_lo in #((
2004 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2005 '') ac_retval=1 ;;
2006 esac
2007   else
2008     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h.  */
2010 $4
2011 static long int longval () { return $2; }
2012 static unsigned long int ulongval () { return $2; }
2013 #include <stdio.h>
2014 #include <stdlib.h>
2015 int
2016 main ()
2017 {
2018
2019   FILE *f = fopen ("conftest.val", "w");
2020   if (! f)
2021     return 1;
2022   if (($2) < 0)
2023     {
2024       long int i = longval ();
2025       if (i != ($2))
2026         return 1;
2027       fprintf (f, "%ld", i);
2028     }
2029   else
2030     {
2031       unsigned long int i = ulongval ();
2032       if (i != ($2))
2033         return 1;
2034       fprintf (f, "%lu", i);
2035     }
2036   /* Do not output a trailing newline, as this causes \r\n confusion
2037      on some platforms.  */
2038   return ferror (f) || fclose (f) != 0;
2039
2040   ;
2041   return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_run "$LINENO"; then :
2045   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2046 else
2047   ac_retval=1
2048 fi
2049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2050   conftest.$ac_objext conftest.beam conftest.$ac_ext
2051 rm -f conftest.val
2052
2053   fi
2054   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055   as_fn_set_status $ac_retval
2056
2057 } # ac_fn_c_compute_int
2058 cat >config.log <<_ACEOF
2059 This file contains any messages produced by compilers while
2060 running configure, to aid debugging if configure makes a mistake.
2061
2062 It was created by libogg $as_me 1.3.2, which was
2063 generated by GNU Autoconf 2.69.  Invocation command line was
2064
2065   $ $0 $@
2066
2067 _ACEOF
2068 exec 5>>config.log
2069 {
2070 cat <<_ASUNAME
2071 ## --------- ##
2072 ## Platform. ##
2073 ## --------- ##
2074
2075 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2076 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2077 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2078 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2079 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2080
2081 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2082 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2083
2084 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2085 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2086 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2087 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2088 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2089 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2090 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2091
2092 _ASUNAME
2093
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2096 do
2097   IFS=$as_save_IFS
2098   test -z "$as_dir" && as_dir=.
2099     $as_echo "PATH: $as_dir"
2100   done
2101 IFS=$as_save_IFS
2102
2103 } >&5
2104
2105 cat >&5 <<_ACEOF
2106
2107
2108 ## ----------- ##
2109 ## Core tests. ##
2110 ## ----------- ##
2111
2112 _ACEOF
2113
2114
2115 # Keep a trace of the command line.
2116 # Strip out --no-create and --no-recursion so they do not pile up.
2117 # Strip out --silent because we don't want to record it for future runs.
2118 # Also quote any args containing shell meta-characters.
2119 # Make two passes to allow for proper duplicate-argument suppression.
2120 ac_configure_args=
2121 ac_configure_args0=
2122 ac_configure_args1=
2123 ac_must_keep_next=false
2124 for ac_pass in 1 2
2125 do
2126   for ac_arg
2127   do
2128     case $ac_arg in
2129     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2130     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2131     | -silent | --silent | --silen | --sile | --sil)
2132       continue ;;
2133     *\'*)
2134       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2135     esac
2136     case $ac_pass in
2137     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2138     2)
2139       as_fn_append ac_configure_args1 " '$ac_arg'"
2140       if test $ac_must_keep_next = true; then
2141         ac_must_keep_next=false # Got value, back to normal.
2142       else
2143         case $ac_arg in
2144           *=* | --config-cache | -C | -disable-* | --disable-* \
2145           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2146           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2147           | -with-* | --with-* | -without-* | --without-* | --x)
2148             case "$ac_configure_args0 " in
2149               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2150             esac
2151             ;;
2152           -* ) ac_must_keep_next=true ;;
2153         esac
2154       fi
2155       as_fn_append ac_configure_args " '$ac_arg'"
2156       ;;
2157     esac
2158   done
2159 done
2160 { ac_configure_args0=; unset ac_configure_args0;}
2161 { ac_configure_args1=; unset ac_configure_args1;}
2162
2163 # When interrupted or exit'd, cleanup temporary files, and complete
2164 # config.log.  We remove comments because anyway the quotes in there
2165 # would cause problems or look ugly.
2166 # WARNING: Use '\'' to represent an apostrophe within the trap.
2167 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2168 trap 'exit_status=$?
2169   # Save into config.log some information that might help in debugging.
2170   {
2171     echo
2172
2173     $as_echo "## ---------------- ##
2174 ## Cache variables. ##
2175 ## ---------------- ##"
2176     echo
2177     # The following way of writing the cache mishandles newlines in values,
2178 (
2179   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2180     eval ac_val=\$$ac_var
2181     case $ac_val in #(
2182     *${as_nl}*)
2183       case $ac_var in #(
2184       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2185 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2186       esac
2187       case $ac_var in #(
2188       _ | IFS | as_nl) ;; #(
2189       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2190       *) { eval $ac_var=; unset $ac_var;} ;;
2191       esac ;;
2192     esac
2193   done
2194   (set) 2>&1 |
2195     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2196     *${as_nl}ac_space=\ *)
2197       sed -n \
2198         "s/'\''/'\''\\\\'\'''\''/g;
2199           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2200       ;; #(
2201     *)
2202       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2203       ;;
2204     esac |
2205     sort
2206 )
2207     echo
2208
2209     $as_echo "## ----------------- ##
2210 ## Output variables. ##
2211 ## ----------------- ##"
2212     echo
2213     for ac_var in $ac_subst_vars
2214     do
2215       eval ac_val=\$$ac_var
2216       case $ac_val in
2217       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218       esac
2219       $as_echo "$ac_var='\''$ac_val'\''"
2220     done | sort
2221     echo
2222
2223     if test -n "$ac_subst_files"; then
2224       $as_echo "## ------------------- ##
2225 ## File substitutions. ##
2226 ## ------------------- ##"
2227       echo
2228       for ac_var in $ac_subst_files
2229       do
2230         eval ac_val=\$$ac_var
2231         case $ac_val in
2232         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2233         esac
2234         $as_echo "$ac_var='\''$ac_val'\''"
2235       done | sort
2236       echo
2237     fi
2238
2239     if test -s confdefs.h; then
2240       $as_echo "## ----------- ##
2241 ## confdefs.h. ##
2242 ## ----------- ##"
2243       echo
2244       cat confdefs.h
2245       echo
2246     fi
2247     test "$ac_signal" != 0 &&
2248       $as_echo "$as_me: caught signal $ac_signal"
2249     $as_echo "$as_me: exit $exit_status"
2250   } >&5
2251   rm -f core *.core core.conftest.* &&
2252     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2253     exit $exit_status
2254 ' 0
2255 for ac_signal in 1 2 13 15; do
2256   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2257 done
2258 ac_signal=0
2259
2260 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2261 rm -f -r conftest* confdefs.h
2262
2263 $as_echo "/* confdefs.h */" > confdefs.h
2264
2265 # Predefined preprocessor variables.
2266
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_NAME "$PACKAGE_NAME"
2269 _ACEOF
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2273 _ACEOF
2274
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2277 _ACEOF
2278
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_STRING "$PACKAGE_STRING"
2281 _ACEOF
2282
2283 cat >>confdefs.h <<_ACEOF
2284 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2285 _ACEOF
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_URL "$PACKAGE_URL"
2289 _ACEOF
2290
2291
2292 # Let the site file select an alternate cache file if it wants to.
2293 # Prefer an explicitly selected file to automatically selected ones.
2294 ac_site_file1=NONE
2295 ac_site_file2=NONE
2296 if test -n "$CONFIG_SITE"; then
2297   # We do not want a PATH search for config.site.
2298   case $CONFIG_SITE in #((
2299     -*)  ac_site_file1=./$CONFIG_SITE;;
2300     */*) ac_site_file1=$CONFIG_SITE;;
2301     *)   ac_site_file1=./$CONFIG_SITE;;
2302   esac
2303 elif test "x$prefix" != xNONE; then
2304   ac_site_file1=$prefix/share/config.site
2305   ac_site_file2=$prefix/etc/config.site
2306 else
2307   ac_site_file1=$ac_default_prefix/share/config.site
2308   ac_site_file2=$ac_default_prefix/etc/config.site
2309 fi
2310 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2311 do
2312   test "x$ac_site_file" = xNONE && continue
2313   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2314     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2315 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2316     sed 's/^/| /' "$ac_site_file" >&5
2317     . "$ac_site_file" \
2318       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2320 as_fn_error $? "failed to load site script $ac_site_file
2321 See \`config.log' for more details" "$LINENO" 5; }
2322   fi
2323 done
2324
2325 if test -r "$cache_file"; then
2326   # Some versions of bash will fail to source /dev/null (special files
2327   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2328   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2329     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2330 $as_echo "$as_me: loading cache $cache_file" >&6;}
2331     case $cache_file in
2332       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2333       *)                      . "./$cache_file";;
2334     esac
2335   fi
2336 else
2337   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2338 $as_echo "$as_me: creating cache $cache_file" >&6;}
2339   >$cache_file
2340 fi
2341
2342 # Check that the precious variables saved in the cache have kept the same
2343 # value.
2344 ac_cache_corrupted=false
2345 for ac_var in $ac_precious_vars; do
2346   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2347   eval ac_new_set=\$ac_env_${ac_var}_set
2348   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2349   eval ac_new_val=\$ac_env_${ac_var}_value
2350   case $ac_old_set,$ac_new_set in
2351     set,)
2352       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2353 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2354       ac_cache_corrupted=: ;;
2355     ,set)
2356       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2357 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2358       ac_cache_corrupted=: ;;
2359     ,);;
2360     *)
2361       if test "x$ac_old_val" != "x$ac_new_val"; then
2362         # differences in whitespace do not lead to failure.
2363         ac_old_val_w=`echo x $ac_old_val`
2364         ac_new_val_w=`echo x $ac_new_val`
2365         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2366           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2367 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2368           ac_cache_corrupted=:
2369         else
2370           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2371 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2372           eval $ac_var=\$ac_old_val
2373         fi
2374         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2375 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2376         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2377 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2378       fi;;
2379   esac
2380   # Pass precious variables to config.status.
2381   if test "$ac_new_set" = set; then
2382     case $ac_new_val in
2383     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2384     *) ac_arg=$ac_var=$ac_new_val ;;
2385     esac
2386     case " $ac_configure_args " in
2387       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2388       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2389     esac
2390   fi
2391 done
2392 if $ac_cache_corrupted; then
2393   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2395   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2396 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2397   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2398 fi
2399 ## -------------------- ##
2400 ## Main body of script. ##
2401 ## -------------------- ##
2402
2403 ac_ext=c
2404 ac_cpp='$CPP $CPPFLAGS'
2405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408
2409
2410
2411
2412
2413 am__api_version='1.13'
2414
2415 ac_aux_dir=
2416 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2417   if test -f "$ac_dir/install-sh"; then
2418     ac_aux_dir=$ac_dir
2419     ac_install_sh="$ac_aux_dir/install-sh -c"
2420     break
2421   elif test -f "$ac_dir/install.sh"; then
2422     ac_aux_dir=$ac_dir
2423     ac_install_sh="$ac_aux_dir/install.sh -c"
2424     break
2425   elif test -f "$ac_dir/shtool"; then
2426     ac_aux_dir=$ac_dir
2427     ac_install_sh="$ac_aux_dir/shtool install -c"
2428     break
2429   fi
2430 done
2431 if test -z "$ac_aux_dir"; then
2432   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2433 fi
2434
2435 # These three variables are undocumented and unsupported,
2436 # and are intended to be withdrawn in a future Autoconf release.
2437 # They can cause serious problems if a builder's source tree is in a directory
2438 # whose full name contains unusual characters.
2439 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2440 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2441 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2442
2443
2444 # Find a good install program.  We prefer a C program (faster),
2445 # so one script is as good as another.  But avoid the broken or
2446 # incompatible versions:
2447 # SysV /etc/install, /usr/sbin/install
2448 # SunOS /usr/etc/install
2449 # IRIX /sbin/install
2450 # AIX /bin/install
2451 # AmigaOS /C/install, which installs bootblocks on floppy discs
2452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2455 # OS/2's system install, which has a completely different semantic
2456 # ./install, which can be erroneously created by make from ./install.sh.
2457 # Reject install programs that cannot install multiple files.
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2459 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2460 if test -z "$INSTALL"; then
2461 if ${ac_cv_path_install+:} false; then :
2462   $as_echo_n "(cached) " >&6
2463 else
2464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467   IFS=$as_save_IFS
2468   test -z "$as_dir" && as_dir=.
2469     # Account for people who put trailing slashes in PATH elements.
2470 case $as_dir/ in #((
2471   ./ | .// | /[cC]/* | \
2472   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2473   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2474   /usr/ucb/* ) ;;
2475   *)
2476     # OSF1 and SCO ODT 3.0 have their own names for install.
2477     # Don't use installbsd from OSF since it installs stuff as root
2478     # by default.
2479     for ac_prog in ginstall scoinst install; do
2480       for ac_exec_ext in '' $ac_executable_extensions; do
2481         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2482           if test $ac_prog = install &&
2483             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484             # AIX install.  It has an incompatible calling convention.
2485             :
2486           elif test $ac_prog = install &&
2487             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488             # program-specific install script used by HP pwplus--don't use.
2489             :
2490           else
2491             rm -rf conftest.one conftest.two conftest.dir
2492             echo one > conftest.one
2493             echo two > conftest.two
2494             mkdir conftest.dir
2495             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2496               test -s conftest.one && test -s conftest.two &&
2497               test -s conftest.dir/conftest.one &&
2498               test -s conftest.dir/conftest.two
2499             then
2500               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2501               break 3
2502             fi
2503           fi
2504         fi
2505       done
2506     done
2507     ;;
2508 esac
2509
2510   done
2511 IFS=$as_save_IFS
2512
2513 rm -rf conftest.one conftest.two conftest.dir
2514
2515 fi
2516   if test "${ac_cv_path_install+set}" = set; then
2517     INSTALL=$ac_cv_path_install
2518   else
2519     # As a last resort, use the slow shell script.  Don't cache a
2520     # value for INSTALL within a source directory, because that will
2521     # break other packages using the cache if that directory is
2522     # removed, or if the value is a relative name.
2523     INSTALL=$ac_install_sh
2524   fi
2525 fi
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2527 $as_echo "$INSTALL" >&6; }
2528
2529 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2530 # It thinks the first close brace ends the variable substitution.
2531 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2532
2533 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2534
2535 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2536
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2538 $as_echo_n "checking whether build environment is sane... " >&6; }
2539 # Reject unsafe characters in $srcdir or the absolute working directory
2540 # name.  Accept space and tab only in the latter.
2541 am_lf='
2542 '
2543 case `pwd` in
2544   *[\\\"\#\$\&\'\`$am_lf]*)
2545     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2546 esac
2547 case $srcdir in
2548   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2549     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2550 esac
2551
2552 # Do 'set' in a subshell so we don't clobber the current shell's
2553 # arguments.  Must try -L first in case configure is actually a
2554 # symlink; some systems play weird games with the mod time of symlinks
2555 # (eg FreeBSD returns the mod time of the symlink's containing
2556 # directory).
2557 if (
2558    am_has_slept=no
2559    for am_try in 1 2; do
2560      echo "timestamp, slept: $am_has_slept" > conftest.file
2561      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2562      if test "$*" = "X"; then
2563         # -L didn't work.
2564         set X `ls -t "$srcdir/configure" conftest.file`
2565      fi
2566      if test "$*" != "X $srcdir/configure conftest.file" \
2567         && test "$*" != "X conftest.file $srcdir/configure"; then
2568
2569         # If neither matched, then we have a broken ls.  This can happen
2570         # if, for instance, CONFIG_SHELL is bash and it inherits a
2571         # broken ls alias from the environment.  This has actually
2572         # happened.  Such a system could not be considered "sane".
2573         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2574   alias in your environment" "$LINENO" 5
2575      fi
2576      if test "$2" = conftest.file || test $am_try -eq 2; then
2577        break
2578      fi
2579      # Just in case.
2580      sleep 1
2581      am_has_slept=yes
2582    done
2583    test "$2" = conftest.file
2584    )
2585 then
2586    # Ok.
2587    :
2588 else
2589    as_fn_error $? "newly created file is older than distributed files!
2590 Check your system clock" "$LINENO" 5
2591 fi
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2593 $as_echo "yes" >&6; }
2594 # If we didn't sleep, we still need to ensure time stamps of config.status and
2595 # generated files are strictly newer.
2596 am_sleep_pid=
2597 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2598   ( sleep 1 ) &
2599   am_sleep_pid=$!
2600 fi
2601
2602 rm -f conftest.file
2603
2604 test "$program_prefix" != NONE &&
2605   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2606 # Use a double $ so make ignores it.
2607 test "$program_suffix" != NONE &&
2608   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2609 # Double any \ or $.
2610 # By default was `s,x,x', remove it if useless.
2611 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2612 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2613
2614 # expand $ac_aux_dir to an absolute path
2615 am_aux_dir=`cd $ac_aux_dir && pwd`
2616
2617 if test x"${MISSING+set}" != xset; then
2618   case $am_aux_dir in
2619   *\ * | *\     *)
2620     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2621   *)
2622     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2623   esac
2624 fi
2625 # Use eval to expand $SHELL
2626 if eval "$MISSING --is-lightweight"; then
2627   am_missing_run="$MISSING "
2628 else
2629   am_missing_run=
2630   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2631 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2632 fi
2633
2634 if test x"${install_sh}" != xset; then
2635   case $am_aux_dir in
2636   *\ * | *\     *)
2637     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2638   *)
2639     install_sh="\${SHELL} $am_aux_dir/install-sh"
2640   esac
2641 fi
2642
2643 # Installed binaries are usually stripped using 'strip' when the user
2644 # run "make install-strip".  However 'strip' might not be the right
2645 # tool to use in cross-compilation environments, therefore Automake
2646 # will honor the 'STRIP' environment variable to overrule this program.
2647 if test "$cross_compiling" != no; then
2648   if test -n "$ac_tool_prefix"; then
2649   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2650 set dummy ${ac_tool_prefix}strip; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if ${ac_cv_prog_STRIP+:} false; then :
2654   $as_echo_n "(cached) " >&6
2655 else
2656   if test -n "$STRIP"; then
2657   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662   IFS=$as_save_IFS
2663   test -z "$as_dir" && as_dir=.
2664     for ac_exec_ext in '' $ac_executable_extensions; do
2665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668     break 2
2669   fi
2670 done
2671   done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 STRIP=$ac_cv_prog_STRIP
2677 if test -n "$STRIP"; then
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2679 $as_echo "$STRIP" >&6; }
2680 else
2681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2683 fi
2684
2685
2686 fi
2687 if test -z "$ac_cv_prog_STRIP"; then
2688   ac_ct_STRIP=$STRIP
2689   # Extract the first word of "strip", so it can be a program name with args.
2690 set dummy strip; ac_word=$2
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692 $as_echo_n "checking for $ac_word... " >&6; }
2693 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2694   $as_echo_n "(cached) " >&6
2695 else
2696   if test -n "$ac_ct_STRIP"; then
2697   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2698 else
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2701 do
2702   IFS=$as_save_IFS
2703   test -z "$as_dir" && as_dir=.
2704     for ac_exec_ext in '' $ac_executable_extensions; do
2705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2706     ac_cv_prog_ac_ct_STRIP="strip"
2707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708     break 2
2709   fi
2710 done
2711   done
2712 IFS=$as_save_IFS
2713
2714 fi
2715 fi
2716 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2717 if test -n "$ac_ct_STRIP"; then
2718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2719 $as_echo "$ac_ct_STRIP" >&6; }
2720 else
2721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 $as_echo "no" >&6; }
2723 fi
2724
2725   if test "x$ac_ct_STRIP" = x; then
2726     STRIP=":"
2727   else
2728     case $cross_compiling:$ac_tool_warned in
2729 yes:)
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2732 ac_tool_warned=yes ;;
2733 esac
2734     STRIP=$ac_ct_STRIP
2735   fi
2736 else
2737   STRIP="$ac_cv_prog_STRIP"
2738 fi
2739
2740 fi
2741 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2742
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2744 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2745 if test -z "$MKDIR_P"; then
2746   if ${ac_cv_path_mkdir+:} false; then :
2747   $as_echo_n "(cached) " >&6
2748 else
2749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2751 do
2752   IFS=$as_save_IFS
2753   test -z "$as_dir" && as_dir=.
2754     for ac_prog in mkdir gmkdir; do
2755          for ac_exec_ext in '' $ac_executable_extensions; do
2756            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2757            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2758              'mkdir (GNU coreutils) '* | \
2759              'mkdir (coreutils) '* | \
2760              'mkdir (fileutils) '4.1*)
2761                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2762                break 3;;
2763            esac
2764          done
2765        done
2766   done
2767 IFS=$as_save_IFS
2768
2769 fi
2770
2771   test -d ./--version && rmdir ./--version
2772   if test "${ac_cv_path_mkdir+set}" = set; then
2773     MKDIR_P="$ac_cv_path_mkdir -p"
2774   else
2775     # As a last resort, use the slow shell script.  Don't cache a
2776     # value for MKDIR_P within a source directory, because that will
2777     # break other packages using the cache if that directory is
2778     # removed, or if the value is a relative name.
2779     MKDIR_P="$ac_install_sh -d"
2780   fi
2781 fi
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2783 $as_echo "$MKDIR_P" >&6; }
2784
2785 for ac_prog in gawk mawk nawk awk
2786 do
2787   # Extract the first word of "$ac_prog", so it can be a program name with args.
2788 set dummy $ac_prog; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_prog_AWK+:} false; then :
2792   $as_echo_n "(cached) " >&6
2793 else
2794   if test -n "$AWK"; then
2795   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800   IFS=$as_save_IFS
2801   test -z "$as_dir" && as_dir=.
2802     for ac_exec_ext in '' $ac_executable_extensions; do
2803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804     ac_cv_prog_AWK="$ac_prog"
2805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806     break 2
2807   fi
2808 done
2809   done
2810 IFS=$as_save_IFS
2811
2812 fi
2813 fi
2814 AWK=$ac_cv_prog_AWK
2815 if test -n "$AWK"; then
2816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2817 $as_echo "$AWK" >&6; }
2818 else
2819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2821 fi
2822
2823
2824   test -n "$AWK" && break
2825 done
2826
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2828 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2829 set x ${MAKE-make}
2830 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2831 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2832   $as_echo_n "(cached) " >&6
2833 else
2834   cat >conftest.make <<\_ACEOF
2835 SHELL = /bin/sh
2836 all:
2837         @echo '@@@%%%=$(MAKE)=@@@%%%'
2838 _ACEOF
2839 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2840 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2841   *@@@%%%=?*=@@@%%%*)
2842     eval ac_cv_prog_make_${ac_make}_set=yes;;
2843   *)
2844     eval ac_cv_prog_make_${ac_make}_set=no;;
2845 esac
2846 rm -f conftest.make
2847 fi
2848 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2850 $as_echo "yes" >&6; }
2851   SET_MAKE=
2852 else
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855   SET_MAKE="MAKE=${MAKE-make}"
2856 fi
2857
2858 rm -rf .tst 2>/dev/null
2859 mkdir .tst 2>/dev/null
2860 if test -d .tst; then
2861   am__leading_dot=.
2862 else
2863   am__leading_dot=_
2864 fi
2865 rmdir .tst 2>/dev/null
2866
2867 # Check whether --enable-silent-rules was given.
2868 if test "${enable_silent_rules+set}" = set; then :
2869   enableval=$enable_silent_rules;
2870 fi
2871
2872 case $enable_silent_rules in # (((
2873   yes) AM_DEFAULT_VERBOSITY=0;;
2874    no) AM_DEFAULT_VERBOSITY=1;;
2875     *) AM_DEFAULT_VERBOSITY=1;;
2876 esac
2877 am_make=${MAKE-make}
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2879 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2880 if ${am_cv_make_support_nested_variables+:} false; then :
2881   $as_echo_n "(cached) " >&6
2882 else
2883   if $as_echo 'TRUE=$(BAR$(V))
2884 BAR0=false
2885 BAR1=true
2886 V=1
2887 am__doit:
2888         @$(TRUE)
2889 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2890   am_cv_make_support_nested_variables=yes
2891 else
2892   am_cv_make_support_nested_variables=no
2893 fi
2894 fi
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2896 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2897 if test $am_cv_make_support_nested_variables = yes; then
2898     AM_V='$(V)'
2899   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2900 else
2901   AM_V=$AM_DEFAULT_VERBOSITY
2902   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2903 fi
2904 AM_BACKSLASH='\'
2905
2906 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2907   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2908   # is not polluted with repeated "-I."
2909   am__isrc=' -I$(srcdir)'
2910   # test to see if srcdir already configured
2911   if test -f $srcdir/config.status; then
2912     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2913   fi
2914 fi
2915
2916 # test whether we have cygpath
2917 if test -z "$CYGPATH_W"; then
2918   if (cygpath --version) >/dev/null 2>/dev/null; then
2919     CYGPATH_W='cygpath -w'
2920   else
2921     CYGPATH_W=echo
2922   fi
2923 fi
2924
2925
2926 # Define the identity of the package.
2927  PACKAGE='libogg'
2928  VERSION='1.3.2'
2929
2930
2931 cat >>confdefs.h <<_ACEOF
2932 #define PACKAGE "$PACKAGE"
2933 _ACEOF
2934
2935
2936 cat >>confdefs.h <<_ACEOF
2937 #define VERSION "$VERSION"
2938 _ACEOF
2939
2940 # Some tools Automake needs.
2941
2942 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2943
2944
2945 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2946
2947
2948 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2949
2950
2951 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2952
2953
2954 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2955
2956 # For better backward compatibility.  To be removed once Automake 1.9.x
2957 # dies out for good.  For more background, see:
2958 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2959 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2960 mkdir_p='$(MKDIR_P)'
2961
2962 # We need awk for the "check" target.  The system "awk" is bad on
2963 # some platforms.
2964 # Always define AMTAR for backward compatibility.  Yes, it's still used
2965 # in the wild :-(  We should find a proper way to deprecate it ...
2966 AMTAR='$${TAR-tar}'
2967
2968
2969 # We'll loop over all known methods to create a tar archive until one works.
2970 _am_tools='gnutar  pax cpio none'
2971
2972 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2973
2974
2975
2976
2977
2978
2979
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2981 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2982     # Check whether --enable-maintainer-mode was given.
2983 if test "${enable_maintainer_mode+set}" = set; then :
2984   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2985 else
2986   USE_MAINTAINER_MODE=yes
2987 fi
2988
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2990 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2991    if test $USE_MAINTAINER_MODE = yes; then
2992   MAINTAINER_MODE_TRUE=
2993   MAINTAINER_MODE_FALSE='#'
2994 else
2995   MAINTAINER_MODE_TRUE='#'
2996   MAINTAINER_MODE_FALSE=
2997 fi
2998
2999   MAINT=$MAINTAINER_MODE_TRUE
3000
3001
3002
3003
3004 LIB_CURRENT=8
3005 LIB_REVISION=2
3006 LIB_AGE=8
3007
3008
3009
3010
3011 ac_ext=c
3012 ac_cpp='$CPP $CPPFLAGS'
3013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016 if test -n "$ac_tool_prefix"; then
3017   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3018 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if ${ac_cv_prog_CC+:} false; then :
3022   $as_echo_n "(cached) " >&6
3023 else
3024   if test -n "$CC"; then
3025   ac_cv_prog_CC="$CC" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3029 do
3030   IFS=$as_save_IFS
3031   test -z "$as_dir" && as_dir=.
3032     for ac_exec_ext in '' $ac_executable_extensions; do
3033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036     break 2
3037   fi
3038 done
3039   done
3040 IFS=$as_save_IFS
3041
3042 fi
3043 fi
3044 CC=$ac_cv_prog_CC
3045 if test -n "$CC"; then
3046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3047 $as_echo "$CC" >&6; }
3048 else
3049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3051 fi
3052
3053
3054 fi
3055 if test -z "$ac_cv_prog_CC"; then
3056   ac_ct_CC=$CC
3057   # Extract the first word of "gcc", so it can be a program name with args.
3058 set dummy gcc; ac_word=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3062   $as_echo_n "(cached) " >&6
3063 else
3064   if test -n "$ac_ct_CC"; then
3065   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070   IFS=$as_save_IFS
3071   test -z "$as_dir" && as_dir=.
3072     for ac_exec_ext in '' $ac_executable_extensions; do
3073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074     ac_cv_prog_ac_ct_CC="gcc"
3075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076     break 2
3077   fi
3078 done
3079   done
3080 IFS=$as_save_IFS
3081
3082 fi
3083 fi
3084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3085 if test -n "$ac_ct_CC"; then
3086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3087 $as_echo "$ac_ct_CC" >&6; }
3088 else
3089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 fi
3092
3093   if test "x$ac_ct_CC" = x; then
3094     CC=""
3095   else
3096     case $cross_compiling:$ac_tool_warned in
3097 yes:)
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3100 ac_tool_warned=yes ;;
3101 esac
3102     CC=$ac_ct_CC
3103   fi
3104 else
3105   CC="$ac_cv_prog_CC"
3106 fi
3107
3108 if test -z "$CC"; then
3109           if test -n "$ac_tool_prefix"; then
3110     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3111 set dummy ${ac_tool_prefix}cc; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_CC+:} false; then :
3115   $as_echo_n "(cached) " >&6
3116 else
3117   if test -n "$CC"; then
3118   ac_cv_prog_CC="$CC" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123   IFS=$as_save_IFS
3124   test -z "$as_dir" && as_dir=.
3125     for ac_exec_ext in '' $ac_executable_extensions; do
3126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127     ac_cv_prog_CC="${ac_tool_prefix}cc"
3128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129     break 2
3130   fi
3131 done
3132   done
3133 IFS=$as_save_IFS
3134
3135 fi
3136 fi
3137 CC=$ac_cv_prog_CC
3138 if test -n "$CC"; then
3139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140 $as_echo "$CC" >&6; }
3141 else
3142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145
3146
3147   fi
3148 fi
3149 if test -z "$CC"; then
3150   # Extract the first word of "cc", so it can be a program name with args.
3151 set dummy cc; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if ${ac_cv_prog_CC+:} false; then :
3155   $as_echo_n "(cached) " >&6
3156 else
3157   if test -n "$CC"; then
3158   ac_cv_prog_CC="$CC" # Let the user override the test.
3159 else
3160   ac_prog_rejected=no
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164   IFS=$as_save_IFS
3165   test -z "$as_dir" && as_dir=.
3166     for ac_exec_ext in '' $ac_executable_extensions; do
3167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3169        ac_prog_rejected=yes
3170        continue
3171      fi
3172     ac_cv_prog_CC="cc"
3173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174     break 2
3175   fi
3176 done
3177   done
3178 IFS=$as_save_IFS
3179
3180 if test $ac_prog_rejected = yes; then
3181   # We found a bogon in the path, so make sure we never use it.
3182   set dummy $ac_cv_prog_CC
3183   shift
3184   if test $# != 0; then
3185     # We chose a different compiler from the bogus one.
3186     # However, it has the same basename, so the bogon will be chosen
3187     # first if we set CC to just the basename; use the full file name.
3188     shift
3189     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3190   fi
3191 fi
3192 fi
3193 fi
3194 CC=$ac_cv_prog_CC
3195 if test -n "$CC"; then
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197 $as_echo "$CC" >&6; }
3198 else
3199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 fi
3202
3203
3204 fi
3205 if test -z "$CC"; then
3206   if test -n "$ac_tool_prefix"; then
3207   for ac_prog in cl.exe
3208   do
3209     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3210 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_CC+:} false; then :
3214   $as_echo_n "(cached) " >&6
3215 else
3216   if test -n "$CC"; then
3217   ac_cv_prog_CC="$CC" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222   IFS=$as_save_IFS
3223   test -z "$as_dir" && as_dir=.
3224     for ac_exec_ext in '' $ac_executable_extensions; do
3225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228     break 2
3229   fi
3230 done
3231   done
3232 IFS=$as_save_IFS
3233
3234 fi
3235 fi
3236 CC=$ac_cv_prog_CC
3237 if test -n "$CC"; then
3238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3239 $as_echo "$CC" >&6; }
3240 else
3241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 fi
3244
3245
3246     test -n "$CC" && break
3247   done
3248 fi
3249 if test -z "$CC"; then
3250   ac_ct_CC=$CC
3251   for ac_prog in cl.exe
3252 do
3253   # Extract the first word of "$ac_prog", so it can be a program name with args.
3254 set dummy $ac_prog; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3258   $as_echo_n "(cached) " >&6
3259 else
3260   if test -n "$ac_ct_CC"; then
3261   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266   IFS=$as_save_IFS
3267   test -z "$as_dir" && as_dir=.
3268     for ac_exec_ext in '' $ac_executable_extensions; do
3269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270     ac_cv_prog_ac_ct_CC="$ac_prog"
3271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272     break 2
3273   fi
3274 done
3275   done
3276 IFS=$as_save_IFS
3277
3278 fi
3279 fi
3280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3281 if test -n "$ac_ct_CC"; then
3282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3283 $as_echo "$ac_ct_CC" >&6; }
3284 else
3285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 fi
3288
3289
3290   test -n "$ac_ct_CC" && break
3291 done
3292
3293   if test "x$ac_ct_CC" = x; then
3294     CC=""
3295   else
3296     case $cross_compiling:$ac_tool_warned in
3297 yes:)
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3300 ac_tool_warned=yes ;;
3301 esac
3302     CC=$ac_ct_CC
3303   fi
3304 fi
3305
3306 fi
3307
3308
3309 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error $? "no acceptable C compiler found in \$PATH
3312 See \`config.log' for more details" "$LINENO" 5; }
3313
3314 # Provide some information about the compiler.
3315 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3316 set X $ac_compile
3317 ac_compiler=$2
3318 for ac_option in --version -v -V -qversion; do
3319   { { ac_try="$ac_compiler $ac_option >&5"
3320 case "(($ac_try" in
3321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322   *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3327   ac_status=$?
3328   if test -s conftest.err; then
3329     sed '10a\
3330 ... rest of stderr output deleted ...
3331          10q' conftest.err >conftest.er1
3332     cat conftest.er1 >&5
3333   fi
3334   rm -f conftest.er1 conftest.err
3335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336   test $ac_status = 0; }
3337 done
3338
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h.  */
3341
3342 int
3343 main ()
3344 {
3345
3346   ;
3347   return 0;
3348 }
3349 _ACEOF
3350 ac_clean_files_save=$ac_clean_files
3351 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3352 # Try to create an executable without -o first, disregard a.out.
3353 # It will help us diagnose broken compilers, and finding out an intuition
3354 # of exeext.
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3356 $as_echo_n "checking whether the C compiler works... " >&6; }
3357 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3358
3359 # The possible output files:
3360 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3361
3362 ac_rmfiles=
3363 for ac_file in $ac_files
3364 do
3365   case $ac_file in
3366     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3367     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3368   esac
3369 done
3370 rm -f $ac_rmfiles
3371
3372 if { { ac_try="$ac_link_default"
3373 case "(($ac_try" in
3374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375   *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379   (eval "$ac_link_default") 2>&5
3380   ac_status=$?
3381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382   test $ac_status = 0; }; then :
3383   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3384 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3385 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3386 # so that the user can short-circuit this test for compilers unknown to
3387 # Autoconf.
3388 for ac_file in $ac_files ''
3389 do
3390   test -f "$ac_file" || continue
3391   case $ac_file in
3392     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3393         ;;
3394     [ab].out )
3395         # We found the default executable, but exeext='' is most
3396         # certainly right.
3397         break;;
3398     *.* )
3399         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3400         then :; else
3401            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3402         fi
3403         # We set ac_cv_exeext here because the later test for it is not
3404         # safe: cross compilers may not add the suffix if given an `-o'
3405         # argument, so we may need to know it at that point already.
3406         # Even if this section looks crufty: it has the advantage of
3407         # actually working.
3408         break;;
3409     * )
3410         break;;
3411   esac
3412 done
3413 test "$ac_cv_exeext" = no && ac_cv_exeext=
3414
3415 else
3416   ac_file=''
3417 fi
3418 if test -z "$ac_file"; then :
3419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 $as_echo "no" >&6; }
3421 $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3423
3424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426 as_fn_error 77 "C compiler cannot create executables
3427 See \`config.log' for more details" "$LINENO" 5; }
3428 else
3429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3430 $as_echo "yes" >&6; }
3431 fi
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3433 $as_echo_n "checking for C compiler default output file name... " >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3435 $as_echo "$ac_file" >&6; }
3436 ac_exeext=$ac_cv_exeext
3437
3438 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3439 ac_clean_files=$ac_clean_files_save
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3441 $as_echo_n "checking for suffix of executables... " >&6; }
3442 if { { ac_try="$ac_link"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449   (eval "$ac_link") 2>&5
3450   ac_status=$?
3451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452   test $ac_status = 0; }; then :
3453   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3454 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3455 # work properly (i.e., refer to `conftest.exe'), while it won't with
3456 # `rm'.
3457 for ac_file in conftest.exe conftest conftest.*; do
3458   test -f "$ac_file" || continue
3459   case $ac_file in
3460     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3461     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3462           break;;
3463     * ) break;;
3464   esac
3465 done
3466 else
3467   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3470 See \`config.log' for more details" "$LINENO" 5; }
3471 fi
3472 rm -f conftest conftest$ac_cv_exeext
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3474 $as_echo "$ac_cv_exeext" >&6; }
3475
3476 rm -f conftest.$ac_ext
3477 EXEEXT=$ac_cv_exeext
3478 ac_exeext=$EXEEXT
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h.  */
3481 #include <stdio.h>
3482 int
3483 main ()
3484 {
3485 FILE *f = fopen ("conftest.out", "w");
3486  return ferror (f) || fclose (f) != 0;
3487
3488   ;
3489   return 0;
3490 }
3491 _ACEOF
3492 ac_clean_files="$ac_clean_files conftest.out"
3493 # Check that the compiler produces executables we can run.  If not, either
3494 # the compiler is broken, or we cross compile.
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3496 $as_echo_n "checking whether we are cross compiling... " >&6; }
3497 if test "$cross_compiling" != yes; then
3498   { { ac_try="$ac_link"
3499 case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 $as_echo "$ac_try_echo"; } >&5
3505   (eval "$ac_link") 2>&5
3506   ac_status=$?
3507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508   test $ac_status = 0; }
3509   if { ac_try='./conftest$ac_cv_exeext'
3510   { { case "(($ac_try" in
3511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512   *) ac_try_echo=$ac_try;;
3513 esac
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516   (eval "$ac_try") 2>&5
3517   ac_status=$?
3518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519   test $ac_status = 0; }; }; then
3520     cross_compiling=no
3521   else
3522     if test "$cross_compiling" = maybe; then
3523         cross_compiling=yes
3524     else
3525         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "cannot run C compiled programs.
3528 If you meant to cross compile, use \`--host'.
3529 See \`config.log' for more details" "$LINENO" 5; }
3530     fi
3531   fi
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3534 $as_echo "$cross_compiling" >&6; }
3535
3536 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3537 ac_clean_files=$ac_clean_files_save
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3539 $as_echo_n "checking for suffix of object files... " >&6; }
3540 if ${ac_cv_objext+:} false; then :
3541   $as_echo_n "(cached) " >&6
3542 else
3543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h.  */
3545
3546 int
3547 main ()
3548 {
3549
3550   ;
3551   return 0;
3552 }
3553 _ACEOF
3554 rm -f conftest.o conftest.obj
3555 if { { ac_try="$ac_compile"
3556 case "(($ac_try" in
3557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558   *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562   (eval "$ac_compile") 2>&5
3563   ac_status=$?
3564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565   test $ac_status = 0; }; then :
3566   for ac_file in conftest.o conftest.obj conftest.*; do
3567   test -f "$ac_file" || continue;
3568   case $ac_file in
3569     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3570     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3571        break;;
3572   esac
3573 done
3574 else
3575   $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 as_fn_error $? "cannot compute suffix of object files: cannot compile
3581 See \`config.log' for more details" "$LINENO" 5; }
3582 fi
3583 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3584 fi
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3586 $as_echo "$ac_cv_objext" >&6; }
3587 OBJEXT=$ac_cv_objext
3588 ac_objext=$OBJEXT
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3590 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3591 if ${ac_cv_c_compiler_gnu+:} false; then :
3592   $as_echo_n "(cached) " >&6
3593 else
3594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h.  */
3596
3597 int
3598 main ()
3599 {
3600 #ifndef __GNUC__
3601        choke me
3602 #endif
3603
3604   ;
3605   return 0;
3606 }
3607 _ACEOF
3608 if ac_fn_c_try_compile "$LINENO"; then :
3609   ac_compiler_gnu=yes
3610 else
3611   ac_compiler_gnu=no
3612 fi
3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3615
3616 fi
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3618 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3619 if test $ac_compiler_gnu = yes; then
3620   GCC=yes
3621 else
3622   GCC=
3623 fi
3624 ac_test_CFLAGS=${CFLAGS+set}
3625 ac_save_CFLAGS=$CFLAGS
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3627 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3628 if ${ac_cv_prog_cc_g+:} false; then :
3629   $as_echo_n "(cached) " >&6
3630 else
3631   ac_save_c_werror_flag=$ac_c_werror_flag
3632    ac_c_werror_flag=yes
3633    ac_cv_prog_cc_g=no
3634    CFLAGS="-g"
3635    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h.  */
3637
3638 int
3639 main ()
3640 {
3641
3642   ;
3643   return 0;
3644 }
3645 _ACEOF
3646 if ac_fn_c_try_compile "$LINENO"; then :
3647   ac_cv_prog_cc_g=yes
3648 else
3649   CFLAGS=""
3650       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h.  */
3652
3653 int
3654 main ()
3655 {
3656
3657   ;
3658   return 0;
3659 }
3660 _ACEOF
3661 if ac_fn_c_try_compile "$LINENO"; then :
3662
3663 else
3664   ac_c_werror_flag=$ac_save_c_werror_flag
3665          CFLAGS="-g"
3666          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h.  */
3668
3669 int
3670 main ()
3671 {
3672
3673   ;
3674   return 0;
3675 }
3676 _ACEOF
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678   ac_cv_prog_cc_g=yes
3679 fi
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 fi
3682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683 fi
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685    ac_c_werror_flag=$ac_save_c_werror_flag
3686 fi
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3688 $as_echo "$ac_cv_prog_cc_g" >&6; }
3689 if test "$ac_test_CFLAGS" = set; then
3690   CFLAGS=$ac_save_CFLAGS
3691 elif test $ac_cv_prog_cc_g = yes; then
3692   if test "$GCC" = yes; then
3693     CFLAGS="-g -O2"
3694   else
3695     CFLAGS="-g"
3696   fi
3697 else
3698   if test "$GCC" = yes; then
3699     CFLAGS="-O2"
3700   else
3701     CFLAGS=
3702   fi
3703 fi
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3705 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3706 if ${ac_cv_prog_cc_c89+:} false; then :
3707   $as_echo_n "(cached) " >&6
3708 else
3709   ac_cv_prog_cc_c89=no
3710 ac_save_CC=$CC
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h.  */
3713 #include <stdarg.h>
3714 #include <stdio.h>
3715 struct stat;
3716 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3717 struct buf { int x; };
3718 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3719 static char *e (p, i)
3720      char **p;
3721      int i;
3722 {
3723   return p[i];
3724 }
3725 static char *f (char * (*g) (char **, int), char **p, ...)
3726 {
3727   char *s;
3728   va_list v;
3729   va_start (v,p);
3730   s = g (p, va_arg (v,int));
3731   va_end (v);
3732   return s;
3733 }
3734
3735 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3736    function prototypes and stuff, but not '\xHH' hex character constants.
3737    These don't provoke an error unfortunately, instead are silently treated
3738    as 'x'.  The following induces an error, until -std is added to get
3739    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3740    array size at least.  It's necessary to write '\x00'==0 to get something
3741    that's true only with -std.  */
3742 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3743
3744 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3745    inside strings and character constants.  */
3746 #define FOO(x) 'x'
3747 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3748
3749 int test (int i, double x);
3750 struct s1 {int (*f) (int a);};
3751 struct s2 {int (*f) (double a);};
3752 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3753 int argc;
3754 char **argv;
3755 int
3756 main ()
3757 {
3758 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3759   ;
3760   return 0;
3761 }
3762 _ACEOF
3763 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3764         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3765 do
3766   CC="$ac_save_CC $ac_arg"
3767   if ac_fn_c_try_compile "$LINENO"; then :
3768   ac_cv_prog_cc_c89=$ac_arg
3769 fi
3770 rm -f core conftest.err conftest.$ac_objext
3771   test "x$ac_cv_prog_cc_c89" != "xno" && break
3772 done
3773 rm -f conftest.$ac_ext
3774 CC=$ac_save_CC
3775
3776 fi
3777 # AC_CACHE_VAL
3778 case "x$ac_cv_prog_cc_c89" in
3779   x)
3780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3781 $as_echo "none needed" >&6; } ;;
3782   xno)
3783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3784 $as_echo "unsupported" >&6; } ;;
3785   *)
3786     CC="$CC $ac_cv_prog_cc_c89"
3787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3788 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3789 esac
3790 if test "x$ac_cv_prog_cc_c89" != xno; then :
3791
3792 fi
3793
3794 ac_ext=c
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799 DEPDIR="${am__leading_dot}deps"
3800
3801 ac_config_commands="$ac_config_commands depfiles"
3802
3803
3804 am_make=${MAKE-make}
3805 cat > confinc << 'END'
3806 am__doit:
3807         @echo this is the am__doit target
3808 .PHONY: am__doit
3809 END
3810 # If we don't find an include directive, just comment out the code.
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3812 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3813 am__include="#"
3814 am__quote=
3815 _am_result=none
3816 # First try GNU make style include.
3817 echo "include confinc" > confmf
3818 # Ignore all kinds of additional output from 'make'.
3819 case `$am_make -s -f confmf 2> /dev/null` in #(
3820 *the\ am__doit\ target*)
3821   am__include=include
3822   am__quote=
3823   _am_result=GNU
3824   ;;
3825 esac
3826 # Now try BSD make style include.
3827 if test "$am__include" = "#"; then
3828    echo '.include "confinc"' > confmf
3829    case `$am_make -s -f confmf 2> /dev/null` in #(
3830    *the\ am__doit\ target*)
3831      am__include=.include
3832      am__quote="\""
3833      _am_result=BSD
3834      ;;
3835    esac
3836 fi
3837
3838
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3840 $as_echo "$_am_result" >&6; }
3841 rm -f confinc confmf
3842
3843 # Check whether --enable-dependency-tracking was given.
3844 if test "${enable_dependency_tracking+set}" = set; then :
3845   enableval=$enable_dependency_tracking;
3846 fi
3847
3848 if test "x$enable_dependency_tracking" != xno; then
3849   am_depcomp="$ac_aux_dir/depcomp"
3850   AMDEPBACKSLASH='\'
3851   am__nodep='_no'
3852 fi
3853  if test "x$enable_dependency_tracking" != xno; then
3854   AMDEP_TRUE=
3855   AMDEP_FALSE='#'
3856 else
3857   AMDEP_TRUE='#'
3858   AMDEP_FALSE=
3859 fi
3860
3861
3862
3863 depcc="$CC"   am_compiler_list=
3864
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3866 $as_echo_n "checking dependency style of $depcc... " >&6; }
3867 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3868   $as_echo_n "(cached) " >&6
3869 else
3870   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3871   # We make a subdir and do the tests there.  Otherwise we can end up
3872   # making bogus files that we don't know about and never remove.  For
3873   # instance it was reported that on HP-UX the gcc test will end up
3874   # making a dummy file named 'D' -- because '-MD' means "put the output
3875   # in D".
3876   rm -rf conftest.dir
3877   mkdir conftest.dir
3878   # Copy depcomp to subdir because otherwise we won't find it if we're
3879   # using a relative directory.
3880   cp "$am_depcomp" conftest.dir
3881   cd conftest.dir
3882   # We will build objects and dependencies in a subdirectory because
3883   # it helps to detect inapplicable dependency modes.  For instance
3884   # both Tru64's cc and ICC support -MD to output dependencies as a
3885   # side effect of compilation, but ICC will put the dependencies in
3886   # the current directory while Tru64 will put them in the object
3887   # directory.
3888   mkdir sub
3889
3890   am_cv_CC_dependencies_compiler_type=none
3891   if test "$am_compiler_list" = ""; then
3892      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3893   fi
3894   am__universal=false
3895   case " $depcc " in #(
3896      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3897      esac
3898
3899   for depmode in $am_compiler_list; do
3900     # Setup a source with many dependencies, because some compilers
3901     # like to wrap large dependency lists on column 80 (with \), and
3902     # we should not choose a depcomp mode which is confused by this.
3903     #
3904     # We need to recreate these files for each test, as the compiler may
3905     # overwrite some of them when testing with obscure command lines.
3906     # This happens at least with the AIX C compiler.
3907     : > sub/conftest.c
3908     for i in 1 2 3 4 5 6; do
3909       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3910       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3911       # Solaris 10 /bin/sh.
3912       echo '/* dummy */' > sub/conftst$i.h
3913     done
3914     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3915
3916     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3917     # mode.  It turns out that the SunPro C++ compiler does not properly
3918     # handle '-M -o', and we need to detect this.  Also, some Intel
3919     # versions had trouble with output in subdirs.
3920     am__obj=sub/conftest.${OBJEXT-o}
3921     am__minus_obj="-o $am__obj"
3922     case $depmode in
3923     gcc)
3924       # This depmode causes a compiler race in universal mode.
3925       test "$am__universal" = false || continue
3926       ;;
3927     nosideeffect)
3928       # After this tag, mechanisms are not by side-effect, so they'll
3929       # only be used when explicitly requested.
3930       if test "x$enable_dependency_tracking" = xyes; then
3931         continue
3932       else
3933         break
3934       fi
3935       ;;
3936     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3937       # This compiler won't grok '-c -o', but also, the minuso test has
3938       # not run yet.  These depmodes are late enough in the game, and
3939       # so weak that their functioning should not be impacted.
3940       am__obj=conftest.${OBJEXT-o}
3941       am__minus_obj=
3942       ;;
3943     none) break ;;
3944     esac
3945     if depmode=$depmode \
3946        source=sub/conftest.c object=$am__obj \
3947        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3948        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3949          >/dev/null 2>conftest.err &&
3950        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3951        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3952        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3953        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3954       # icc doesn't choke on unknown options, it will just issue warnings
3955       # or remarks (even with -Werror).  So we grep stderr for any message
3956       # that says an option was ignored or not supported.
3957       # When given -MP, icc 7.0 and 7.1 complain thusly:
3958       #   icc: Command line warning: ignoring option '-M'; no argument required
3959       # The diagnosis changed in icc 8.0:
3960       #   icc: Command line remark: option '-MP' not supported
3961       if (grep 'ignoring option' conftest.err ||
3962           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3963         am_cv_CC_dependencies_compiler_type=$depmode
3964         break
3965       fi
3966     fi
3967   done
3968
3969   cd ..
3970   rm -rf conftest.dir
3971 else
3972   am_cv_CC_dependencies_compiler_type=none
3973 fi
3974
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3977 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3978 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3979
3980  if
3981   test "x$enable_dependency_tracking" != xno \
3982   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3983   am__fastdepCC_TRUE=
3984   am__fastdepCC_FALSE='#'
3985 else
3986   am__fastdepCC_TRUE='#'
3987   am__fastdepCC_FALSE=
3988 fi
3989
3990
3991 case `pwd` in
3992   *\ * | *\     *)
3993     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3994 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3995 esac
3996
3997
3998
3999 macro_version='2.4.2'
4000 macro_revision='1.3337'
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014 ltmain="$ac_aux_dir/ltmain.sh"
4015
4016 # Make sure we can run config.sub.
4017 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4018   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4019
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4021 $as_echo_n "checking build system type... " >&6; }
4022 if ${ac_cv_build+:} false; then :
4023   $as_echo_n "(cached) " >&6
4024 else
4025   ac_build_alias=$build_alias
4026 test "x$ac_build_alias" = x &&
4027   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4028 test "x$ac_build_alias" = x &&
4029   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4030 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4031   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4032
4033 fi
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4035 $as_echo "$ac_cv_build" >&6; }
4036 case $ac_cv_build in
4037 *-*-*) ;;
4038 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4039 esac
4040 build=$ac_cv_build
4041 ac_save_IFS=$IFS; IFS='-'
4042 set x $ac_cv_build
4043 shift
4044 build_cpu=$1
4045 build_vendor=$2
4046 shift; shift
4047 # Remember, the first character of IFS is used to create $*,
4048 # except with old shells:
4049 build_os=$*
4050 IFS=$ac_save_IFS
4051 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4052
4053
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4055 $as_echo_n "checking host system type... " >&6; }
4056 if ${ac_cv_host+:} false; then :
4057   $as_echo_n "(cached) " >&6
4058 else
4059   if test "x$host_alias" = x; then
4060   ac_cv_host=$ac_cv_build
4061 else
4062   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4063     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4064 fi
4065
4066 fi
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4068 $as_echo "$ac_cv_host" >&6; }
4069 case $ac_cv_host in
4070 *-*-*) ;;
4071 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4072 esac
4073 host=$ac_cv_host
4074 ac_save_IFS=$IFS; IFS='-'
4075 set x $ac_cv_host
4076 shift
4077 host_cpu=$1
4078 host_vendor=$2
4079 shift; shift
4080 # Remember, the first character of IFS is used to create $*,
4081 # except with old shells:
4082 host_os=$*
4083 IFS=$ac_save_IFS
4084 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4085
4086
4087 # Backslashify metacharacters that are still active within
4088 # double-quoted strings.
4089 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4090
4091 # Same as above, but do not quote variable references.
4092 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4093
4094 # Sed substitution to delay expansion of an escaped shell variable in a
4095 # double_quote_subst'ed string.
4096 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4097
4098 # Sed substitution to delay expansion of an escaped single quote.
4099 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4100
4101 # Sed substitution to avoid accidental globbing in evaled expressions
4102 no_glob_subst='s/\*/\\\*/g'
4103
4104 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4105 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4106 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4107
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4109 $as_echo_n "checking how to print strings... " >&6; }
4110 # Test print first, because it will be a builtin if present.
4111 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4112    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4113   ECHO='print -r --'
4114 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4115   ECHO='printf %s\n'
4116 else
4117   # Use this function as a fallback that always works.
4118   func_fallback_echo ()
4119   {
4120     eval 'cat <<_LTECHO_EOF
4121 $1
4122 _LTECHO_EOF'
4123   }
4124   ECHO='func_fallback_echo'
4125 fi
4126
4127 # func_echo_all arg...
4128 # Invoke $ECHO with all args, space-separated.
4129 func_echo_all ()
4130 {
4131     $ECHO ""
4132 }
4133
4134 case "$ECHO" in
4135   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4136 $as_echo "printf" >&6; } ;;
4137   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4138 $as_echo "print -r" >&6; } ;;
4139   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4140 $as_echo "cat" >&6; } ;;
4141 esac
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4157 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4158 if ${ac_cv_path_SED+:} false; then :
4159   $as_echo_n "(cached) " >&6
4160 else
4161             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4162      for ac_i in 1 2 3 4 5 6 7; do
4163        ac_script="$ac_script$as_nl$ac_script"
4164      done
4165      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4166      { ac_script=; unset ac_script;}
4167      if test -z "$SED"; then
4168   ac_path_SED_found=false
4169   # Loop through the user's path and test for each of PROGNAME-LIST
4170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173   IFS=$as_save_IFS
4174   test -z "$as_dir" && as_dir=.
4175     for ac_prog in sed gsed; do
4176     for ac_exec_ext in '' $ac_executable_extensions; do
4177       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4178       as_fn_executable_p "$ac_path_SED" || continue
4179 # Check for GNU ac_path_SED and select it if it is found.
4180   # Check for GNU $ac_path_SED
4181 case `"$ac_path_SED" --version 2>&1` in
4182 *GNU*)
4183   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4184 *)
4185   ac_count=0
4186   $as_echo_n 0123456789 >"conftest.in"
4187   while :
4188   do
4189     cat "conftest.in" "conftest.in" >"conftest.tmp"
4190     mv "conftest.tmp" "conftest.in"
4191     cp "conftest.in" "conftest.nl"
4192     $as_echo '' >> "conftest.nl"
4193     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4194     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4195     as_fn_arith $ac_count + 1 && ac_count=$as_val
4196     if test $ac_count -gt ${ac_path_SED_max-0}; then
4197       # Best one so far, save it but keep looking for a better one
4198       ac_cv_path_SED="$ac_path_SED"
4199       ac_path_SED_max=$ac_count
4200     fi
4201     # 10*(2^10) chars as input seems more than enough
4202     test $ac_count -gt 10 && break
4203   done
4204   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205 esac
4206
4207       $ac_path_SED_found && break 3
4208     done
4209   done
4210   done
4211 IFS=$as_save_IFS
4212   if test -z "$ac_cv_path_SED"; then
4213     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4214   fi
4215 else
4216   ac_cv_path_SED=$SED
4217 fi
4218
4219 fi
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4221 $as_echo "$ac_cv_path_SED" >&6; }
4222  SED="$ac_cv_path_SED"
4223   rm -f conftest.sed
4224
4225 test -z "$SED" && SED=sed
4226 Xsed="$SED -e 1s/^X//"
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4239 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4240 if ${ac_cv_path_GREP+:} false; then :
4241   $as_echo_n "(cached) " >&6
4242 else
4243   if test -z "$GREP"; then
4244   ac_path_GREP_found=false
4245   # Loop through the user's path and test for each of PROGNAME-LIST
4246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4248 do
4249   IFS=$as_save_IFS
4250   test -z "$as_dir" && as_dir=.
4251     for ac_prog in grep ggrep; do
4252     for ac_exec_ext in '' $ac_executable_extensions; do
4253       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4254       as_fn_executable_p "$ac_path_GREP" || continue
4255 # Check for GNU ac_path_GREP and select it if it is found.
4256   # Check for GNU $ac_path_GREP
4257 case `"$ac_path_GREP" --version 2>&1` in
4258 *GNU*)
4259   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4260 *)
4261   ac_count=0
4262   $as_echo_n 0123456789 >"conftest.in"
4263   while :
4264   do
4265     cat "conftest.in" "conftest.in" >"conftest.tmp"
4266     mv "conftest.tmp" "conftest.in"
4267     cp "conftest.in" "conftest.nl"
4268     $as_echo 'GREP' >> "conftest.nl"
4269     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4270     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4271     as_fn_arith $ac_count + 1 && ac_count=$as_val
4272     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4273       # Best one so far, save it but keep looking for a better one
4274       ac_cv_path_GREP="$ac_path_GREP"
4275       ac_path_GREP_max=$ac_count
4276     fi
4277     # 10*(2^10) chars as input seems more than enough
4278     test $ac_count -gt 10 && break
4279   done
4280   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4281 esac
4282
4283       $ac_path_GREP_found && break 3
4284     done
4285   done
4286   done
4287 IFS=$as_save_IFS
4288   if test -z "$ac_cv_path_GREP"; then
4289     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4290   fi
4291 else
4292   ac_cv_path_GREP=$GREP
4293 fi
4294
4295 fi
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4297 $as_echo "$ac_cv_path_GREP" >&6; }
4298  GREP="$ac_cv_path_GREP"
4299
4300
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4302 $as_echo_n "checking for egrep... " >&6; }
4303 if ${ac_cv_path_EGREP+:} false; then :
4304   $as_echo_n "(cached) " >&6
4305 else
4306   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4307    then ac_cv_path_EGREP="$GREP -E"
4308    else
4309      if test -z "$EGREP"; then
4310   ac_path_EGREP_found=false
4311   # Loop through the user's path and test for each of PROGNAME-LIST
4312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4314 do
4315   IFS=$as_save_IFS
4316   test -z "$as_dir" && as_dir=.
4317     for ac_prog in egrep; do
4318     for ac_exec_ext in '' $ac_executable_extensions; do
4319       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4320       as_fn_executable_p "$ac_path_EGREP" || continue
4321 # Check for GNU ac_path_EGREP and select it if it is found.
4322   # Check for GNU $ac_path_EGREP
4323 case `"$ac_path_EGREP" --version 2>&1` in
4324 *GNU*)
4325   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4326 *)
4327   ac_count=0
4328   $as_echo_n 0123456789 >"conftest.in"
4329   while :
4330   do
4331     cat "conftest.in" "conftest.in" >"conftest.tmp"
4332     mv "conftest.tmp" "conftest.in"
4333     cp "conftest.in" "conftest.nl"
4334     $as_echo 'EGREP' >> "conftest.nl"
4335     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4336     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4337     as_fn_arith $ac_count + 1 && ac_count=$as_val
4338     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4339       # Best one so far, save it but keep looking for a better one
4340       ac_cv_path_EGREP="$ac_path_EGREP"
4341       ac_path_EGREP_max=$ac_count
4342     fi
4343     # 10*(2^10) chars as input seems more than enough
4344     test $ac_count -gt 10 && break
4345   done
4346   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4347 esac
4348
4349       $ac_path_EGREP_found && break 3
4350     done
4351   done
4352   done
4353 IFS=$as_save_IFS
4354   if test -z "$ac_cv_path_EGREP"; then
4355     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4356   fi
4357 else
4358   ac_cv_path_EGREP=$EGREP
4359 fi
4360
4361    fi
4362 fi
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4364 $as_echo "$ac_cv_path_EGREP" >&6; }
4365  EGREP="$ac_cv_path_EGREP"
4366
4367
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4369 $as_echo_n "checking for fgrep... " >&6; }
4370 if ${ac_cv_path_FGREP+:} false; then :
4371   $as_echo_n "(cached) " >&6
4372 else
4373   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4374    then ac_cv_path_FGREP="$GREP -F"
4375    else
4376      if test -z "$FGREP"; then
4377   ac_path_FGREP_found=false
4378   # Loop through the user's path and test for each of PROGNAME-LIST
4379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4381 do
4382   IFS=$as_save_IFS
4383   test -z "$as_dir" && as_dir=.
4384     for ac_prog in fgrep; do
4385     for ac_exec_ext in '' $ac_executable_extensions; do
4386       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4387       as_fn_executable_p "$ac_path_FGREP" || continue
4388 # Check for GNU ac_path_FGREP and select it if it is found.
4389   # Check for GNU $ac_path_FGREP
4390 case `"$ac_path_FGREP" --version 2>&1` in
4391 *GNU*)
4392   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4393 *)
4394   ac_count=0
4395   $as_echo_n 0123456789 >"conftest.in"
4396   while :
4397   do
4398     cat "conftest.in" "conftest.in" >"conftest.tmp"
4399     mv "conftest.tmp" "conftest.in"
4400     cp "conftest.in" "conftest.nl"
4401     $as_echo 'FGREP' >> "conftest.nl"
4402     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4403     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4404     as_fn_arith $ac_count + 1 && ac_count=$as_val
4405     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4406       # Best one so far, save it but keep looking for a better one
4407       ac_cv_path_FGREP="$ac_path_FGREP"
4408       ac_path_FGREP_max=$ac_count
4409     fi
4410     # 10*(2^10) chars as input seems more than enough
4411     test $ac_count -gt 10 && break
4412   done
4413   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4414 esac
4415
4416       $ac_path_FGREP_found && break 3
4417     done
4418   done
4419   done
4420 IFS=$as_save_IFS
4421   if test -z "$ac_cv_path_FGREP"; then
4422     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4423   fi
4424 else
4425   ac_cv_path_FGREP=$FGREP
4426 fi
4427
4428    fi
4429 fi
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4431 $as_echo "$ac_cv_path_FGREP" >&6; }
4432  FGREP="$ac_cv_path_FGREP"
4433
4434
4435 test -z "$GREP" && GREP=grep
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455 # Check whether --with-gnu-ld was given.
4456 if test "${with_gnu_ld+set}" = set; then :
4457   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4458 else
4459   with_gnu_ld=no
4460 fi
4461
4462 ac_prog=ld
4463 if test "$GCC" = yes; then
4464   # Check if gcc -print-prog-name=ld gives a path.
4465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4466 $as_echo_n "checking for ld used by $CC... " >&6; }
4467   case $host in
4468   *-*-mingw*)
4469     # gcc leaves a trailing carriage return which upsets mingw
4470     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4471   *)
4472     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4473   esac
4474   case $ac_prog in
4475     # Accept absolute paths.
4476     [\\/]* | ?:[\\/]*)
4477       re_direlt='/[^/][^/]*/\.\./'
4478       # Canonicalize the pathname of ld
4479       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4480       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4481         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4482       done
4483       test -z "$LD" && LD="$ac_prog"
4484       ;;
4485   "")
4486     # If it fails, then pretend we aren't using GCC.
4487     ac_prog=ld
4488     ;;
4489   *)
4490     # If it is relative, then search for the first ld in PATH.
4491     with_gnu_ld=unknown
4492     ;;
4493   esac
4494 elif test "$with_gnu_ld" = yes; then
4495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4496 $as_echo_n "checking for GNU ld... " >&6; }
4497 else
4498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4499 $as_echo_n "checking for non-GNU ld... " >&6; }
4500 fi
4501 if ${lt_cv_path_LD+:} false; then :
4502   $as_echo_n "(cached) " >&6
4503 else
4504   if test -z "$LD"; then
4505   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4506   for ac_dir in $PATH; do
4507     IFS="$lt_save_ifs"
4508     test -z "$ac_dir" && ac_dir=.
4509     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4510       lt_cv_path_LD="$ac_dir/$ac_prog"
4511       # Check to see if the program is GNU ld.  I'd rather use --version,
4512       # but apparently some variants of GNU ld only accept -v.
4513       # Break only if it was the GNU/non-GNU ld that we prefer.
4514       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4515       *GNU* | *'with BFD'*)
4516         test "$with_gnu_ld" != no && break
4517         ;;
4518       *)
4519         test "$with_gnu_ld" != yes && break
4520         ;;
4521       esac
4522     fi
4523   done
4524   IFS="$lt_save_ifs"
4525 else
4526   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4527 fi
4528 fi
4529
4530 LD="$lt_cv_path_LD"
4531 if test -n "$LD"; then
4532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4533 $as_echo "$LD" >&6; }
4534 else
4535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4537 fi
4538 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4540 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4541 if ${lt_cv_prog_gnu_ld+:} false; then :
4542   $as_echo_n "(cached) " >&6
4543 else
4544   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4545 case `$LD -v 2>&1 </dev/null` in
4546 *GNU* | *'with BFD'*)
4547   lt_cv_prog_gnu_ld=yes
4548   ;;
4549 *)
4550   lt_cv_prog_gnu_ld=no
4551   ;;
4552 esac
4553 fi
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4555 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4556 with_gnu_ld=$lt_cv_prog_gnu_ld
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4567 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4568 if ${lt_cv_path_NM+:} false; then :
4569   $as_echo_n "(cached) " >&6
4570 else
4571   if test -n "$NM"; then
4572   # Let the user override the test.
4573   lt_cv_path_NM="$NM"
4574 else
4575   lt_nm_to_check="${ac_tool_prefix}nm"
4576   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4577     lt_nm_to_check="$lt_nm_to_check nm"
4578   fi
4579   for lt_tmp_nm in $lt_nm_to_check; do
4580     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4581     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4582       IFS="$lt_save_ifs"
4583       test -z "$ac_dir" && ac_dir=.
4584       tmp_nm="$ac_dir/$lt_tmp_nm"
4585       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4586         # Check to see if the nm accepts a BSD-compat flag.
4587         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4588         #   nm: unknown option "B" ignored
4589         # Tru64's nm complains that /dev/null is an invalid object file
4590         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4591         */dev/null* | *'Invalid file or object type'*)
4592           lt_cv_path_NM="$tmp_nm -B"
4593           break
4594           ;;
4595         *)
4596           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4597           */dev/null*)
4598             lt_cv_path_NM="$tmp_nm -p"
4599             break
4600             ;;
4601           *)
4602             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4603             continue # so that we can try to find one that supports BSD flags
4604             ;;
4605           esac
4606           ;;
4607         esac
4608       fi
4609     done
4610     IFS="$lt_save_ifs"
4611   done
4612   : ${lt_cv_path_NM=no}
4613 fi
4614 fi
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4616 $as_echo "$lt_cv_path_NM" >&6; }
4617 if test "$lt_cv_path_NM" != "no"; then
4618   NM="$lt_cv_path_NM"
4619 else
4620   # Didn't find any BSD compatible name lister, look for dumpbin.
4621   if test -n "$DUMPBIN"; then :
4622     # Let the user override the test.
4623   else
4624     if test -n "$ac_tool_prefix"; then
4625   for ac_prog in dumpbin "link -dump"
4626   do
4627     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if ${ac_cv_prog_DUMPBIN+:} false; then :
4632   $as_echo_n "(cached) " >&6
4633 else
4634   if test -n "$DUMPBIN"; then
4635   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640   IFS=$as_save_IFS
4641   test -z "$as_dir" && as_dir=.
4642     for ac_exec_ext in '' $ac_executable_extensions; do
4643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646     break 2
4647   fi
4648 done
4649   done
4650 IFS=$as_save_IFS
4651
4652 fi
4653 fi
4654 DUMPBIN=$ac_cv_prog_DUMPBIN
4655 if test -n "$DUMPBIN"; then
4656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4657 $as_echo "$DUMPBIN" >&6; }
4658 else
4659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4661 fi
4662
4663
4664     test -n "$DUMPBIN" && break
4665   done
4666 fi
4667 if test -z "$DUMPBIN"; then
4668   ac_ct_DUMPBIN=$DUMPBIN
4669   for ac_prog in dumpbin "link -dump"
4670 do
4671   # Extract the first word of "$ac_prog", so it can be a program name with args.
4672 set dummy $ac_prog; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4676   $as_echo_n "(cached) " >&6
4677 else
4678   if test -n "$ac_ct_DUMPBIN"; then
4679   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4683 do
4684   IFS=$as_save_IFS
4685   test -z "$as_dir" && as_dir=.
4686     for ac_exec_ext in '' $ac_executable_extensions; do
4687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4688     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690     break 2
4691   fi
4692 done
4693   done
4694 IFS=$as_save_IFS
4695
4696 fi
4697 fi
4698 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4699 if test -n "$ac_ct_DUMPBIN"; then
4700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4701 $as_echo "$ac_ct_DUMPBIN" >&6; }
4702 else
4703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4705 fi
4706
4707
4708   test -n "$ac_ct_DUMPBIN" && break
4709 done
4710
4711   if test "x$ac_ct_DUMPBIN" = x; then
4712     DUMPBIN=":"
4713   else
4714     case $cross_compiling:$ac_tool_warned in
4715 yes:)
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4718 ac_tool_warned=yes ;;
4719 esac
4720     DUMPBIN=$ac_ct_DUMPBIN
4721   fi
4722 fi
4723
4724     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4725     *COFF*)
4726       DUMPBIN="$DUMPBIN -symbols"
4727       ;;
4728     *)
4729       DUMPBIN=:
4730       ;;
4731     esac
4732   fi
4733
4734   if test "$DUMPBIN" != ":"; then
4735     NM="$DUMPBIN"
4736   fi
4737 fi
4738 test -z "$NM" && NM=nm
4739
4740
4741
4742
4743
4744
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4746 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4747 if ${lt_cv_nm_interface+:} false; then :
4748   $as_echo_n "(cached) " >&6
4749 else
4750   lt_cv_nm_interface="BSD nm"
4751   echo "int some_variable = 0;" > conftest.$ac_ext
4752   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4753   (eval "$ac_compile" 2>conftest.err)
4754   cat conftest.err >&5
4755   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4756   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4757   cat conftest.err >&5
4758   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4759   cat conftest.out >&5
4760   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4761     lt_cv_nm_interface="MS dumpbin"
4762   fi
4763   rm -f conftest*
4764 fi
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4766 $as_echo "$lt_cv_nm_interface" >&6; }
4767
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4769 $as_echo_n "checking whether ln -s works... " >&6; }
4770 LN_S=$as_ln_s
4771 if test "$LN_S" = "ln -s"; then
4772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4773 $as_echo "yes" >&6; }
4774 else
4775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4776 $as_echo "no, using $LN_S" >&6; }
4777 fi
4778
4779 # find the maximum length of command line arguments
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4781 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4782 if ${lt_cv_sys_max_cmd_len+:} false; then :
4783   $as_echo_n "(cached) " >&6
4784 else
4785     i=0
4786   teststring="ABCD"
4787
4788   case $build_os in
4789   msdosdjgpp*)
4790     # On DJGPP, this test can blow up pretty badly due to problems in libc
4791     # (any single argument exceeding 2000 bytes causes a buffer overrun
4792     # during glob expansion).  Even if it were fixed, the result of this
4793     # check would be larger than it should be.
4794     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4795     ;;
4796
4797   gnu*)
4798     # Under GNU Hurd, this test is not required because there is
4799     # no limit to the length of command line arguments.
4800     # Libtool will interpret -1 as no limit whatsoever
4801     lt_cv_sys_max_cmd_len=-1;
4802     ;;
4803
4804   cygwin* | mingw* | cegcc*)
4805     # On Win9x/ME, this test blows up -- it succeeds, but takes
4806     # about 5 minutes as the teststring grows exponentially.
4807     # Worse, since 9x/ME are not pre-emptively multitasking,
4808     # you end up with a "frozen" computer, even though with patience
4809     # the test eventually succeeds (with a max line length of 256k).
4810     # Instead, let's just punt: use the minimum linelength reported by
4811     # all of the supported platforms: 8192 (on NT/2K/XP).
4812     lt_cv_sys_max_cmd_len=8192;
4813     ;;
4814
4815   mint*)
4816     # On MiNT this can take a long time and run out of memory.
4817     lt_cv_sys_max_cmd_len=8192;
4818     ;;
4819
4820   amigaos*)
4821     # On AmigaOS with pdksh, this test takes hours, literally.
4822     # So we just punt and use a minimum line length of 8192.
4823     lt_cv_sys_max_cmd_len=8192;
4824     ;;
4825
4826   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4827     # This has been around since 386BSD, at least.  Likely further.
4828     if test -x /sbin/sysctl; then
4829       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4830     elif test -x /usr/sbin/sysctl; then
4831       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4832     else
4833       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4834     fi
4835     # And add a safety zone
4836     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4837     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4838     ;;
4839
4840   interix*)
4841     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4842     lt_cv_sys_max_cmd_len=196608
4843     ;;
4844
4845   os2*)
4846     # The test takes a long time on OS/2.
4847     lt_cv_sys_max_cmd_len=8192
4848     ;;
4849
4850   osf*)
4851     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4852     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4853     # nice to cause kernel panics so lets avoid the loop below.
4854     # First set a reasonable default.
4855     lt_cv_sys_max_cmd_len=16384
4856     #
4857     if test -x /sbin/sysconfig; then
4858       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4859         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4860       esac
4861     fi
4862     ;;
4863   sco3.2v5*)
4864     lt_cv_sys_max_cmd_len=102400
4865     ;;
4866   sysv5* | sco5v6* | sysv4.2uw2*)
4867     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4868     if test -n "$kargmax"; then
4869       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4870     else
4871       lt_cv_sys_max_cmd_len=32768
4872     fi
4873     ;;
4874   *)
4875     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4876     if test -n "$lt_cv_sys_max_cmd_len"; then
4877       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4878       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4879     else
4880       # Make teststring a little bigger before we do anything with it.
4881       # a 1K string should be a reasonable start.
4882       for i in 1 2 3 4 5 6 7 8 ; do
4883         teststring=$teststring$teststring
4884       done
4885       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4886       # If test is not a shell built-in, we'll probably end up computing a
4887       # maximum length that is only half of the actual maximum length, but
4888       # we can't tell.
4889       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4890                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4891               test $i != 17 # 1/2 MB should be enough
4892       do
4893         i=`expr $i + 1`
4894         teststring=$teststring$teststring
4895       done
4896       # Only check the string length outside the loop.
4897       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4898       teststring=
4899       # Add a significant safety factor because C++ compilers can tack on
4900       # massive amounts of additional arguments before passing them to the
4901       # linker.  It appears as though 1/2 is a usable value.
4902       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4903     fi
4904     ;;
4905   esac
4906
4907 fi
4908
4909 if test -n $lt_cv_sys_max_cmd_len ; then
4910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4911 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4912 else
4913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4914 $as_echo "none" >&6; }
4915 fi
4916 max_cmd_len=$lt_cv_sys_max_cmd_len
4917
4918
4919
4920
4921
4922
4923 : ${CP="cp -f"}
4924 : ${MV="mv -f"}
4925 : ${RM="rm -f"}
4926
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4928 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4929 # Try some XSI features
4930 xsi_shell=no
4931 ( _lt_dummy="a/b/c"
4932   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4933       = c,a/b,b/c, \
4934     && eval 'test $(( 1 + 1 )) -eq 2 \
4935     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4936   && xsi_shell=yes
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4938 $as_echo "$xsi_shell" >&6; }
4939
4940
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4942 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4943 lt_shell_append=no
4944 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4945     >/dev/null 2>&1 \
4946   && lt_shell_append=yes
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4948 $as_echo "$lt_shell_append" >&6; }
4949
4950
4951 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4952   lt_unset=unset
4953 else
4954   lt_unset=false
4955 fi
4956
4957
4958
4959
4960
4961 # test EBCDIC or ASCII
4962 case `echo X|tr X '\101'` in
4963  A) # ASCII based system
4964     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4965   lt_SP2NL='tr \040 \012'
4966   lt_NL2SP='tr \015\012 \040\040'
4967   ;;
4968  *) # EBCDIC based system
4969   lt_SP2NL='tr \100 \n'
4970   lt_NL2SP='tr \r\n \100\100'
4971   ;;
4972 esac
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4983 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4984 if ${lt_cv_to_host_file_cmd+:} false; then :
4985   $as_echo_n "(cached) " >&6
4986 else
4987   case $host in
4988   *-*-mingw* )
4989     case $build in
4990       *-*-mingw* ) # actually msys
4991         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4992         ;;
4993       *-*-cygwin* )
4994         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4995         ;;
4996       * ) # otherwise, assume *nix
4997         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4998         ;;
4999     esac
5000     ;;
5001   *-*-cygwin* )
5002     case $build in
5003       *-*-mingw* ) # actually msys
5004         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5005         ;;
5006       *-*-cygwin* )
5007         lt_cv_to_host_file_cmd=func_convert_file_noop
5008         ;;
5009       * ) # otherwise, assume *nix
5010         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5011         ;;
5012     esac
5013     ;;
5014   * ) # unhandled hosts (and "normal" native builds)
5015     lt_cv_to_host_file_cmd=func_convert_file_noop
5016     ;;
5017 esac
5018
5019 fi
5020
5021 to_host_file_cmd=$lt_cv_to_host_file_cmd
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5023 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5024
5025
5026
5027
5028
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5030 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5031 if ${lt_cv_to_tool_file_cmd+:} false; then :
5032   $as_echo_n "(cached) " >&6
5033 else
5034   #assume ordinary cross tools, or native build.
5035 lt_cv_to_tool_file_cmd=func_convert_file_noop
5036 case $host in
5037   *-*-mingw* )
5038     case $build in
5039       *-*-mingw* ) # actually msys
5040         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5041         ;;
5042     esac
5043     ;;
5044 esac
5045
5046 fi
5047
5048 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5050 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5051
5052
5053
5054
5055
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5057 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5058 if ${lt_cv_ld_reload_flag+:} false; then :
5059   $as_echo_n "(cached) " >&6
5060 else
5061   lt_cv_ld_reload_flag='-r'
5062 fi
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5064 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5065 reload_flag=$lt_cv_ld_reload_flag
5066 case $reload_flag in
5067 "" | " "*) ;;
5068 *) reload_flag=" $reload_flag" ;;
5069 esac
5070 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5071 case $host_os in
5072   cygwin* | mingw* | pw32* | cegcc*)
5073     if test "$GCC" != yes; then
5074       reload_cmds=false
5075     fi
5076     ;;
5077   darwin*)
5078     if test "$GCC" = yes; then
5079       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5080     else
5081       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5082     fi
5083     ;;
5084 esac
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094 if test -n "$ac_tool_prefix"; then
5095   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5096 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_prog_OBJDUMP+:} false; then :
5100   $as_echo_n "(cached) " >&6
5101 else
5102   if test -n "$OBJDUMP"; then
5103   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5104 else
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5107 do
5108   IFS=$as_save_IFS
5109   test -z "$as_dir" && as_dir=.
5110     for ac_exec_ext in '' $ac_executable_extensions; do
5111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5112     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114     break 2
5115   fi
5116 done
5117   done
5118 IFS=$as_save_IFS
5119
5120 fi
5121 fi
5122 OBJDUMP=$ac_cv_prog_OBJDUMP
5123 if test -n "$OBJDUMP"; then
5124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5125 $as_echo "$OBJDUMP" >&6; }
5126 else
5127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5129 fi
5130
5131
5132 fi
5133 if test -z "$ac_cv_prog_OBJDUMP"; then
5134   ac_ct_OBJDUMP=$OBJDUMP
5135   # Extract the first word of "objdump", so it can be a program name with args.
5136 set dummy objdump; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5140   $as_echo_n "(cached) " >&6
5141 else
5142   if test -n "$ac_ct_OBJDUMP"; then
5143   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5147 do
5148   IFS=$as_save_IFS
5149   test -z "$as_dir" && as_dir=.
5150     for ac_exec_ext in '' $ac_executable_extensions; do
5151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5152     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154     break 2
5155   fi
5156 done
5157   done
5158 IFS=$as_save_IFS
5159
5160 fi
5161 fi
5162 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5163 if test -n "$ac_ct_OBJDUMP"; then
5164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5165 $as_echo "$ac_ct_OBJDUMP" >&6; }
5166 else
5167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5169 fi
5170
5171   if test "x$ac_ct_OBJDUMP" = x; then
5172     OBJDUMP="false"
5173   else
5174     case $cross_compiling:$ac_tool_warned in
5175 yes:)
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5178 ac_tool_warned=yes ;;
5179 esac
5180     OBJDUMP=$ac_ct_OBJDUMP
5181   fi
5182 else
5183   OBJDUMP="$ac_cv_prog_OBJDUMP"
5184 fi
5185
5186 test -z "$OBJDUMP" && OBJDUMP=objdump
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5197 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5198 if ${lt_cv_deplibs_check_method+:} false; then :
5199   $as_echo_n "(cached) " >&6
5200 else
5201   lt_cv_file_magic_cmd='$MAGIC_CMD'
5202 lt_cv_file_magic_test_file=
5203 lt_cv_deplibs_check_method='unknown'
5204 # Need to set the preceding variable on all platforms that support
5205 # interlibrary dependencies.
5206 # 'none' -- dependencies not supported.
5207 # `unknown' -- same as none, but documents that we really don't know.
5208 # 'pass_all' -- all dependencies passed with no checks.
5209 # 'test_compile' -- check by making test program.
5210 # 'file_magic [[regex]]' -- check by looking for files in library path
5211 # which responds to the $file_magic_cmd with a given extended regex.
5212 # If you have `file' or equivalent on your system and you're not sure
5213 # whether `pass_all' will *always* work, you probably want this one.
5214
5215 case $host_os in
5216 aix[4-9]*)
5217   lt_cv_deplibs_check_method=pass_all
5218   ;;
5219
5220 beos*)
5221   lt_cv_deplibs_check_method=pass_all
5222   ;;
5223
5224 bsdi[45]*)
5225   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5226   lt_cv_file_magic_cmd='/usr/bin/file -L'
5227   lt_cv_file_magic_test_file=/shlib/libc.so
5228   ;;
5229
5230 cygwin*)
5231   # func_win32_libid is a shell function defined in ltmain.sh
5232   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5233   lt_cv_file_magic_cmd='func_win32_libid'
5234   ;;
5235
5236 mingw* | pw32*)
5237   # Base MSYS/MinGW do not provide the 'file' command needed by
5238   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5239   # unless we find 'file', for example because we are cross-compiling.
5240   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5241   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5242     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5243     lt_cv_file_magic_cmd='func_win32_libid'
5244   else
5245     # Keep this pattern in sync with the one in func_win32_libid.
5246     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5247     lt_cv_file_magic_cmd='$OBJDUMP -f'
5248   fi
5249   ;;
5250
5251 cegcc*)
5252   # use the weaker test based on 'objdump'. See mingw*.
5253   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5254   lt_cv_file_magic_cmd='$OBJDUMP -f'
5255   ;;
5256
5257 darwin* | rhapsody*)
5258   lt_cv_deplibs_check_method=pass_all
5259   ;;
5260
5261 freebsd* | dragonfly*)
5262   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5263     case $host_cpu in
5264     i*86 )
5265       # Not sure whether the presence of OpenBSD here was a mistake.
5266       # Let's accept both of them until this is cleared up.
5267       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5268       lt_cv_file_magic_cmd=/usr/bin/file
5269       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5270       ;;
5271     esac
5272   else
5273     lt_cv_deplibs_check_method=pass_all
5274   fi
5275   ;;
5276
5277 gnu*)
5278   lt_cv_deplibs_check_method=pass_all
5279   ;;
5280
5281 haiku*)
5282   lt_cv_deplibs_check_method=pass_all
5283   ;;
5284
5285 hpux10.20* | hpux11*)
5286   lt_cv_file_magic_cmd=/usr/bin/file
5287   case $host_cpu in
5288   ia64*)
5289     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5290     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5291     ;;
5292   hppa*64*)
5293     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]'
5294     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5295     ;;
5296   *)
5297     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5298     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5299     ;;
5300   esac
5301   ;;
5302
5303 interix[3-9]*)
5304   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5305   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5306   ;;
5307
5308 irix5* | irix6* | nonstopux*)
5309   case $LD in
5310   *-32|*"-32 ") libmagic=32-bit;;
5311   *-n32|*"-n32 ") libmagic=N32;;
5312   *-64|*"-64 ") libmagic=64-bit;;
5313   *) libmagic=never-match;;
5314   esac
5315   lt_cv_deplibs_check_method=pass_all
5316   ;;
5317
5318 # This must be glibc/ELF.
5319 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5320   lt_cv_deplibs_check_method=pass_all
5321   ;;
5322
5323 netbsd*)
5324   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5325     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5326   else
5327     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5328   fi
5329   ;;
5330
5331 newos6*)
5332   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5333   lt_cv_file_magic_cmd=/usr/bin/file
5334   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5335   ;;
5336
5337 *nto* | *qnx*)
5338   lt_cv_deplibs_check_method=pass_all
5339   ;;
5340
5341 openbsd*)
5342   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5343     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5344   else
5345     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5346   fi
5347   ;;
5348
5349 osf3* | osf4* | osf5*)
5350   lt_cv_deplibs_check_method=pass_all
5351   ;;
5352
5353 rdos*)
5354   lt_cv_deplibs_check_method=pass_all
5355   ;;
5356
5357 solaris*)
5358   lt_cv_deplibs_check_method=pass_all
5359   ;;
5360
5361 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5362   lt_cv_deplibs_check_method=pass_all
5363   ;;
5364
5365 sysv4 | sysv4.3*)
5366   case $host_vendor in
5367   motorola)
5368     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]'
5369     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5370     ;;
5371   ncr)
5372     lt_cv_deplibs_check_method=pass_all
5373     ;;
5374   sequent)
5375     lt_cv_file_magic_cmd='/bin/file'
5376     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5377     ;;
5378   sni)
5379     lt_cv_file_magic_cmd='/bin/file'
5380     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5381     lt_cv_file_magic_test_file=/lib/libc.so
5382     ;;
5383   siemens)
5384     lt_cv_deplibs_check_method=pass_all
5385     ;;
5386   pc)
5387     lt_cv_deplibs_check_method=pass_all
5388     ;;
5389   esac
5390   ;;
5391
5392 tpf*)
5393   lt_cv_deplibs_check_method=pass_all
5394   ;;
5395 esac
5396
5397 fi
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5399 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5400
5401 file_magic_glob=
5402 want_nocaseglob=no
5403 if test "$build" = "$host"; then
5404   case $host_os in
5405   mingw* | pw32*)
5406     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5407       want_nocaseglob=yes
5408     else
5409       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5410     fi
5411     ;;
5412   esac
5413 fi
5414
5415 file_magic_cmd=$lt_cv_file_magic_cmd
5416 deplibs_check_method=$lt_cv_deplibs_check_method
5417 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440 if test -n "$ac_tool_prefix"; then
5441   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5442 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if ${ac_cv_prog_DLLTOOL+:} false; then :
5446   $as_echo_n "(cached) " >&6
5447 else
5448   if test -n "$DLLTOOL"; then
5449   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454   IFS=$as_save_IFS
5455   test -z "$as_dir" && as_dir=.
5456     for ac_exec_ext in '' $ac_executable_extensions; do
5457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5458     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460     break 2
5461   fi
5462 done
5463   done
5464 IFS=$as_save_IFS
5465
5466 fi
5467 fi
5468 DLLTOOL=$ac_cv_prog_DLLTOOL
5469 if test -n "$DLLTOOL"; then
5470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5471 $as_echo "$DLLTOOL" >&6; }
5472 else
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5475 fi
5476
5477
5478 fi
5479 if test -z "$ac_cv_prog_DLLTOOL"; then
5480   ac_ct_DLLTOOL=$DLLTOOL
5481   # Extract the first word of "dlltool", so it can be a program name with args.
5482 set dummy dlltool; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5486   $as_echo_n "(cached) " >&6
5487 else
5488   if test -n "$ac_ct_DLLTOOL"; then
5489   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5493 do
5494   IFS=$as_save_IFS
5495   test -z "$as_dir" && as_dir=.
5496     for ac_exec_ext in '' $ac_executable_extensions; do
5497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5498     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500     break 2
5501   fi
5502 done
5503   done
5504 IFS=$as_save_IFS
5505
5506 fi
5507 fi
5508 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5509 if test -n "$ac_ct_DLLTOOL"; then
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5511 $as_echo "$ac_ct_DLLTOOL" >&6; }
5512 else
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5515 fi
5516
5517   if test "x$ac_ct_DLLTOOL" = x; then
5518     DLLTOOL="false"
5519   else
5520     case $cross_compiling:$ac_tool_warned in
5521 yes:)
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5524 ac_tool_warned=yes ;;
5525 esac
5526     DLLTOOL=$ac_ct_DLLTOOL
5527   fi
5528 else
5529   DLLTOOL="$ac_cv_prog_DLLTOOL"
5530 fi
5531
5532 test -z "$DLLTOOL" && DLLTOOL=dlltool
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5544 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5545 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5546   $as_echo_n "(cached) " >&6
5547 else
5548   lt_cv_sharedlib_from_linklib_cmd='unknown'
5549
5550 case $host_os in
5551 cygwin* | mingw* | pw32* | cegcc*)
5552   # two different shell functions defined in ltmain.sh
5553   # decide which to use based on capabilities of $DLLTOOL
5554   case `$DLLTOOL --help 2>&1` in
5555   *--identify-strict*)
5556     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5557     ;;
5558   *)
5559     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5560     ;;
5561   esac
5562   ;;
5563 *)
5564   # fallback: assume linklib IS sharedlib
5565   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5566   ;;
5567 esac
5568
5569 fi
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5571 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5572 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5573 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5574
5575
5576
5577
5578
5579
5580
5581
5582 if test -n "$ac_tool_prefix"; then
5583   for ac_prog in ar
5584   do
5585     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5586 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if ${ac_cv_prog_AR+:} false; then :
5590   $as_echo_n "(cached) " >&6
5591 else
5592   if test -n "$AR"; then
5593   ac_cv_prog_AR="$AR" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5597 do
5598   IFS=$as_save_IFS
5599   test -z "$as_dir" && as_dir=.
5600     for ac_exec_ext in '' $ac_executable_extensions; do
5601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604     break 2
5605   fi
5606 done
5607   done
5608 IFS=$as_save_IFS
5609
5610 fi
5611 fi
5612 AR=$ac_cv_prog_AR
5613 if test -n "$AR"; then
5614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5615 $as_echo "$AR" >&6; }
5616 else
5617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5619 fi
5620
5621
5622     test -n "$AR" && break
5623   done
5624 fi
5625 if test -z "$AR"; then
5626   ac_ct_AR=$AR
5627   for ac_prog in ar
5628 do
5629   # Extract the first word of "$ac_prog", so it can be a program name with args.
5630 set dummy $ac_prog; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5634   $as_echo_n "(cached) " >&6
5635 else
5636   if test -n "$ac_ct_AR"; then
5637   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642   IFS=$as_save_IFS
5643   test -z "$as_dir" && as_dir=.
5644     for ac_exec_ext in '' $ac_executable_extensions; do
5645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646     ac_cv_prog_ac_ct_AR="$ac_prog"
5647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648     break 2
5649   fi
5650 done
5651   done
5652 IFS=$as_save_IFS
5653
5654 fi
5655 fi
5656 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5657 if test -n "$ac_ct_AR"; then
5658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5659 $as_echo "$ac_ct_AR" >&6; }
5660 else
5661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663 fi
5664
5665
5666   test -n "$ac_ct_AR" && break
5667 done
5668
5669   if test "x$ac_ct_AR" = x; then
5670     AR="false"
5671   else
5672     case $cross_compiling:$ac_tool_warned in
5673 yes:)
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5676 ac_tool_warned=yes ;;
5677 esac
5678     AR=$ac_ct_AR
5679   fi
5680 fi
5681
5682 : ${AR=ar}
5683 : ${AR_FLAGS=cru}
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5696 $as_echo_n "checking for archiver @FILE support... " >&6; }
5697 if ${lt_cv_ar_at_file+:} false; then :
5698   $as_echo_n "(cached) " >&6
5699 else
5700   lt_cv_ar_at_file=no
5701    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h.  */
5703
5704 int
5705 main ()
5706 {
5707
5708   ;
5709   return 0;
5710 }
5711 _ACEOF
5712 if ac_fn_c_try_compile "$LINENO"; then :
5713   echo conftest.$ac_objext > conftest.lst
5714       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5715       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5716   (eval $lt_ar_try) 2>&5
5717   ac_status=$?
5718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5719   test $ac_status = 0; }
5720       if test "$ac_status" -eq 0; then
5721         # Ensure the archiver fails upon bogus file names.
5722         rm -f conftest.$ac_objext libconftest.a
5723         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5724   (eval $lt_ar_try) 2>&5
5725   ac_status=$?
5726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5727   test $ac_status = 0; }
5728         if test "$ac_status" -ne 0; then
5729           lt_cv_ar_at_file=@
5730         fi
5731       fi
5732       rm -f conftest.* libconftest.a
5733
5734 fi
5735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736
5737 fi
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5739 $as_echo "$lt_cv_ar_at_file" >&6; }
5740
5741 if test "x$lt_cv_ar_at_file" = xno; then
5742   archiver_list_spec=
5743 else
5744   archiver_list_spec=$lt_cv_ar_at_file
5745 fi
5746
5747
5748
5749
5750
5751
5752
5753 if test -n "$ac_tool_prefix"; then
5754   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5755 set dummy ${ac_tool_prefix}strip; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if ${ac_cv_prog_STRIP+:} false; then :
5759   $as_echo_n "(cached) " >&6
5760 else
5761   if test -n "$STRIP"; then
5762   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767   IFS=$as_save_IFS
5768   test -z "$as_dir" && as_dir=.
5769     for ac_exec_ext in '' $ac_executable_extensions; do
5770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773     break 2
5774   fi
5775 done
5776   done
5777 IFS=$as_save_IFS
5778
5779 fi
5780 fi
5781 STRIP=$ac_cv_prog_STRIP
5782 if test -n "$STRIP"; then
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5784 $as_echo "$STRIP" >&6; }
5785 else
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 fi
5789
5790
5791 fi
5792 if test -z "$ac_cv_prog_STRIP"; then
5793   ac_ct_STRIP=$STRIP
5794   # Extract the first word of "strip", so it can be a program name with args.
5795 set dummy strip; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5799   $as_echo_n "(cached) " >&6
5800 else
5801   if test -n "$ac_ct_STRIP"; then
5802   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809     for ac_exec_ext in '' $ac_executable_extensions; do
5810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811     ac_cv_prog_ac_ct_STRIP="strip"
5812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813     break 2
5814   fi
5815 done
5816   done
5817 IFS=$as_save_IFS
5818
5819 fi
5820 fi
5821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5822 if test -n "$ac_ct_STRIP"; then
5823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5824 $as_echo "$ac_ct_STRIP" >&6; }
5825 else
5826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5828 fi
5829
5830   if test "x$ac_ct_STRIP" = x; then
5831     STRIP=":"
5832   else
5833     case $cross_compiling:$ac_tool_warned in
5834 yes:)
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5837 ac_tool_warned=yes ;;
5838 esac
5839     STRIP=$ac_ct_STRIP
5840   fi
5841 else
5842   STRIP="$ac_cv_prog_STRIP"
5843 fi
5844
5845 test -z "$STRIP" && STRIP=:
5846
5847
5848
5849
5850
5851
5852 if test -n "$ac_tool_prefix"; then
5853   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5854 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if ${ac_cv_prog_RANLIB+:} false; then :
5858   $as_echo_n "(cached) " >&6
5859 else
5860   if test -n "$RANLIB"; then
5861   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5865 do
5866   IFS=$as_save_IFS
5867   test -z "$as_dir" && as_dir=.
5868     for ac_exec_ext in '' $ac_executable_extensions; do
5869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5870     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872     break 2
5873   fi
5874 done
5875   done
5876 IFS=$as_save_IFS
5877
5878 fi
5879 fi
5880 RANLIB=$ac_cv_prog_RANLIB
5881 if test -n "$RANLIB"; then
5882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5883 $as_echo "$RANLIB" >&6; }
5884 else
5885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5887 fi
5888
5889
5890 fi
5891 if test -z "$ac_cv_prog_RANLIB"; then
5892   ac_ct_RANLIB=$RANLIB
5893   # Extract the first word of "ranlib", so it can be a program name with args.
5894 set dummy ranlib; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5898   $as_echo_n "(cached) " >&6
5899 else
5900   if test -n "$ac_ct_RANLIB"; then
5901   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906   IFS=$as_save_IFS
5907   test -z "$as_dir" && as_dir=.
5908     for ac_exec_ext in '' $ac_executable_extensions; do
5909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910     ac_cv_prog_ac_ct_RANLIB="ranlib"
5911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912     break 2
5913   fi
5914 done
5915   done
5916 IFS=$as_save_IFS
5917
5918 fi
5919 fi
5920 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5921 if test -n "$ac_ct_RANLIB"; then
5922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5923 $as_echo "$ac_ct_RANLIB" >&6; }
5924 else
5925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5927 fi
5928
5929   if test "x$ac_ct_RANLIB" = x; then
5930     RANLIB=":"
5931   else
5932     case $cross_compiling:$ac_tool_warned in
5933 yes:)
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5936 ac_tool_warned=yes ;;
5937 esac
5938     RANLIB=$ac_ct_RANLIB
5939   fi
5940 else
5941   RANLIB="$ac_cv_prog_RANLIB"
5942 fi
5943
5944 test -z "$RANLIB" && RANLIB=:
5945
5946
5947
5948
5949
5950
5951 # Determine commands to create old-style static archives.
5952 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5953 old_postinstall_cmds='chmod 644 $oldlib'
5954 old_postuninstall_cmds=
5955
5956 if test -n "$RANLIB"; then
5957   case $host_os in
5958   openbsd*)
5959     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5960     ;;
5961   *)
5962     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5963     ;;
5964   esac
5965   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5966 fi
5967
5968 case $host_os in
5969   darwin*)
5970     lock_old_archive_extraction=yes ;;
5971   *)
5972     lock_old_archive_extraction=no ;;
5973 esac
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013 # If no C compiler was specified, use CC.
6014 LTCC=${LTCC-"$CC"}
6015
6016 # If no C compiler flags were specified, use CFLAGS.
6017 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6018
6019 # Allow CC to be a program name with arguments.
6020 compiler=$CC
6021
6022
6023 # Check for command to grab the raw symbol name followed by C symbol from nm.
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6025 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6026 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6027   $as_echo_n "(cached) " >&6
6028 else
6029
6030 # These are sane defaults that work on at least a few old systems.
6031 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6032
6033 # Character class describing NM global symbol codes.
6034 symcode='[BCDEGRST]'
6035
6036 # Regexp to match symbols that can be accessed directly from C.
6037 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6038
6039 # Define system-specific variables.
6040 case $host_os in
6041 aix*)
6042   symcode='[BCDT]'
6043   ;;
6044 cygwin* | mingw* | pw32* | cegcc*)
6045   symcode='[ABCDGISTW]'
6046   ;;
6047 hpux*)
6048   if test "$host_cpu" = ia64; then
6049     symcode='[ABCDEGRST]'
6050   fi
6051   ;;
6052 irix* | nonstopux*)
6053   symcode='[BCDEGRST]'
6054   ;;
6055 osf*)
6056   symcode='[BCDEGQRST]'
6057   ;;
6058 solaris*)
6059   symcode='[BDRT]'
6060   ;;
6061 sco3.2v5*)
6062   symcode='[DT]'
6063   ;;
6064 sysv4.2uw2*)
6065   symcode='[DT]'
6066   ;;
6067 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6068   symcode='[ABDT]'
6069   ;;
6070 sysv4)
6071   symcode='[DFNSTU]'
6072   ;;
6073 esac
6074
6075 # If we're using GNU nm, then use its standard symbol codes.
6076 case `$NM -V 2>&1` in
6077 *GNU* | *'with BFD'*)
6078   symcode='[ABCDGIRSTW]' ;;
6079 esac
6080
6081 # Transform an extracted symbol line into a proper C declaration.
6082 # Some systems (esp. on ia64) link data and code symbols differently,
6083 # so use this general approach.
6084 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6085
6086 # Transform an extracted symbol line into symbol name and symbol address
6087 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6088 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'"
6089
6090 # Handle CRLF in mingw tool chain
6091 opt_cr=
6092 case $build_os in
6093 mingw*)
6094   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6095   ;;
6096 esac
6097
6098 # Try without a prefix underscore, then with it.
6099 for ac_symprfx in "" "_"; do
6100
6101   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6102   symxfrm="\\1 $ac_symprfx\\2 \\2"
6103
6104   # Write the raw and C identifiers.
6105   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6106     # Fake it for dumpbin and say T for any non-static function
6107     # and D for any global variable.
6108     # Also find C++ and __fastcall symbols from MSVC++,
6109     # which start with @ or ?.
6110     lt_cv_sys_global_symbol_pipe="$AWK '"\
6111 "     {last_section=section; section=\$ 3};"\
6112 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6113 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6114 "     \$ 0!~/External *\|/{next};"\
6115 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6116 "     {if(hide[section]) next};"\
6117 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6118 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6119 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6120 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6121 "     ' prfx=^$ac_symprfx"
6122   else
6123     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6124   fi
6125   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6126
6127   # Check to see that the pipe works correctly.
6128   pipe_works=no
6129
6130   rm -f conftest*
6131   cat > conftest.$ac_ext <<_LT_EOF
6132 #ifdef __cplusplus
6133 extern "C" {
6134 #endif
6135 char nm_test_var;
6136 void nm_test_func(void);
6137 void nm_test_func(void){}
6138 #ifdef __cplusplus
6139 }
6140 #endif
6141 int main(){nm_test_var='a';nm_test_func();return(0);}
6142 _LT_EOF
6143
6144   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6145   (eval $ac_compile) 2>&5
6146   ac_status=$?
6147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6148   test $ac_status = 0; }; then
6149     # Now try to grab the symbols.
6150     nlist=conftest.nm
6151     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6152   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6153   ac_status=$?
6154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6155   test $ac_status = 0; } && test -s "$nlist"; then
6156       # Try sorting and uniquifying the output.
6157       if sort "$nlist" | uniq > "$nlist"T; then
6158         mv -f "$nlist"T "$nlist"
6159       else
6160         rm -f "$nlist"T
6161       fi
6162
6163       # Make sure that we snagged all the symbols we need.
6164       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6165         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6166           cat <<_LT_EOF > conftest.$ac_ext
6167 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6168 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6169 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6170    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6171 # define LT_DLSYM_CONST
6172 #elif defined(__osf__)
6173 /* This system does not cope well with relocations in const data.  */
6174 # define LT_DLSYM_CONST
6175 #else
6176 # define LT_DLSYM_CONST const
6177 #endif
6178
6179 #ifdef __cplusplus
6180 extern "C" {
6181 #endif
6182
6183 _LT_EOF
6184           # Now generate the symbol file.
6185           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6186
6187           cat <<_LT_EOF >> conftest.$ac_ext
6188
6189 /* The mapping between symbol names and symbols.  */
6190 LT_DLSYM_CONST struct {
6191   const char *name;
6192   void       *address;
6193 }
6194 lt__PROGRAM__LTX_preloaded_symbols[] =
6195 {
6196   { "@PROGRAM@", (void *) 0 },
6197 _LT_EOF
6198           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6199           cat <<\_LT_EOF >> conftest.$ac_ext
6200   {0, (void *) 0}
6201 };
6202
6203 /* This works around a problem in FreeBSD linker */
6204 #ifdef FREEBSD_WORKAROUND
6205 static const void *lt_preloaded_setup() {
6206   return lt__PROGRAM__LTX_preloaded_symbols;
6207 }
6208 #endif
6209
6210 #ifdef __cplusplus
6211 }
6212 #endif
6213 _LT_EOF
6214           # Now try linking the two files.
6215           mv conftest.$ac_objext conftstm.$ac_objext
6216           lt_globsym_save_LIBS=$LIBS
6217           lt_globsym_save_CFLAGS=$CFLAGS
6218           LIBS="conftstm.$ac_objext"
6219           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6220           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6221   (eval $ac_link) 2>&5
6222   ac_status=$?
6223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6224   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6225             pipe_works=yes
6226           fi
6227           LIBS=$lt_globsym_save_LIBS
6228           CFLAGS=$lt_globsym_save_CFLAGS
6229         else
6230           echo "cannot find nm_test_func in $nlist" >&5
6231         fi
6232       else
6233         echo "cannot find nm_test_var in $nlist" >&5
6234       fi
6235     else
6236       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6237     fi
6238   else
6239     echo "$progname: failed program was:" >&5
6240     cat conftest.$ac_ext >&5
6241   fi
6242   rm -rf conftest* conftst*
6243
6244   # Do not use the global_symbol_pipe unless it works.
6245   if test "$pipe_works" = yes; then
6246     break
6247   else
6248     lt_cv_sys_global_symbol_pipe=
6249   fi
6250 done
6251
6252 fi
6253
6254 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6255   lt_cv_sys_global_symbol_to_cdecl=
6256 fi
6257 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6259 $as_echo "failed" >&6; }
6260 else
6261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6262 $as_echo "ok" >&6; }
6263 fi
6264
6265 # Response file support.
6266 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6267   nm_file_list_spec='@'
6268 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6269   nm_file_list_spec='@'
6270 fi
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6299 $as_echo_n "checking for sysroot... " >&6; }
6300
6301 # Check whether --with-sysroot was given.
6302 if test "${with_sysroot+set}" = set; then :
6303   withval=$with_sysroot;
6304 else
6305   with_sysroot=no
6306 fi
6307
6308
6309 lt_sysroot=
6310 case ${with_sysroot} in #(
6311  yes)
6312    if test "$GCC" = yes; then
6313      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6314    fi
6315    ;; #(
6316  /*)
6317    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6318    ;; #(
6319  no|'')
6320    ;; #(
6321  *)
6322    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6323 $as_echo "${with_sysroot}" >&6; }
6324    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6325    ;;
6326 esac
6327
6328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6329 $as_echo "${lt_sysroot:-no}" >&6; }
6330
6331
6332
6333
6334
6335 # Check whether --enable-libtool-lock was given.
6336 if test "${enable_libtool_lock+set}" = set; then :
6337   enableval=$enable_libtool_lock;
6338 fi
6339
6340 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6341
6342 # Some flags need to be propagated to the compiler or linker for good
6343 # libtool support.
6344 case $host in
6345 ia64-*-hpux*)
6346   # Find out which ABI we are using.
6347   echo 'int i;' > conftest.$ac_ext
6348   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6349   (eval $ac_compile) 2>&5
6350   ac_status=$?
6351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6352   test $ac_status = 0; }; then
6353     case `/usr/bin/file conftest.$ac_objext` in
6354       *ELF-32*)
6355         HPUX_IA64_MODE="32"
6356         ;;
6357       *ELF-64*)
6358         HPUX_IA64_MODE="64"
6359         ;;
6360     esac
6361   fi
6362   rm -rf conftest*
6363   ;;
6364 *-*-irix6*)
6365   # Find out which ABI we are using.
6366   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6367   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6368   (eval $ac_compile) 2>&5
6369   ac_status=$?
6370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6371   test $ac_status = 0; }; then
6372     if test "$lt_cv_prog_gnu_ld" = yes; then
6373       case `/usr/bin/file conftest.$ac_objext` in
6374         *32-bit*)
6375           LD="${LD-ld} -melf32bsmip"
6376           ;;
6377         *N32*)
6378           LD="${LD-ld} -melf32bmipn32"
6379           ;;
6380         *64-bit*)
6381           LD="${LD-ld} -melf64bmip"
6382         ;;
6383       esac
6384     else
6385       case `/usr/bin/file conftest.$ac_objext` in
6386         *32-bit*)
6387           LD="${LD-ld} -32"
6388           ;;
6389         *N32*)
6390           LD="${LD-ld} -n32"
6391           ;;
6392         *64-bit*)
6393           LD="${LD-ld} -64"
6394           ;;
6395       esac
6396     fi
6397   fi
6398   rm -rf conftest*
6399   ;;
6400
6401 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6402 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6403   # Find out which ABI we are using.
6404   echo 'int i;' > conftest.$ac_ext
6405   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6406   (eval $ac_compile) 2>&5
6407   ac_status=$?
6408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409   test $ac_status = 0; }; then
6410     case `/usr/bin/file conftest.o` in
6411       *32-bit*)
6412         case $host in
6413           x86_64-*kfreebsd*-gnu)
6414             LD="${LD-ld} -m elf_i386_fbsd"
6415             ;;
6416           x86_64-*linux*)
6417             LD="${LD-ld} -m elf_i386"
6418             ;;
6419           powerpc64le-*linux*)
6420             LD="${LD-ld} -m elf32lppclinux"
6421             ;;
6422           powerpc64-*linux*)
6423             LD="${LD-ld} -m elf32ppclinux"
6424             ;;
6425           s390x-*linux*)
6426             LD="${LD-ld} -m elf_s390"
6427             ;;
6428           sparc64-*linux*)
6429             LD="${LD-ld} -m elf32_sparc"
6430             ;;
6431         esac
6432         ;;
6433       *64-bit*)
6434         case $host in
6435           x86_64-*kfreebsd*-gnu)
6436             LD="${LD-ld} -m elf_x86_64_fbsd"
6437             ;;
6438           x86_64-*linux*)
6439             LD="${LD-ld} -m elf_x86_64"
6440             ;;
6441           powerpcle-*linux*)
6442             LD="${LD-ld} -m elf64lppc"
6443             ;;
6444           powerpc-*linux*)
6445             LD="${LD-ld} -m elf64ppc"
6446             ;;
6447           s390*-*linux*|s390*-*tpf*)
6448             LD="${LD-ld} -m elf64_s390"
6449             ;;
6450           sparc*-*linux*)
6451             LD="${LD-ld} -m elf64_sparc"
6452             ;;
6453         esac
6454         ;;
6455     esac
6456   fi
6457   rm -rf conftest*
6458   ;;
6459
6460 *-*-sco3.2v5*)
6461   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6462   SAVE_CFLAGS="$CFLAGS"
6463   CFLAGS="$CFLAGS -belf"
6464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6465 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6466 if ${lt_cv_cc_needs_belf+:} false; then :
6467   $as_echo_n "(cached) " >&6
6468 else
6469   ac_ext=c
6470 ac_cpp='$CPP $CPPFLAGS'
6471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6474
6475      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h.  */
6477
6478 int
6479 main ()
6480 {
6481
6482   ;
6483   return 0;
6484 }
6485 _ACEOF
6486 if ac_fn_c_try_link "$LINENO"; then :
6487   lt_cv_cc_needs_belf=yes
6488 else
6489   lt_cv_cc_needs_belf=no
6490 fi
6491 rm -f core conftest.err conftest.$ac_objext \
6492     conftest$ac_exeext conftest.$ac_ext
6493      ac_ext=c
6494 ac_cpp='$CPP $CPPFLAGS'
6495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6498
6499 fi
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6501 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6502   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6503     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6504     CFLAGS="$SAVE_CFLAGS"
6505   fi
6506   ;;
6507 *-*solaris*)
6508   # Find out which ABI we are using.
6509   echo 'int i;' > conftest.$ac_ext
6510   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6511   (eval $ac_compile) 2>&5
6512   ac_status=$?
6513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6514   test $ac_status = 0; }; then
6515     case `/usr/bin/file conftest.o` in
6516     *64-bit*)
6517       case $lt_cv_prog_gnu_ld in
6518       yes*)
6519         case $host in
6520         i?86-*-solaris*)
6521           LD="${LD-ld} -m elf_x86_64"
6522           ;;
6523         sparc*-*-solaris*)
6524           LD="${LD-ld} -m elf64_sparc"
6525           ;;
6526         esac
6527         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6528         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6529           LD="${LD-ld}_sol2"
6530         fi
6531         ;;
6532       *)
6533         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6534           LD="${LD-ld} -64"
6535         fi
6536         ;;
6537       esac
6538       ;;
6539     esac
6540   fi
6541   rm -rf conftest*
6542   ;;
6543 esac
6544
6545 need_locks="$enable_libtool_lock"
6546
6547 if test -n "$ac_tool_prefix"; then
6548   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6549 set dummy ${ac_tool_prefix}mt; ac_word=$2
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551 $as_echo_n "checking for $ac_word... " >&6; }
6552 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6553   $as_echo_n "(cached) " >&6
6554 else
6555   if test -n "$MANIFEST_TOOL"; then
6556   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6560 do
6561   IFS=$as_save_IFS
6562   test -z "$as_dir" && as_dir=.
6563     for ac_exec_ext in '' $ac_executable_extensions; do
6564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6565     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6567     break 2
6568   fi
6569 done
6570   done
6571 IFS=$as_save_IFS
6572
6573 fi
6574 fi
6575 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6576 if test -n "$MANIFEST_TOOL"; then
6577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6578 $as_echo "$MANIFEST_TOOL" >&6; }
6579 else
6580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 $as_echo "no" >&6; }
6582 fi
6583
6584
6585 fi
6586 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6587   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6588   # Extract the first word of "mt", so it can be a program name with args.
6589 set dummy mt; ac_word=$2
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6593   $as_echo_n "(cached) " >&6
6594 else
6595   if test -n "$ac_ct_MANIFEST_TOOL"; then
6596   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6600 do
6601   IFS=$as_save_IFS
6602   test -z "$as_dir" && as_dir=.
6603     for ac_exec_ext in '' $ac_executable_extensions; do
6604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6605     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607     break 2
6608   fi
6609 done
6610   done
6611 IFS=$as_save_IFS
6612
6613 fi
6614 fi
6615 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6616 if test -n "$ac_ct_MANIFEST_TOOL"; then
6617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6618 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6619 else
6620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 $as_echo "no" >&6; }
6622 fi
6623
6624   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6625     MANIFEST_TOOL=":"
6626   else
6627     case $cross_compiling:$ac_tool_warned in
6628 yes:)
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631 ac_tool_warned=yes ;;
6632 esac
6633     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6634   fi
6635 else
6636   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6637 fi
6638
6639 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6641 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6642 if ${lt_cv_path_mainfest_tool+:} false; then :
6643   $as_echo_n "(cached) " >&6
6644 else
6645   lt_cv_path_mainfest_tool=no
6646   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6647   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6648   cat conftest.err >&5
6649   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6650     lt_cv_path_mainfest_tool=yes
6651   fi
6652   rm -f conftest*
6653 fi
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6655 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6656 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6657   MANIFEST_TOOL=:
6658 fi
6659
6660
6661
6662
6663
6664
6665   case $host_os in
6666     rhapsody* | darwin*)
6667     if test -n "$ac_tool_prefix"; then
6668   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671 $as_echo_n "checking for $ac_word... " >&6; }
6672 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6673   $as_echo_n "(cached) " >&6
6674 else
6675   if test -n "$DSYMUTIL"; then
6676   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681   IFS=$as_save_IFS
6682   test -z "$as_dir" && as_dir=.
6683     for ac_exec_ext in '' $ac_executable_extensions; do
6684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6685     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6687     break 2
6688   fi
6689 done
6690   done
6691 IFS=$as_save_IFS
6692
6693 fi
6694 fi
6695 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6696 if test -n "$DSYMUTIL"; then
6697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6698 $as_echo "$DSYMUTIL" >&6; }
6699 else
6700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 $as_echo "no" >&6; }
6702 fi
6703
6704
6705 fi
6706 if test -z "$ac_cv_prog_DSYMUTIL"; then
6707   ac_ct_DSYMUTIL=$DSYMUTIL
6708   # Extract the first word of "dsymutil", so it can be a program name with args.
6709 set dummy dsymutil; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6713   $as_echo_n "(cached) " >&6
6714 else
6715   if test -n "$ac_ct_DSYMUTIL"; then
6716   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721   IFS=$as_save_IFS
6722   test -z "$as_dir" && as_dir=.
6723     for ac_exec_ext in '' $ac_executable_extensions; do
6724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727     break 2
6728   fi
6729 done
6730   done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6736 if test -n "$ac_ct_DSYMUTIL"; then
6737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6738 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6739 else
6740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6743
6744   if test "x$ac_ct_DSYMUTIL" = x; then
6745     DSYMUTIL=":"
6746   else
6747     case $cross_compiling:$ac_tool_warned in
6748 yes:)
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751 ac_tool_warned=yes ;;
6752 esac
6753     DSYMUTIL=$ac_ct_DSYMUTIL
6754   fi
6755 else
6756   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6757 fi
6758
6759     if test -n "$ac_tool_prefix"; then
6760   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6761 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if ${ac_cv_prog_NMEDIT+:} false; then :
6765   $as_echo_n "(cached) " >&6
6766 else
6767   if test -n "$NMEDIT"; then
6768   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6769 else
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6772 do
6773   IFS=$as_save_IFS
6774   test -z "$as_dir" && as_dir=.
6775     for ac_exec_ext in '' $ac_executable_extensions; do
6776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6777     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779     break 2
6780   fi
6781 done
6782   done
6783 IFS=$as_save_IFS
6784
6785 fi
6786 fi
6787 NMEDIT=$ac_cv_prog_NMEDIT
6788 if test -n "$NMEDIT"; then
6789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6790 $as_echo "$NMEDIT" >&6; }
6791 else
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6794 fi
6795
6796
6797 fi
6798 if test -z "$ac_cv_prog_NMEDIT"; then
6799   ac_ct_NMEDIT=$NMEDIT
6800   # Extract the first word of "nmedit", so it can be a program name with args.
6801 set dummy nmedit; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6805   $as_echo_n "(cached) " >&6
6806 else
6807   if test -n "$ac_ct_NMEDIT"; then
6808   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813   IFS=$as_save_IFS
6814   test -z "$as_dir" && as_dir=.
6815     for ac_exec_ext in '' $ac_executable_extensions; do
6816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6817     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819     break 2
6820   fi
6821 done
6822   done
6823 IFS=$as_save_IFS
6824
6825 fi
6826 fi
6827 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6828 if test -n "$ac_ct_NMEDIT"; then
6829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6830 $as_echo "$ac_ct_NMEDIT" >&6; }
6831 else
6832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6834 fi
6835
6836   if test "x$ac_ct_NMEDIT" = x; then
6837     NMEDIT=":"
6838   else
6839     case $cross_compiling:$ac_tool_warned in
6840 yes:)
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6843 ac_tool_warned=yes ;;
6844 esac
6845     NMEDIT=$ac_ct_NMEDIT
6846   fi
6847 else
6848   NMEDIT="$ac_cv_prog_NMEDIT"
6849 fi
6850
6851     if test -n "$ac_tool_prefix"; then
6852   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6853 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 $as_echo_n "checking for $ac_word... " >&6; }
6856 if ${ac_cv_prog_LIPO+:} false; then :
6857   $as_echo_n "(cached) " >&6
6858 else
6859   if test -n "$LIPO"; then
6860   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865   IFS=$as_save_IFS
6866   test -z "$as_dir" && as_dir=.
6867     for ac_exec_ext in '' $ac_executable_extensions; do
6868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871     break 2
6872   fi
6873 done
6874   done
6875 IFS=$as_save_IFS
6876
6877 fi
6878 fi
6879 LIPO=$ac_cv_prog_LIPO
6880 if test -n "$LIPO"; then
6881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6882 $as_echo "$LIPO" >&6; }
6883 else
6884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6886 fi
6887
6888
6889 fi
6890 if test -z "$ac_cv_prog_LIPO"; then
6891   ac_ct_LIPO=$LIPO
6892   # Extract the first word of "lipo", so it can be a program name with args.
6893 set dummy lipo; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6897   $as_echo_n "(cached) " >&6
6898 else
6899   if test -n "$ac_ct_LIPO"; then
6900   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905   IFS=$as_save_IFS
6906   test -z "$as_dir" && as_dir=.
6907     for ac_exec_ext in '' $ac_executable_extensions; do
6908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909     ac_cv_prog_ac_ct_LIPO="lipo"
6910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911     break 2
6912   fi
6913 done
6914   done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6920 if test -n "$ac_ct_LIPO"; then
6921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6922 $as_echo "$ac_ct_LIPO" >&6; }
6923 else
6924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6926 fi
6927
6928   if test "x$ac_ct_LIPO" = x; then
6929     LIPO=":"
6930   else
6931     case $cross_compiling:$ac_tool_warned in
6932 yes:)
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6935 ac_tool_warned=yes ;;
6936 esac
6937     LIPO=$ac_ct_LIPO
6938   fi
6939 else
6940   LIPO="$ac_cv_prog_LIPO"
6941 fi
6942
6943     if test -n "$ac_tool_prefix"; then
6944   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6945 set dummy ${ac_tool_prefix}otool; ac_word=$2
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if ${ac_cv_prog_OTOOL+:} false; then :
6949   $as_echo_n "(cached) " >&6
6950 else
6951   if test -n "$OTOOL"; then
6952   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6953 else
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957   IFS=$as_save_IFS
6958   test -z "$as_dir" && as_dir=.
6959     for ac_exec_ext in '' $ac_executable_extensions; do
6960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6961     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963     break 2
6964   fi
6965 done
6966   done
6967 IFS=$as_save_IFS
6968
6969 fi
6970 fi
6971 OTOOL=$ac_cv_prog_OTOOL
6972 if test -n "$OTOOL"; then
6973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6974 $as_echo "$OTOOL" >&6; }
6975 else
6976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6978 fi
6979
6980
6981 fi
6982 if test -z "$ac_cv_prog_OTOOL"; then
6983   ac_ct_OTOOL=$OTOOL
6984   # Extract the first word of "otool", so it can be a program name with args.
6985 set dummy otool; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6989   $as_echo_n "(cached) " >&6
6990 else
6991   if test -n "$ac_ct_OTOOL"; then
6992   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997   IFS=$as_save_IFS
6998   test -z "$as_dir" && as_dir=.
6999     for ac_exec_ext in '' $ac_executable_extensions; do
7000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001     ac_cv_prog_ac_ct_OTOOL="otool"
7002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003     break 2
7004   fi
7005 done
7006   done
7007 IFS=$as_save_IFS
7008
7009 fi
7010 fi
7011 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7012 if test -n "$ac_ct_OTOOL"; then
7013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7014 $as_echo "$ac_ct_OTOOL" >&6; }
7015 else
7016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7018 fi
7019
7020   if test "x$ac_ct_OTOOL" = x; then
7021     OTOOL=":"
7022   else
7023     case $cross_compiling:$ac_tool_warned in
7024 yes:)
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7027 ac_tool_warned=yes ;;
7028 esac
7029     OTOOL=$ac_ct_OTOOL
7030   fi
7031 else
7032   OTOOL="$ac_cv_prog_OTOOL"
7033 fi
7034
7035     if test -n "$ac_tool_prefix"; then
7036   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7037 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if ${ac_cv_prog_OTOOL64+:} false; then :
7041   $as_echo_n "(cached) " >&6
7042 else
7043   if test -n "$OTOOL64"; then
7044   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049   IFS=$as_save_IFS
7050   test -z "$as_dir" && as_dir=.
7051     for ac_exec_ext in '' $ac_executable_extensions; do
7052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055     break 2
7056   fi
7057 done
7058   done
7059 IFS=$as_save_IFS
7060
7061 fi
7062 fi
7063 OTOOL64=$ac_cv_prog_OTOOL64
7064 if test -n "$OTOOL64"; then
7065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7066 $as_echo "$OTOOL64" >&6; }
7067 else
7068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7070 fi
7071
7072
7073 fi
7074 if test -z "$ac_cv_prog_OTOOL64"; then
7075   ac_ct_OTOOL64=$OTOOL64
7076   # Extract the first word of "otool64", so it can be a program name with args.
7077 set dummy otool64; ac_word=$2
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079 $as_echo_n "checking for $ac_word... " >&6; }
7080 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7081   $as_echo_n "(cached) " >&6
7082 else
7083   if test -n "$ac_ct_OTOOL64"; then
7084   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7085 else
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089   IFS=$as_save_IFS
7090   test -z "$as_dir" && as_dir=.
7091     for ac_exec_ext in '' $ac_executable_extensions; do
7092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093     ac_cv_prog_ac_ct_OTOOL64="otool64"
7094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095     break 2
7096   fi
7097 done
7098   done
7099 IFS=$as_save_IFS
7100
7101 fi
7102 fi
7103 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7104 if test -n "$ac_ct_OTOOL64"; then
7105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7106 $as_echo "$ac_ct_OTOOL64" >&6; }
7107 else
7108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109 $as_echo "no" >&6; }
7110 fi
7111
7112   if test "x$ac_ct_OTOOL64" = x; then
7113     OTOOL64=":"
7114   else
7115     case $cross_compiling:$ac_tool_warned in
7116 yes:)
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7119 ac_tool_warned=yes ;;
7120 esac
7121     OTOOL64=$ac_ct_OTOOL64
7122   fi
7123 else
7124   OTOOL64="$ac_cv_prog_OTOOL64"
7125 fi
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7154 $as_echo_n "checking for -single_module linker flag... " >&6; }
7155 if ${lt_cv_apple_cc_single_mod+:} false; then :
7156   $as_echo_n "(cached) " >&6
7157 else
7158   lt_cv_apple_cc_single_mod=no
7159       if test -z "${LT_MULTI_MODULE}"; then
7160         # By default we will add the -single_module flag. You can override
7161         # by either setting the environment variable LT_MULTI_MODULE
7162         # non-empty at configure time, or by adding -multi_module to the
7163         # link flags.
7164         rm -rf libconftest.dylib*
7165         echo "int foo(void){return 1;}" > conftest.c
7166         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7167 -dynamiclib -Wl,-single_module conftest.c" >&5
7168         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7169           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7170         _lt_result=$?
7171         # If there is a non-empty error log, and "single_module"
7172         # appears in it, assume the flag caused a linker warning
7173         if test -s conftest.err && $GREP single_module conftest.err; then
7174           cat conftest.err >&5
7175         # Otherwise, if the output was created with a 0 exit code from
7176         # the compiler, it worked.
7177         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7178           lt_cv_apple_cc_single_mod=yes
7179         else
7180           cat conftest.err >&5
7181         fi
7182         rm -rf libconftest.dylib*
7183         rm -f conftest.*
7184       fi
7185 fi
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7187 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7188
7189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7190 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7191 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7192   $as_echo_n "(cached) " >&6
7193 else
7194   lt_cv_ld_exported_symbols_list=no
7195       save_LDFLAGS=$LDFLAGS
7196       echo "_main" > conftest.sym
7197       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7198       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h.  */
7200
7201 int
7202 main ()
7203 {
7204
7205   ;
7206   return 0;
7207 }
7208 _ACEOF
7209 if ac_fn_c_try_link "$LINENO"; then :
7210   lt_cv_ld_exported_symbols_list=yes
7211 else
7212   lt_cv_ld_exported_symbols_list=no
7213 fi
7214 rm -f core conftest.err conftest.$ac_objext \
7215     conftest$ac_exeext conftest.$ac_ext
7216         LDFLAGS="$save_LDFLAGS"
7217
7218 fi
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7220 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7221
7222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7223 $as_echo_n "checking for -force_load linker flag... " >&6; }
7224 if ${lt_cv_ld_force_load+:} false; then :
7225   $as_echo_n "(cached) " >&6
7226 else
7227   lt_cv_ld_force_load=no
7228       cat > conftest.c << _LT_EOF
7229 int forced_loaded() { return 2;}
7230 _LT_EOF
7231       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7232       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7233       echo "$AR cru libconftest.a conftest.o" >&5
7234       $AR cru libconftest.a conftest.o 2>&5
7235       echo "$RANLIB libconftest.a" >&5
7236       $RANLIB libconftest.a 2>&5
7237       cat > conftest.c << _LT_EOF
7238 int main() { return 0;}
7239 _LT_EOF
7240       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7241       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7242       _lt_result=$?
7243       if test -s conftest.err && $GREP force_load conftest.err; then
7244         cat conftest.err >&5
7245       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7246         lt_cv_ld_force_load=yes
7247       else
7248         cat conftest.err >&5
7249       fi
7250         rm -f conftest.err libconftest.a conftest conftest.c
7251         rm -rf conftest.dSYM
7252
7253 fi
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7255 $as_echo "$lt_cv_ld_force_load" >&6; }
7256     case $host_os in
7257     rhapsody* | darwin1.[012])
7258       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7259     darwin1.*)
7260       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7261     darwin*) # darwin 5.x on
7262       # if running on 10.5 or later, the deployment target defaults
7263       # to the OS version, if on x86, and 10.4, the deployment
7264       # target defaults to 10.4. Don't you love it?
7265       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7266         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7267           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7268         10.[012]*)
7269           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7270         10.*)
7271           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7272       esac
7273     ;;
7274   esac
7275     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7276       _lt_dar_single_mod='$single_module'
7277     fi
7278     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7279       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7280     else
7281       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7282     fi
7283     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7284       _lt_dsymutil='~$DSYMUTIL $lib || :'
7285     else
7286       _lt_dsymutil=
7287     fi
7288     ;;
7289   esac
7290
7291 ac_ext=c
7292 ac_cpp='$CPP $CPPFLAGS'
7293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7297 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7298 # On Suns, sometimes $CPP names a directory.
7299 if test -n "$CPP" && test -d "$CPP"; then
7300   CPP=
7301 fi
7302 if test -z "$CPP"; then
7303   if ${ac_cv_prog_CPP+:} false; then :
7304   $as_echo_n "(cached) " >&6
7305 else
7306       # Double quotes because CPP needs to be expanded
7307     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7308     do
7309       ac_preproc_ok=false
7310 for ac_c_preproc_warn_flag in '' yes
7311 do
7312   # Use a header file that comes with gcc, so configuring glibc
7313   # with a fresh cross-compiler works.
7314   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7315   # <limits.h> exists even on freestanding compilers.
7316   # On the NeXT, cc -E runs the code through the compiler's parser,
7317   # not just through cpp. "Syntax error" is here to catch this case.
7318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h.  */
7320 #ifdef __STDC__
7321 # include <limits.h>
7322 #else
7323 # include <assert.h>
7324 #endif
7325                      Syntax error
7326 _ACEOF
7327 if ac_fn_c_try_cpp "$LINENO"; then :
7328
7329 else
7330   # Broken: fails on valid input.
7331 continue
7332 fi
7333 rm -f conftest.err conftest.i conftest.$ac_ext
7334
7335   # OK, works on sane cases.  Now check whether nonexistent headers
7336   # can be detected and how.
7337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h.  */
7339 #include <ac_nonexistent.h>
7340 _ACEOF
7341 if ac_fn_c_try_cpp "$LINENO"; then :
7342   # Broken: success on invalid input.
7343 continue
7344 else
7345   # Passes both tests.
7346 ac_preproc_ok=:
7347 break
7348 fi
7349 rm -f conftest.err conftest.i conftest.$ac_ext
7350
7351 done
7352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7353 rm -f conftest.i conftest.err conftest.$ac_ext
7354 if $ac_preproc_ok; then :
7355   break
7356 fi
7357
7358     done
7359     ac_cv_prog_CPP=$CPP
7360
7361 fi
7362   CPP=$ac_cv_prog_CPP
7363 else
7364   ac_cv_prog_CPP=$CPP
7365 fi
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7367 $as_echo "$CPP" >&6; }
7368 ac_preproc_ok=false
7369 for ac_c_preproc_warn_flag in '' yes
7370 do
7371   # Use a header file that comes with gcc, so configuring glibc
7372   # with a fresh cross-compiler works.
7373   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7374   # <limits.h> exists even on freestanding compilers.
7375   # On the NeXT, cc -E runs the code through the compiler's parser,
7376   # not just through cpp. "Syntax error" is here to catch this case.
7377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h.  */
7379 #ifdef __STDC__
7380 # include <limits.h>
7381 #else
7382 # include <assert.h>
7383 #endif
7384                      Syntax error
7385 _ACEOF
7386 if ac_fn_c_try_cpp "$LINENO"; then :
7387
7388 else
7389   # Broken: fails on valid input.
7390 continue
7391 fi
7392 rm -f conftest.err conftest.i conftest.$ac_ext
7393
7394   # OK, works on sane cases.  Now check whether nonexistent headers
7395   # can be detected and how.
7396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h.  */
7398 #include <ac_nonexistent.h>
7399 _ACEOF
7400 if ac_fn_c_try_cpp "$LINENO"; then :
7401   # Broken: success on invalid input.
7402 continue
7403 else
7404   # Passes both tests.
7405 ac_preproc_ok=:
7406 break
7407 fi
7408 rm -f conftest.err conftest.i conftest.$ac_ext
7409
7410 done
7411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7412 rm -f conftest.i conftest.err conftest.$ac_ext
7413 if $ac_preproc_ok; then :
7414
7415 else
7416   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7418 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7419 See \`config.log' for more details" "$LINENO" 5; }
7420 fi
7421
7422 ac_ext=c
7423 ac_cpp='$CPP $CPPFLAGS'
7424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7427
7428
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7430 $as_echo_n "checking for ANSI C header files... " >&6; }
7431 if ${ac_cv_header_stdc+:} false; then :
7432   $as_echo_n "(cached) " >&6
7433 else
7434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h.  */
7436 #include <stdlib.h>
7437 #include <stdarg.h>
7438 #include <string.h>
7439 #include <float.h>
7440
7441 int
7442 main ()
7443 {
7444
7445   ;
7446   return 0;
7447 }
7448 _ACEOF
7449 if ac_fn_c_try_compile "$LINENO"; then :
7450   ac_cv_header_stdc=yes
7451 else
7452   ac_cv_header_stdc=no
7453 fi
7454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7455
7456 if test $ac_cv_header_stdc = yes; then
7457   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h.  */
7460 #include <string.h>
7461
7462 _ACEOF
7463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7464   $EGREP "memchr" >/dev/null 2>&1; then :
7465
7466 else
7467   ac_cv_header_stdc=no
7468 fi
7469 rm -f conftest*
7470
7471 fi
7472
7473 if test $ac_cv_header_stdc = yes; then
7474   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h.  */
7477 #include <stdlib.h>
7478
7479 _ACEOF
7480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7481   $EGREP "free" >/dev/null 2>&1; then :
7482
7483 else
7484   ac_cv_header_stdc=no
7485 fi
7486 rm -f conftest*
7487
7488 fi
7489
7490 if test $ac_cv_header_stdc = yes; then
7491   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7492   if test "$cross_compiling" = yes; then :
7493   :
7494 else
7495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h.  */
7497 #include <ctype.h>
7498 #include <stdlib.h>
7499 #if ((' ' & 0x0FF) == 0x020)
7500 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7501 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7502 #else
7503 # define ISLOWER(c) \
7504                    (('a' <= (c) && (c) <= 'i') \
7505                      || ('j' <= (c) && (c) <= 'r') \
7506                      || ('s' <= (c) && (c) <= 'z'))
7507 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7508 #endif
7509
7510 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7511 int
7512 main ()
7513 {
7514   int i;
7515   for (i = 0; i < 256; i++)
7516     if (XOR (islower (i), ISLOWER (i))
7517         || toupper (i) != TOUPPER (i))
7518       return 2;
7519   return 0;
7520 }
7521 _ACEOF
7522 if ac_fn_c_try_run "$LINENO"; then :
7523
7524 else
7525   ac_cv_header_stdc=no
7526 fi
7527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7528   conftest.$ac_objext conftest.beam conftest.$ac_ext
7529 fi
7530
7531 fi
7532 fi
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7534 $as_echo "$ac_cv_header_stdc" >&6; }
7535 if test $ac_cv_header_stdc = yes; then
7536
7537 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7538
7539 fi
7540
7541 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7542 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7543                   inttypes.h stdint.h unistd.h
7544 do :
7545   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7546 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7547 "
7548 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7549   cat >>confdefs.h <<_ACEOF
7550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7551 _ACEOF
7552
7553 fi
7554
7555 done
7556
7557
7558 for ac_header in dlfcn.h
7559 do :
7560   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7561 "
7562 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7563   cat >>confdefs.h <<_ACEOF
7564 #define HAVE_DLFCN_H 1
7565 _ACEOF
7566
7567 fi
7568
7569 done
7570
7571
7572
7573
7574
7575 # Set options
7576
7577
7578
7579         enable_dlopen=no
7580
7581
7582   enable_win32_dll=no
7583
7584
7585             # Check whether --enable-shared was given.
7586 if test "${enable_shared+set}" = set; then :
7587   enableval=$enable_shared; p=${PACKAGE-default}
7588     case $enableval in
7589     yes) enable_shared=yes ;;
7590     no) enable_shared=no ;;
7591     *)
7592       enable_shared=no
7593       # Look at the argument we got.  We use all the common list separators.
7594       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7595       for pkg in $enableval; do
7596         IFS="$lt_save_ifs"
7597         if test "X$pkg" = "X$p"; then
7598           enable_shared=yes
7599         fi
7600       done
7601       IFS="$lt_save_ifs"
7602       ;;
7603     esac
7604 else
7605   enable_shared=yes
7606 fi
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616   # Check whether --enable-static was given.
7617 if test "${enable_static+set}" = set; then :
7618   enableval=$enable_static; p=${PACKAGE-default}
7619     case $enableval in
7620     yes) enable_static=yes ;;
7621     no) enable_static=no ;;
7622     *)
7623      enable_static=no
7624       # Look at the argument we got.  We use all the common list separators.
7625       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7626       for pkg in $enableval; do
7627         IFS="$lt_save_ifs"
7628         if test "X$pkg" = "X$p"; then
7629           enable_static=yes
7630         fi
7631       done
7632       IFS="$lt_save_ifs"
7633       ;;
7634     esac
7635 else
7636   enable_static=yes
7637 fi
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648 # Check whether --with-pic was given.
7649 if test "${with_pic+set}" = set; then :
7650   withval=$with_pic; lt_p=${PACKAGE-default}
7651     case $withval in
7652     yes|no) pic_mode=$withval ;;
7653     *)
7654       pic_mode=default
7655       # Look at the argument we got.  We use all the common list separators.
7656       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7657       for lt_pkg in $withval; do
7658         IFS="$lt_save_ifs"
7659         if test "X$lt_pkg" = "X$lt_p"; then
7660           pic_mode=yes
7661         fi
7662       done
7663       IFS="$lt_save_ifs"
7664       ;;
7665     esac
7666 else
7667   pic_mode=default
7668 fi
7669
7670
7671 test -z "$pic_mode" && pic_mode=default
7672
7673
7674
7675
7676
7677
7678
7679   # Check whether --enable-fast-install was given.
7680 if test "${enable_fast_install+set}" = set; then :
7681   enableval=$enable_fast_install; p=${PACKAGE-default}
7682     case $enableval in
7683     yes) enable_fast_install=yes ;;
7684     no) enable_fast_install=no ;;
7685     *)
7686       enable_fast_install=no
7687       # Look at the argument we got.  We use all the common list separators.
7688       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7689       for pkg in $enableval; do
7690         IFS="$lt_save_ifs"
7691         if test "X$pkg" = "X$p"; then
7692           enable_fast_install=yes
7693         fi
7694       done
7695       IFS="$lt_save_ifs"
7696       ;;
7697     esac
7698 else
7699   enable_fast_install=yes
7700 fi
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712 # This can be used to rebuild libtool when needed
7713 LIBTOOL_DEPS="$ltmain"
7714
7715 # Always use our own libtool.
7716 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747 test -z "$LN_S" && LN_S="ln -s"
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762 if test -n "${ZSH_VERSION+set}" ; then
7763    setopt NO_GLOB_SUBST
7764 fi
7765
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7767 $as_echo_n "checking for objdir... " >&6; }
7768 if ${lt_cv_objdir+:} false; then :
7769   $as_echo_n "(cached) " >&6
7770 else
7771   rm -f .libs 2>/dev/null
7772 mkdir .libs 2>/dev/null
7773 if test -d .libs; then
7774   lt_cv_objdir=.libs
7775 else
7776   # MS-DOS does not allow filenames that begin with a dot.
7777   lt_cv_objdir=_libs
7778 fi
7779 rmdir .libs 2>/dev/null
7780 fi
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7782 $as_echo "$lt_cv_objdir" >&6; }
7783 objdir=$lt_cv_objdir
7784
7785
7786
7787
7788
7789 cat >>confdefs.h <<_ACEOF
7790 #define LT_OBJDIR "$lt_cv_objdir/"
7791 _ACEOF
7792
7793
7794
7795
7796 case $host_os in
7797 aix3*)
7798   # AIX sometimes has problems with the GCC collect2 program.  For some
7799   # reason, if we set the COLLECT_NAMES environment variable, the problems
7800   # vanish in a puff of smoke.
7801   if test "X${COLLECT_NAMES+set}" != Xset; then
7802     COLLECT_NAMES=
7803     export COLLECT_NAMES
7804   fi
7805   ;;
7806 esac
7807
7808 # Global variables:
7809 ofile=libtool
7810 can_build_shared=yes
7811
7812 # All known linkers require a `.a' archive for static linking (except MSVC,
7813 # which needs '.lib').
7814 libext=a
7815
7816 with_gnu_ld="$lt_cv_prog_gnu_ld"
7817
7818 old_CC="$CC"
7819 old_CFLAGS="$CFLAGS"
7820
7821 # Set sane defaults for various variables
7822 test -z "$CC" && CC=cc
7823 test -z "$LTCC" && LTCC=$CC
7824 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7825 test -z "$LD" && LD=ld
7826 test -z "$ac_objext" && ac_objext=o
7827
7828 for cc_temp in $compiler""; do
7829   case $cc_temp in
7830     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7831     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7832     \-*) ;;
7833     *) break;;
7834   esac
7835 done
7836 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7837
7838
7839 # Only perform the check for file, if the check method requires it
7840 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7841 case $deplibs_check_method in
7842 file_magic*)
7843   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7845 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7846 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7847   $as_echo_n "(cached) " >&6
7848 else
7849   case $MAGIC_CMD in
7850 [\\/*] |  ?:[\\/]*)
7851   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7852   ;;
7853 *)
7854   lt_save_MAGIC_CMD="$MAGIC_CMD"
7855   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7856   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7857   for ac_dir in $ac_dummy; do
7858     IFS="$lt_save_ifs"
7859     test -z "$ac_dir" && ac_dir=.
7860     if test -f $ac_dir/${ac_tool_prefix}file; then
7861       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7862       if test -n "$file_magic_test_file"; then
7863         case $deplibs_check_method in
7864         "file_magic "*)
7865           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7866           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7867           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7868             $EGREP "$file_magic_regex" > /dev/null; then
7869             :
7870           else
7871             cat <<_LT_EOF 1>&2
7872
7873 *** Warning: the command libtool uses to detect shared libraries,
7874 *** $file_magic_cmd, produces output that libtool cannot recognize.
7875 *** The result is that libtool may fail to recognize shared libraries
7876 *** as such.  This will affect the creation of libtool libraries that
7877 *** depend on shared libraries, but programs linked with such libtool
7878 *** libraries will work regardless of this problem.  Nevertheless, you
7879 *** may want to report the problem to your system manager and/or to
7880 *** bug-libtool@gnu.org
7881
7882 _LT_EOF
7883           fi ;;
7884         esac
7885       fi
7886       break
7887     fi
7888   done
7889   IFS="$lt_save_ifs"
7890   MAGIC_CMD="$lt_save_MAGIC_CMD"
7891   ;;
7892 esac
7893 fi
7894
7895 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7896 if test -n "$MAGIC_CMD"; then
7897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7898 $as_echo "$MAGIC_CMD" >&6; }
7899 else
7900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901 $as_echo "no" >&6; }
7902 fi
7903
7904
7905
7906
7907
7908 if test -z "$lt_cv_path_MAGIC_CMD"; then
7909   if test -n "$ac_tool_prefix"; then
7910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7911 $as_echo_n "checking for file... " >&6; }
7912 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7913   $as_echo_n "(cached) " >&6
7914 else
7915   case $MAGIC_CMD in
7916 [\\/*] |  ?:[\\/]*)
7917   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7918   ;;
7919 *)
7920   lt_save_MAGIC_CMD="$MAGIC_CMD"
7921   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7922   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7923   for ac_dir in $ac_dummy; do
7924     IFS="$lt_save_ifs"
7925     test -z "$ac_dir" && ac_dir=.
7926     if test -f $ac_dir/file; then
7927       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7928       if test -n "$file_magic_test_file"; then
7929         case $deplibs_check_method in
7930         "file_magic "*)
7931           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7932           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7933           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7934             $EGREP "$file_magic_regex" > /dev/null; then
7935             :
7936           else
7937             cat <<_LT_EOF 1>&2
7938
7939 *** Warning: the command libtool uses to detect shared libraries,
7940 *** $file_magic_cmd, produces output that libtool cannot recognize.
7941 *** The result is that libtool may fail to recognize shared libraries
7942 *** as such.  This will affect the creation of libtool libraries that
7943 *** depend on shared libraries, but programs linked with such libtool
7944 *** libraries will work regardless of this problem.  Nevertheless, you
7945 *** may want to report the problem to your system manager and/or to
7946 *** bug-libtool@gnu.org
7947
7948 _LT_EOF
7949           fi ;;
7950         esac
7951       fi
7952       break
7953     fi
7954   done
7955   IFS="$lt_save_ifs"
7956   MAGIC_CMD="$lt_save_MAGIC_CMD"
7957   ;;
7958 esac
7959 fi
7960
7961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7962 if test -n "$MAGIC_CMD"; then
7963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7964 $as_echo "$MAGIC_CMD" >&6; }
7965 else
7966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7968 fi
7969
7970
7971   else
7972     MAGIC_CMD=:
7973   fi
7974 fi
7975
7976   fi
7977   ;;
7978 esac
7979
7980 # Use C for the default configuration in the libtool script
7981
7982 lt_save_CC="$CC"
7983 ac_ext=c
7984 ac_cpp='$CPP $CPPFLAGS'
7985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7988
7989
7990 # Source file extension for C test sources.
7991 ac_ext=c
7992
7993 # Object file extension for compiled C test sources.
7994 objext=o
7995 objext=$objext
7996
7997 # Code to be used in simple compile tests
7998 lt_simple_compile_test_code="int some_variable = 0;"
7999
8000 # Code to be used in simple link tests
8001 lt_simple_link_test_code='int main(){return(0);}'
8002
8003
8004
8005
8006
8007
8008
8009 # If no C compiler was specified, use CC.
8010 LTCC=${LTCC-"$CC"}
8011
8012 # If no C compiler flags were specified, use CFLAGS.
8013 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8014
8015 # Allow CC to be a program name with arguments.
8016 compiler=$CC
8017
8018 # Save the default compiler, since it gets overwritten when the other
8019 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8020 compiler_DEFAULT=$CC
8021
8022 # save warnings/boilerplate of simple test code
8023 ac_outfile=conftest.$ac_objext
8024 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8025 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8026 _lt_compiler_boilerplate=`cat conftest.err`
8027 $RM conftest*
8028
8029 ac_outfile=conftest.$ac_objext
8030 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8031 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8032 _lt_linker_boilerplate=`cat conftest.err`
8033 $RM -r conftest*
8034
8035
8036 if test -n "$compiler"; then
8037
8038 lt_prog_compiler_no_builtin_flag=
8039
8040 if test "$GCC" = yes; then
8041   case $cc_basename in
8042   nvcc*)
8043     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8044   *)
8045     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8046   esac
8047
8048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8049 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8050 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8051   $as_echo_n "(cached) " >&6
8052 else
8053   lt_cv_prog_compiler_rtti_exceptions=no
8054    ac_outfile=conftest.$ac_objext
8055    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8056    lt_compiler_flag="-fno-rtti -fno-exceptions"
8057    # Insert the option either (1) after the last *FLAGS variable, or
8058    # (2) before a word containing "conftest.", or (3) at the end.
8059    # Note that $ac_compile itself does not contain backslashes and begins
8060    # with a dollar sign (not a hyphen), so the echo should work correctly.
8061    # The option is referenced via a variable to avoid confusing sed.
8062    lt_compile=`echo "$ac_compile" | $SED \
8063    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8064    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8065    -e 's:$: $lt_compiler_flag:'`
8066    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8067    (eval "$lt_compile" 2>conftest.err)
8068    ac_status=$?
8069    cat conftest.err >&5
8070    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071    if (exit $ac_status) && test -s "$ac_outfile"; then
8072      # The compiler can only warn and ignore the option if not recognized
8073      # So say no if there are warnings other than the usual output.
8074      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8075      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8076      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8077        lt_cv_prog_compiler_rtti_exceptions=yes
8078      fi
8079    fi
8080    $RM conftest*
8081
8082 fi
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8084 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8085
8086 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8087     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8088 else
8089     :
8090 fi
8091
8092 fi
8093
8094
8095
8096
8097
8098
8099   lt_prog_compiler_wl=
8100 lt_prog_compiler_pic=
8101 lt_prog_compiler_static=
8102
8103
8104   if test "$GCC" = yes; then
8105     lt_prog_compiler_wl='-Wl,'
8106     lt_prog_compiler_static='-static'
8107
8108     case $host_os in
8109       aix*)
8110       # All AIX code is PIC.
8111       if test "$host_cpu" = ia64; then
8112         # AIX 5 now supports IA64 processor
8113         lt_prog_compiler_static='-Bstatic'
8114       fi
8115       ;;
8116
8117     amigaos*)
8118       case $host_cpu in
8119       powerpc)
8120             # see comment about AmigaOS4 .so support
8121             lt_prog_compiler_pic='-fPIC'
8122         ;;
8123       m68k)
8124             # FIXME: we need at least 68020 code to build shared libraries, but
8125             # adding the `-m68020' flag to GCC prevents building anything better,
8126             # like `-m68040'.
8127             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8128         ;;
8129       esac
8130       ;;
8131
8132     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8133       # PIC is the default for these OSes.
8134       ;;
8135
8136     mingw* | cygwin* | pw32* | os2* | cegcc*)
8137       # This hack is so that the source file can tell whether it is being
8138       # built for inclusion in a dll (and should export symbols for example).
8139       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8140       # (--disable-auto-import) libraries
8141       lt_prog_compiler_pic='-DDLL_EXPORT'
8142       ;;
8143
8144     darwin* | rhapsody*)
8145       # PIC is the default on this platform
8146       # Common symbols not allowed in MH_DYLIB files
8147       lt_prog_compiler_pic='-fno-common'
8148       ;;
8149
8150     haiku*)
8151       # PIC is the default for Haiku.
8152       # The "-static" flag exists, but is broken.
8153       lt_prog_compiler_static=
8154       ;;
8155
8156     hpux*)
8157       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8158       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8159       # sets the default TLS model and affects inlining.
8160       case $host_cpu in
8161       hppa*64*)
8162         # +Z the default
8163         ;;
8164       *)
8165         lt_prog_compiler_pic='-fPIC'
8166         ;;
8167       esac
8168       ;;
8169
8170     interix[3-9]*)
8171       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8172       # Instead, we relocate shared libraries at runtime.
8173       ;;
8174
8175     msdosdjgpp*)
8176       # Just because we use GCC doesn't mean we suddenly get shared libraries
8177       # on systems that don't support them.
8178       lt_prog_compiler_can_build_shared=no
8179       enable_shared=no
8180       ;;
8181
8182     *nto* | *qnx*)
8183       # QNX uses GNU C++, but need to define -shared option too, otherwise
8184       # it will coredump.
8185       lt_prog_compiler_pic='-fPIC -shared'
8186       ;;
8187
8188     sysv4*MP*)
8189       if test -d /usr/nec; then
8190         lt_prog_compiler_pic=-Kconform_pic
8191       fi
8192       ;;
8193
8194     *)
8195       lt_prog_compiler_pic='-fPIC'
8196       ;;
8197     esac
8198
8199     case $cc_basename in
8200     nvcc*) # Cuda Compiler Driver 2.2
8201       lt_prog_compiler_wl='-Xlinker '
8202       if test -n "$lt_prog_compiler_pic"; then
8203         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8204       fi
8205       ;;
8206     esac
8207   else
8208     # PORTME Check for flag to pass linker flags through the system compiler.
8209     case $host_os in
8210     aix*)
8211       lt_prog_compiler_wl='-Wl,'
8212       if test "$host_cpu" = ia64; then
8213         # AIX 5 now supports IA64 processor
8214         lt_prog_compiler_static='-Bstatic'
8215       else
8216         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8217       fi
8218       ;;
8219
8220     mingw* | cygwin* | pw32* | os2* | cegcc*)
8221       # This hack is so that the source file can tell whether it is being
8222       # built for inclusion in a dll (and should export symbols for example).
8223       lt_prog_compiler_pic='-DDLL_EXPORT'
8224       ;;
8225
8226     hpux9* | hpux10* | hpux11*)
8227       lt_prog_compiler_wl='-Wl,'
8228       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8229       # not for PA HP-UX.
8230       case $host_cpu in
8231       hppa*64*|ia64*)
8232         # +Z the default
8233         ;;
8234       *)
8235         lt_prog_compiler_pic='+Z'
8236         ;;
8237       esac
8238       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8239       lt_prog_compiler_static='${wl}-a ${wl}archive'
8240       ;;
8241
8242     irix5* | irix6* | nonstopux*)
8243       lt_prog_compiler_wl='-Wl,'
8244       # PIC (with -KPIC) is the default.
8245       lt_prog_compiler_static='-non_shared'
8246       ;;
8247
8248     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8249       case $cc_basename in
8250       # old Intel for x86_64 which still supported -KPIC.
8251       ecc*)
8252         lt_prog_compiler_wl='-Wl,'
8253         lt_prog_compiler_pic='-KPIC'
8254         lt_prog_compiler_static='-static'
8255         ;;
8256       # icc used to be incompatible with GCC.
8257       # ICC 10 doesn't accept -KPIC any more.
8258       icc* | ifort*)
8259         lt_prog_compiler_wl='-Wl,'
8260         lt_prog_compiler_pic='-fPIC'
8261         lt_prog_compiler_static='-static'
8262         ;;
8263       # Lahey Fortran 8.1.
8264       lf95*)
8265         lt_prog_compiler_wl='-Wl,'
8266         lt_prog_compiler_pic='--shared'
8267         lt_prog_compiler_static='--static'
8268         ;;
8269       nagfor*)
8270         # NAG Fortran compiler
8271         lt_prog_compiler_wl='-Wl,-Wl,,'
8272         lt_prog_compiler_pic='-PIC'
8273         lt_prog_compiler_static='-Bstatic'
8274         ;;
8275       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8276         # Portland Group compilers (*not* the Pentium gcc compiler,
8277         # which looks to be a dead project)
8278         lt_prog_compiler_wl='-Wl,'
8279         lt_prog_compiler_pic='-fpic'
8280         lt_prog_compiler_static='-Bstatic'
8281         ;;
8282       ccc*)
8283         lt_prog_compiler_wl='-Wl,'
8284         # All Alpha code is PIC.
8285         lt_prog_compiler_static='-non_shared'
8286         ;;
8287       xl* | bgxl* | bgf* | mpixl*)
8288         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8289         lt_prog_compiler_wl='-Wl,'
8290         lt_prog_compiler_pic='-qpic'
8291         lt_prog_compiler_static='-qstaticlink'
8292         ;;
8293       *)
8294         case `$CC -V 2>&1 | sed 5q` in
8295         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8296           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8297           lt_prog_compiler_pic='-KPIC'
8298           lt_prog_compiler_static='-Bstatic'
8299           lt_prog_compiler_wl=''
8300           ;;
8301         *Sun\ F* | *Sun*Fortran*)
8302           lt_prog_compiler_pic='-KPIC'
8303           lt_prog_compiler_static='-Bstatic'
8304           lt_prog_compiler_wl='-Qoption ld '
8305           ;;
8306         *Sun\ C*)
8307           # Sun C 5.9
8308           lt_prog_compiler_pic='-KPIC'
8309           lt_prog_compiler_static='-Bstatic'
8310           lt_prog_compiler_wl='-Wl,'
8311           ;;
8312         *Intel*\ [CF]*Compiler*)
8313           lt_prog_compiler_wl='-Wl,'
8314           lt_prog_compiler_pic='-fPIC'
8315           lt_prog_compiler_static='-static'
8316           ;;
8317         *Portland\ Group*)
8318           lt_prog_compiler_wl='-Wl,'
8319           lt_prog_compiler_pic='-fpic'
8320           lt_prog_compiler_static='-Bstatic'
8321           ;;
8322         esac
8323         ;;
8324       esac
8325       ;;
8326
8327     newsos6)
8328       lt_prog_compiler_pic='-KPIC'
8329       lt_prog_compiler_static='-Bstatic'
8330       ;;
8331
8332     *nto* | *qnx*)
8333       # QNX uses GNU C++, but need to define -shared option too, otherwise
8334       # it will coredump.
8335       lt_prog_compiler_pic='-fPIC -shared'
8336       ;;
8337
8338     osf3* | osf4* | osf5*)
8339       lt_prog_compiler_wl='-Wl,'
8340       # All OSF/1 code is PIC.
8341       lt_prog_compiler_static='-non_shared'
8342       ;;
8343
8344     rdos*)
8345       lt_prog_compiler_static='-non_shared'
8346       ;;
8347
8348     solaris*)
8349       lt_prog_compiler_pic='-KPIC'
8350       lt_prog_compiler_static='-Bstatic'
8351       case $cc_basename in
8352       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8353         lt_prog_compiler_wl='-Qoption ld ';;
8354       *)
8355         lt_prog_compiler_wl='-Wl,';;
8356       esac
8357       ;;
8358
8359     sunos4*)
8360       lt_prog_compiler_wl='-Qoption ld '
8361       lt_prog_compiler_pic='-PIC'
8362       lt_prog_compiler_static='-Bstatic'
8363       ;;
8364
8365     sysv4 | sysv4.2uw2* | sysv4.3*)
8366       lt_prog_compiler_wl='-Wl,'
8367       lt_prog_compiler_pic='-KPIC'
8368       lt_prog_compiler_static='-Bstatic'
8369       ;;
8370
8371     sysv4*MP*)
8372       if test -d /usr/nec ;then
8373         lt_prog_compiler_pic='-Kconform_pic'
8374         lt_prog_compiler_static='-Bstatic'
8375       fi
8376       ;;
8377
8378     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8379       lt_prog_compiler_wl='-Wl,'
8380       lt_prog_compiler_pic='-KPIC'
8381       lt_prog_compiler_static='-Bstatic'
8382       ;;
8383
8384     unicos*)
8385       lt_prog_compiler_wl='-Wl,'
8386       lt_prog_compiler_can_build_shared=no
8387       ;;
8388
8389     uts4*)
8390       lt_prog_compiler_pic='-pic'
8391       lt_prog_compiler_static='-Bstatic'
8392       ;;
8393
8394     *)
8395       lt_prog_compiler_can_build_shared=no
8396       ;;
8397     esac
8398   fi
8399
8400 case $host_os in
8401   # For platforms which do not support PIC, -DPIC is meaningless:
8402   *djgpp*)
8403     lt_prog_compiler_pic=
8404     ;;
8405   *)
8406     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8407     ;;
8408 esac
8409
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8411 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8412 if ${lt_cv_prog_compiler_pic+:} false; then :
8413   $as_echo_n "(cached) " >&6
8414 else
8415   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8416 fi
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8418 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8419 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8420
8421 #
8422 # Check to make sure the PIC flag actually works.
8423 #
8424 if test -n "$lt_prog_compiler_pic"; then
8425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8426 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8427 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8428   $as_echo_n "(cached) " >&6
8429 else
8430   lt_cv_prog_compiler_pic_works=no
8431    ac_outfile=conftest.$ac_objext
8432    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8433    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8434    # Insert the option either (1) after the last *FLAGS variable, or
8435    # (2) before a word containing "conftest.", or (3) at the end.
8436    # Note that $ac_compile itself does not contain backslashes and begins
8437    # with a dollar sign (not a hyphen), so the echo should work correctly.
8438    # The option is referenced via a variable to avoid confusing sed.
8439    lt_compile=`echo "$ac_compile" | $SED \
8440    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8441    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8442    -e 's:$: $lt_compiler_flag:'`
8443    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8444    (eval "$lt_compile" 2>conftest.err)
8445    ac_status=$?
8446    cat conftest.err >&5
8447    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448    if (exit $ac_status) && test -s "$ac_outfile"; then
8449      # The compiler can only warn and ignore the option if not recognized
8450      # So say no if there are warnings other than the usual output.
8451      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8452      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8453      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8454        lt_cv_prog_compiler_pic_works=yes
8455      fi
8456    fi
8457    $RM conftest*
8458
8459 fi
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8461 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8462
8463 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8464     case $lt_prog_compiler_pic in
8465      "" | " "*) ;;
8466      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8467      esac
8468 else
8469     lt_prog_compiler_pic=
8470      lt_prog_compiler_can_build_shared=no
8471 fi
8472
8473 fi
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485 #
8486 # Check to make sure the static flag actually works.
8487 #
8488 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8490 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8491 if ${lt_cv_prog_compiler_static_works+:} false; then :
8492   $as_echo_n "(cached) " >&6
8493 else
8494   lt_cv_prog_compiler_static_works=no
8495    save_LDFLAGS="$LDFLAGS"
8496    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8497    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8498    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8499      # The linker can only warn and ignore the option if not recognized
8500      # So say no if there are warnings
8501      if test -s conftest.err; then
8502        # Append any errors to the config.log.
8503        cat conftest.err 1>&5
8504        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8505        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8506        if diff conftest.exp conftest.er2 >/dev/null; then
8507          lt_cv_prog_compiler_static_works=yes
8508        fi
8509      else
8510        lt_cv_prog_compiler_static_works=yes
8511      fi
8512    fi
8513    $RM -r conftest*
8514    LDFLAGS="$save_LDFLAGS"
8515
8516 fi
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8518 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8519
8520 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8521     :
8522 else
8523     lt_prog_compiler_static=
8524 fi
8525
8526
8527
8528
8529
8530
8531
8532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8533 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8534 if ${lt_cv_prog_compiler_c_o+:} false; then :
8535   $as_echo_n "(cached) " >&6
8536 else
8537   lt_cv_prog_compiler_c_o=no
8538    $RM -r conftest 2>/dev/null
8539    mkdir conftest
8540    cd conftest
8541    mkdir out
8542    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8543
8544    lt_compiler_flag="-o out/conftest2.$ac_objext"
8545    # Insert the option either (1) after the last *FLAGS variable, or
8546    # (2) before a word containing "conftest.", or (3) at the end.
8547    # Note that $ac_compile itself does not contain backslashes and begins
8548    # with a dollar sign (not a hyphen), so the echo should work correctly.
8549    lt_compile=`echo "$ac_compile" | $SED \
8550    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8551    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8552    -e 's:$: $lt_compiler_flag:'`
8553    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8554    (eval "$lt_compile" 2>out/conftest.err)
8555    ac_status=$?
8556    cat out/conftest.err >&5
8557    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8559    then
8560      # The compiler can only warn and ignore the option if not recognized
8561      # So say no if there are warnings
8562      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8563      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8564      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8565        lt_cv_prog_compiler_c_o=yes
8566      fi
8567    fi
8568    chmod u+w . 2>&5
8569    $RM conftest*
8570    # SGI C++ compiler will create directory out/ii_files/ for
8571    # template instantiation
8572    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8573    $RM out/* && rmdir out
8574    cd ..
8575    $RM -r conftest
8576    $RM conftest*
8577
8578 fi
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8580 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8581
8582
8583
8584
8585
8586
8587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8588 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8589 if ${lt_cv_prog_compiler_c_o+:} false; then :
8590   $as_echo_n "(cached) " >&6
8591 else
8592   lt_cv_prog_compiler_c_o=no
8593    $RM -r conftest 2>/dev/null
8594    mkdir conftest
8595    cd conftest
8596    mkdir out
8597    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8598
8599    lt_compiler_flag="-o out/conftest2.$ac_objext"
8600    # Insert the option either (1) after the last *FLAGS variable, or
8601    # (2) before a word containing "conftest.", or (3) at the end.
8602    # Note that $ac_compile itself does not contain backslashes and begins
8603    # with a dollar sign (not a hyphen), so the echo should work correctly.
8604    lt_compile=`echo "$ac_compile" | $SED \
8605    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8606    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8607    -e 's:$: $lt_compiler_flag:'`
8608    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8609    (eval "$lt_compile" 2>out/conftest.err)
8610    ac_status=$?
8611    cat out/conftest.err >&5
8612    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8614    then
8615      # The compiler can only warn and ignore the option if not recognized
8616      # So say no if there are warnings
8617      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8618      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8619      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8620        lt_cv_prog_compiler_c_o=yes
8621      fi
8622    fi
8623    chmod u+w . 2>&5
8624    $RM conftest*
8625    # SGI C++ compiler will create directory out/ii_files/ for
8626    # template instantiation
8627    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8628    $RM out/* && rmdir out
8629    cd ..
8630    $RM -r conftest
8631    $RM conftest*
8632
8633 fi
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8635 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8636
8637
8638
8639
8640 hard_links="nottested"
8641 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8642   # do not overwrite the value of need_locks provided by the user
8643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8644 $as_echo_n "checking if we can lock with hard links... " >&6; }
8645   hard_links=yes
8646   $RM conftest*
8647   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8648   touch conftest.a
8649   ln conftest.a conftest.b 2>&5 || hard_links=no
8650   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8652 $as_echo "$hard_links" >&6; }
8653   if test "$hard_links" = no; then
8654     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8655 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8656     need_locks=warn
8657   fi
8658 else
8659   need_locks=no
8660 fi
8661
8662
8663
8664
8665
8666
8667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8668 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8669
8670   runpath_var=
8671   allow_undefined_flag=
8672   always_export_symbols=no
8673   archive_cmds=
8674   archive_expsym_cmds=
8675   compiler_needs_object=no
8676   enable_shared_with_static_runtimes=no
8677   export_dynamic_flag_spec=
8678   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8679   hardcode_automatic=no
8680   hardcode_direct=no
8681   hardcode_direct_absolute=no
8682   hardcode_libdir_flag_spec=
8683   hardcode_libdir_separator=
8684   hardcode_minus_L=no
8685   hardcode_shlibpath_var=unsupported
8686   inherit_rpath=no
8687   link_all_deplibs=unknown
8688   module_cmds=
8689   module_expsym_cmds=
8690   old_archive_from_new_cmds=
8691   old_archive_from_expsyms_cmds=
8692   thread_safe_flag_spec=
8693   whole_archive_flag_spec=
8694   # include_expsyms should be a list of space-separated symbols to be *always*
8695   # included in the symbol list
8696   include_expsyms=
8697   # exclude_expsyms can be an extended regexp of symbols to exclude
8698   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8699   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8700   # as well as any symbol that contains `d'.
8701   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8702   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8703   # platforms (ab)use it in PIC code, but their linkers get confused if
8704   # the symbol is explicitly referenced.  Since portable code cannot
8705   # rely on this symbol name, it's probably fine to never include it in
8706   # preloaded symbol tables.
8707   # Exclude shared library initialization/finalization symbols.
8708   extract_expsyms_cmds=
8709
8710   case $host_os in
8711   cygwin* | mingw* | pw32* | cegcc*)
8712     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8713     # When not using gcc, we currently assume that we are using
8714     # Microsoft Visual C++.
8715     if test "$GCC" != yes; then
8716       with_gnu_ld=no
8717     fi
8718     ;;
8719   interix*)
8720     # we just hope/assume this is gcc and not c89 (= MSVC++)
8721     with_gnu_ld=yes
8722     ;;
8723   openbsd*)
8724     with_gnu_ld=no
8725     ;;
8726   esac
8727
8728   ld_shlibs=yes
8729
8730   # On some targets, GNU ld is compatible enough with the native linker
8731   # that we're better off using the native interface for both.
8732   lt_use_gnu_ld_interface=no
8733   if test "$with_gnu_ld" = yes; then
8734     case $host_os in
8735       aix*)
8736         # The AIX port of GNU ld has always aspired to compatibility
8737         # with the native linker.  However, as the warning in the GNU ld
8738         # block says, versions before 2.19.5* couldn't really create working
8739         # shared libraries, regardless of the interface used.
8740         case `$LD -v 2>&1` in
8741           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8742           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8743           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8744           *)
8745             lt_use_gnu_ld_interface=yes
8746             ;;
8747         esac
8748         ;;
8749       *)
8750         lt_use_gnu_ld_interface=yes
8751         ;;
8752     esac
8753   fi
8754
8755   if test "$lt_use_gnu_ld_interface" = yes; then
8756     # If archive_cmds runs LD, not CC, wlarc should be empty
8757     wlarc='${wl}'
8758
8759     # Set some defaults for GNU ld with shared library support. These
8760     # are reset later if shared libraries are not supported. Putting them
8761     # here allows them to be overridden if necessary.
8762     runpath_var=LD_RUN_PATH
8763     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8764     export_dynamic_flag_spec='${wl}--export-dynamic'
8765     # ancient GNU ld didn't support --whole-archive et. al.
8766     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8767       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8768     else
8769       whole_archive_flag_spec=
8770     fi
8771     supports_anon_versioning=no
8772     case `$LD -v 2>&1` in
8773       *GNU\ gold*) supports_anon_versioning=yes ;;
8774       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8775       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8776       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8777       *\ 2.11.*) ;; # other 2.11 versions
8778       *) supports_anon_versioning=yes ;;
8779     esac
8780
8781     # See if GNU ld supports shared libraries.
8782     case $host_os in
8783     aix[3-9]*)
8784       # On AIX/PPC, the GNU linker is very broken
8785       if test "$host_cpu" != ia64; then
8786         ld_shlibs=no
8787         cat <<_LT_EOF 1>&2
8788
8789 *** Warning: the GNU linker, at least up to release 2.19, is reported
8790 *** to be unable to reliably create shared libraries on AIX.
8791 *** Therefore, libtool is disabling shared libraries support.  If you
8792 *** really care for shared libraries, you may want to install binutils
8793 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8794 *** You will then need to restart the configuration process.
8795
8796 _LT_EOF
8797       fi
8798       ;;
8799
8800     amigaos*)
8801       case $host_cpu in
8802       powerpc)
8803             # see comment about AmigaOS4 .so support
8804             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8805             archive_expsym_cmds=''
8806         ;;
8807       m68k)
8808             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)'
8809             hardcode_libdir_flag_spec='-L$libdir'
8810             hardcode_minus_L=yes
8811         ;;
8812       esac
8813       ;;
8814
8815     beos*)
8816       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8817         allow_undefined_flag=unsupported
8818         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8819         # support --undefined.  This deserves some investigation.  FIXME
8820         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8821       else
8822         ld_shlibs=no
8823       fi
8824       ;;
8825
8826     cygwin* | mingw* | pw32* | cegcc*)
8827       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8828       # as there is no search path for DLLs.
8829       hardcode_libdir_flag_spec='-L$libdir'
8830       export_dynamic_flag_spec='${wl}--export-all-symbols'
8831       allow_undefined_flag=unsupported
8832       always_export_symbols=no
8833       enable_shared_with_static_runtimes=yes
8834       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'
8835       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8836
8837       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8838         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8839         # If the export-symbols file already is a .def file (1st line
8840         # is EXPORTS), use it as is; otherwise, prepend...
8841         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8842           cp $export_symbols $output_objdir/$soname.def;
8843         else
8844           echo EXPORTS > $output_objdir/$soname.def;
8845           cat $export_symbols >> $output_objdir/$soname.def;
8846         fi~
8847         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8848       else
8849         ld_shlibs=no
8850       fi
8851       ;;
8852
8853     haiku*)
8854       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8855       link_all_deplibs=yes
8856       ;;
8857
8858     interix[3-9]*)
8859       hardcode_direct=no
8860       hardcode_shlibpath_var=no
8861       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8862       export_dynamic_flag_spec='${wl}-E'
8863       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8864       # Instead, shared libraries are loaded at an image base (0x10000000 by
8865       # default) and relocated if they conflict, which is a slow very memory
8866       # consuming and fragmenting process.  To avoid this, we pick a random,
8867       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8868       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8869       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8870       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'
8871       ;;
8872
8873     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8874       tmp_diet=no
8875       if test "$host_os" = linux-dietlibc; then
8876         case $cc_basename in
8877           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8878         esac
8879       fi
8880       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8881          && test "$tmp_diet" = no
8882       then
8883         tmp_addflag=' $pic_flag'
8884         tmp_sharedflag='-shared'
8885         case $cc_basename,$host_cpu in
8886         pgcc*)                          # Portland Group C compiler
8887           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'
8888           tmp_addflag=' $pic_flag'
8889           ;;
8890         pgf77* | pgf90* | pgf95* | pgfortran*)
8891                                         # Portland Group f77 and f90 compilers
8892           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'
8893           tmp_addflag=' $pic_flag -Mnomain' ;;
8894         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8895           tmp_addflag=' -i_dynamic' ;;
8896         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8897           tmp_addflag=' -i_dynamic -nofor_main' ;;
8898         ifc* | ifort*)                  # Intel Fortran compiler
8899           tmp_addflag=' -nofor_main' ;;
8900         lf95*)                          # Lahey Fortran 8.1
8901           whole_archive_flag_spec=
8902           tmp_sharedflag='--shared' ;;
8903         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8904           tmp_sharedflag='-qmkshrobj'
8905           tmp_addflag= ;;
8906         nvcc*)  # Cuda Compiler Driver 2.2
8907           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'
8908           compiler_needs_object=yes
8909           ;;
8910         esac
8911         case `$CC -V 2>&1 | sed 5q` in
8912         *Sun\ C*)                       # Sun C 5.9
8913           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'
8914           compiler_needs_object=yes
8915           tmp_sharedflag='-G' ;;
8916         *Sun\ F*)                       # Sun Fortran 8.3
8917           tmp_sharedflag='-G' ;;
8918         esac
8919         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8920
8921         if test "x$supports_anon_versioning" = xyes; then
8922           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8923             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8924             echo "local: *; };" >> $output_objdir/$libname.ver~
8925             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8926         fi
8927
8928         case $cc_basename in
8929         xlf* | bgf* | bgxlf* | mpixlf*)
8930           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8931           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8932           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8933           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8934           if test "x$supports_anon_versioning" = xyes; then
8935             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8936               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8937               echo "local: *; };" >> $output_objdir/$libname.ver~
8938               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8939           fi
8940           ;;
8941         esac
8942       else
8943         ld_shlibs=no
8944       fi
8945       ;;
8946
8947     netbsd*)
8948       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8949         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8950         wlarc=
8951       else
8952         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8954       fi
8955       ;;
8956
8957     solaris*)
8958       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8959         ld_shlibs=no
8960         cat <<_LT_EOF 1>&2
8961
8962 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8963 *** create shared libraries on Solaris systems.  Therefore, libtool
8964 *** is disabling shared libraries support.  We urge you to upgrade GNU
8965 *** binutils to release 2.9.1 or newer.  Another option is to modify
8966 *** your PATH or compiler configuration so that the native linker is
8967 *** used, and then restart.
8968
8969 _LT_EOF
8970       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8971         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8972         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8973       else
8974         ld_shlibs=no
8975       fi
8976       ;;
8977
8978     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8979       case `$LD -v 2>&1` in
8980         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8981         ld_shlibs=no
8982         cat <<_LT_EOF 1>&2
8983
8984 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8985 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8986 *** is disabling shared libraries support.  We urge you to upgrade GNU
8987 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8988 *** your PATH or compiler configuration so that the native linker is
8989 *** used, and then restart.
8990
8991 _LT_EOF
8992         ;;
8993         *)
8994           # For security reasons, it is highly recommended that you always
8995           # use absolute paths for naming shared libraries, and exclude the
8996           # DT_RUNPATH tag from executables and libraries.  But doing so
8997           # requires that you compile everything twice, which is a pain.
8998           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8999             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9000             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9002           else
9003             ld_shlibs=no
9004           fi
9005         ;;
9006       esac
9007       ;;
9008
9009     sunos4*)
9010       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9011       wlarc=
9012       hardcode_direct=yes
9013       hardcode_shlibpath_var=no
9014       ;;
9015
9016     *)
9017       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9018         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9020       else
9021         ld_shlibs=no
9022       fi
9023       ;;
9024     esac
9025
9026     if test "$ld_shlibs" = no; then
9027       runpath_var=
9028       hardcode_libdir_flag_spec=
9029       export_dynamic_flag_spec=
9030       whole_archive_flag_spec=
9031     fi
9032   else
9033     # PORTME fill in a description of your system's linker (not GNU ld)
9034     case $host_os in
9035     aix3*)
9036       allow_undefined_flag=unsupported
9037       always_export_symbols=yes
9038       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'
9039       # Note: this linker hardcodes the directories in LIBPATH if there
9040       # are no directories specified by -L.
9041       hardcode_minus_L=yes
9042       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9043         # Neither direct hardcoding nor static linking is supported with a
9044         # broken collect2.
9045         hardcode_direct=unsupported
9046       fi
9047       ;;
9048
9049     aix[4-9]*)
9050       if test "$host_cpu" = ia64; then
9051         # On IA64, the linker does run time linking by default, so we don't
9052         # have to do anything special.
9053         aix_use_runtimelinking=no
9054         exp_sym_flag='-Bexport'
9055         no_entry_flag=""
9056       else
9057         # If we're using GNU nm, then we don't want the "-C" option.
9058         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9059         # Also, AIX nm treats weak defined symbols like other global
9060         # defined symbols, whereas GNU nm marks them as "W".
9061         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9062           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'
9063         else
9064           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'
9065         fi
9066         aix_use_runtimelinking=no
9067
9068         # Test if we are trying to use run time linking or normal
9069         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9070         # need to do runtime linking.
9071         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9072           for ld_flag in $LDFLAGS; do
9073           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9074             aix_use_runtimelinking=yes
9075             break
9076           fi
9077           done
9078           ;;
9079         esac
9080
9081         exp_sym_flag='-bexport'
9082         no_entry_flag='-bnoentry'
9083       fi
9084
9085       # When large executables or shared objects are built, AIX ld can
9086       # have problems creating the table of contents.  If linking a library
9087       # or program results in "error TOC overflow" add -mminimal-toc to
9088       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9089       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9090
9091       archive_cmds=''
9092       hardcode_direct=yes
9093       hardcode_direct_absolute=yes
9094       hardcode_libdir_separator=':'
9095       link_all_deplibs=yes
9096       file_list_spec='${wl}-f,'
9097
9098       if test "$GCC" = yes; then
9099         case $host_os in aix4.[012]|aix4.[012].*)
9100         # We only want to do this on AIX 4.2 and lower, the check
9101         # below for broken collect2 doesn't work under 4.3+
9102           collect2name=`${CC} -print-prog-name=collect2`
9103           if test -f "$collect2name" &&
9104            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9105           then
9106           # We have reworked collect2
9107           :
9108           else
9109           # We have old collect2
9110           hardcode_direct=unsupported
9111           # It fails to find uninstalled libraries when the uninstalled
9112           # path is not listed in the libpath.  Setting hardcode_minus_L
9113           # to unsupported forces relinking
9114           hardcode_minus_L=yes
9115           hardcode_libdir_flag_spec='-L$libdir'
9116           hardcode_libdir_separator=
9117           fi
9118           ;;
9119         esac
9120         shared_flag='-shared'
9121         if test "$aix_use_runtimelinking" = yes; then
9122           shared_flag="$shared_flag "'${wl}-G'
9123         fi
9124       else
9125         # not using gcc
9126         if test "$host_cpu" = ia64; then
9127         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9128         # chokes on -Wl,-G. The following line is correct:
9129           shared_flag='-G'
9130         else
9131           if test "$aix_use_runtimelinking" = yes; then
9132             shared_flag='${wl}-G'
9133           else
9134             shared_flag='${wl}-bM:SRE'
9135           fi
9136         fi
9137       fi
9138
9139       export_dynamic_flag_spec='${wl}-bexpall'
9140       # It seems that -bexpall does not export symbols beginning with
9141       # underscore (_), so it is better to generate a list of symbols to export.
9142       always_export_symbols=yes
9143       if test "$aix_use_runtimelinking" = yes; then
9144         # Warning - without using the other runtime loading flags (-brtl),
9145         # -berok will link without error, but may produce a broken library.
9146         allow_undefined_flag='-berok'
9147         # Determine the default libpath from the value encoded in an
9148         # empty executable.
9149         if test "${lt_cv_aix_libpath+set}" = set; then
9150   aix_libpath=$lt_cv_aix_libpath
9151 else
9152   if ${lt_cv_aix_libpath_+:} false; then :
9153   $as_echo_n "(cached) " >&6
9154 else
9155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156 /* end confdefs.h.  */
9157
9158 int
9159 main ()
9160 {
9161
9162   ;
9163   return 0;
9164 }
9165 _ACEOF
9166 if ac_fn_c_try_link "$LINENO"; then :
9167
9168   lt_aix_libpath_sed='
9169       /Import File Strings/,/^$/ {
9170           /^0/ {
9171               s/^0  *\([^ ]*\) *$/\1/
9172               p
9173           }
9174       }'
9175   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9176   # Check for a 64-bit object if we didn't find anything.
9177   if test -z "$lt_cv_aix_libpath_"; then
9178     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9179   fi
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext \
9182     conftest$ac_exeext conftest.$ac_ext
9183   if test -z "$lt_cv_aix_libpath_"; then
9184     lt_cv_aix_libpath_="/usr/lib:/lib"
9185   fi
9186
9187 fi
9188
9189   aix_libpath=$lt_cv_aix_libpath_
9190 fi
9191
9192         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9193         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"
9194       else
9195         if test "$host_cpu" = ia64; then
9196           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9197           allow_undefined_flag="-z nodefs"
9198           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"
9199         else
9200          # Determine the default libpath from the value encoded in an
9201          # empty executable.
9202          if test "${lt_cv_aix_libpath+set}" = set; then
9203   aix_libpath=$lt_cv_aix_libpath
9204 else
9205   if ${lt_cv_aix_libpath_+:} false; then :
9206   $as_echo_n "(cached) " >&6
9207 else
9208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h.  */
9210
9211 int
9212 main ()
9213 {
9214
9215   ;
9216   return 0;
9217 }
9218 _ACEOF
9219 if ac_fn_c_try_link "$LINENO"; then :
9220
9221   lt_aix_libpath_sed='
9222       /Import File Strings/,/^$/ {
9223           /^0/ {
9224               s/^0  *\([^ ]*\) *$/\1/
9225               p
9226           }
9227       }'
9228   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9229   # Check for a 64-bit object if we didn't find anything.
9230   if test -z "$lt_cv_aix_libpath_"; then
9231     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9232   fi
9233 fi
9234 rm -f core conftest.err conftest.$ac_objext \
9235     conftest$ac_exeext conftest.$ac_ext
9236   if test -z "$lt_cv_aix_libpath_"; then
9237     lt_cv_aix_libpath_="/usr/lib:/lib"
9238   fi
9239
9240 fi
9241
9242   aix_libpath=$lt_cv_aix_libpath_
9243 fi
9244
9245          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9246           # Warning - without using the other run time loading flags,
9247           # -berok will link without error, but may produce a broken library.
9248           no_undefined_flag=' ${wl}-bernotok'
9249           allow_undefined_flag=' ${wl}-berok'
9250           if test "$with_gnu_ld" = yes; then
9251             # We only use this code for GNU lds that support --whole-archive.
9252             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9253           else
9254             # Exported symbols can be pulled into shared objects from archives
9255             whole_archive_flag_spec='$convenience'
9256           fi
9257           archive_cmds_need_lc=yes
9258           # This is similar to how AIX traditionally builds its shared libraries.
9259           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'
9260         fi
9261       fi
9262       ;;
9263
9264     amigaos*)
9265       case $host_cpu in
9266       powerpc)
9267             # see comment about AmigaOS4 .so support
9268             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9269             archive_expsym_cmds=''
9270         ;;
9271       m68k)
9272             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)'
9273             hardcode_libdir_flag_spec='-L$libdir'
9274             hardcode_minus_L=yes
9275         ;;
9276       esac
9277       ;;
9278
9279     bsdi[45]*)
9280       export_dynamic_flag_spec=-rdynamic
9281       ;;
9282
9283     cygwin* | mingw* | pw32* | cegcc*)
9284       # When not using gcc, we currently assume that we are using
9285       # Microsoft Visual C++.
9286       # hardcode_libdir_flag_spec is actually meaningless, as there is
9287       # no search path for DLLs.
9288       case $cc_basename in
9289       cl*)
9290         # Native MSVC
9291         hardcode_libdir_flag_spec=' '
9292         allow_undefined_flag=unsupported
9293         always_export_symbols=yes
9294         file_list_spec='@'
9295         # Tell ltmain to make .lib files, not .a files.
9296         libext=lib
9297         # Tell ltmain to make .dll files, not .so files.
9298         shrext_cmds=".dll"
9299         # FIXME: Setting linknames here is a bad hack.
9300         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9301         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9302             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9303           else
9304             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9305           fi~
9306           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9307           linknames='
9308         # The linker will not automatically build a static lib if we build a DLL.
9309         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9310         enable_shared_with_static_runtimes=yes
9311         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9312         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9313         # Don't use ranlib
9314         old_postinstall_cmds='chmod 644 $oldlib'
9315         postlink_cmds='lt_outputfile="@OUTPUT@"~
9316           lt_tool_outputfile="@TOOL_OUTPUT@"~
9317           case $lt_outputfile in
9318             *.exe|*.EXE) ;;
9319             *)
9320               lt_outputfile="$lt_outputfile.exe"
9321               lt_tool_outputfile="$lt_tool_outputfile.exe"
9322               ;;
9323           esac~
9324           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9325             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9326             $RM "$lt_outputfile.manifest";
9327           fi'
9328         ;;
9329       *)
9330         # Assume MSVC wrapper
9331         hardcode_libdir_flag_spec=' '
9332         allow_undefined_flag=unsupported
9333         # Tell ltmain to make .lib files, not .a files.
9334         libext=lib
9335         # Tell ltmain to make .dll files, not .so files.
9336         shrext_cmds=".dll"
9337         # FIXME: Setting linknames here is a bad hack.
9338         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9339         # The linker will automatically build a .lib file if we build a DLL.
9340         old_archive_from_new_cmds='true'
9341         # FIXME: Should let the user specify the lib program.
9342         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9343         enable_shared_with_static_runtimes=yes
9344         ;;
9345       esac
9346       ;;
9347
9348     darwin* | rhapsody*)
9349
9350
9351   archive_cmds_need_lc=no
9352   hardcode_direct=no
9353   hardcode_automatic=yes
9354   hardcode_shlibpath_var=unsupported
9355   if test "$lt_cv_ld_force_load" = "yes"; then
9356     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\"`'
9357
9358   else
9359     whole_archive_flag_spec=''
9360   fi
9361   link_all_deplibs=yes
9362   allow_undefined_flag="$_lt_dar_allow_undefined"
9363   case $cc_basename in
9364      ifort*) _lt_dar_can_shared=yes ;;
9365      *) _lt_dar_can_shared=$GCC ;;
9366   esac
9367   if test "$_lt_dar_can_shared" = "yes"; then
9368     output_verbose_link_cmd=func_echo_all
9369     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9370     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9371     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}"
9372     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}"
9373
9374   else
9375   ld_shlibs=no
9376   fi
9377
9378       ;;
9379
9380     dgux*)
9381       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9382       hardcode_libdir_flag_spec='-L$libdir'
9383       hardcode_shlibpath_var=no
9384       ;;
9385
9386     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9387     # support.  Future versions do this automatically, but an explicit c++rt0.o
9388     # does not break anything, and helps significantly (at the cost of a little
9389     # extra space).
9390     freebsd2.2*)
9391       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9392       hardcode_libdir_flag_spec='-R$libdir'
9393       hardcode_direct=yes
9394       hardcode_shlibpath_var=no
9395       ;;
9396
9397     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9398     freebsd2.*)
9399       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9400       hardcode_direct=yes
9401       hardcode_minus_L=yes
9402       hardcode_shlibpath_var=no
9403       ;;
9404
9405     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9406     freebsd* | dragonfly*)
9407       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9408       hardcode_libdir_flag_spec='-R$libdir'
9409       hardcode_direct=yes
9410       hardcode_shlibpath_var=no
9411       ;;
9412
9413     hpux9*)
9414       if test "$GCC" = yes; then
9415         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'
9416       else
9417         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'
9418       fi
9419       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9420       hardcode_libdir_separator=:
9421       hardcode_direct=yes
9422
9423       # hardcode_minus_L: Not really in the search PATH,
9424       # but as the default location of the library.
9425       hardcode_minus_L=yes
9426       export_dynamic_flag_spec='${wl}-E'
9427       ;;
9428
9429     hpux10*)
9430       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9431         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9432       else
9433         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9434       fi
9435       if test "$with_gnu_ld" = no; then
9436         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9437         hardcode_libdir_separator=:
9438         hardcode_direct=yes
9439         hardcode_direct_absolute=yes
9440         export_dynamic_flag_spec='${wl}-E'
9441         # hardcode_minus_L: Not really in the search PATH,
9442         # but as the default location of the library.
9443         hardcode_minus_L=yes
9444       fi
9445       ;;
9446
9447     hpux11*)
9448       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9449         case $host_cpu in
9450         hppa*64*)
9451           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9452           ;;
9453         ia64*)
9454           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9455           ;;
9456         *)
9457           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9458           ;;
9459         esac
9460       else
9461         case $host_cpu in
9462         hppa*64*)
9463           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9464           ;;
9465         ia64*)
9466           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9467           ;;
9468         *)
9469
9470           # Older versions of the 11.00 compiler do not understand -b yet
9471           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9472           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9473 $as_echo_n "checking if $CC understands -b... " >&6; }
9474 if ${lt_cv_prog_compiler__b+:} false; then :
9475   $as_echo_n "(cached) " >&6
9476 else
9477   lt_cv_prog_compiler__b=no
9478    save_LDFLAGS="$LDFLAGS"
9479    LDFLAGS="$LDFLAGS -b"
9480    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9481    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9482      # The linker can only warn and ignore the option if not recognized
9483      # So say no if there are warnings
9484      if test -s conftest.err; then
9485        # Append any errors to the config.log.
9486        cat conftest.err 1>&5
9487        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9488        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9489        if diff conftest.exp conftest.er2 >/dev/null; then
9490          lt_cv_prog_compiler__b=yes
9491        fi
9492      else
9493        lt_cv_prog_compiler__b=yes
9494      fi
9495    fi
9496    $RM -r conftest*
9497    LDFLAGS="$save_LDFLAGS"
9498
9499 fi
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9501 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9502
9503 if test x"$lt_cv_prog_compiler__b" = xyes; then
9504     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9505 else
9506     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9507 fi
9508
9509           ;;
9510         esac
9511       fi
9512       if test "$with_gnu_ld" = no; then
9513         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9514         hardcode_libdir_separator=:
9515
9516         case $host_cpu in
9517         hppa*64*|ia64*)
9518           hardcode_direct=no
9519           hardcode_shlibpath_var=no
9520           ;;
9521         *)
9522           hardcode_direct=yes
9523           hardcode_direct_absolute=yes
9524           export_dynamic_flag_spec='${wl}-E'
9525
9526           # hardcode_minus_L: Not really in the search PATH,
9527           # but as the default location of the library.
9528           hardcode_minus_L=yes
9529           ;;
9530         esac
9531       fi
9532       ;;
9533
9534     irix5* | irix6* | nonstopux*)
9535       if test "$GCC" = yes; then
9536         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'
9537         # Try to use the -exported_symbol ld option, if it does not
9538         # work, assume that -exports_file does not work either and
9539         # implicitly export all symbols.
9540         # This should be the same for all languages, so no per-tag cache variable.
9541         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9542 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9543 if ${lt_cv_irix_exported_symbol+:} false; then :
9544   $as_echo_n "(cached) " >&6
9545 else
9546   save_LDFLAGS="$LDFLAGS"
9547            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9548            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h.  */
9550 int foo (void) { return 0; }
9551 _ACEOF
9552 if ac_fn_c_try_link "$LINENO"; then :
9553   lt_cv_irix_exported_symbol=yes
9554 else
9555   lt_cv_irix_exported_symbol=no
9556 fi
9557 rm -f core conftest.err conftest.$ac_objext \
9558     conftest$ac_exeext conftest.$ac_ext
9559            LDFLAGS="$save_LDFLAGS"
9560 fi
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9562 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9563         if test "$lt_cv_irix_exported_symbol" = yes; then
9564           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'
9565         fi
9566       else
9567         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'
9568         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'
9569       fi
9570       archive_cmds_need_lc='no'
9571       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9572       hardcode_libdir_separator=:
9573       inherit_rpath=yes
9574       link_all_deplibs=yes
9575       ;;
9576
9577     netbsd*)
9578       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9579         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9580       else
9581         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9582       fi
9583       hardcode_libdir_flag_spec='-R$libdir'
9584       hardcode_direct=yes
9585       hardcode_shlibpath_var=no
9586       ;;
9587
9588     newsos6)
9589       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9590       hardcode_direct=yes
9591       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9592       hardcode_libdir_separator=:
9593       hardcode_shlibpath_var=no
9594       ;;
9595
9596     *nto* | *qnx*)
9597       ;;
9598
9599     openbsd*)
9600       if test -f /usr/libexec/ld.so; then
9601         hardcode_direct=yes
9602         hardcode_shlibpath_var=no
9603         hardcode_direct_absolute=yes
9604         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9605           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9606           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9607           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9608           export_dynamic_flag_spec='${wl}-E'
9609         else
9610           case $host_os in
9611            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9612              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9613              hardcode_libdir_flag_spec='-R$libdir'
9614              ;;
9615            *)
9616              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9617              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9618              ;;
9619           esac
9620         fi
9621       else
9622         ld_shlibs=no
9623       fi
9624       ;;
9625
9626     os2*)
9627       hardcode_libdir_flag_spec='-L$libdir'
9628       hardcode_minus_L=yes
9629       allow_undefined_flag=unsupported
9630       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'
9631       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9632       ;;
9633
9634     osf3*)
9635       if test "$GCC" = yes; then
9636         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9637         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'
9638       else
9639         allow_undefined_flag=' -expect_unresolved \*'
9640         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'
9641       fi
9642       archive_cmds_need_lc='no'
9643       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9644       hardcode_libdir_separator=:
9645       ;;
9646
9647     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9648       if test "$GCC" = yes; then
9649         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9650         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'
9651         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9652       else
9653         allow_undefined_flag=' -expect_unresolved \*'
9654         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'
9655         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~
9656         $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'
9657
9658         # Both c and cxx compiler support -rpath directly
9659         hardcode_libdir_flag_spec='-rpath $libdir'
9660       fi
9661       archive_cmds_need_lc='no'
9662       hardcode_libdir_separator=:
9663       ;;
9664
9665     solaris*)
9666       no_undefined_flag=' -z defs'
9667       if test "$GCC" = yes; then
9668         wlarc='${wl}'
9669         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9670         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9671           $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'
9672       else
9673         case `$CC -V 2>&1` in
9674         *"Compilers 5.0"*)
9675           wlarc=''
9676           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9677           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9678           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9679           ;;
9680         *)
9681           wlarc='${wl}'
9682           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9683           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9684           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9685           ;;
9686         esac
9687       fi
9688       hardcode_libdir_flag_spec='-R$libdir'
9689       hardcode_shlibpath_var=no
9690       case $host_os in
9691       solaris2.[0-5] | solaris2.[0-5].*) ;;
9692       *)
9693         # The compiler driver will combine and reorder linker options,
9694         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9695         # but is careful enough not to reorder.
9696         # Supported since Solaris 2.6 (maybe 2.5.1?)
9697         if test "$GCC" = yes; then
9698           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9699         else
9700           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9701         fi
9702         ;;
9703       esac
9704       link_all_deplibs=yes
9705       ;;
9706
9707     sunos4*)
9708       if test "x$host_vendor" = xsequent; then
9709         # Use $CC to link under sequent, because it throws in some extra .o
9710         # files that make .init and .fini sections work.
9711         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9712       else
9713         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9714       fi
9715       hardcode_libdir_flag_spec='-L$libdir'
9716       hardcode_direct=yes
9717       hardcode_minus_L=yes
9718       hardcode_shlibpath_var=no
9719       ;;
9720
9721     sysv4)
9722       case $host_vendor in
9723         sni)
9724           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725           hardcode_direct=yes # is this really true???
9726         ;;
9727         siemens)
9728           ## LD is ld it makes a PLAMLIB
9729           ## CC just makes a GrossModule.
9730           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9731           reload_cmds='$CC -r -o $output$reload_objs'
9732           hardcode_direct=no
9733         ;;
9734         motorola)
9735           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9737         ;;
9738       esac
9739       runpath_var='LD_RUN_PATH'
9740       hardcode_shlibpath_var=no
9741       ;;
9742
9743     sysv4.3*)
9744       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9745       hardcode_shlibpath_var=no
9746       export_dynamic_flag_spec='-Bexport'
9747       ;;
9748
9749     sysv4*MP*)
9750       if test -d /usr/nec; then
9751         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9752         hardcode_shlibpath_var=no
9753         runpath_var=LD_RUN_PATH
9754         hardcode_runpath_var=yes
9755         ld_shlibs=yes
9756       fi
9757       ;;
9758
9759     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9760       no_undefined_flag='${wl}-z,text'
9761       archive_cmds_need_lc=no
9762       hardcode_shlibpath_var=no
9763       runpath_var='LD_RUN_PATH'
9764
9765       if test "$GCC" = yes; then
9766         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9767         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9768       else
9769         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9770         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9771       fi
9772       ;;
9773
9774     sysv5* | sco3.2v5* | sco5v6*)
9775       # Note: We can NOT use -z defs as we might desire, because we do not
9776       # link with -lc, and that would cause any symbols used from libc to
9777       # always be unresolved, which means just about no library would
9778       # ever link correctly.  If we're not using GNU ld we use -z text
9779       # though, which does catch some bad symbols but isn't as heavy-handed
9780       # as -z defs.
9781       no_undefined_flag='${wl}-z,text'
9782       allow_undefined_flag='${wl}-z,nodefs'
9783       archive_cmds_need_lc=no
9784       hardcode_shlibpath_var=no
9785       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9786       hardcode_libdir_separator=':'
9787       link_all_deplibs=yes
9788       export_dynamic_flag_spec='${wl}-Bexport'
9789       runpath_var='LD_RUN_PATH'
9790
9791       if test "$GCC" = yes; then
9792         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9793         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9794       else
9795         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9796         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9797       fi
9798       ;;
9799
9800     uts4*)
9801       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9802       hardcode_libdir_flag_spec='-L$libdir'
9803       hardcode_shlibpath_var=no
9804       ;;
9805
9806     *)
9807       ld_shlibs=no
9808       ;;
9809     esac
9810
9811     if test x$host_vendor = xsni; then
9812       case $host in
9813       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9814         export_dynamic_flag_spec='${wl}-Blargedynsym'
9815         ;;
9816       esac
9817     fi
9818   fi
9819
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9821 $as_echo "$ld_shlibs" >&6; }
9822 test "$ld_shlibs" = no && can_build_shared=no
9823
9824 with_gnu_ld=$with_gnu_ld
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840 #
9841 # Do we need to explicitly link libc?
9842 #
9843 case "x$archive_cmds_need_lc" in
9844 x|xyes)
9845   # Assume -lc should be added
9846   archive_cmds_need_lc=yes
9847
9848   if test "$enable_shared" = yes && test "$GCC" = yes; then
9849     case $archive_cmds in
9850     *'~'*)
9851       # FIXME: we may have to deal with multi-command sequences.
9852       ;;
9853     '$CC '*)
9854       # Test whether the compiler implicitly links with -lc since on some
9855       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9856       # to ld, don't add -lc before -lgcc.
9857       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9858 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9859 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9860   $as_echo_n "(cached) " >&6
9861 else
9862   $RM conftest*
9863         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9864
9865         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9866   (eval $ac_compile) 2>&5
9867   ac_status=$?
9868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9869   test $ac_status = 0; } 2>conftest.err; then
9870           soname=conftest
9871           lib=conftest
9872           libobjs=conftest.$ac_objext
9873           deplibs=
9874           wl=$lt_prog_compiler_wl
9875           pic_flag=$lt_prog_compiler_pic
9876           compiler_flags=-v
9877           linker_flags=-v
9878           verstring=
9879           output_objdir=.
9880           libname=conftest
9881           lt_save_allow_undefined_flag=$allow_undefined_flag
9882           allow_undefined_flag=
9883           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9884   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9885   ac_status=$?
9886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9887   test $ac_status = 0; }
9888           then
9889             lt_cv_archive_cmds_need_lc=no
9890           else
9891             lt_cv_archive_cmds_need_lc=yes
9892           fi
9893           allow_undefined_flag=$lt_save_allow_undefined_flag
9894         else
9895           cat conftest.err 1>&5
9896         fi
9897         $RM conftest*
9898
9899 fi
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9901 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9902       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9903       ;;
9904     esac
9905   fi
9906   ;;
9907 esac
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10061 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10062
10063 if test "$GCC" = yes; then
10064   case $host_os in
10065     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10066     *) lt_awk_arg="/^libraries:/" ;;
10067   esac
10068   case $host_os in
10069     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10070     *) lt_sed_strip_eq="s,=/,/,g" ;;
10071   esac
10072   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10073   case $lt_search_path_spec in
10074   *\;*)
10075     # if the path contains ";" then we assume it to be the separator
10076     # otherwise default to the standard path separator (i.e. ":") - it is
10077     # assumed that no part of a normal pathname contains ";" but that should
10078     # okay in the real world where ";" in dirpaths is itself problematic.
10079     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10080     ;;
10081   *)
10082     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10083     ;;
10084   esac
10085   # Ok, now we have the path, separated by spaces, we can step through it
10086   # and add multilib dir if necessary.
10087   lt_tmp_lt_search_path_spec=
10088   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10089   for lt_sys_path in $lt_search_path_spec; do
10090     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10091       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10092     else
10093       test -d "$lt_sys_path" && \
10094         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10095     fi
10096   done
10097   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10098 BEGIN {RS=" "; FS="/|\n";} {
10099   lt_foo="";
10100   lt_count=0;
10101   for (lt_i = NF; lt_i > 0; lt_i--) {
10102     if ($lt_i != "" && $lt_i != ".") {
10103       if ($lt_i == "..") {
10104         lt_count++;
10105       } else {
10106         if (lt_count == 0) {
10107           lt_foo="/" $lt_i lt_foo;
10108         } else {
10109           lt_count--;
10110         }
10111       }
10112     }
10113   }
10114   if (lt_foo != "") { lt_freq[lt_foo]++; }
10115   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10116 }'`
10117   # AWK program above erroneously prepends '/' to C:/dos/paths
10118   # for these hosts.
10119   case $host_os in
10120     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10121       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10122   esac
10123   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10124 else
10125   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10126 fi
10127 library_names_spec=
10128 libname_spec='lib$name'
10129 soname_spec=
10130 shrext_cmds=".so"
10131 postinstall_cmds=
10132 postuninstall_cmds=
10133 finish_cmds=
10134 finish_eval=
10135 shlibpath_var=
10136 shlibpath_overrides_runpath=unknown
10137 version_type=none
10138 dynamic_linker="$host_os ld.so"
10139 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10140 need_lib_prefix=unknown
10141 hardcode_into_libs=no
10142
10143 # when you set need_version to no, make sure it does not cause -set_version
10144 # flags to be left without arguments
10145 need_version=unknown
10146
10147 case $host_os in
10148 aix3*)
10149   version_type=linux # correct to gnu/linux during the next big refactor
10150   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10151   shlibpath_var=LIBPATH
10152
10153   # AIX 3 has no versioning support, so we append a major version to the name.
10154   soname_spec='${libname}${release}${shared_ext}$major'
10155   ;;
10156
10157 aix[4-9]*)
10158   version_type=linux # correct to gnu/linux during the next big refactor
10159   need_lib_prefix=no
10160   need_version=no
10161   hardcode_into_libs=yes
10162   if test "$host_cpu" = ia64; then
10163     # AIX 5 supports IA64
10164     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10165     shlibpath_var=LD_LIBRARY_PATH
10166   else
10167     # With GCC up to 2.95.x, collect2 would create an import file
10168     # for dependence libraries.  The import file would start with
10169     # the line `#! .'.  This would cause the generated library to
10170     # depend on `.', always an invalid library.  This was fixed in
10171     # development snapshots of GCC prior to 3.0.
10172     case $host_os in
10173       aix4 | aix4.[01] | aix4.[01].*)
10174       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10175            echo ' yes '
10176            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10177         :
10178       else
10179         can_build_shared=no
10180       fi
10181       ;;
10182     esac
10183     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10184     # soname into executable. Probably we can add versioning support to
10185     # collect2, so additional links can be useful in future.
10186     if test "$aix_use_runtimelinking" = yes; then
10187       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10188       # instead of lib<name>.a to let people know that these are not
10189       # typical AIX shared libraries.
10190       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191     else
10192       # We preserve .a as extension for shared libraries through AIX4.2
10193       # and later when we are not doing run time linking.
10194       library_names_spec='${libname}${release}.a $libname.a'
10195       soname_spec='${libname}${release}${shared_ext}$major'
10196     fi
10197     shlibpath_var=LIBPATH
10198   fi
10199   ;;
10200
10201 amigaos*)
10202   case $host_cpu in
10203   powerpc)
10204     # Since July 2007 AmigaOS4 officially supports .so libraries.
10205     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207     ;;
10208   m68k)
10209     library_names_spec='$libname.ixlibrary $libname.a'
10210     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10211     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'
10212     ;;
10213   esac
10214   ;;
10215
10216 beos*)
10217   library_names_spec='${libname}${shared_ext}'
10218   dynamic_linker="$host_os ld.so"
10219   shlibpath_var=LIBRARY_PATH
10220   ;;
10221
10222 bsdi[45]*)
10223   version_type=linux # correct to gnu/linux during the next big refactor
10224   need_version=no
10225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226   soname_spec='${libname}${release}${shared_ext}$major'
10227   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10228   shlibpath_var=LD_LIBRARY_PATH
10229   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10230   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10231   # the default ld.so.conf also contains /usr/contrib/lib and
10232   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10233   # libtool to hard-code these into programs
10234   ;;
10235
10236 cygwin* | mingw* | pw32* | cegcc*)
10237   version_type=windows
10238   shrext_cmds=".dll"
10239   need_version=no
10240   need_lib_prefix=no
10241
10242   case $GCC,$cc_basename in
10243   yes,*)
10244     # gcc
10245     library_names_spec='$libname.dll.a'
10246     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10247     postinstall_cmds='base_file=`basename \${file}`~
10248       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10249       dldir=$destdir/`dirname \$dlpath`~
10250       test -d \$dldir || mkdir -p \$dldir~
10251       $install_prog $dir/$dlname \$dldir/$dlname~
10252       chmod a+x \$dldir/$dlname~
10253       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10254         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10255       fi'
10256     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10257       dlpath=$dir/\$dldll~
10258        $RM \$dlpath'
10259     shlibpath_overrides_runpath=yes
10260
10261     case $host_os in
10262     cygwin*)
10263       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10264       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10265
10266       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10267       ;;
10268     mingw* | cegcc*)
10269       # MinGW DLLs use traditional 'lib' prefix
10270       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10271       ;;
10272     pw32*)
10273       # pw32 DLLs use 'pw' prefix rather than 'lib'
10274       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10275       ;;
10276     esac
10277     dynamic_linker='Win32 ld.exe'
10278     ;;
10279
10280   *,cl*)
10281     # Native MSVC
10282     libname_spec='$name'
10283     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10284     library_names_spec='${libname}.dll.lib'
10285
10286     case $build_os in
10287     mingw*)
10288       sys_lib_search_path_spec=
10289       lt_save_ifs=$IFS
10290       IFS=';'
10291       for lt_path in $LIB
10292       do
10293         IFS=$lt_save_ifs
10294         # Let DOS variable expansion print the short 8.3 style file name.
10295         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10296         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10297       done
10298       IFS=$lt_save_ifs
10299       # Convert to MSYS style.
10300       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10301       ;;
10302     cygwin*)
10303       # Convert to unix form, then to dos form, then back to unix form
10304       # but this time dos style (no spaces!) so that the unix form looks
10305       # like /cygdrive/c/PROGRA~1:/cygdr...
10306       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10307       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10308       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10309       ;;
10310     *)
10311       sys_lib_search_path_spec="$LIB"
10312       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10313         # It is most probably a Windows format PATH.
10314         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10315       else
10316         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10317       fi
10318       # FIXME: find the short name or the path components, as spaces are
10319       # common. (e.g. "Program Files" -> "PROGRA~1")
10320       ;;
10321     esac
10322
10323     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10324     postinstall_cmds='base_file=`basename \${file}`~
10325       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10326       dldir=$destdir/`dirname \$dlpath`~
10327       test -d \$dldir || mkdir -p \$dldir~
10328       $install_prog $dir/$dlname \$dldir/$dlname'
10329     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10330       dlpath=$dir/\$dldll~
10331        $RM \$dlpath'
10332     shlibpath_overrides_runpath=yes
10333     dynamic_linker='Win32 link.exe'
10334     ;;
10335
10336   *)
10337     # Assume MSVC wrapper
10338     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10339     dynamic_linker='Win32 ld.exe'
10340     ;;
10341   esac
10342   # FIXME: first we should search . and the directory the executable is in
10343   shlibpath_var=PATH
10344   ;;
10345
10346 darwin* | rhapsody*)
10347   dynamic_linker="$host_os dyld"
10348   version_type=darwin
10349   need_lib_prefix=no
10350   need_version=no
10351   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10352   soname_spec='${libname}${release}${major}$shared_ext'
10353   shlibpath_overrides_runpath=yes
10354   shlibpath_var=DYLD_LIBRARY_PATH
10355   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10356
10357   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10358   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10359   ;;
10360
10361 dgux*)
10362   version_type=linux # correct to gnu/linux during the next big refactor
10363   need_lib_prefix=no
10364   need_version=no
10365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10366   soname_spec='${libname}${release}${shared_ext}$major'
10367   shlibpath_var=LD_LIBRARY_PATH
10368   ;;
10369
10370 freebsd* | dragonfly*)
10371   # DragonFly does not have aout.  When/if they implement a new
10372   # versioning mechanism, adjust this.
10373   if test -x /usr/bin/objformat; then
10374     objformat=`/usr/bin/objformat`
10375   else
10376     case $host_os in
10377     freebsd[23].*) objformat=aout ;;
10378     *) objformat=elf ;;
10379     esac
10380   fi
10381   version_type=freebsd-$objformat
10382   case $version_type in
10383     freebsd-elf*)
10384       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10385       need_version=no
10386       need_lib_prefix=no
10387       ;;
10388     freebsd-*)
10389       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10390       need_version=yes
10391       ;;
10392   esac
10393   shlibpath_var=LD_LIBRARY_PATH
10394   case $host_os in
10395   freebsd2.*)
10396     shlibpath_overrides_runpath=yes
10397     ;;
10398   freebsd3.[01]* | freebsdelf3.[01]*)
10399     shlibpath_overrides_runpath=yes
10400     hardcode_into_libs=yes
10401     ;;
10402   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10403   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10404     shlibpath_overrides_runpath=no
10405     hardcode_into_libs=yes
10406     ;;
10407   *) # from 4.6 on, and DragonFly
10408     shlibpath_overrides_runpath=yes
10409     hardcode_into_libs=yes
10410     ;;
10411   esac
10412   ;;
10413
10414 gnu*)
10415   version_type=linux # correct to gnu/linux during the next big refactor
10416   need_lib_prefix=no
10417   need_version=no
10418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10419   soname_spec='${libname}${release}${shared_ext}$major'
10420   shlibpath_var=LD_LIBRARY_PATH
10421   shlibpath_overrides_runpath=no
10422   hardcode_into_libs=yes
10423   ;;
10424
10425 haiku*)
10426   version_type=linux # correct to gnu/linux during the next big refactor
10427   need_lib_prefix=no
10428   need_version=no
10429   dynamic_linker="$host_os runtime_loader"
10430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10431   soname_spec='${libname}${release}${shared_ext}$major'
10432   shlibpath_var=LIBRARY_PATH
10433   shlibpath_overrides_runpath=yes
10434   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10435   hardcode_into_libs=yes
10436   ;;
10437
10438 hpux9* | hpux10* | hpux11*)
10439   # Give a soname corresponding to the major version so that dld.sl refuses to
10440   # link against other versions.
10441   version_type=sunos
10442   need_lib_prefix=no
10443   need_version=no
10444   case $host_cpu in
10445   ia64*)
10446     shrext_cmds='.so'
10447     hardcode_into_libs=yes
10448     dynamic_linker="$host_os dld.so"
10449     shlibpath_var=LD_LIBRARY_PATH
10450     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452     soname_spec='${libname}${release}${shared_ext}$major'
10453     if test "X$HPUX_IA64_MODE" = X32; then
10454       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10455     else
10456       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10457     fi
10458     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10459     ;;
10460   hppa*64*)
10461     shrext_cmds='.sl'
10462     hardcode_into_libs=yes
10463     dynamic_linker="$host_os dld.sl"
10464     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10465     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10466     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467     soname_spec='${libname}${release}${shared_ext}$major'
10468     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10469     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10470     ;;
10471   *)
10472     shrext_cmds='.sl'
10473     dynamic_linker="$host_os dld.sl"
10474     shlibpath_var=SHLIB_PATH
10475     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10476     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10477     soname_spec='${libname}${release}${shared_ext}$major'
10478     ;;
10479   esac
10480   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10481   postinstall_cmds='chmod 555 $lib'
10482   # or fails outright, so override atomically:
10483   install_override_mode=555
10484   ;;
10485
10486 interix[3-9]*)
10487   version_type=linux # correct to gnu/linux during the next big refactor
10488   need_lib_prefix=no
10489   need_version=no
10490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10491   soname_spec='${libname}${release}${shared_ext}$major'
10492   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10493   shlibpath_var=LD_LIBRARY_PATH
10494   shlibpath_overrides_runpath=no
10495   hardcode_into_libs=yes
10496   ;;
10497
10498 irix5* | irix6* | nonstopux*)
10499   case $host_os in
10500     nonstopux*) version_type=nonstopux ;;
10501     *)
10502         if test "$lt_cv_prog_gnu_ld" = yes; then
10503                 version_type=linux # correct to gnu/linux during the next big refactor
10504         else
10505                 version_type=irix
10506         fi ;;
10507   esac
10508   need_lib_prefix=no
10509   need_version=no
10510   soname_spec='${libname}${release}${shared_ext}$major'
10511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10512   case $host_os in
10513   irix5* | nonstopux*)
10514     libsuff= shlibsuff=
10515     ;;
10516   *)
10517     case $LD in # libtool.m4 will add one of these switches to LD
10518     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10519       libsuff= shlibsuff= libmagic=32-bit;;
10520     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10521       libsuff=32 shlibsuff=N32 libmagic=N32;;
10522     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10523       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10524     *) libsuff= shlibsuff= libmagic=never-match;;
10525     esac
10526     ;;
10527   esac
10528   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10529   shlibpath_overrides_runpath=no
10530   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10531   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10532   hardcode_into_libs=yes
10533   ;;
10534
10535 # No shared lib support for Linux oldld, aout, or coff.
10536 linux*oldld* | linux*aout* | linux*coff*)
10537   dynamic_linker=no
10538   ;;
10539
10540 # This must be glibc/ELF.
10541 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10542   version_type=linux # correct to gnu/linux during the next big refactor
10543   need_lib_prefix=no
10544   need_version=no
10545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546   soname_spec='${libname}${release}${shared_ext}$major'
10547   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10548   shlibpath_var=LD_LIBRARY_PATH
10549   shlibpath_overrides_runpath=no
10550
10551   # Some binutils ld are patched to set DT_RUNPATH
10552   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10553   $as_echo_n "(cached) " >&6
10554 else
10555   lt_cv_shlibpath_overrides_runpath=no
10556     save_LDFLAGS=$LDFLAGS
10557     save_libdir=$libdir
10558     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10559          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10560     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10561 /* end confdefs.h.  */
10562
10563 int
10564 main ()
10565 {
10566
10567   ;
10568   return 0;
10569 }
10570 _ACEOF
10571 if ac_fn_c_try_link "$LINENO"; then :
10572   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10573   lt_cv_shlibpath_overrides_runpath=yes
10574 fi
10575 fi
10576 rm -f core conftest.err conftest.$ac_objext \
10577     conftest$ac_exeext conftest.$ac_ext
10578     LDFLAGS=$save_LDFLAGS
10579     libdir=$save_libdir
10580
10581 fi
10582
10583   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10584
10585   # This implies no fast_install, which is unacceptable.
10586   # Some rework will be needed to allow for fast_install
10587   # before this can be enabled.
10588   hardcode_into_libs=yes
10589
10590   # Add ABI-specific directories to the system library path.
10591   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10592
10593   # Append ld.so.conf contents to the search path
10594   if test -f /etc/ld.so.conf; then
10595     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' ' '`
10596     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10597
10598   fi
10599
10600   # We used to test for /lib/ld.so.1 and disable shared libraries on
10601   # powerpc, because MkLinux only supported shared libraries with the
10602   # GNU dynamic linker.  Since this was broken with cross compilers,
10603   # most powerpc-linux boxes support dynamic linking these days and
10604   # people can always --disable-shared, the test was removed, and we
10605   # assume the GNU/Linux dynamic linker is in use.
10606   dynamic_linker='GNU/Linux ld.so'
10607   ;;
10608
10609 netbsd*)
10610   version_type=sunos
10611   need_lib_prefix=no
10612   need_version=no
10613   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10615     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10616     dynamic_linker='NetBSD (a.out) ld.so'
10617   else
10618     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10619     soname_spec='${libname}${release}${shared_ext}$major'
10620     dynamic_linker='NetBSD ld.elf_so'
10621   fi
10622   shlibpath_var=LD_LIBRARY_PATH
10623   shlibpath_overrides_runpath=yes
10624   hardcode_into_libs=yes
10625   ;;
10626
10627 newsos6)
10628   version_type=linux # correct to gnu/linux during the next big refactor
10629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630   shlibpath_var=LD_LIBRARY_PATH
10631   shlibpath_overrides_runpath=yes
10632   ;;
10633
10634 *nto* | *qnx*)
10635   version_type=qnx
10636   need_lib_prefix=no
10637   need_version=no
10638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639   soname_spec='${libname}${release}${shared_ext}$major'
10640   shlibpath_var=LD_LIBRARY_PATH
10641   shlibpath_overrides_runpath=no
10642   hardcode_into_libs=yes
10643   dynamic_linker='ldqnx.so'
10644   ;;
10645
10646 openbsd*)
10647   version_type=sunos
10648   sys_lib_dlsearch_path_spec="/usr/lib"
10649   need_lib_prefix=no
10650   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10651   case $host_os in
10652     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10653     *)                          need_version=no  ;;
10654   esac
10655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10656   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10657   shlibpath_var=LD_LIBRARY_PATH
10658   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10659     case $host_os in
10660       openbsd2.[89] | openbsd2.[89].*)
10661         shlibpath_overrides_runpath=no
10662         ;;
10663       *)
10664         shlibpath_overrides_runpath=yes
10665         ;;
10666       esac
10667   else
10668     shlibpath_overrides_runpath=yes
10669   fi
10670   ;;
10671
10672 os2*)
10673   libname_spec='$name'
10674   shrext_cmds=".dll"
10675   need_lib_prefix=no
10676   library_names_spec='$libname${shared_ext} $libname.a'
10677   dynamic_linker='OS/2 ld.exe'
10678   shlibpath_var=LIBPATH
10679   ;;
10680
10681 osf3* | osf4* | osf5*)
10682   version_type=osf
10683   need_lib_prefix=no
10684   need_version=no
10685   soname_spec='${libname}${release}${shared_ext}$major'
10686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687   shlibpath_var=LD_LIBRARY_PATH
10688   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10689   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10690   ;;
10691
10692 rdos*)
10693   dynamic_linker=no
10694   ;;
10695
10696 solaris*)
10697   version_type=linux # correct to gnu/linux during the next big refactor
10698   need_lib_prefix=no
10699   need_version=no
10700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701   soname_spec='${libname}${release}${shared_ext}$major'
10702   shlibpath_var=LD_LIBRARY_PATH
10703   shlibpath_overrides_runpath=yes
10704   hardcode_into_libs=yes
10705   # ldd complains unless libraries are executable
10706   postinstall_cmds='chmod +x $lib'
10707   ;;
10708
10709 sunos4*)
10710   version_type=sunos
10711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10712   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10713   shlibpath_var=LD_LIBRARY_PATH
10714   shlibpath_overrides_runpath=yes
10715   if test "$with_gnu_ld" = yes; then
10716     need_lib_prefix=no
10717   fi
10718   need_version=yes
10719   ;;
10720
10721 sysv4 | sysv4.3*)
10722   version_type=linux # correct to gnu/linux during the next big refactor
10723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724   soname_spec='${libname}${release}${shared_ext}$major'
10725   shlibpath_var=LD_LIBRARY_PATH
10726   case $host_vendor in
10727     sni)
10728       shlibpath_overrides_runpath=no
10729       need_lib_prefix=no
10730       runpath_var=LD_RUN_PATH
10731       ;;
10732     siemens)
10733       need_lib_prefix=no
10734       ;;
10735     motorola)
10736       need_lib_prefix=no
10737       need_version=no
10738       shlibpath_overrides_runpath=no
10739       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10740       ;;
10741   esac
10742   ;;
10743
10744 sysv4*MP*)
10745   if test -d /usr/nec ;then
10746     version_type=linux # correct to gnu/linux during the next big refactor
10747     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10748     soname_spec='$libname${shared_ext}.$major'
10749     shlibpath_var=LD_LIBRARY_PATH
10750   fi
10751   ;;
10752
10753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10754   version_type=freebsd-elf
10755   need_lib_prefix=no
10756   need_version=no
10757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10758   soname_spec='${libname}${release}${shared_ext}$major'
10759   shlibpath_var=LD_LIBRARY_PATH
10760   shlibpath_overrides_runpath=yes
10761   hardcode_into_libs=yes
10762   if test "$with_gnu_ld" = yes; then
10763     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10764   else
10765     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10766     case $host_os in
10767       sco3.2v5*)
10768         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10769         ;;
10770     esac
10771   fi
10772   sys_lib_dlsearch_path_spec='/usr/lib'
10773   ;;
10774
10775 tpf*)
10776   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10777   version_type=linux # correct to gnu/linux during the next big refactor
10778   need_lib_prefix=no
10779   need_version=no
10780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781   shlibpath_var=LD_LIBRARY_PATH
10782   shlibpath_overrides_runpath=no
10783   hardcode_into_libs=yes
10784   ;;
10785
10786 uts4*)
10787   version_type=linux # correct to gnu/linux during the next big refactor
10788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789   soname_spec='${libname}${release}${shared_ext}$major'
10790   shlibpath_var=LD_LIBRARY_PATH
10791   ;;
10792
10793 *)
10794   dynamic_linker=no
10795   ;;
10796 esac
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10798 $as_echo "$dynamic_linker" >&6; }
10799 test "$dynamic_linker" = no && can_build_shared=no
10800
10801 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10802 if test "$GCC" = yes; then
10803   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10804 fi
10805
10806 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10807   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10808 fi
10809 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10810   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10811 fi
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10905 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10906 hardcode_action=
10907 if test -n "$hardcode_libdir_flag_spec" ||
10908    test -n "$runpath_var" ||
10909    test "X$hardcode_automatic" = "Xyes" ; then
10910
10911   # We can hardcode non-existent directories.
10912   if test "$hardcode_direct" != no &&
10913      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10914      # have to relink, otherwise we might link with an installed library
10915      # when we should be linking with a yet-to-be-installed one
10916      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10917      test "$hardcode_minus_L" != no; then
10918     # Linking always hardcodes the temporary library directory.
10919     hardcode_action=relink
10920   else
10921     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10922     hardcode_action=immediate
10923   fi
10924 else
10925   # We cannot hardcode anything, or else we can only hardcode existing
10926   # directories.
10927   hardcode_action=unsupported
10928 fi
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10930 $as_echo "$hardcode_action" >&6; }
10931
10932 if test "$hardcode_action" = relink ||
10933    test "$inherit_rpath" = yes; then
10934   # Fast installation is not supported
10935   enable_fast_install=no
10936 elif test "$shlibpath_overrides_runpath" = yes ||
10937      test "$enable_shared" = no; then
10938   # Fast installation is not necessary
10939   enable_fast_install=needless
10940 fi
10941
10942
10943
10944
10945
10946
10947   if test "x$enable_dlopen" != xyes; then
10948   enable_dlopen=unknown
10949   enable_dlopen_self=unknown
10950   enable_dlopen_self_static=unknown
10951 else
10952   lt_cv_dlopen=no
10953   lt_cv_dlopen_libs=
10954
10955   case $host_os in
10956   beos*)
10957     lt_cv_dlopen="load_add_on"
10958     lt_cv_dlopen_libs=
10959     lt_cv_dlopen_self=yes
10960     ;;
10961
10962   mingw* | pw32* | cegcc*)
10963     lt_cv_dlopen="LoadLibrary"
10964     lt_cv_dlopen_libs=
10965     ;;
10966
10967   cygwin*)
10968     lt_cv_dlopen="dlopen"
10969     lt_cv_dlopen_libs=
10970     ;;
10971
10972   darwin*)
10973   # if libdl is installed we need to link against it
10974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10975 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10976 if ${ac_cv_lib_dl_dlopen+:} false; then :
10977   $as_echo_n "(cached) " >&6
10978 else
10979   ac_check_lib_save_LIBS=$LIBS
10980 LIBS="-ldl  $LIBS"
10981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h.  */
10983
10984 /* Override any GCC internal prototype to avoid an error.
10985    Use char because int might match the return type of a GCC
10986    builtin and then its argument prototype would still apply.  */
10987 #ifdef __cplusplus
10988 extern "C"
10989 #endif
10990 char dlopen ();
10991 int
10992 main ()
10993 {
10994 return dlopen ();
10995   ;
10996   return 0;
10997 }
10998 _ACEOF
10999 if ac_fn_c_try_link "$LINENO"; then :
11000   ac_cv_lib_dl_dlopen=yes
11001 else
11002   ac_cv_lib_dl_dlopen=no
11003 fi
11004 rm -f core conftest.err conftest.$ac_objext \
11005     conftest$ac_exeext conftest.$ac_ext
11006 LIBS=$ac_check_lib_save_LIBS
11007 fi
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11009 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11010 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11011   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11012 else
11013
11014     lt_cv_dlopen="dyld"
11015     lt_cv_dlopen_libs=
11016     lt_cv_dlopen_self=yes
11017
11018 fi
11019
11020     ;;
11021
11022   *)
11023     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11024 if test "x$ac_cv_func_shl_load" = xyes; then :
11025   lt_cv_dlopen="shl_load"
11026 else
11027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11028 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11029 if ${ac_cv_lib_dld_shl_load+:} false; then :
11030   $as_echo_n "(cached) " >&6
11031 else
11032   ac_check_lib_save_LIBS=$LIBS
11033 LIBS="-ldld  $LIBS"
11034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h.  */
11036
11037 /* Override any GCC internal prototype to avoid an error.
11038    Use char because int might match the return type of a GCC
11039    builtin and then its argument prototype would still apply.  */
11040 #ifdef __cplusplus
11041 extern "C"
11042 #endif
11043 char shl_load ();
11044 int
11045 main ()
11046 {
11047 return shl_load ();
11048   ;
11049   return 0;
11050 }
11051 _ACEOF
11052 if ac_fn_c_try_link "$LINENO"; then :
11053   ac_cv_lib_dld_shl_load=yes
11054 else
11055   ac_cv_lib_dld_shl_load=no
11056 fi
11057 rm -f core conftest.err conftest.$ac_objext \
11058     conftest$ac_exeext conftest.$ac_ext
11059 LIBS=$ac_check_lib_save_LIBS
11060 fi
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11062 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11063 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11064   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11065 else
11066   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11067 if test "x$ac_cv_func_dlopen" = xyes; then :
11068   lt_cv_dlopen="dlopen"
11069 else
11070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11071 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11072 if ${ac_cv_lib_dl_dlopen+:} false; then :
11073   $as_echo_n "(cached) " >&6
11074 else
11075   ac_check_lib_save_LIBS=$LIBS
11076 LIBS="-ldl  $LIBS"
11077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h.  */
11079
11080 /* Override any GCC internal prototype to avoid an error.
11081    Use char because int might match the return type of a GCC
11082    builtin and then its argument prototype would still apply.  */
11083 #ifdef __cplusplus
11084 extern "C"
11085 #endif
11086 char dlopen ();
11087 int
11088 main ()
11089 {
11090 return dlopen ();
11091   ;
11092   return 0;
11093 }
11094 _ACEOF
11095 if ac_fn_c_try_link "$LINENO"; then :
11096   ac_cv_lib_dl_dlopen=yes
11097 else
11098   ac_cv_lib_dl_dlopen=no
11099 fi
11100 rm -f core conftest.err conftest.$ac_objext \
11101     conftest$ac_exeext conftest.$ac_ext
11102 LIBS=$ac_check_lib_save_LIBS
11103 fi
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11105 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11106 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11107   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11108 else
11109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11110 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11111 if ${ac_cv_lib_svld_dlopen+:} false; then :
11112   $as_echo_n "(cached) " >&6
11113 else
11114   ac_check_lib_save_LIBS=$LIBS
11115 LIBS="-lsvld  $LIBS"
11116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h.  */
11118
11119 /* Override any GCC internal prototype to avoid an error.
11120    Use char because int might match the return type of a GCC
11121    builtin and then its argument prototype would still apply.  */
11122 #ifdef __cplusplus
11123 extern "C"
11124 #endif
11125 char dlopen ();
11126 int
11127 main ()
11128 {
11129 return dlopen ();
11130   ;
11131   return 0;
11132 }
11133 _ACEOF
11134 if ac_fn_c_try_link "$LINENO"; then :
11135   ac_cv_lib_svld_dlopen=yes
11136 else
11137   ac_cv_lib_svld_dlopen=no
11138 fi
11139 rm -f core conftest.err conftest.$ac_objext \
11140     conftest$ac_exeext conftest.$ac_ext
11141 LIBS=$ac_check_lib_save_LIBS
11142 fi
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11144 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11145 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11146   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11147 else
11148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11149 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11150 if ${ac_cv_lib_dld_dld_link+:} false; then :
11151   $as_echo_n "(cached) " >&6
11152 else
11153   ac_check_lib_save_LIBS=$LIBS
11154 LIBS="-ldld  $LIBS"
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h.  */
11157
11158 /* Override any GCC internal prototype to avoid an error.
11159    Use char because int might match the return type of a GCC
11160    builtin and then its argument prototype would still apply.  */
11161 #ifdef __cplusplus
11162 extern "C"
11163 #endif
11164 char dld_link ();
11165 int
11166 main ()
11167 {
11168 return dld_link ();
11169   ;
11170   return 0;
11171 }
11172 _ACEOF
11173 if ac_fn_c_try_link "$LINENO"; then :
11174   ac_cv_lib_dld_dld_link=yes
11175 else
11176   ac_cv_lib_dld_dld_link=no
11177 fi
11178 rm -f core conftest.err conftest.$ac_objext \
11179     conftest$ac_exeext conftest.$ac_ext
11180 LIBS=$ac_check_lib_save_LIBS
11181 fi
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11183 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11184 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11185   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11186 fi
11187
11188
11189 fi
11190
11191
11192 fi
11193
11194
11195 fi
11196
11197
11198 fi
11199
11200
11201 fi
11202
11203     ;;
11204   esac
11205
11206   if test "x$lt_cv_dlopen" != xno; then
11207     enable_dlopen=yes
11208   else
11209     enable_dlopen=no
11210   fi
11211
11212   case $lt_cv_dlopen in
11213   dlopen)
11214     save_CPPFLAGS="$CPPFLAGS"
11215     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11216
11217     save_LDFLAGS="$LDFLAGS"
11218     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11219
11220     save_LIBS="$LIBS"
11221     LIBS="$lt_cv_dlopen_libs $LIBS"
11222
11223     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11224 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11225 if ${lt_cv_dlopen_self+:} false; then :
11226   $as_echo_n "(cached) " >&6
11227 else
11228           if test "$cross_compiling" = yes; then :
11229   lt_cv_dlopen_self=cross
11230 else
11231   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11232   lt_status=$lt_dlunknown
11233   cat > conftest.$ac_ext <<_LT_EOF
11234 #line $LINENO "configure"
11235 #include "confdefs.h"
11236
11237 #if HAVE_DLFCN_H
11238 #include <dlfcn.h>
11239 #endif
11240
11241 #include <stdio.h>
11242
11243 #ifdef RTLD_GLOBAL
11244 #  define LT_DLGLOBAL           RTLD_GLOBAL
11245 #else
11246 #  ifdef DL_GLOBAL
11247 #    define LT_DLGLOBAL         DL_GLOBAL
11248 #  else
11249 #    define LT_DLGLOBAL         0
11250 #  endif
11251 #endif
11252
11253 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11254    find out it does not work in some platform. */
11255 #ifndef LT_DLLAZY_OR_NOW
11256 #  ifdef RTLD_LAZY
11257 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11258 #  else
11259 #    ifdef DL_LAZY
11260 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11261 #    else
11262 #      ifdef RTLD_NOW
11263 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11264 #      else
11265 #        ifdef DL_NOW
11266 #          define LT_DLLAZY_OR_NOW      DL_NOW
11267 #        else
11268 #          define LT_DLLAZY_OR_NOW      0
11269 #        endif
11270 #      endif
11271 #    endif
11272 #  endif
11273 #endif
11274
11275 /* When -fvisbility=hidden is used, assume the code has been annotated
11276    correspondingly for the symbols needed.  */
11277 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11278 int fnord () __attribute__((visibility("default")));
11279 #endif
11280
11281 int fnord () { return 42; }
11282 int main ()
11283 {
11284   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11285   int status = $lt_dlunknown;
11286
11287   if (self)
11288     {
11289       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11290       else
11291         {
11292           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11293           else puts (dlerror ());
11294         }
11295       /* dlclose (self); */
11296     }
11297   else
11298     puts (dlerror ());
11299
11300   return status;
11301 }
11302 _LT_EOF
11303   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11304   (eval $ac_link) 2>&5
11305   ac_status=$?
11306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11307   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11308     (./conftest; exit; ) >&5 2>/dev/null
11309     lt_status=$?
11310     case x$lt_status in
11311       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11312       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11313       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11314     esac
11315   else :
11316     # compilation failed
11317     lt_cv_dlopen_self=no
11318   fi
11319 fi
11320 rm -fr conftest*
11321
11322
11323 fi
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11325 $as_echo "$lt_cv_dlopen_self" >&6; }
11326
11327     if test "x$lt_cv_dlopen_self" = xyes; then
11328       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11329       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11330 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11331 if ${lt_cv_dlopen_self_static+:} false; then :
11332   $as_echo_n "(cached) " >&6
11333 else
11334           if test "$cross_compiling" = yes; then :
11335   lt_cv_dlopen_self_static=cross
11336 else
11337   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11338   lt_status=$lt_dlunknown
11339   cat > conftest.$ac_ext <<_LT_EOF
11340 #line $LINENO "configure"
11341 #include "confdefs.h"
11342
11343 #if HAVE_DLFCN_H
11344 #include <dlfcn.h>
11345 #endif
11346
11347 #include <stdio.h>
11348
11349 #ifdef RTLD_GLOBAL
11350 #  define LT_DLGLOBAL           RTLD_GLOBAL
11351 #else
11352 #  ifdef DL_GLOBAL
11353 #    define LT_DLGLOBAL         DL_GLOBAL
11354 #  else
11355 #    define LT_DLGLOBAL         0
11356 #  endif
11357 #endif
11358
11359 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11360    find out it does not work in some platform. */
11361 #ifndef LT_DLLAZY_OR_NOW
11362 #  ifdef RTLD_LAZY
11363 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11364 #  else
11365 #    ifdef DL_LAZY
11366 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11367 #    else
11368 #      ifdef RTLD_NOW
11369 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11370 #      else
11371 #        ifdef DL_NOW
11372 #          define LT_DLLAZY_OR_NOW      DL_NOW
11373 #        else
11374 #          define LT_DLLAZY_OR_NOW      0
11375 #        endif
11376 #      endif
11377 #    endif
11378 #  endif
11379 #endif
11380
11381 /* When -fvisbility=hidden is used, assume the code has been annotated
11382    correspondingly for the symbols needed.  */
11383 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11384 int fnord () __attribute__((visibility("default")));
11385 #endif
11386
11387 int fnord () { return 42; }
11388 int main ()
11389 {
11390   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11391   int status = $lt_dlunknown;
11392
11393   if (self)
11394     {
11395       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11396       else
11397         {
11398           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11399           else puts (dlerror ());
11400         }
11401       /* dlclose (self); */
11402     }
11403   else
11404     puts (dlerror ());
11405
11406   return status;
11407 }
11408 _LT_EOF
11409   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11410   (eval $ac_link) 2>&5
11411   ac_status=$?
11412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11413   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11414     (./conftest; exit; ) >&5 2>/dev/null
11415     lt_status=$?
11416     case x$lt_status in
11417       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11418       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11419       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11420     esac
11421   else :
11422     # compilation failed
11423     lt_cv_dlopen_self_static=no
11424   fi
11425 fi
11426 rm -fr conftest*
11427
11428
11429 fi
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11431 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11432     fi
11433
11434     CPPFLAGS="$save_CPPFLAGS"
11435     LDFLAGS="$save_LDFLAGS"
11436     LIBS="$save_LIBS"
11437     ;;
11438   esac
11439
11440   case $lt_cv_dlopen_self in
11441   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11442   *) enable_dlopen_self=unknown ;;
11443   esac
11444
11445   case $lt_cv_dlopen_self_static in
11446   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11447   *) enable_dlopen_self_static=unknown ;;
11448   esac
11449 fi
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467 striplib=
11468 old_striplib=
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11470 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11471 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11472   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11473   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11475 $as_echo "yes" >&6; }
11476 else
11477 # FIXME - insert some real tests, host_os isn't really good enough
11478   case $host_os in
11479   darwin*)
11480     if test -n "$STRIP" ; then
11481       striplib="$STRIP -x"
11482       old_striplib="$STRIP -S"
11483       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11484 $as_echo "yes" >&6; }
11485     else
11486       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11488     fi
11489     ;;
11490   *)
11491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492 $as_echo "no" >&6; }
11493     ;;
11494   esac
11495 fi
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508   # Report which library types will actually be built
11509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11510 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11512 $as_echo "$can_build_shared" >&6; }
11513
11514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11515 $as_echo_n "checking whether to build shared libraries... " >&6; }
11516   test "$can_build_shared" = "no" && enable_shared=no
11517
11518   # On AIX, shared libraries and static libraries use the same namespace, and
11519   # are all built from PIC.
11520   case $host_os in
11521   aix3*)
11522     test "$enable_shared" = yes && enable_static=no
11523     if test -n "$RANLIB"; then
11524       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11525       postinstall_cmds='$RANLIB $lib'
11526     fi
11527     ;;
11528
11529   aix[4-9]*)
11530     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11531       test "$enable_shared" = yes && enable_static=no
11532     fi
11533     ;;
11534   esac
11535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11536 $as_echo "$enable_shared" >&6; }
11537
11538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11539 $as_echo_n "checking whether to build static libraries... " >&6; }
11540   # Make sure either enable_shared or enable_static is yes.
11541   test "$enable_shared" = yes || enable_static=yes
11542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11543 $as_echo "$enable_static" >&6; }
11544
11545
11546
11547
11548 fi
11549 ac_ext=c
11550 ac_cpp='$CPP $CPPFLAGS'
11551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11554
11555 CC="$lt_save_CC"
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571         ac_config_commands="$ac_config_commands libtool"
11572
11573
11574
11575
11576 # Only expand once:
11577
11578
11579 if test "x$CC" != xcc; then
11580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11581 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11582 else
11583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11584 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11585 fi
11586 set dummy $CC; ac_cc=`$as_echo "$2" |
11587                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11588 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11589   $as_echo_n "(cached) " >&6
11590 else
11591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h.  */
11593
11594 int
11595 main ()
11596 {
11597
11598   ;
11599   return 0;
11600 }
11601 _ACEOF
11602 # Make sure it works both with $CC and with simple cc.
11603 # We do the test twice because some compilers refuse to overwrite an
11604 # existing .o file with -o, though they will create one.
11605 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11606 rm -f conftest2.*
11607 if { { case "(($ac_try" in
11608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609   *) ac_try_echo=$ac_try;;
11610 esac
11611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11612 $as_echo "$ac_try_echo"; } >&5
11613   (eval "$ac_try") 2>&5
11614   ac_status=$?
11615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11616   test $ac_status = 0; } &&
11617    test -f conftest2.$ac_objext && { { case "(($ac_try" in
11618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619   *) ac_try_echo=$ac_try;;
11620 esac
11621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11622 $as_echo "$ac_try_echo"; } >&5
11623   (eval "$ac_try") 2>&5
11624   ac_status=$?
11625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11626   test $ac_status = 0; };
11627 then
11628   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11629   if test "x$CC" != xcc; then
11630     # Test first that cc exists at all.
11631     if { ac_try='cc -c conftest.$ac_ext >&5'
11632   { { case "(($ac_try" in
11633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634   *) ac_try_echo=$ac_try;;
11635 esac
11636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11637 $as_echo "$ac_try_echo"; } >&5
11638   (eval "$ac_try") 2>&5
11639   ac_status=$?
11640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11641   test $ac_status = 0; }; }; then
11642       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11643       rm -f conftest2.*
11644       if { { case "(($ac_try" in
11645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646   *) ac_try_echo=$ac_try;;
11647 esac
11648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11649 $as_echo "$ac_try_echo"; } >&5
11650   (eval "$ac_try") 2>&5
11651   ac_status=$?
11652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11653   test $ac_status = 0; } &&
11654          test -f conftest2.$ac_objext && { { case "(($ac_try" in
11655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656   *) ac_try_echo=$ac_try;;
11657 esac
11658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11659 $as_echo "$ac_try_echo"; } >&5
11660   (eval "$ac_try") 2>&5
11661   ac_status=$?
11662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11663   test $ac_status = 0; };
11664       then
11665         # cc works too.
11666         :
11667       else
11668         # cc exists but doesn't like -o.
11669         eval ac_cv_prog_cc_${ac_cc}_c_o=no
11670       fi
11671     fi
11672   fi
11673 else
11674   eval ac_cv_prog_cc_${ac_cc}_c_o=no
11675 fi
11676 rm -f core conftest*
11677
11678 fi
11679 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11681 $as_echo "yes" >&6; }
11682 else
11683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684 $as_echo "no" >&6; }
11685
11686 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11687
11688 fi
11689
11690 # FIXME: we rely on the cache variable name because
11691 # there is no other way.
11692 set dummy $CC
11693 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11694 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11695 if test "$am_t" != yes; then
11696    # Losing compiler, so override with the script.
11697    # FIXME: It is wrong to rewrite CC.
11698    # But if we don't then we get into trouble of one sort or another.
11699    # A longer-term fix would be to have automake use am__CC in this case,
11700    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11701    CC="$am_aux_dir/compile $CC"
11702 fi
11703
11704
11705
11706
11707 cflags_save="$CFLAGS"
11708 if test -z "$GCC"; then
11709         case $host in
11710         *-*-irix*)
11711                 DEBUG="-g -signed"
11712                 CFLAGS="-O2 -w -signed"
11713                 PROFILE="-p -g3 -O2 -signed"
11714                 ;;
11715         sparc-sun-solaris*)
11716                 DEBUG="-v -g"
11717                 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
11718                 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
11719                 ;;
11720         *)
11721                 DEBUG="-g"
11722                 CFLAGS="-O"
11723                 PROFILE="-g -p"
11724                 ;;
11725         esac
11726 else
11727         case $host in
11728         *-*-linux*)
11729                 DEBUG="-g -Wall -fsigned-char"
11730                 CFLAGS="-O20 -Wall -ffast-math -fsigned-char"
11731                 PROFILE="-Wall -W -pg -g -O20 -ffast-math -fsigned-char"
11732                 ;;
11733         sparc-sun-*)
11734                 DEBUG="-g -Wall -fsigned-char"
11735                 CFLAGS="-O20 -ffast-math -fsigned-char"
11736                 PROFILE="-pg -g -O20 -fsigned-char"
11737                 ;;
11738         *-*-darwin*)
11739                 DEBUG="-fno-common -g -Wall -fsigned-char"
11740                 CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
11741                 PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
11742                 ;;
11743         *)
11744                 DEBUG="-g -Wall -fsigned-char"
11745                 CFLAGS="-O20 -fsigned-char"
11746                 PROFILE="-O20 -g -pg -fsigned-char"
11747                 ;;
11748         esac
11749 fi
11750 CFLAGS="$CFLAGS $cflags_save"
11751 DEBUG="$DEBUG $cflags_save"
11752 PROFILE="$PROFILE $cflags_save"
11753
11754
11755
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11757 $as_echo_n "checking for ANSI C header files... " >&6; }
11758 if ${ac_cv_header_stdc+:} false; then :
11759   $as_echo_n "(cached) " >&6
11760 else
11761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h.  */
11763 #include <stdlib.h>
11764 #include <stdarg.h>
11765 #include <string.h>
11766 #include <float.h>
11767
11768 int
11769 main ()
11770 {
11771
11772   ;
11773   return 0;
11774 }
11775 _ACEOF
11776 if ac_fn_c_try_compile "$LINENO"; then :
11777   ac_cv_header_stdc=yes
11778 else
11779   ac_cv_header_stdc=no
11780 fi
11781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11782
11783 if test $ac_cv_header_stdc = yes; then
11784   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h.  */
11787 #include <string.h>
11788
11789 _ACEOF
11790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11791   $EGREP "memchr" >/dev/null 2>&1; then :
11792
11793 else
11794   ac_cv_header_stdc=no
11795 fi
11796 rm -f conftest*
11797
11798 fi
11799
11800 if test $ac_cv_header_stdc = yes; then
11801   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11803 /* end confdefs.h.  */
11804 #include <stdlib.h>
11805
11806 _ACEOF
11807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11808   $EGREP "free" >/dev/null 2>&1; then :
11809
11810 else
11811   ac_cv_header_stdc=no
11812 fi
11813 rm -f conftest*
11814
11815 fi
11816
11817 if test $ac_cv_header_stdc = yes; then
11818   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11819   if test "$cross_compiling" = yes; then :
11820   :
11821 else
11822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h.  */
11824 #include <ctype.h>
11825 #include <stdlib.h>
11826 #if ((' ' & 0x0FF) == 0x020)
11827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11829 #else
11830 # define ISLOWER(c) \
11831                    (('a' <= (c) && (c) <= 'i') \
11832                      || ('j' <= (c) && (c) <= 'r') \
11833                      || ('s' <= (c) && (c) <= 'z'))
11834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11835 #endif
11836
11837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11838 int
11839 main ()
11840 {
11841   int i;
11842   for (i = 0; i < 256; i++)
11843     if (XOR (islower (i), ISLOWER (i))
11844         || toupper (i) != TOUPPER (i))
11845       return 2;
11846   return 0;
11847 }
11848 _ACEOF
11849 if ac_fn_c_try_run "$LINENO"; then :
11850
11851 else
11852   ac_cv_header_stdc=no
11853 fi
11854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11855   conftest.$ac_objext conftest.beam conftest.$ac_ext
11856 fi
11857
11858 fi
11859 fi
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11861 $as_echo "$ac_cv_header_stdc" >&6; }
11862 if test $ac_cv_header_stdc = yes; then
11863
11864 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11865
11866 fi
11867
11868 INCLUDE_INTTYPES_H=0
11869 INCLUDE_STDINT_H=0
11870 INCLUDE_SYS_TYPES_H=0
11871 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11872 if test "x$ac_cv_header_inttypes_h" = xyes; then :
11873   INCLUDE_INTTYPES_H=1
11874 fi
11875
11876
11877 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11878 if test "x$ac_cv_header_stdint_h" = xyes; then :
11879   INCLUDE_STDINT_H=1
11880 fi
11881
11882
11883 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
11884 if test "x$ac_cv_header_sys_types_h" = xyes; then :
11885   INCLUDE_SYS_TYPES_H=1
11886 fi
11887
11888
11889
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11891 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11892 if ${ac_cv_c_const+:} false; then :
11893   $as_echo_n "(cached) " >&6
11894 else
11895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h.  */
11897
11898 int
11899 main ()
11900 {
11901
11902 #ifndef __cplusplus
11903   /* Ultrix mips cc rejects this sort of thing.  */
11904   typedef int charset[2];
11905   const charset cs = { 0, 0 };
11906   /* SunOS 4.1.1 cc rejects this.  */
11907   char const *const *pcpcc;
11908   char **ppc;
11909   /* NEC SVR4.0.2 mips cc rejects this.  */
11910   struct point {int x, y;};
11911   static struct point const zero = {0,0};
11912   /* AIX XL C 1.02.0.0 rejects this.
11913      It does not let you subtract one const X* pointer from another in
11914      an arm of an if-expression whose if-part is not a constant
11915      expression */
11916   const char *g = "string";
11917   pcpcc = &g + (g ? g-g : 0);
11918   /* HPUX 7.0 cc rejects these. */
11919   ++pcpcc;
11920   ppc = (char**) pcpcc;
11921   pcpcc = (char const *const *) ppc;
11922   { /* SCO 3.2v4 cc rejects this sort of thing.  */
11923     char tx;
11924     char *t = &tx;
11925     char const *s = 0 ? (char *) 0 : (char const *) 0;
11926
11927     *t++ = 0;
11928     if (s) return 0;
11929   }
11930   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11931     int x[] = {25, 17};
11932     const int *foo = &x[0];
11933     ++foo;
11934   }
11935   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11936     typedef const int *iptr;
11937     iptr p = 0;
11938     ++p;
11939   }
11940   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11941        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11942     struct s { int j; const int *ap[3]; } bx;
11943     struct s *b = &bx; b->j = 5;
11944   }
11945   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11946     const int foo = 10;
11947     if (!foo) return 0;
11948   }
11949   return !cs[0] && !zero.x;
11950 #endif
11951
11952   ;
11953   return 0;
11954 }
11955 _ACEOF
11956 if ac_fn_c_try_compile "$LINENO"; then :
11957   ac_cv_c_const=yes
11958 else
11959   ac_cv_c_const=no
11960 fi
11961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11962 fi
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11964 $as_echo "$ac_cv_c_const" >&6; }
11965 if test $ac_cv_c_const = no; then
11966
11967 $as_echo "#define const /**/" >>confdefs.h
11968
11969 fi
11970
11971
11972
11973 # The cast to long int works around a bug in the HP C Compiler
11974 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11975 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11976 # This bug is HP SR number 8606223364.
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
11978 $as_echo_n "checking size of int16_t... " >&6; }
11979 if ${ac_cv_sizeof_int16_t+:} false; then :
11980   $as_echo_n "(cached) " >&6
11981 else
11982   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t"        "$ac_includes_default"; then :
11983
11984 else
11985   if test "$ac_cv_type_int16_t" = yes; then
11986      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11988 as_fn_error 77 "cannot compute sizeof (int16_t)
11989 See \`config.log' for more details" "$LINENO" 5; }
11990    else
11991      ac_cv_sizeof_int16_t=0
11992    fi
11993 fi
11994
11995 fi
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
11997 $as_echo "$ac_cv_sizeof_int16_t" >&6; }
11998
11999
12000
12001 cat >>confdefs.h <<_ACEOF
12002 #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
12003 _ACEOF
12004
12005
12006 # The cast to long int works around a bug in the HP C Compiler
12007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12009 # This bug is HP SR number 8606223364.
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
12011 $as_echo_n "checking size of uint16_t... " >&6; }
12012 if ${ac_cv_sizeof_uint16_t+:} false; then :
12013   $as_echo_n "(cached) " >&6
12014 else
12015   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t"        "$ac_includes_default"; then :
12016
12017 else
12018   if test "$ac_cv_type_uint16_t" = yes; then
12019      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12021 as_fn_error 77 "cannot compute sizeof (uint16_t)
12022 See \`config.log' for more details" "$LINENO" 5; }
12023    else
12024      ac_cv_sizeof_uint16_t=0
12025    fi
12026 fi
12027
12028 fi
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
12030 $as_echo "$ac_cv_sizeof_uint16_t" >&6; }
12031
12032
12033
12034 cat >>confdefs.h <<_ACEOF
12035 #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
12036 _ACEOF
12037
12038
12039 # The cast to long int works around a bug in the HP C Compiler
12040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12042 # This bug is HP SR number 8606223364.
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int16_t" >&5
12044 $as_echo_n "checking size of u_int16_t... " >&6; }
12045 if ${ac_cv_sizeof_u_int16_t+:} false; then :
12046   $as_echo_n "(cached) " >&6
12047 else
12048   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int16_t))" "ac_cv_sizeof_u_int16_t"        "$ac_includes_default"; then :
12049
12050 else
12051   if test "$ac_cv_type_u_int16_t" = yes; then
12052      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12054 as_fn_error 77 "cannot compute sizeof (u_int16_t)
12055 See \`config.log' for more details" "$LINENO" 5; }
12056    else
12057      ac_cv_sizeof_u_int16_t=0
12058    fi
12059 fi
12060
12061 fi
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int16_t" >&5
12063 $as_echo "$ac_cv_sizeof_u_int16_t" >&6; }
12064
12065
12066
12067 cat >>confdefs.h <<_ACEOF
12068 #define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t
12069 _ACEOF
12070
12071
12072 # The cast to long int works around a bug in the HP C Compiler
12073 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12074 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12075 # This bug is HP SR number 8606223364.
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
12077 $as_echo_n "checking size of int32_t... " >&6; }
12078 if ${ac_cv_sizeof_int32_t+:} false; then :
12079   $as_echo_n "(cached) " >&6
12080 else
12081   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t"        "$ac_includes_default"; then :
12082
12083 else
12084   if test "$ac_cv_type_int32_t" = yes; then
12085      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12087 as_fn_error 77 "cannot compute sizeof (int32_t)
12088 See \`config.log' for more details" "$LINENO" 5; }
12089    else
12090      ac_cv_sizeof_int32_t=0
12091    fi
12092 fi
12093
12094 fi
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
12096 $as_echo "$ac_cv_sizeof_int32_t" >&6; }
12097
12098
12099
12100 cat >>confdefs.h <<_ACEOF
12101 #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
12102 _ACEOF
12103
12104
12105 # The cast to long int works around a bug in the HP C Compiler
12106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12108 # This bug is HP SR number 8606223364.
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
12110 $as_echo_n "checking size of uint32_t... " >&6; }
12111 if ${ac_cv_sizeof_uint32_t+:} false; then :
12112   $as_echo_n "(cached) " >&6
12113 else
12114   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t"        "$ac_includes_default"; then :
12115
12116 else
12117   if test "$ac_cv_type_uint32_t" = yes; then
12118      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12120 as_fn_error 77 "cannot compute sizeof (uint32_t)
12121 See \`config.log' for more details" "$LINENO" 5; }
12122    else
12123      ac_cv_sizeof_uint32_t=0
12124    fi
12125 fi
12126
12127 fi
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
12129 $as_echo "$ac_cv_sizeof_uint32_t" >&6; }
12130
12131
12132
12133 cat >>confdefs.h <<_ACEOF
12134 #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
12135 _ACEOF
12136
12137
12138 # The cast to long int works around a bug in the HP C Compiler
12139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12141 # This bug is HP SR number 8606223364.
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int32_t" >&5
12143 $as_echo_n "checking size of u_int32_t... " >&6; }
12144 if ${ac_cv_sizeof_u_int32_t+:} false; then :
12145   $as_echo_n "(cached) " >&6
12146 else
12147   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int32_t))" "ac_cv_sizeof_u_int32_t"        "$ac_includes_default"; then :
12148
12149 else
12150   if test "$ac_cv_type_u_int32_t" = yes; then
12151      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12153 as_fn_error 77 "cannot compute sizeof (u_int32_t)
12154 See \`config.log' for more details" "$LINENO" 5; }
12155    else
12156      ac_cv_sizeof_u_int32_t=0
12157    fi
12158 fi
12159
12160 fi
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int32_t" >&5
12162 $as_echo "$ac_cv_sizeof_u_int32_t" >&6; }
12163
12164
12165
12166 cat >>confdefs.h <<_ACEOF
12167 #define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t
12168 _ACEOF
12169
12170
12171 # The cast to long int works around a bug in the HP C Compiler
12172 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12173 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12174 # This bug is HP SR number 8606223364.
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
12176 $as_echo_n "checking size of int64_t... " >&6; }
12177 if ${ac_cv_sizeof_int64_t+:} false; then :
12178   $as_echo_n "(cached) " >&6
12179 else
12180   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t"        "$ac_includes_default"; then :
12181
12182 else
12183   if test "$ac_cv_type_int64_t" = yes; then
12184      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12186 as_fn_error 77 "cannot compute sizeof (int64_t)
12187 See \`config.log' for more details" "$LINENO" 5; }
12188    else
12189      ac_cv_sizeof_int64_t=0
12190    fi
12191 fi
12192
12193 fi
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
12195 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
12196
12197
12198
12199 cat >>confdefs.h <<_ACEOF
12200 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
12201 _ACEOF
12202
12203
12204 # The cast to long int works around a bug in the HP C Compiler
12205 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12206 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12207 # This bug is HP SR number 8606223364.
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12209 $as_echo_n "checking size of short... " >&6; }
12210 if ${ac_cv_sizeof_short+:} false; then :
12211   $as_echo_n "(cached) " >&6
12212 else
12213   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12214
12215 else
12216   if test "$ac_cv_type_short" = yes; then
12217      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12219 as_fn_error 77 "cannot compute sizeof (short)
12220 See \`config.log' for more details" "$LINENO" 5; }
12221    else
12222      ac_cv_sizeof_short=0
12223    fi
12224 fi
12225
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12228 $as_echo "$ac_cv_sizeof_short" >&6; }
12229
12230
12231
12232 cat >>confdefs.h <<_ACEOF
12233 #define SIZEOF_SHORT $ac_cv_sizeof_short
12234 _ACEOF
12235
12236
12237 # The cast to long int works around a bug in the HP C Compiler
12238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12240 # This bug is HP SR number 8606223364.
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12242 $as_echo_n "checking size of int... " >&6; }
12243 if ${ac_cv_sizeof_int+:} false; then :
12244   $as_echo_n "(cached) " >&6
12245 else
12246   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12247
12248 else
12249   if test "$ac_cv_type_int" = yes; then
12250      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12252 as_fn_error 77 "cannot compute sizeof (int)
12253 See \`config.log' for more details" "$LINENO" 5; }
12254    else
12255      ac_cv_sizeof_int=0
12256    fi
12257 fi
12258
12259 fi
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12261 $as_echo "$ac_cv_sizeof_int" >&6; }
12262
12263
12264
12265 cat >>confdefs.h <<_ACEOF
12266 #define SIZEOF_INT $ac_cv_sizeof_int
12267 _ACEOF
12268
12269
12270 # The cast to long int works around a bug in the HP C Compiler
12271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12273 # This bug is HP SR number 8606223364.
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12275 $as_echo_n "checking size of long... " >&6; }
12276 if ${ac_cv_sizeof_long+:} false; then :
12277   $as_echo_n "(cached) " >&6
12278 else
12279   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12280
12281 else
12282   if test "$ac_cv_type_long" = yes; then
12283      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12285 as_fn_error 77 "cannot compute sizeof (long)
12286 See \`config.log' for more details" "$LINENO" 5; }
12287    else
12288      ac_cv_sizeof_long=0
12289    fi
12290 fi
12291
12292 fi
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12294 $as_echo "$ac_cv_sizeof_long" >&6; }
12295
12296
12297
12298 cat >>confdefs.h <<_ACEOF
12299 #define SIZEOF_LONG $ac_cv_sizeof_long
12300 _ACEOF
12301
12302
12303 # The cast to long int works around a bug in the HP C Compiler
12304 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12305 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12306 # This bug is HP SR number 8606223364.
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12308 $as_echo_n "checking size of long long... " >&6; }
12309 if ${ac_cv_sizeof_long_long+:} false; then :
12310   $as_echo_n "(cached) " >&6
12311 else
12312   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12313
12314 else
12315   if test "$ac_cv_type_long_long" = yes; then
12316      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12318 as_fn_error 77 "cannot compute sizeof (long long)
12319 See \`config.log' for more details" "$LINENO" 5; }
12320    else
12321      ac_cv_sizeof_long_long=0
12322    fi
12323 fi
12324
12325 fi
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12327 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12328
12329
12330
12331 cat >>confdefs.h <<_ACEOF
12332 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12333 _ACEOF
12334
12335
12336
12337 case 2 in
12338      $ac_cv_sizeof_int16_t) SIZE16="int16_t";;
12339      $ac_cv_sizeof_short) SIZE16="short";;
12340      $ac_cv_sizeof_int) SIZE16="int";;
12341 esac
12342
12343 case 2 in
12344      $ac_cv_sizeof_uint16_t) USIZE16="uint16_t";;
12345      $ac_cv_sizeof_short) USIZE16="unsigned short";;
12346      $ac_cv_sizeof_int) USIZE16="unsigned int";;
12347      $ac_cv_sizeof_u_int16_t) USIZE16="u_int16_t";;
12348 esac
12349
12350 case 4 in
12351      $ac_cv_sizeof_int32_t) SIZE32="int32_t";;
12352      $ac_cv_sizeof_short) SIZE32="short";;
12353      $ac_cv_sizeof_int) SIZE32="int";;
12354      $ac_cv_sizeof_long) SIZE32="long";;
12355 esac
12356
12357 case 4 in
12358      $ac_cv_sizeof_uint32_t) USIZE32="uint32_t";;
12359      $ac_cv_sizeof_short) USIZE32="unsigned short";;
12360      $ac_cv_sizeof_int) USIZE32="unsigned int";;
12361      $ac_cv_sizeof_long) USIZE32="unsigned long";;
12362      $ac_cv_sizeof_u_int32_t) USIZE32="u_int32_t";;
12363 esac
12364
12365 case 8 in
12366      $ac_cv_sizeof_int64_t) SIZE64="int64_t";;
12367      $ac_cv_sizeof_int) SIZE64="int";;
12368      $ac_cv_sizeof_long) SIZE64="long";;
12369      $ac_cv_sizeof_long_long) SIZE64="long long";;
12370 esac
12371
12372 if test -z "$SIZE16"; then
12373         as_fn_error $? "No 16 bit type found on this platform!" "$LINENO" 5
12374 fi
12375 if test -z "$USIZE16"; then
12376         as_fn_error $? "No unsigned 16 bit type found on this platform!" "$LINENO" 5
12377 fi
12378 if test -z "$SIZE32"; then
12379         as_fn_error $? "No 32 bit type found on this platform!" "$LINENO" 5
12380 fi
12381 if test -z "$USIZE32"; then
12382         as_fn_error $? "No unsigned 32 bit type found on this platform!" "$LINENO" 5
12383 fi
12384 if test -z "$SIZE64"; then
12385         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No 64 bit type found on this platform!" >&5
12386 $as_echo "$as_me: WARNING: No 64 bit type found on this platform!" >&2;}
12387 fi
12388
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
12390 $as_echo_n "checking for working memcmp... " >&6; }
12391 if ${ac_cv_func_memcmp_working+:} false; then :
12392   $as_echo_n "(cached) " >&6
12393 else
12394   if test "$cross_compiling" = yes; then :
12395   ac_cv_func_memcmp_working=no
12396 else
12397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h.  */
12399 $ac_includes_default
12400 int
12401 main ()
12402 {
12403
12404   /* Some versions of memcmp are not 8-bit clean.  */
12405   char c0 = '\100', c1 = '\200', c2 = '\201';
12406   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12407     return 1;
12408
12409   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12410      or more and with at least one buffer not starting on a 4-byte boundary.
12411      William Lewis provided this test program.   */
12412   {
12413     char foo[21];
12414     char bar[21];
12415     int i;
12416     for (i = 0; i < 4; i++)
12417       {
12418         char *a = foo + i;
12419         char *b = bar + i;
12420         strcpy (a, "--------01111111");
12421         strcpy (b, "--------10000000");
12422         if (memcmp (a, b, 16) >= 0)
12423           return 1;
12424       }
12425     return 0;
12426   }
12427
12428   ;
12429   return 0;
12430 }
12431 _ACEOF
12432 if ac_fn_c_try_run "$LINENO"; then :
12433   ac_cv_func_memcmp_working=yes
12434 else
12435   ac_cv_func_memcmp_working=no
12436 fi
12437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12438   conftest.$ac_objext conftest.beam conftest.$ac_ext
12439 fi
12440
12441 fi
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
12443 $as_echo "$ac_cv_func_memcmp_working" >&6; }
12444 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12445   *" memcmp.$ac_objext "* ) ;;
12446   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12447  ;;
12448 esac
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/libogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h libogg.spec ogg.pc ogg-uninstalled.pc"
12470
12471 ac_config_headers="$ac_config_headers config.h"
12472
12473
12474 cat >confcache <<\_ACEOF
12475 # This file is a shell script that caches the results of configure
12476 # tests run on this system so they can be shared between configure
12477 # scripts and configure runs, see configure's option --config-cache.
12478 # It is not useful on other systems.  If it contains results you don't
12479 # want to keep, you may remove or edit it.
12480 #
12481 # config.status only pays attention to the cache file if you give it
12482 # the --recheck option to rerun configure.
12483 #
12484 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12485 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12486 # following values.
12487
12488 _ACEOF
12489
12490 # The following way of writing the cache mishandles newlines in values,
12491 # but we know of no workaround that is simple, portable, and efficient.
12492 # So, we kill variables containing newlines.
12493 # Ultrix sh set writes to stderr and can't be redirected directly,
12494 # and sets the high bit in the cache file unless we assign to the vars.
12495 (
12496   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12497     eval ac_val=\$$ac_var
12498     case $ac_val in #(
12499     *${as_nl}*)
12500       case $ac_var in #(
12501       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12502 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12503       esac
12504       case $ac_var in #(
12505       _ | IFS | as_nl) ;; #(
12506       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12507       *) { eval $ac_var=; unset $ac_var;} ;;
12508       esac ;;
12509     esac
12510   done
12511
12512   (set) 2>&1 |
12513     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12514     *${as_nl}ac_space=\ *)
12515       # `set' does not quote correctly, so add quotes: double-quote
12516       # substitution turns \\\\ into \\, and sed turns \\ into \.
12517       sed -n \
12518         "s/'/'\\\\''/g;
12519           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12520       ;; #(
12521     *)
12522       # `set' quotes correctly as required by POSIX, so do not add quotes.
12523       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12524       ;;
12525     esac |
12526     sort
12527 ) |
12528   sed '
12529      /^ac_cv_env_/b end
12530      t clear
12531      :clear
12532      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12533      t end
12534      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12535      :end' >>confcache
12536 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12537   if test -w "$cache_file"; then
12538     if test "x$cache_file" != "x/dev/null"; then
12539       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12540 $as_echo "$as_me: updating cache $cache_file" >&6;}
12541       if test ! -f "$cache_file" || test -h "$cache_file"; then
12542         cat confcache >"$cache_file"
12543       else
12544         case $cache_file in #(
12545         */* | ?:*)
12546           mv -f confcache "$cache_file"$$ &&
12547           mv -f "$cache_file"$$ "$cache_file" ;; #(
12548         *)
12549           mv -f confcache "$cache_file" ;;
12550         esac
12551       fi
12552     fi
12553   else
12554     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12555 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12556   fi
12557 fi
12558 rm -f confcache
12559
12560 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12561 # Let make expand exec_prefix.
12562 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12563
12564 DEFS=-DHAVE_CONFIG_H
12565
12566 ac_libobjs=
12567 ac_ltlibobjs=
12568 U=
12569 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12570   # 1. Remove the extension, and $U if already installed.
12571   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12572   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12573   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12574   #    will be set to the directory where LIBOBJS objects are built.
12575   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12576   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12577 done
12578 LIBOBJS=$ac_libobjs
12579
12580 LTLIBOBJS=$ac_ltlibobjs
12581
12582
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12584 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12585    if test -n "$am_sleep_pid"; then
12586      # Hide warnings about reused PIDs.
12587      wait $am_sleep_pid 2>/dev/null
12588    fi
12589    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12590 $as_echo "done" >&6; }
12591  if test -n "$EXEEXT"; then
12592   am__EXEEXT_TRUE=
12593   am__EXEEXT_FALSE='#'
12594 else
12595   am__EXEEXT_TRUE='#'
12596   am__EXEEXT_FALSE=
12597 fi
12598
12599 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12600   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12602 fi
12603 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12604   as_fn_error $? "conditional \"AMDEP\" was never defined.
12605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12606 fi
12607 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12608   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12610 fi
12611
12612 : "${CONFIG_STATUS=./config.status}"
12613 ac_write_fail=0
12614 ac_clean_files_save=$ac_clean_files
12615 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12617 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12618 as_write_fail=0
12619 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12620 #! $SHELL
12621 # Generated by $as_me.
12622 # Run this file to recreate the current configuration.
12623 # Compiler output produced by configure, useful for debugging
12624 # configure, is in config.log if it exists.
12625
12626 debug=false
12627 ac_cs_recheck=false
12628 ac_cs_silent=false
12629
12630 SHELL=\${CONFIG_SHELL-$SHELL}
12631 export SHELL
12632 _ASEOF
12633 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12634 ## -------------------- ##
12635 ## M4sh Initialization. ##
12636 ## -------------------- ##
12637
12638 # Be more Bourne compatible
12639 DUALCASE=1; export DUALCASE # for MKS sh
12640 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12641   emulate sh
12642   NULLCMD=:
12643   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12644   # is contrary to our usage.  Disable this feature.
12645   alias -g '${1+"$@"}'='"$@"'
12646   setopt NO_GLOB_SUBST
12647 else
12648   case `(set -o) 2>/dev/null` in #(
12649   *posix*) :
12650     set -o posix ;; #(
12651   *) :
12652      ;;
12653 esac
12654 fi
12655
12656
12657 as_nl='
12658 '
12659 export as_nl
12660 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12661 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12662 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12663 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12664 # Prefer a ksh shell builtin over an external printf program on Solaris,
12665 # but without wasting forks for bash or zsh.
12666 if test -z "$BASH_VERSION$ZSH_VERSION" \
12667     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12668   as_echo='print -r --'
12669   as_echo_n='print -rn --'
12670 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12671   as_echo='printf %s\n'
12672   as_echo_n='printf %s'
12673 else
12674   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12675     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12676     as_echo_n='/usr/ucb/echo -n'
12677   else
12678     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12679     as_echo_n_body='eval
12680       arg=$1;
12681       case $arg in #(
12682       *"$as_nl"*)
12683         expr "X$arg" : "X\\(.*\\)$as_nl";
12684         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12685       esac;
12686       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12687     '
12688     export as_echo_n_body
12689     as_echo_n='sh -c $as_echo_n_body as_echo'
12690   fi
12691   export as_echo_body
12692   as_echo='sh -c $as_echo_body as_echo'
12693 fi
12694
12695 # The user is always right.
12696 if test "${PATH_SEPARATOR+set}" != set; then
12697   PATH_SEPARATOR=:
12698   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12699     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12700       PATH_SEPARATOR=';'
12701   }
12702 fi
12703
12704
12705 # IFS
12706 # We need space, tab and new line, in precisely that order.  Quoting is
12707 # there to prevent editors from complaining about space-tab.
12708 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12709 # splitting by setting IFS to empty value.)
12710 IFS=" ""        $as_nl"
12711
12712 # Find who we are.  Look in the path if we contain no directory separator.
12713 as_myself=
12714 case $0 in #((
12715   *[\\/]* ) as_myself=$0 ;;
12716   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717 for as_dir in $PATH
12718 do
12719   IFS=$as_save_IFS
12720   test -z "$as_dir" && as_dir=.
12721     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12722   done
12723 IFS=$as_save_IFS
12724
12725      ;;
12726 esac
12727 # We did not find ourselves, most probably we were run as `sh COMMAND'
12728 # in which case we are not to be found in the path.
12729 if test "x$as_myself" = x; then
12730   as_myself=$0
12731 fi
12732 if test ! -f "$as_myself"; then
12733   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12734   exit 1
12735 fi
12736
12737 # Unset variables that we do not need and which cause bugs (e.g. in
12738 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12739 # suppresses any "Segmentation fault" message there.  '((' could
12740 # trigger a bug in pdksh 5.2.14.
12741 for as_var in BASH_ENV ENV MAIL MAILPATH
12742 do eval test x\${$as_var+set} = xset \
12743   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12744 done
12745 PS1='$ '
12746 PS2='> '
12747 PS4='+ '
12748
12749 # NLS nuisances.
12750 LC_ALL=C
12751 export LC_ALL
12752 LANGUAGE=C
12753 export LANGUAGE
12754
12755 # CDPATH.
12756 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12757
12758
12759 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12760 # ----------------------------------------
12761 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12762 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12763 # script with STATUS, using 1 if that was 0.
12764 as_fn_error ()
12765 {
12766   as_status=$1; test $as_status -eq 0 && as_status=1
12767   if test "$4"; then
12768     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12769     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12770   fi
12771   $as_echo "$as_me: error: $2" >&2
12772   as_fn_exit $as_status
12773 } # as_fn_error
12774
12775
12776 # as_fn_set_status STATUS
12777 # -----------------------
12778 # Set $? to STATUS, without forking.
12779 as_fn_set_status ()
12780 {
12781   return $1
12782 } # as_fn_set_status
12783
12784 # as_fn_exit STATUS
12785 # -----------------
12786 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12787 as_fn_exit ()
12788 {
12789   set +e
12790   as_fn_set_status $1
12791   exit $1
12792 } # as_fn_exit
12793
12794 # as_fn_unset VAR
12795 # ---------------
12796 # Portably unset VAR.
12797 as_fn_unset ()
12798 {
12799   { eval $1=; unset $1;}
12800 }
12801 as_unset=as_fn_unset
12802 # as_fn_append VAR VALUE
12803 # ----------------------
12804 # Append the text in VALUE to the end of the definition contained in VAR. Take
12805 # advantage of any shell optimizations that allow amortized linear growth over
12806 # repeated appends, instead of the typical quadratic growth present in naive
12807 # implementations.
12808 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12809   eval 'as_fn_append ()
12810   {
12811     eval $1+=\$2
12812   }'
12813 else
12814   as_fn_append ()
12815   {
12816     eval $1=\$$1\$2
12817   }
12818 fi # as_fn_append
12819
12820 # as_fn_arith ARG...
12821 # ------------------
12822 # Perform arithmetic evaluation on the ARGs, and store the result in the
12823 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12824 # must be portable across $(()) and expr.
12825 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12826   eval 'as_fn_arith ()
12827   {
12828     as_val=$(( $* ))
12829   }'
12830 else
12831   as_fn_arith ()
12832   {
12833     as_val=`expr "$@" || test $? -eq 1`
12834   }
12835 fi # as_fn_arith
12836
12837
12838 if expr a : '\(a\)' >/dev/null 2>&1 &&
12839    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12840   as_expr=expr
12841 else
12842   as_expr=false
12843 fi
12844
12845 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12846   as_basename=basename
12847 else
12848   as_basename=false
12849 fi
12850
12851 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12852   as_dirname=dirname
12853 else
12854   as_dirname=false
12855 fi
12856
12857 as_me=`$as_basename -- "$0" ||
12858 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12859          X"$0" : 'X\(//\)$' \| \
12860          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12861 $as_echo X/"$0" |
12862     sed '/^.*\/\([^/][^/]*\)\/*$/{
12863             s//\1/
12864             q
12865           }
12866           /^X\/\(\/\/\)$/{
12867             s//\1/
12868             q
12869           }
12870           /^X\/\(\/\).*/{
12871             s//\1/
12872             q
12873           }
12874           s/.*/./; q'`
12875
12876 # Avoid depending upon Character Ranges.
12877 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12878 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12879 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12880 as_cr_digits='0123456789'
12881 as_cr_alnum=$as_cr_Letters$as_cr_digits
12882
12883 ECHO_C= ECHO_N= ECHO_T=
12884 case `echo -n x` in #(((((
12885 -n*)
12886   case `echo 'xy\c'` in
12887   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12888   xy)  ECHO_C='\c';;
12889   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12890        ECHO_T=' ';;
12891   esac;;
12892 *)
12893   ECHO_N='-n';;
12894 esac
12895
12896 rm -f conf$$ conf$$.exe conf$$.file
12897 if test -d conf$$.dir; then
12898   rm -f conf$$.dir/conf$$.file
12899 else
12900   rm -f conf$$.dir
12901   mkdir conf$$.dir 2>/dev/null
12902 fi
12903 if (echo >conf$$.file) 2>/dev/null; then
12904   if ln -s conf$$.file conf$$ 2>/dev/null; then
12905     as_ln_s='ln -s'
12906     # ... but there are two gotchas:
12907     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12908     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12909     # In both cases, we have to default to `cp -pR'.
12910     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12911       as_ln_s='cp -pR'
12912   elif ln conf$$.file conf$$ 2>/dev/null; then
12913     as_ln_s=ln
12914   else
12915     as_ln_s='cp -pR'
12916   fi
12917 else
12918   as_ln_s='cp -pR'
12919 fi
12920 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12921 rmdir conf$$.dir 2>/dev/null
12922
12923
12924 # as_fn_mkdir_p
12925 # -------------
12926 # Create "$as_dir" as a directory, including parents if necessary.
12927 as_fn_mkdir_p ()
12928 {
12929
12930   case $as_dir in #(
12931   -*) as_dir=./$as_dir;;
12932   esac
12933   test -d "$as_dir" || eval $as_mkdir_p || {
12934     as_dirs=
12935     while :; do
12936       case $as_dir in #(
12937       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12938       *) as_qdir=$as_dir;;
12939       esac
12940       as_dirs="'$as_qdir' $as_dirs"
12941       as_dir=`$as_dirname -- "$as_dir" ||
12942 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12943          X"$as_dir" : 'X\(//\)[^/]' \| \
12944          X"$as_dir" : 'X\(//\)$' \| \
12945          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12946 $as_echo X"$as_dir" |
12947     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12948             s//\1/
12949             q
12950           }
12951           /^X\(\/\/\)[^/].*/{
12952             s//\1/
12953             q
12954           }
12955           /^X\(\/\/\)$/{
12956             s//\1/
12957             q
12958           }
12959           /^X\(\/\).*/{
12960             s//\1/
12961             q
12962           }
12963           s/.*/./; q'`
12964       test -d "$as_dir" && break
12965     done
12966     test -z "$as_dirs" || eval "mkdir $as_dirs"
12967   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12968
12969
12970 } # as_fn_mkdir_p
12971 if mkdir -p . 2>/dev/null; then
12972   as_mkdir_p='mkdir -p "$as_dir"'
12973 else
12974   test -d ./-p && rmdir ./-p
12975   as_mkdir_p=false
12976 fi
12977
12978
12979 # as_fn_executable_p FILE
12980 # -----------------------
12981 # Test if FILE is an executable regular file.
12982 as_fn_executable_p ()
12983 {
12984   test -f "$1" && test -x "$1"
12985 } # as_fn_executable_p
12986 as_test_x='test -x'
12987 as_executable_p=as_fn_executable_p
12988
12989 # Sed expression to map a string onto a valid CPP name.
12990 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12991
12992 # Sed expression to map a string onto a valid variable name.
12993 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12994
12995
12996 exec 6>&1
12997 ## ----------------------------------- ##
12998 ## Main body of $CONFIG_STATUS script. ##
12999 ## ----------------------------------- ##
13000 _ASEOF
13001 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13002
13003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13004 # Save the log message, to keep $0 and so on meaningful, and to
13005 # report actual input values of CONFIG_FILES etc. instead of their
13006 # values after options handling.
13007 ac_log="
13008 This file was extended by libogg $as_me 1.3.2, which was
13009 generated by GNU Autoconf 2.69.  Invocation command line was
13010
13011   CONFIG_FILES    = $CONFIG_FILES
13012   CONFIG_HEADERS  = $CONFIG_HEADERS
13013   CONFIG_LINKS    = $CONFIG_LINKS
13014   CONFIG_COMMANDS = $CONFIG_COMMANDS
13015   $ $0 $@
13016
13017 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13018 "
13019
13020 _ACEOF
13021
13022 case $ac_config_files in *"
13023 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13024 esac
13025
13026 case $ac_config_headers in *"
13027 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13028 esac
13029
13030
13031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13032 # Files that config.status was made for.
13033 config_files="$ac_config_files"
13034 config_headers="$ac_config_headers"
13035 config_commands="$ac_config_commands"
13036
13037 _ACEOF
13038
13039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13040 ac_cs_usage="\
13041 \`$as_me' instantiates files and other configuration actions
13042 from templates according to the current configuration.  Unless the files
13043 and actions are specified as TAGs, all are instantiated by default.
13044
13045 Usage: $0 [OPTION]... [TAG]...
13046
13047   -h, --help       print this help, then exit
13048   -V, --version    print version number and configuration settings, then exit
13049       --config     print configuration, then exit
13050   -q, --quiet, --silent
13051                    do not print progress messages
13052   -d, --debug      don't remove temporary files
13053       --recheck    update $as_me by reconfiguring in the same conditions
13054       --file=FILE[:TEMPLATE]
13055                    instantiate the configuration file FILE
13056       --header=FILE[:TEMPLATE]
13057                    instantiate the configuration header FILE
13058
13059 Configuration files:
13060 $config_files
13061
13062 Configuration headers:
13063 $config_headers
13064
13065 Configuration commands:
13066 $config_commands
13067
13068 Report bugs to <ogg-dev@xiph.org>."
13069
13070 _ACEOF
13071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13072 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13073 ac_cs_version="\\
13074 libogg config.status 1.3.2
13075 configured by $0, generated by GNU Autoconf 2.69,
13076   with options \\"\$ac_cs_config\\"
13077
13078 Copyright (C) 2012 Free Software Foundation, Inc.
13079 This config.status script is free software; the Free Software Foundation
13080 gives unlimited permission to copy, distribute and modify it."
13081
13082 ac_pwd='$ac_pwd'
13083 srcdir='$srcdir'
13084 INSTALL='$INSTALL'
13085 MKDIR_P='$MKDIR_P'
13086 AWK='$AWK'
13087 test -n "\$AWK" || AWK=awk
13088 _ACEOF
13089
13090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13091 # The default lists apply if the user does not specify any file.
13092 ac_need_defaults=:
13093 while test $# != 0
13094 do
13095   case $1 in
13096   --*=?*)
13097     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13098     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13099     ac_shift=:
13100     ;;
13101   --*=)
13102     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13103     ac_optarg=
13104     ac_shift=:
13105     ;;
13106   *)
13107     ac_option=$1
13108     ac_optarg=$2
13109     ac_shift=shift
13110     ;;
13111   esac
13112
13113   case $ac_option in
13114   # Handling of the options.
13115   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13116     ac_cs_recheck=: ;;
13117   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13118     $as_echo "$ac_cs_version"; exit ;;
13119   --config | --confi | --conf | --con | --co | --c )
13120     $as_echo "$ac_cs_config"; exit ;;
13121   --debug | --debu | --deb | --de | --d | -d )
13122     debug=: ;;
13123   --file | --fil | --fi | --f )
13124     $ac_shift
13125     case $ac_optarg in
13126     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13127     '') as_fn_error $? "missing file argument" ;;
13128     esac
13129     as_fn_append CONFIG_FILES " '$ac_optarg'"
13130     ac_need_defaults=false;;
13131   --header | --heade | --head | --hea )
13132     $ac_shift
13133     case $ac_optarg in
13134     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13135     esac
13136     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13137     ac_need_defaults=false;;
13138   --he | --h)
13139     # Conflict between --help and --header
13140     as_fn_error $? "ambiguous option: \`$1'
13141 Try \`$0 --help' for more information.";;
13142   --help | --hel | -h )
13143     $as_echo "$ac_cs_usage"; exit ;;
13144   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13145   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13146     ac_cs_silent=: ;;
13147
13148   # This is an error.
13149   -*) as_fn_error $? "unrecognized option: \`$1'
13150 Try \`$0 --help' for more information." ;;
13151
13152   *) as_fn_append ac_config_targets " $1"
13153      ac_need_defaults=false ;;
13154
13155   esac
13156   shift
13157 done
13158
13159 ac_configure_extra_args=
13160
13161 if $ac_cs_silent; then
13162   exec 6>/dev/null
13163   ac_configure_extra_args="$ac_configure_extra_args --silent"
13164 fi
13165
13166 _ACEOF
13167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13168 if \$ac_cs_recheck; then
13169   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13170   shift
13171   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13172   CONFIG_SHELL='$SHELL'
13173   export CONFIG_SHELL
13174   exec "\$@"
13175 fi
13176
13177 _ACEOF
13178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13179 exec 5>>config.log
13180 {
13181   echo
13182   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13183 ## Running $as_me. ##
13184 _ASBOX
13185   $as_echo "$ac_log"
13186 } >&5
13187
13188 _ACEOF
13189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13190 #
13191 # INIT-COMMANDS
13192 #
13193 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13194
13195
13196 # The HP-UX ksh and POSIX shell print the target directory to stdout
13197 # if CDPATH is set.
13198 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13199
13200 sed_quote_subst='$sed_quote_subst'
13201 double_quote_subst='$double_quote_subst'
13202 delay_variable_subst='$delay_variable_subst'
13203 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13204 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13205 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13206 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13207 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13208 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13209 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13210 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13211 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13212 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13213 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13214 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13215 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13216 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13217 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13218 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13219 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13220 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13221 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13222 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13223 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13224 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13225 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13226 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13227 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13228 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13229 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13230 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13231 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13232 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13233 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13234 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13235 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13236 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13237 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13238 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13239 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13240 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13241 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13242 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13243 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13244 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13245 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13246 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13247 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13248 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13249 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13250 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13251 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13252 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13253 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13254 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13255 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13256 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13257 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13258 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13259 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"`'
13260 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13261 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13262 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13263 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13264 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13265 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13266 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13267 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13268 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13269 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13270 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13271 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13272 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13273 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13274 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13275 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13276 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13277 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13278 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13279 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13280 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13281 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13282 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13283 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13284 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13285 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13286 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13287 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13288 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13289 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13290 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13291 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13292 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13293 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13294 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13295 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13296 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13297 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13298 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13299 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13300 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13301 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13302 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13303 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13304 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13305 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13306 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13307 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13308 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13309 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13310 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13311 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13312 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13313 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13314 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13315 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13316 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13317 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13318 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13319 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13320 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13321 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13322 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13323 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13324 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13325 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13326 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13327 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13328 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13329 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13330 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13331 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13332 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13333
13334 LTCC='$LTCC'
13335 LTCFLAGS='$LTCFLAGS'
13336 compiler='$compiler_DEFAULT'
13337
13338 # A function that is used when there is no print builtin or printf.
13339 func_fallback_echo ()
13340 {
13341   eval 'cat <<_LTECHO_EOF
13342 \$1
13343 _LTECHO_EOF'
13344 }
13345
13346 # Quote evaled strings.
13347 for var in SHELL \
13348 ECHO \
13349 PATH_SEPARATOR \
13350 SED \
13351 GREP \
13352 EGREP \
13353 FGREP \
13354 LD \
13355 NM \
13356 LN_S \
13357 lt_SP2NL \
13358 lt_NL2SP \
13359 reload_flag \
13360 OBJDUMP \
13361 deplibs_check_method \
13362 file_magic_cmd \
13363 file_magic_glob \
13364 want_nocaseglob \
13365 DLLTOOL \
13366 sharedlib_from_linklib_cmd \
13367 AR \
13368 AR_FLAGS \
13369 archiver_list_spec \
13370 STRIP \
13371 RANLIB \
13372 CC \
13373 CFLAGS \
13374 compiler \
13375 lt_cv_sys_global_symbol_pipe \
13376 lt_cv_sys_global_symbol_to_cdecl \
13377 lt_cv_sys_global_symbol_to_c_name_address \
13378 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13379 nm_file_list_spec \
13380 lt_prog_compiler_no_builtin_flag \
13381 lt_prog_compiler_pic \
13382 lt_prog_compiler_wl \
13383 lt_prog_compiler_static \
13384 lt_cv_prog_compiler_c_o \
13385 need_locks \
13386 MANIFEST_TOOL \
13387 DSYMUTIL \
13388 NMEDIT \
13389 LIPO \
13390 OTOOL \
13391 OTOOL64 \
13392 shrext_cmds \
13393 export_dynamic_flag_spec \
13394 whole_archive_flag_spec \
13395 compiler_needs_object \
13396 with_gnu_ld \
13397 allow_undefined_flag \
13398 no_undefined_flag \
13399 hardcode_libdir_flag_spec \
13400 hardcode_libdir_separator \
13401 exclude_expsyms \
13402 include_expsyms \
13403 file_list_spec \
13404 variables_saved_for_relink \
13405 libname_spec \
13406 library_names_spec \
13407 soname_spec \
13408 install_override_mode \
13409 finish_eval \
13410 old_striplib \
13411 striplib; do
13412     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13413     *[\\\\\\\`\\"\\\$]*)
13414       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13415       ;;
13416     *)
13417       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13418       ;;
13419     esac
13420 done
13421
13422 # Double-quote double-evaled strings.
13423 for var in reload_cmds \
13424 old_postinstall_cmds \
13425 old_postuninstall_cmds \
13426 old_archive_cmds \
13427 extract_expsyms_cmds \
13428 old_archive_from_new_cmds \
13429 old_archive_from_expsyms_cmds \
13430 archive_cmds \
13431 archive_expsym_cmds \
13432 module_cmds \
13433 module_expsym_cmds \
13434 export_symbols_cmds \
13435 prelink_cmds \
13436 postlink_cmds \
13437 postinstall_cmds \
13438 postuninstall_cmds \
13439 finish_cmds \
13440 sys_lib_search_path_spec \
13441 sys_lib_dlsearch_path_spec; do
13442     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13443     *[\\\\\\\`\\"\\\$]*)
13444       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13445       ;;
13446     *)
13447       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13448       ;;
13449     esac
13450 done
13451
13452 ac_aux_dir='$ac_aux_dir'
13453 xsi_shell='$xsi_shell'
13454 lt_shell_append='$lt_shell_append'
13455
13456 # See if we are running on zsh, and set the options which allow our
13457 # commands through without removal of \ escapes INIT.
13458 if test -n "\${ZSH_VERSION+set}" ; then
13459    setopt NO_GLOB_SUBST
13460 fi
13461
13462
13463     PACKAGE='$PACKAGE'
13464     VERSION='$VERSION'
13465     TIMESTAMP='$TIMESTAMP'
13466     RM='$RM'
13467     ofile='$ofile'
13468
13469
13470
13471
13472 _ACEOF
13473
13474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13475
13476 # Handling of arguments.
13477 for ac_config_target in $ac_config_targets
13478 do
13479   case $ac_config_target in
13480     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13481     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13482     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13483     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13484     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13485     "doc/libogg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;;
13486     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13487     "include/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;;
13488     "include/ogg/config_types.h") CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;;
13489     "libogg.spec") CONFIG_FILES="$CONFIG_FILES libogg.spec" ;;
13490     "ogg.pc") CONFIG_FILES="$CONFIG_FILES ogg.pc" ;;
13491     "ogg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;;
13492     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13493
13494   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13495   esac
13496 done
13497
13498
13499 # If the user did not use the arguments to specify the items to instantiate,
13500 # then the envvar interface is used.  Set only those that are not.
13501 # We use the long form for the default assignment because of an extremely
13502 # bizarre bug on SunOS 4.1.3.
13503 if $ac_need_defaults; then
13504   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13505   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13506   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13507 fi
13508
13509 # Have a temporary directory for convenience.  Make it in the build tree
13510 # simply because there is no reason against having it here, and in addition,
13511 # creating and moving files from /tmp can sometimes cause problems.
13512 # Hook for its removal unless debugging.
13513 # Note that there is a small window in which the directory will not be cleaned:
13514 # after its creation but before its name has been assigned to `$tmp'.
13515 $debug ||
13516 {
13517   tmp= ac_tmp=
13518   trap 'exit_status=$?
13519   : "${ac_tmp:=$tmp}"
13520   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13521 ' 0
13522   trap 'as_fn_exit 1' 1 2 13 15
13523 }
13524 # Create a (secure) tmp directory for tmp files.
13525
13526 {
13527   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13528   test -d "$tmp"
13529 }  ||
13530 {
13531   tmp=./conf$$-$RANDOM
13532   (umask 077 && mkdir "$tmp")
13533 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13534 ac_tmp=$tmp
13535
13536 # Set up the scripts for CONFIG_FILES section.
13537 # No need to generate them if there are no CONFIG_FILES.
13538 # This happens for instance with `./config.status config.h'.
13539 if test -n "$CONFIG_FILES"; then
13540
13541
13542 ac_cr=`echo X | tr X '\015'`
13543 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13544 # But we know of no other shell where ac_cr would be empty at this
13545 # point, so we can use a bashism as a fallback.
13546 if test "x$ac_cr" = x; then
13547   eval ac_cr=\$\'\\r\'
13548 fi
13549 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13550 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13551   ac_cs_awk_cr='\\r'
13552 else
13553   ac_cs_awk_cr=$ac_cr
13554 fi
13555
13556 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13557 _ACEOF
13558
13559
13560 {
13561   echo "cat >conf$$subs.awk <<_ACEOF" &&
13562   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13563   echo "_ACEOF"
13564 } >conf$$subs.sh ||
13565   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13566 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13567 ac_delim='%!_!# '
13568 for ac_last_try in false false false false false :; do
13569   . ./conf$$subs.sh ||
13570     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13571
13572   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13573   if test $ac_delim_n = $ac_delim_num; then
13574     break
13575   elif $ac_last_try; then
13576     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13577   else
13578     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13579   fi
13580 done
13581 rm -f conf$$subs.sh
13582
13583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13584 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13585 _ACEOF
13586 sed -n '
13587 h
13588 s/^/S["/; s/!.*/"]=/
13589 p
13590 g
13591 s/^[^!]*!//
13592 :repl
13593 t repl
13594 s/'"$ac_delim"'$//
13595 t delim
13596 :nl
13597 h
13598 s/\(.\{148\}\)..*/\1/
13599 t more1
13600 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13601 p
13602 n
13603 b repl
13604 :more1
13605 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13606 p
13607 g
13608 s/.\{148\}//
13609 t nl
13610 :delim
13611 h
13612 s/\(.\{148\}\)..*/\1/
13613 t more2
13614 s/["\\]/\\&/g; s/^/"/; s/$/"/
13615 p
13616 b
13617 :more2
13618 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13619 p
13620 g
13621 s/.\{148\}//
13622 t delim
13623 ' <conf$$subs.awk | sed '
13624 /^[^""]/{
13625   N
13626   s/\n//
13627 }
13628 ' >>$CONFIG_STATUS || ac_write_fail=1
13629 rm -f conf$$subs.awk
13630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13631 _ACAWK
13632 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13633   for (key in S) S_is_set[key] = 1
13634   FS = "\a"
13635
13636 }
13637 {
13638   line = $ 0
13639   nfields = split(line, field, "@")
13640   substed = 0
13641   len = length(field[1])
13642   for (i = 2; i < nfields; i++) {
13643     key = field[i]
13644     keylen = length(key)
13645     if (S_is_set[key]) {
13646       value = S[key]
13647       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13648       len += length(value) + length(field[++i])
13649       substed = 1
13650     } else
13651       len += 1 + keylen
13652   }
13653
13654   print line
13655 }
13656
13657 _ACAWK
13658 _ACEOF
13659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13660 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13661   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13662 else
13663   cat
13664 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13665   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13666 _ACEOF
13667
13668 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13669 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13670 # trailing colons and then remove the whole line if VPATH becomes empty
13671 # (actually we leave an empty line to preserve line numbers).
13672 if test "x$srcdir" = x.; then
13673   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13674 h
13675 s///
13676 s/^/:/
13677 s/[      ]*$/:/
13678 s/:\$(srcdir):/:/g
13679 s/:\${srcdir}:/:/g
13680 s/:@srcdir@:/:/g
13681 s/^:*//
13682 s/:*$//
13683 x
13684 s/\(=[   ]*\).*/\1/
13685 G
13686 s/\n//
13687 s/^[^=]*=[       ]*$//
13688 }'
13689 fi
13690
13691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13692 fi # test -n "$CONFIG_FILES"
13693
13694 # Set up the scripts for CONFIG_HEADERS section.
13695 # No need to generate them if there are no CONFIG_HEADERS.
13696 # This happens for instance with `./config.status Makefile'.
13697 if test -n "$CONFIG_HEADERS"; then
13698 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13699 BEGIN {
13700 _ACEOF
13701
13702 # Transform confdefs.h into an awk script `defines.awk', embedded as
13703 # here-document in config.status, that substitutes the proper values into
13704 # config.h.in to produce config.h.
13705
13706 # Create a delimiter string that does not exist in confdefs.h, to ease
13707 # handling of long lines.
13708 ac_delim='%!_!# '
13709 for ac_last_try in false false :; do
13710   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13711   if test -z "$ac_tt"; then
13712     break
13713   elif $ac_last_try; then
13714     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13715   else
13716     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13717   fi
13718 done
13719
13720 # For the awk script, D is an array of macro values keyed by name,
13721 # likewise P contains macro parameters if any.  Preserve backslash
13722 # newline sequences.
13723
13724 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13725 sed -n '
13726 s/.\{148\}/&'"$ac_delim"'/g
13727 t rset
13728 :rset
13729 s/^[     ]*#[    ]*define[       ][      ]*/ /
13730 t def
13731 d
13732 :def
13733 s/\\$//
13734 t bsnl
13735 s/["\\]/\\&/g
13736 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13737 D["\1"]=" \3"/p
13738 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13739 d
13740 :bsnl
13741 s/["\\]/\\&/g
13742 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13743 D["\1"]=" \3\\\\\\n"\\/p
13744 t cont
13745 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13746 t cont
13747 d
13748 :cont
13749 n
13750 s/.\{148\}/&'"$ac_delim"'/g
13751 t clear
13752 :clear
13753 s/\\$//
13754 t bsnlc
13755 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13756 d
13757 :bsnlc
13758 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13759 b cont
13760 ' <confdefs.h | sed '
13761 s/'"$ac_delim"'/"\\\
13762 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13763
13764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13765   for (key in D) D_is_set[key] = 1
13766   FS = "\a"
13767 }
13768 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13769   line = \$ 0
13770   split(line, arg, " ")
13771   if (arg[1] == "#") {
13772     defundef = arg[2]
13773     mac1 = arg[3]
13774   } else {
13775     defundef = substr(arg[1], 2)
13776     mac1 = arg[2]
13777   }
13778   split(mac1, mac2, "(") #)
13779   macro = mac2[1]
13780   prefix = substr(line, 1, index(line, defundef) - 1)
13781   if (D_is_set[macro]) {
13782     # Preserve the white space surrounding the "#".
13783     print prefix "define", macro P[macro] D[macro]
13784     next
13785   } else {
13786     # Replace #undef with comments.  This is necessary, for example,
13787     # in the case of _POSIX_SOURCE, which is predefined and required
13788     # on some systems where configure will not decide to define it.
13789     if (defundef == "undef") {
13790       print "/*", prefix defundef, macro, "*/"
13791       next
13792     }
13793   }
13794 }
13795 { print }
13796 _ACAWK
13797 _ACEOF
13798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13799   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13800 fi # test -n "$CONFIG_HEADERS"
13801
13802
13803 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13804 shift
13805 for ac_tag
13806 do
13807   case $ac_tag in
13808   :[FHLC]) ac_mode=$ac_tag; continue;;
13809   esac
13810   case $ac_mode$ac_tag in
13811   :[FHL]*:*);;
13812   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13813   :[FH]-) ac_tag=-:-;;
13814   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13815   esac
13816   ac_save_IFS=$IFS
13817   IFS=:
13818   set x $ac_tag
13819   IFS=$ac_save_IFS
13820   shift
13821   ac_file=$1
13822   shift
13823
13824   case $ac_mode in
13825   :L) ac_source=$1;;
13826   :[FH])
13827     ac_file_inputs=
13828     for ac_f
13829     do
13830       case $ac_f in
13831       -) ac_f="$ac_tmp/stdin";;
13832       *) # Look for the file first in the build tree, then in the source tree
13833          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13834          # because $ac_f cannot contain `:'.
13835          test -f "$ac_f" ||
13836            case $ac_f in
13837            [\\/$]*) false;;
13838            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13839            esac ||
13840            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13841       esac
13842       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13843       as_fn_append ac_file_inputs " '$ac_f'"
13844     done
13845
13846     # Let's still pretend it is `configure' which instantiates (i.e., don't
13847     # use $as_me), people would be surprised to read:
13848     #    /* config.h.  Generated by config.status.  */
13849     configure_input='Generated from '`
13850           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13851         `' by configure.'
13852     if test x"$ac_file" != x-; then
13853       configure_input="$ac_file.  $configure_input"
13854       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13855 $as_echo "$as_me: creating $ac_file" >&6;}
13856     fi
13857     # Neutralize special characters interpreted by sed in replacement strings.
13858     case $configure_input in #(
13859     *\&* | *\|* | *\\* )
13860        ac_sed_conf_input=`$as_echo "$configure_input" |
13861        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13862     *) ac_sed_conf_input=$configure_input;;
13863     esac
13864
13865     case $ac_tag in
13866     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13867       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13868     esac
13869     ;;
13870   esac
13871
13872   ac_dir=`$as_dirname -- "$ac_file" ||
13873 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13874          X"$ac_file" : 'X\(//\)[^/]' \| \
13875          X"$ac_file" : 'X\(//\)$' \| \
13876          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13877 $as_echo X"$ac_file" |
13878     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13879             s//\1/
13880             q
13881           }
13882           /^X\(\/\/\)[^/].*/{
13883             s//\1/
13884             q
13885           }
13886           /^X\(\/\/\)$/{
13887             s//\1/
13888             q
13889           }
13890           /^X\(\/\).*/{
13891             s//\1/
13892             q
13893           }
13894           s/.*/./; q'`
13895   as_dir="$ac_dir"; as_fn_mkdir_p
13896   ac_builddir=.
13897
13898 case "$ac_dir" in
13899 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13900 *)
13901   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13902   # A ".." for each directory in $ac_dir_suffix.
13903   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13904   case $ac_top_builddir_sub in
13905   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13906   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13907   esac ;;
13908 esac
13909 ac_abs_top_builddir=$ac_pwd
13910 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13911 # for backward compatibility:
13912 ac_top_builddir=$ac_top_build_prefix
13913
13914 case $srcdir in
13915   .)  # We are building in place.
13916     ac_srcdir=.
13917     ac_top_srcdir=$ac_top_builddir_sub
13918     ac_abs_top_srcdir=$ac_pwd ;;
13919   [\\/]* | ?:[\\/]* )  # Absolute name.
13920     ac_srcdir=$srcdir$ac_dir_suffix;
13921     ac_top_srcdir=$srcdir
13922     ac_abs_top_srcdir=$srcdir ;;
13923   *) # Relative name.
13924     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13925     ac_top_srcdir=$ac_top_build_prefix$srcdir
13926     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13927 esac
13928 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13929
13930
13931   case $ac_mode in
13932   :F)
13933   #
13934   # CONFIG_FILE
13935   #
13936
13937   case $INSTALL in
13938   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13939   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13940   esac
13941   ac_MKDIR_P=$MKDIR_P
13942   case $MKDIR_P in
13943   [\\/$]* | ?:[\\/]* ) ;;
13944   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13945   esac
13946 _ACEOF
13947
13948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13949 # If the template does not know about datarootdir, expand it.
13950 # FIXME: This hack should be removed a few years after 2.60.
13951 ac_datarootdir_hack=; ac_datarootdir_seen=
13952 ac_sed_dataroot='
13953 /datarootdir/ {
13954   p
13955   q
13956 }
13957 /@datadir@/p
13958 /@docdir@/p
13959 /@infodir@/p
13960 /@localedir@/p
13961 /@mandir@/p'
13962 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13963 *datarootdir*) ac_datarootdir_seen=yes;;
13964 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13965   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13966 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13967 _ACEOF
13968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13969   ac_datarootdir_hack='
13970   s&@datadir@&$datadir&g
13971   s&@docdir@&$docdir&g
13972   s&@infodir@&$infodir&g
13973   s&@localedir@&$localedir&g
13974   s&@mandir@&$mandir&g
13975   s&\\\${datarootdir}&$datarootdir&g' ;;
13976 esac
13977 _ACEOF
13978
13979 # Neutralize VPATH when `$srcdir' = `.'.
13980 # Shell code in configure.ac might set extrasub.
13981 # FIXME: do we really want to maintain this feature?
13982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13983 ac_sed_extra="$ac_vpsub
13984 $extrasub
13985 _ACEOF
13986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13987 :t
13988 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13989 s|@configure_input@|$ac_sed_conf_input|;t t
13990 s&@top_builddir@&$ac_top_builddir_sub&;t t
13991 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13992 s&@srcdir@&$ac_srcdir&;t t
13993 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13994 s&@top_srcdir@&$ac_top_srcdir&;t t
13995 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13996 s&@builddir@&$ac_builddir&;t t
13997 s&@abs_builddir@&$ac_abs_builddir&;t t
13998 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13999 s&@INSTALL@&$ac_INSTALL&;t t
14000 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14001 $ac_datarootdir_hack
14002 "
14003 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14004   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14005
14006 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14007   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14008   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14009       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14010   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14011 which seems to be undefined.  Please make sure it is defined" >&5
14012 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14013 which seems to be undefined.  Please make sure it is defined" >&2;}
14014
14015   rm -f "$ac_tmp/stdin"
14016   case $ac_file in
14017   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14018   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14019   esac \
14020   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14021  ;;
14022   :H)
14023   #
14024   # CONFIG_HEADER
14025   #
14026   if test x"$ac_file" != x-; then
14027     {
14028       $as_echo "/* $configure_input  */" \
14029       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14030     } >"$ac_tmp/config.h" \
14031       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14032     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14033       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14034 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14035     else
14036       rm -f "$ac_file"
14037       mv "$ac_tmp/config.h" "$ac_file" \
14038         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14039     fi
14040   else
14041     $as_echo "/* $configure_input  */" \
14042       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14043       || as_fn_error $? "could not create -" "$LINENO" 5
14044   fi
14045 # Compute "$ac_file"'s index in $config_headers.
14046 _am_arg="$ac_file"
14047 _am_stamp_count=1
14048 for _am_header in $config_headers :; do
14049   case $_am_header in
14050     $_am_arg | $_am_arg:* )
14051       break ;;
14052     * )
14053       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14054   esac
14055 done
14056 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14057 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14058          X"$_am_arg" : 'X\(//\)[^/]' \| \
14059          X"$_am_arg" : 'X\(//\)$' \| \
14060          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14061 $as_echo X"$_am_arg" |
14062     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14063             s//\1/
14064             q
14065           }
14066           /^X\(\/\/\)[^/].*/{
14067             s//\1/
14068             q
14069           }
14070           /^X\(\/\/\)$/{
14071             s//\1/
14072             q
14073           }
14074           /^X\(\/\).*/{
14075             s//\1/
14076             q
14077           }
14078           s/.*/./; q'`/stamp-h$_am_stamp_count
14079  ;;
14080
14081   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14082 $as_echo "$as_me: executing $ac_file commands" >&6;}
14083  ;;
14084   esac
14085
14086
14087   case $ac_file$ac_mode in
14088     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14089   # Older Autoconf quotes --file arguments for eval, but not when files
14090   # are listed without --file.  Let's play safe and only enable the eval
14091   # if we detect the quoting.
14092   case $CONFIG_FILES in
14093   *\'*) eval set x "$CONFIG_FILES" ;;
14094   *)   set x $CONFIG_FILES ;;
14095   esac
14096   shift
14097   for mf
14098   do
14099     # Strip MF so we end up with the name of the file.
14100     mf=`echo "$mf" | sed -e 's/:.*$//'`
14101     # Check whether this is an Automake generated Makefile or not.
14102     # We used to match only the files named 'Makefile.in', but
14103     # some people rename them; so instead we look at the file content.
14104     # Grep'ing the first line is not enough: some people post-process
14105     # each Makefile.in and add a new line on top of each file to say so.
14106     # Grep'ing the whole file is not good either: AIX grep has a line
14107     # limit of 2048, but all sed's we know have understand at least 4000.
14108     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14109       dirpart=`$as_dirname -- "$mf" ||
14110 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14111          X"$mf" : 'X\(//\)[^/]' \| \
14112          X"$mf" : 'X\(//\)$' \| \
14113          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14114 $as_echo X"$mf" |
14115     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14116             s//\1/
14117             q
14118           }
14119           /^X\(\/\/\)[^/].*/{
14120             s//\1/
14121             q
14122           }
14123           /^X\(\/\/\)$/{
14124             s//\1/
14125             q
14126           }
14127           /^X\(\/\).*/{
14128             s//\1/
14129             q
14130           }
14131           s/.*/./; q'`
14132     else
14133       continue
14134     fi
14135     # Extract the definition of DEPDIR, am__include, and am__quote
14136     # from the Makefile without running 'make'.
14137     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14138     test -z "$DEPDIR" && continue
14139     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14140     test -z "$am__include" && continue
14141     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14142     # Find all dependency output files, they are included files with
14143     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14144     # simplest approach to changing $(DEPDIR) to its actual value in the
14145     # expansion.
14146     for file in `sed -n "
14147       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14148          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14149       # Make sure the directory exists.
14150       test -f "$dirpart/$file" && continue
14151       fdir=`$as_dirname -- "$file" ||
14152 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14153          X"$file" : 'X\(//\)[^/]' \| \
14154          X"$file" : 'X\(//\)$' \| \
14155          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14156 $as_echo X"$file" |
14157     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14158             s//\1/
14159             q
14160           }
14161           /^X\(\/\/\)[^/].*/{
14162             s//\1/
14163             q
14164           }
14165           /^X\(\/\/\)$/{
14166             s//\1/
14167             q
14168           }
14169           /^X\(\/\).*/{
14170             s//\1/
14171             q
14172           }
14173           s/.*/./; q'`
14174       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14175       # echo "creating $dirpart/$file"
14176       echo '# dummy' > "$dirpart/$file"
14177     done
14178   done
14179 }
14180  ;;
14181     "libtool":C)
14182
14183     # See if we are running on zsh, and set the options which allow our
14184     # commands through without removal of \ escapes.
14185     if test -n "${ZSH_VERSION+set}" ; then
14186       setopt NO_GLOB_SUBST
14187     fi
14188
14189     cfgfile="${ofile}T"
14190     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14191     $RM "$cfgfile"
14192
14193     cat <<_LT_EOF >> "$cfgfile"
14194 #! $SHELL
14195
14196 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14197 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14198 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14199 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14200 #
14201 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14202 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14203 #                 Foundation, Inc.
14204 #   Written by Gordon Matzigkeit, 1996
14205 #
14206 #   This file is part of GNU Libtool.
14207 #
14208 # GNU Libtool is free software; you can redistribute it and/or
14209 # modify it under the terms of the GNU General Public License as
14210 # published by the Free Software Foundation; either version 2 of
14211 # the License, or (at your option) any later version.
14212 #
14213 # As a special exception to the GNU General Public License,
14214 # if you distribute this file as part of a program or library that
14215 # is built using GNU Libtool, you may include this file under the
14216 # same distribution terms that you use for the rest of that program.
14217 #
14218 # GNU Libtool is distributed in the hope that it will be useful,
14219 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14220 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14221 # GNU General Public License for more details.
14222 #
14223 # You should have received a copy of the GNU General Public License
14224 # along with GNU Libtool; see the file COPYING.  If not, a copy
14225 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14226 # obtained by writing to the Free Software Foundation, Inc.,
14227 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14228
14229
14230 # The names of the tagged configurations supported by this script.
14231 available_tags=""
14232
14233 # ### BEGIN LIBTOOL CONFIG
14234
14235 # Which release of libtool.m4 was used?
14236 macro_version=$macro_version
14237 macro_revision=$macro_revision
14238
14239 # Whether or not to build shared libraries.
14240 build_libtool_libs=$enable_shared
14241
14242 # Whether or not to build static libraries.
14243 build_old_libs=$enable_static
14244
14245 # What type of objects to build.
14246 pic_mode=$pic_mode
14247
14248 # Whether or not to optimize for fast installation.
14249 fast_install=$enable_fast_install
14250
14251 # Shell to use when invoking shell scripts.
14252 SHELL=$lt_SHELL
14253
14254 # An echo program that protects backslashes.
14255 ECHO=$lt_ECHO
14256
14257 # The PATH separator for the build system.
14258 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14259
14260 # The host system.
14261 host_alias=$host_alias
14262 host=$host
14263 host_os=$host_os
14264
14265 # The build system.
14266 build_alias=$build_alias
14267 build=$build
14268 build_os=$build_os
14269
14270 # A sed program that does not truncate output.
14271 SED=$lt_SED
14272
14273 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14274 Xsed="\$SED -e 1s/^X//"
14275
14276 # A grep program that handles long lines.
14277 GREP=$lt_GREP
14278
14279 # An ERE matcher.
14280 EGREP=$lt_EGREP
14281
14282 # A literal string matcher.
14283 FGREP=$lt_FGREP
14284
14285 # A BSD- or MS-compatible name lister.
14286 NM=$lt_NM
14287
14288 # Whether we need soft or hard links.
14289 LN_S=$lt_LN_S
14290
14291 # What is the maximum length of a command?
14292 max_cmd_len=$max_cmd_len
14293
14294 # Object file suffix (normally "o").
14295 objext=$ac_objext
14296
14297 # Executable file suffix (normally "").
14298 exeext=$exeext
14299
14300 # whether the shell understands "unset".
14301 lt_unset=$lt_unset
14302
14303 # turn spaces into newlines.
14304 SP2NL=$lt_lt_SP2NL
14305
14306 # turn newlines into spaces.
14307 NL2SP=$lt_lt_NL2SP
14308
14309 # convert \$build file names to \$host format.
14310 to_host_file_cmd=$lt_cv_to_host_file_cmd
14311
14312 # convert \$build files to toolchain format.
14313 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14314
14315 # An object symbol dumper.
14316 OBJDUMP=$lt_OBJDUMP
14317
14318 # Method to check whether dependent libraries are shared objects.
14319 deplibs_check_method=$lt_deplibs_check_method
14320
14321 # Command to use when deplibs_check_method = "file_magic".
14322 file_magic_cmd=$lt_file_magic_cmd
14323
14324 # How to find potential files when deplibs_check_method = "file_magic".
14325 file_magic_glob=$lt_file_magic_glob
14326
14327 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14328 want_nocaseglob=$lt_want_nocaseglob
14329
14330 # DLL creation program.
14331 DLLTOOL=$lt_DLLTOOL
14332
14333 # Command to associate shared and link libraries.
14334 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14335
14336 # The archiver.
14337 AR=$lt_AR
14338
14339 # Flags to create an archive.
14340 AR_FLAGS=$lt_AR_FLAGS
14341
14342 # How to feed a file listing to the archiver.
14343 archiver_list_spec=$lt_archiver_list_spec
14344
14345 # A symbol stripping program.
14346 STRIP=$lt_STRIP
14347
14348 # Commands used to install an old-style archive.
14349 RANLIB=$lt_RANLIB
14350 old_postinstall_cmds=$lt_old_postinstall_cmds
14351 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14352
14353 # Whether to use a lock for old archive extraction.
14354 lock_old_archive_extraction=$lock_old_archive_extraction
14355
14356 # A C compiler.
14357 LTCC=$lt_CC
14358
14359 # LTCC compiler flags.
14360 LTCFLAGS=$lt_CFLAGS
14361
14362 # Take the output of nm and produce a listing of raw symbols and C names.
14363 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14364
14365 # Transform the output of nm in a proper C declaration.
14366 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14367
14368 # Transform the output of nm in a C name address pair.
14369 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14370
14371 # Transform the output of nm in a C name address pair when lib prefix is needed.
14372 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14373
14374 # Specify filename containing input files for \$NM.
14375 nm_file_list_spec=$lt_nm_file_list_spec
14376
14377 # The root where to search for dependent libraries,and in which our libraries should be installed.
14378 lt_sysroot=$lt_sysroot
14379
14380 # The name of the directory that contains temporary libtool files.
14381 objdir=$objdir
14382
14383 # Used to examine libraries when file_magic_cmd begins with "file".
14384 MAGIC_CMD=$MAGIC_CMD
14385
14386 # Must we lock files when doing compilation?
14387 need_locks=$lt_need_locks
14388
14389 # Manifest tool.
14390 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14391
14392 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14393 DSYMUTIL=$lt_DSYMUTIL
14394
14395 # Tool to change global to local symbols on Mac OS X.
14396 NMEDIT=$lt_NMEDIT
14397
14398 # Tool to manipulate fat objects and archives on Mac OS X.
14399 LIPO=$lt_LIPO
14400
14401 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14402 OTOOL=$lt_OTOOL
14403
14404 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14405 OTOOL64=$lt_OTOOL64
14406
14407 # Old archive suffix (normally "a").
14408 libext=$libext
14409
14410 # Shared library suffix (normally ".so").
14411 shrext_cmds=$lt_shrext_cmds
14412
14413 # The commands to extract the exported symbol list from a shared archive.
14414 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14415
14416 # Variables whose values should be saved in libtool wrapper scripts and
14417 # restored at link time.
14418 variables_saved_for_relink=$lt_variables_saved_for_relink
14419
14420 # Do we need the "lib" prefix for modules?
14421 need_lib_prefix=$need_lib_prefix
14422
14423 # Do we need a version for libraries?
14424 need_version=$need_version
14425
14426 # Library versioning type.
14427 version_type=$version_type
14428
14429 # Shared library runtime path variable.
14430 runpath_var=$runpath_var
14431
14432 # Shared library path variable.
14433 shlibpath_var=$shlibpath_var
14434
14435 # Is shlibpath searched before the hard-coded library search path?
14436 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14437
14438 # Format of library name prefix.
14439 libname_spec=$lt_libname_spec
14440
14441 # List of archive names.  First name is the real one, the rest are links.
14442 # The last name is the one that the linker finds with -lNAME
14443 library_names_spec=$lt_library_names_spec
14444
14445 # The coded name of the library, if different from the real name.
14446 soname_spec=$lt_soname_spec
14447
14448 # Permission mode override for installation of shared libraries.
14449 install_override_mode=$lt_install_override_mode
14450
14451 # Command to use after installation of a shared archive.
14452 postinstall_cmds=$lt_postinstall_cmds
14453
14454 # Command to use after uninstallation of a shared archive.
14455 postuninstall_cmds=$lt_postuninstall_cmds
14456
14457 # Commands used to finish a libtool library installation in a directory.
14458 finish_cmds=$lt_finish_cmds
14459
14460 # As "finish_cmds", except a single script fragment to be evaled but
14461 # not shown.
14462 finish_eval=$lt_finish_eval
14463
14464 # Whether we should hardcode library paths into libraries.
14465 hardcode_into_libs=$hardcode_into_libs
14466
14467 # Compile-time system search path for libraries.
14468 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14469
14470 # Run-time system search path for libraries.
14471 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14472
14473 # Whether dlopen is supported.
14474 dlopen_support=$enable_dlopen
14475
14476 # Whether dlopen of programs is supported.
14477 dlopen_self=$enable_dlopen_self
14478
14479 # Whether dlopen of statically linked programs is supported.
14480 dlopen_self_static=$enable_dlopen_self_static
14481
14482 # Commands to strip libraries.
14483 old_striplib=$lt_old_striplib
14484 striplib=$lt_striplib
14485
14486
14487 # The linker used to build libraries.
14488 LD=$lt_LD
14489
14490 # How to create reloadable object files.
14491 reload_flag=$lt_reload_flag
14492 reload_cmds=$lt_reload_cmds
14493
14494 # Commands used to build an old-style archive.
14495 old_archive_cmds=$lt_old_archive_cmds
14496
14497 # A language specific compiler.
14498 CC=$lt_compiler
14499
14500 # Is the compiler the GNU compiler?
14501 with_gcc=$GCC
14502
14503 # Compiler flag to turn off builtin functions.
14504 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14505
14506 # Additional compiler flags for building library objects.
14507 pic_flag=$lt_lt_prog_compiler_pic
14508
14509 # How to pass a linker flag through the compiler.
14510 wl=$lt_lt_prog_compiler_wl
14511
14512 # Compiler flag to prevent dynamic linking.
14513 link_static_flag=$lt_lt_prog_compiler_static
14514
14515 # Does compiler simultaneously support -c and -o options?
14516 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14517
14518 # Whether or not to add -lc for building shared libraries.
14519 build_libtool_need_lc=$archive_cmds_need_lc
14520
14521 # Whether or not to disallow shared libs when runtime libs are static.
14522 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14523
14524 # Compiler flag to allow reflexive dlopens.
14525 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14526
14527 # Compiler flag to generate shared objects directly from archives.
14528 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14529
14530 # Whether the compiler copes with passing no objects directly.
14531 compiler_needs_object=$lt_compiler_needs_object
14532
14533 # Create an old-style archive from a shared archive.
14534 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14535
14536 # Create a temporary old-style archive to link instead of a shared archive.
14537 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14538
14539 # Commands used to build a shared archive.
14540 archive_cmds=$lt_archive_cmds
14541 archive_expsym_cmds=$lt_archive_expsym_cmds
14542
14543 # Commands used to build a loadable module if different from building
14544 # a shared archive.
14545 module_cmds=$lt_module_cmds
14546 module_expsym_cmds=$lt_module_expsym_cmds
14547
14548 # Whether we are building with GNU ld or not.
14549 with_gnu_ld=$lt_with_gnu_ld
14550
14551 # Flag that allows shared libraries with undefined symbols to be built.
14552 allow_undefined_flag=$lt_allow_undefined_flag
14553
14554 # Flag that enforces no undefined symbols.
14555 no_undefined_flag=$lt_no_undefined_flag
14556
14557 # Flag to hardcode \$libdir into a binary during linking.
14558 # This must work even if \$libdir does not exist
14559 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14560
14561 # Whether we need a single "-rpath" flag with a separated argument.
14562 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14563
14564 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14565 # DIR into the resulting binary.
14566 hardcode_direct=$hardcode_direct
14567
14568 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14569 # DIR into the resulting binary and the resulting library dependency is
14570 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14571 # library is relocated.
14572 hardcode_direct_absolute=$hardcode_direct_absolute
14573
14574 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14575 # into the resulting binary.
14576 hardcode_minus_L=$hardcode_minus_L
14577
14578 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14579 # into the resulting binary.
14580 hardcode_shlibpath_var=$hardcode_shlibpath_var
14581
14582 # Set to "yes" if building a shared library automatically hardcodes DIR
14583 # into the library and all subsequent libraries and executables linked
14584 # against it.
14585 hardcode_automatic=$hardcode_automatic
14586
14587 # Set to yes if linker adds runtime paths of dependent libraries
14588 # to runtime path list.
14589 inherit_rpath=$inherit_rpath
14590
14591 # Whether libtool must link a program against all its dependency libraries.
14592 link_all_deplibs=$link_all_deplibs
14593
14594 # Set to "yes" if exported symbols are required.
14595 always_export_symbols=$always_export_symbols
14596
14597 # The commands to list exported symbols.
14598 export_symbols_cmds=$lt_export_symbols_cmds
14599
14600 # Symbols that should not be listed in the preloaded symbols.
14601 exclude_expsyms=$lt_exclude_expsyms
14602
14603 # Symbols that must always be exported.
14604 include_expsyms=$lt_include_expsyms
14605
14606 # Commands necessary for linking programs (against libraries) with templates.
14607 prelink_cmds=$lt_prelink_cmds
14608
14609 # Commands necessary for finishing linking programs.
14610 postlink_cmds=$lt_postlink_cmds
14611
14612 # Specify filename containing input files.
14613 file_list_spec=$lt_file_list_spec
14614
14615 # How to hardcode a shared library path into an executable.
14616 hardcode_action=$hardcode_action
14617
14618 # ### END LIBTOOL CONFIG
14619
14620 _LT_EOF
14621
14622   case $host_os in
14623   aix3*)
14624     cat <<\_LT_EOF >> "$cfgfile"
14625 # AIX sometimes has problems with the GCC collect2 program.  For some
14626 # reason, if we set the COLLECT_NAMES environment variable, the problems
14627 # vanish in a puff of smoke.
14628 if test "X${COLLECT_NAMES+set}" != Xset; then
14629   COLLECT_NAMES=
14630   export COLLECT_NAMES
14631 fi
14632 _LT_EOF
14633     ;;
14634   esac
14635
14636
14637 ltmain="$ac_aux_dir/ltmain.sh"
14638
14639
14640   # We use sed instead of cat because bash on DJGPP gets confused if
14641   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14642   # text mode, it properly converts lines to CR/LF.  This bash problem
14643   # is reportedly fixed, but why not run on old versions too?
14644   sed '$q' "$ltmain" >> "$cfgfile" \
14645      || (rm -f "$cfgfile"; exit 1)
14646
14647   if test x"$xsi_shell" = xyes; then
14648   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14649 func_dirname ()\
14650 {\
14651 \    case ${1} in\
14652 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14653 \      *  ) func_dirname_result="${3}" ;;\
14654 \    esac\
14655 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14656   && mv -f "$cfgfile.tmp" "$cfgfile" \
14657     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14658 test 0 -eq $? || _lt_function_replace_fail=:
14659
14660
14661   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14662 func_basename ()\
14663 {\
14664 \    func_basename_result="${1##*/}"\
14665 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14666   && mv -f "$cfgfile.tmp" "$cfgfile" \
14667     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14668 test 0 -eq $? || _lt_function_replace_fail=:
14669
14670
14671   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14672 func_dirname_and_basename ()\
14673 {\
14674 \    case ${1} in\
14675 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14676 \      *  ) func_dirname_result="${3}" ;;\
14677 \    esac\
14678 \    func_basename_result="${1##*/}"\
14679 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14680   && mv -f "$cfgfile.tmp" "$cfgfile" \
14681     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14682 test 0 -eq $? || _lt_function_replace_fail=:
14683
14684
14685   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14686 func_stripname ()\
14687 {\
14688 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14689 \    # positional parameters, so assign one to ordinary parameter first.\
14690 \    func_stripname_result=${3}\
14691 \    func_stripname_result=${func_stripname_result#"${1}"}\
14692 \    func_stripname_result=${func_stripname_result%"${2}"}\
14693 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14694   && mv -f "$cfgfile.tmp" "$cfgfile" \
14695     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14696 test 0 -eq $? || _lt_function_replace_fail=:
14697
14698
14699   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14700 func_split_long_opt ()\
14701 {\
14702 \    func_split_long_opt_name=${1%%=*}\
14703 \    func_split_long_opt_arg=${1#*=}\
14704 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14705   && mv -f "$cfgfile.tmp" "$cfgfile" \
14706     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14707 test 0 -eq $? || _lt_function_replace_fail=:
14708
14709
14710   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14711 func_split_short_opt ()\
14712 {\
14713 \    func_split_short_opt_arg=${1#??}\
14714 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14715 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14716   && mv -f "$cfgfile.tmp" "$cfgfile" \
14717     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14718 test 0 -eq $? || _lt_function_replace_fail=:
14719
14720
14721   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14722 func_lo2o ()\
14723 {\
14724 \    case ${1} in\
14725 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14726 \      *)    func_lo2o_result=${1} ;;\
14727 \    esac\
14728 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14729   && mv -f "$cfgfile.tmp" "$cfgfile" \
14730     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14731 test 0 -eq $? || _lt_function_replace_fail=:
14732
14733
14734   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14735 func_xform ()\
14736 {\
14737     func_xform_result=${1%.*}.lo\
14738 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14739   && mv -f "$cfgfile.tmp" "$cfgfile" \
14740     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14741 test 0 -eq $? || _lt_function_replace_fail=:
14742
14743
14744   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14745 func_arith ()\
14746 {\
14747     func_arith_result=$(( $* ))\
14748 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14749   && mv -f "$cfgfile.tmp" "$cfgfile" \
14750     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14751 test 0 -eq $? || _lt_function_replace_fail=:
14752
14753
14754   sed -e '/^func_len ()$/,/^} # func_len /c\
14755 func_len ()\
14756 {\
14757     func_len_result=${#1}\
14758 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14759   && mv -f "$cfgfile.tmp" "$cfgfile" \
14760     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14761 test 0 -eq $? || _lt_function_replace_fail=:
14762
14763 fi
14764
14765 if test x"$lt_shell_append" = xyes; then
14766   sed -e '/^func_append ()$/,/^} # func_append /c\
14767 func_append ()\
14768 {\
14769     eval "${1}+=\\${2}"\
14770 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14771   && mv -f "$cfgfile.tmp" "$cfgfile" \
14772     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14773 test 0 -eq $? || _lt_function_replace_fail=:
14774
14775
14776   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14777 func_append_quoted ()\
14778 {\
14779 \    func_quote_for_eval "${2}"\
14780 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14781 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14782   && mv -f "$cfgfile.tmp" "$cfgfile" \
14783     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14784 test 0 -eq $? || _lt_function_replace_fail=:
14785
14786
14787   # Save a `func_append' function call where possible by direct use of '+='
14788   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14789     && mv -f "$cfgfile.tmp" "$cfgfile" \
14790       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14791   test 0 -eq $? || _lt_function_replace_fail=:
14792 else
14793   # Save a `func_append' function call even when '+=' is not available
14794   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14795     && mv -f "$cfgfile.tmp" "$cfgfile" \
14796       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14797   test 0 -eq $? || _lt_function_replace_fail=:
14798 fi
14799
14800 if test x"$_lt_function_replace_fail" = x":"; then
14801   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14802 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14803 fi
14804
14805
14806    mv -f "$cfgfile" "$ofile" ||
14807     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14808   chmod +x "$ofile"
14809
14810  ;;
14811
14812   esac
14813 done # for ac_tag
14814
14815
14816 as_fn_exit 0
14817 _ACEOF
14818 ac_clean_files=$ac_clean_files_save
14819
14820 test $ac_write_fail = 0 ||
14821   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14822
14823
14824 # configure is writing to config.log, and then calls config.status.
14825 # config.status does its own redirection, appending to config.log.
14826 # Unfortunately, on DOS this fails, as config.log is still kept open
14827 # by configure, so config.status won't be able to write to it; its
14828 # output is simply discarded.  So we exec the FD to /dev/null,
14829 # effectively closing config.log, so it can be properly (re)opened and
14830 # appended to by config.status.  When coming back to configure, we
14831 # need to make the FD available again.
14832 if test "$no_create" != yes; then
14833   ac_cs_success=:
14834   ac_config_status_args=
14835   test "$silent" = yes &&
14836     ac_config_status_args="$ac_config_status_args --quiet"
14837   exec 5>/dev/null
14838   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14839   exec 5>>config.log
14840   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14841   # would make configure fail if this is the last instruction.
14842   $ac_cs_success || as_fn_exit 1
14843 fi
14844 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14845   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14846 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14847 fi
14848