spec: Use %license macro to copy license
[platform/upstream/libtheora.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libtheora 1.1.1.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_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 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587   # Discard the --no-reexec flag, and continue.
588   shift
589 elif test "X$1" = X--fallback-echo; then
590   # Avoid inline document here, it may be left over
591   :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593   # Yippee, $ECHO works!
594   :
595 else
596   # Restart under the correct shell.
597   exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601   # used as fallback echo
602   shift
603   cat <<_LT_EOF
604 $*
605 _LT_EOF
606   exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614   if test "X${echo_test_string+set}" != Xset; then
615     # find a string as large as possible, as long as the shell can cope with it
616     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620       then
621         break
622       fi
623     done
624   fi
625
626   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628      test "X$echo_testing_string" = "X$echo_test_string"; then
629     :
630   else
631     # The Solaris, AIX, and Digital Unix default echo programs unquote
632     # backslashes.  This makes it impossible to quote backslashes using
633     #   echo "$something" | sed 's/\\/\\\\/g'
634     #
635     # So, first we look for a working echo in the user's PATH.
636
637     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638     for dir in $PATH /usr/ucb; do
639       IFS="$lt_save_ifs"
640       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643          test "X$echo_testing_string" = "X$echo_test_string"; then
644         ECHO="$dir/echo"
645         break
646       fi
647     done
648     IFS="$lt_save_ifs"
649
650     if test "X$ECHO" = Xecho; then
651       # We didn't find a better echo, so look for alternatives.
652       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # This shell has a builtin print -r that does the trick.
656         ECHO='print -r'
657       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658            test "X$CONFIG_SHELL" != X/bin/ksh; then
659         # If we have ksh, try running configure again with it.
660         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661         export ORIGINAL_CONFIG_SHELL
662         CONFIG_SHELL=/bin/ksh
663         export CONFIG_SHELL
664         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665       else
666         # Try using printf.
667         ECHO='printf %s\n'
668         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670            test "X$echo_testing_string" = "X$echo_test_string"; then
671           # Cool, printf works
672           :
673         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674              test "X$echo_testing_string" = 'X\t' &&
675              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676              test "X$echo_testing_string" = "X$echo_test_string"; then
677           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678           export CONFIG_SHELL
679           SHELL="$CONFIG_SHELL"
680           export SHELL
681           ECHO="$CONFIG_SHELL $0 --fallback-echo"
682         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683              test "X$echo_testing_string" = 'X\t' &&
684              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685              test "X$echo_testing_string" = "X$echo_test_string"; then
686           ECHO="$CONFIG_SHELL $0 --fallback-echo"
687         else
688           # maybe with a smaller string...
689           prev=:
690
691           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693             then
694               break
695             fi
696             prev="$cmd"
697           done
698
699           if test "$prev" != 'sed 50q "$0"'; then
700             echo_test_string=`eval $prev`
701             export echo_test_string
702             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703           else
704             # Oops.  We lost completely, so just stick with echo.
705             ECHO=echo
706           fi
707         fi
708       fi
709     fi
710   fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME='libtheora'
745 PACKAGE_TARNAME='libtheora'
746 PACKAGE_VERSION='1.1.1'
747 PACKAGE_STRING='libtheora 1.1.1'
748 PACKAGE_BUGREPORT=''
749
750 ac_unique_file="lib/fdct.c"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
753 #include <stdio.h>
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
756 #endif
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
759 #endif
760 #ifdef STDC_HEADERS
761 # include <stdlib.h>
762 # include <stddef.h>
763 #else
764 # ifdef HAVE_STDLIB_H
765 #  include <stdlib.h>
766 # endif
767 #endif
768 #ifdef HAVE_STRING_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 #  include <memory.h>
771 # endif
772 # include <string.h>
773 #endif
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
776 #endif
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
779 #endif
780 #ifdef HAVE_STDINT_H
781 # include <stdint.h>
782 #endif
783 #ifdef HAVE_UNISTD_H
784 # include <unistd.h>
785 #endif"
786
787 ac_subst_vars='DOCDIR
788 BINDIR
789 INCLUDEDIR
790 LIBDIR
791 LTLIBOBJS
792 LIBOBJS
793 PROFILE
794 DEBUG
795 BUILDABLE_EXAMPLES
796 GETOPT_OBJS
797 THEORA_ENABLE_EXAMPLES_FALSE
798 THEORA_ENABLE_EXAMPLES_TRUE
799 THEORA_DISABLE_ENCODE_FALSE
800 THEORA_DISABLE_ENCODE_TRUE
801 THEORA_DISABLE_FLOAT_FALSE
802 THEORA_DISABLE_FLOAT_TRUE
803 CAIRO_LIBS
804 CAIRO_CFLAGS
805 PNG_LIBS
806 PNG_CFLAGS
807 OSS_LIBS
808 SDL_LIBS
809 SDL_CFLAGS
810 SDL_CONFIG
811 VORBISFILE_LIBS
812 VORBISENC_LIBS
813 VORBIS_LIBS
814 VORBIS_CFLAGS
815 OGG_LIBS
816 OGG_CFLAGS
817 PKG_CONFIG
818 HAVE_PKG_CONFIG
819 THEORA_LDFLAGS
820 THEORAENC_LDFLAGS
821 THEORADEC_LDFLAGS
822 CPU_x86_32_FALSE
823 CPU_x86_32_TRUE
824 CPU_x86_64_FALSE
825 CPU_x86_64_TRUE
826 VALGRIND_ENVIRONMENT
827 HAVE_VALGRIND
828 BUILD_SPEC_FALSE
829 BUILD_SPEC_TRUE
830 HAVE_TRANSFIG
831 HAVE_BIBTEX
832 HAVE_PDFLATEX
833 HAVE_DOXYGEN_FALSE
834 HAVE_DOXYGEN_TRUE
835 HAVE_DOXYGEN
836 ACLOCAL_AMFLAGS
837 OTOOL64
838 OTOOL
839 LIPO
840 NMEDIT
841 DSYMUTIL
842 lt_ECHO
843 RANLIB
844 AR
845 LN_S
846 NM
847 ac_ct_DUMPBIN
848 DUMPBIN
849 LD
850 FGREP
851 EGREP
852 GREP
853 SED
854 LIBTOOL
855 OBJDUMP
856 DLLTOOL
857 AS
858 CPP
859 CCDEPMODE
860 AMDEPBACKSLASH
861 AMDEP_FALSE
862 AMDEP_TRUE
863 am__quote
864 am__include
865 DEPDIR
866 OBJEXT
867 EXEEXT
868 ac_ct_CC
869 CPPFLAGS
870 LDFLAGS
871 CFLAGS
872 CC
873 THENC_LIB_AGE
874 THENC_LIB_REVISION
875 THENC_LIB_CURRENT
876 THDEC_LIB_AGE
877 THDEC_LIB_REVISION
878 THDEC_LIB_CURRENT
879 TH_LIB_AGE
880 TH_LIB_REVISION
881 TH_LIB_CURRENT
882 MAINT
883 MAINTAINER_MODE_FALSE
884 MAINTAINER_MODE_TRUE
885 SET_MAKE
886 AWK
887 INSTALL_STRIP_PROGRAM
888 STRIP
889 install_sh
890 AMTAR
891 MAKEINFO
892 AUTOHEADER
893 AUTOMAKE
894 AUTOCONF
895 ACLOCAL
896 VERSION
897 PACKAGE
898 INSTALL_DATA
899 INSTALL_SCRIPT
900 INSTALL_PROGRAM
901 target_os
902 target_vendor
903 target_cpu
904 target
905 host_os
906 host_vendor
907 host_cpu
908 host
909 build_os
910 build_vendor
911 build_cpu
912 build
913 target_alias
914 host_alias
915 build_alias
916 LIBS
917 ECHO_T
918 ECHO_N
919 ECHO_C
920 DEFS
921 mandir
922 localedir
923 libdir
924 psdir
925 pdfdir
926 dvidir
927 htmldir
928 infodir
929 docdir
930 oldincludedir
931 includedir
932 localstatedir
933 sharedstatedir
934 sysconfdir
935 datadir
936 datarootdir
937 libexecdir
938 sbindir
939 bindir
940 program_transform_name
941 prefix
942 exec_prefix
943 PACKAGE_BUGREPORT
944 PACKAGE_STRING
945 PACKAGE_VERSION
946 PACKAGE_TARNAME
947 PACKAGE_NAME
948 PATH_SEPARATOR
949 SHELL'
950 ac_subst_files=''
951 ac_user_opts='
952 enable_option_checking
953 enable_maintainer_mode
954 enable_dependency_tracking
955 enable_shared
956 enable_static
957 with_pic
958 enable_fast_install
959 with_gnu_ld
960 enable_libtool_lock
961 enable_spec
962 enable_valgrind_testing
963 enable_asm
964 with_ogg
965 with_ogg_libraries
966 with_ogg_includes
967 enable_oggtest
968 with_vorbis
969 with_vorbis_libraries
970 with_vorbis_includes
971 enable_vorbistest
972 with_sdl_prefix
973 with_sdl_exec_prefix
974 enable_sdltest
975 enable_telemetry
976 enable_float
977 enable_encode
978 enable_examples
979 '
980       ac_precious_vars='build_alias
981 host_alias
982 target_alias
983 CC
984 CFLAGS
985 LDFLAGS
986 LIBS
987 CPPFLAGS
988 CPP
989 PKG_CONFIG
990 OGG_CFLAGS
991 OGG_LIBS
992 VORBIS_CFLAGS
993 VORBIS_LIBS
994 PNG_CFLAGS
995 PNG_LIBS
996 CAIRO_CFLAGS
997 CAIRO_LIBS'
998
999
1000 # Initialize some variables set by options.
1001 ac_init_help=
1002 ac_init_version=false
1003 ac_unrecognized_opts=
1004 ac_unrecognized_sep=
1005 # The variables have the same names as the options, with
1006 # dashes changed to underlines.
1007 cache_file=/dev/null
1008 exec_prefix=NONE
1009 no_create=
1010 no_recursion=
1011 prefix=NONE
1012 program_prefix=NONE
1013 program_suffix=NONE
1014 program_transform_name=s,x,x,
1015 silent=
1016 site=
1017 srcdir=
1018 verbose=
1019 x_includes=NONE
1020 x_libraries=NONE
1021
1022 # Installation directory options.
1023 # These are left unexpanded so users can "make install exec_prefix=/foo"
1024 # and all the variables that are supposed to be based on exec_prefix
1025 # by default will actually change.
1026 # Use braces instead of parens because sh, perl, etc. also accept them.
1027 # (The list follows the same order as the GNU Coding Standards.)
1028 bindir='${exec_prefix}/bin'
1029 sbindir='${exec_prefix}/sbin'
1030 libexecdir='${exec_prefix}/libexec'
1031 datarootdir='${prefix}/share'
1032 datadir='${datarootdir}'
1033 sysconfdir='${prefix}/etc'
1034 sharedstatedir='${prefix}/com'
1035 localstatedir='${prefix}/var'
1036 includedir='${prefix}/include'
1037 oldincludedir='/usr/include'
1038 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1039 infodir='${datarootdir}/info'
1040 htmldir='${docdir}'
1041 dvidir='${docdir}'
1042 pdfdir='${docdir}'
1043 psdir='${docdir}'
1044 libdir='${exec_prefix}/lib'
1045 localedir='${datarootdir}/locale'
1046 mandir='${datarootdir}/man'
1047
1048 ac_prev=
1049 ac_dashdash=
1050 for ac_option
1051 do
1052   # If the previous option needs an argument, assign it.
1053   if test -n "$ac_prev"; then
1054     eval $ac_prev=\$ac_option
1055     ac_prev=
1056     continue
1057   fi
1058
1059   case $ac_option in
1060   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1061   *)    ac_optarg=yes ;;
1062   esac
1063
1064   # Accept the important Cygnus configure options, so we can diagnose typos.
1065
1066   case $ac_dashdash$ac_option in
1067   --)
1068     ac_dashdash=yes ;;
1069
1070   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1071     ac_prev=bindir ;;
1072   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1073     bindir=$ac_optarg ;;
1074
1075   -build | --build | --buil | --bui | --bu)
1076     ac_prev=build_alias ;;
1077   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1078     build_alias=$ac_optarg ;;
1079
1080   -cache-file | --cache-file | --cache-fil | --cache-fi \
1081   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1082     ac_prev=cache_file ;;
1083   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1084   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1085     cache_file=$ac_optarg ;;
1086
1087   --config-cache | -C)
1088     cache_file=config.cache ;;
1089
1090   -datadir | --datadir | --datadi | --datad)
1091     ac_prev=datadir ;;
1092   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1093     datadir=$ac_optarg ;;
1094
1095   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1096   | --dataroo | --dataro | --datar)
1097     ac_prev=datarootdir ;;
1098   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1099   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1100     datarootdir=$ac_optarg ;;
1101
1102   -disable-* | --disable-*)
1103     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1104     # Reject names that are not valid shell variable names.
1105     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1107    { (exit 1); exit 1; }; }
1108     ac_useropt_orig=$ac_useropt
1109     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110     case $ac_user_opts in
1111       *"
1112 "enable_$ac_useropt"
1113 "*) ;;
1114       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1115          ac_unrecognized_sep=', ';;
1116     esac
1117     eval enable_$ac_useropt=no ;;
1118
1119   -docdir | --docdir | --docdi | --doc | --do)
1120     ac_prev=docdir ;;
1121   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1122     docdir=$ac_optarg ;;
1123
1124   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1125     ac_prev=dvidir ;;
1126   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1127     dvidir=$ac_optarg ;;
1128
1129   -enable-* | --enable-*)
1130     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1134    { (exit 1); exit 1; }; }
1135     ac_useropt_orig=$ac_useropt
1136     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137     case $ac_user_opts in
1138       *"
1139 "enable_$ac_useropt"
1140 "*) ;;
1141       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1142          ac_unrecognized_sep=', ';;
1143     esac
1144     eval enable_$ac_useropt=\$ac_optarg ;;
1145
1146   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1147   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1148   | --exec | --exe | --ex)
1149     ac_prev=exec_prefix ;;
1150   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1151   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1152   | --exec=* | --exe=* | --ex=*)
1153     exec_prefix=$ac_optarg ;;
1154
1155   -gas | --gas | --ga | --g)
1156     # Obsolete; use --with-gas.
1157     with_gas=yes ;;
1158
1159   -help | --help | --hel | --he | -h)
1160     ac_init_help=long ;;
1161   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1162     ac_init_help=recursive ;;
1163   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1164     ac_init_help=short ;;
1165
1166   -host | --host | --hos | --ho)
1167     ac_prev=host_alias ;;
1168   -host=* | --host=* | --hos=* | --ho=*)
1169     host_alias=$ac_optarg ;;
1170
1171   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1172     ac_prev=htmldir ;;
1173   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1174   | --ht=*)
1175     htmldir=$ac_optarg ;;
1176
1177   -includedir | --includedir | --includedi | --included | --include \
1178   | --includ | --inclu | --incl | --inc)
1179     ac_prev=includedir ;;
1180   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1181   | --includ=* | --inclu=* | --incl=* | --inc=*)
1182     includedir=$ac_optarg ;;
1183
1184   -infodir | --infodir | --infodi | --infod | --info | --inf)
1185     ac_prev=infodir ;;
1186   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1187     infodir=$ac_optarg ;;
1188
1189   -libdir | --libdir | --libdi | --libd)
1190     ac_prev=libdir ;;
1191   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1192     libdir=$ac_optarg ;;
1193
1194   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1195   | --libexe | --libex | --libe)
1196     ac_prev=libexecdir ;;
1197   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1198   | --libexe=* | --libex=* | --libe=*)
1199     libexecdir=$ac_optarg ;;
1200
1201   -localedir | --localedir | --localedi | --localed | --locale)
1202     ac_prev=localedir ;;
1203   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1204     localedir=$ac_optarg ;;
1205
1206   -localstatedir | --localstatedir | --localstatedi | --localstated \
1207   | --localstate | --localstat | --localsta | --localst | --locals)
1208     ac_prev=localstatedir ;;
1209   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1210   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1211     localstatedir=$ac_optarg ;;
1212
1213   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1214     ac_prev=mandir ;;
1215   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1216     mandir=$ac_optarg ;;
1217
1218   -nfp | --nfp | --nf)
1219     # Obsolete; use --without-fp.
1220     with_fp=no ;;
1221
1222   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1223   | --no-cr | --no-c | -n)
1224     no_create=yes ;;
1225
1226   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1227   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1228     no_recursion=yes ;;
1229
1230   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1231   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1232   | --oldin | --oldi | --old | --ol | --o)
1233     ac_prev=oldincludedir ;;
1234   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1235   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1236   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1237     oldincludedir=$ac_optarg ;;
1238
1239   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1240     ac_prev=prefix ;;
1241   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1242     prefix=$ac_optarg ;;
1243
1244   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1245   | --program-pre | --program-pr | --program-p)
1246     ac_prev=program_prefix ;;
1247   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1248   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1249     program_prefix=$ac_optarg ;;
1250
1251   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1252   | --program-suf | --program-su | --program-s)
1253     ac_prev=program_suffix ;;
1254   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1255   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1256     program_suffix=$ac_optarg ;;
1257
1258   -program-transform-name | --program-transform-name \
1259   | --program-transform-nam | --program-transform-na \
1260   | --program-transform-n | --program-transform- \
1261   | --program-transform | --program-transfor \
1262   | --program-transfo | --program-transf \
1263   | --program-trans | --program-tran \
1264   | --progr-tra | --program-tr | --program-t)
1265     ac_prev=program_transform_name ;;
1266   -program-transform-name=* | --program-transform-name=* \
1267   | --program-transform-nam=* | --program-transform-na=* \
1268   | --program-transform-n=* | --program-transform-=* \
1269   | --program-transform=* | --program-transfor=* \
1270   | --program-transfo=* | --program-transf=* \
1271   | --program-trans=* | --program-tran=* \
1272   | --progr-tra=* | --program-tr=* | --program-t=*)
1273     program_transform_name=$ac_optarg ;;
1274
1275   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1276     ac_prev=pdfdir ;;
1277   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1278     pdfdir=$ac_optarg ;;
1279
1280   -psdir | --psdir | --psdi | --psd | --ps)
1281     ac_prev=psdir ;;
1282   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1283     psdir=$ac_optarg ;;
1284
1285   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1286   | -silent | --silent | --silen | --sile | --sil)
1287     silent=yes ;;
1288
1289   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1290     ac_prev=sbindir ;;
1291   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1292   | --sbi=* | --sb=*)
1293     sbindir=$ac_optarg ;;
1294
1295   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1296   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1297   | --sharedst | --shareds | --shared | --share | --shar \
1298   | --sha | --sh)
1299     ac_prev=sharedstatedir ;;
1300   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1301   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1302   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1303   | --sha=* | --sh=*)
1304     sharedstatedir=$ac_optarg ;;
1305
1306   -site | --site | --sit)
1307     ac_prev=site ;;
1308   -site=* | --site=* | --sit=*)
1309     site=$ac_optarg ;;
1310
1311   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1312     ac_prev=srcdir ;;
1313   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1314     srcdir=$ac_optarg ;;
1315
1316   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1317   | --syscon | --sysco | --sysc | --sys | --sy)
1318     ac_prev=sysconfdir ;;
1319   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1320   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1321     sysconfdir=$ac_optarg ;;
1322
1323   -target | --target | --targe | --targ | --tar | --ta | --t)
1324     ac_prev=target_alias ;;
1325   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1326     target_alias=$ac_optarg ;;
1327
1328   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1329     verbose=yes ;;
1330
1331   -version | --version | --versio | --versi | --vers | -V)
1332     ac_init_version=: ;;
1333
1334   -with-* | --with-*)
1335     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1336     # Reject names that are not valid shell variable names.
1337     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1338       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1339    { (exit 1); exit 1; }; }
1340     ac_useropt_orig=$ac_useropt
1341     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342     case $ac_user_opts in
1343       *"
1344 "with_$ac_useropt"
1345 "*) ;;
1346       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1347          ac_unrecognized_sep=', ';;
1348     esac
1349     eval with_$ac_useropt=\$ac_optarg ;;
1350
1351   -without-* | --without-*)
1352     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353     # Reject names that are not valid shell variable names.
1354     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1356    { (exit 1); exit 1; }; }
1357     ac_useropt_orig=$ac_useropt
1358     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359     case $ac_user_opts in
1360       *"
1361 "with_$ac_useropt"
1362 "*) ;;
1363       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1364          ac_unrecognized_sep=', ';;
1365     esac
1366     eval with_$ac_useropt=no ;;
1367
1368   --x)
1369     # Obsolete; use --with-x.
1370     with_x=yes ;;
1371
1372   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1373   | --x-incl | --x-inc | --x-in | --x-i)
1374     ac_prev=x_includes ;;
1375   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1376   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1377     x_includes=$ac_optarg ;;
1378
1379   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1380   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1381     ac_prev=x_libraries ;;
1382   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1383   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1384     x_libraries=$ac_optarg ;;
1385
1386   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1387 Try \`$0 --help' for more information." >&2
1388    { (exit 1); exit 1; }; }
1389     ;;
1390
1391   *=*)
1392     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1393     # Reject names that are not valid shell variable names.
1394     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1395       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1396    { (exit 1); exit 1; }; }
1397     eval $ac_envvar=\$ac_optarg
1398     export $ac_envvar ;;
1399
1400   *)
1401     # FIXME: should be removed in autoconf 3.0.
1402     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1403     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1404       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1405     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1406     ;;
1407
1408   esac
1409 done
1410
1411 if test -n "$ac_prev"; then
1412   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1413   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1414    { (exit 1); exit 1; }; }
1415 fi
1416
1417 if test -n "$ac_unrecognized_opts"; then
1418   case $enable_option_checking in
1419     no) ;;
1420     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1421    { (exit 1); exit 1; }; } ;;
1422     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1423   esac
1424 fi
1425
1426 # Check all directory arguments for consistency.
1427 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1428                 datadir sysconfdir sharedstatedir localstatedir includedir \
1429                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1430                 libdir localedir mandir
1431 do
1432   eval ac_val=\$$ac_var
1433   # Remove trailing slashes.
1434   case $ac_val in
1435     */ )
1436       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1437       eval $ac_var=\$ac_val;;
1438   esac
1439   # Be sure to have absolute directory names.
1440   case $ac_val in
1441     [\\/$]* | ?:[\\/]* )  continue;;
1442     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1443   esac
1444   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1445    { (exit 1); exit 1; }; }
1446 done
1447
1448 # There might be people who depend on the old broken behavior: `$host'
1449 # used to hold the argument of --host etc.
1450 # FIXME: To remove some day.
1451 build=$build_alias
1452 host=$host_alias
1453 target=$target_alias
1454
1455 # FIXME: To remove some day.
1456 if test "x$host_alias" != x; then
1457   if test "x$build_alias" = x; then
1458     cross_compiling=maybe
1459     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1460     If a cross compiler is detected then cross compile mode will be used." >&2
1461   elif test "x$build_alias" != "x$host_alias"; then
1462     cross_compiling=yes
1463   fi
1464 fi
1465
1466 ac_tool_prefix=
1467 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1468
1469 test "$silent" = yes && exec 6>/dev/null
1470
1471
1472 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1473 ac_ls_di=`ls -di .` &&
1474 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1475   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1476    { (exit 1); exit 1; }; }
1477 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1478   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1479    { (exit 1); exit 1; }; }
1480
1481
1482 # Find the source files, if location was not specified.
1483 if test -z "$srcdir"; then
1484   ac_srcdir_defaulted=yes
1485   # Try the directory containing this script, then the parent directory.
1486   ac_confdir=`$as_dirname -- "$as_myself" ||
1487 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1488          X"$as_myself" : 'X\(//\)[^/]' \| \
1489          X"$as_myself" : 'X\(//\)$' \| \
1490          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1491 $as_echo X"$as_myself" |
1492     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1493             s//\1/
1494             q
1495           }
1496           /^X\(\/\/\)[^/].*/{
1497             s//\1/
1498             q
1499           }
1500           /^X\(\/\/\)$/{
1501             s//\1/
1502             q
1503           }
1504           /^X\(\/\).*/{
1505             s//\1/
1506             q
1507           }
1508           s/.*/./; q'`
1509   srcdir=$ac_confdir
1510   if test ! -r "$srcdir/$ac_unique_file"; then
1511     srcdir=..
1512   fi
1513 else
1514   ac_srcdir_defaulted=no
1515 fi
1516 if test ! -r "$srcdir/$ac_unique_file"; then
1517   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1518   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1519    { (exit 1); exit 1; }; }
1520 fi
1521 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1522 ac_abs_confdir=`(
1523         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1524    { (exit 1); exit 1; }; }
1525         pwd)`
1526 # When building in place, set srcdir=.
1527 if test "$ac_abs_confdir" = "$ac_pwd"; then
1528   srcdir=.
1529 fi
1530 # Remove unnecessary trailing slashes from srcdir.
1531 # Double slashes in file names in object file debugging info
1532 # mess up M-x gdb in Emacs.
1533 case $srcdir in
1534 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1535 esac
1536 for ac_var in $ac_precious_vars; do
1537   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1538   eval ac_env_${ac_var}_value=\$${ac_var}
1539   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1540   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1541 done
1542
1543 #
1544 # Report the --help message.
1545 #
1546 if test "$ac_init_help" = "long"; then
1547   # Omit some internal or obsolete options to make the list less imposing.
1548   # This message is too long to be a string in the A/UX 3.1 sh.
1549   cat <<_ACEOF
1550 \`configure' configures libtheora 1.1.1 to adapt to many kinds of systems.
1551
1552 Usage: $0 [OPTION]... [VAR=VALUE]...
1553
1554 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1555 VAR=VALUE.  See below for descriptions of some of the useful variables.
1556
1557 Defaults for the options are specified in brackets.
1558
1559 Configuration:
1560   -h, --help              display this help and exit
1561       --help=short        display options specific to this package
1562       --help=recursive    display the short help of all the included packages
1563   -V, --version           display version information and exit
1564   -q, --quiet, --silent   do not print \`checking...' messages
1565       --cache-file=FILE   cache test results in FILE [disabled]
1566   -C, --config-cache      alias for \`--cache-file=config.cache'
1567   -n, --no-create         do not create output files
1568       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1569
1570 Installation directories:
1571   --prefix=PREFIX         install architecture-independent files in PREFIX
1572                           [$ac_default_prefix]
1573   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1574                           [PREFIX]
1575
1576 By default, \`make install' will install all the files in
1577 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1578 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1579 for instance \`--prefix=\$HOME'.
1580
1581 For better control, use the options below.
1582
1583 Fine tuning of the installation directories:
1584   --bindir=DIR            user executables [EPREFIX/bin]
1585   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1586   --libexecdir=DIR        program executables [EPREFIX/libexec]
1587   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1588   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1589   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1590   --libdir=DIR            object code libraries [EPREFIX/lib]
1591   --includedir=DIR        C header files [PREFIX/include]
1592   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1593   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1594   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1595   --infodir=DIR           info documentation [DATAROOTDIR/info]
1596   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1597   --mandir=DIR            man documentation [DATAROOTDIR/man]
1598   --docdir=DIR            documentation root [DATAROOTDIR/doc/libtheora]
1599   --htmldir=DIR           html documentation [DOCDIR]
1600   --dvidir=DIR            dvi documentation [DOCDIR]
1601   --pdfdir=DIR            pdf documentation [DOCDIR]
1602   --psdir=DIR             ps documentation [DOCDIR]
1603 _ACEOF
1604
1605   cat <<\_ACEOF
1606
1607 Program names:
1608   --program-prefix=PREFIX            prepend PREFIX to installed program names
1609   --program-suffix=SUFFIX            append SUFFIX to installed program names
1610   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1611
1612 System types:
1613   --build=BUILD     configure for building on BUILD [guessed]
1614   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1615   --target=TARGET   configure for building compilers for TARGET [HOST]
1616 _ACEOF
1617 fi
1618
1619 if test -n "$ac_init_help"; then
1620   case $ac_init_help in
1621      short | recursive ) echo "Configuration of libtheora 1.1.1:";;
1622    esac
1623   cat <<\_ACEOF
1624
1625 Optional Features:
1626   --disable-option-checking  ignore unrecognized --enable/--with options
1627   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1628   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1629   --enable-maintainer-mode enable make rules and dependencies not useful
1630                           (and sometimes confusing) to the casual installer
1631   --disable-dependency-tracking Speeds up one-time builds
1632   --enable-dependency-tracking  Do not reject slow dependency extractors
1633   --enable-shared[=PKGS]  build shared libraries [default=yes]
1634   --enable-static[=PKGS]  build static libraries [default=yes]
1635   --enable-fast-install[=PKGS]
1636                           optimize for fast installation [default=yes]
1637   --disable-libtool-lock  avoid locking (might break parallel builds)
1638   --disable-spec          do not build spec
1639   --enable-valgrind-testing     enable running of tests inside Valgrind
1640   --disable-asm           disable assembly optimizations
1641   --disable-oggtest       Do not try to compile and run a test Ogg program
1642   --disable-vorbistest    Do not try to compile and run a test Vorbis program
1643   --disable-sdltest       Do not try to compile and run a test SDL program
1644   --enable-telemetry      enable debugging output controls
1645   --disable-float         disable use of floating point code
1646   --disable-encode        disable encoding support
1647   --disable-examples      disable examples
1648
1649 Optional Packages:
1650   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1651   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1652   --with-pic              try to use only PIC/non-PIC objects [default=use
1653                           both]
1654   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1655   --with-ogg=PFX          Prefix where libogg is installed (optional)
1656   --with-ogg-libraries=DIR
1657                           Directory where libogg library is installed
1658                           (optional)
1659   --with-ogg-includes=DIR Directory where libogg header files are installed
1660                           (optional)
1661   --with-vorbis=PFX   Prefix where libvorbis is installed (optional)
1662   --with-vorbis-libraries=DIR   Directory where libvorbis library is installed (optional)
1663   --with-vorbis-includes=DIR   Directory where libvorbis header files are installed (optional)
1664   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1665   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1666
1667 Some influential environment variables:
1668   CC          C compiler command
1669   CFLAGS      C compiler flags
1670   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1671               nonstandard directory <lib dir>
1672   LIBS        libraries to pass to the linker, e.g. -l<library>
1673   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1674               you have headers in a nonstandard directory <include dir>
1675   CPP         C preprocessor
1676   PKG_CONFIG  path to pkg-config utility
1677   OGG_CFLAGS  C compiler flags for OGG, overriding pkg-config
1678   OGG_LIBS    linker flags for OGG, overriding pkg-config
1679   VORBIS_CFLAGS
1680               C compiler flags for VORBIS, overriding pkg-config
1681   VORBIS_LIBS linker flags for VORBIS, overriding pkg-config
1682   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
1683   PNG_LIBS    linker flags for PNG, overriding pkg-config
1684   CAIRO_CFLAGS
1685               C compiler flags for CAIRO, overriding pkg-config
1686   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1687
1688 Use these variables to override the choices made by `configure' or to help
1689 it to find libraries and programs with nonstandard names/locations.
1690
1691 _ACEOF
1692 ac_status=$?
1693 fi
1694
1695 if test "$ac_init_help" = "recursive"; then
1696   # If there are subdirs, report their specific --help.
1697   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1698     test -d "$ac_dir" ||
1699       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1700       continue
1701     ac_builddir=.
1702
1703 case "$ac_dir" in
1704 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 *)
1706   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1707   # A ".." for each directory in $ac_dir_suffix.
1708   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1709   case $ac_top_builddir_sub in
1710   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1712   esac ;;
1713 esac
1714 ac_abs_top_builddir=$ac_pwd
1715 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1716 # for backward compatibility:
1717 ac_top_builddir=$ac_top_build_prefix
1718
1719 case $srcdir in
1720   .)  # We are building in place.
1721     ac_srcdir=.
1722     ac_top_srcdir=$ac_top_builddir_sub
1723     ac_abs_top_srcdir=$ac_pwd ;;
1724   [\\/]* | ?:[\\/]* )  # Absolute name.
1725     ac_srcdir=$srcdir$ac_dir_suffix;
1726     ac_top_srcdir=$srcdir
1727     ac_abs_top_srcdir=$srcdir ;;
1728   *) # Relative name.
1729     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1730     ac_top_srcdir=$ac_top_build_prefix$srcdir
1731     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1732 esac
1733 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1734
1735     cd "$ac_dir" || { ac_status=$?; continue; }
1736     # Check for guested configure.
1737     if test -f "$ac_srcdir/configure.gnu"; then
1738       echo &&
1739       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1740     elif test -f "$ac_srcdir/configure"; then
1741       echo &&
1742       $SHELL "$ac_srcdir/configure" --help=recursive
1743     else
1744       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1745     fi || ac_status=$?
1746     cd "$ac_pwd" || { ac_status=$?; break; }
1747   done
1748 fi
1749
1750 test -n "$ac_init_help" && exit $ac_status
1751 if $ac_init_version; then
1752   cat <<\_ACEOF
1753 libtheora configure 1.1.1
1754 generated by GNU Autoconf 2.63
1755
1756 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1757 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1758 This configure script is free software; the Free Software Foundation
1759 gives unlimited permission to copy, distribute and modify it.
1760 _ACEOF
1761   exit
1762 fi
1763 cat >config.log <<_ACEOF
1764 This file contains any messages produced by compilers while
1765 running configure, to aid debugging if configure makes a mistake.
1766
1767 It was created by libtheora $as_me 1.1.1, which was
1768 generated by GNU Autoconf 2.63.  Invocation command line was
1769
1770   $ $0 $@
1771
1772 _ACEOF
1773 exec 5>>config.log
1774 {
1775 cat <<_ASUNAME
1776 ## --------- ##
1777 ## Platform. ##
1778 ## --------- ##
1779
1780 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1781 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1782 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1783 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1784 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1785
1786 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1787 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1788
1789 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1790 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1791 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1792 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1793 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1794 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1795 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1796
1797 _ASUNAME
1798
1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800 for as_dir in $PATH
1801 do
1802   IFS=$as_save_IFS
1803   test -z "$as_dir" && as_dir=.
1804   $as_echo "PATH: $as_dir"
1805 done
1806 IFS=$as_save_IFS
1807
1808 } >&5
1809
1810 cat >&5 <<_ACEOF
1811
1812
1813 ## ----------- ##
1814 ## Core tests. ##
1815 ## ----------- ##
1816
1817 _ACEOF
1818
1819
1820 # Keep a trace of the command line.
1821 # Strip out --no-create and --no-recursion so they do not pile up.
1822 # Strip out --silent because we don't want to record it for future runs.
1823 # Also quote any args containing shell meta-characters.
1824 # Make two passes to allow for proper duplicate-argument suppression.
1825 ac_configure_args=
1826 ac_configure_args0=
1827 ac_configure_args1=
1828 ac_must_keep_next=false
1829 for ac_pass in 1 2
1830 do
1831   for ac_arg
1832   do
1833     case $ac_arg in
1834     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1835     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1836     | -silent | --silent | --silen | --sile | --sil)
1837       continue ;;
1838     *\'*)
1839       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1840     esac
1841     case $ac_pass in
1842     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1843     2)
1844       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1845       if test $ac_must_keep_next = true; then
1846         ac_must_keep_next=false # Got value, back to normal.
1847       else
1848         case $ac_arg in
1849           *=* | --config-cache | -C | -disable-* | --disable-* \
1850           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1851           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1852           | -with-* | --with-* | -without-* | --without-* | --x)
1853             case "$ac_configure_args0 " in
1854               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1855             esac
1856             ;;
1857           -* ) ac_must_keep_next=true ;;
1858         esac
1859       fi
1860       ac_configure_args="$ac_configure_args '$ac_arg'"
1861       ;;
1862     esac
1863   done
1864 done
1865 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1866 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1867
1868 # When interrupted or exit'd, cleanup temporary files, and complete
1869 # config.log.  We remove comments because anyway the quotes in there
1870 # would cause problems or look ugly.
1871 # WARNING: Use '\'' to represent an apostrophe within the trap.
1872 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1873 trap 'exit_status=$?
1874   # Save into config.log some information that might help in debugging.
1875   {
1876     echo
1877
1878     cat <<\_ASBOX
1879 ## ---------------- ##
1880 ## Cache variables. ##
1881 ## ---------------- ##
1882 _ASBOX
1883     echo
1884     # The following way of writing the cache mishandles newlines in values,
1885 (
1886   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1887     eval ac_val=\$$ac_var
1888     case $ac_val in #(
1889     *${as_nl}*)
1890       case $ac_var in #(
1891       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1892 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1893       esac
1894       case $ac_var in #(
1895       _ | IFS | as_nl) ;; #(
1896       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1897       *) $as_unset $ac_var ;;
1898       esac ;;
1899     esac
1900   done
1901   (set) 2>&1 |
1902     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1903     *${as_nl}ac_space=\ *)
1904       sed -n \
1905         "s/'\''/'\''\\\\'\'''\''/g;
1906           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1907       ;; #(
1908     *)
1909       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1910       ;;
1911     esac |
1912     sort
1913 )
1914     echo
1915
1916     cat <<\_ASBOX
1917 ## ----------------- ##
1918 ## Output variables. ##
1919 ## ----------------- ##
1920 _ASBOX
1921     echo
1922     for ac_var in $ac_subst_vars
1923     do
1924       eval ac_val=\$$ac_var
1925       case $ac_val in
1926       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1927       esac
1928       $as_echo "$ac_var='\''$ac_val'\''"
1929     done | sort
1930     echo
1931
1932     if test -n "$ac_subst_files"; then
1933       cat <<\_ASBOX
1934 ## ------------------- ##
1935 ## File substitutions. ##
1936 ## ------------------- ##
1937 _ASBOX
1938       echo
1939       for ac_var in $ac_subst_files
1940       do
1941         eval ac_val=\$$ac_var
1942         case $ac_val in
1943         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1944         esac
1945         $as_echo "$ac_var='\''$ac_val'\''"
1946       done | sort
1947       echo
1948     fi
1949
1950     if test -s confdefs.h; then
1951       cat <<\_ASBOX
1952 ## ----------- ##
1953 ## confdefs.h. ##
1954 ## ----------- ##
1955 _ASBOX
1956       echo
1957       cat confdefs.h
1958       echo
1959     fi
1960     test "$ac_signal" != 0 &&
1961       $as_echo "$as_me: caught signal $ac_signal"
1962     $as_echo "$as_me: exit $exit_status"
1963   } >&5
1964   rm -f core *.core core.conftest.* &&
1965     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1966     exit $exit_status
1967 ' 0
1968 for ac_signal in 1 2 13 15; do
1969   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1970 done
1971 ac_signal=0
1972
1973 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1974 rm -f -r conftest* confdefs.h
1975
1976 # Predefined preprocessor variables.
1977
1978 cat >>confdefs.h <<_ACEOF
1979 #define PACKAGE_NAME "$PACKAGE_NAME"
1980 _ACEOF
1981
1982
1983 cat >>confdefs.h <<_ACEOF
1984 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1985 _ACEOF
1986
1987
1988 cat >>confdefs.h <<_ACEOF
1989 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1990 _ACEOF
1991
1992
1993 cat >>confdefs.h <<_ACEOF
1994 #define PACKAGE_STRING "$PACKAGE_STRING"
1995 _ACEOF
1996
1997
1998 cat >>confdefs.h <<_ACEOF
1999 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2000 _ACEOF
2001
2002
2003 # Let the site file select an alternate cache file if it wants to.
2004 # Prefer an explicitly selected file to automatically selected ones.
2005 ac_site_file1=NONE
2006 ac_site_file2=NONE
2007 if test -n "$CONFIG_SITE"; then
2008   ac_site_file1=$CONFIG_SITE
2009 elif test "x$prefix" != xNONE; then
2010   ac_site_file1=$prefix/share/config.site
2011   ac_site_file2=$prefix/etc/config.site
2012 else
2013   ac_site_file1=$ac_default_prefix/share/config.site
2014   ac_site_file2=$ac_default_prefix/etc/config.site
2015 fi
2016 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2017 do
2018   test "x$ac_site_file" = xNONE && continue
2019   if test -r "$ac_site_file"; then
2020     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2021 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2022     sed 's/^/| /' "$ac_site_file" >&5
2023     . "$ac_site_file"
2024   fi
2025 done
2026
2027 if test -r "$cache_file"; then
2028   # Some versions of bash will fail to source /dev/null (special
2029   # files actually), so we avoid doing that.
2030   if test -f "$cache_file"; then
2031     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2032 $as_echo "$as_me: loading cache $cache_file" >&6;}
2033     case $cache_file in
2034       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2035       *)                      . "./$cache_file";;
2036     esac
2037   fi
2038 else
2039   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2040 $as_echo "$as_me: creating cache $cache_file" >&6;}
2041   >$cache_file
2042 fi
2043
2044 # Check that the precious variables saved in the cache have kept the same
2045 # value.
2046 ac_cache_corrupted=false
2047 for ac_var in $ac_precious_vars; do
2048   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2049   eval ac_new_set=\$ac_env_${ac_var}_set
2050   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2051   eval ac_new_val=\$ac_env_${ac_var}_value
2052   case $ac_old_set,$ac_new_set in
2053     set,)
2054       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2055 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2056       ac_cache_corrupted=: ;;
2057     ,set)
2058       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2059 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2060       ac_cache_corrupted=: ;;
2061     ,);;
2062     *)
2063       if test "x$ac_old_val" != "x$ac_new_val"; then
2064         # differences in whitespace do not lead to failure.
2065         ac_old_val_w=`echo x $ac_old_val`
2066         ac_new_val_w=`echo x $ac_new_val`
2067         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2068           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2069 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2070           ac_cache_corrupted=:
2071         else
2072           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2073 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2074           eval $ac_var=\$ac_old_val
2075         fi
2076         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2077 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2078         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2079 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2080       fi;;
2081   esac
2082   # Pass precious variables to config.status.
2083   if test "$ac_new_set" = set; then
2084     case $ac_new_val in
2085     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2086     *) ac_arg=$ac_var=$ac_new_val ;;
2087     esac
2088     case " $ac_configure_args " in
2089       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2090       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2091     esac
2092   fi
2093 done
2094 if $ac_cache_corrupted; then
2095   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2097   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2098 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2099   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2100 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2101    { (exit 1); exit 1; }; }
2102 fi
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128 ac_ext=c
2129 ac_cpp='$CPP $CPPFLAGS'
2130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2133
2134
2135
2136 ac_aux_dir=
2137 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2138   if test -f "$ac_dir/install-sh"; then
2139     ac_aux_dir=$ac_dir
2140     ac_install_sh="$ac_aux_dir/install-sh -c"
2141     break
2142   elif test -f "$ac_dir/install.sh"; then
2143     ac_aux_dir=$ac_dir
2144     ac_install_sh="$ac_aux_dir/install.sh -c"
2145     break
2146   elif test -f "$ac_dir/shtool"; then
2147     ac_aux_dir=$ac_dir
2148     ac_install_sh="$ac_aux_dir/shtool install -c"
2149     break
2150   fi
2151 done
2152 if test -z "$ac_aux_dir"; then
2153   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2154 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2155    { (exit 1); exit 1; }; }
2156 fi
2157
2158 # These three variables are undocumented and unsupported,
2159 # and are intended to be withdrawn in a future Autoconf release.
2160 # They can cause serious problems if a builder's source tree is in a directory
2161 # whose full name contains unusual characters.
2162 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2163 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2164 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2165
2166
2167 # Make sure we can run config.sub.
2168 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2169   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2170 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2171    { (exit 1); exit 1; }; }
2172
2173 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2174 $as_echo_n "checking build system type... " >&6; }
2175 if test "${ac_cv_build+set}" = set; then
2176   $as_echo_n "(cached) " >&6
2177 else
2178   ac_build_alias=$build_alias
2179 test "x$ac_build_alias" = x &&
2180   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2181 test "x$ac_build_alias" = x &&
2182   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2183 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2184    { (exit 1); exit 1; }; }
2185 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2186   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2187 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2188    { (exit 1); exit 1; }; }
2189
2190 fi
2191 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2192 $as_echo "$ac_cv_build" >&6; }
2193 case $ac_cv_build in
2194 *-*-*) ;;
2195 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2196 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2197    { (exit 1); exit 1; }; };;
2198 esac
2199 build=$ac_cv_build
2200 ac_save_IFS=$IFS; IFS='-'
2201 set x $ac_cv_build
2202 shift
2203 build_cpu=$1
2204 build_vendor=$2
2205 shift; shift
2206 # Remember, the first character of IFS is used to create $*,
2207 # except with old shells:
2208 build_os=$*
2209 IFS=$ac_save_IFS
2210 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2211
2212
2213 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2214 $as_echo_n "checking host system type... " >&6; }
2215 if test "${ac_cv_host+set}" = set; then
2216   $as_echo_n "(cached) " >&6
2217 else
2218   if test "x$host_alias" = x; then
2219   ac_cv_host=$ac_cv_build
2220 else
2221   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2222     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2223 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2224    { (exit 1); exit 1; }; }
2225 fi
2226
2227 fi
2228 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2229 $as_echo "$ac_cv_host" >&6; }
2230 case $ac_cv_host in
2231 *-*-*) ;;
2232 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2233 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2234    { (exit 1); exit 1; }; };;
2235 esac
2236 host=$ac_cv_host
2237 ac_save_IFS=$IFS; IFS='-'
2238 set x $ac_cv_host
2239 shift
2240 host_cpu=$1
2241 host_vendor=$2
2242 shift; shift
2243 # Remember, the first character of IFS is used to create $*,
2244 # except with old shells:
2245 host_os=$*
2246 IFS=$ac_save_IFS
2247 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2248
2249
2250 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2251 $as_echo_n "checking target system type... " >&6; }
2252 if test "${ac_cv_target+set}" = set; then
2253   $as_echo_n "(cached) " >&6
2254 else
2255   if test "x$target_alias" = x; then
2256   ac_cv_target=$ac_cv_host
2257 else
2258   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2259     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2260 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2261    { (exit 1); exit 1; }; }
2262 fi
2263
2264 fi
2265 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2266 $as_echo "$ac_cv_target" >&6; }
2267 case $ac_cv_target in
2268 *-*-*) ;;
2269 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2270 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2271    { (exit 1); exit 1; }; };;
2272 esac
2273 target=$ac_cv_target
2274 ac_save_IFS=$IFS; IFS='-'
2275 set x $ac_cv_target
2276 shift
2277 target_cpu=$1
2278 target_vendor=$2
2279 shift; shift
2280 # Remember, the first character of IFS is used to create $*,
2281 # except with old shells:
2282 target_os=$*
2283 IFS=$ac_save_IFS
2284 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2285
2286
2287 # The aliases save the names the user supplied, while $host etc.
2288 # will get canonicalized.
2289 test -n "$target_alias" &&
2290   test "$program_prefix$program_suffix$program_transform_name" = \
2291     NONENONEs,x,x, &&
2292   program_prefix=${target_alias}-
2293
2294 # Add the stamp file to the list of files AC keeps track of,
2295 # along with our hook.
2296 ac_config_headers="$ac_config_headers config.h"
2297
2298
2299
2300
2301 am__api_version="1.6"
2302 # Find a good install program.  We prefer a C program (faster),
2303 # so one script is as good as another.  But avoid the broken or
2304 # incompatible versions:
2305 # SysV /etc/install, /usr/sbin/install
2306 # SunOS /usr/etc/install
2307 # IRIX /sbin/install
2308 # AIX /bin/install
2309 # AmigaOS /C/install, which installs bootblocks on floppy discs
2310 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2311 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2312 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2313 # OS/2's system install, which has a completely different semantic
2314 # ./install, which can be erroneously created by make from ./install.sh.
2315 # Reject install programs that cannot install multiple files.
2316 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2317 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2318 if test -z "$INSTALL"; then
2319 if test "${ac_cv_path_install+set}" = set; then
2320   $as_echo_n "(cached) " >&6
2321 else
2322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 for as_dir in $PATH
2324 do
2325   IFS=$as_save_IFS
2326   test -z "$as_dir" && as_dir=.
2327   # Account for people who put trailing slashes in PATH elements.
2328 case $as_dir/ in
2329   ./ | .// | /cC/* | \
2330   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2331   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2332   /usr/ucb/* ) ;;
2333   *)
2334     # OSF1 and SCO ODT 3.0 have their own names for install.
2335     # Don't use installbsd from OSF since it installs stuff as root
2336     # by default.
2337     for ac_prog in ginstall scoinst install; do
2338       for ac_exec_ext in '' $ac_executable_extensions; do
2339         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2340           if test $ac_prog = install &&
2341             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2342             # AIX install.  It has an incompatible calling convention.
2343             :
2344           elif test $ac_prog = install &&
2345             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2346             # program-specific install script used by HP pwplus--don't use.
2347             :
2348           else
2349             rm -rf conftest.one conftest.two conftest.dir
2350             echo one > conftest.one
2351             echo two > conftest.two
2352             mkdir conftest.dir
2353             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2354               test -s conftest.one && test -s conftest.two &&
2355               test -s conftest.dir/conftest.one &&
2356               test -s conftest.dir/conftest.two
2357             then
2358               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2359               break 3
2360             fi
2361           fi
2362         fi
2363       done
2364     done
2365     ;;
2366 esac
2367
2368 done
2369 IFS=$as_save_IFS
2370
2371 rm -rf conftest.one conftest.two conftest.dir
2372
2373 fi
2374   if test "${ac_cv_path_install+set}" = set; then
2375     INSTALL=$ac_cv_path_install
2376   else
2377     # As a last resort, use the slow shell script.  Don't cache a
2378     # value for INSTALL within a source directory, because that will
2379     # break other packages using the cache if that directory is
2380     # removed, or if the value is a relative name.
2381     INSTALL=$ac_install_sh
2382   fi
2383 fi
2384 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2385 $as_echo "$INSTALL" >&6; }
2386
2387 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2388 # It thinks the first close brace ends the variable substitution.
2389 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2390
2391 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2392
2393 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2394
2395 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2396 $as_echo_n "checking whether build environment is sane... " >&6; }
2397 # Just in case
2398 sleep 1
2399 echo timestamp > conftest.file
2400 # Do `set' in a subshell so we don't clobber the current shell's
2401 # arguments.  Must try -L first in case configure is actually a
2402 # symlink; some systems play weird games with the mod time of symlinks
2403 # (eg FreeBSD returns the mod time of the symlink's containing
2404 # directory).
2405 if (
2406    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2407    if test "$*" = "X"; then
2408       # -L didn't work.
2409       set X `ls -t $srcdir/configure conftest.file`
2410    fi
2411    rm -f conftest.file
2412    if test "$*" != "X $srcdir/configure conftest.file" \
2413       && test "$*" != "X conftest.file $srcdir/configure"; then
2414
2415       # If neither matched, then we have a broken ls.  This can happen
2416       # if, for instance, CONFIG_SHELL is bash and it inherits a
2417       # broken ls alias from the environment.  This has actually
2418       # happened.  Such a system could not be considered "sane".
2419       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2420 alias in your environment" >&5
2421 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2422 alias in your environment" >&2;}
2423    { (exit 1); exit 1; }; }
2424    fi
2425
2426    test "$2" = conftest.file
2427    )
2428 then
2429    # Ok.
2430    :
2431 else
2432    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2433 Check your system clock" >&5
2434 $as_echo "$as_me: error: newly created file is older than distributed files!
2435 Check your system clock" >&2;}
2436    { (exit 1); exit 1; }; }
2437 fi
2438 { $as_echo "$as_me:$LINENO: result: yes" >&5
2439 $as_echo "yes" >&6; }
2440 test "$program_prefix" != NONE &&
2441   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2442 # Use a double $ so make ignores it.
2443 test "$program_suffix" != NONE &&
2444   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2445 # Double any \ or $.
2446 # By default was `s,x,x', remove it if useless.
2447 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2448 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2449
2450
2451 # expand $ac_aux_dir to an absolute path
2452 am_aux_dir=`cd $ac_aux_dir && pwd`
2453
2454 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2455 # Use eval to expand $SHELL
2456 if eval "$MISSING --run true"; then
2457   am_missing_run="$MISSING --run "
2458 else
2459   am_missing_run=
2460   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2461 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2462 fi
2463
2464 for ac_prog in gawk mawk nawk awk
2465 do
2466   # Extract the first word of "$ac_prog", so it can be a program name with args.
2467 set dummy $ac_prog; ac_word=$2
2468 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 $as_echo_n "checking for $ac_word... " >&6; }
2470 if test "${ac_cv_prog_AWK+set}" = set; then
2471   $as_echo_n "(cached) " >&6
2472 else
2473   if test -n "$AWK"; then
2474   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
2479   IFS=$as_save_IFS
2480   test -z "$as_dir" && as_dir=.
2481   for ac_exec_ext in '' $ac_executable_extensions; do
2482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483     ac_cv_prog_AWK="$ac_prog"
2484     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485     break 2
2486   fi
2487 done
2488 done
2489 IFS=$as_save_IFS
2490
2491 fi
2492 fi
2493 AWK=$ac_cv_prog_AWK
2494 if test -n "$AWK"; then
2495   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2496 $as_echo "$AWK" >&6; }
2497 else
2498   { $as_echo "$as_me:$LINENO: result: no" >&5
2499 $as_echo "no" >&6; }
2500 fi
2501
2502
2503   test -n "$AWK" && break
2504 done
2505
2506 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2507 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2508 set x ${MAKE-make}
2509 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2510 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2511   $as_echo_n "(cached) " >&6
2512 else
2513   cat >conftest.make <<\_ACEOF
2514 SHELL = /bin/sh
2515 all:
2516         @echo '@@@%%%=$(MAKE)=@@@%%%'
2517 _ACEOF
2518 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2519 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2520   *@@@%%%=?*=@@@%%%*)
2521     eval ac_cv_prog_make_${ac_make}_set=yes;;
2522   *)
2523     eval ac_cv_prog_make_${ac_make}_set=no;;
2524 esac
2525 rm -f conftest.make
2526 fi
2527 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2528   { $as_echo "$as_me:$LINENO: result: yes" >&5
2529 $as_echo "yes" >&6; }
2530   SET_MAKE=
2531 else
2532   { $as_echo "$as_me:$LINENO: result: no" >&5
2533 $as_echo "no" >&6; }
2534   SET_MAKE="MAKE=${MAKE-make}"
2535 fi
2536
2537  # test to see if srcdir already configured
2538 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2539    test -f $srcdir/config.status; then
2540   { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2541 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2542    { (exit 1); exit 1; }; }
2543 fi
2544
2545 # Define the identity of the package.
2546  PACKAGE=libtheora
2547  VERSION=1.1.1
2548
2549
2550 cat >>confdefs.h <<_ACEOF
2551 #define PACKAGE "$PACKAGE"
2552 _ACEOF
2553
2554
2555 cat >>confdefs.h <<_ACEOF
2556 #define VERSION "$VERSION"
2557 _ACEOF
2558
2559 # Some tools Automake needs.
2560
2561 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2562
2563
2564 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2565
2566
2567 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2568
2569
2570 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2571
2572
2573 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2574
2575
2576 AMTAR=${AMTAR-"${am_missing_run}tar"}
2577
2578 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2579
2580 # Installed binaries are usually stripped using `strip' when the user
2581 # run `make install-strip'.  However `strip' might not be the right
2582 # tool to use in cross-compilation environments, therefore Automake
2583 # will honor the `STRIP' environment variable to overrule this program.
2584 if test "$cross_compiling" != no; then
2585   if test -n "$ac_tool_prefix"; then
2586   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2587 set dummy ${ac_tool_prefix}strip; ac_word=$2
2588 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2589 $as_echo_n "checking for $ac_word... " >&6; }
2590 if test "${ac_cv_prog_STRIP+set}" = set; then
2591   $as_echo_n "(cached) " >&6
2592 else
2593   if test -n "$STRIP"; then
2594   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599   IFS=$as_save_IFS
2600   test -z "$as_dir" && as_dir=.
2601   for ac_exec_ext in '' $ac_executable_extensions; do
2602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2604     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605     break 2
2606   fi
2607 done
2608 done
2609 IFS=$as_save_IFS
2610
2611 fi
2612 fi
2613 STRIP=$ac_cv_prog_STRIP
2614 if test -n "$STRIP"; then
2615   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2616 $as_echo "$STRIP" >&6; }
2617 else
2618   { $as_echo "$as_me:$LINENO: result: no" >&5
2619 $as_echo "no" >&6; }
2620 fi
2621
2622
2623 fi
2624 if test -z "$ac_cv_prog_STRIP"; then
2625   ac_ct_STRIP=$STRIP
2626   # Extract the first word of "strip", so it can be a program name with args.
2627 set dummy strip; ac_word=$2
2628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2631   $as_echo_n "(cached) " >&6
2632 else
2633   if test -n "$ac_ct_STRIP"; then
2634   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2635 else
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639   IFS=$as_save_IFS
2640   test -z "$as_dir" && as_dir=.
2641   for ac_exec_ext in '' $ac_executable_extensions; do
2642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643     ac_cv_prog_ac_ct_STRIP="strip"
2644     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645     break 2
2646   fi
2647 done
2648 done
2649 IFS=$as_save_IFS
2650
2651 fi
2652 fi
2653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2654 if test -n "$ac_ct_STRIP"; then
2655   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2656 $as_echo "$ac_ct_STRIP" >&6; }
2657 else
2658   { $as_echo "$as_me:$LINENO: result: no" >&5
2659 $as_echo "no" >&6; }
2660 fi
2661
2662   if test "x$ac_ct_STRIP" = x; then
2663     STRIP=":"
2664   else
2665     case $cross_compiling:$ac_tool_warned in
2666 yes:)
2667 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2669 ac_tool_warned=yes ;;
2670 esac
2671     STRIP=$ac_ct_STRIP
2672   fi
2673 else
2674   STRIP="$ac_cv_prog_STRIP"
2675 fi
2676
2677 fi
2678 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2679
2680 # We need awk for the "check" target.  The system "awk" is bad on
2681 # some platforms.
2682
2683
2684
2685 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2686 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2687     # Check whether --enable-maintainer-mode was given.
2688 if test "${enable_maintainer_mode+set}" = set; then
2689   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2690 else
2691   USE_MAINTAINER_MODE=no
2692 fi
2693
2694   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2695 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2696
2697
2698 if test $USE_MAINTAINER_MODE = yes; then
2699   MAINTAINER_MODE_TRUE=
2700   MAINTAINER_MODE_FALSE='#'
2701 else
2702   MAINTAINER_MODE_TRUE='#'
2703   MAINTAINER_MODE_FALSE=
2704 fi
2705
2706   MAINT=$MAINTAINER_MODE_TRUE
2707
2708
2709
2710
2711 TH_LIB_CURRENT=3
2712 TH_LIB_REVISION=10
2713 TH_LIB_AGE=3
2714
2715
2716
2717
2718 THDEC_LIB_CURRENT=2
2719 THDEC_LIB_REVISION=4
2720 THDEC_LIB_AGE=1
2721
2722
2723
2724
2725 THENC_LIB_CURRENT=2
2726 THENC_LIB_REVISION=2
2727 THENC_LIB_AGE=1
2728
2729
2730
2731
2732 THEORA_LDFLAGS=""
2733
2734
2735 cflags_save="$CFLAGS"
2736 ac_ext=c
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741 if test -n "$ac_tool_prefix"; then
2742   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2743 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2744 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if test "${ac_cv_prog_CC+set}" = set; then
2747   $as_echo_n "(cached) " >&6
2748 else
2749   if test -n "$CC"; then
2750   ac_cv_prog_CC="$CC" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755   IFS=$as_save_IFS
2756   test -z "$as_dir" && as_dir=.
2757   for ac_exec_ext in '' $ac_executable_extensions; do
2758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2760     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761     break 2
2762   fi
2763 done
2764 done
2765 IFS=$as_save_IFS
2766
2767 fi
2768 fi
2769 CC=$ac_cv_prog_CC
2770 if test -n "$CC"; then
2771   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2772 $as_echo "$CC" >&6; }
2773 else
2774   { $as_echo "$as_me:$LINENO: result: no" >&5
2775 $as_echo "no" >&6; }
2776 fi
2777
2778
2779 fi
2780 if test -z "$ac_cv_prog_CC"; then
2781   ac_ct_CC=$CC
2782   # Extract the first word of "gcc", so it can be a program name with args.
2783 set dummy gcc; ac_word=$2
2784 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2787   $as_echo_n "(cached) " >&6
2788 else
2789   if test -n "$ac_ct_CC"; then
2790   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797   for ac_exec_ext in '' $ac_executable_extensions; do
2798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799     ac_cv_prog_ac_ct_CC="gcc"
2800     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801     break 2
2802   fi
2803 done
2804 done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810 if test -n "$ac_ct_CC"; then
2811   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2812 $as_echo "$ac_ct_CC" >&6; }
2813 else
2814   { $as_echo "$as_me:$LINENO: result: no" >&5
2815 $as_echo "no" >&6; }
2816 fi
2817
2818   if test "x$ac_ct_CC" = x; then
2819     CC=""
2820   else
2821     case $cross_compiling:$ac_tool_warned in
2822 yes:)
2823 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2825 ac_tool_warned=yes ;;
2826 esac
2827     CC=$ac_ct_CC
2828   fi
2829 else
2830   CC="$ac_cv_prog_CC"
2831 fi
2832
2833 if test -z "$CC"; then
2834           if test -n "$ac_tool_prefix"; then
2835     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2836 set dummy ${ac_tool_prefix}cc; ac_word=$2
2837 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if test "${ac_cv_prog_CC+set}" = set; then
2840   $as_echo_n "(cached) " >&6
2841 else
2842   if test -n "$CC"; then
2843   ac_cv_prog_CC="$CC" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848   IFS=$as_save_IFS
2849   test -z "$as_dir" && as_dir=.
2850   for ac_exec_ext in '' $ac_executable_extensions; do
2851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852     ac_cv_prog_CC="${ac_tool_prefix}cc"
2853     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854     break 2
2855   fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 CC=$ac_cv_prog_CC
2863 if test -n "$CC"; then
2864   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2865 $as_echo "$CC" >&6; }
2866 else
2867   { $as_echo "$as_me:$LINENO: result: no" >&5
2868 $as_echo "no" >&6; }
2869 fi
2870
2871
2872   fi
2873 fi
2874 if test -z "$CC"; then
2875   # Extract the first word of "cc", so it can be a program name with args.
2876 set dummy cc; ac_word=$2
2877 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_CC+set}" = set; then
2880   $as_echo_n "(cached) " >&6
2881 else
2882   if test -n "$CC"; then
2883   ac_cv_prog_CC="$CC" # Let the user override the test.
2884 else
2885   ac_prog_rejected=no
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2888 do
2889   IFS=$as_save_IFS
2890   test -z "$as_dir" && as_dir=.
2891   for ac_exec_ext in '' $ac_executable_extensions; do
2892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2894        ac_prog_rejected=yes
2895        continue
2896      fi
2897     ac_cv_prog_CC="cc"
2898     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899     break 2
2900   fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 if test $ac_prog_rejected = yes; then
2906   # We found a bogon in the path, so make sure we never use it.
2907   set dummy $ac_cv_prog_CC
2908   shift
2909   if test $# != 0; then
2910     # We chose a different compiler from the bogus one.
2911     # However, it has the same basename, so the bogon will be chosen
2912     # first if we set CC to just the basename; use the full file name.
2913     shift
2914     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2915   fi
2916 fi
2917 fi
2918 fi
2919 CC=$ac_cv_prog_CC
2920 if test -n "$CC"; then
2921   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2922 $as_echo "$CC" >&6; }
2923 else
2924   { $as_echo "$as_me:$LINENO: result: no" >&5
2925 $as_echo "no" >&6; }
2926 fi
2927
2928
2929 fi
2930 if test -z "$CC"; then
2931   if test -n "$ac_tool_prefix"; then
2932   for ac_prog in cl.exe
2933   do
2934     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2936 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if test "${ac_cv_prog_CC+set}" = set; then
2939   $as_echo_n "(cached) " >&6
2940 else
2941   if test -n "$CC"; then
2942   ac_cv_prog_CC="$CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947   IFS=$as_save_IFS
2948   test -z "$as_dir" && as_dir=.
2949   for ac_exec_ext in '' $ac_executable_extensions; do
2950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2952     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2953     break 2
2954   fi
2955 done
2956 done
2957 IFS=$as_save_IFS
2958
2959 fi
2960 fi
2961 CC=$ac_cv_prog_CC
2962 if test -n "$CC"; then
2963   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2965 else
2966   { $as_echo "$as_me:$LINENO: result: no" >&5
2967 $as_echo "no" >&6; }
2968 fi
2969
2970
2971     test -n "$CC" && break
2972   done
2973 fi
2974 if test -z "$CC"; then
2975   ac_ct_CC=$CC
2976   for ac_prog in cl.exe
2977 do
2978   # Extract the first word of "$ac_prog", so it can be a program name with args.
2979 set dummy $ac_prog; ac_word=$2
2980 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2983   $as_echo_n "(cached) " >&6
2984 else
2985   if test -n "$ac_ct_CC"; then
2986   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991   IFS=$as_save_IFS
2992   test -z "$as_dir" && as_dir=.
2993   for ac_exec_ext in '' $ac_executable_extensions; do
2994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995     ac_cv_prog_ac_ct_CC="$ac_prog"
2996     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997     break 2
2998   fi
2999 done
3000 done
3001 IFS=$as_save_IFS
3002
3003 fi
3004 fi
3005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3006 if test -n "$ac_ct_CC"; then
3007   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3008 $as_echo "$ac_ct_CC" >&6; }
3009 else
3010   { $as_echo "$as_me:$LINENO: result: no" >&5
3011 $as_echo "no" >&6; }
3012 fi
3013
3014
3015   test -n "$ac_ct_CC" && break
3016 done
3017
3018   if test "x$ac_ct_CC" = x; then
3019     CC=""
3020   else
3021     case $cross_compiling:$ac_tool_warned in
3022 yes:)
3023 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3025 ac_tool_warned=yes ;;
3026 esac
3027     CC=$ac_ct_CC
3028   fi
3029 fi
3030
3031 fi
3032
3033
3034 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3036 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3037 See \`config.log' for more details." >&5
3038 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3039 See \`config.log' for more details." >&2;}
3040    { (exit 1); exit 1; }; }; }
3041
3042 # Provide some information about the compiler.
3043 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3044 set X $ac_compile
3045 ac_compiler=$2
3046 { (ac_try="$ac_compiler --version >&5"
3047 case "(($ac_try" in
3048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049   *) ac_try_echo=$ac_try;;
3050 esac
3051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3052 $as_echo "$ac_try_echo") >&5
3053   (eval "$ac_compiler --version >&5") 2>&5
3054   ac_status=$?
3055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); }
3057 { (ac_try="$ac_compiler -v >&5"
3058 case "(($ac_try" in
3059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060   *) ac_try_echo=$ac_try;;
3061 esac
3062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3063 $as_echo "$ac_try_echo") >&5
3064   (eval "$ac_compiler -v >&5") 2>&5
3065   ac_status=$?
3066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }
3068 { (ac_try="$ac_compiler -V >&5"
3069 case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3074 $as_echo "$ac_try_echo") >&5
3075   (eval "$ac_compiler -V >&5") 2>&5
3076   ac_status=$?
3077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); }
3079
3080 cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086
3087 int
3088 main ()
3089 {
3090
3091   ;
3092   return 0;
3093 }
3094 _ACEOF
3095 ac_clean_files_save=$ac_clean_files
3096 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3097 # Try to create an executable without -o first, disregard a.out.
3098 # It will help us diagnose broken compilers, and finding out an intuition
3099 # of exeext.
3100 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3101 $as_echo_n "checking for C compiler default output file name... " >&6; }
3102 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3103
3104 # The possible output files:
3105 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3106
3107 ac_rmfiles=
3108 for ac_file in $ac_files
3109 do
3110   case $ac_file in
3111     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3112     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3113   esac
3114 done
3115 rm -f $ac_rmfiles
3116
3117 if { (ac_try="$ac_link_default"
3118 case "(($ac_try" in
3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120   *) ac_try_echo=$ac_try;;
3121 esac
3122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3123 $as_echo "$ac_try_echo") >&5
3124   (eval "$ac_link_default") 2>&5
3125   ac_status=$?
3126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); }; then
3128   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3129 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3130 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3131 # so that the user can short-circuit this test for compilers unknown to
3132 # Autoconf.
3133 for ac_file in $ac_files ''
3134 do
3135   test -f "$ac_file" || continue
3136   case $ac_file in
3137     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3138         ;;
3139     [ab].out )
3140         # We found the default executable, but exeext='' is most
3141         # certainly right.
3142         break;;
3143     *.* )
3144         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3145         then :; else
3146            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3147         fi
3148         # We set ac_cv_exeext here because the later test for it is not
3149         # safe: cross compilers may not add the suffix if given an `-o'
3150         # argument, so we may need to know it at that point already.
3151         # Even if this section looks crufty: it has the advantage of
3152         # actually working.
3153         break;;
3154     * )
3155         break;;
3156   esac
3157 done
3158 test "$ac_cv_exeext" = no && ac_cv_exeext=
3159
3160 else
3161   ac_file=''
3162 fi
3163
3164 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3165 $as_echo "$ac_file" >&6; }
3166 if test -z "$ac_file"; then
3167   $as_echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
3170 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3172 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3173 See \`config.log' for more details." >&5
3174 $as_echo "$as_me: error: C compiler cannot create executables
3175 See \`config.log' for more details." >&2;}
3176    { (exit 77); exit 77; }; }; }
3177 fi
3178
3179 ac_exeext=$ac_cv_exeext
3180
3181 # Check that the compiler produces executables we can run.  If not, either
3182 # the compiler is broken, or we cross compile.
3183 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3184 $as_echo_n "checking whether the C compiler works... " >&6; }
3185 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3186 # If not cross compiling, check that we can run a simple program.
3187 if test "$cross_compiling" != yes; then
3188   if { ac_try='./$ac_file'
3189   { (case "(($ac_try" in
3190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191   *) ac_try_echo=$ac_try;;
3192 esac
3193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3194 $as_echo "$ac_try_echo") >&5
3195   (eval "$ac_try") 2>&5
3196   ac_status=$?
3197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }; }; then
3199     cross_compiling=no
3200   else
3201     if test "$cross_compiling" = maybe; then
3202         cross_compiling=yes
3203     else
3204         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3207 If you meant to cross compile, use \`--host'.
3208 See \`config.log' for more details." >&5
3209 $as_echo "$as_me: error: cannot run C compiled programs.
3210 If you meant to cross compile, use \`--host'.
3211 See \`config.log' for more details." >&2;}
3212    { (exit 1); exit 1; }; }; }
3213     fi
3214   fi
3215 fi
3216 { $as_echo "$as_me:$LINENO: result: yes" >&5
3217 $as_echo "yes" >&6; }
3218
3219 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3220 ac_clean_files=$ac_clean_files_save
3221 # Check that the compiler produces executables we can run.  If not, either
3222 # the compiler is broken, or we cross compile.
3223 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3224 $as_echo_n "checking whether we are cross compiling... " >&6; }
3225 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3226 $as_echo "$cross_compiling" >&6; }
3227
3228 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3229 $as_echo_n "checking for suffix of executables... " >&6; }
3230 if { (ac_try="$ac_link"
3231 case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3236 $as_echo "$ac_try_echo") >&5
3237   (eval "$ac_link") 2>&5
3238   ac_status=$?
3239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); }; then
3241   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3242 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3243 # work properly (i.e., refer to `conftest.exe'), while it won't with
3244 # `rm'.
3245 for ac_file in conftest.exe conftest conftest.*; do
3246   test -f "$ac_file" || continue
3247   case $ac_file in
3248     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3249     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3250           break;;
3251     * ) break;;
3252   esac
3253 done
3254 else
3255   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3258 See \`config.log' for more details." >&5
3259 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3260 See \`config.log' for more details." >&2;}
3261    { (exit 1); exit 1; }; }; }
3262 fi
3263
3264 rm -f conftest$ac_cv_exeext
3265 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3266 $as_echo "$ac_cv_exeext" >&6; }
3267
3268 rm -f conftest.$ac_ext
3269 EXEEXT=$ac_cv_exeext
3270 ac_exeext=$EXEEXT
3271 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3272 $as_echo_n "checking for suffix of object files... " >&6; }
3273 if test "${ac_cv_objext+set}" = set; then
3274   $as_echo_n "(cached) " >&6
3275 else
3276   cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h.  */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h.  */
3282
3283 int
3284 main ()
3285 {
3286
3287   ;
3288   return 0;
3289 }
3290 _ACEOF
3291 rm -f conftest.o conftest.obj
3292 if { (ac_try="$ac_compile"
3293 case "(($ac_try" in
3294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295   *) ac_try_echo=$ac_try;;
3296 esac
3297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3298 $as_echo "$ac_try_echo") >&5
3299   (eval "$ac_compile") 2>&5
3300   ac_status=$?
3301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); }; then
3303   for ac_file in conftest.o conftest.obj conftest.*; do
3304   test -f "$ac_file" || continue;
3305   case $ac_file in
3306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3307     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3308        break;;
3309   esac
3310 done
3311 else
3312   $as_echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3318 See \`config.log' for more details." >&5
3319 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3320 See \`config.log' for more details." >&2;}
3321    { (exit 1); exit 1; }; }; }
3322 fi
3323
3324 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3325 fi
3326 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3327 $as_echo "$ac_cv_objext" >&6; }
3328 OBJEXT=$ac_cv_objext
3329 ac_objext=$OBJEXT
3330 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3331 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3332 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3333   $as_echo_n "(cached) " >&6
3334 else
3335   cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h.  */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h.  */
3341
3342 int
3343 main ()
3344 {
3345 #ifndef __GNUC__
3346        choke me
3347 #endif
3348
3349   ;
3350   return 0;
3351 }
3352 _ACEOF
3353 rm -f conftest.$ac_objext
3354 if { (ac_try="$ac_compile"
3355 case "(($ac_try" in
3356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357   *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3360 $as_echo "$ac_try_echo") >&5
3361   (eval "$ac_compile") 2>conftest.er1
3362   ac_status=$?
3363   grep -v '^ *+' conftest.er1 >conftest.err
3364   rm -f conftest.er1
3365   cat conftest.err >&5
3366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); } && {
3368          test -z "$ac_c_werror_flag" ||
3369          test ! -s conftest.err
3370        } && test -s conftest.$ac_objext; then
3371   ac_compiler_gnu=yes
3372 else
3373   $as_echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3375
3376         ac_compiler_gnu=no
3377 fi
3378
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3381
3382 fi
3383 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3384 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3385 if test $ac_compiler_gnu = yes; then
3386   GCC=yes
3387 else
3388   GCC=
3389 fi
3390 ac_test_CFLAGS=${CFLAGS+set}
3391 ac_save_CFLAGS=$CFLAGS
3392 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3393 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3394 if test "${ac_cv_prog_cc_g+set}" = set; then
3395   $as_echo_n "(cached) " >&6
3396 else
3397   ac_save_c_werror_flag=$ac_c_werror_flag
3398    ac_c_werror_flag=yes
3399    ac_cv_prog_cc_g=no
3400    CFLAGS="-g"
3401    cat >conftest.$ac_ext <<_ACEOF
3402 /* confdefs.h.  */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h.  */
3407
3408 int
3409 main ()
3410 {
3411
3412   ;
3413   return 0;
3414 }
3415 _ACEOF
3416 rm -f conftest.$ac_objext
3417 if { (ac_try="$ac_compile"
3418 case "(($ac_try" in
3419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420   *) ac_try_echo=$ac_try;;
3421 esac
3422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3423 $as_echo "$ac_try_echo") >&5
3424   (eval "$ac_compile") 2>conftest.er1
3425   ac_status=$?
3426   grep -v '^ *+' conftest.er1 >conftest.err
3427   rm -f conftest.er1
3428   cat conftest.err >&5
3429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); } && {
3431          test -z "$ac_c_werror_flag" ||
3432          test ! -s conftest.err
3433        } && test -s conftest.$ac_objext; then
3434   ac_cv_prog_cc_g=yes
3435 else
3436   $as_echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439         CFLAGS=""
3440       cat >conftest.$ac_ext <<_ACEOF
3441 /* confdefs.h.  */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h.  */
3446
3447 int
3448 main ()
3449 {
3450
3451   ;
3452   return 0;
3453 }
3454 _ACEOF
3455 rm -f conftest.$ac_objext
3456 if { (ac_try="$ac_compile"
3457 case "(($ac_try" in
3458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459   *) ac_try_echo=$ac_try;;
3460 esac
3461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3462 $as_echo "$ac_try_echo") >&5
3463   (eval "$ac_compile") 2>conftest.er1
3464   ac_status=$?
3465   grep -v '^ *+' conftest.er1 >conftest.err
3466   rm -f conftest.er1
3467   cat conftest.err >&5
3468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469   (exit $ac_status); } && {
3470          test -z "$ac_c_werror_flag" ||
3471          test ! -s conftest.err
3472        } && test -s conftest.$ac_objext; then
3473   :
3474 else
3475   $as_echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478         ac_c_werror_flag=$ac_save_c_werror_flag
3479          CFLAGS="-g"
3480          cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h.  */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h.  */
3486
3487 int
3488 main ()
3489 {
3490
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 rm -f conftest.$ac_objext
3496 if { (ac_try="$ac_compile"
3497 case "(($ac_try" in
3498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499   *) ac_try_echo=$ac_try;;
3500 esac
3501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3502 $as_echo "$ac_try_echo") >&5
3503   (eval "$ac_compile") 2>conftest.er1
3504   ac_status=$?
3505   grep -v '^ *+' conftest.er1 >conftest.err
3506   rm -f conftest.er1
3507   cat conftest.err >&5
3508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509   (exit $ac_status); } && {
3510          test -z "$ac_c_werror_flag" ||
3511          test ! -s conftest.err
3512        } && test -s conftest.$ac_objext; then
3513   ac_cv_prog_cc_g=yes
3514 else
3515   $as_echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518
3519 fi
3520
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 fi
3523
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525 fi
3526
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528    ac_c_werror_flag=$ac_save_c_werror_flag
3529 fi
3530 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3531 $as_echo "$ac_cv_prog_cc_g" >&6; }
3532 if test "$ac_test_CFLAGS" = set; then
3533   CFLAGS=$ac_save_CFLAGS
3534 elif test $ac_cv_prog_cc_g = yes; then
3535   if test "$GCC" = yes; then
3536     CFLAGS="-g -O2"
3537   else
3538     CFLAGS="-g"
3539   fi
3540 else
3541   if test "$GCC" = yes; then
3542     CFLAGS="-O2"
3543   else
3544     CFLAGS=
3545   fi
3546 fi
3547 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3548 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3549 if test "${ac_cv_prog_cc_c89+set}" = set; then
3550   $as_echo_n "(cached) " >&6
3551 else
3552   ac_cv_prog_cc_c89=no
3553 ac_save_CC=$CC
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h.  */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h.  */
3560 #include <stdarg.h>
3561 #include <stdio.h>
3562 #include <sys/types.h>
3563 #include <sys/stat.h>
3564 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3565 struct buf { int x; };
3566 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3567 static char *e (p, i)
3568      char **p;
3569      int i;
3570 {
3571   return p[i];
3572 }
3573 static char *f (char * (*g) (char **, int), char **p, ...)
3574 {
3575   char *s;
3576   va_list v;
3577   va_start (v,p);
3578   s = g (p, va_arg (v,int));
3579   va_end (v);
3580   return s;
3581 }
3582
3583 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3584    function prototypes and stuff, but not '\xHH' hex character constants.
3585    These don't provoke an error unfortunately, instead are silently treated
3586    as 'x'.  The following induces an error, until -std is added to get
3587    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3588    array size at least.  It's necessary to write '\x00'==0 to get something
3589    that's true only with -std.  */
3590 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3591
3592 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3593    inside strings and character constants.  */
3594 #define FOO(x) 'x'
3595 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3596
3597 int test (int i, double x);
3598 struct s1 {int (*f) (int a);};
3599 struct s2 {int (*f) (double a);};
3600 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3601 int argc;
3602 char **argv;
3603 int
3604 main ()
3605 {
3606 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3607   ;
3608   return 0;
3609 }
3610 _ACEOF
3611 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3612         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3613 do
3614   CC="$ac_save_CC $ac_arg"
3615   rm -f conftest.$ac_objext
3616 if { (ac_try="$ac_compile"
3617 case "(($ac_try" in
3618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619   *) ac_try_echo=$ac_try;;
3620 esac
3621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3622 $as_echo "$ac_try_echo") >&5
3623   (eval "$ac_compile") 2>conftest.er1
3624   ac_status=$?
3625   grep -v '^ *+' conftest.er1 >conftest.err
3626   rm -f conftest.er1
3627   cat conftest.err >&5
3628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); } && {
3630          test -z "$ac_c_werror_flag" ||
3631          test ! -s conftest.err
3632        } && test -s conftest.$ac_objext; then
3633   ac_cv_prog_cc_c89=$ac_arg
3634 else
3635   $as_echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3637
3638
3639 fi
3640
3641 rm -f core conftest.err conftest.$ac_objext
3642   test "x$ac_cv_prog_cc_c89" != "xno" && break
3643 done
3644 rm -f conftest.$ac_ext
3645 CC=$ac_save_CC
3646
3647 fi
3648 # AC_CACHE_VAL
3649 case "x$ac_cv_prog_cc_c89" in
3650   x)
3651     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3652 $as_echo "none needed" >&6; } ;;
3653   xno)
3654     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3655 $as_echo "unsupported" >&6; } ;;
3656   *)
3657     CC="$CC $ac_cv_prog_cc_c89"
3658     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3659 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3660 esac
3661
3662
3663 ac_ext=c
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668 rm -f .deps 2>/dev/null
3669 mkdir .deps 2>/dev/null
3670 if test -d .deps; then
3671   DEPDIR=.deps
3672 else
3673   # MS-DOS does not allow filenames that begin with a dot.
3674   DEPDIR=_deps
3675 fi
3676 rmdir .deps 2>/dev/null
3677
3678
3679 ac_config_commands="$ac_config_commands depfiles"
3680
3681
3682 am_make=${MAKE-make}
3683 cat > confinc << 'END'
3684 doit:
3685         @echo done
3686 END
3687 # If we don't find an include directive, just comment out the code.
3688 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3689 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3690 am__include="#"
3691 am__quote=
3692 _am_result=none
3693 # First try GNU make style include.
3694 echo "include confinc" > confmf
3695 # We grep out `Entering directory' and `Leaving directory'
3696 # messages which can occur if `w' ends up in MAKEFLAGS.
3697 # In particular we don't look at `^make:' because GNU make might
3698 # be invoked under some other name (usually "gmake"), in which
3699 # case it prints its new name instead of `make'.
3700 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
3701    am__include=include
3702    am__quote=
3703    _am_result=GNU
3704 fi
3705 # Now try BSD make style include.
3706 if test "$am__include" = "#"; then
3707    echo '.include "confinc"' > confmf
3708    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3709       am__include=.include
3710       am__quote="\""
3711       _am_result=BSD
3712    fi
3713 fi
3714
3715
3716 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3717 $as_echo "$_am_result" >&6; }
3718 rm -f confinc confmf
3719
3720 # Check whether --enable-dependency-tracking was given.
3721 if test "${enable_dependency_tracking+set}" = set; then
3722   enableval=$enable_dependency_tracking;
3723 fi
3724
3725 if test "x$enable_dependency_tracking" != xno; then
3726   am_depcomp="$ac_aux_dir/depcomp"
3727   AMDEPBACKSLASH='\'
3728 fi
3729
3730
3731 if test "x$enable_dependency_tracking" != xno; then
3732   AMDEP_TRUE=
3733   AMDEP_FALSE='#'
3734 else
3735   AMDEP_TRUE='#'
3736   AMDEP_FALSE=
3737 fi
3738
3739
3740
3741
3742 depcc="$CC"   am_compiler_list=
3743
3744 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3745 $as_echo_n "checking dependency style of $depcc... " >&6; }
3746 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3747   $as_echo_n "(cached) " >&6
3748 else
3749   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3750   # We make a subdir and do the tests there.  Otherwise we can end up
3751   # making bogus files that we don't know about and never remove.  For
3752   # instance it was reported that on HP-UX the gcc test will end up
3753   # making a dummy file named `D' -- because `-MD' means `put the output
3754   # in D'.
3755   mkdir conftest.dir
3756   # Copy depcomp to subdir because otherwise we won't find it if we're
3757   # using a relative directory.
3758   cp "$am_depcomp" conftest.dir
3759   cd conftest.dir
3760
3761   am_cv_CC_dependencies_compiler_type=none
3762   if test "$am_compiler_list" = ""; then
3763      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3764   fi
3765   for depmode in $am_compiler_list; do
3766     # We need to recreate these files for each test, as the compiler may
3767     # overwrite some of them when testing with obscure command lines.
3768     # This happens at least with the AIX C compiler.
3769     echo '#include "conftest.h"' > conftest.c
3770     echo 'int i;' > conftest.h
3771     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3772
3773     case $depmode in
3774     nosideeffect)
3775       # after this tag, mechanisms are not by side-effect, so they'll
3776       # only be used when explicitly requested
3777       if test "x$enable_dependency_tracking" = xyes; then
3778         continue
3779       else
3780         break
3781       fi
3782       ;;
3783     none) break ;;
3784     esac
3785     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3786     # mode.  It turns out that the SunPro C++ compiler does not properly
3787     # handle `-M -o', and we need to detect this.
3788     if depmode=$depmode \
3789        source=conftest.c object=conftest.o \
3790        depfile=conftest.Po tmpdepfile=conftest.TPo \
3791        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3792        grep conftest.h conftest.Po > /dev/null 2>&1 &&
3793        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3794       am_cv_CC_dependencies_compiler_type=$depmode
3795       break
3796     fi
3797   done
3798
3799   cd ..
3800   rm -rf conftest.dir
3801 else
3802   am_cv_CC_dependencies_compiler_type=none
3803 fi
3804
3805 fi
3806 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3807 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3808 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3809
3810
3811 ac_ext=c
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3817 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3818 # On Suns, sometimes $CPP names a directory.
3819 if test -n "$CPP" && test -d "$CPP"; then
3820   CPP=
3821 fi
3822 if test -z "$CPP"; then
3823   if test "${ac_cv_prog_CPP+set}" = set; then
3824   $as_echo_n "(cached) " >&6
3825 else
3826       # Double quotes because CPP needs to be expanded
3827     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3828     do
3829       ac_preproc_ok=false
3830 for ac_c_preproc_warn_flag in '' yes
3831 do
3832   # Use a header file that comes with gcc, so configuring glibc
3833   # with a fresh cross-compiler works.
3834   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3835   # <limits.h> exists even on freestanding compilers.
3836   # On the NeXT, cc -E runs the code through the compiler's parser,
3837   # not just through cpp. "Syntax error" is here to catch this case.
3838   cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h.  */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h.  */
3844 #ifdef __STDC__
3845 # include <limits.h>
3846 #else
3847 # include <assert.h>
3848 #endif
3849                      Syntax error
3850 _ACEOF
3851 if { (ac_try="$ac_cpp conftest.$ac_ext"
3852 case "(($ac_try" in
3853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854   *) ac_try_echo=$ac_try;;
3855 esac
3856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3857 $as_echo "$ac_try_echo") >&5
3858   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3859   ac_status=$?
3860   grep -v '^ *+' conftest.er1 >conftest.err
3861   rm -f conftest.er1
3862   cat conftest.err >&5
3863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864   (exit $ac_status); } >/dev/null && {
3865          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3866          test ! -s conftest.err
3867        }; then
3868   :
3869 else
3870   $as_echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3872
3873   # Broken: fails on valid input.
3874 continue
3875 fi
3876
3877 rm -f conftest.err conftest.$ac_ext
3878
3879   # OK, works on sane cases.  Now check whether nonexistent headers
3880   # can be detected and how.
3881   cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h.  */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h.  */
3887 #include <ac_nonexistent.h>
3888 _ACEOF
3889 if { (ac_try="$ac_cpp conftest.$ac_ext"
3890 case "(($ac_try" in
3891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892   *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3897   ac_status=$?
3898   grep -v '^ *+' conftest.er1 >conftest.err
3899   rm -f conftest.er1
3900   cat conftest.err >&5
3901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); } >/dev/null && {
3903          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3904          test ! -s conftest.err
3905        }; then
3906   # Broken: success on invalid input.
3907 continue
3908 else
3909   $as_echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3911
3912   # Passes both tests.
3913 ac_preproc_ok=:
3914 break
3915 fi
3916
3917 rm -f conftest.err conftest.$ac_ext
3918
3919 done
3920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3921 rm -f conftest.err conftest.$ac_ext
3922 if $ac_preproc_ok; then
3923   break
3924 fi
3925
3926     done
3927     ac_cv_prog_CPP=$CPP
3928
3929 fi
3930   CPP=$ac_cv_prog_CPP
3931 else
3932   ac_cv_prog_CPP=$CPP
3933 fi
3934 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3935 $as_echo "$CPP" >&6; }
3936 ac_preproc_ok=false
3937 for ac_c_preproc_warn_flag in '' yes
3938 do
3939   # Use a header file that comes with gcc, so configuring glibc
3940   # with a fresh cross-compiler works.
3941   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3942   # <limits.h> exists even on freestanding compilers.
3943   # On the NeXT, cc -E runs the code through the compiler's parser,
3944   # not just through cpp. "Syntax error" is here to catch this case.
3945   cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h.  */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h.  */
3951 #ifdef __STDC__
3952 # include <limits.h>
3953 #else
3954 # include <assert.h>
3955 #endif
3956                      Syntax error
3957 _ACEOF
3958 if { (ac_try="$ac_cpp conftest.$ac_ext"
3959 case "(($ac_try" in
3960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961   *) ac_try_echo=$ac_try;;
3962 esac
3963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3964 $as_echo "$ac_try_echo") >&5
3965   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3966   ac_status=$?
3967   grep -v '^ *+' conftest.er1 >conftest.err
3968   rm -f conftest.er1
3969   cat conftest.err >&5
3970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } >/dev/null && {
3972          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3973          test ! -s conftest.err
3974        }; then
3975   :
3976 else
3977   $as_echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3979
3980   # Broken: fails on valid input.
3981 continue
3982 fi
3983
3984 rm -f conftest.err conftest.$ac_ext
3985
3986   # OK, works on sane cases.  Now check whether nonexistent headers
3987   # can be detected and how.
3988   cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h.  */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h.  */
3994 #include <ac_nonexistent.h>
3995 _ACEOF
3996 if { (ac_try="$ac_cpp conftest.$ac_ext"
3997 case "(($ac_try" in
3998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999   *) ac_try_echo=$ac_try;;
4000 esac
4001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4002 $as_echo "$ac_try_echo") >&5
4003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4004   ac_status=$?
4005   grep -v '^ *+' conftest.er1 >conftest.err
4006   rm -f conftest.er1
4007   cat conftest.err >&5
4008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009   (exit $ac_status); } >/dev/null && {
4010          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4011          test ! -s conftest.err
4012        }; then
4013   # Broken: success on invalid input.
4014 continue
4015 else
4016   $as_echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4018
4019   # Passes both tests.
4020 ac_preproc_ok=:
4021 break
4022 fi
4023
4024 rm -f conftest.err conftest.$ac_ext
4025
4026 done
4027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4028 rm -f conftest.err conftest.$ac_ext
4029 if $ac_preproc_ok; then
4030   :
4031 else
4032   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4035 See \`config.log' for more details." >&5
4036 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4037 See \`config.log' for more details." >&2;}
4038    { (exit 1); exit 1; }; }; }
4039 fi
4040
4041 ac_ext=c
4042 ac_cpp='$CPP $CPPFLAGS'
4043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046
4047 CFLAGS="$cflags_save"
4048
4049 if test "x$CC" != xcc; then
4050   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4051 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4052 else
4053   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4054 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4055 fi
4056 set dummy $CC; ac_cc=`$as_echo "$2" |
4057                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4058 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4059   $as_echo_n "(cached) " >&6
4060 else
4061   cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h.  */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h.  */
4067
4068 int
4069 main ()
4070 {
4071
4072   ;
4073   return 0;
4074 }
4075 _ACEOF
4076 # Make sure it works both with $CC and with simple cc.
4077 # We do the test twice because some compilers refuse to overwrite an
4078 # existing .o file with -o, though they will create one.
4079 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4080 rm -f conftest2.*
4081 if { (case "(($ac_try" in
4082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083   *) ac_try_echo=$ac_try;;
4084 esac
4085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4086 $as_echo "$ac_try_echo") >&5
4087   (eval "$ac_try") 2>&5
4088   ac_status=$?
4089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); } &&
4091    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093   *) ac_try_echo=$ac_try;;
4094 esac
4095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4096 $as_echo "$ac_try_echo") >&5
4097   (eval "$ac_try") 2>&5
4098   ac_status=$?
4099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); };
4101 then
4102   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4103   if test "x$CC" != xcc; then
4104     # Test first that cc exists at all.
4105     if { ac_try='cc -c conftest.$ac_ext >&5'
4106   { (case "(($ac_try" in
4107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108   *) ac_try_echo=$ac_try;;
4109 esac
4110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4111 $as_echo "$ac_try_echo") >&5
4112   (eval "$ac_try") 2>&5
4113   ac_status=$?
4114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115   (exit $ac_status); }; }; then
4116       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4117       rm -f conftest2.*
4118       if { (case "(($ac_try" in
4119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120   *) ac_try_echo=$ac_try;;
4121 esac
4122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4123 $as_echo "$ac_try_echo") >&5
4124   (eval "$ac_try") 2>&5
4125   ac_status=$?
4126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); } &&
4128          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130   *) ac_try_echo=$ac_try;;
4131 esac
4132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4133 $as_echo "$ac_try_echo") >&5
4134   (eval "$ac_try") 2>&5
4135   ac_status=$?
4136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); };
4138       then
4139         # cc works too.
4140         :
4141       else
4142         # cc exists but doesn't like -o.
4143         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4144       fi
4145     fi
4146   fi
4147 else
4148   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4149 fi
4150 rm -f core conftest*
4151
4152 fi
4153 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4154   { $as_echo "$as_me:$LINENO: result: yes" >&5
4155 $as_echo "yes" >&6; }
4156 else
4157   { $as_echo "$as_me:$LINENO: result: no" >&5
4158 $as_echo "no" >&6; }
4159
4160 cat >>confdefs.h <<\_ACEOF
4161 #define NO_MINUS_C_MINUS_O 1
4162 _ACEOF
4163
4164 fi
4165
4166 # FIXME: we rely on the cache variable name because
4167 # there is no other way.
4168 set dummy $CC
4169 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4170 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4171    # Losing compiler, so override with the script.
4172    # FIXME: It is wrong to rewrite CC.
4173    # But if we don't then we get into trouble of one sort or another.
4174    # A longer-term fix would be to have automake use am__CC in this case,
4175    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4176    CC="$am_aux_dir/compile $CC"
4177 fi
4178
4179 enable_win32_dll=yes
4180
4181 case $host in
4182 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4183   if test -n "$ac_tool_prefix"; then
4184   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4185 set dummy ${ac_tool_prefix}as; ac_word=$2
4186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 $as_echo_n "checking for $ac_word... " >&6; }
4188 if test "${ac_cv_prog_AS+set}" = set; then
4189   $as_echo_n "(cached) " >&6
4190 else
4191   if test -n "$AS"; then
4192   ac_cv_prog_AS="$AS" # Let the user override the test.
4193 else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4196 do
4197   IFS=$as_save_IFS
4198   test -z "$as_dir" && as_dir=.
4199   for ac_exec_ext in '' $ac_executable_extensions; do
4200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4201     ac_cv_prog_AS="${ac_tool_prefix}as"
4202     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203     break 2
4204   fi
4205 done
4206 done
4207 IFS=$as_save_IFS
4208
4209 fi
4210 fi
4211 AS=$ac_cv_prog_AS
4212 if test -n "$AS"; then
4213   { $as_echo "$as_me:$LINENO: result: $AS" >&5
4214 $as_echo "$AS" >&6; }
4215 else
4216   { $as_echo "$as_me:$LINENO: result: no" >&5
4217 $as_echo "no" >&6; }
4218 fi
4219
4220
4221 fi
4222 if test -z "$ac_cv_prog_AS"; then
4223   ac_ct_AS=$AS
4224   # Extract the first word of "as", so it can be a program name with args.
4225 set dummy as; ac_word=$2
4226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4229   $as_echo_n "(cached) " >&6
4230 else
4231   if test -n "$ac_ct_AS"; then
4232   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4236 do
4237   IFS=$as_save_IFS
4238   test -z "$as_dir" && as_dir=.
4239   for ac_exec_ext in '' $ac_executable_extensions; do
4240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241     ac_cv_prog_ac_ct_AS="as"
4242     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4243     break 2
4244   fi
4245 done
4246 done
4247 IFS=$as_save_IFS
4248
4249 fi
4250 fi
4251 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4252 if test -n "$ac_ct_AS"; then
4253   { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4254 $as_echo "$ac_ct_AS" >&6; }
4255 else
4256   { $as_echo "$as_me:$LINENO: result: no" >&5
4257 $as_echo "no" >&6; }
4258 fi
4259
4260   if test "x$ac_ct_AS" = x; then
4261     AS="false"
4262   else
4263     case $cross_compiling:$ac_tool_warned in
4264 yes:)
4265 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4267 ac_tool_warned=yes ;;
4268 esac
4269     AS=$ac_ct_AS
4270   fi
4271 else
4272   AS="$ac_cv_prog_AS"
4273 fi
4274
4275   if test -n "$ac_tool_prefix"; then
4276   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4277 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4279 $as_echo_n "checking for $ac_word... " >&6; }
4280 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4281   $as_echo_n "(cached) " >&6
4282 else
4283   if test -n "$DLLTOOL"; then
4284   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4285 else
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4288 do
4289   IFS=$as_save_IFS
4290   test -z "$as_dir" && as_dir=.
4291   for ac_exec_ext in '' $ac_executable_extensions; do
4292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4294     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295     break 2
4296   fi
4297 done
4298 done
4299 IFS=$as_save_IFS
4300
4301 fi
4302 fi
4303 DLLTOOL=$ac_cv_prog_DLLTOOL
4304 if test -n "$DLLTOOL"; then
4305   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4306 $as_echo "$DLLTOOL" >&6; }
4307 else
4308   { $as_echo "$as_me:$LINENO: result: no" >&5
4309 $as_echo "no" >&6; }
4310 fi
4311
4312
4313 fi
4314 if test -z "$ac_cv_prog_DLLTOOL"; then
4315   ac_ct_DLLTOOL=$DLLTOOL
4316   # Extract the first word of "dlltool", so it can be a program name with args.
4317 set dummy dlltool; ac_word=$2
4318 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 $as_echo_n "checking for $ac_word... " >&6; }
4320 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4321   $as_echo_n "(cached) " >&6
4322 else
4323   if test -n "$ac_ct_DLLTOOL"; then
4324   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329   IFS=$as_save_IFS
4330   test -z "$as_dir" && as_dir=.
4331   for ac_exec_ext in '' $ac_executable_extensions; do
4332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4334     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335     break 2
4336   fi
4337 done
4338 done
4339 IFS=$as_save_IFS
4340
4341 fi
4342 fi
4343 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4344 if test -n "$ac_ct_DLLTOOL"; then
4345   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4346 $as_echo "$ac_ct_DLLTOOL" >&6; }
4347 else
4348   { $as_echo "$as_me:$LINENO: result: no" >&5
4349 $as_echo "no" >&6; }
4350 fi
4351
4352   if test "x$ac_ct_DLLTOOL" = x; then
4353     DLLTOOL="false"
4354   else
4355     case $cross_compiling:$ac_tool_warned in
4356 yes:)
4357 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4359 ac_tool_warned=yes ;;
4360 esac
4361     DLLTOOL=$ac_ct_DLLTOOL
4362   fi
4363 else
4364   DLLTOOL="$ac_cv_prog_DLLTOOL"
4365 fi
4366
4367   if test -n "$ac_tool_prefix"; then
4368   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4369 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 $as_echo_n "checking for $ac_word... " >&6; }
4372 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4373   $as_echo_n "(cached) " >&6
4374 else
4375   if test -n "$OBJDUMP"; then
4376   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4377 else
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4380 do
4381   IFS=$as_save_IFS
4382   test -z "$as_dir" && as_dir=.
4383   for ac_exec_ext in '' $ac_executable_extensions; do
4384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4385     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4386     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387     break 2
4388   fi
4389 done
4390 done
4391 IFS=$as_save_IFS
4392
4393 fi
4394 fi
4395 OBJDUMP=$ac_cv_prog_OBJDUMP
4396 if test -n "$OBJDUMP"; then
4397   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4398 $as_echo "$OBJDUMP" >&6; }
4399 else
4400   { $as_echo "$as_me:$LINENO: result: no" >&5
4401 $as_echo "no" >&6; }
4402 fi
4403
4404
4405 fi
4406 if test -z "$ac_cv_prog_OBJDUMP"; then
4407   ac_ct_OBJDUMP=$OBJDUMP
4408   # Extract the first word of "objdump", so it can be a program name with args.
4409 set dummy objdump; ac_word=$2
4410 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 $as_echo_n "checking for $ac_word... " >&6; }
4412 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4413   $as_echo_n "(cached) " >&6
4414 else
4415   if test -n "$ac_ct_OBJDUMP"; then
4416   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421   IFS=$as_save_IFS
4422   test -z "$as_dir" && as_dir=.
4423   for ac_exec_ext in '' $ac_executable_extensions; do
4424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4426     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427     break 2
4428   fi
4429 done
4430 done
4431 IFS=$as_save_IFS
4432
4433 fi
4434 fi
4435 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4436 if test -n "$ac_ct_OBJDUMP"; then
4437   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4438 $as_echo "$ac_ct_OBJDUMP" >&6; }
4439 else
4440   { $as_echo "$as_me:$LINENO: result: no" >&5
4441 $as_echo "no" >&6; }
4442 fi
4443
4444   if test "x$ac_ct_OBJDUMP" = x; then
4445     OBJDUMP="false"
4446   else
4447     case $cross_compiling:$ac_tool_warned in
4448 yes:)
4449 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4451 ac_tool_warned=yes ;;
4452 esac
4453     OBJDUMP=$ac_ct_OBJDUMP
4454   fi
4455 else
4456   OBJDUMP="$ac_cv_prog_OBJDUMP"
4457 fi
4458
4459   ;;
4460 esac
4461
4462 test -z "$AS" && AS=as
4463
4464
4465
4466
4467
4468 test -z "$DLLTOOL" && DLLTOOL=dlltool
4469
4470
4471
4472
4473
4474 test -z "$OBJDUMP" && OBJDUMP=objdump
4475
4476
4477
4478
4479
4480
4481
4482 case `pwd` in
4483   *\ * | *\     *)
4484     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4485 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4486 esac
4487
4488
4489
4490 macro_version='2.2.6'
4491 macro_revision='1.3012'
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505 ltmain="$ac_aux_dir/ltmain.sh"
4506
4507 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4508 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4509 if test "${ac_cv_path_SED+set}" = set; then
4510   $as_echo_n "(cached) " >&6
4511 else
4512             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4513      for ac_i in 1 2 3 4 5 6 7; do
4514        ac_script="$ac_script$as_nl$ac_script"
4515      done
4516      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4517      $as_unset ac_script || ac_script=
4518      if test -z "$SED"; then
4519   ac_path_SED_found=false
4520   # Loop through the user's path and test for each of PROGNAME-LIST
4521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524   IFS=$as_save_IFS
4525   test -z "$as_dir" && as_dir=.
4526   for ac_prog in sed gsed; do
4527     for ac_exec_ext in '' $ac_executable_extensions; do
4528       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4529       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4530 # Check for GNU ac_path_SED and select it if it is found.
4531   # Check for GNU $ac_path_SED
4532 case `"$ac_path_SED" --version 2>&1` in
4533 *GNU*)
4534   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4535 *)
4536   ac_count=0
4537   $as_echo_n 0123456789 >"conftest.in"
4538   while :
4539   do
4540     cat "conftest.in" "conftest.in" >"conftest.tmp"
4541     mv "conftest.tmp" "conftest.in"
4542     cp "conftest.in" "conftest.nl"
4543     $as_echo '' >> "conftest.nl"
4544     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4545     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4546     ac_count=`expr $ac_count + 1`
4547     if test $ac_count -gt ${ac_path_SED_max-0}; then
4548       # Best one so far, save it but keep looking for a better one
4549       ac_cv_path_SED="$ac_path_SED"
4550       ac_path_SED_max=$ac_count
4551     fi
4552     # 10*(2^10) chars as input seems more than enough
4553     test $ac_count -gt 10 && break
4554   done
4555   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4556 esac
4557
4558       $ac_path_SED_found && break 3
4559     done
4560   done
4561 done
4562 IFS=$as_save_IFS
4563   if test -z "$ac_cv_path_SED"; then
4564     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4565 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4566    { (exit 1); exit 1; }; }
4567   fi
4568 else
4569   ac_cv_path_SED=$SED
4570 fi
4571
4572 fi
4573 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4574 $as_echo "$ac_cv_path_SED" >&6; }
4575  SED="$ac_cv_path_SED"
4576   rm -f conftest.sed
4577
4578 test -z "$SED" && SED=sed
4579 Xsed="$SED -e 1s/^X//"
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4592 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4593 if test "${ac_cv_path_GREP+set}" = set; then
4594   $as_echo_n "(cached) " >&6
4595 else
4596   if test -z "$GREP"; then
4597   ac_path_GREP_found=false
4598   # Loop through the user's path and test for each of PROGNAME-LIST
4599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4601 do
4602   IFS=$as_save_IFS
4603   test -z "$as_dir" && as_dir=.
4604   for ac_prog in grep ggrep; do
4605     for ac_exec_ext in '' $ac_executable_extensions; do
4606       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4607       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4608 # Check for GNU ac_path_GREP and select it if it is found.
4609   # Check for GNU $ac_path_GREP
4610 case `"$ac_path_GREP" --version 2>&1` in
4611 *GNU*)
4612   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4613 *)
4614   ac_count=0
4615   $as_echo_n 0123456789 >"conftest.in"
4616   while :
4617   do
4618     cat "conftest.in" "conftest.in" >"conftest.tmp"
4619     mv "conftest.tmp" "conftest.in"
4620     cp "conftest.in" "conftest.nl"
4621     $as_echo 'GREP' >> "conftest.nl"
4622     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4624     ac_count=`expr $ac_count + 1`
4625     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4626       # Best one so far, save it but keep looking for a better one
4627       ac_cv_path_GREP="$ac_path_GREP"
4628       ac_path_GREP_max=$ac_count
4629     fi
4630     # 10*(2^10) chars as input seems more than enough
4631     test $ac_count -gt 10 && break
4632   done
4633   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634 esac
4635
4636       $ac_path_GREP_found && break 3
4637     done
4638   done
4639 done
4640 IFS=$as_save_IFS
4641   if test -z "$ac_cv_path_GREP"; then
4642     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4643 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4644    { (exit 1); exit 1; }; }
4645   fi
4646 else
4647   ac_cv_path_GREP=$GREP
4648 fi
4649
4650 fi
4651 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4652 $as_echo "$ac_cv_path_GREP" >&6; }
4653  GREP="$ac_cv_path_GREP"
4654
4655
4656 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4657 $as_echo_n "checking for egrep... " >&6; }
4658 if test "${ac_cv_path_EGREP+set}" = set; then
4659   $as_echo_n "(cached) " >&6
4660 else
4661   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4662    then ac_cv_path_EGREP="$GREP -E"
4663    else
4664      if test -z "$EGREP"; then
4665   ac_path_EGREP_found=false
4666   # Loop through the user's path and test for each of PROGNAME-LIST
4667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4669 do
4670   IFS=$as_save_IFS
4671   test -z "$as_dir" && as_dir=.
4672   for ac_prog in egrep; do
4673     for ac_exec_ext in '' $ac_executable_extensions; do
4674       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4675       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4676 # Check for GNU ac_path_EGREP and select it if it is found.
4677   # Check for GNU $ac_path_EGREP
4678 case `"$ac_path_EGREP" --version 2>&1` in
4679 *GNU*)
4680   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4681 *)
4682   ac_count=0
4683   $as_echo_n 0123456789 >"conftest.in"
4684   while :
4685   do
4686     cat "conftest.in" "conftest.in" >"conftest.tmp"
4687     mv "conftest.tmp" "conftest.in"
4688     cp "conftest.in" "conftest.nl"
4689     $as_echo 'EGREP' >> "conftest.nl"
4690     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4691     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4692     ac_count=`expr $ac_count + 1`
4693     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4694       # Best one so far, save it but keep looking for a better one
4695       ac_cv_path_EGREP="$ac_path_EGREP"
4696       ac_path_EGREP_max=$ac_count
4697     fi
4698     # 10*(2^10) chars as input seems more than enough
4699     test $ac_count -gt 10 && break
4700   done
4701   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4702 esac
4703
4704       $ac_path_EGREP_found && break 3
4705     done
4706   done
4707 done
4708 IFS=$as_save_IFS
4709   if test -z "$ac_cv_path_EGREP"; then
4710     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4711 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4712    { (exit 1); exit 1; }; }
4713   fi
4714 else
4715   ac_cv_path_EGREP=$EGREP
4716 fi
4717
4718    fi
4719 fi
4720 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4721 $as_echo "$ac_cv_path_EGREP" >&6; }
4722  EGREP="$ac_cv_path_EGREP"
4723
4724
4725 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4726 $as_echo_n "checking for fgrep... " >&6; }
4727 if test "${ac_cv_path_FGREP+set}" = set; then
4728   $as_echo_n "(cached) " >&6
4729 else
4730   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4731    then ac_cv_path_FGREP="$GREP -F"
4732    else
4733      if test -z "$FGREP"; then
4734   ac_path_FGREP_found=false
4735   # Loop through the user's path and test for each of PROGNAME-LIST
4736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4738 do
4739   IFS=$as_save_IFS
4740   test -z "$as_dir" && as_dir=.
4741   for ac_prog in fgrep; do
4742     for ac_exec_ext in '' $ac_executable_extensions; do
4743       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4744       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4745 # Check for GNU ac_path_FGREP and select it if it is found.
4746   # Check for GNU $ac_path_FGREP
4747 case `"$ac_path_FGREP" --version 2>&1` in
4748 *GNU*)
4749   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4750 *)
4751   ac_count=0
4752   $as_echo_n 0123456789 >"conftest.in"
4753   while :
4754   do
4755     cat "conftest.in" "conftest.in" >"conftest.tmp"
4756     mv "conftest.tmp" "conftest.in"
4757     cp "conftest.in" "conftest.nl"
4758     $as_echo 'FGREP' >> "conftest.nl"
4759     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4760     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4761     ac_count=`expr $ac_count + 1`
4762     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4763       # Best one so far, save it but keep looking for a better one
4764       ac_cv_path_FGREP="$ac_path_FGREP"
4765       ac_path_FGREP_max=$ac_count
4766     fi
4767     # 10*(2^10) chars as input seems more than enough
4768     test $ac_count -gt 10 && break
4769   done
4770   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4771 esac
4772
4773       $ac_path_FGREP_found && break 3
4774     done
4775   done
4776 done
4777 IFS=$as_save_IFS
4778   if test -z "$ac_cv_path_FGREP"; then
4779     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4780 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4781    { (exit 1); exit 1; }; }
4782   fi
4783 else
4784   ac_cv_path_FGREP=$FGREP
4785 fi
4786
4787    fi
4788 fi
4789 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4790 $as_echo "$ac_cv_path_FGREP" >&6; }
4791  FGREP="$ac_cv_path_FGREP"
4792
4793
4794 test -z "$GREP" && GREP=grep
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814 # Check whether --with-gnu-ld was given.
4815 if test "${with_gnu_ld+set}" = set; then
4816   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4817 else
4818   with_gnu_ld=no
4819 fi
4820
4821 ac_prog=ld
4822 if test "$GCC" = yes; then
4823   # Check if gcc -print-prog-name=ld gives a path.
4824   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4825 $as_echo_n "checking for ld used by $CC... " >&6; }
4826   case $host in
4827   *-*-mingw*)
4828     # gcc leaves a trailing carriage return which upsets mingw
4829     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4830   *)
4831     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4832   esac
4833   case $ac_prog in
4834     # Accept absolute paths.
4835     [\\/]* | ?:[\\/]*)
4836       re_direlt='/[^/][^/]*/\.\./'
4837       # Canonicalize the pathname of ld
4838       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4839       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4840         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4841       done
4842       test -z "$LD" && LD="$ac_prog"
4843       ;;
4844   "")
4845     # If it fails, then pretend we aren't using GCC.
4846     ac_prog=ld
4847     ;;
4848   *)
4849     # If it is relative, then search for the first ld in PATH.
4850     with_gnu_ld=unknown
4851     ;;
4852   esac
4853 elif test "$with_gnu_ld" = yes; then
4854   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4855 $as_echo_n "checking for GNU ld... " >&6; }
4856 else
4857   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4858 $as_echo_n "checking for non-GNU ld... " >&6; }
4859 fi
4860 if test "${lt_cv_path_LD+set}" = set; then
4861   $as_echo_n "(cached) " >&6
4862 else
4863   if test -z "$LD"; then
4864   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4865   for ac_dir in $PATH; do
4866     IFS="$lt_save_ifs"
4867     test -z "$ac_dir" && ac_dir=.
4868     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4869       lt_cv_path_LD="$ac_dir/$ac_prog"
4870       # Check to see if the program is GNU ld.  I'd rather use --version,
4871       # but apparently some variants of GNU ld only accept -v.
4872       # Break only if it was the GNU/non-GNU ld that we prefer.
4873       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4874       *GNU* | *'with BFD'*)
4875         test "$with_gnu_ld" != no && break
4876         ;;
4877       *)
4878         test "$with_gnu_ld" != yes && break
4879         ;;
4880       esac
4881     fi
4882   done
4883   IFS="$lt_save_ifs"
4884 else
4885   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4886 fi
4887 fi
4888
4889 LD="$lt_cv_path_LD"
4890 if test -n "$LD"; then
4891   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4892 $as_echo "$LD" >&6; }
4893 else
4894   { $as_echo "$as_me:$LINENO: result: no" >&5
4895 $as_echo "no" >&6; }
4896 fi
4897 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4898 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4899    { (exit 1); exit 1; }; }
4900 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4901 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4902 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4903   $as_echo_n "(cached) " >&6
4904 else
4905   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4906 case `$LD -v 2>&1 </dev/null` in
4907 *GNU* | *'with BFD'*)
4908   lt_cv_prog_gnu_ld=yes
4909   ;;
4910 *)
4911   lt_cv_prog_gnu_ld=no
4912   ;;
4913 esac
4914 fi
4915 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4916 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4917 with_gnu_ld=$lt_cv_prog_gnu_ld
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4928 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4929 if test "${lt_cv_path_NM+set}" = set; then
4930   $as_echo_n "(cached) " >&6
4931 else
4932   if test -n "$NM"; then
4933   # Let the user override the test.
4934   lt_cv_path_NM="$NM"
4935 else
4936   lt_nm_to_check="${ac_tool_prefix}nm"
4937   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4938     lt_nm_to_check="$lt_nm_to_check nm"
4939   fi
4940   for lt_tmp_nm in $lt_nm_to_check; do
4941     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4942     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4943       IFS="$lt_save_ifs"
4944       test -z "$ac_dir" && ac_dir=.
4945       tmp_nm="$ac_dir/$lt_tmp_nm"
4946       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4947         # Check to see if the nm accepts a BSD-compat flag.
4948         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4949         #   nm: unknown option "B" ignored
4950         # Tru64's nm complains that /dev/null is an invalid object file
4951         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4952         */dev/null* | *'Invalid file or object type'*)
4953           lt_cv_path_NM="$tmp_nm -B"
4954           break
4955           ;;
4956         *)
4957           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4958           */dev/null*)
4959             lt_cv_path_NM="$tmp_nm -p"
4960             break
4961             ;;
4962           *)
4963             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4964             continue # so that we can try to find one that supports BSD flags
4965             ;;
4966           esac
4967           ;;
4968         esac
4969       fi
4970     done
4971     IFS="$lt_save_ifs"
4972   done
4973   : ${lt_cv_path_NM=no}
4974 fi
4975 fi
4976 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4977 $as_echo "$lt_cv_path_NM" >&6; }
4978 if test "$lt_cv_path_NM" != "no"; then
4979   NM="$lt_cv_path_NM"
4980 else
4981   # Didn't find any BSD compatible name lister, look for dumpbin.
4982   if test -n "$ac_tool_prefix"; then
4983   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4984   do
4985     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4987 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4990   $as_echo_n "(cached) " >&6
4991 else
4992   if test -n "$DUMPBIN"; then
4993   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4997 do
4998   IFS=$as_save_IFS
4999   test -z "$as_dir" && as_dir=.
5000   for ac_exec_ext in '' $ac_executable_extensions; do
5001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5003     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004     break 2
5005   fi
5006 done
5007 done
5008 IFS=$as_save_IFS
5009
5010 fi
5011 fi
5012 DUMPBIN=$ac_cv_prog_DUMPBIN
5013 if test -n "$DUMPBIN"; then
5014   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5015 $as_echo "$DUMPBIN" >&6; }
5016 else
5017   { $as_echo "$as_me:$LINENO: result: no" >&5
5018 $as_echo "no" >&6; }
5019 fi
5020
5021
5022     test -n "$DUMPBIN" && break
5023   done
5024 fi
5025 if test -z "$DUMPBIN"; then
5026   ac_ct_DUMPBIN=$DUMPBIN
5027   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5028 do
5029   # Extract the first word of "$ac_prog", so it can be a program name with args.
5030 set dummy $ac_prog; ac_word=$2
5031 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5034   $as_echo_n "(cached) " >&6
5035 else
5036   if test -n "$ac_ct_DUMPBIN"; then
5037   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   test -z "$as_dir" && as_dir=.
5044   for ac_exec_ext in '' $ac_executable_extensions; do
5045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5047     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048     break 2
5049   fi
5050 done
5051 done
5052 IFS=$as_save_IFS
5053
5054 fi
5055 fi
5056 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5057 if test -n "$ac_ct_DUMPBIN"; then
5058   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5059 $as_echo "$ac_ct_DUMPBIN" >&6; }
5060 else
5061   { $as_echo "$as_me:$LINENO: result: no" >&5
5062 $as_echo "no" >&6; }
5063 fi
5064
5065
5066   test -n "$ac_ct_DUMPBIN" && break
5067 done
5068
5069   if test "x$ac_ct_DUMPBIN" = x; then
5070     DUMPBIN=":"
5071   else
5072     case $cross_compiling:$ac_tool_warned in
5073 yes:)
5074 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5076 ac_tool_warned=yes ;;
5077 esac
5078     DUMPBIN=$ac_ct_DUMPBIN
5079   fi
5080 fi
5081
5082
5083   if test "$DUMPBIN" != ":"; then
5084     NM="$DUMPBIN"
5085   fi
5086 fi
5087 test -z "$NM" && NM=nm
5088
5089
5090
5091
5092
5093
5094 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5095 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5096 if test "${lt_cv_nm_interface+set}" = set; then
5097   $as_echo_n "(cached) " >&6
5098 else
5099   lt_cv_nm_interface="BSD nm"
5100   echo "int some_variable = 0;" > conftest.$ac_ext
5101   (eval echo "\"\$as_me:5101: $ac_compile\"" >&5)
5102   (eval "$ac_compile" 2>conftest.err)
5103   cat conftest.err >&5
5104   (eval echo "\"\$as_me:5104: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5105   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5106   cat conftest.err >&5
5107   (eval echo "\"\$as_me:5107: output\"" >&5)
5108   cat conftest.out >&5
5109   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5110     lt_cv_nm_interface="MS dumpbin"
5111   fi
5112   rm -f conftest*
5113 fi
5114 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5115 $as_echo "$lt_cv_nm_interface" >&6; }
5116
5117 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5118 $as_echo_n "checking whether ln -s works... " >&6; }
5119 LN_S=$as_ln_s
5120 if test "$LN_S" = "ln -s"; then
5121   { $as_echo "$as_me:$LINENO: result: yes" >&5
5122 $as_echo "yes" >&6; }
5123 else
5124   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5125 $as_echo "no, using $LN_S" >&6; }
5126 fi
5127
5128 # find the maximum length of command line arguments
5129 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5130 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5131 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5132   $as_echo_n "(cached) " >&6
5133 else
5134     i=0
5135   teststring="ABCD"
5136
5137   case $build_os in
5138   msdosdjgpp*)
5139     # On DJGPP, this test can blow up pretty badly due to problems in libc
5140     # (any single argument exceeding 2000 bytes causes a buffer overrun
5141     # during glob expansion).  Even if it were fixed, the result of this
5142     # check would be larger than it should be.
5143     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5144     ;;
5145
5146   gnu*)
5147     # Under GNU Hurd, this test is not required because there is
5148     # no limit to the length of command line arguments.
5149     # Libtool will interpret -1 as no limit whatsoever
5150     lt_cv_sys_max_cmd_len=-1;
5151     ;;
5152
5153   cygwin* | mingw* | cegcc*)
5154     # On Win9x/ME, this test blows up -- it succeeds, but takes
5155     # about 5 minutes as the teststring grows exponentially.
5156     # Worse, since 9x/ME are not pre-emptively multitasking,
5157     # you end up with a "frozen" computer, even though with patience
5158     # the test eventually succeeds (with a max line length of 256k).
5159     # Instead, let's just punt: use the minimum linelength reported by
5160     # all of the supported platforms: 8192 (on NT/2K/XP).
5161     lt_cv_sys_max_cmd_len=8192;
5162     ;;
5163
5164   amigaos*)
5165     # On AmigaOS with pdksh, this test takes hours, literally.
5166     # So we just punt and use a minimum line length of 8192.
5167     lt_cv_sys_max_cmd_len=8192;
5168     ;;
5169
5170   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5171     # This has been around since 386BSD, at least.  Likely further.
5172     if test -x /sbin/sysctl; then
5173       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5174     elif test -x /usr/sbin/sysctl; then
5175       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5176     else
5177       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5178     fi
5179     # And add a safety zone
5180     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5181     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5182     ;;
5183
5184   interix*)
5185     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5186     lt_cv_sys_max_cmd_len=196608
5187     ;;
5188
5189   osf*)
5190     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5191     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5192     # nice to cause kernel panics so lets avoid the loop below.
5193     # First set a reasonable default.
5194     lt_cv_sys_max_cmd_len=16384
5195     #
5196     if test -x /sbin/sysconfig; then
5197       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5198         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5199       esac
5200     fi
5201     ;;
5202   sco3.2v5*)
5203     lt_cv_sys_max_cmd_len=102400
5204     ;;
5205   sysv5* | sco5v6* | sysv4.2uw2*)
5206     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5207     if test -n "$kargmax"; then
5208       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5209     else
5210       lt_cv_sys_max_cmd_len=32768
5211     fi
5212     ;;
5213   *)
5214     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5215     if test -n "$lt_cv_sys_max_cmd_len"; then
5216       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5217       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5218     else
5219       # Make teststring a little bigger before we do anything with it.
5220       # a 1K string should be a reasonable start.
5221       for i in 1 2 3 4 5 6 7 8 ; do
5222         teststring=$teststring$teststring
5223       done
5224       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5225       # If test is not a shell built-in, we'll probably end up computing a
5226       # maximum length that is only half of the actual maximum length, but
5227       # we can't tell.
5228       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5229                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5230               test $i != 17 # 1/2 MB should be enough
5231       do
5232         i=`expr $i + 1`
5233         teststring=$teststring$teststring
5234       done
5235       # Only check the string length outside the loop.
5236       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5237       teststring=
5238       # Add a significant safety factor because C++ compilers can tack on
5239       # massive amounts of additional arguments before passing them to the
5240       # linker.  It appears as though 1/2 is a usable value.
5241       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5242     fi
5243     ;;
5244   esac
5245
5246 fi
5247
5248 if test -n $lt_cv_sys_max_cmd_len ; then
5249   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5250 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5251 else
5252   { $as_echo "$as_me:$LINENO: result: none" >&5
5253 $as_echo "none" >&6; }
5254 fi
5255 max_cmd_len=$lt_cv_sys_max_cmd_len
5256
5257
5258
5259
5260
5261
5262 : ${CP="cp -f"}
5263 : ${MV="mv -f"}
5264 : ${RM="rm -f"}
5265
5266 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5267 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5268 # Try some XSI features
5269 xsi_shell=no
5270 ( _lt_dummy="a/b/c"
5271   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5272       = c,a/b,, \
5273     && eval 'test $(( 1 + 1 )) -eq 2 \
5274     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5275   && xsi_shell=yes
5276 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5277 $as_echo "$xsi_shell" >&6; }
5278
5279
5280 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5281 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5282 lt_shell_append=no
5283 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5284     >/dev/null 2>&1 \
5285   && lt_shell_append=yes
5286 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5287 $as_echo "$lt_shell_append" >&6; }
5288
5289
5290 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5291   lt_unset=unset
5292 else
5293   lt_unset=false
5294 fi
5295
5296
5297
5298
5299
5300 # test EBCDIC or ASCII
5301 case `echo X|tr X '\101'` in
5302  A) # ASCII based system
5303     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5304   lt_SP2NL='tr \040 \012'
5305   lt_NL2SP='tr \015\012 \040\040'
5306   ;;
5307  *) # EBCDIC based system
5308   lt_SP2NL='tr \100 \n'
5309   lt_NL2SP='tr \r\n \100\100'
5310   ;;
5311 esac
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5322 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5323 if test "${lt_cv_ld_reload_flag+set}" = set; then
5324   $as_echo_n "(cached) " >&6
5325 else
5326   lt_cv_ld_reload_flag='-r'
5327 fi
5328 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5329 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5330 reload_flag=$lt_cv_ld_reload_flag
5331 case $reload_flag in
5332 "" | " "*) ;;
5333 *) reload_flag=" $reload_flag" ;;
5334 esac
5335 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5336 case $host_os in
5337   darwin*)
5338     if test "$GCC" = yes; then
5339       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5340     else
5341       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5342     fi
5343     ;;
5344 esac
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354 if test -n "$ac_tool_prefix"; then
5355   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5356 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5360   $as_echo_n "(cached) " >&6
5361 else
5362   if test -n "$OBJDUMP"; then
5363   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368   IFS=$as_save_IFS
5369   test -z "$as_dir" && as_dir=.
5370   for ac_exec_ext in '' $ac_executable_extensions; do
5371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5373     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374     break 2
5375   fi
5376 done
5377 done
5378 IFS=$as_save_IFS
5379
5380 fi
5381 fi
5382 OBJDUMP=$ac_cv_prog_OBJDUMP
5383 if test -n "$OBJDUMP"; then
5384   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5385 $as_echo "$OBJDUMP" >&6; }
5386 else
5387   { $as_echo "$as_me:$LINENO: result: no" >&5
5388 $as_echo "no" >&6; }
5389 fi
5390
5391
5392 fi
5393 if test -z "$ac_cv_prog_OBJDUMP"; then
5394   ac_ct_OBJDUMP=$OBJDUMP
5395   # Extract the first word of "objdump", so it can be a program name with args.
5396 set dummy objdump; ac_word=$2
5397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5400   $as_echo_n "(cached) " >&6
5401 else
5402   if test -n "$ac_ct_OBJDUMP"; then
5403   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5407 do
5408   IFS=$as_save_IFS
5409   test -z "$as_dir" && as_dir=.
5410   for ac_exec_ext in '' $ac_executable_extensions; do
5411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5413     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414     break 2
5415   fi
5416 done
5417 done
5418 IFS=$as_save_IFS
5419
5420 fi
5421 fi
5422 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5423 if test -n "$ac_ct_OBJDUMP"; then
5424   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5425 $as_echo "$ac_ct_OBJDUMP" >&6; }
5426 else
5427   { $as_echo "$as_me:$LINENO: result: no" >&5
5428 $as_echo "no" >&6; }
5429 fi
5430
5431   if test "x$ac_ct_OBJDUMP" = x; then
5432     OBJDUMP="false"
5433   else
5434     case $cross_compiling:$ac_tool_warned in
5435 yes:)
5436 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438 ac_tool_warned=yes ;;
5439 esac
5440     OBJDUMP=$ac_ct_OBJDUMP
5441   fi
5442 else
5443   OBJDUMP="$ac_cv_prog_OBJDUMP"
5444 fi
5445
5446 test -z "$OBJDUMP" && OBJDUMP=objdump
5447
5448
5449
5450
5451
5452
5453 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5454 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5455 if test "${lt_cv_deplibs_check_method+set}" = set; then
5456   $as_echo_n "(cached) " >&6
5457 else
5458   lt_cv_file_magic_cmd='$MAGIC_CMD'
5459 lt_cv_file_magic_test_file=
5460 lt_cv_deplibs_check_method='unknown'
5461 # Need to set the preceding variable on all platforms that support
5462 # interlibrary dependencies.
5463 # 'none' -- dependencies not supported.
5464 # `unknown' -- same as none, but documents that we really don't know.
5465 # 'pass_all' -- all dependencies passed with no checks.
5466 # 'test_compile' -- check by making test program.
5467 # 'file_magic [[regex]]' -- check by looking for files in library path
5468 # which responds to the $file_magic_cmd with a given extended regex.
5469 # If you have `file' or equivalent on your system and you're not sure
5470 # whether `pass_all' will *always* work, you probably want this one.
5471
5472 case $host_os in
5473 aix[4-9]*)
5474   lt_cv_deplibs_check_method=pass_all
5475   ;;
5476
5477 beos*)
5478   lt_cv_deplibs_check_method=pass_all
5479   ;;
5480
5481 bsdi[45]*)
5482   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5483   lt_cv_file_magic_cmd='/usr/bin/file -L'
5484   lt_cv_file_magic_test_file=/shlib/libc.so
5485   ;;
5486
5487 cygwin*)
5488   # func_win32_libid is a shell function defined in ltmain.sh
5489   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5490   lt_cv_file_magic_cmd='func_win32_libid'
5491   ;;
5492
5493 mingw* | pw32*)
5494   # Base MSYS/MinGW do not provide the 'file' command needed by
5495   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5496   # unless we find 'file', for example because we are cross-compiling.
5497   if ( file / ) >/dev/null 2>&1; then
5498     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5499     lt_cv_file_magic_cmd='func_win32_libid'
5500   else
5501     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5502     lt_cv_file_magic_cmd='$OBJDUMP -f'
5503   fi
5504   ;;
5505
5506 cegcc)
5507   # use the weaker test based on 'objdump'. See mingw*.
5508   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5509   lt_cv_file_magic_cmd='$OBJDUMP -f'
5510   ;;
5511
5512 darwin* | rhapsody*)
5513   lt_cv_deplibs_check_method=pass_all
5514   ;;
5515
5516 freebsd* | dragonfly*)
5517   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5518     case $host_cpu in
5519     i*86 )
5520       # Not sure whether the presence of OpenBSD here was a mistake.
5521       # Let's accept both of them until this is cleared up.
5522       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5523       lt_cv_file_magic_cmd=/usr/bin/file
5524       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5525       ;;
5526     esac
5527   else
5528     lt_cv_deplibs_check_method=pass_all
5529   fi
5530   ;;
5531
5532 gnu*)
5533   lt_cv_deplibs_check_method=pass_all
5534   ;;
5535
5536 hpux10.20* | hpux11*)
5537   lt_cv_file_magic_cmd=/usr/bin/file
5538   case $host_cpu in
5539   ia64*)
5540     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5541     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5542     ;;
5543   hppa*64*)
5544     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5545     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5546     ;;
5547   *)
5548     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5549     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5550     ;;
5551   esac
5552   ;;
5553
5554 interix[3-9]*)
5555   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5556   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5557   ;;
5558
5559 irix5* | irix6* | nonstopux*)
5560   case $LD in
5561   *-32|*"-32 ") libmagic=32-bit;;
5562   *-n32|*"-n32 ") libmagic=N32;;
5563   *-64|*"-64 ") libmagic=64-bit;;
5564   *) libmagic=never-match;;
5565   esac
5566   lt_cv_deplibs_check_method=pass_all
5567   ;;
5568
5569 # This must be Linux ELF.
5570 linux* | k*bsd*-gnu)
5571   lt_cv_deplibs_check_method=pass_all
5572   ;;
5573
5574 netbsd*)
5575   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5576     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5577   else
5578     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5579   fi
5580   ;;
5581
5582 newos6*)
5583   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5584   lt_cv_file_magic_cmd=/usr/bin/file
5585   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5586   ;;
5587
5588 *nto* | *qnx*)
5589   lt_cv_deplibs_check_method=pass_all
5590   ;;
5591
5592 openbsd*)
5593   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5594     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5595   else
5596     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5597   fi
5598   ;;
5599
5600 osf3* | osf4* | osf5*)
5601   lt_cv_deplibs_check_method=pass_all
5602   ;;
5603
5604 rdos*)
5605   lt_cv_deplibs_check_method=pass_all
5606   ;;
5607
5608 solaris*)
5609   lt_cv_deplibs_check_method=pass_all
5610   ;;
5611
5612 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5613   lt_cv_deplibs_check_method=pass_all
5614   ;;
5615
5616 sysv4 | sysv4.3*)
5617   case $host_vendor in
5618   motorola)
5619     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]'
5620     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5621     ;;
5622   ncr)
5623     lt_cv_deplibs_check_method=pass_all
5624     ;;
5625   sequent)
5626     lt_cv_file_magic_cmd='/bin/file'
5627     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5628     ;;
5629   sni)
5630     lt_cv_file_magic_cmd='/bin/file'
5631     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5632     lt_cv_file_magic_test_file=/lib/libc.so
5633     ;;
5634   siemens)
5635     lt_cv_deplibs_check_method=pass_all
5636     ;;
5637   pc)
5638     lt_cv_deplibs_check_method=pass_all
5639     ;;
5640   esac
5641   ;;
5642
5643 tpf*)
5644   lt_cv_deplibs_check_method=pass_all
5645   ;;
5646 esac
5647
5648 fi
5649 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5650 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5651 file_magic_cmd=$lt_cv_file_magic_cmd
5652 deplibs_check_method=$lt_cv_deplibs_check_method
5653 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666 if test -n "$ac_tool_prefix"; then
5667   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5668 set dummy ${ac_tool_prefix}ar; ac_word=$2
5669 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if test "${ac_cv_prog_AR+set}" = set; then
5672   $as_echo_n "(cached) " >&6
5673 else
5674   if test -n "$AR"; then
5675   ac_cv_prog_AR="$AR" # Let the user override the test.
5676 else
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5679 do
5680   IFS=$as_save_IFS
5681   test -z "$as_dir" && as_dir=.
5682   for ac_exec_ext in '' $ac_executable_extensions; do
5683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684     ac_cv_prog_AR="${ac_tool_prefix}ar"
5685     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5686     break 2
5687   fi
5688 done
5689 done
5690 IFS=$as_save_IFS
5691
5692 fi
5693 fi
5694 AR=$ac_cv_prog_AR
5695 if test -n "$AR"; then
5696   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5697 $as_echo "$AR" >&6; }
5698 else
5699   { $as_echo "$as_me:$LINENO: result: no" >&5
5700 $as_echo "no" >&6; }
5701 fi
5702
5703
5704 fi
5705 if test -z "$ac_cv_prog_AR"; then
5706   ac_ct_AR=$AR
5707   # Extract the first word of "ar", so it can be a program name with args.
5708 set dummy ar; ac_word=$2
5709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5712   $as_echo_n "(cached) " >&6
5713 else
5714   if test -n "$ac_ct_AR"; then
5715   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720   IFS=$as_save_IFS
5721   test -z "$as_dir" && as_dir=.
5722   for ac_exec_ext in '' $ac_executable_extensions; do
5723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5724     ac_cv_prog_ac_ct_AR="ar"
5725     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5726     break 2
5727   fi
5728 done
5729 done
5730 IFS=$as_save_IFS
5731
5732 fi
5733 fi
5734 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5735 if test -n "$ac_ct_AR"; then
5736   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5737 $as_echo "$ac_ct_AR" >&6; }
5738 else
5739   { $as_echo "$as_me:$LINENO: result: no" >&5
5740 $as_echo "no" >&6; }
5741 fi
5742
5743   if test "x$ac_ct_AR" = x; then
5744     AR="false"
5745   else
5746     case $cross_compiling:$ac_tool_warned in
5747 yes:)
5748 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5750 ac_tool_warned=yes ;;
5751 esac
5752     AR=$ac_ct_AR
5753   fi
5754 else
5755   AR="$ac_cv_prog_AR"
5756 fi
5757
5758 test -z "$AR" && AR=ar
5759 test -z "$AR_FLAGS" && AR_FLAGS=cru
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771 if test -n "$ac_tool_prefix"; then
5772   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5773 set dummy ${ac_tool_prefix}strip; ac_word=$2
5774 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if test "${ac_cv_prog_STRIP+set}" = set; then
5777   $as_echo_n "(cached) " >&6
5778 else
5779   if test -n "$STRIP"; then
5780   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5781 else
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 for as_dir in $PATH
5784 do
5785   IFS=$as_save_IFS
5786   test -z "$as_dir" && as_dir=.
5787   for ac_exec_ext in '' $ac_executable_extensions; do
5788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5789     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5790     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791     break 2
5792   fi
5793 done
5794 done
5795 IFS=$as_save_IFS
5796
5797 fi
5798 fi
5799 STRIP=$ac_cv_prog_STRIP
5800 if test -n "$STRIP"; then
5801   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5802 $as_echo "$STRIP" >&6; }
5803 else
5804   { $as_echo "$as_me:$LINENO: result: no" >&5
5805 $as_echo "no" >&6; }
5806 fi
5807
5808
5809 fi
5810 if test -z "$ac_cv_prog_STRIP"; then
5811   ac_ct_STRIP=$STRIP
5812   # Extract the first word of "strip", so it can be a program name with args.
5813 set dummy strip; ac_word=$2
5814 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5817   $as_echo_n "(cached) " >&6
5818 else
5819   if test -n "$ac_ct_STRIP"; then
5820   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5824 do
5825   IFS=$as_save_IFS
5826   test -z "$as_dir" && as_dir=.
5827   for ac_exec_ext in '' $ac_executable_extensions; do
5828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5829     ac_cv_prog_ac_ct_STRIP="strip"
5830     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831     break 2
5832   fi
5833 done
5834 done
5835 IFS=$as_save_IFS
5836
5837 fi
5838 fi
5839 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5840 if test -n "$ac_ct_STRIP"; then
5841   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5842 $as_echo "$ac_ct_STRIP" >&6; }
5843 else
5844   { $as_echo "$as_me:$LINENO: result: no" >&5
5845 $as_echo "no" >&6; }
5846 fi
5847
5848   if test "x$ac_ct_STRIP" = x; then
5849     STRIP=":"
5850   else
5851     case $cross_compiling:$ac_tool_warned in
5852 yes:)
5853 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5855 ac_tool_warned=yes ;;
5856 esac
5857     STRIP=$ac_ct_STRIP
5858   fi
5859 else
5860   STRIP="$ac_cv_prog_STRIP"
5861 fi
5862
5863 test -z "$STRIP" && STRIP=:
5864
5865
5866
5867
5868
5869
5870 if test -n "$ac_tool_prefix"; then
5871   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5872 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5873 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5874 $as_echo_n "checking for $ac_word... " >&6; }
5875 if test "${ac_cv_prog_RANLIB+set}" = set; then
5876   $as_echo_n "(cached) " >&6
5877 else
5878   if test -n "$RANLIB"; then
5879   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5880 else
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5883 do
5884   IFS=$as_save_IFS
5885   test -z "$as_dir" && as_dir=.
5886   for ac_exec_ext in '' $ac_executable_extensions; do
5887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5889     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890     break 2
5891   fi
5892 done
5893 done
5894 IFS=$as_save_IFS
5895
5896 fi
5897 fi
5898 RANLIB=$ac_cv_prog_RANLIB
5899 if test -n "$RANLIB"; then
5900   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5901 $as_echo "$RANLIB" >&6; }
5902 else
5903   { $as_echo "$as_me:$LINENO: result: no" >&5
5904 $as_echo "no" >&6; }
5905 fi
5906
5907
5908 fi
5909 if test -z "$ac_cv_prog_RANLIB"; then
5910   ac_ct_RANLIB=$RANLIB
5911   # Extract the first word of "ranlib", so it can be a program name with args.
5912 set dummy ranlib; ac_word=$2
5913 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5916   $as_echo_n "(cached) " >&6
5917 else
5918   if test -n "$ac_ct_RANLIB"; then
5919   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924   IFS=$as_save_IFS
5925   test -z "$as_dir" && as_dir=.
5926   for ac_exec_ext in '' $ac_executable_extensions; do
5927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5928     ac_cv_prog_ac_ct_RANLIB="ranlib"
5929     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930     break 2
5931   fi
5932 done
5933 done
5934 IFS=$as_save_IFS
5935
5936 fi
5937 fi
5938 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5939 if test -n "$ac_ct_RANLIB"; then
5940   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5941 $as_echo "$ac_ct_RANLIB" >&6; }
5942 else
5943   { $as_echo "$as_me:$LINENO: result: no" >&5
5944 $as_echo "no" >&6; }
5945 fi
5946
5947   if test "x$ac_ct_RANLIB" = x; then
5948     RANLIB=":"
5949   else
5950     case $cross_compiling:$ac_tool_warned in
5951 yes:)
5952 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5954 ac_tool_warned=yes ;;
5955 esac
5956     RANLIB=$ac_ct_RANLIB
5957   fi
5958 else
5959   RANLIB="$ac_cv_prog_RANLIB"
5960 fi
5961
5962 test -z "$RANLIB" && RANLIB=:
5963
5964
5965
5966
5967
5968
5969 # Determine commands to create old-style static archives.
5970 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5971 old_postinstall_cmds='chmod 644 $oldlib'
5972 old_postuninstall_cmds=
5973
5974 if test -n "$RANLIB"; then
5975   case $host_os in
5976   openbsd*)
5977     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5978     ;;
5979   *)
5980     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5981     ;;
5982   esac
5983   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5984 fi
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
6014
6015
6016
6017
6018
6019 # If no C compiler was specified, use CC.
6020 LTCC=${LTCC-"$CC"}
6021
6022 # If no C compiler flags were specified, use CFLAGS.
6023 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6024
6025 # Allow CC to be a program name with arguments.
6026 compiler=$CC
6027
6028
6029 # Check for command to grab the raw symbol name followed by C symbol from nm.
6030 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6031 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6032 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6033   $as_echo_n "(cached) " >&6
6034 else
6035
6036 # These are sane defaults that work on at least a few old systems.
6037 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6038
6039 # Character class describing NM global symbol codes.
6040 symcode='[BCDEGRST]'
6041
6042 # Regexp to match symbols that can be accessed directly from C.
6043 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6044
6045 # Define system-specific variables.
6046 case $host_os in
6047 aix*)
6048   symcode='[BCDT]'
6049   ;;
6050 cygwin* | mingw* | pw32* | cegcc*)
6051   symcode='[ABCDGISTW]'
6052   ;;
6053 hpux*)
6054   if test "$host_cpu" = ia64; then
6055     symcode='[ABCDEGRST]'
6056   fi
6057   ;;
6058 irix* | nonstopux*)
6059   symcode='[BCDEGRST]'
6060   ;;
6061 osf*)
6062   symcode='[BCDEGQRST]'
6063   ;;
6064 solaris*)
6065   symcode='[BDRT]'
6066   ;;
6067 sco3.2v5*)
6068   symcode='[DT]'
6069   ;;
6070 sysv4.2uw2*)
6071   symcode='[DT]'
6072   ;;
6073 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6074   symcode='[ABDT]'
6075   ;;
6076 sysv4)
6077   symcode='[DFNSTU]'
6078   ;;
6079 esac
6080
6081 # If we're using GNU nm, then use its standard symbol codes.
6082 case `$NM -V 2>&1` in
6083 *GNU* | *'with BFD'*)
6084   symcode='[ABCDGIRSTW]' ;;
6085 esac
6086
6087 # Transform an extracted symbol line into a proper C declaration.
6088 # Some systems (esp. on ia64) link data and code symbols differently,
6089 # so use this general approach.
6090 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6091
6092 # Transform an extracted symbol line into symbol name and symbol address
6093 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6094 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'"
6095
6096 # Handle CRLF in mingw tool chain
6097 opt_cr=
6098 case $build_os in
6099 mingw*)
6100   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6101   ;;
6102 esac
6103
6104 # Try without a prefix underscore, then with it.
6105 for ac_symprfx in "" "_"; do
6106
6107   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6108   symxfrm="\\1 $ac_symprfx\\2 \\2"
6109
6110   # Write the raw and C identifiers.
6111   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6112     # Fake it for dumpbin and say T for any non-static function
6113     # and D for any global variable.
6114     # Also find C++ and __fastcall symbols from MSVC++,
6115     # which start with @ or ?.
6116     lt_cv_sys_global_symbol_pipe="$AWK '"\
6117 "     {last_section=section; section=\$ 3};"\
6118 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6119 "     \$ 0!~/External *\|/{next};"\
6120 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6121 "     {if(hide[section]) next};"\
6122 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6123 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6124 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6125 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6126 "     ' prfx=^$ac_symprfx"
6127   else
6128     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6129   fi
6130
6131   # Check to see that the pipe works correctly.
6132   pipe_works=no
6133
6134   rm -f conftest*
6135   cat > conftest.$ac_ext <<_LT_EOF
6136 #ifdef __cplusplus
6137 extern "C" {
6138 #endif
6139 char nm_test_var;
6140 void nm_test_func(void);
6141 void nm_test_func(void){}
6142 #ifdef __cplusplus
6143 }
6144 #endif
6145 int main(){nm_test_var='a';nm_test_func();return(0);}
6146 _LT_EOF
6147
6148   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6149   (eval $ac_compile) 2>&5
6150   ac_status=$?
6151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); }; then
6153     # Now try to grab the symbols.
6154     nlist=conftest.nm
6155     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6156   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6157   ac_status=$?
6158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159   (exit $ac_status); } && test -s "$nlist"; then
6160       # Try sorting and uniquifying the output.
6161       if sort "$nlist" | uniq > "$nlist"T; then
6162         mv -f "$nlist"T "$nlist"
6163       else
6164         rm -f "$nlist"T
6165       fi
6166
6167       # Make sure that we snagged all the symbols we need.
6168       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6169         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6170           cat <<_LT_EOF > conftest.$ac_ext
6171 #ifdef __cplusplus
6172 extern "C" {
6173 #endif
6174
6175 _LT_EOF
6176           # Now generate the symbol file.
6177           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6178
6179           cat <<_LT_EOF >> conftest.$ac_ext
6180
6181 /* The mapping between symbol names and symbols.  */
6182 const struct {
6183   const char *name;
6184   void       *address;
6185 }
6186 lt__PROGRAM__LTX_preloaded_symbols[] =
6187 {
6188   { "@PROGRAM@", (void *) 0 },
6189 _LT_EOF
6190           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6191           cat <<\_LT_EOF >> conftest.$ac_ext
6192   {0, (void *) 0}
6193 };
6194
6195 /* This works around a problem in FreeBSD linker */
6196 #ifdef FREEBSD_WORKAROUND
6197 static const void *lt_preloaded_setup() {
6198   return lt__PROGRAM__LTX_preloaded_symbols;
6199 }
6200 #endif
6201
6202 #ifdef __cplusplus
6203 }
6204 #endif
6205 _LT_EOF
6206           # Now try linking the two files.
6207           mv conftest.$ac_objext conftstm.$ac_objext
6208           lt_save_LIBS="$LIBS"
6209           lt_save_CFLAGS="$CFLAGS"
6210           LIBS="conftstm.$ac_objext"
6211           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6212           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6213   (eval $ac_link) 2>&5
6214   ac_status=$?
6215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6217             pipe_works=yes
6218           fi
6219           LIBS="$lt_save_LIBS"
6220           CFLAGS="$lt_save_CFLAGS"
6221         else
6222           echo "cannot find nm_test_func in $nlist" >&5
6223         fi
6224       else
6225         echo "cannot find nm_test_var in $nlist" >&5
6226       fi
6227     else
6228       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6229     fi
6230   else
6231     echo "$progname: failed program was:" >&5
6232     cat conftest.$ac_ext >&5
6233   fi
6234   rm -rf conftest* conftst*
6235
6236   # Do not use the global_symbol_pipe unless it works.
6237   if test "$pipe_works" = yes; then
6238     break
6239   else
6240     lt_cv_sys_global_symbol_pipe=
6241   fi
6242 done
6243
6244 fi
6245
6246 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6247   lt_cv_sys_global_symbol_to_cdecl=
6248 fi
6249 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6250   { $as_echo "$as_me:$LINENO: result: failed" >&5
6251 $as_echo "failed" >&6; }
6252 else
6253   { $as_echo "$as_me:$LINENO: result: ok" >&5
6254 $as_echo "ok" >&6; }
6255 fi
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279 # Check whether --enable-libtool-lock was given.
6280 if test "${enable_libtool_lock+set}" = set; then
6281   enableval=$enable_libtool_lock;
6282 fi
6283
6284 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6285
6286 # Some flags need to be propagated to the compiler or linker for good
6287 # libtool support.
6288 case $host in
6289 ia64-*-hpux*)
6290   # Find out which ABI we are using.
6291   echo 'int i;' > conftest.$ac_ext
6292   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6293   (eval $ac_compile) 2>&5
6294   ac_status=$?
6295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); }; then
6297     case `/usr/bin/file conftest.$ac_objext` in
6298       *ELF-32*)
6299         HPUX_IA64_MODE="32"
6300         ;;
6301       *ELF-64*)
6302         HPUX_IA64_MODE="64"
6303         ;;
6304     esac
6305   fi
6306   rm -rf conftest*
6307   ;;
6308 *-*-irix6*)
6309   # Find out which ABI we are using.
6310   echo '#line 6310 "configure"' > conftest.$ac_ext
6311   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6312   (eval $ac_compile) 2>&5
6313   ac_status=$?
6314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); }; then
6316     if test "$lt_cv_prog_gnu_ld" = yes; then
6317       case `/usr/bin/file conftest.$ac_objext` in
6318         *32-bit*)
6319           LD="${LD-ld} -melf32bsmip"
6320           ;;
6321         *N32*)
6322           LD="${LD-ld} -melf32bmipn32"
6323           ;;
6324         *64-bit*)
6325           LD="${LD-ld} -melf64bmip"
6326         ;;
6327       esac
6328     else
6329       case `/usr/bin/file conftest.$ac_objext` in
6330         *32-bit*)
6331           LD="${LD-ld} -32"
6332           ;;
6333         *N32*)
6334           LD="${LD-ld} -n32"
6335           ;;
6336         *64-bit*)
6337           LD="${LD-ld} -64"
6338           ;;
6339       esac
6340     fi
6341   fi
6342   rm -rf conftest*
6343   ;;
6344
6345 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6346 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6347   # Find out which ABI we are using.
6348   echo 'int i;' > conftest.$ac_ext
6349   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6350   (eval $ac_compile) 2>&5
6351   ac_status=$?
6352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); }; then
6354     case `/usr/bin/file conftest.o` in
6355       *32-bit*)
6356         case $host in
6357           x86_64-*kfreebsd*-gnu)
6358             LD="${LD-ld} -m elf_i386_fbsd"
6359             ;;
6360           x86_64-*linux*)
6361             LD="${LD-ld} -m elf_i386"
6362             ;;
6363           ppc64-*linux*|powerpc64-*linux*)
6364             LD="${LD-ld} -m elf32ppclinux"
6365             ;;
6366           s390x-*linux*)
6367             LD="${LD-ld} -m elf_s390"
6368             ;;
6369           sparc64-*linux*)
6370             LD="${LD-ld} -m elf32_sparc"
6371             ;;
6372         esac
6373         ;;
6374       *64-bit*)
6375         case $host in
6376           x86_64-*kfreebsd*-gnu)
6377             LD="${LD-ld} -m elf_x86_64_fbsd"
6378             ;;
6379           x86_64-*linux*)
6380             LD="${LD-ld} -m elf_x86_64"
6381             ;;
6382           ppc*-*linux*|powerpc*-*linux*)
6383             LD="${LD-ld} -m elf64ppc"
6384             ;;
6385           s390*-*linux*|s390*-*tpf*)
6386             LD="${LD-ld} -m elf64_s390"
6387             ;;
6388           sparc*-*linux*)
6389             LD="${LD-ld} -m elf64_sparc"
6390             ;;
6391         esac
6392         ;;
6393     esac
6394   fi
6395   rm -rf conftest*
6396   ;;
6397
6398 *-*-sco3.2v5*)
6399   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6400   SAVE_CFLAGS="$CFLAGS"
6401   CFLAGS="$CFLAGS -belf"
6402   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6403 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6404 if test "${lt_cv_cc_needs_belf+set}" = set; then
6405   $as_echo_n "(cached) " >&6
6406 else
6407   ac_ext=c
6408 ac_cpp='$CPP $CPPFLAGS'
6409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6412
6413      cat >conftest.$ac_ext <<_ACEOF
6414 /* confdefs.h.  */
6415 _ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h.  */
6419
6420 int
6421 main ()
6422 {
6423
6424   ;
6425   return 0;
6426 }
6427 _ACEOF
6428 rm -f conftest.$ac_objext conftest$ac_exeext
6429 if { (ac_try="$ac_link"
6430 case "(($ac_try" in
6431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432   *) ac_try_echo=$ac_try;;
6433 esac
6434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6435 $as_echo "$ac_try_echo") >&5
6436   (eval "$ac_link") 2>conftest.er1
6437   ac_status=$?
6438   grep -v '^ *+' conftest.er1 >conftest.err
6439   rm -f conftest.er1
6440   cat conftest.err >&5
6441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442   (exit $ac_status); } && {
6443          test -z "$ac_c_werror_flag" ||
6444          test ! -s conftest.err
6445        } && test -s conftest$ac_exeext && {
6446          test "$cross_compiling" = yes ||
6447          $as_test_x conftest$ac_exeext
6448        }; then
6449   lt_cv_cc_needs_belf=yes
6450 else
6451   $as_echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6453
6454         lt_cv_cc_needs_belf=no
6455 fi
6456
6457 rm -rf conftest.dSYM
6458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6459       conftest$ac_exeext conftest.$ac_ext
6460      ac_ext=c
6461 ac_cpp='$CPP $CPPFLAGS'
6462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6465
6466 fi
6467 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6468 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6469   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6470     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6471     CFLAGS="$SAVE_CFLAGS"
6472   fi
6473   ;;
6474 sparc*-*solaris*)
6475   # Find out which ABI we are using.
6476   echo 'int i;' > conftest.$ac_ext
6477   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6478   (eval $ac_compile) 2>&5
6479   ac_status=$?
6480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); }; then
6482     case `/usr/bin/file conftest.o` in
6483     *64-bit*)
6484       case $lt_cv_prog_gnu_ld in
6485       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6486       *)
6487         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6488           LD="${LD-ld} -64"
6489         fi
6490         ;;
6491       esac
6492       ;;
6493     esac
6494   fi
6495   rm -rf conftest*
6496   ;;
6497 esac
6498
6499 need_locks="$enable_libtool_lock"
6500
6501
6502   case $host_os in
6503     rhapsody* | darwin*)
6504     if test -n "$ac_tool_prefix"; then
6505   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6506 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6507 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6510   $as_echo_n "(cached) " >&6
6511 else
6512   if test -n "$DSYMUTIL"; then
6513   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6517 do
6518   IFS=$as_save_IFS
6519   test -z "$as_dir" && as_dir=.
6520   for ac_exec_ext in '' $ac_executable_extensions; do
6521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6523     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524     break 2
6525   fi
6526 done
6527 done
6528 IFS=$as_save_IFS
6529
6530 fi
6531 fi
6532 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6533 if test -n "$DSYMUTIL"; then
6534   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6535 $as_echo "$DSYMUTIL" >&6; }
6536 else
6537   { $as_echo "$as_me:$LINENO: result: no" >&5
6538 $as_echo "no" >&6; }
6539 fi
6540
6541
6542 fi
6543 if test -z "$ac_cv_prog_DSYMUTIL"; then
6544   ac_ct_DSYMUTIL=$DSYMUTIL
6545   # Extract the first word of "dsymutil", so it can be a program name with args.
6546 set dummy dsymutil; ac_word=$2
6547 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6548 $as_echo_n "checking for $ac_word... " >&6; }
6549 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6550   $as_echo_n "(cached) " >&6
6551 else
6552   if test -n "$ac_ct_DSYMUTIL"; then
6553   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6554 else
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6557 do
6558   IFS=$as_save_IFS
6559   test -z "$as_dir" && as_dir=.
6560   for ac_exec_ext in '' $ac_executable_extensions; do
6561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6562     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6563     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564     break 2
6565   fi
6566 done
6567 done
6568 IFS=$as_save_IFS
6569
6570 fi
6571 fi
6572 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6573 if test -n "$ac_ct_DSYMUTIL"; then
6574   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6575 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6576 else
6577   { $as_echo "$as_me:$LINENO: result: no" >&5
6578 $as_echo "no" >&6; }
6579 fi
6580
6581   if test "x$ac_ct_DSYMUTIL" = x; then
6582     DSYMUTIL=":"
6583   else
6584     case $cross_compiling:$ac_tool_warned in
6585 yes:)
6586 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6588 ac_tool_warned=yes ;;
6589 esac
6590     DSYMUTIL=$ac_ct_DSYMUTIL
6591   fi
6592 else
6593   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6594 fi
6595
6596     if test -n "$ac_tool_prefix"; then
6597   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6598 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6599 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 $as_echo_n "checking for $ac_word... " >&6; }
6601 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6602   $as_echo_n "(cached) " >&6
6603 else
6604   if test -n "$NMEDIT"; then
6605   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6609 do
6610   IFS=$as_save_IFS
6611   test -z "$as_dir" && as_dir=.
6612   for ac_exec_ext in '' $ac_executable_extensions; do
6613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6615     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616     break 2
6617   fi
6618 done
6619 done
6620 IFS=$as_save_IFS
6621
6622 fi
6623 fi
6624 NMEDIT=$ac_cv_prog_NMEDIT
6625 if test -n "$NMEDIT"; then
6626   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6627 $as_echo "$NMEDIT" >&6; }
6628 else
6629   { $as_echo "$as_me:$LINENO: result: no" >&5
6630 $as_echo "no" >&6; }
6631 fi
6632
6633
6634 fi
6635 if test -z "$ac_cv_prog_NMEDIT"; then
6636   ac_ct_NMEDIT=$NMEDIT
6637   # Extract the first word of "nmedit", so it can be a program name with args.
6638 set dummy nmedit; ac_word=$2
6639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6642   $as_echo_n "(cached) " >&6
6643 else
6644   if test -n "$ac_ct_NMEDIT"; then
6645   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650   IFS=$as_save_IFS
6651   test -z "$as_dir" && as_dir=.
6652   for ac_exec_ext in '' $ac_executable_extensions; do
6653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6655     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6656     break 2
6657   fi
6658 done
6659 done
6660 IFS=$as_save_IFS
6661
6662 fi
6663 fi
6664 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6665 if test -n "$ac_ct_NMEDIT"; then
6666   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6667 $as_echo "$ac_ct_NMEDIT" >&6; }
6668 else
6669   { $as_echo "$as_me:$LINENO: result: no" >&5
6670 $as_echo "no" >&6; }
6671 fi
6672
6673   if test "x$ac_ct_NMEDIT" = x; then
6674     NMEDIT=":"
6675   else
6676     case $cross_compiling:$ac_tool_warned in
6677 yes:)
6678 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6680 ac_tool_warned=yes ;;
6681 esac
6682     NMEDIT=$ac_ct_NMEDIT
6683   fi
6684 else
6685   NMEDIT="$ac_cv_prog_NMEDIT"
6686 fi
6687
6688     if test -n "$ac_tool_prefix"; then
6689   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6690 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6691 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if test "${ac_cv_prog_LIPO+set}" = set; then
6694   $as_echo_n "(cached) " >&6
6695 else
6696   if test -n "$LIPO"; then
6697   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702   IFS=$as_save_IFS
6703   test -z "$as_dir" && as_dir=.
6704   for ac_exec_ext in '' $ac_executable_extensions; do
6705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6707     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708     break 2
6709   fi
6710 done
6711 done
6712 IFS=$as_save_IFS
6713
6714 fi
6715 fi
6716 LIPO=$ac_cv_prog_LIPO
6717 if test -n "$LIPO"; then
6718   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6719 $as_echo "$LIPO" >&6; }
6720 else
6721   { $as_echo "$as_me:$LINENO: result: no" >&5
6722 $as_echo "no" >&6; }
6723 fi
6724
6725
6726 fi
6727 if test -z "$ac_cv_prog_LIPO"; then
6728   ac_ct_LIPO=$LIPO
6729   # Extract the first word of "lipo", so it can be a program name with args.
6730 set dummy lipo; ac_word=$2
6731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6734   $as_echo_n "(cached) " >&6
6735 else
6736   if test -n "$ac_ct_LIPO"; then
6737   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6738 else
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744   for ac_exec_ext in '' $ac_executable_extensions; do
6745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746     ac_cv_prog_ac_ct_LIPO="lipo"
6747     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751 done
6752 IFS=$as_save_IFS
6753
6754 fi
6755 fi
6756 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6757 if test -n "$ac_ct_LIPO"; then
6758   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6759 $as_echo "$ac_ct_LIPO" >&6; }
6760 else
6761   { $as_echo "$as_me:$LINENO: result: no" >&5
6762 $as_echo "no" >&6; }
6763 fi
6764
6765   if test "x$ac_ct_LIPO" = x; then
6766     LIPO=":"
6767   else
6768     case $cross_compiling:$ac_tool_warned in
6769 yes:)
6770 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6772 ac_tool_warned=yes ;;
6773 esac
6774     LIPO=$ac_ct_LIPO
6775   fi
6776 else
6777   LIPO="$ac_cv_prog_LIPO"
6778 fi
6779
6780     if test -n "$ac_tool_prefix"; then
6781   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}otool; ac_word=$2
6783 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if test "${ac_cv_prog_OTOOL+set}" = set; then
6786   $as_echo_n "(cached) " >&6
6787 else
6788   if test -n "$OTOOL"; then
6789   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794   IFS=$as_save_IFS
6795   test -z "$as_dir" && as_dir=.
6796   for ac_exec_ext in '' $ac_executable_extensions; do
6797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6799     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800     break 2
6801   fi
6802 done
6803 done
6804 IFS=$as_save_IFS
6805
6806 fi
6807 fi
6808 OTOOL=$ac_cv_prog_OTOOL
6809 if test -n "$OTOOL"; then
6810   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6811 $as_echo "$OTOOL" >&6; }
6812 else
6813   { $as_echo "$as_me:$LINENO: result: no" >&5
6814 $as_echo "no" >&6; }
6815 fi
6816
6817
6818 fi
6819 if test -z "$ac_cv_prog_OTOOL"; then
6820   ac_ct_OTOOL=$OTOOL
6821   # Extract the first word of "otool", so it can be a program name with args.
6822 set dummy otool; ac_word=$2
6823 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6826   $as_echo_n "(cached) " >&6
6827 else
6828   if test -n "$ac_ct_OTOOL"; then
6829   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834   IFS=$as_save_IFS
6835   test -z "$as_dir" && as_dir=.
6836   for ac_exec_ext in '' $ac_executable_extensions; do
6837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838     ac_cv_prog_ac_ct_OTOOL="otool"
6839     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840     break 2
6841   fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6849 if test -n "$ac_ct_OTOOL"; then
6850   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6851 $as_echo "$ac_ct_OTOOL" >&6; }
6852 else
6853   { $as_echo "$as_me:$LINENO: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857   if test "x$ac_ct_OTOOL" = x; then
6858     OTOOL=":"
6859   else
6860     case $cross_compiling:$ac_tool_warned in
6861 yes:)
6862 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6865 esac
6866     OTOOL=$ac_ct_OTOOL
6867   fi
6868 else
6869   OTOOL="$ac_cv_prog_OTOOL"
6870 fi
6871
6872     if test -n "$ac_tool_prefix"; then
6873   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6875 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6878   $as_echo_n "(cached) " >&6
6879 else
6880   if test -n "$OTOOL64"; then
6881   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886   IFS=$as_save_IFS
6887   test -z "$as_dir" && as_dir=.
6888   for ac_exec_ext in '' $ac_executable_extensions; do
6889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6891     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892     break 2
6893   fi
6894 done
6895 done
6896 IFS=$as_save_IFS
6897
6898 fi
6899 fi
6900 OTOOL64=$ac_cv_prog_OTOOL64
6901 if test -n "$OTOOL64"; then
6902   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6903 $as_echo "$OTOOL64" >&6; }
6904 else
6905   { $as_echo "$as_me:$LINENO: result: no" >&5
6906 $as_echo "no" >&6; }
6907 fi
6908
6909
6910 fi
6911 if test -z "$ac_cv_prog_OTOOL64"; then
6912   ac_ct_OTOOL64=$OTOOL64
6913   # Extract the first word of "otool64", so it can be a program name with args.
6914 set dummy otool64; ac_word=$2
6915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6918   $as_echo_n "(cached) " >&6
6919 else
6920   if test -n "$ac_ct_OTOOL64"; then
6921   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928   for ac_exec_ext in '' $ac_executable_extensions; do
6929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930     ac_cv_prog_ac_ct_OTOOL64="otool64"
6931     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935 done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6941 if test -n "$ac_ct_OTOOL64"; then
6942   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6943 $as_echo "$ac_ct_OTOOL64" >&6; }
6944 else
6945   { $as_echo "$as_me:$LINENO: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949   if test "x$ac_ct_OTOOL64" = x; then
6950     OTOOL64=":"
6951   else
6952     case $cross_compiling:$ac_tool_warned in
6953 yes:)
6954 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6956 ac_tool_warned=yes ;;
6957 esac
6958     OTOOL64=$ac_ct_OTOOL64
6959   fi
6960 else
6961   OTOOL64="$ac_cv_prog_OTOOL64"
6962 fi
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6991 $as_echo_n "checking for -single_module linker flag... " >&6; }
6992 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6993   $as_echo_n "(cached) " >&6
6994 else
6995   lt_cv_apple_cc_single_mod=no
6996       if test -z "${LT_MULTI_MODULE}"; then
6997         # By default we will add the -single_module flag. You can override
6998         # by either setting the environment variable LT_MULTI_MODULE
6999         # non-empty at configure time, or by adding -multi_module to the
7000         # link flags.
7001         rm -rf libconftest.dylib*
7002         echo "int foo(void){return 1;}" > conftest.c
7003         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7004 -dynamiclib -Wl,-single_module conftest.c" >&5
7005         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7006           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7007         _lt_result=$?
7008         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7009           lt_cv_apple_cc_single_mod=yes
7010         else
7011           cat conftest.err >&5
7012         fi
7013         rm -rf libconftest.dylib*
7014         rm -f conftest.*
7015       fi
7016 fi
7017 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7018 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7019     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7020 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7021 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7022   $as_echo_n "(cached) " >&6
7023 else
7024   lt_cv_ld_exported_symbols_list=no
7025       save_LDFLAGS=$LDFLAGS
7026       echo "_main" > conftest.sym
7027       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7028       cat >conftest.$ac_ext <<_ACEOF
7029 /* confdefs.h.  */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h.  */
7034
7035 int
7036 main ()
7037 {
7038
7039   ;
7040   return 0;
7041 }
7042 _ACEOF
7043 rm -f conftest.$ac_objext conftest$ac_exeext
7044 if { (ac_try="$ac_link"
7045 case "(($ac_try" in
7046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047   *) ac_try_echo=$ac_try;;
7048 esac
7049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7050 $as_echo "$ac_try_echo") >&5
7051   (eval "$ac_link") 2>conftest.er1
7052   ac_status=$?
7053   grep -v '^ *+' conftest.er1 >conftest.err
7054   rm -f conftest.er1
7055   cat conftest.err >&5
7056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); } && {
7058          test -z "$ac_c_werror_flag" ||
7059          test ! -s conftest.err
7060        } && test -s conftest$ac_exeext && {
7061          test "$cross_compiling" = yes ||
7062          $as_test_x conftest$ac_exeext
7063        }; then
7064   lt_cv_ld_exported_symbols_list=yes
7065 else
7066   $as_echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7068
7069         lt_cv_ld_exported_symbols_list=no
7070 fi
7071
7072 rm -rf conftest.dSYM
7073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7074       conftest$ac_exeext conftest.$ac_ext
7075         LDFLAGS="$save_LDFLAGS"
7076
7077 fi
7078 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7079 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7080     case $host_os in
7081     rhapsody* | darwin1.[012])
7082       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7083     darwin1.*)
7084       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7085     darwin*) # darwin 5.x on
7086       # if running on 10.5 or later, the deployment target defaults
7087       # to the OS version, if on x86, and 10.4, the deployment
7088       # target defaults to 10.4. Don't you love it?
7089       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7090         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7091           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7092         10.[012]*)
7093           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7094         10.*)
7095           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7096       esac
7097     ;;
7098   esac
7099     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7100       _lt_dar_single_mod='$single_module'
7101     fi
7102     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7103       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7104     else
7105       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7106     fi
7107     if test "$DSYMUTIL" != ":"; then
7108       _lt_dsymutil='~$DSYMUTIL $lib || :'
7109     else
7110       _lt_dsymutil=
7111     fi
7112     ;;
7113   esac
7114
7115
7116 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7117 $as_echo_n "checking for ANSI C header files... " >&6; }
7118 if test "${ac_cv_header_stdc+set}" = set; then
7119   $as_echo_n "(cached) " >&6
7120 else
7121   cat >conftest.$ac_ext <<_ACEOF
7122 /* confdefs.h.  */
7123 _ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h.  */
7127 #include <stdlib.h>
7128 #include <stdarg.h>
7129 #include <string.h>
7130 #include <float.h>
7131
7132 int
7133 main ()
7134 {
7135
7136   ;
7137   return 0;
7138 }
7139 _ACEOF
7140 rm -f conftest.$ac_objext
7141 if { (ac_try="$ac_compile"
7142 case "(($ac_try" in
7143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7144   *) ac_try_echo=$ac_try;;
7145 esac
7146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7147 $as_echo "$ac_try_echo") >&5
7148   (eval "$ac_compile") 2>conftest.er1
7149   ac_status=$?
7150   grep -v '^ *+' conftest.er1 >conftest.err
7151   rm -f conftest.er1
7152   cat conftest.err >&5
7153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154   (exit $ac_status); } && {
7155          test -z "$ac_c_werror_flag" ||
7156          test ! -s conftest.err
7157        } && test -s conftest.$ac_objext; then
7158   ac_cv_header_stdc=yes
7159 else
7160   $as_echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.$ac_ext >&5
7162
7163         ac_cv_header_stdc=no
7164 fi
7165
7166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167
7168 if test $ac_cv_header_stdc = yes; then
7169   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7170   cat >conftest.$ac_ext <<_ACEOF
7171 /* confdefs.h.  */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h.  */
7176 #include <string.h>
7177
7178 _ACEOF
7179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180   $EGREP "memchr" >/dev/null 2>&1; then
7181   :
7182 else
7183   ac_cv_header_stdc=no
7184 fi
7185 rm -f conftest*
7186
7187 fi
7188
7189 if test $ac_cv_header_stdc = yes; then
7190   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7191   cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h.  */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h.  */
7197 #include <stdlib.h>
7198
7199 _ACEOF
7200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7201   $EGREP "free" >/dev/null 2>&1; then
7202   :
7203 else
7204   ac_cv_header_stdc=no
7205 fi
7206 rm -f conftest*
7207
7208 fi
7209
7210 if test $ac_cv_header_stdc = yes; then
7211   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7212   if test "$cross_compiling" = yes; then
7213   :
7214 else
7215   cat >conftest.$ac_ext <<_ACEOF
7216 /* confdefs.h.  */
7217 _ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h.  */
7221 #include <ctype.h>
7222 #include <stdlib.h>
7223 #if ((' ' & 0x0FF) == 0x020)
7224 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7225 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7226 #else
7227 # define ISLOWER(c) \
7228                    (('a' <= (c) && (c) <= 'i') \
7229                      || ('j' <= (c) && (c) <= 'r') \
7230                      || ('s' <= (c) && (c) <= 'z'))
7231 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7232 #endif
7233
7234 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7235 int
7236 main ()
7237 {
7238   int i;
7239   for (i = 0; i < 256; i++)
7240     if (XOR (islower (i), ISLOWER (i))
7241         || toupper (i) != TOUPPER (i))
7242       return 2;
7243   return 0;
7244 }
7245 _ACEOF
7246 rm -f conftest$ac_exeext
7247 if { (ac_try="$ac_link"
7248 case "(($ac_try" in
7249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250   *) ac_try_echo=$ac_try;;
7251 esac
7252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7253 $as_echo "$ac_try_echo") >&5
7254   (eval "$ac_link") 2>&5
7255   ac_status=$?
7256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7258   { (case "(($ac_try" in
7259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7260   *) ac_try_echo=$ac_try;;
7261 esac
7262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7263 $as_echo "$ac_try_echo") >&5
7264   (eval "$ac_try") 2>&5
7265   ac_status=$?
7266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267   (exit $ac_status); }; }; then
7268   :
7269 else
7270   $as_echo "$as_me: program exited with status $ac_status" >&5
7271 $as_echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7273
7274 ( exit $ac_status )
7275 ac_cv_header_stdc=no
7276 fi
7277 rm -rf conftest.dSYM
7278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7279 fi
7280
7281
7282 fi
7283 fi
7284 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7285 $as_echo "$ac_cv_header_stdc" >&6; }
7286 if test $ac_cv_header_stdc = yes; then
7287
7288 cat >>confdefs.h <<\_ACEOF
7289 #define STDC_HEADERS 1
7290 _ACEOF
7291
7292 fi
7293
7294 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7305                   inttypes.h stdint.h unistd.h
7306 do
7307 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7308 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7309 $as_echo_n "checking for $ac_header... " >&6; }
7310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7311   $as_echo_n "(cached) " >&6
7312 else
7313   cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h.  */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h.  */
7319 $ac_includes_default
7320
7321 #include <$ac_header>
7322 _ACEOF
7323 rm -f conftest.$ac_objext
7324 if { (ac_try="$ac_compile"
7325 case "(($ac_try" in
7326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7327   *) ac_try_echo=$ac_try;;
7328 esac
7329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7330 $as_echo "$ac_try_echo") >&5
7331   (eval "$ac_compile") 2>conftest.er1
7332   ac_status=$?
7333   grep -v '^ *+' conftest.er1 >conftest.err
7334   rm -f conftest.er1
7335   cat conftest.err >&5
7336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); } && {
7338          test -z "$ac_c_werror_flag" ||
7339          test ! -s conftest.err
7340        } && test -s conftest.$ac_objext; then
7341   eval "$as_ac_Header=yes"
7342 else
7343   $as_echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7345
7346         eval "$as_ac_Header=no"
7347 fi
7348
7349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7350 fi
7351 ac_res=`eval 'as_val=${'$as_ac_Header'}
7352                  $as_echo "$as_val"'`
7353                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7354 $as_echo "$ac_res" >&6; }
7355 as_val=`eval 'as_val=${'$as_ac_Header'}
7356                  $as_echo "$as_val"'`
7357    if test "x$as_val" = x""yes; then
7358   cat >>confdefs.h <<_ACEOF
7359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7360 _ACEOF
7361
7362 fi
7363
7364 done
7365
7366
7367
7368 for ac_header in dlfcn.h
7369 do
7370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7371 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7372 $as_echo_n "checking for $ac_header... " >&6; }
7373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7374   $as_echo_n "(cached) " >&6
7375 else
7376   cat >conftest.$ac_ext <<_ACEOF
7377 /* confdefs.h.  */
7378 _ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h.  */
7382 $ac_includes_default
7383
7384 #include <$ac_header>
7385 _ACEOF
7386 rm -f conftest.$ac_objext
7387 if { (ac_try="$ac_compile"
7388 case "(($ac_try" in
7389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7390   *) ac_try_echo=$ac_try;;
7391 esac
7392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7393 $as_echo "$ac_try_echo") >&5
7394   (eval "$ac_compile") 2>conftest.er1
7395   ac_status=$?
7396   grep -v '^ *+' conftest.er1 >conftest.err
7397   rm -f conftest.er1
7398   cat conftest.err >&5
7399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400   (exit $ac_status); } && {
7401          test -z "$ac_c_werror_flag" ||
7402          test ! -s conftest.err
7403        } && test -s conftest.$ac_objext; then
7404   eval "$as_ac_Header=yes"
7405 else
7406   $as_echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.$ac_ext >&5
7408
7409         eval "$as_ac_Header=no"
7410 fi
7411
7412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 fi
7414 ac_res=`eval 'as_val=${'$as_ac_Header'}
7415                  $as_echo "$as_val"'`
7416                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7417 $as_echo "$ac_res" >&6; }
7418 as_val=`eval 'as_val=${'$as_ac_Header'}
7419                  $as_echo "$as_val"'`
7420    if test "x$as_val" = x""yes; then
7421   cat >>confdefs.h <<_ACEOF
7422 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7423 _ACEOF
7424
7425 fi
7426
7427 done
7428
7429
7430
7431 # Set options
7432
7433
7434
7435         enable_dlopen=no
7436
7437
7438
7439             # Check whether --enable-shared was given.
7440 if test "${enable_shared+set}" = set; then
7441   enableval=$enable_shared; p=${PACKAGE-default}
7442     case $enableval in
7443     yes) enable_shared=yes ;;
7444     no) enable_shared=no ;;
7445     *)
7446       enable_shared=no
7447       # Look at the argument we got.  We use all the common list separators.
7448       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7449       for pkg in $enableval; do
7450         IFS="$lt_save_ifs"
7451         if test "X$pkg" = "X$p"; then
7452           enable_shared=yes
7453         fi
7454       done
7455       IFS="$lt_save_ifs"
7456       ;;
7457     esac
7458 else
7459   enable_shared=yes
7460 fi
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470   # Check whether --enable-static was given.
7471 if test "${enable_static+set}" = set; then
7472   enableval=$enable_static; p=${PACKAGE-default}
7473     case $enableval in
7474     yes) enable_static=yes ;;
7475     no) enable_static=no ;;
7476     *)
7477      enable_static=no
7478       # Look at the argument we got.  We use all the common list separators.
7479       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7480       for pkg in $enableval; do
7481         IFS="$lt_save_ifs"
7482         if test "X$pkg" = "X$p"; then
7483           enable_static=yes
7484         fi
7485       done
7486       IFS="$lt_save_ifs"
7487       ;;
7488     esac
7489 else
7490   enable_static=yes
7491 fi
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502 # Check whether --with-pic was given.
7503 if test "${with_pic+set}" = set; then
7504   withval=$with_pic; pic_mode="$withval"
7505 else
7506   pic_mode=default
7507 fi
7508
7509
7510 test -z "$pic_mode" && pic_mode=default
7511
7512
7513
7514
7515
7516
7517
7518   # Check whether --enable-fast-install was given.
7519 if test "${enable_fast_install+set}" = set; then
7520   enableval=$enable_fast_install; p=${PACKAGE-default}
7521     case $enableval in
7522     yes) enable_fast_install=yes ;;
7523     no) enable_fast_install=no ;;
7524     *)
7525       enable_fast_install=no
7526       # Look at the argument we got.  We use all the common list separators.
7527       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7528       for pkg in $enableval; do
7529         IFS="$lt_save_ifs"
7530         if test "X$pkg" = "X$p"; then
7531           enable_fast_install=yes
7532         fi
7533       done
7534       IFS="$lt_save_ifs"
7535       ;;
7536     esac
7537 else
7538   enable_fast_install=yes
7539 fi
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551 # This can be used to rebuild libtool when needed
7552 LIBTOOL_DEPS="$ltmain"
7553
7554 # Always use our own libtool.
7555 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581 test -z "$LN_S" && LN_S="ln -s"
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596 if test -n "${ZSH_VERSION+set}" ; then
7597    setopt NO_GLOB_SUBST
7598 fi
7599
7600 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7601 $as_echo_n "checking for objdir... " >&6; }
7602 if test "${lt_cv_objdir+set}" = set; then
7603   $as_echo_n "(cached) " >&6
7604 else
7605   rm -f .libs 2>/dev/null
7606 mkdir .libs 2>/dev/null
7607 if test -d .libs; then
7608   lt_cv_objdir=.libs
7609 else
7610   # MS-DOS does not allow filenames that begin with a dot.
7611   lt_cv_objdir=_libs
7612 fi
7613 rmdir .libs 2>/dev/null
7614 fi
7615 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7616 $as_echo "$lt_cv_objdir" >&6; }
7617 objdir=$lt_cv_objdir
7618
7619
7620
7621
7622
7623 cat >>confdefs.h <<_ACEOF
7624 #define LT_OBJDIR "$lt_cv_objdir/"
7625 _ACEOF
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643 case $host_os in
7644 aix3*)
7645   # AIX sometimes has problems with the GCC collect2 program.  For some
7646   # reason, if we set the COLLECT_NAMES environment variable, the problems
7647   # vanish in a puff of smoke.
7648   if test "X${COLLECT_NAMES+set}" != Xset; then
7649     COLLECT_NAMES=
7650     export COLLECT_NAMES
7651   fi
7652   ;;
7653 esac
7654
7655 # Sed substitution that helps us do robust quoting.  It backslashifies
7656 # metacharacters that are still active within double-quoted strings.
7657 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7658
7659 # Same as above, but do not quote variable references.
7660 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7661
7662 # Sed substitution to delay expansion of an escaped shell variable in a
7663 # double_quote_subst'ed string.
7664 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7665
7666 # Sed substitution to delay expansion of an escaped single quote.
7667 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7668
7669 # Sed substitution to avoid accidental globbing in evaled expressions
7670 no_glob_subst='s/\*/\\\*/g'
7671
7672 # Global variables:
7673 ofile=libtool
7674 can_build_shared=yes
7675
7676 # All known linkers require a `.a' archive for static linking (except MSVC,
7677 # which needs '.lib').
7678 libext=a
7679
7680 with_gnu_ld="$lt_cv_prog_gnu_ld"
7681
7682 old_CC="$CC"
7683 old_CFLAGS="$CFLAGS"
7684
7685 # Set sane defaults for various variables
7686 test -z "$CC" && CC=cc
7687 test -z "$LTCC" && LTCC=$CC
7688 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7689 test -z "$LD" && LD=ld
7690 test -z "$ac_objext" && ac_objext=o
7691
7692 for cc_temp in $compiler""; do
7693   case $cc_temp in
7694     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7695     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7696     \-*) ;;
7697     *) break;;
7698   esac
7699 done
7700 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7701
7702
7703 # Only perform the check for file, if the check method requires it
7704 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7705 case $deplibs_check_method in
7706 file_magic*)
7707   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7708     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7709 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7710 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7711   $as_echo_n "(cached) " >&6
7712 else
7713   case $MAGIC_CMD in
7714 [\\/*] |  ?:[\\/]*)
7715   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7716   ;;
7717 *)
7718   lt_save_MAGIC_CMD="$MAGIC_CMD"
7719   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7720   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7721   for ac_dir in $ac_dummy; do
7722     IFS="$lt_save_ifs"
7723     test -z "$ac_dir" && ac_dir=.
7724     if test -f $ac_dir/${ac_tool_prefix}file; then
7725       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7726       if test -n "$file_magic_test_file"; then
7727         case $deplibs_check_method in
7728         "file_magic "*)
7729           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7730           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7731           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7732             $EGREP "$file_magic_regex" > /dev/null; then
7733             :
7734           else
7735             cat <<_LT_EOF 1>&2
7736
7737 *** Warning: the command libtool uses to detect shared libraries,
7738 *** $file_magic_cmd, produces output that libtool cannot recognize.
7739 *** The result is that libtool may fail to recognize shared libraries
7740 *** as such.  This will affect the creation of libtool libraries that
7741 *** depend on shared libraries, but programs linked with such libtool
7742 *** libraries will work regardless of this problem.  Nevertheless, you
7743 *** may want to report the problem to your system manager and/or to
7744 *** bug-libtool@gnu.org
7745
7746 _LT_EOF
7747           fi ;;
7748         esac
7749       fi
7750       break
7751     fi
7752   done
7753   IFS="$lt_save_ifs"
7754   MAGIC_CMD="$lt_save_MAGIC_CMD"
7755   ;;
7756 esac
7757 fi
7758
7759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7760 if test -n "$MAGIC_CMD"; then
7761   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7762 $as_echo "$MAGIC_CMD" >&6; }
7763 else
7764   { $as_echo "$as_me:$LINENO: result: no" >&5
7765 $as_echo "no" >&6; }
7766 fi
7767
7768
7769
7770
7771
7772 if test -z "$lt_cv_path_MAGIC_CMD"; then
7773   if test -n "$ac_tool_prefix"; then
7774     { $as_echo "$as_me:$LINENO: checking for file" >&5
7775 $as_echo_n "checking for file... " >&6; }
7776 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7777   $as_echo_n "(cached) " >&6
7778 else
7779   case $MAGIC_CMD in
7780 [\\/*] |  ?:[\\/]*)
7781   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7782   ;;
7783 *)
7784   lt_save_MAGIC_CMD="$MAGIC_CMD"
7785   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7786   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7787   for ac_dir in $ac_dummy; do
7788     IFS="$lt_save_ifs"
7789     test -z "$ac_dir" && ac_dir=.
7790     if test -f $ac_dir/file; then
7791       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7792       if test -n "$file_magic_test_file"; then
7793         case $deplibs_check_method in
7794         "file_magic "*)
7795           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7796           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7797           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7798             $EGREP "$file_magic_regex" > /dev/null; then
7799             :
7800           else
7801             cat <<_LT_EOF 1>&2
7802
7803 *** Warning: the command libtool uses to detect shared libraries,
7804 *** $file_magic_cmd, produces output that libtool cannot recognize.
7805 *** The result is that libtool may fail to recognize shared libraries
7806 *** as such.  This will affect the creation of libtool libraries that
7807 *** depend on shared libraries, but programs linked with such libtool
7808 *** libraries will work regardless of this problem.  Nevertheless, you
7809 *** may want to report the problem to your system manager and/or to
7810 *** bug-libtool@gnu.org
7811
7812 _LT_EOF
7813           fi ;;
7814         esac
7815       fi
7816       break
7817     fi
7818   done
7819   IFS="$lt_save_ifs"
7820   MAGIC_CMD="$lt_save_MAGIC_CMD"
7821   ;;
7822 esac
7823 fi
7824
7825 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7826 if test -n "$MAGIC_CMD"; then
7827   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7828 $as_echo "$MAGIC_CMD" >&6; }
7829 else
7830   { $as_echo "$as_me:$LINENO: result: no" >&5
7831 $as_echo "no" >&6; }
7832 fi
7833
7834
7835   else
7836     MAGIC_CMD=:
7837   fi
7838 fi
7839
7840   fi
7841   ;;
7842 esac
7843
7844 # Use C for the default configuration in the libtool script
7845
7846 lt_save_CC="$CC"
7847 ac_ext=c
7848 ac_cpp='$CPP $CPPFLAGS'
7849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7852
7853
7854 # Source file extension for C test sources.
7855 ac_ext=c
7856
7857 # Object file extension for compiled C test sources.
7858 objext=o
7859 objext=$objext
7860
7861 # Code to be used in simple compile tests
7862 lt_simple_compile_test_code="int some_variable = 0;"
7863
7864 # Code to be used in simple link tests
7865 lt_simple_link_test_code='int main(){return(0);}'
7866
7867
7868
7869
7870
7871
7872
7873 # If no C compiler was specified, use CC.
7874 LTCC=${LTCC-"$CC"}
7875
7876 # If no C compiler flags were specified, use CFLAGS.
7877 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7878
7879 # Allow CC to be a program name with arguments.
7880 compiler=$CC
7881
7882 # Save the default compiler, since it gets overwritten when the other
7883 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7884 compiler_DEFAULT=$CC
7885
7886 # save warnings/boilerplate of simple test code
7887 ac_outfile=conftest.$ac_objext
7888 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7889 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7890 _lt_compiler_boilerplate=`cat conftest.err`
7891 $RM conftest*
7892
7893 ac_outfile=conftest.$ac_objext
7894 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7895 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7896 _lt_linker_boilerplate=`cat conftest.err`
7897 $RM -r conftest*
7898
7899
7900 if test -n "$compiler"; then
7901
7902 lt_prog_compiler_no_builtin_flag=
7903
7904 if test "$GCC" = yes; then
7905   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7906
7907   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7908 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7909 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7910   $as_echo_n "(cached) " >&6
7911 else
7912   lt_cv_prog_compiler_rtti_exceptions=no
7913    ac_outfile=conftest.$ac_objext
7914    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7915    lt_compiler_flag="-fno-rtti -fno-exceptions"
7916    # Insert the option either (1) after the last *FLAGS variable, or
7917    # (2) before a word containing "conftest.", or (3) at the end.
7918    # Note that $ac_compile itself does not contain backslashes and begins
7919    # with a dollar sign (not a hyphen), so the echo should work correctly.
7920    # The option is referenced via a variable to avoid confusing sed.
7921    lt_compile=`echo "$ac_compile" | $SED \
7922    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7923    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7924    -e 's:$: $lt_compiler_flag:'`
7925    (eval echo "\"\$as_me:7925: $lt_compile\"" >&5)
7926    (eval "$lt_compile" 2>conftest.err)
7927    ac_status=$?
7928    cat conftest.err >&5
7929    echo "$as_me:7929: \$? = $ac_status" >&5
7930    if (exit $ac_status) && test -s "$ac_outfile"; then
7931      # The compiler can only warn and ignore the option if not recognized
7932      # So say no if there are warnings other than the usual output.
7933      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7934      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7935      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7936        lt_cv_prog_compiler_rtti_exceptions=yes
7937      fi
7938    fi
7939    $RM conftest*
7940
7941 fi
7942 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7943 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7944
7945 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7946     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7947 else
7948     :
7949 fi
7950
7951 fi
7952
7953
7954
7955
7956
7957
7958   lt_prog_compiler_wl=
7959 lt_prog_compiler_pic=
7960 lt_prog_compiler_static=
7961
7962 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7963 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7964
7965   if test "$GCC" = yes; then
7966     lt_prog_compiler_wl='-Wl,'
7967     lt_prog_compiler_static='-static'
7968
7969     case $host_os in
7970       aix*)
7971       # All AIX code is PIC.
7972       if test "$host_cpu" = ia64; then
7973         # AIX 5 now supports IA64 processor
7974         lt_prog_compiler_static='-Bstatic'
7975       fi
7976       ;;
7977
7978     amigaos*)
7979       case $host_cpu in
7980       powerpc)
7981             # see comment about AmigaOS4 .so support
7982             lt_prog_compiler_pic='-fPIC'
7983         ;;
7984       m68k)
7985             # FIXME: we need at least 68020 code to build shared libraries, but
7986             # adding the `-m68020' flag to GCC prevents building anything better,
7987             # like `-m68040'.
7988             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7989         ;;
7990       esac
7991       ;;
7992
7993     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7994       # PIC is the default for these OSes.
7995       ;;
7996
7997     mingw* | cygwin* | pw32* | os2* | cegcc*)
7998       # This hack is so that the source file can tell whether it is being
7999       # built for inclusion in a dll (and should export symbols for example).
8000       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8001       # (--disable-auto-import) libraries
8002       lt_prog_compiler_pic='-DDLL_EXPORT'
8003       ;;
8004
8005     darwin* | rhapsody*)
8006       # PIC is the default on this platform
8007       # Common symbols not allowed in MH_DYLIB files
8008       lt_prog_compiler_pic='-fno-common'
8009       ;;
8010
8011     hpux*)
8012       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8013       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8014       # sets the default TLS model and affects inlining.
8015       case $host_cpu in
8016       hppa*64*)
8017         # +Z the default
8018         ;;
8019       *)
8020         lt_prog_compiler_pic='-fPIC'
8021         ;;
8022       esac
8023       ;;
8024
8025     interix[3-9]*)
8026       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8027       # Instead, we relocate shared libraries at runtime.
8028       ;;
8029
8030     msdosdjgpp*)
8031       # Just because we use GCC doesn't mean we suddenly get shared libraries
8032       # on systems that don't support them.
8033       lt_prog_compiler_can_build_shared=no
8034       enable_shared=no
8035       ;;
8036
8037     *nto* | *qnx*)
8038       # QNX uses GNU C++, but need to define -shared option too, otherwise
8039       # it will coredump.
8040       lt_prog_compiler_pic='-fPIC -shared'
8041       ;;
8042
8043     sysv4*MP*)
8044       if test -d /usr/nec; then
8045         lt_prog_compiler_pic=-Kconform_pic
8046       fi
8047       ;;
8048
8049     *)
8050       lt_prog_compiler_pic='-fPIC'
8051       ;;
8052     esac
8053   else
8054     # PORTME Check for flag to pass linker flags through the system compiler.
8055     case $host_os in
8056     aix*)
8057       lt_prog_compiler_wl='-Wl,'
8058       if test "$host_cpu" = ia64; then
8059         # AIX 5 now supports IA64 processor
8060         lt_prog_compiler_static='-Bstatic'
8061       else
8062         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8063       fi
8064       ;;
8065
8066     mingw* | cygwin* | pw32* | os2* | cegcc*)
8067       # This hack is so that the source file can tell whether it is being
8068       # built for inclusion in a dll (and should export symbols for example).
8069       lt_prog_compiler_pic='-DDLL_EXPORT'
8070       ;;
8071
8072     hpux9* | hpux10* | hpux11*)
8073       lt_prog_compiler_wl='-Wl,'
8074       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8075       # not for PA HP-UX.
8076       case $host_cpu in
8077       hppa*64*|ia64*)
8078         # +Z the default
8079         ;;
8080       *)
8081         lt_prog_compiler_pic='+Z'
8082         ;;
8083       esac
8084       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8085       lt_prog_compiler_static='${wl}-a ${wl}archive'
8086       ;;
8087
8088     irix5* | irix6* | nonstopux*)
8089       lt_prog_compiler_wl='-Wl,'
8090       # PIC (with -KPIC) is the default.
8091       lt_prog_compiler_static='-non_shared'
8092       ;;
8093
8094     linux* | k*bsd*-gnu)
8095       case $cc_basename in
8096       # old Intel for x86_64 which still supported -KPIC.
8097       ecc*)
8098         lt_prog_compiler_wl='-Wl,'
8099         lt_prog_compiler_pic='-KPIC'
8100         lt_prog_compiler_static='-static'
8101         ;;
8102       # icc used to be incompatible with GCC.
8103       # ICC 10 doesn't accept -KPIC any more.
8104       icc* | ifort*)
8105         lt_prog_compiler_wl='-Wl,'
8106         lt_prog_compiler_pic='-fPIC'
8107         lt_prog_compiler_static='-static'
8108         ;;
8109       # Lahey Fortran 8.1.
8110       lf95*)
8111         lt_prog_compiler_wl='-Wl,'
8112         lt_prog_compiler_pic='--shared'
8113         lt_prog_compiler_static='--static'
8114         ;;
8115       pgcc* | pgf77* | pgf90* | pgf95*)
8116         # Portland Group compilers (*not* the Pentium gcc compiler,
8117         # which looks to be a dead project)
8118         lt_prog_compiler_wl='-Wl,'
8119         lt_prog_compiler_pic='-fpic'
8120         lt_prog_compiler_static='-Bstatic'
8121         ;;
8122       ccc*)
8123         lt_prog_compiler_wl='-Wl,'
8124         # All Alpha code is PIC.
8125         lt_prog_compiler_static='-non_shared'
8126         ;;
8127       xl*)
8128         # IBM XL C 8.0/Fortran 10.1 on PPC
8129         lt_prog_compiler_wl='-Wl,'
8130         lt_prog_compiler_pic='-qpic'
8131         lt_prog_compiler_static='-qstaticlink'
8132         ;;
8133       *)
8134         case `$CC -V 2>&1 | sed 5q` in
8135         *Sun\ C*)
8136           # Sun C 5.9
8137           lt_prog_compiler_pic='-KPIC'
8138           lt_prog_compiler_static='-Bstatic'
8139           lt_prog_compiler_wl='-Wl,'
8140           ;;
8141         *Sun\ F*)
8142           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8143           lt_prog_compiler_pic='-KPIC'
8144           lt_prog_compiler_static='-Bstatic'
8145           lt_prog_compiler_wl=''
8146           ;;
8147         esac
8148         ;;
8149       esac
8150       ;;
8151
8152     newsos6)
8153       lt_prog_compiler_pic='-KPIC'
8154       lt_prog_compiler_static='-Bstatic'
8155       ;;
8156
8157     *nto* | *qnx*)
8158       # QNX uses GNU C++, but need to define -shared option too, otherwise
8159       # it will coredump.
8160       lt_prog_compiler_pic='-fPIC -shared'
8161       ;;
8162
8163     osf3* | osf4* | osf5*)
8164       lt_prog_compiler_wl='-Wl,'
8165       # All OSF/1 code is PIC.
8166       lt_prog_compiler_static='-non_shared'
8167       ;;
8168
8169     rdos*)
8170       lt_prog_compiler_static='-non_shared'
8171       ;;
8172
8173     solaris*)
8174       lt_prog_compiler_pic='-KPIC'
8175       lt_prog_compiler_static='-Bstatic'
8176       case $cc_basename in
8177       f77* | f90* | f95*)
8178         lt_prog_compiler_wl='-Qoption ld ';;
8179       *)
8180         lt_prog_compiler_wl='-Wl,';;
8181       esac
8182       ;;
8183
8184     sunos4*)
8185       lt_prog_compiler_wl='-Qoption ld '
8186       lt_prog_compiler_pic='-PIC'
8187       lt_prog_compiler_static='-Bstatic'
8188       ;;
8189
8190     sysv4 | sysv4.2uw2* | sysv4.3*)
8191       lt_prog_compiler_wl='-Wl,'
8192       lt_prog_compiler_pic='-KPIC'
8193       lt_prog_compiler_static='-Bstatic'
8194       ;;
8195
8196     sysv4*MP*)
8197       if test -d /usr/nec ;then
8198         lt_prog_compiler_pic='-Kconform_pic'
8199         lt_prog_compiler_static='-Bstatic'
8200       fi
8201       ;;
8202
8203     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8204       lt_prog_compiler_wl='-Wl,'
8205       lt_prog_compiler_pic='-KPIC'
8206       lt_prog_compiler_static='-Bstatic'
8207       ;;
8208
8209     unicos*)
8210       lt_prog_compiler_wl='-Wl,'
8211       lt_prog_compiler_can_build_shared=no
8212       ;;
8213
8214     uts4*)
8215       lt_prog_compiler_pic='-pic'
8216       lt_prog_compiler_static='-Bstatic'
8217       ;;
8218
8219     *)
8220       lt_prog_compiler_can_build_shared=no
8221       ;;
8222     esac
8223   fi
8224
8225 case $host_os in
8226   # For platforms which do not support PIC, -DPIC is meaningless:
8227   *djgpp*)
8228     lt_prog_compiler_pic=
8229     ;;
8230   *)
8231     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8232     ;;
8233 esac
8234 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8235 $as_echo "$lt_prog_compiler_pic" >&6; }
8236
8237
8238
8239
8240
8241
8242 #
8243 # Check to make sure the PIC flag actually works.
8244 #
8245 if test -n "$lt_prog_compiler_pic"; then
8246   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8247 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8248 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8249   $as_echo_n "(cached) " >&6
8250 else
8251   lt_cv_prog_compiler_pic_works=no
8252    ac_outfile=conftest.$ac_objext
8253    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8254    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8255    # Insert the option either (1) after the last *FLAGS variable, or
8256    # (2) before a word containing "conftest.", or (3) at the end.
8257    # Note that $ac_compile itself does not contain backslashes and begins
8258    # with a dollar sign (not a hyphen), so the echo should work correctly.
8259    # The option is referenced via a variable to avoid confusing sed.
8260    lt_compile=`echo "$ac_compile" | $SED \
8261    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8262    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8263    -e 's:$: $lt_compiler_flag:'`
8264    (eval echo "\"\$as_me:8264: $lt_compile\"" >&5)
8265    (eval "$lt_compile" 2>conftest.err)
8266    ac_status=$?
8267    cat conftest.err >&5
8268    echo "$as_me:8268: \$? = $ac_status" >&5
8269    if (exit $ac_status) && test -s "$ac_outfile"; then
8270      # The compiler can only warn and ignore the option if not recognized
8271      # So say no if there are warnings other than the usual output.
8272      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8273      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8274      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8275        lt_cv_prog_compiler_pic_works=yes
8276      fi
8277    fi
8278    $RM conftest*
8279
8280 fi
8281 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8282 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8283
8284 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8285     case $lt_prog_compiler_pic in
8286      "" | " "*) ;;
8287      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8288      esac
8289 else
8290     lt_prog_compiler_pic=
8291      lt_prog_compiler_can_build_shared=no
8292 fi
8293
8294 fi
8295
8296
8297
8298
8299
8300
8301 #
8302 # Check to make sure the static flag actually works.
8303 #
8304 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8305 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8306 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8307 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8308   $as_echo_n "(cached) " >&6
8309 else
8310   lt_cv_prog_compiler_static_works=no
8311    save_LDFLAGS="$LDFLAGS"
8312    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8313    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8314    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8315      # The linker can only warn and ignore the option if not recognized
8316      # So say no if there are warnings
8317      if test -s conftest.err; then
8318        # Append any errors to the config.log.
8319        cat conftest.err 1>&5
8320        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8321        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8322        if diff conftest.exp conftest.er2 >/dev/null; then
8323          lt_cv_prog_compiler_static_works=yes
8324        fi
8325      else
8326        lt_cv_prog_compiler_static_works=yes
8327      fi
8328    fi
8329    $RM -r conftest*
8330    LDFLAGS="$save_LDFLAGS"
8331
8332 fi
8333 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8334 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8335
8336 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8337     :
8338 else
8339     lt_prog_compiler_static=
8340 fi
8341
8342
8343
8344
8345
8346
8347
8348   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8349 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8350 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8351   $as_echo_n "(cached) " >&6
8352 else
8353   lt_cv_prog_compiler_c_o=no
8354    $RM -r conftest 2>/dev/null
8355    mkdir conftest
8356    cd conftest
8357    mkdir out
8358    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8359
8360    lt_compiler_flag="-o out/conftest2.$ac_objext"
8361    # Insert the option either (1) after the last *FLAGS variable, or
8362    # (2) before a word containing "conftest.", or (3) at the end.
8363    # Note that $ac_compile itself does not contain backslashes and begins
8364    # with a dollar sign (not a hyphen), so the echo should work correctly.
8365    lt_compile=`echo "$ac_compile" | $SED \
8366    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8367    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8368    -e 's:$: $lt_compiler_flag:'`
8369    (eval echo "\"\$as_me:8369: $lt_compile\"" >&5)
8370    (eval "$lt_compile" 2>out/conftest.err)
8371    ac_status=$?
8372    cat out/conftest.err >&5
8373    echo "$as_me:8373: \$? = $ac_status" >&5
8374    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8375    then
8376      # The compiler can only warn and ignore the option if not recognized
8377      # So say no if there are warnings
8378      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8379      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8380      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8381        lt_cv_prog_compiler_c_o=yes
8382      fi
8383    fi
8384    chmod u+w . 2>&5
8385    $RM conftest*
8386    # SGI C++ compiler will create directory out/ii_files/ for
8387    # template instantiation
8388    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8389    $RM out/* && rmdir out
8390    cd ..
8391    $RM -r conftest
8392    $RM conftest*
8393
8394 fi
8395 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8396 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8397
8398
8399
8400
8401
8402
8403   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8405 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8406   $as_echo_n "(cached) " >&6
8407 else
8408   lt_cv_prog_compiler_c_o=no
8409    $RM -r conftest 2>/dev/null
8410    mkdir conftest
8411    cd conftest
8412    mkdir out
8413    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8414
8415    lt_compiler_flag="-o out/conftest2.$ac_objext"
8416    # Insert the option either (1) after the last *FLAGS variable, or
8417    # (2) before a word containing "conftest.", or (3) at the end.
8418    # Note that $ac_compile itself does not contain backslashes and begins
8419    # with a dollar sign (not a hyphen), so the echo should work correctly.
8420    lt_compile=`echo "$ac_compile" | $SED \
8421    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8422    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8423    -e 's:$: $lt_compiler_flag:'`
8424    (eval echo "\"\$as_me:8424: $lt_compile\"" >&5)
8425    (eval "$lt_compile" 2>out/conftest.err)
8426    ac_status=$?
8427    cat out/conftest.err >&5
8428    echo "$as_me:8428: \$? = $ac_status" >&5
8429    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8430    then
8431      # The compiler can only warn and ignore the option if not recognized
8432      # So say no if there are warnings
8433      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8434      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8435      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8436        lt_cv_prog_compiler_c_o=yes
8437      fi
8438    fi
8439    chmod u+w . 2>&5
8440    $RM conftest*
8441    # SGI C++ compiler will create directory out/ii_files/ for
8442    # template instantiation
8443    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8444    $RM out/* && rmdir out
8445    cd ..
8446    $RM -r conftest
8447    $RM conftest*
8448
8449 fi
8450 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8451 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8452
8453
8454
8455
8456 hard_links="nottested"
8457 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8458   # do not overwrite the value of need_locks provided by the user
8459   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8460 $as_echo_n "checking if we can lock with hard links... " >&6; }
8461   hard_links=yes
8462   $RM conftest*
8463   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8464   touch conftest.a
8465   ln conftest.a conftest.b 2>&5 || hard_links=no
8466   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8467   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8468 $as_echo "$hard_links" >&6; }
8469   if test "$hard_links" = no; then
8470     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8471 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8472     need_locks=warn
8473   fi
8474 else
8475   need_locks=no
8476 fi
8477
8478
8479
8480
8481
8482
8483   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8484 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8485
8486   runpath_var=
8487   allow_undefined_flag=
8488   always_export_symbols=no
8489   archive_cmds=
8490   archive_expsym_cmds=
8491   compiler_needs_object=no
8492   enable_shared_with_static_runtimes=no
8493   export_dynamic_flag_spec=
8494   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8495   hardcode_automatic=no
8496   hardcode_direct=no
8497   hardcode_direct_absolute=no
8498   hardcode_libdir_flag_spec=
8499   hardcode_libdir_flag_spec_ld=
8500   hardcode_libdir_separator=
8501   hardcode_minus_L=no
8502   hardcode_shlibpath_var=unsupported
8503   inherit_rpath=no
8504   link_all_deplibs=unknown
8505   module_cmds=
8506   module_expsym_cmds=
8507   old_archive_from_new_cmds=
8508   old_archive_from_expsyms_cmds=
8509   thread_safe_flag_spec=
8510   whole_archive_flag_spec=
8511   # include_expsyms should be a list of space-separated symbols to be *always*
8512   # included in the symbol list
8513   include_expsyms=
8514   # exclude_expsyms can be an extended regexp of symbols to exclude
8515   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8516   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8517   # as well as any symbol that contains `d'.
8518   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8519   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8520   # platforms (ab)use it in PIC code, but their linkers get confused if
8521   # the symbol is explicitly referenced.  Since portable code cannot
8522   # rely on this symbol name, it's probably fine to never include it in
8523   # preloaded symbol tables.
8524   # Exclude shared library initialization/finalization symbols.
8525   extract_expsyms_cmds=
8526
8527   case $host_os in
8528   cygwin* | mingw* | pw32* | cegcc*)
8529     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8530     # When not using gcc, we currently assume that we are using
8531     # Microsoft Visual C++.
8532     if test "$GCC" != yes; then
8533       with_gnu_ld=no
8534     fi
8535     ;;
8536   interix*)
8537     # we just hope/assume this is gcc and not c89 (= MSVC++)
8538     with_gnu_ld=yes
8539     ;;
8540   openbsd*)
8541     with_gnu_ld=no
8542     ;;
8543   esac
8544
8545   ld_shlibs=yes
8546   if test "$with_gnu_ld" = yes; then
8547     # If archive_cmds runs LD, not CC, wlarc should be empty
8548     wlarc='${wl}'
8549
8550     # Set some defaults for GNU ld with shared library support. These
8551     # are reset later if shared libraries are not supported. Putting them
8552     # here allows them to be overridden if necessary.
8553     runpath_var=LD_RUN_PATH
8554     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8555     export_dynamic_flag_spec='${wl}--export-dynamic'
8556     # ancient GNU ld didn't support --whole-archive et. al.
8557     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8558       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8559     else
8560       whole_archive_flag_spec=
8561     fi
8562     supports_anon_versioning=no
8563     case `$LD -v 2>&1` in
8564       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8565       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8566       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8567       *\ 2.11.*) ;; # other 2.11 versions
8568       *) supports_anon_versioning=yes ;;
8569     esac
8570
8571     # See if GNU ld supports shared libraries.
8572     case $host_os in
8573     aix[3-9]*)
8574       # On AIX/PPC, the GNU linker is very broken
8575       if test "$host_cpu" != ia64; then
8576         ld_shlibs=no
8577         cat <<_LT_EOF 1>&2
8578
8579 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8580 *** to be unable to reliably create shared libraries on AIX.
8581 *** Therefore, libtool is disabling shared libraries support.  If you
8582 *** really care for shared libraries, you may want to modify your PATH
8583 *** so that a non-GNU linker is found, and then restart.
8584
8585 _LT_EOF
8586       fi
8587       ;;
8588
8589     amigaos*)
8590       case $host_cpu in
8591       powerpc)
8592             # see comment about AmigaOS4 .so support
8593             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8594             archive_expsym_cmds=''
8595         ;;
8596       m68k)
8597             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)'
8598             hardcode_libdir_flag_spec='-L$libdir'
8599             hardcode_minus_L=yes
8600         ;;
8601       esac
8602       ;;
8603
8604     beos*)
8605       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8606         allow_undefined_flag=unsupported
8607         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8608         # support --undefined.  This deserves some investigation.  FIXME
8609         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8610       else
8611         ld_shlibs=no
8612       fi
8613       ;;
8614
8615     cygwin* | mingw* | pw32* | cegcc*)
8616       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8617       # as there is no search path for DLLs.
8618       hardcode_libdir_flag_spec='-L$libdir'
8619       allow_undefined_flag=unsupported
8620       always_export_symbols=no
8621       enable_shared_with_static_runtimes=yes
8622       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8623
8624       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8625         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8626         # If the export-symbols file already is a .def file (1st line
8627         # is EXPORTS), use it as is; otherwise, prepend...
8628         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8629           cp $export_symbols $output_objdir/$soname.def;
8630         else
8631           echo EXPORTS > $output_objdir/$soname.def;
8632           cat $export_symbols >> $output_objdir/$soname.def;
8633         fi~
8634         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8635       else
8636         ld_shlibs=no
8637       fi
8638       ;;
8639
8640     interix[3-9]*)
8641       hardcode_direct=no
8642       hardcode_shlibpath_var=no
8643       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8644       export_dynamic_flag_spec='${wl}-E'
8645       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8646       # Instead, shared libraries are loaded at an image base (0x10000000 by
8647       # default) and relocated if they conflict, which is a slow very memory
8648       # consuming and fragmenting process.  To avoid this, we pick a random,
8649       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8650       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8651       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8652       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'
8653       ;;
8654
8655     gnu* | linux* | tpf* | k*bsd*-gnu)
8656       tmp_diet=no
8657       if test "$host_os" = linux-dietlibc; then
8658         case $cc_basename in
8659           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8660         esac
8661       fi
8662       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8663          && test "$tmp_diet" = no
8664       then
8665         tmp_addflag=
8666         tmp_sharedflag='-shared'
8667         case $cc_basename,$host_cpu in
8668         pgcc*)                          # Portland Group C compiler
8669           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8670           tmp_addflag=' $pic_flag'
8671           ;;
8672         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8673           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8674           tmp_addflag=' $pic_flag -Mnomain' ;;
8675         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8676           tmp_addflag=' -i_dynamic' ;;
8677         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8678           tmp_addflag=' -i_dynamic -nofor_main' ;;
8679         ifc* | ifort*)                  # Intel Fortran compiler
8680           tmp_addflag=' -nofor_main' ;;
8681         lf95*)                          # Lahey Fortran 8.1
8682           whole_archive_flag_spec=
8683           tmp_sharedflag='--shared' ;;
8684         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8685           tmp_sharedflag='-qmkshrobj'
8686           tmp_addflag= ;;
8687         esac
8688         case `$CC -V 2>&1 | sed 5q` in
8689         *Sun\ C*)                       # Sun C 5.9
8690           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8691           compiler_needs_object=yes
8692           tmp_sharedflag='-G' ;;
8693         *Sun\ F*)                       # Sun Fortran 8.3
8694           tmp_sharedflag='-G' ;;
8695         esac
8696         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8697
8698         if test "x$supports_anon_versioning" = xyes; then
8699           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8700             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8701             echo "local: *; };" >> $output_objdir/$libname.ver~
8702             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8703         fi
8704
8705         case $cc_basename in
8706         xlf*)
8707           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8708           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8709           hardcode_libdir_flag_spec=
8710           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8711           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8712           if test "x$supports_anon_versioning" = xyes; then
8713             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8714               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8715               echo "local: *; };" >> $output_objdir/$libname.ver~
8716               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8717           fi
8718           ;;
8719         esac
8720       else
8721         ld_shlibs=no
8722       fi
8723       ;;
8724
8725     netbsd*)
8726       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8727         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8728         wlarc=
8729       else
8730         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8732       fi
8733       ;;
8734
8735     solaris*)
8736       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8737         ld_shlibs=no
8738         cat <<_LT_EOF 1>&2
8739
8740 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8741 *** create shared libraries on Solaris systems.  Therefore, libtool
8742 *** is disabling shared libraries support.  We urge you to upgrade GNU
8743 *** binutils to release 2.9.1 or newer.  Another option is to modify
8744 *** your PATH or compiler configuration so that the native linker is
8745 *** used, and then restart.
8746
8747 _LT_EOF
8748       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8749         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8750         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8751       else
8752         ld_shlibs=no
8753       fi
8754       ;;
8755
8756     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8757       case `$LD -v 2>&1` in
8758         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8759         ld_shlibs=no
8760         cat <<_LT_EOF 1>&2
8761
8762 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8763 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8764 *** is disabling shared libraries support.  We urge you to upgrade GNU
8765 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8766 *** your PATH or compiler configuration so that the native linker is
8767 *** used, and then restart.
8768
8769 _LT_EOF
8770         ;;
8771         *)
8772           # For security reasons, it is highly recommended that you always
8773           # use absolute paths for naming shared libraries, and exclude the
8774           # DT_RUNPATH tag from executables and libraries.  But doing so
8775           # requires that you compile everything twice, which is a pain.
8776           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8777             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8778             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8779             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8780           else
8781             ld_shlibs=no
8782           fi
8783         ;;
8784       esac
8785       ;;
8786
8787     sunos4*)
8788       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8789       wlarc=
8790       hardcode_direct=yes
8791       hardcode_shlibpath_var=no
8792       ;;
8793
8794     *)
8795       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8796         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8797         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8798       else
8799         ld_shlibs=no
8800       fi
8801       ;;
8802     esac
8803
8804     if test "$ld_shlibs" = no; then
8805       runpath_var=
8806       hardcode_libdir_flag_spec=
8807       export_dynamic_flag_spec=
8808       whole_archive_flag_spec=
8809     fi
8810   else
8811     # PORTME fill in a description of your system's linker (not GNU ld)
8812     case $host_os in
8813     aix3*)
8814       allow_undefined_flag=unsupported
8815       always_export_symbols=yes
8816       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'
8817       # Note: this linker hardcodes the directories in LIBPATH if there
8818       # are no directories specified by -L.
8819       hardcode_minus_L=yes
8820       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8821         # Neither direct hardcoding nor static linking is supported with a
8822         # broken collect2.
8823         hardcode_direct=unsupported
8824       fi
8825       ;;
8826
8827     aix[4-9]*)
8828       if test "$host_cpu" = ia64; then
8829         # On IA64, the linker does run time linking by default, so we don't
8830         # have to do anything special.
8831         aix_use_runtimelinking=no
8832         exp_sym_flag='-Bexport'
8833         no_entry_flag=""
8834       else
8835         # If we're using GNU nm, then we don't want the "-C" option.
8836         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8837         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8838           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8839         else
8840           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'
8841         fi
8842         aix_use_runtimelinking=no
8843
8844         # Test if we are trying to use run time linking or normal
8845         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8846         # need to do runtime linking.
8847         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8848           for ld_flag in $LDFLAGS; do
8849           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8850             aix_use_runtimelinking=yes
8851             break
8852           fi
8853           done
8854           ;;
8855         esac
8856
8857         exp_sym_flag='-bexport'
8858         no_entry_flag='-bnoentry'
8859       fi
8860
8861       # When large executables or shared objects are built, AIX ld can
8862       # have problems creating the table of contents.  If linking a library
8863       # or program results in "error TOC overflow" add -mminimal-toc to
8864       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8865       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8866
8867       archive_cmds=''
8868       hardcode_direct=yes
8869       hardcode_direct_absolute=yes
8870       hardcode_libdir_separator=':'
8871       link_all_deplibs=yes
8872       file_list_spec='${wl}-f,'
8873
8874       if test "$GCC" = yes; then
8875         case $host_os in aix4.[012]|aix4.[012].*)
8876         # We only want to do this on AIX 4.2 and lower, the check
8877         # below for broken collect2 doesn't work under 4.3+
8878           collect2name=`${CC} -print-prog-name=collect2`
8879           if test -f "$collect2name" &&
8880            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8881           then
8882           # We have reworked collect2
8883           :
8884           else
8885           # We have old collect2
8886           hardcode_direct=unsupported
8887           # It fails to find uninstalled libraries when the uninstalled
8888           # path is not listed in the libpath.  Setting hardcode_minus_L
8889           # to unsupported forces relinking
8890           hardcode_minus_L=yes
8891           hardcode_libdir_flag_spec='-L$libdir'
8892           hardcode_libdir_separator=
8893           fi
8894           ;;
8895         esac
8896         shared_flag='-shared'
8897         if test "$aix_use_runtimelinking" = yes; then
8898           shared_flag="$shared_flag "'${wl}-G'
8899         fi
8900       else
8901         # not using gcc
8902         if test "$host_cpu" = ia64; then
8903         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8904         # chokes on -Wl,-G. The following line is correct:
8905           shared_flag='-G'
8906         else
8907           if test "$aix_use_runtimelinking" = yes; then
8908             shared_flag='${wl}-G'
8909           else
8910             shared_flag='${wl}-bM:SRE'
8911           fi
8912         fi
8913       fi
8914
8915       export_dynamic_flag_spec='${wl}-bexpall'
8916       # It seems that -bexpall does not export symbols beginning with
8917       # underscore (_), so it is better to generate a list of symbols to export.
8918       always_export_symbols=yes
8919       if test "$aix_use_runtimelinking" = yes; then
8920         # Warning - without using the other runtime loading flags (-brtl),
8921         # -berok will link without error, but may produce a broken library.
8922         allow_undefined_flag='-berok'
8923         # Determine the default libpath from the value encoded in an
8924         # empty executable.
8925         cat >conftest.$ac_ext <<_ACEOF
8926 /* confdefs.h.  */
8927 _ACEOF
8928 cat confdefs.h >>conftest.$ac_ext
8929 cat >>conftest.$ac_ext <<_ACEOF
8930 /* end confdefs.h.  */
8931
8932 int
8933 main ()
8934 {
8935
8936   ;
8937   return 0;
8938 }
8939 _ACEOF
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (ac_try="$ac_link"
8942 case "(($ac_try" in
8943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944   *) ac_try_echo=$ac_try;;
8945 esac
8946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8947 $as_echo "$ac_try_echo") >&5
8948   (eval "$ac_link") 2>conftest.er1
8949   ac_status=$?
8950   grep -v '^ *+' conftest.er1 >conftest.err
8951   rm -f conftest.er1
8952   cat conftest.err >&5
8953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); } && {
8955          test -z "$ac_c_werror_flag" ||
8956          test ! -s conftest.err
8957        } && test -s conftest$ac_exeext && {
8958          test "$cross_compiling" = yes ||
8959          $as_test_x conftest$ac_exeext
8960        }; then
8961
8962 lt_aix_libpath_sed='
8963     /Import File Strings/,/^$/ {
8964         /^0/ {
8965             s/^0  *\(.*\)$/\1/
8966             p
8967         }
8968     }'
8969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8970 # Check for a 64-bit object if we didn't find anything.
8971 if test -z "$aix_libpath"; then
8972   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8973 fi
8974 else
8975   $as_echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8977
8978
8979 fi
8980
8981 rm -rf conftest.dSYM
8982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8983       conftest$ac_exeext conftest.$ac_ext
8984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8985
8986         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8987         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8988       else
8989         if test "$host_cpu" = ia64; then
8990           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8991           allow_undefined_flag="-z nodefs"
8992           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"
8993         else
8994          # Determine the default libpath from the value encoded in an
8995          # empty executable.
8996          cat >conftest.$ac_ext <<_ACEOF
8997 /* confdefs.h.  */
8998 _ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h.  */
9002
9003 int
9004 main ()
9005 {
9006
9007   ;
9008   return 0;
9009 }
9010 _ACEOF
9011 rm -f conftest.$ac_objext conftest$ac_exeext
9012 if { (ac_try="$ac_link"
9013 case "(($ac_try" in
9014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015   *) ac_try_echo=$ac_try;;
9016 esac
9017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9018 $as_echo "$ac_try_echo") >&5
9019   (eval "$ac_link") 2>conftest.er1
9020   ac_status=$?
9021   grep -v '^ *+' conftest.er1 >conftest.err
9022   rm -f conftest.er1
9023   cat conftest.err >&5
9024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025   (exit $ac_status); } && {
9026          test -z "$ac_c_werror_flag" ||
9027          test ! -s conftest.err
9028        } && test -s conftest$ac_exeext && {
9029          test "$cross_compiling" = yes ||
9030          $as_test_x conftest$ac_exeext
9031        }; then
9032
9033 lt_aix_libpath_sed='
9034     /Import File Strings/,/^$/ {
9035         /^0/ {
9036             s/^0  *\(.*\)$/\1/
9037             p
9038         }
9039     }'
9040 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9041 # Check for a 64-bit object if we didn't find anything.
9042 if test -z "$aix_libpath"; then
9043   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9044 fi
9045 else
9046   $as_echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9048
9049
9050 fi
9051
9052 rm -rf conftest.dSYM
9053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9054       conftest$ac_exeext conftest.$ac_ext
9055 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9056
9057          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9058           # Warning - without using the other run time loading flags,
9059           # -berok will link without error, but may produce a broken library.
9060           no_undefined_flag=' ${wl}-bernotok'
9061           allow_undefined_flag=' ${wl}-berok'
9062           # Exported symbols can be pulled into shared objects from archives
9063           whole_archive_flag_spec='$convenience'
9064           archive_cmds_need_lc=yes
9065           # This is similar to how AIX traditionally builds its shared libraries.
9066           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'
9067         fi
9068       fi
9069       ;;
9070
9071     amigaos*)
9072       case $host_cpu in
9073       powerpc)
9074             # see comment about AmigaOS4 .so support
9075             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9076             archive_expsym_cmds=''
9077         ;;
9078       m68k)
9079             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)'
9080             hardcode_libdir_flag_spec='-L$libdir'
9081             hardcode_minus_L=yes
9082         ;;
9083       esac
9084       ;;
9085
9086     bsdi[45]*)
9087       export_dynamic_flag_spec=-rdynamic
9088       ;;
9089
9090     cygwin* | mingw* | pw32* | cegcc*)
9091       # When not using gcc, we currently assume that we are using
9092       # Microsoft Visual C++.
9093       # hardcode_libdir_flag_spec is actually meaningless, as there is
9094       # no search path for DLLs.
9095       hardcode_libdir_flag_spec=' '
9096       allow_undefined_flag=unsupported
9097       # Tell ltmain to make .lib files, not .a files.
9098       libext=lib
9099       # Tell ltmain to make .dll files, not .so files.
9100       shrext_cmds=".dll"
9101       # FIXME: Setting linknames here is a bad hack.
9102       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9103       # The linker will automatically build a .lib file if we build a DLL.
9104       old_archive_from_new_cmds='true'
9105       # FIXME: Should let the user specify the lib program.
9106       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9107       fix_srcfile_path='`cygpath -w "$srcfile"`'
9108       enable_shared_with_static_runtimes=yes
9109       ;;
9110
9111     darwin* | rhapsody*)
9112
9113
9114   archive_cmds_need_lc=no
9115   hardcode_direct=no
9116   hardcode_automatic=yes
9117   hardcode_shlibpath_var=unsupported
9118   whole_archive_flag_spec=''
9119   link_all_deplibs=yes
9120   allow_undefined_flag="$_lt_dar_allow_undefined"
9121   case $cc_basename in
9122      ifort*) _lt_dar_can_shared=yes ;;
9123      *) _lt_dar_can_shared=$GCC ;;
9124   esac
9125   if test "$_lt_dar_can_shared" = "yes"; then
9126     output_verbose_link_cmd=echo
9127     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9128     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9129     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}"
9130     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}"
9131
9132   else
9133   ld_shlibs=no
9134   fi
9135
9136       ;;
9137
9138     dgux*)
9139       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9140       hardcode_libdir_flag_spec='-L$libdir'
9141       hardcode_shlibpath_var=no
9142       ;;
9143
9144     freebsd1*)
9145       ld_shlibs=no
9146       ;;
9147
9148     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9149     # support.  Future versions do this automatically, but an explicit c++rt0.o
9150     # does not break anything, and helps significantly (at the cost of a little
9151     # extra space).
9152     freebsd2.2*)
9153       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9154       hardcode_libdir_flag_spec='-R$libdir'
9155       hardcode_direct=yes
9156       hardcode_shlibpath_var=no
9157       ;;
9158
9159     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9160     freebsd2*)
9161       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9162       hardcode_direct=yes
9163       hardcode_minus_L=yes
9164       hardcode_shlibpath_var=no
9165       ;;
9166
9167     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9168     freebsd* | dragonfly*)
9169       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9170       hardcode_libdir_flag_spec='-R$libdir'
9171       hardcode_direct=yes
9172       hardcode_shlibpath_var=no
9173       ;;
9174
9175     hpux9*)
9176       if test "$GCC" = yes; then
9177         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9178       else
9179         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'
9180       fi
9181       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9182       hardcode_libdir_separator=:
9183       hardcode_direct=yes
9184
9185       # hardcode_minus_L: Not really in the search PATH,
9186       # but as the default location of the library.
9187       hardcode_minus_L=yes
9188       export_dynamic_flag_spec='${wl}-E'
9189       ;;
9190
9191     hpux10*)
9192       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9193         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9194       else
9195         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9196       fi
9197       if test "$with_gnu_ld" = no; then
9198         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9199         hardcode_libdir_flag_spec_ld='+b $libdir'
9200         hardcode_libdir_separator=:
9201         hardcode_direct=yes
9202         hardcode_direct_absolute=yes
9203         export_dynamic_flag_spec='${wl}-E'
9204         # hardcode_minus_L: Not really in the search PATH,
9205         # but as the default location of the library.
9206         hardcode_minus_L=yes
9207       fi
9208       ;;
9209
9210     hpux11*)
9211       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9212         case $host_cpu in
9213         hppa*64*)
9214           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9215           ;;
9216         ia64*)
9217           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9218           ;;
9219         *)
9220           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9221           ;;
9222         esac
9223       else
9224         case $host_cpu in
9225         hppa*64*)
9226           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9227           ;;
9228         ia64*)
9229           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9230           ;;
9231         *)
9232           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9233           ;;
9234         esac
9235       fi
9236       if test "$with_gnu_ld" = no; then
9237         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9238         hardcode_libdir_separator=:
9239
9240         case $host_cpu in
9241         hppa*64*|ia64*)
9242           hardcode_direct=no
9243           hardcode_shlibpath_var=no
9244           ;;
9245         *)
9246           hardcode_direct=yes
9247           hardcode_direct_absolute=yes
9248           export_dynamic_flag_spec='${wl}-E'
9249
9250           # hardcode_minus_L: Not really in the search PATH,
9251           # but as the default location of the library.
9252           hardcode_minus_L=yes
9253           ;;
9254         esac
9255       fi
9256       ;;
9257
9258     irix5* | irix6* | nonstopux*)
9259       if test "$GCC" = yes; then
9260         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9261         # Try to use the -exported_symbol ld option, if it does not
9262         # work, assume that -exports_file does not work either and
9263         # implicitly export all symbols.
9264         save_LDFLAGS="$LDFLAGS"
9265         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9266         cat >conftest.$ac_ext <<_ACEOF
9267 int foo(void) {}
9268 _ACEOF
9269 rm -f conftest.$ac_objext conftest$ac_exeext
9270 if { (ac_try="$ac_link"
9271 case "(($ac_try" in
9272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273   *) ac_try_echo=$ac_try;;
9274 esac
9275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9276 $as_echo "$ac_try_echo") >&5
9277   (eval "$ac_link") 2>conftest.er1
9278   ac_status=$?
9279   grep -v '^ *+' conftest.er1 >conftest.err
9280   rm -f conftest.er1
9281   cat conftest.err >&5
9282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); } && {
9284          test -z "$ac_c_werror_flag" ||
9285          test ! -s conftest.err
9286        } && test -s conftest$ac_exeext && {
9287          test "$cross_compiling" = yes ||
9288          $as_test_x conftest$ac_exeext
9289        }; then
9290   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9291
9292 else
9293   $as_echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9295
9296
9297 fi
9298
9299 rm -rf conftest.dSYM
9300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9301       conftest$ac_exeext conftest.$ac_ext
9302         LDFLAGS="$save_LDFLAGS"
9303       else
9304         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9305         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9306       fi
9307       archive_cmds_need_lc='no'
9308       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9309       hardcode_libdir_separator=:
9310       inherit_rpath=yes
9311       link_all_deplibs=yes
9312       ;;
9313
9314     netbsd*)
9315       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9316         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9317       else
9318         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9319       fi
9320       hardcode_libdir_flag_spec='-R$libdir'
9321       hardcode_direct=yes
9322       hardcode_shlibpath_var=no
9323       ;;
9324
9325     newsos6)
9326       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9327       hardcode_direct=yes
9328       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9329       hardcode_libdir_separator=:
9330       hardcode_shlibpath_var=no
9331       ;;
9332
9333     *nto* | *qnx*)
9334       ;;
9335
9336     openbsd*)
9337       if test -f /usr/libexec/ld.so; then
9338         hardcode_direct=yes
9339         hardcode_shlibpath_var=no
9340         hardcode_direct_absolute=yes
9341         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9342           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9343           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9344           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9345           export_dynamic_flag_spec='${wl}-E'
9346         else
9347           case $host_os in
9348            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9349              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9350              hardcode_libdir_flag_spec='-R$libdir'
9351              ;;
9352            *)
9353              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9354              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9355              ;;
9356           esac
9357         fi
9358       else
9359         ld_shlibs=no
9360       fi
9361       ;;
9362
9363     os2*)
9364       hardcode_libdir_flag_spec='-L$libdir'
9365       hardcode_minus_L=yes
9366       allow_undefined_flag=unsupported
9367       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'
9368       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9369       ;;
9370
9371     osf3*)
9372       if test "$GCC" = yes; then
9373         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9374         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9375       else
9376         allow_undefined_flag=' -expect_unresolved \*'
9377         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9378       fi
9379       archive_cmds_need_lc='no'
9380       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9381       hardcode_libdir_separator=:
9382       ;;
9383
9384     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9385       if test "$GCC" = yes; then
9386         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9387         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9388         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9389       else
9390         allow_undefined_flag=' -expect_unresolved \*'
9391         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9392         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~
9393         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9394
9395         # Both c and cxx compiler support -rpath directly
9396         hardcode_libdir_flag_spec='-rpath $libdir'
9397       fi
9398       archive_cmds_need_lc='no'
9399       hardcode_libdir_separator=:
9400       ;;
9401
9402     solaris*)
9403       no_undefined_flag=' -z defs'
9404       if test "$GCC" = yes; then
9405         wlarc='${wl}'
9406         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9407         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9408           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9409       else
9410         case `$CC -V 2>&1` in
9411         *"Compilers 5.0"*)
9412           wlarc=''
9413           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9415           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9416           ;;
9417         *)
9418           wlarc='${wl}'
9419           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9420           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9421           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9422           ;;
9423         esac
9424       fi
9425       hardcode_libdir_flag_spec='-R$libdir'
9426       hardcode_shlibpath_var=no
9427       case $host_os in
9428       solaris2.[0-5] | solaris2.[0-5].*) ;;
9429       *)
9430         # The compiler driver will combine and reorder linker options,
9431         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9432         # but is careful enough not to reorder.
9433         # Supported since Solaris 2.6 (maybe 2.5.1?)
9434         if test "$GCC" = yes; then
9435           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9436         else
9437           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9438         fi
9439         ;;
9440       esac
9441       link_all_deplibs=yes
9442       ;;
9443
9444     sunos4*)
9445       if test "x$host_vendor" = xsequent; then
9446         # Use $CC to link under sequent, because it throws in some extra .o
9447         # files that make .init and .fini sections work.
9448         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9449       else
9450         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9451       fi
9452       hardcode_libdir_flag_spec='-L$libdir'
9453       hardcode_direct=yes
9454       hardcode_minus_L=yes
9455       hardcode_shlibpath_var=no
9456       ;;
9457
9458     sysv4)
9459       case $host_vendor in
9460         sni)
9461           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9462           hardcode_direct=yes # is this really true???
9463         ;;
9464         siemens)
9465           ## LD is ld it makes a PLAMLIB
9466           ## CC just makes a GrossModule.
9467           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9468           reload_cmds='$CC -r -o $output$reload_objs'
9469           hardcode_direct=no
9470         ;;
9471         motorola)
9472           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9474         ;;
9475       esac
9476       runpath_var='LD_RUN_PATH'
9477       hardcode_shlibpath_var=no
9478       ;;
9479
9480     sysv4.3*)
9481       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9482       hardcode_shlibpath_var=no
9483       export_dynamic_flag_spec='-Bexport'
9484       ;;
9485
9486     sysv4*MP*)
9487       if test -d /usr/nec; then
9488         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9489         hardcode_shlibpath_var=no
9490         runpath_var=LD_RUN_PATH
9491         hardcode_runpath_var=yes
9492         ld_shlibs=yes
9493       fi
9494       ;;
9495
9496     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9497       no_undefined_flag='${wl}-z,text'
9498       archive_cmds_need_lc=no
9499       hardcode_shlibpath_var=no
9500       runpath_var='LD_RUN_PATH'
9501
9502       if test "$GCC" = yes; then
9503         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9504         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9505       else
9506         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9507         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9508       fi
9509       ;;
9510
9511     sysv5* | sco3.2v5* | sco5v6*)
9512       # Note: We can NOT use -z defs as we might desire, because we do not
9513       # link with -lc, and that would cause any symbols used from libc to
9514       # always be unresolved, which means just about no library would
9515       # ever link correctly.  If we're not using GNU ld we use -z text
9516       # though, which does catch some bad symbols but isn't as heavy-handed
9517       # as -z defs.
9518       no_undefined_flag='${wl}-z,text'
9519       allow_undefined_flag='${wl}-z,nodefs'
9520       archive_cmds_need_lc=no
9521       hardcode_shlibpath_var=no
9522       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9523       hardcode_libdir_separator=':'
9524       link_all_deplibs=yes
9525       export_dynamic_flag_spec='${wl}-Bexport'
9526       runpath_var='LD_RUN_PATH'
9527
9528       if test "$GCC" = yes; then
9529         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9530         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9531       else
9532         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9534       fi
9535       ;;
9536
9537     uts4*)
9538       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9539       hardcode_libdir_flag_spec='-L$libdir'
9540       hardcode_shlibpath_var=no
9541       ;;
9542
9543     *)
9544       ld_shlibs=no
9545       ;;
9546     esac
9547
9548     if test x$host_vendor = xsni; then
9549       case $host in
9550       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9551         export_dynamic_flag_spec='${wl}-Blargedynsym'
9552         ;;
9553       esac
9554     fi
9555   fi
9556
9557 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9558 $as_echo "$ld_shlibs" >&6; }
9559 test "$ld_shlibs" = no && can_build_shared=no
9560
9561 with_gnu_ld=$with_gnu_ld
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577 #
9578 # Do we need to explicitly link libc?
9579 #
9580 case "x$archive_cmds_need_lc" in
9581 x|xyes)
9582   # Assume -lc should be added
9583   archive_cmds_need_lc=yes
9584
9585   if test "$enable_shared" = yes && test "$GCC" = yes; then
9586     case $archive_cmds in
9587     *'~'*)
9588       # FIXME: we may have to deal with multi-command sequences.
9589       ;;
9590     '$CC '*)
9591       # Test whether the compiler implicitly links with -lc since on some
9592       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9593       # to ld, don't add -lc before -lgcc.
9594       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9595 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9596       $RM conftest*
9597       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9598
9599       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9600   (eval $ac_compile) 2>&5
9601   ac_status=$?
9602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); } 2>conftest.err; then
9604         soname=conftest
9605         lib=conftest
9606         libobjs=conftest.$ac_objext
9607         deplibs=
9608         wl=$lt_prog_compiler_wl
9609         pic_flag=$lt_prog_compiler_pic
9610         compiler_flags=-v
9611         linker_flags=-v
9612         verstring=
9613         output_objdir=.
9614         libname=conftest
9615         lt_save_allow_undefined_flag=$allow_undefined_flag
9616         allow_undefined_flag=
9617         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9618   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9619   ac_status=$?
9620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621   (exit $ac_status); }
9622         then
9623           archive_cmds_need_lc=no
9624         else
9625           archive_cmds_need_lc=yes
9626         fi
9627         allow_undefined_flag=$lt_save_allow_undefined_flag
9628       else
9629         cat conftest.err 1>&5
9630       fi
9631       $RM conftest*
9632       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9633 $as_echo "$archive_cmds_need_lc" >&6; }
9634       ;;
9635     esac
9636   fi
9637   ;;
9638 esac
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9797 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9798
9799 if test "$GCC" = yes; then
9800   case $host_os in
9801     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9802     *) lt_awk_arg="/^libraries:/" ;;
9803   esac
9804   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9805   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9806     # if the path contains ";" then we assume it to be the separator
9807     # otherwise default to the standard path separator (i.e. ":") - it is
9808     # assumed that no part of a normal pathname contains ";" but that should
9809     # okay in the real world where ";" in dirpaths is itself problematic.
9810     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9811   else
9812     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9813   fi
9814   # Ok, now we have the path, separated by spaces, we can step through it
9815   # and add multilib dir if necessary.
9816   lt_tmp_lt_search_path_spec=
9817   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9818   for lt_sys_path in $lt_search_path_spec; do
9819     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9820       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9821     else
9822       test -d "$lt_sys_path" && \
9823         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9824     fi
9825   done
9826   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9827 BEGIN {RS=" "; FS="/|\n";} {
9828   lt_foo="";
9829   lt_count=0;
9830   for (lt_i = NF; lt_i > 0; lt_i--) {
9831     if ($lt_i != "" && $lt_i != ".") {
9832       if ($lt_i == "..") {
9833         lt_count++;
9834       } else {
9835         if (lt_count == 0) {
9836           lt_foo="/" $lt_i lt_foo;
9837         } else {
9838           lt_count--;
9839         }
9840       }
9841     }
9842   }
9843   if (lt_foo != "") { lt_freq[lt_foo]++; }
9844   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9845 }'`
9846   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9847 else
9848   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9849 fi
9850 library_names_spec=
9851 libname_spec='lib$name'
9852 soname_spec=
9853 shrext_cmds=".so"
9854 postinstall_cmds=
9855 postuninstall_cmds=
9856 finish_cmds=
9857 finish_eval=
9858 shlibpath_var=
9859 shlibpath_overrides_runpath=unknown
9860 version_type=none
9861 dynamic_linker="$host_os ld.so"
9862 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9863 need_lib_prefix=unknown
9864 hardcode_into_libs=no
9865
9866 # when you set need_version to no, make sure it does not cause -set_version
9867 # flags to be left without arguments
9868 need_version=unknown
9869
9870 case $host_os in
9871 aix3*)
9872   version_type=linux
9873   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9874   shlibpath_var=LIBPATH
9875
9876   # AIX 3 has no versioning support, so we append a major version to the name.
9877   soname_spec='${libname}${release}${shared_ext}$major'
9878   ;;
9879
9880 aix[4-9]*)
9881   version_type=linux
9882   need_lib_prefix=no
9883   need_version=no
9884   hardcode_into_libs=yes
9885   if test "$host_cpu" = ia64; then
9886     # AIX 5 supports IA64
9887     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9888     shlibpath_var=LD_LIBRARY_PATH
9889   else
9890     # With GCC up to 2.95.x, collect2 would create an import file
9891     # for dependence libraries.  The import file would start with
9892     # the line `#! .'.  This would cause the generated library to
9893     # depend on `.', always an invalid library.  This was fixed in
9894     # development snapshots of GCC prior to 3.0.
9895     case $host_os in
9896       aix4 | aix4.[01] | aix4.[01].*)
9897       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9898            echo ' yes '
9899            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9900         :
9901       else
9902         can_build_shared=no
9903       fi
9904       ;;
9905     esac
9906     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9907     # soname into executable. Probably we can add versioning support to
9908     # collect2, so additional links can be useful in future.
9909     if test "$aix_use_runtimelinking" = yes; then
9910       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9911       # instead of lib<name>.a to let people know that these are not
9912       # typical AIX shared libraries.
9913       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914     else
9915       # We preserve .a as extension for shared libraries through AIX4.2
9916       # and later when we are not doing run time linking.
9917       library_names_spec='${libname}${release}.a $libname.a'
9918       soname_spec='${libname}${release}${shared_ext}$major'
9919     fi
9920     shlibpath_var=LIBPATH
9921   fi
9922   ;;
9923
9924 amigaos*)
9925   case $host_cpu in
9926   powerpc)
9927     # Since July 2007 AmigaOS4 officially supports .so libraries.
9928     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930     ;;
9931   m68k)
9932     library_names_spec='$libname.ixlibrary $libname.a'
9933     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9934     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9935     ;;
9936   esac
9937   ;;
9938
9939 beos*)
9940   library_names_spec='${libname}${shared_ext}'
9941   dynamic_linker="$host_os ld.so"
9942   shlibpath_var=LIBRARY_PATH
9943   ;;
9944
9945 bsdi[45]*)
9946   version_type=linux
9947   need_version=no
9948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949   soname_spec='${libname}${release}${shared_ext}$major'
9950   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9951   shlibpath_var=LD_LIBRARY_PATH
9952   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9953   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9954   # the default ld.so.conf also contains /usr/contrib/lib and
9955   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9956   # libtool to hard-code these into programs
9957   ;;
9958
9959 cygwin* | mingw* | pw32* | cegcc*)
9960   version_type=windows
9961   shrext_cmds=".dll"
9962   need_version=no
9963   need_lib_prefix=no
9964
9965   case $GCC,$host_os in
9966   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9967     library_names_spec='$libname.dll.a'
9968     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9969     postinstall_cmds='base_file=`basename \${file}`~
9970       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9971       dldir=$destdir/`dirname \$dlpath`~
9972       test -d \$dldir || mkdir -p \$dldir~
9973       $install_prog $dir/$dlname \$dldir/$dlname~
9974       chmod a+x \$dldir/$dlname~
9975       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9976         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9977       fi'
9978     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9979       dlpath=$dir/\$dldll~
9980        $RM \$dlpath'
9981     shlibpath_overrides_runpath=yes
9982
9983     case $host_os in
9984     cygwin*)
9985       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9986       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9987       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9988       ;;
9989     mingw* | cegcc*)
9990       # MinGW DLLs use traditional 'lib' prefix
9991       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9992       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9993       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9994         # It is most probably a Windows format PATH printed by
9995         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9996         # path with ; separators, and with drive letters. We can handle the
9997         # drive letters (cygwin fileutils understands them), so leave them,
9998         # especially as we might pass files found there to a mingw objdump,
9999         # which wouldn't understand a cygwinified path. Ahh.
10000         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10001       else
10002         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10003       fi
10004       ;;
10005     pw32*)
10006       # pw32 DLLs use 'pw' prefix rather than 'lib'
10007       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10008       ;;
10009     esac
10010     ;;
10011
10012   *)
10013     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10014     ;;
10015   esac
10016   dynamic_linker='Win32 ld.exe'
10017   # FIXME: first we should search . and the directory the executable is in
10018   shlibpath_var=PATH
10019   ;;
10020
10021 darwin* | rhapsody*)
10022   dynamic_linker="$host_os dyld"
10023   version_type=darwin
10024   need_lib_prefix=no
10025   need_version=no
10026   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10027   soname_spec='${libname}${release}${major}$shared_ext'
10028   shlibpath_overrides_runpath=yes
10029   shlibpath_var=DYLD_LIBRARY_PATH
10030   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10031
10032   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10033   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10034   ;;
10035
10036 dgux*)
10037   version_type=linux
10038   need_lib_prefix=no
10039   need_version=no
10040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10041   soname_spec='${libname}${release}${shared_ext}$major'
10042   shlibpath_var=LD_LIBRARY_PATH
10043   ;;
10044
10045 freebsd1*)
10046   dynamic_linker=no
10047   ;;
10048
10049 freebsd* | dragonfly*)
10050   # DragonFly does not have aout.  When/if they implement a new
10051   # versioning mechanism, adjust this.
10052   if test -x /usr/bin/objformat; then
10053     objformat=`/usr/bin/objformat`
10054   else
10055     case $host_os in
10056     freebsd[123]*) objformat=aout ;;
10057     *) objformat=elf ;;
10058     esac
10059   fi
10060   version_type=freebsd-$objformat
10061   case $version_type in
10062     freebsd-elf*)
10063       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10064       need_version=no
10065       need_lib_prefix=no
10066       ;;
10067     freebsd-*)
10068       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10069       need_version=yes
10070       ;;
10071   esac
10072   shlibpath_var=LD_LIBRARY_PATH
10073   case $host_os in
10074   freebsd2*)
10075     shlibpath_overrides_runpath=yes
10076     ;;
10077   freebsd3.[01]* | freebsdelf3.[01]*)
10078     shlibpath_overrides_runpath=yes
10079     hardcode_into_libs=yes
10080     ;;
10081   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10082   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10083     shlibpath_overrides_runpath=no
10084     hardcode_into_libs=yes
10085     ;;
10086   *) # from 4.6 on, and DragonFly
10087     shlibpath_overrides_runpath=yes
10088     hardcode_into_libs=yes
10089     ;;
10090   esac
10091   ;;
10092
10093 gnu*)
10094   version_type=linux
10095   need_lib_prefix=no
10096   need_version=no
10097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10098   soname_spec='${libname}${release}${shared_ext}$major'
10099   shlibpath_var=LD_LIBRARY_PATH
10100   hardcode_into_libs=yes
10101   ;;
10102
10103 hpux9* | hpux10* | hpux11*)
10104   # Give a soname corresponding to the major version so that dld.sl refuses to
10105   # link against other versions.
10106   version_type=sunos
10107   need_lib_prefix=no
10108   need_version=no
10109   case $host_cpu in
10110   ia64*)
10111     shrext_cmds='.so'
10112     hardcode_into_libs=yes
10113     dynamic_linker="$host_os dld.so"
10114     shlibpath_var=LD_LIBRARY_PATH
10115     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117     soname_spec='${libname}${release}${shared_ext}$major'
10118     if test "X$HPUX_IA64_MODE" = X32; then
10119       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10120     else
10121       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10122     fi
10123     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10124     ;;
10125   hppa*64*)
10126     shrext_cmds='.sl'
10127     hardcode_into_libs=yes
10128     dynamic_linker="$host_os dld.sl"
10129     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10130     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10131     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132     soname_spec='${libname}${release}${shared_ext}$major'
10133     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10134     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10135     ;;
10136   *)
10137     shrext_cmds='.sl'
10138     dynamic_linker="$host_os dld.sl"
10139     shlibpath_var=SHLIB_PATH
10140     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10141     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142     soname_spec='${libname}${release}${shared_ext}$major'
10143     ;;
10144   esac
10145   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10146   postinstall_cmds='chmod 555 $lib'
10147   ;;
10148
10149 interix[3-9]*)
10150   version_type=linux
10151   need_lib_prefix=no
10152   need_version=no
10153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10154   soname_spec='${libname}${release}${shared_ext}$major'
10155   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10156   shlibpath_var=LD_LIBRARY_PATH
10157   shlibpath_overrides_runpath=no
10158   hardcode_into_libs=yes
10159   ;;
10160
10161 irix5* | irix6* | nonstopux*)
10162   case $host_os in
10163     nonstopux*) version_type=nonstopux ;;
10164     *)
10165         if test "$lt_cv_prog_gnu_ld" = yes; then
10166                 version_type=linux
10167         else
10168                 version_type=irix
10169         fi ;;
10170   esac
10171   need_lib_prefix=no
10172   need_version=no
10173   soname_spec='${libname}${release}${shared_ext}$major'
10174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10175   case $host_os in
10176   irix5* | nonstopux*)
10177     libsuff= shlibsuff=
10178     ;;
10179   *)
10180     case $LD in # libtool.m4 will add one of these switches to LD
10181     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10182       libsuff= shlibsuff= libmagic=32-bit;;
10183     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10184       libsuff=32 shlibsuff=N32 libmagic=N32;;
10185     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10186       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10187     *) libsuff= shlibsuff= libmagic=never-match;;
10188     esac
10189     ;;
10190   esac
10191   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10192   shlibpath_overrides_runpath=no
10193   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10194   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10195   hardcode_into_libs=yes
10196   ;;
10197
10198 # No shared lib support for Linux oldld, aout, or coff.
10199 linux*oldld* | linux*aout* | linux*coff*)
10200   dynamic_linker=no
10201   ;;
10202
10203 # This must be Linux ELF.
10204 linux* | k*bsd*-gnu)
10205   version_type=linux
10206   need_lib_prefix=no
10207   need_version=no
10208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209   soname_spec='${libname}${release}${shared_ext}$major'
10210   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10211   shlibpath_var=LD_LIBRARY_PATH
10212   shlibpath_overrides_runpath=no
10213   # Some binutils ld are patched to set DT_RUNPATH
10214   save_LDFLAGS=$LDFLAGS
10215   save_libdir=$libdir
10216   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10217        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10218   cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h.  */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h.  */
10224
10225 int
10226 main ()
10227 {
10228
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (ac_try="$ac_link"
10235 case "(($ac_try" in
10236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237   *) ac_try_echo=$ac_try;;
10238 esac
10239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10240 $as_echo "$ac_try_echo") >&5
10241   (eval "$ac_link") 2>conftest.er1
10242   ac_status=$?
10243   grep -v '^ *+' conftest.er1 >conftest.err
10244   rm -f conftest.er1
10245   cat conftest.err >&5
10246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247   (exit $ac_status); } && {
10248          test -z "$ac_c_werror_flag" ||
10249          test ! -s conftest.err
10250        } && test -s conftest$ac_exeext && {
10251          test "$cross_compiling" = yes ||
10252          $as_test_x conftest$ac_exeext
10253        }; then
10254   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10255   shlibpath_overrides_runpath=yes
10256 fi
10257
10258 else
10259   $as_echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10261
10262
10263 fi
10264
10265 rm -rf conftest.dSYM
10266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10267       conftest$ac_exeext conftest.$ac_ext
10268   LDFLAGS=$save_LDFLAGS
10269   libdir=$save_libdir
10270
10271   # This implies no fast_install, which is unacceptable.
10272   # Some rework will be needed to allow for fast_install
10273   # before this can be enabled.
10274   hardcode_into_libs=yes
10275
10276   # Add ABI-specific directories to the system library path.
10277   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10278
10279   # Append ld.so.conf contents to the search path
10280   if test -f /etc/ld.so.conf; then
10281     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;/^$/d' | tr '\n' ' '`
10282     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10283   fi
10284
10285   # We used to test for /lib/ld.so.1 and disable shared libraries on
10286   # powerpc, because MkLinux only supported shared libraries with the
10287   # GNU dynamic linker.  Since this was broken with cross compilers,
10288   # most powerpc-linux boxes support dynamic linking these days and
10289   # people can always --disable-shared, the test was removed, and we
10290   # assume the GNU/Linux dynamic linker is in use.
10291   dynamic_linker='GNU/Linux ld.so'
10292   ;;
10293
10294 netbsd*)
10295   version_type=sunos
10296   need_lib_prefix=no
10297   need_version=no
10298   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10299     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10300     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10301     dynamic_linker='NetBSD (a.out) ld.so'
10302   else
10303     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10304     soname_spec='${libname}${release}${shared_ext}$major'
10305     dynamic_linker='NetBSD ld.elf_so'
10306   fi
10307   shlibpath_var=LD_LIBRARY_PATH
10308   shlibpath_overrides_runpath=yes
10309   hardcode_into_libs=yes
10310   ;;
10311
10312 newsos6)
10313   version_type=linux
10314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315   shlibpath_var=LD_LIBRARY_PATH
10316   shlibpath_overrides_runpath=yes
10317   ;;
10318
10319 *nto* | *qnx*)
10320   version_type=qnx
10321   need_lib_prefix=no
10322   need_version=no
10323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324   soname_spec='${libname}${release}${shared_ext}$major'
10325   shlibpath_var=LD_LIBRARY_PATH
10326   shlibpath_overrides_runpath=no
10327   hardcode_into_libs=yes
10328   dynamic_linker='ldqnx.so'
10329   ;;
10330
10331 openbsd*)
10332   version_type=sunos
10333   sys_lib_dlsearch_path_spec="/usr/lib"
10334   need_lib_prefix=no
10335   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10336   case $host_os in
10337     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10338     *)                          need_version=no  ;;
10339   esac
10340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10341   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10342   shlibpath_var=LD_LIBRARY_PATH
10343   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10344     case $host_os in
10345       openbsd2.[89] | openbsd2.[89].*)
10346         shlibpath_overrides_runpath=no
10347         ;;
10348       *)
10349         shlibpath_overrides_runpath=yes
10350         ;;
10351       esac
10352   else
10353     shlibpath_overrides_runpath=yes
10354   fi
10355   ;;
10356
10357 os2*)
10358   libname_spec='$name'
10359   shrext_cmds=".dll"
10360   need_lib_prefix=no
10361   library_names_spec='$libname${shared_ext} $libname.a'
10362   dynamic_linker='OS/2 ld.exe'
10363   shlibpath_var=LIBPATH
10364   ;;
10365
10366 osf3* | osf4* | osf5*)
10367   version_type=osf
10368   need_lib_prefix=no
10369   need_version=no
10370   soname_spec='${libname}${release}${shared_ext}$major'
10371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372   shlibpath_var=LD_LIBRARY_PATH
10373   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10374   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10375   ;;
10376
10377 rdos*)
10378   dynamic_linker=no
10379   ;;
10380
10381 solaris*)
10382   version_type=linux
10383   need_lib_prefix=no
10384   need_version=no
10385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386   soname_spec='${libname}${release}${shared_ext}$major'
10387   shlibpath_var=LD_LIBRARY_PATH
10388   shlibpath_overrides_runpath=yes
10389   hardcode_into_libs=yes
10390   # ldd complains unless libraries are executable
10391   postinstall_cmds='chmod +x $lib'
10392   ;;
10393
10394 sunos4*)
10395   version_type=sunos
10396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10397   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10398   shlibpath_var=LD_LIBRARY_PATH
10399   shlibpath_overrides_runpath=yes
10400   if test "$with_gnu_ld" = yes; then
10401     need_lib_prefix=no
10402   fi
10403   need_version=yes
10404   ;;
10405
10406 sysv4 | sysv4.3*)
10407   version_type=linux
10408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409   soname_spec='${libname}${release}${shared_ext}$major'
10410   shlibpath_var=LD_LIBRARY_PATH
10411   case $host_vendor in
10412     sni)
10413       shlibpath_overrides_runpath=no
10414       need_lib_prefix=no
10415       runpath_var=LD_RUN_PATH
10416       ;;
10417     siemens)
10418       need_lib_prefix=no
10419       ;;
10420     motorola)
10421       need_lib_prefix=no
10422       need_version=no
10423       shlibpath_overrides_runpath=no
10424       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10425       ;;
10426   esac
10427   ;;
10428
10429 sysv4*MP*)
10430   if test -d /usr/nec ;then
10431     version_type=linux
10432     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10433     soname_spec='$libname${shared_ext}.$major'
10434     shlibpath_var=LD_LIBRARY_PATH
10435   fi
10436   ;;
10437
10438 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10439   version_type=freebsd-elf
10440   need_lib_prefix=no
10441   need_version=no
10442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10443   soname_spec='${libname}${release}${shared_ext}$major'
10444   shlibpath_var=LD_LIBRARY_PATH
10445   shlibpath_overrides_runpath=yes
10446   hardcode_into_libs=yes
10447   if test "$with_gnu_ld" = yes; then
10448     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10449   else
10450     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10451     case $host_os in
10452       sco3.2v5*)
10453         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10454         ;;
10455     esac
10456   fi
10457   sys_lib_dlsearch_path_spec='/usr/lib'
10458   ;;
10459
10460 tpf*)
10461   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10462   version_type=linux
10463   need_lib_prefix=no
10464   need_version=no
10465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466   shlibpath_var=LD_LIBRARY_PATH
10467   shlibpath_overrides_runpath=no
10468   hardcode_into_libs=yes
10469   ;;
10470
10471 uts4*)
10472   version_type=linux
10473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474   soname_spec='${libname}${release}${shared_ext}$major'
10475   shlibpath_var=LD_LIBRARY_PATH
10476   ;;
10477
10478 *)
10479   dynamic_linker=no
10480   ;;
10481 esac
10482 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10483 $as_echo "$dynamic_linker" >&6; }
10484 test "$dynamic_linker" = no && can_build_shared=no
10485
10486 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10487 if test "$GCC" = yes; then
10488   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10489 fi
10490
10491 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10492   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10493 fi
10494 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10495   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10496 fi
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10585 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10586 hardcode_action=
10587 if test -n "$hardcode_libdir_flag_spec" ||
10588    test -n "$runpath_var" ||
10589    test "X$hardcode_automatic" = "Xyes" ; then
10590
10591   # We can hardcode non-existent directories.
10592   if test "$hardcode_direct" != no &&
10593      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10594      # have to relink, otherwise we might link with an installed library
10595      # when we should be linking with a yet-to-be-installed one
10596      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10597      test "$hardcode_minus_L" != no; then
10598     # Linking always hardcodes the temporary library directory.
10599     hardcode_action=relink
10600   else
10601     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10602     hardcode_action=immediate
10603   fi
10604 else
10605   # We cannot hardcode anything, or else we can only hardcode existing
10606   # directories.
10607   hardcode_action=unsupported
10608 fi
10609 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10610 $as_echo "$hardcode_action" >&6; }
10611
10612 if test "$hardcode_action" = relink ||
10613    test "$inherit_rpath" = yes; then
10614   # Fast installation is not supported
10615   enable_fast_install=no
10616 elif test "$shlibpath_overrides_runpath" = yes ||
10617      test "$enable_shared" = no; then
10618   # Fast installation is not necessary
10619   enable_fast_install=needless
10620 fi
10621
10622
10623
10624
10625
10626
10627   if test "x$enable_dlopen" != xyes; then
10628   enable_dlopen=unknown
10629   enable_dlopen_self=unknown
10630   enable_dlopen_self_static=unknown
10631 else
10632   lt_cv_dlopen=no
10633   lt_cv_dlopen_libs=
10634
10635   case $host_os in
10636   beos*)
10637     lt_cv_dlopen="load_add_on"
10638     lt_cv_dlopen_libs=
10639     lt_cv_dlopen_self=yes
10640     ;;
10641
10642   mingw* | pw32* | cegcc*)
10643     lt_cv_dlopen="LoadLibrary"
10644     lt_cv_dlopen_libs=
10645     ;;
10646
10647   cygwin*)
10648     lt_cv_dlopen="dlopen"
10649     lt_cv_dlopen_libs=
10650     ;;
10651
10652   darwin*)
10653   # if libdl is installed we need to link against it
10654     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10655 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10656 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10657   $as_echo_n "(cached) " >&6
10658 else
10659   ac_check_lib_save_LIBS=$LIBS
10660 LIBS="-ldl  $LIBS"
10661 cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h.  */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h.  */
10667
10668 /* Override any GCC internal prototype to avoid an error.
10669    Use char because int might match the return type of a GCC
10670    builtin and then its argument prototype would still apply.  */
10671 #ifdef __cplusplus
10672 extern "C"
10673 #endif
10674 char dlopen ();
10675 int
10676 main ()
10677 {
10678 return dlopen ();
10679   ;
10680   return 0;
10681 }
10682 _ACEOF
10683 rm -f conftest.$ac_objext conftest$ac_exeext
10684 if { (ac_try="$ac_link"
10685 case "(($ac_try" in
10686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687   *) ac_try_echo=$ac_try;;
10688 esac
10689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10690 $as_echo "$ac_try_echo") >&5
10691   (eval "$ac_link") 2>conftest.er1
10692   ac_status=$?
10693   grep -v '^ *+' conftest.er1 >conftest.err
10694   rm -f conftest.er1
10695   cat conftest.err >&5
10696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697   (exit $ac_status); } && {
10698          test -z "$ac_c_werror_flag" ||
10699          test ! -s conftest.err
10700        } && test -s conftest$ac_exeext && {
10701          test "$cross_compiling" = yes ||
10702          $as_test_x conftest$ac_exeext
10703        }; then
10704   ac_cv_lib_dl_dlopen=yes
10705 else
10706   $as_echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.$ac_ext >&5
10708
10709         ac_cv_lib_dl_dlopen=no
10710 fi
10711
10712 rm -rf conftest.dSYM
10713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10714       conftest$ac_exeext conftest.$ac_ext
10715 LIBS=$ac_check_lib_save_LIBS
10716 fi
10717 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10718 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10719 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10720   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10721 else
10722
10723     lt_cv_dlopen="dyld"
10724     lt_cv_dlopen_libs=
10725     lt_cv_dlopen_self=yes
10726
10727 fi
10728
10729     ;;
10730
10731   *)
10732     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10733 $as_echo_n "checking for shl_load... " >&6; }
10734 if test "${ac_cv_func_shl_load+set}" = set; then
10735   $as_echo_n "(cached) " >&6
10736 else
10737   cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10745 #define shl_load innocuous_shl_load
10746
10747 /* System header to define __stub macros and hopefully few prototypes,
10748     which can conflict with char shl_load (); below.
10749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10750     <limits.h> exists even on freestanding compilers.  */
10751
10752 #ifdef __STDC__
10753 # include <limits.h>
10754 #else
10755 # include <assert.h>
10756 #endif
10757
10758 #undef shl_load
10759
10760 /* Override any GCC internal prototype to avoid an error.
10761    Use char because int might match the return type of a GCC
10762    builtin and then its argument prototype would still apply.  */
10763 #ifdef __cplusplus
10764 extern "C"
10765 #endif
10766 char shl_load ();
10767 /* The GNU C library defines this for functions which it implements
10768     to always fail with ENOSYS.  Some functions are actually named
10769     something starting with __ and the normal name is an alias.  */
10770 #if defined __stub_shl_load || defined __stub___shl_load
10771 choke me
10772 #endif
10773
10774 int
10775 main ()
10776 {
10777 return shl_load ();
10778   ;
10779   return 0;
10780 }
10781 _ACEOF
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (ac_try="$ac_link"
10784 case "(($ac_try" in
10785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786   *) ac_try_echo=$ac_try;;
10787 esac
10788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10789 $as_echo "$ac_try_echo") >&5
10790   (eval "$ac_link") 2>conftest.er1
10791   ac_status=$?
10792   grep -v '^ *+' conftest.er1 >conftest.err
10793   rm -f conftest.er1
10794   cat conftest.err >&5
10795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); } && {
10797          test -z "$ac_c_werror_flag" ||
10798          test ! -s conftest.err
10799        } && test -s conftest$ac_exeext && {
10800          test "$cross_compiling" = yes ||
10801          $as_test_x conftest$ac_exeext
10802        }; then
10803   ac_cv_func_shl_load=yes
10804 else
10805   $as_echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10807
10808         ac_cv_func_shl_load=no
10809 fi
10810
10811 rm -rf conftest.dSYM
10812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813       conftest$ac_exeext conftest.$ac_ext
10814 fi
10815 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10816 $as_echo "$ac_cv_func_shl_load" >&6; }
10817 if test "x$ac_cv_func_shl_load" = x""yes; then
10818   lt_cv_dlopen="shl_load"
10819 else
10820   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10821 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10822 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10823   $as_echo_n "(cached) " >&6
10824 else
10825   ac_check_lib_save_LIBS=$LIBS
10826 LIBS="-ldld  $LIBS"
10827 cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h.  */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h.  */
10833
10834 /* Override any GCC internal prototype to avoid an error.
10835    Use char because int might match the return type of a GCC
10836    builtin and then its argument prototype would still apply.  */
10837 #ifdef __cplusplus
10838 extern "C"
10839 #endif
10840 char shl_load ();
10841 int
10842 main ()
10843 {
10844 return shl_load ();
10845   ;
10846   return 0;
10847 }
10848 _ACEOF
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (ac_try="$ac_link"
10851 case "(($ac_try" in
10852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853   *) ac_try_echo=$ac_try;;
10854 esac
10855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10856 $as_echo "$ac_try_echo") >&5
10857   (eval "$ac_link") 2>conftest.er1
10858   ac_status=$?
10859   grep -v '^ *+' conftest.er1 >conftest.err
10860   rm -f conftest.er1
10861   cat conftest.err >&5
10862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); } && {
10864          test -z "$ac_c_werror_flag" ||
10865          test ! -s conftest.err
10866        } && test -s conftest$ac_exeext && {
10867          test "$cross_compiling" = yes ||
10868          $as_test_x conftest$ac_exeext
10869        }; then
10870   ac_cv_lib_dld_shl_load=yes
10871 else
10872   $as_echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10874
10875         ac_cv_lib_dld_shl_load=no
10876 fi
10877
10878 rm -rf conftest.dSYM
10879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10880       conftest$ac_exeext conftest.$ac_ext
10881 LIBS=$ac_check_lib_save_LIBS
10882 fi
10883 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10884 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10885 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10886   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10887 else
10888   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10889 $as_echo_n "checking for dlopen... " >&6; }
10890 if test "${ac_cv_func_dlopen+set}" = set; then
10891   $as_echo_n "(cached) " >&6
10892 else
10893   cat >conftest.$ac_ext <<_ACEOF
10894 /* confdefs.h.  */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h.  */
10899 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10901 #define dlopen innocuous_dlopen
10902
10903 /* System header to define __stub macros and hopefully few prototypes,
10904     which can conflict with char dlopen (); below.
10905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10906     <limits.h> exists even on freestanding compilers.  */
10907
10908 #ifdef __STDC__
10909 # include <limits.h>
10910 #else
10911 # include <assert.h>
10912 #endif
10913
10914 #undef dlopen
10915
10916 /* Override any GCC internal prototype to avoid an error.
10917    Use char because int might match the return type of a GCC
10918    builtin and then its argument prototype would still apply.  */
10919 #ifdef __cplusplus
10920 extern "C"
10921 #endif
10922 char dlopen ();
10923 /* The GNU C library defines this for functions which it implements
10924     to always fail with ENOSYS.  Some functions are actually named
10925     something starting with __ and the normal name is an alias.  */
10926 #if defined __stub_dlopen || defined __stub___dlopen
10927 choke me
10928 #endif
10929
10930 int
10931 main ()
10932 {
10933 return dlopen ();
10934   ;
10935   return 0;
10936 }
10937 _ACEOF
10938 rm -f conftest.$ac_objext conftest$ac_exeext
10939 if { (ac_try="$ac_link"
10940 case "(($ac_try" in
10941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942   *) ac_try_echo=$ac_try;;
10943 esac
10944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10945 $as_echo "$ac_try_echo") >&5
10946   (eval "$ac_link") 2>conftest.er1
10947   ac_status=$?
10948   grep -v '^ *+' conftest.er1 >conftest.err
10949   rm -f conftest.er1
10950   cat conftest.err >&5
10951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); } && {
10953          test -z "$ac_c_werror_flag" ||
10954          test ! -s conftest.err
10955        } && test -s conftest$ac_exeext && {
10956          test "$cross_compiling" = yes ||
10957          $as_test_x conftest$ac_exeext
10958        }; then
10959   ac_cv_func_dlopen=yes
10960 else
10961   $as_echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10963
10964         ac_cv_func_dlopen=no
10965 fi
10966
10967 rm -rf conftest.dSYM
10968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10969       conftest$ac_exeext conftest.$ac_ext
10970 fi
10971 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10972 $as_echo "$ac_cv_func_dlopen" >&6; }
10973 if test "x$ac_cv_func_dlopen" = x""yes; then
10974   lt_cv_dlopen="dlopen"
10975 else
10976   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10977 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10978 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10979   $as_echo_n "(cached) " >&6
10980 else
10981   ac_check_lib_save_LIBS=$LIBS
10982 LIBS="-ldl  $LIBS"
10983 cat >conftest.$ac_ext <<_ACEOF
10984 /* confdefs.h.  */
10985 _ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h.  */
10989
10990 /* Override any GCC internal prototype to avoid an error.
10991    Use char because int might match the return type of a GCC
10992    builtin and then its argument prototype would still apply.  */
10993 #ifdef __cplusplus
10994 extern "C"
10995 #endif
10996 char dlopen ();
10997 int
10998 main ()
10999 {
11000 return dlopen ();
11001   ;
11002   return 0;
11003 }
11004 _ACEOF
11005 rm -f conftest.$ac_objext conftest$ac_exeext
11006 if { (ac_try="$ac_link"
11007 case "(($ac_try" in
11008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009   *) ac_try_echo=$ac_try;;
11010 esac
11011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11012 $as_echo "$ac_try_echo") >&5
11013   (eval "$ac_link") 2>conftest.er1
11014   ac_status=$?
11015   grep -v '^ *+' conftest.er1 >conftest.err
11016   rm -f conftest.er1
11017   cat conftest.err >&5
11018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); } && {
11020          test -z "$ac_c_werror_flag" ||
11021          test ! -s conftest.err
11022        } && test -s conftest$ac_exeext && {
11023          test "$cross_compiling" = yes ||
11024          $as_test_x conftest$ac_exeext
11025        }; then
11026   ac_cv_lib_dl_dlopen=yes
11027 else
11028   $as_echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11030
11031         ac_cv_lib_dl_dlopen=no
11032 fi
11033
11034 rm -rf conftest.dSYM
11035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11036       conftest$ac_exeext conftest.$ac_ext
11037 LIBS=$ac_check_lib_save_LIBS
11038 fi
11039 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11040 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11041 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11042   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11043 else
11044   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11045 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11046 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11047   $as_echo_n "(cached) " >&6
11048 else
11049   ac_check_lib_save_LIBS=$LIBS
11050 LIBS="-lsvld  $LIBS"
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h.  */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h.  */
11057
11058 /* Override any GCC internal prototype to avoid an error.
11059    Use char because int might match the return type of a GCC
11060    builtin and then its argument prototype would still apply.  */
11061 #ifdef __cplusplus
11062 extern "C"
11063 #endif
11064 char dlopen ();
11065 int
11066 main ()
11067 {
11068 return dlopen ();
11069   ;
11070   return 0;
11071 }
11072 _ACEOF
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (ac_try="$ac_link"
11075 case "(($ac_try" in
11076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077   *) ac_try_echo=$ac_try;;
11078 esac
11079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11080 $as_echo "$ac_try_echo") >&5
11081   (eval "$ac_link") 2>conftest.er1
11082   ac_status=$?
11083   grep -v '^ *+' conftest.er1 >conftest.err
11084   rm -f conftest.er1
11085   cat conftest.err >&5
11086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087   (exit $ac_status); } && {
11088          test -z "$ac_c_werror_flag" ||
11089          test ! -s conftest.err
11090        } && test -s conftest$ac_exeext && {
11091          test "$cross_compiling" = yes ||
11092          $as_test_x conftest$ac_exeext
11093        }; then
11094   ac_cv_lib_svld_dlopen=yes
11095 else
11096   $as_echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099         ac_cv_lib_svld_dlopen=no
11100 fi
11101
11102 rm -rf conftest.dSYM
11103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11104       conftest$ac_exeext conftest.$ac_ext
11105 LIBS=$ac_check_lib_save_LIBS
11106 fi
11107 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11108 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11109 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11110   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11111 else
11112   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11113 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11114 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11115   $as_echo_n "(cached) " >&6
11116 else
11117   ac_check_lib_save_LIBS=$LIBS
11118 LIBS="-ldld  $LIBS"
11119 cat >conftest.$ac_ext <<_ACEOF
11120 /* confdefs.h.  */
11121 _ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h.  */
11125
11126 /* Override any GCC internal prototype to avoid an error.
11127    Use char because int might match the return type of a GCC
11128    builtin and then its argument prototype would still apply.  */
11129 #ifdef __cplusplus
11130 extern "C"
11131 #endif
11132 char dld_link ();
11133 int
11134 main ()
11135 {
11136 return dld_link ();
11137   ;
11138   return 0;
11139 }
11140 _ACEOF
11141 rm -f conftest.$ac_objext conftest$ac_exeext
11142 if { (ac_try="$ac_link"
11143 case "(($ac_try" in
11144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145   *) ac_try_echo=$ac_try;;
11146 esac
11147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11148 $as_echo "$ac_try_echo") >&5
11149   (eval "$ac_link") 2>conftest.er1
11150   ac_status=$?
11151   grep -v '^ *+' conftest.er1 >conftest.err
11152   rm -f conftest.er1
11153   cat conftest.err >&5
11154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155   (exit $ac_status); } && {
11156          test -z "$ac_c_werror_flag" ||
11157          test ! -s conftest.err
11158        } && test -s conftest$ac_exeext && {
11159          test "$cross_compiling" = yes ||
11160          $as_test_x conftest$ac_exeext
11161        }; then
11162   ac_cv_lib_dld_dld_link=yes
11163 else
11164   $as_echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11166
11167         ac_cv_lib_dld_dld_link=no
11168 fi
11169
11170 rm -rf conftest.dSYM
11171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11172       conftest$ac_exeext conftest.$ac_ext
11173 LIBS=$ac_check_lib_save_LIBS
11174 fi
11175 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11176 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11177 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11178   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11179 fi
11180
11181
11182 fi
11183
11184
11185 fi
11186
11187
11188 fi
11189
11190
11191 fi
11192
11193
11194 fi
11195
11196     ;;
11197   esac
11198
11199   if test "x$lt_cv_dlopen" != xno; then
11200     enable_dlopen=yes
11201   else
11202     enable_dlopen=no
11203   fi
11204
11205   case $lt_cv_dlopen in
11206   dlopen)
11207     save_CPPFLAGS="$CPPFLAGS"
11208     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11209
11210     save_LDFLAGS="$LDFLAGS"
11211     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11212
11213     save_LIBS="$LIBS"
11214     LIBS="$lt_cv_dlopen_libs $LIBS"
11215
11216     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11217 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11218 if test "${lt_cv_dlopen_self+set}" = set; then
11219   $as_echo_n "(cached) " >&6
11220 else
11221           if test "$cross_compiling" = yes; then :
11222   lt_cv_dlopen_self=cross
11223 else
11224   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11225   lt_status=$lt_dlunknown
11226   cat > conftest.$ac_ext <<_LT_EOF
11227 #line 11227 "configure"
11228 #include "confdefs.h"
11229
11230 #if HAVE_DLFCN_H
11231 #include <dlfcn.h>
11232 #endif
11233
11234 #include <stdio.h>
11235
11236 #ifdef RTLD_GLOBAL
11237 #  define LT_DLGLOBAL           RTLD_GLOBAL
11238 #else
11239 #  ifdef DL_GLOBAL
11240 #    define LT_DLGLOBAL         DL_GLOBAL
11241 #  else
11242 #    define LT_DLGLOBAL         0
11243 #  endif
11244 #endif
11245
11246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11247    find out it does not work in some platform. */
11248 #ifndef LT_DLLAZY_OR_NOW
11249 #  ifdef RTLD_LAZY
11250 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11251 #  else
11252 #    ifdef DL_LAZY
11253 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11254 #    else
11255 #      ifdef RTLD_NOW
11256 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11257 #      else
11258 #        ifdef DL_NOW
11259 #          define LT_DLLAZY_OR_NOW      DL_NOW
11260 #        else
11261 #          define LT_DLLAZY_OR_NOW      0
11262 #        endif
11263 #      endif
11264 #    endif
11265 #  endif
11266 #endif
11267
11268 void fnord() { int i=42;}
11269 int main ()
11270 {
11271   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11272   int status = $lt_dlunknown;
11273
11274   if (self)
11275     {
11276       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11277       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11278       /* dlclose (self); */
11279     }
11280   else
11281     puts (dlerror ());
11282
11283   return status;
11284 }
11285 _LT_EOF
11286   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11287   (eval $ac_link) 2>&5
11288   ac_status=$?
11289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11291     (./conftest; exit; ) >&5 2>/dev/null
11292     lt_status=$?
11293     case x$lt_status in
11294       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11295       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11296       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11297     esac
11298   else :
11299     # compilation failed
11300     lt_cv_dlopen_self=no
11301   fi
11302 fi
11303 rm -fr conftest*
11304
11305
11306 fi
11307 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11308 $as_echo "$lt_cv_dlopen_self" >&6; }
11309
11310     if test "x$lt_cv_dlopen_self" = xyes; then
11311       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11312       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11313 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11314 if test "${lt_cv_dlopen_self_static+set}" = set; then
11315   $as_echo_n "(cached) " >&6
11316 else
11317           if test "$cross_compiling" = yes; then :
11318   lt_cv_dlopen_self_static=cross
11319 else
11320   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11321   lt_status=$lt_dlunknown
11322   cat > conftest.$ac_ext <<_LT_EOF
11323 #line 11323 "configure"
11324 #include "confdefs.h"
11325
11326 #if HAVE_DLFCN_H
11327 #include <dlfcn.h>
11328 #endif
11329
11330 #include <stdio.h>
11331
11332 #ifdef RTLD_GLOBAL
11333 #  define LT_DLGLOBAL           RTLD_GLOBAL
11334 #else
11335 #  ifdef DL_GLOBAL
11336 #    define LT_DLGLOBAL         DL_GLOBAL
11337 #  else
11338 #    define LT_DLGLOBAL         0
11339 #  endif
11340 #endif
11341
11342 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11343    find out it does not work in some platform. */
11344 #ifndef LT_DLLAZY_OR_NOW
11345 #  ifdef RTLD_LAZY
11346 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11347 #  else
11348 #    ifdef DL_LAZY
11349 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11350 #    else
11351 #      ifdef RTLD_NOW
11352 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11353 #      else
11354 #        ifdef DL_NOW
11355 #          define LT_DLLAZY_OR_NOW      DL_NOW
11356 #        else
11357 #          define LT_DLLAZY_OR_NOW      0
11358 #        endif
11359 #      endif
11360 #    endif
11361 #  endif
11362 #endif
11363
11364 void fnord() { int i=42;}
11365 int main ()
11366 {
11367   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11368   int status = $lt_dlunknown;
11369
11370   if (self)
11371     {
11372       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11373       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11374       /* dlclose (self); */
11375     }
11376   else
11377     puts (dlerror ());
11378
11379   return status;
11380 }
11381 _LT_EOF
11382   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11383   (eval $ac_link) 2>&5
11384   ac_status=$?
11385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11387     (./conftest; exit; ) >&5 2>/dev/null
11388     lt_status=$?
11389     case x$lt_status in
11390       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11391       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11392       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11393     esac
11394   else :
11395     # compilation failed
11396     lt_cv_dlopen_self_static=no
11397   fi
11398 fi
11399 rm -fr conftest*
11400
11401
11402 fi
11403 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11404 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11405     fi
11406
11407     CPPFLAGS="$save_CPPFLAGS"
11408     LDFLAGS="$save_LDFLAGS"
11409     LIBS="$save_LIBS"
11410     ;;
11411   esac
11412
11413   case $lt_cv_dlopen_self in
11414   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11415   *) enable_dlopen_self=unknown ;;
11416   esac
11417
11418   case $lt_cv_dlopen_self_static in
11419   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11420   *) enable_dlopen_self_static=unknown ;;
11421   esac
11422 fi
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440 striplib=
11441 old_striplib=
11442 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11443 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11444 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11445   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11446   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11447   { $as_echo "$as_me:$LINENO: result: yes" >&5
11448 $as_echo "yes" >&6; }
11449 else
11450 # FIXME - insert some real tests, host_os isn't really good enough
11451   case $host_os in
11452   darwin*)
11453     if test -n "$STRIP" ; then
11454       striplib="$STRIP -x"
11455       old_striplib="$STRIP -S"
11456       { $as_echo "$as_me:$LINENO: result: yes" >&5
11457 $as_echo "yes" >&6; }
11458     else
11459       { $as_echo "$as_me:$LINENO: result: no" >&5
11460 $as_echo "no" >&6; }
11461     fi
11462     ;;
11463   *)
11464     { $as_echo "$as_me:$LINENO: result: no" >&5
11465 $as_echo "no" >&6; }
11466     ;;
11467   esac
11468 fi
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481   # Report which library types will actually be built
11482   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11483 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11484   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11485 $as_echo "$can_build_shared" >&6; }
11486
11487   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11488 $as_echo_n "checking whether to build shared libraries... " >&6; }
11489   test "$can_build_shared" = "no" && enable_shared=no
11490
11491   # On AIX, shared libraries and static libraries use the same namespace, and
11492   # are all built from PIC.
11493   case $host_os in
11494   aix3*)
11495     test "$enable_shared" = yes && enable_static=no
11496     if test -n "$RANLIB"; then
11497       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11498       postinstall_cmds='$RANLIB $lib'
11499     fi
11500     ;;
11501
11502   aix[4-9]*)
11503     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11504       test "$enable_shared" = yes && enable_static=no
11505     fi
11506     ;;
11507   esac
11508   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11509 $as_echo "$enable_shared" >&6; }
11510
11511   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11512 $as_echo_n "checking whether to build static libraries... " >&6; }
11513   # Make sure either enable_shared or enable_static is yes.
11514   test "$enable_shared" = yes || enable_static=yes
11515   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11516 $as_echo "$enable_static" >&6; }
11517
11518
11519
11520
11521 fi
11522 ac_ext=c
11523 ac_cpp='$CPP $CPPFLAGS'
11524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11527
11528 CC="$lt_save_CC"
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542         ac_config_commands="$ac_config_commands libtool"
11543
11544
11545
11546
11547 # Only expand once:
11548
11549
11550
11551 ACLOCAL_AMFLAGS="-I m4"
11552
11553
11554 # Extract the first word of "doxygen", so it can be a program name with args.
11555 set dummy doxygen; ac_word=$2
11556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11557 $as_echo_n "checking for $ac_word... " >&6; }
11558 if test "${ac_cv_prog_HAVE_DOXYGEN+set}" = set; then
11559   $as_echo_n "(cached) " >&6
11560 else
11561   if test -n "$HAVE_DOXYGEN"; then
11562   ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
11563 else
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11566 do
11567   IFS=$as_save_IFS
11568   test -z "$as_dir" && as_dir=.
11569   for ac_exec_ext in '' $ac_executable_extensions; do
11570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11571     ac_cv_prog_HAVE_DOXYGEN="true"
11572     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11573     break 2
11574   fi
11575 done
11576 done
11577 IFS=$as_save_IFS
11578
11579   test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false"
11580 fi
11581 fi
11582 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
11583 if test -n "$HAVE_DOXYGEN"; then
11584   { $as_echo "$as_me:$LINENO: result: $HAVE_DOXYGEN" >&5
11585 $as_echo "$HAVE_DOXYGEN" >&6; }
11586 else
11587   { $as_echo "$as_me:$LINENO: result: no" >&5
11588 $as_echo "no" >&6; }
11589 fi
11590
11591
11592
11593
11594 if $HAVE_DOXYGEN; then
11595   HAVE_DOXYGEN_TRUE=
11596   HAVE_DOXYGEN_FALSE='#'
11597 else
11598   HAVE_DOXYGEN_TRUE='#'
11599   HAVE_DOXYGEN_FALSE=
11600 fi
11601
11602 if test $HAVE_DOXYGEN = "false"; then
11603         { $as_echo "$as_me:$LINENO: WARNING: *** doxygen not found, API documentation will not be built" >&5
11604 $as_echo "$as_me: WARNING: *** doxygen not found, API documentation will not be built" >&2;}
11605 fi
11606
11607 BUILD_SPEC="false"
11608 ac_build_spec=yes
11609 # Check whether --enable-spec was given.
11610 if test "${enable_spec+set}" = set; then
11611   enableval=$enable_spec;
11612        if test "x$enableval" = "xno"; then
11613          ac_build_spec=$enableval
11614        fi
11615
11616 else
11617
11618        ac_build_spec=yes
11619
11620 fi
11621
11622 if test "x$ac_build_spec" = "xyes"; then
11623   # Extract the first word of "pdflatex", so it can be a program name with args.
11624 set dummy pdflatex; ac_word=$2
11625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11626 $as_echo_n "checking for $ac_word... " >&6; }
11627 if test "${ac_cv_prog_HAVE_PDFLATEX+set}" = set; then
11628   $as_echo_n "(cached) " >&6
11629 else
11630   if test -n "$HAVE_PDFLATEX"; then
11631   ac_cv_prog_HAVE_PDFLATEX="$HAVE_PDFLATEX" # Let the user override the test.
11632 else
11633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634 for as_dir in $PATH
11635 do
11636   IFS=$as_save_IFS
11637   test -z "$as_dir" && as_dir=.
11638   for ac_exec_ext in '' $ac_executable_extensions; do
11639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11640     ac_cv_prog_HAVE_PDFLATEX="yes"
11641     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11642     break 2
11643   fi
11644 done
11645 done
11646 IFS=$as_save_IFS
11647
11648 fi
11649 fi
11650 HAVE_PDFLATEX=$ac_cv_prog_HAVE_PDFLATEX
11651 if test -n "$HAVE_PDFLATEX"; then
11652   { $as_echo "$as_me:$LINENO: result: $HAVE_PDFLATEX" >&5
11653 $as_echo "$HAVE_PDFLATEX" >&6; }
11654 else
11655   { $as_echo "$as_me:$LINENO: result: no" >&5
11656 $as_echo "no" >&6; }
11657 fi
11658
11659
11660   # Extract the first word of "bibtex", so it can be a program name with args.
11661 set dummy bibtex; ac_word=$2
11662 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11663 $as_echo_n "checking for $ac_word... " >&6; }
11664 if test "${ac_cv_prog_HAVE_BIBTEX+set}" = set; then
11665   $as_echo_n "(cached) " >&6
11666 else
11667   if test -n "$HAVE_BIBTEX"; then
11668   ac_cv_prog_HAVE_BIBTEX="$HAVE_BIBTEX" # Let the user override the test.
11669 else
11670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671 for as_dir in $PATH
11672 do
11673   IFS=$as_save_IFS
11674   test -z "$as_dir" && as_dir=.
11675   for ac_exec_ext in '' $ac_executable_extensions; do
11676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11677     ac_cv_prog_HAVE_BIBTEX="yes"
11678     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11679     break 2
11680   fi
11681 done
11682 done
11683 IFS=$as_save_IFS
11684
11685 fi
11686 fi
11687 HAVE_BIBTEX=$ac_cv_prog_HAVE_BIBTEX
11688 if test -n "$HAVE_BIBTEX"; then
11689   { $as_echo "$as_me:$LINENO: result: $HAVE_BIBTEX" >&5
11690 $as_echo "$HAVE_BIBTEX" >&6; }
11691 else
11692   { $as_echo "$as_me:$LINENO: result: no" >&5
11693 $as_echo "no" >&6; }
11694 fi
11695
11696
11697   # Extract the first word of "fig2dev", so it can be a program name with args.
11698 set dummy fig2dev; ac_word=$2
11699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11700 $as_echo_n "checking for $ac_word... " >&6; }
11701 if test "${ac_cv_prog_HAVE_TRANSFIG+set}" = set; then
11702   $as_echo_n "(cached) " >&6
11703 else
11704   if test -n "$HAVE_TRANSFIG"; then
11705   ac_cv_prog_HAVE_TRANSFIG="$HAVE_TRANSFIG" # Let the user override the test.
11706 else
11707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708 for as_dir in $PATH
11709 do
11710   IFS=$as_save_IFS
11711   test -z "$as_dir" && as_dir=.
11712   for ac_exec_ext in '' $ac_executable_extensions; do
11713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11714     ac_cv_prog_HAVE_TRANSFIG="yes"
11715     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11716     break 2
11717   fi
11718 done
11719 done
11720 IFS=$as_save_IFS
11721
11722 fi
11723 fi
11724 HAVE_TRANSFIG=$ac_cv_prog_HAVE_TRANSFIG
11725 if test -n "$HAVE_TRANSFIG"; then
11726   { $as_echo "$as_me:$LINENO: result: $HAVE_TRANSFIG" >&5
11727 $as_echo "$HAVE_TRANSFIG" >&6; }
11728 else
11729   { $as_echo "$as_me:$LINENO: result: no" >&5
11730 $as_echo "no" >&6; }
11731 fi
11732
11733
11734   if test -r doc/spec/spec.tex; then
11735    if test "x$HAVE_PDFLATEX" = "xyes"; then
11736     if test "x$HAVE_BIBTEX" = "xyes"; then
11737       if test "x$HAVE_TRANSFIG" = "xyes"; then
11738         tex_pkg_list=`fgrep usepackage doc/spec/spec.tex | grep \{ | grep -v ltablex`
11739         tex_pkg_ok="yes"
11740         for pkg_line in $tex_pkg_list; do
11741           pkg_name=`echo $pkg_line | sed -e 's/.*{\(.*\)}.*/\1/'`
11742           { $as_echo "$as_me:$LINENO: checking for Tex package $pkg_name" >&5
11743 $as_echo_n "checking for Tex package $pkg_name... " >&6; }
11744           cat >conftest.tex <<_ACEOF
11745 \\documentclass{book}
11746 $pkg_line
11747 \\begin{document}
11748 Hello World.
11749 \\end{document}
11750 _ACEOF
11751           if pdflatex -interaction batchmode -halt-on-error conftest < /dev/null > /dev/null 2>&1; then
11752             { $as_echo "$as_me:$LINENO: result: ok" >&5
11753 $as_echo "ok" >&6; }
11754           else
11755             tex_pkg_ok="no"
11756             { $as_echo "$as_me:$LINENO: result: no" >&5
11757 $as_echo "no" >&6; }
11758           fi
11759         done
11760         if test -w conftest.tex; then rm conftest.tex; fi
11761         if test -w conftest.tex; then rm conftest.aux; fi
11762         if test -w conftest.pdf; then rm conftest.pdf; fi
11763         if test "x$tex_pkg_ok" = "xyes"; then
11764           BUILD_SPEC="true"
11765         fi
11766       fi
11767     fi
11768    fi
11769   fi
11770 fi
11771
11772
11773 if $BUILD_SPEC; then
11774   BUILD_SPEC_TRUE=
11775   BUILD_SPEC_FALSE='#'
11776 else
11777   BUILD_SPEC_TRUE='#'
11778   BUILD_SPEC_FALSE=
11779 fi
11780
11781 if test $BUILD_SPEC = "false"; then
11782         { $as_echo "$as_me:$LINENO: WARNING: *** Format Specification will not built." >&5
11783 $as_echo "$as_me: WARNING: *** Format Specification will not built." >&2;}
11784 fi
11785
11786 VALGRIND_ENVIRONMENT=""
11787 ac_enable_valgrind=no
11788 # Check whether --enable-valgrind-testing was given.
11789 if test "${enable_valgrind_testing+set}" = set; then
11790   enableval=$enable_valgrind_testing;  ac_enable_valgrind=yes
11791 else
11792    ac_enable_valgrind=no
11793 fi
11794
11795
11796 if test "x${ac_enable_valgrind}" = xyes ; then
11797   if test "x${enable_shared}" = xyes ; then
11798     VALGRIND_ENVIRONMENT="libtool --mode=execute "
11799   fi
11800
11801   # Extract the first word of "valgrind", so it can be a program name with args.
11802 set dummy valgrind; ac_word=$2
11803 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11804 $as_echo_n "checking for $ac_word... " >&6; }
11805 if test "${ac_cv_prog_HAVE_VALGRIND+set}" = set; then
11806   $as_echo_n "(cached) " >&6
11807 else
11808   if test -n "$HAVE_VALGRIND"; then
11809   ac_cv_prog_HAVE_VALGRIND="$HAVE_VALGRIND" # Let the user override the test.
11810 else
11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812 for as_dir in $PATH
11813 do
11814   IFS=$as_save_IFS
11815   test -z "$as_dir" && as_dir=.
11816   for ac_exec_ext in '' $ac_executable_extensions; do
11817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11818     ac_cv_prog_HAVE_VALGRIND="yes"
11819     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11820     break 2
11821   fi
11822 done
11823 done
11824 IFS=$as_save_IFS
11825
11826   test -z "$ac_cv_prog_HAVE_VALGRIND" && ac_cv_prog_HAVE_VALGRIND="no"
11827 fi
11828 fi
11829 HAVE_VALGRIND=$ac_cv_prog_HAVE_VALGRIND
11830 if test -n "$HAVE_VALGRIND"; then
11831   { $as_echo "$as_me:$LINENO: result: $HAVE_VALGRIND" >&5
11832 $as_echo "$HAVE_VALGRIND" >&6; }
11833 else
11834   { $as_echo "$as_me:$LINENO: result: no" >&5
11835 $as_echo "no" >&6; }
11836 fi
11837
11838
11839   if test "x$HAVE_VALGRIND" = xyes ; then
11840     VALGRIND_ENVIRONMENT="$VALGRIND_ENVIRONMENT valgrind -q --leak-check=yes --show-reachable=yes --num-callers=100"
11841
11842     TESTS_INFO="Type 'make check' to run test suite. Tests will be run under:
11843   ${VALGRIND_ENVIRONMENT}"
11844   else
11845     TESTS_INFO="Type 'make check' to run test suite (Valgrind not found)"
11846   fi
11847 else
11848   TESTS_INFO="Type 'make check' to run test suite (Valgrind testing not enabled)"
11849 fi
11850
11851
11852
11853 cflags_save="$CFLAGS"
11854 if test -z "$GCC"; then
11855         case $host in
11856         *)
11857                 DEBUG="-g -DDEBUG"
11858                 CFLAGS="-O"
11859                 PROFILE="-g -p -DDEBUG" ;;
11860         esac
11861 else
11862
11863         case $host in
11864         *)
11865                 DEBUG="-g -Wall -Wno-parentheses -DDEBUG -D__NO_MATH_INLINES"
11866                 CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops"
11867                 PROFILE="-Wall -Wno-parentheses -pg -g -O3 -fno-inline-functions -DDEBUG";;
11868         esac
11869 fi
11870 CFLAGS="$CFLAGS $cflags_save"
11871
11872 cpu_x86_64=no
11873 cpu_x86_32=no
11874 # Check whether --enable-asm was given.
11875 if test "${enable_asm+set}" = set; then
11876   enableval=$enable_asm;  ac_enable_asm=$enableval
11877 else
11878    ac_enable_asm=yes
11879 fi
11880
11881
11882 if test "x${ac_enable_asm}" = xyes; then
11883   cpu_optimization="no optimization for your platform, please send a patch"
11884   case $target_cpu in
11885   i[3456]86)
11886     cpu_x86_32=yes
11887     cpu_optimization="32 bit x86"
11888
11889 cat >>confdefs.h <<\_ACEOF
11890 #define OC_X86_ASM /**/
11891 _ACEOF
11892
11893     if test "x$target_vendor" = "xapple"; then
11894       THEORA_LDFLAGS="$THEORA_LDFLAGS  -Wl,-read_only_relocs,suppress"
11895     fi
11896       ;;
11897   x86_64)
11898     cpu_x86_64=yes
11899     cpu_optimization="64 bit x86"
11900
11901 cat >>confdefs.h <<\_ACEOF
11902 #define OC_X86_ASM /**/
11903 _ACEOF
11904
11905
11906 cat >>confdefs.h <<\_ACEOF
11907 #define OC_X86_64_ASM /**/
11908 _ACEOF
11909
11910     ;;
11911   esac
11912 else
11913   cpu_optimization="disabled"
11914 fi
11915
11916
11917 if test x$cpu_x86_64 = xyes; then
11918   CPU_x86_64_TRUE=
11919   CPU_x86_64_FALSE='#'
11920 else
11921   CPU_x86_64_TRUE='#'
11922   CPU_x86_64_FALSE=
11923 fi
11924
11925
11926
11927 if test x$cpu_x86_32 = xyes; then
11928   CPU_x86_32_TRUE=
11929   CPU_x86_32_FALSE='#'
11930 else
11931   CPU_x86_32_TRUE='#'
11932   CPU_x86_32_FALSE=
11933 fi
11934
11935
11936 # Test whenever ld supports -version-script
11937
11938
11939 # Check whether --with-gnu-ld was given.
11940 if test "${with_gnu_ld+set}" = set; then
11941   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11942 else
11943   with_gnu_ld=no
11944 fi
11945
11946 ac_prog=ld
11947 if test "$GCC" = yes; then
11948   # Check if gcc -print-prog-name=ld gives a path.
11949   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11950 $as_echo_n "checking for ld used by $CC... " >&6; }
11951   case $host in
11952   *-*-mingw*)
11953     # gcc leaves a trailing carriage return which upsets mingw
11954     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11955   *)
11956     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11957   esac
11958   case $ac_prog in
11959     # Accept absolute paths.
11960     [\\/]* | ?:[\\/]*)
11961       re_direlt='/[^/][^/]*/\.\./'
11962       # Canonicalize the pathname of ld
11963       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11964       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11965         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11966       done
11967       test -z "$LD" && LD="$ac_prog"
11968       ;;
11969   "")
11970     # If it fails, then pretend we aren't using GCC.
11971     ac_prog=ld
11972     ;;
11973   *)
11974     # If it is relative, then search for the first ld in PATH.
11975     with_gnu_ld=unknown
11976     ;;
11977   esac
11978 elif test "$with_gnu_ld" = yes; then
11979   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11980 $as_echo_n "checking for GNU ld... " >&6; }
11981 else
11982   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11983 $as_echo_n "checking for non-GNU ld... " >&6; }
11984 fi
11985 if test "${lt_cv_path_LD+set}" = set; then
11986   $as_echo_n "(cached) " >&6
11987 else
11988   if test -z "$LD"; then
11989   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11990   for ac_dir in $PATH; do
11991     IFS="$lt_save_ifs"
11992     test -z "$ac_dir" && ac_dir=.
11993     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11994       lt_cv_path_LD="$ac_dir/$ac_prog"
11995       # Check to see if the program is GNU ld.  I'd rather use --version,
11996       # but apparently some variants of GNU ld only accept -v.
11997       # Break only if it was the GNU/non-GNU ld that we prefer.
11998       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11999       *GNU* | *'with BFD'*)
12000         test "$with_gnu_ld" != no && break
12001         ;;
12002       *)
12003         test "$with_gnu_ld" != yes && break
12004         ;;
12005       esac
12006     fi
12007   done
12008   IFS="$lt_save_ifs"
12009 else
12010   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12011 fi
12012 fi
12013
12014 LD="$lt_cv_path_LD"
12015 if test -n "$LD"; then
12016   { $as_echo "$as_me:$LINENO: result: $LD" >&5
12017 $as_echo "$LD" >&6; }
12018 else
12019   { $as_echo "$as_me:$LINENO: result: no" >&5
12020 $as_echo "no" >&6; }
12021 fi
12022 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12023 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12024    { (exit 1); exit 1; }; }
12025 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12026 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12027 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12028   $as_echo_n "(cached) " >&6
12029 else
12030   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12031 case `$LD -v 2>&1 </dev/null` in
12032 *GNU* | *'with BFD'*)
12033   lt_cv_prog_gnu_ld=yes
12034   ;;
12035 *)
12036   lt_cv_prog_gnu_ld=no
12037   ;;
12038 esac
12039 fi
12040 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12041 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12042 with_gnu_ld=$lt_cv_prog_gnu_ld
12043
12044
12045
12046
12047
12048
12049
12050 { $as_echo "$as_me:$LINENO: checking how to control symbol export" >&5
12051 $as_echo_n "checking how to control symbol export... " >&6; }
12052
12053 THDEC_VERSION_ARG=""
12054 THENC_VERSION_ARG=""
12055 TH_VERSION_ARG=""
12056 if test "x$lt_cv_prog_gnu_ld" = "xyes"; then
12057  case "$target_os" in
12058   *mingw*)
12059     THEORA_LDFLAGS="$THEORA_LDFLAGS -no-undefined"
12060     THDEC_VERSION_ARG="-export-symbols \$(top_srcdir)/win32/xmingw32/libtheoradec-all.def"
12061     THENC_VERSION_ARG="-export-symbols \$(top_srcdir)/win32/xmingw32/libtheoraenc-all.def"
12062     THENC_VERSION_ARG="$THENC_VERSION_ARG -ltheoradec"
12063     THC_VERSION_ARG="-export-symbols \$(top_srcdir)/win32/libtheora.def"
12064     { $as_echo "$as_me:$LINENO: result: -export-symbols" >&5
12065 $as_echo "-export-symbols" >&6; }
12066     ;;
12067   linux* | solaris* )
12068     THDEC_VERSION_ARG='-Wl,--version-script=$(srcdir)/Version_script-dec'
12069     THENC_VERSION_ARG='-Wl,--version-script=$(srcdir)/Version_script-enc'
12070     TH_VERSION_ARG='-Wl,--version-script=$(srcdir)/Version_script'
12071     { $as_echo "$as_me:$LINENO: result: --version-script" >&5
12072 $as_echo "--version-script" >&6; }
12073     ;;
12074   *)
12075     # build without versioning
12076     { $as_echo "$as_me:$LINENO: result: no" >&5
12077 $as_echo "no" >&6; }
12078     ;;
12079  esac
12080 else
12081  case "$target_os" in
12082   darwin*)
12083     THDEC_VERSION_ARG='-Wl,-exported_symbols_list,$(srcdir)/theoradec.exp'
12084     THENC_VERSION_ARG='-Wl,-exported_symbols_list,$(srcdir)/theoraenc.exp'
12085     TH_VERSION_ARG='-Wl,-exported_symbols_list,$(srcdir)/theora.exp'
12086     { $as_echo "$as_me:$LINENO: result: -exported_symbols_list" >&5
12087 $as_echo "-exported_symbols_list" >&6; }
12088     ;;
12089   *)
12090     # build without versioning
12091     { $as_echo "$as_me:$LINENO: result: no" >&5
12092 $as_echo "no" >&6; }
12093     ;;
12094  esac
12095 fi
12096
12097 THEORADEC_LDFLAGS="$THEORA_LDFLAGS $THDEC_VERSION_ARG"
12098 THEORAENC_LDFLAGS="$THEORA_LDFLAGS $THENC_VERSION_ARG"
12099 THEORA_LDFLAGS="$THEORA_LDFLAGS $TH_VERSION_ARG"
12100
12101
12102
12103
12104
12105 HAVE_OGG=no
12106
12107
12108 # Extract the first word of "pkg-config", so it can be a program name with args.
12109 set dummy pkg-config; ac_word=$2
12110 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12111 $as_echo_n "checking for $ac_word... " >&6; }
12112 if test "${ac_cv_prog_HAVE_PKG_CONFIG+set}" = set; then
12113   $as_echo_n "(cached) " >&6
12114 else
12115   if test -n "$HAVE_PKG_CONFIG"; then
12116   ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
12117 else
12118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12119 for as_dir in $PATH
12120 do
12121   IFS=$as_save_IFS
12122   test -z "$as_dir" && as_dir=.
12123   for ac_exec_ext in '' $ac_executable_extensions; do
12124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12125     ac_cv_prog_HAVE_PKG_CONFIG="yes"
12126     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12127     break 2
12128   fi
12129 done
12130 done
12131 IFS=$as_save_IFS
12132
12133 fi
12134 fi
12135 HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
12136 if test -n "$HAVE_PKG_CONFIG"; then
12137   { $as_echo "$as_me:$LINENO: result: $HAVE_PKG_CONFIG" >&5
12138 $as_echo "$HAVE_PKG_CONFIG" >&6; }
12139 else
12140   { $as_echo "$as_me:$LINENO: result: no" >&5
12141 $as_echo "no" >&6; }
12142 fi
12143
12144
12145 if test "x$HAVE_PKG_CONFIG" = "xyes"
12146 then
12147
12148
12149 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12150         if test -n "$ac_tool_prefix"; then
12151   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12152 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12153 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12154 $as_echo_n "checking for $ac_word... " >&6; }
12155 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12156   $as_echo_n "(cached) " >&6
12157 else
12158   case $PKG_CONFIG in
12159   [\\/]* | ?:[\\/]*)
12160   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12161   ;;
12162   *)
12163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12164 for as_dir in $PATH
12165 do
12166   IFS=$as_save_IFS
12167   test -z "$as_dir" && as_dir=.
12168   for ac_exec_ext in '' $ac_executable_extensions; do
12169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12170     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12171     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12172     break 2
12173   fi
12174 done
12175 done
12176 IFS=$as_save_IFS
12177
12178   ;;
12179 esac
12180 fi
12181 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12182 if test -n "$PKG_CONFIG"; then
12183   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12184 $as_echo "$PKG_CONFIG" >&6; }
12185 else
12186   { $as_echo "$as_me:$LINENO: result: no" >&5
12187 $as_echo "no" >&6; }
12188 fi
12189
12190
12191 fi
12192 if test -z "$ac_cv_path_PKG_CONFIG"; then
12193   ac_pt_PKG_CONFIG=$PKG_CONFIG
12194   # Extract the first word of "pkg-config", so it can be a program name with args.
12195 set dummy pkg-config; ac_word=$2
12196 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12197 $as_echo_n "checking for $ac_word... " >&6; }
12198 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12199   $as_echo_n "(cached) " >&6
12200 else
12201   case $ac_pt_PKG_CONFIG in
12202   [\\/]* | ?:[\\/]*)
12203   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12204   ;;
12205   *)
12206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207 for as_dir in $PATH
12208 do
12209   IFS=$as_save_IFS
12210   test -z "$as_dir" && as_dir=.
12211   for ac_exec_ext in '' $ac_executable_extensions; do
12212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12213     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12214     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12215     break 2
12216   fi
12217 done
12218 done
12219 IFS=$as_save_IFS
12220
12221   ;;
12222 esac
12223 fi
12224 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12225 if test -n "$ac_pt_PKG_CONFIG"; then
12226   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12227 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12228 else
12229   { $as_echo "$as_me:$LINENO: result: no" >&5
12230 $as_echo "no" >&6; }
12231 fi
12232
12233   if test "x$ac_pt_PKG_CONFIG" = x; then
12234     PKG_CONFIG=""
12235   else
12236     case $cross_compiling:$ac_tool_warned in
12237 yes:)
12238 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12240 ac_tool_warned=yes ;;
12241 esac
12242     PKG_CONFIG=$ac_pt_PKG_CONFIG
12243   fi
12244 else
12245   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12246 fi
12247
12248 fi
12249 if test -n "$PKG_CONFIG"; then
12250         _pkg_min_version=0.9.0
12251         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12252 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12253         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12254                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12255 $as_echo "yes" >&6; }
12256         else
12257                 { $as_echo "$as_me:$LINENO: result: no" >&5
12258 $as_echo "no" >&6; }
12259                 PKG_CONFIG=""
12260         fi
12261
12262 fi
12263
12264 pkg_failed=no
12265 { $as_echo "$as_me:$LINENO: checking for OGG" >&5
12266 $as_echo_n "checking for OGG... " >&6; }
12267
12268 if test -n "$PKG_CONFIG"; then
12269     if test -n "$OGG_CFLAGS"; then
12270         pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
12271     else
12272         if test -n "$PKG_CONFIG" && \
12273     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.1\"") >&5
12274   ($PKG_CONFIG --exists --print-errors "ogg >= 1.1") 2>&5
12275   ac_status=$?
12276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); }; then
12278   pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.1" 2>/dev/null`
12279 else
12280   pkg_failed=yes
12281 fi
12282     fi
12283 else
12284         pkg_failed=untried
12285 fi
12286 if test -n "$PKG_CONFIG"; then
12287     if test -n "$OGG_LIBS"; then
12288         pkg_cv_OGG_LIBS="$OGG_LIBS"
12289     else
12290         if test -n "$PKG_CONFIG" && \
12291     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.1\"") >&5
12292   ($PKG_CONFIG --exists --print-errors "ogg >= 1.1") 2>&5
12293   ac_status=$?
12294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); }; then
12296   pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.1" 2>/dev/null`
12297 else
12298   pkg_failed=yes
12299 fi
12300     fi
12301 else
12302         pkg_failed=untried
12303 fi
12304
12305
12306
12307 if test $pkg_failed = yes; then
12308
12309 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12310         _pkg_short_errors_supported=yes
12311 else
12312         _pkg_short_errors_supported=no
12313 fi
12314         if test $_pkg_short_errors_supported = yes; then
12315                 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.1"`
12316         else
12317                 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.1"`
12318         fi
12319         # Put the nasty error message in config.log where it belongs
12320         echo "$OGG_PKG_ERRORS" >&5
12321
12322         { $as_echo "$as_me:$LINENO: result: no" >&5
12323 $as_echo "no" >&6; }
12324                 HAVE_OGG=no
12325 elif test $pkg_failed = untried; then
12326         HAVE_OGG=no
12327 else
12328         OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
12329         OGG_LIBS=$pkg_cv_OGG_LIBS
12330         { $as_echo "$as_me:$LINENO: result: yes" >&5
12331 $as_echo "yes" >&6; }
12332         HAVE_OGG=yes
12333 fi
12334 fi
12335 if test "x$HAVE_OGG" = "xno"
12336 then
12337
12338 # Check whether --with-ogg was given.
12339 if test "${with_ogg+set}" = set; then
12340   withval=$with_ogg; ogg_prefix="$withval"
12341 else
12342   ogg_prefix=""
12343 fi
12344
12345
12346 # Check whether --with-ogg-libraries was given.
12347 if test "${with_ogg_libraries+set}" = set; then
12348   withval=$with_ogg_libraries; ogg_libraries="$withval"
12349 else
12350   ogg_libraries=""
12351 fi
12352
12353
12354 # Check whether --with-ogg-includes was given.
12355 if test "${with_ogg_includes+set}" = set; then
12356   withval=$with_ogg_includes; ogg_includes="$withval"
12357 else
12358   ogg_includes=""
12359 fi
12360
12361 # Check whether --enable-oggtest was given.
12362 if test "${enable_oggtest+set}" = set; then
12363   enableval=$enable_oggtest;
12364 else
12365   enable_oggtest=yes
12366 fi
12367
12368
12369   if test "x$ogg_libraries" != "x" ; then
12370     OGG_LIBS="-L$ogg_libraries"
12371   elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
12372     OGG_LIBS=""
12373   elif test "x$ogg_prefix" != "x" ; then
12374     OGG_LIBS="-L$ogg_prefix/lib"
12375   elif test "x$prefix" != "xNONE" ; then
12376     OGG_LIBS="-L$libdir"
12377   fi
12378
12379   if test "x$ogg_prefix" != "xno" ; then
12380     OGG_LIBS="$OGG_LIBS -logg"
12381   fi
12382
12383   if test "x$ogg_includes" != "x" ; then
12384     OGG_CFLAGS="-I$ogg_includes"
12385   elif test "x$ogg_prefix" = "xno" || test "x$ogg_prefix" = "xyes" ; then
12386     OGG_CFLAGS=""
12387   elif test "x$ogg_prefix" != "x" ; then
12388     OGG_CFLAGS="-I$ogg_prefix/include"
12389   elif test "x$prefix" != "xNONE"; then
12390     OGG_CFLAGS=""
12391   fi
12392
12393   { $as_echo "$as_me:$LINENO: checking for Ogg" >&5
12394 $as_echo_n "checking for Ogg... " >&6; }
12395   if test "x$ogg_prefix" = "xno" ; then
12396     no_ogg="disabled"
12397     enable_oggtest="no"
12398   else
12399     no_ogg=""
12400   fi
12401
12402
12403   if test "x$enable_oggtest" = "xyes" ; then
12404     ac_save_CFLAGS="$CFLAGS"
12405     ac_save_LIBS="$LIBS"
12406     CFLAGS="$CFLAGS $OGG_CFLAGS"
12407     LIBS="$LIBS $OGG_LIBS"
12408       rm -f conf.oggtest
12409       if test "$cross_compiling" = yes; then
12410   echo $ac_n "cross compiling; assumed OK... $ac_c"
12411 else
12412   cat >conftest.$ac_ext <<_ACEOF
12413 /* confdefs.h.  */
12414 _ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h.  */
12418
12419 #include <stdio.h>
12420 #include <stdlib.h>
12421 #include <string.h>
12422 #include <ogg/ogg.h>
12423
12424 int main ()
12425 {
12426   system("touch conf.oggtest");
12427   return 0;
12428 }
12429
12430
12431 _ACEOF
12432 rm -f conftest$ac_exeext
12433 if { (ac_try="$ac_link"
12434 case "(($ac_try" in
12435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436   *) ac_try_echo=$ac_try;;
12437 esac
12438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12439 $as_echo "$ac_try_echo") >&5
12440   (eval "$ac_link") 2>&5
12441   ac_status=$?
12442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12444   { (case "(($ac_try" in
12445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446   *) ac_try_echo=$ac_try;;
12447 esac
12448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12449 $as_echo "$ac_try_echo") >&5
12450   (eval "$ac_try") 2>&5
12451   ac_status=$?
12452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); }; }; then
12454   :
12455 else
12456   $as_echo "$as_me: program exited with status $ac_status" >&5
12457 $as_echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12459
12460 ( exit $ac_status )
12461 no_ogg=yes
12462 fi
12463 rm -rf conftest.dSYM
12464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12465 fi
12466
12467
12468        CFLAGS="$ac_save_CFLAGS"
12469        LIBS="$ac_save_LIBS"
12470   fi
12471
12472   if test "x$no_ogg" = "xdisabled" ; then
12473      { $as_echo "$as_me:$LINENO: result: no" >&5
12474 $as_echo "no" >&6; }
12475      { { $as_echo "$as_me:$LINENO: error:
12476     libogg is required to build this package!
12477     please see http://www.xiph.org/ for how to
12478     obtain a copy.
12479   " >&5
12480 $as_echo "$as_me: error:
12481     libogg is required to build this package!
12482     please see http://www.xiph.org/ for how to
12483     obtain a copy.
12484   " >&2;}
12485    { (exit 1); exit 1; }; }
12486   elif test "x$no_ogg" = "x" ; then
12487      { $as_echo "$as_me:$LINENO: result: yes" >&5
12488 $as_echo "yes" >&6; }
12489      :
12490   else
12491      { $as_echo "$as_me:$LINENO: result: no" >&5
12492 $as_echo "no" >&6; }
12493      if test -f conf.oggtest ; then
12494        :
12495      else
12496        echo "*** Could not run Ogg test program, checking why..."
12497        CFLAGS="$CFLAGS $OGG_CFLAGS"
12498        LIBS="$LIBS $OGG_LIBS"
12499        cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h.  */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h.  */
12505
12506 #include <stdio.h>
12507 #include <ogg/ogg.h>
12508
12509 int
12510 main ()
12511 {
12512  return 0;
12513   ;
12514   return 0;
12515 }
12516 _ACEOF
12517 rm -f conftest.$ac_objext conftest$ac_exeext
12518 if { (ac_try="$ac_link"
12519 case "(($ac_try" in
12520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521   *) ac_try_echo=$ac_try;;
12522 esac
12523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12524 $as_echo "$ac_try_echo") >&5
12525   (eval "$ac_link") 2>conftest.er1
12526   ac_status=$?
12527   grep -v '^ *+' conftest.er1 >conftest.err
12528   rm -f conftest.er1
12529   cat conftest.err >&5
12530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531   (exit $ac_status); } && {
12532          test -z "$ac_c_werror_flag" ||
12533          test ! -s conftest.err
12534        } && test -s conftest$ac_exeext && {
12535          test "$cross_compiling" = yes ||
12536          $as_test_x conftest$ac_exeext
12537        }; then
12538    echo "*** The test program compiled, but did not run. This usually means"
12539        echo "*** that the run-time linker is not finding Ogg or finding the wrong"
12540        echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
12541        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12542        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12543        echo "*** is required on your system"
12544        echo "***"
12545        echo "*** If you have an old version installed, it is best to remove it, although"
12546        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12547 else
12548   $as_echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551          echo "*** The test program failed to compile or link. See the file config.log for the"
12552        echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
12553        echo "*** or that you have moved Ogg since it was installed."
12554 fi
12555
12556 rm -rf conftest.dSYM
12557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12558       conftest$ac_exeext conftest.$ac_ext
12559        CFLAGS="$ac_save_CFLAGS"
12560        LIBS="$ac_save_LIBS"
12561      fi
12562      OGG_CFLAGS=""
12563      OGG_LIBS=""
12564      { { $as_echo "$as_me:$LINENO: error:
12565     libogg is required to build this package!
12566     please see http://www.xiph.org/ for how to
12567     obtain a copy.
12568   " >&5
12569 $as_echo "$as_me: error:
12570     libogg is required to build this package!
12571     please see http://www.xiph.org/ for how to
12572     obtain a copy.
12573   " >&2;}
12574    { (exit 1); exit 1; }; }
12575   fi
12576
12577
12578   rm -f conf.oggtest
12579
12580   cflags_save=$CFLAGS
12581   libs_save=$LIBS
12582   CFLAGS="$CFLAGS $OGG_CFLAGS"
12583   LIBS="$LIBS $OGG_LIBS"
12584   { $as_echo "$as_me:$LINENO: checking for oggpackB_read" >&5
12585 $as_echo_n "checking for oggpackB_read... " >&6; }
12586 if test "${ac_cv_func_oggpackB_read+set}" = set; then
12587   $as_echo_n "(cached) " >&6
12588 else
12589   cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h.  */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h.  */
12595 /* Define oggpackB_read to an innocuous variant, in case <limits.h> declares oggpackB_read.
12596    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12597 #define oggpackB_read innocuous_oggpackB_read
12598
12599 /* System header to define __stub macros and hopefully few prototypes,
12600     which can conflict with char oggpackB_read (); below.
12601     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12602     <limits.h> exists even on freestanding compilers.  */
12603
12604 #ifdef __STDC__
12605 # include <limits.h>
12606 #else
12607 # include <assert.h>
12608 #endif
12609
12610 #undef oggpackB_read
12611
12612 /* Override any GCC internal prototype to avoid an error.
12613    Use char because int might match the return type of a GCC
12614    builtin and then its argument prototype would still apply.  */
12615 #ifdef __cplusplus
12616 extern "C"
12617 #endif
12618 char oggpackB_read ();
12619 /* The GNU C library defines this for functions which it implements
12620     to always fail with ENOSYS.  Some functions are actually named
12621     something starting with __ and the normal name is an alias.  */
12622 #if defined __stub_oggpackB_read || defined __stub___oggpackB_read
12623 choke me
12624 #endif
12625
12626 int
12627 main ()
12628 {
12629 return oggpackB_read ();
12630   ;
12631   return 0;
12632 }
12633 _ACEOF
12634 rm -f conftest.$ac_objext conftest$ac_exeext
12635 if { (ac_try="$ac_link"
12636 case "(($ac_try" in
12637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638   *) ac_try_echo=$ac_try;;
12639 esac
12640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12641 $as_echo "$ac_try_echo") >&5
12642   (eval "$ac_link") 2>conftest.er1
12643   ac_status=$?
12644   grep -v '^ *+' conftest.er1 >conftest.err
12645   rm -f conftest.er1
12646   cat conftest.err >&5
12647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); } && {
12649          test -z "$ac_c_werror_flag" ||
12650          test ! -s conftest.err
12651        } && test -s conftest$ac_exeext && {
12652          test "$cross_compiling" = yes ||
12653          $as_test_x conftest$ac_exeext
12654        }; then
12655   ac_cv_func_oggpackB_read=yes
12656 else
12657   $as_echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12659
12660         ac_cv_func_oggpackB_read=no
12661 fi
12662
12663 rm -rf conftest.dSYM
12664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12665       conftest$ac_exeext conftest.$ac_ext
12666 fi
12667 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_oggpackB_read" >&5
12668 $as_echo "$ac_cv_func_oggpackB_read" >&6; }
12669 if test "x$ac_cv_func_oggpackB_read" = x""yes; then
12670   :
12671 else
12672
12673     { { $as_echo "$as_me:$LINENO: error: newer libogg version (1.1 or later) required" >&5
12674 $as_echo "$as_me: error: newer libogg version (1.1 or later) required" >&2;}
12675    { (exit 1); exit 1; }; }
12676
12677 fi
12678
12679   CFLAGS=$cflags_save
12680   LIBS=$libs_save
12681 fi
12682
12683
12684 HAVE_VORBIS=no
12685
12686
12687 if test "x$HAVE_PKG_CONFIG" = "xyes"
12688 then
12689
12690 pkg_failed=no
12691 { $as_echo "$as_me:$LINENO: checking for VORBIS" >&5
12692 $as_echo_n "checking for VORBIS... " >&6; }
12693
12694 if test -n "$PKG_CONFIG"; then
12695     if test -n "$VORBIS_CFLAGS"; then
12696         pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS"
12697     else
12698         if test -n "$PKG_CONFIG" && \
12699     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.0.1\"") >&5
12700   ($PKG_CONFIG --exists --print-errors "vorbis >= 1.0.1") 2>&5
12701   ac_status=$?
12702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703   (exit $ac_status); }; then
12704   pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis >= 1.0.1" 2>/dev/null`
12705 else
12706   pkg_failed=yes
12707 fi
12708     fi
12709 else
12710         pkg_failed=untried
12711 fi
12712 if test -n "$PKG_CONFIG"; then
12713     if test -n "$VORBIS_LIBS"; then
12714         pkg_cv_VORBIS_LIBS="$VORBIS_LIBS"
12715     else
12716         if test -n "$PKG_CONFIG" && \
12717     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.0.1\"") >&5
12718   ($PKG_CONFIG --exists --print-errors "vorbis >= 1.0.1") 2>&5
12719   ac_status=$?
12720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); }; then
12722   pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis >= 1.0.1" 2>/dev/null`
12723 else
12724   pkg_failed=yes
12725 fi
12726     fi
12727 else
12728         pkg_failed=untried
12729 fi
12730
12731
12732
12733 if test $pkg_failed = yes; then
12734
12735 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12736         _pkg_short_errors_supported=yes
12737 else
12738         _pkg_short_errors_supported=no
12739 fi
12740         if test $_pkg_short_errors_supported = yes; then
12741                 VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbis >= 1.0.1"`
12742         else
12743                 VORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbis >= 1.0.1"`
12744         fi
12745         # Put the nasty error message in config.log where it belongs
12746         echo "$VORBIS_PKG_ERRORS" >&5
12747
12748         { $as_echo "$as_me:$LINENO: result: no" >&5
12749 $as_echo "no" >&6; }
12750                 HAVE_VORBIS=no
12751 elif test $pkg_failed = untried; then
12752         HAVE_VORBIS=no
12753 else
12754         VORBIS_CFLAGS=$pkg_cv_VORBIS_CFLAGS
12755         VORBIS_LIBS=$pkg_cv_VORBIS_LIBS
12756         { $as_echo "$as_me:$LINENO: result: yes" >&5
12757 $as_echo "yes" >&6; }
12758         HAVE_VORBIS=yes
12759 fi
12760         VORBISENC_LIBS="-lvorbisenc"
12761
12762 fi
12763 if test "x$HAVE_VORBIS" = "xno"
12764 then
12765
12766 # Check whether --with-vorbis was given.
12767 if test "${with_vorbis+set}" = set; then
12768   withval=$with_vorbis; vorbis_prefix="$withval"
12769 else
12770   vorbis_prefix=""
12771 fi
12772
12773
12774 # Check whether --with-vorbis-libraries was given.
12775 if test "${with_vorbis_libraries+set}" = set; then
12776   withval=$with_vorbis_libraries; vorbis_libraries="$withval"
12777 else
12778   vorbis_libraries=""
12779 fi
12780
12781
12782 # Check whether --with-vorbis-includes was given.
12783 if test "${with_vorbis_includes+set}" = set; then
12784   withval=$with_vorbis_includes; vorbis_includes="$withval"
12785 else
12786   vorbis_includes=""
12787 fi
12788
12789 # Check whether --enable-vorbistest was given.
12790 if test "${enable_vorbistest+set}" = set; then
12791   enableval=$enable_vorbistest;
12792 else
12793   enable_vorbistest=yes
12794 fi
12795
12796
12797   if test "x$vorbis_libraries" != "x" ; then
12798     VORBIS_LIBS="-L$vorbis_libraries"
12799   elif test "x$vorbis_prefix" != "x" ; then
12800     VORBIS_LIBS="-L$vorbis_prefix/lib"
12801   elif test "x$prefix" != "xNONE"; then
12802     VORBIS_LIBS="-L$libdir"
12803   fi
12804
12805   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
12806   VORBISFILE_LIBS="-lvorbisfile"
12807   VORBISENC_LIBS="-lvorbisenc"
12808
12809   if test "x$vorbis_includes" != "x" ; then
12810     VORBIS_CFLAGS="-I$vorbis_includes"
12811   elif test "x$vorbis_prefix" != "x" ; then
12812     VORBIS_CFLAGS="-I$vorbis_prefix/include"
12813   elif test "x$prefix" != "xNONE"; then
12814     VORBIS_CFLAGS=""
12815   fi
12816
12817
12818   { $as_echo "$as_me:$LINENO: checking for Vorbis" >&5
12819 $as_echo_n "checking for Vorbis... " >&6; }
12820   no_vorbis=""
12821
12822
12823   if test "x$enable_vorbistest" = "xyes" ; then
12824     ac_save_CFLAGS="$CFLAGS"
12825     ac_save_LIBS="$LIBS"
12826     CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
12827     LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
12828       rm -f conf.vorbistest
12829       if test "$cross_compiling" = yes; then
12830   echo $ac_n "cross compiling; assumed OK... $ac_c"
12831 else
12832   cat >conftest.$ac_ext <<_ACEOF
12833 /* confdefs.h.  */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h.  */
12838
12839 #include <stdio.h>
12840 #include <stdlib.h>
12841 #include <string.h>
12842 #include <vorbis/codec.h>
12843 #include <vorbis/vorbisenc.h>
12844
12845 int main ()
12846 {
12847     vorbis_block        vb;
12848     vorbis_dsp_state    vd;
12849     vorbis_info         vi;
12850
12851     vorbis_info_init (&vi);
12852     vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1);
12853     vorbis_analysis_init (&vd, &vi);
12854     vorbis_block_init (&vd, &vb);
12855     /* this function was added in 1.0rc3, so this is what we're testing for */
12856     vorbis_bitrate_addblock (&vb);
12857
12858     system("touch conf.vorbistest");
12859     return 0;
12860 }
12861
12862
12863 _ACEOF
12864 rm -f conftest$ac_exeext
12865 if { (ac_try="$ac_link"
12866 case "(($ac_try" in
12867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868   *) ac_try_echo=$ac_try;;
12869 esac
12870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12871 $as_echo "$ac_try_echo") >&5
12872   (eval "$ac_link") 2>&5
12873   ac_status=$?
12874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12876   { (case "(($ac_try" in
12877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12878   *) ac_try_echo=$ac_try;;
12879 esac
12880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12881 $as_echo "$ac_try_echo") >&5
12882   (eval "$ac_try") 2>&5
12883   ac_status=$?
12884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885   (exit $ac_status); }; }; then
12886   :
12887 else
12888   $as_echo "$as_me: program exited with status $ac_status" >&5
12889 $as_echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.$ac_ext >&5
12891
12892 ( exit $ac_status )
12893 no_vorbis=yes
12894 fi
12895 rm -rf conftest.dSYM
12896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12897 fi
12898
12899
12900        CFLAGS="$ac_save_CFLAGS"
12901        LIBS="$ac_save_LIBS"
12902   fi
12903
12904   if test "x$no_vorbis" = "x" ; then
12905      { $as_echo "$as_me:$LINENO: result: yes" >&5
12906 $as_echo "yes" >&6; }
12907      HAVE_VORBIS=yes
12908   else
12909      { $as_echo "$as_me:$LINENO: result: no" >&5
12910 $as_echo "no" >&6; }
12911      if test -f conf.vorbistest ; then
12912        :
12913      else
12914        echo "*** Could not run Vorbis test program, checking why..."
12915        CFLAGS="$CFLAGS $VORBIS_CFLAGS"
12916        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
12917        cat >conftest.$ac_ext <<_ACEOF
12918 /* confdefs.h.  */
12919 _ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h.  */
12923
12924 #include <stdio.h>
12925 #include <vorbis/codec.h>
12926
12927 int
12928 main ()
12929 {
12930  return 0;
12931   ;
12932   return 0;
12933 }
12934 _ACEOF
12935 rm -f conftest.$ac_objext conftest$ac_exeext
12936 if { (ac_try="$ac_link"
12937 case "(($ac_try" in
12938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12939   *) ac_try_echo=$ac_try;;
12940 esac
12941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12942 $as_echo "$ac_try_echo") >&5
12943   (eval "$ac_link") 2>conftest.er1
12944   ac_status=$?
12945   grep -v '^ *+' conftest.er1 >conftest.err
12946   rm -f conftest.er1
12947   cat conftest.err >&5
12948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); } && {
12950          test -z "$ac_c_werror_flag" ||
12951          test ! -s conftest.err
12952        } && test -s conftest$ac_exeext && {
12953          test "$cross_compiling" = yes ||
12954          $as_test_x conftest$ac_exeext
12955        }; then
12956    echo "*** The test program compiled, but did not run. This usually means"
12957        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
12958        echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
12959        echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12960        echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12961        echo "*** is required on your system"
12962        echo "***"
12963        echo "*** If you have an old version installed, it is best to remove it, although"
12964        echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12965 else
12966   $as_echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12968
12969          echo "*** The test program failed to compile or link. See the file config.log for the"
12970        echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
12971        echo "*** or that you have moved Vorbis since it was installed."
12972 fi
12973
12974 rm -rf conftest.dSYM
12975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12976       conftest$ac_exeext conftest.$ac_ext
12977        CFLAGS="$ac_save_CFLAGS"
12978        LIBS="$ac_save_LIBS"
12979      fi
12980      VORBIS_CFLAGS=""
12981      VORBIS_LIBS=""
12982      VORBISFILE_LIBS=""
12983      VORBISENC_LIBS=""
12984      HAVE_VORBIS=no
12985   fi
12986
12987
12988
12989
12990   rm -f conf.vorbistest
12991
12992 fi
12993
12994 HAVE_SDL=no
12995
12996
12997 # Check whether --with-sdl-prefix was given.
12998 if test "${with_sdl_prefix+set}" = set; then
12999   withval=$with_sdl_prefix; sdl_prefix="$withval"
13000 else
13001   sdl_prefix=""
13002 fi
13003
13004
13005 # Check whether --with-sdl-exec-prefix was given.
13006 if test "${with_sdl_exec_prefix+set}" = set; then
13007   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13008 else
13009   sdl_exec_prefix=""
13010 fi
13011
13012 # Check whether --enable-sdltest was given.
13013 if test "${enable_sdltest+set}" = set; then
13014   enableval=$enable_sdltest;
13015 else
13016   enable_sdltest=yes
13017 fi
13018
13019
13020   if test x$sdl_exec_prefix != x ; then
13021      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
13022      if test x${SDL_CONFIG+set} != xset ; then
13023         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
13024      fi
13025   fi
13026   if test x$sdl_prefix != x ; then
13027      sdl_args="$sdl_args --prefix=$sdl_prefix"
13028      if test x${SDL_CONFIG+set} != xset ; then
13029         SDL_CONFIG=$sdl_prefix/bin/sdl-config
13030      fi
13031   fi
13032
13033
13034   PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13035   # Extract the first word of "sdl-config", so it can be a program name with args.
13036 set dummy sdl-config; ac_word=$2
13037 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13038 $as_echo_n "checking for $ac_word... " >&6; }
13039 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
13040   $as_echo_n "(cached) " >&6
13041 else
13042   case $SDL_CONFIG in
13043   [\\/]* | ?:[\\/]*)
13044   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13045   ;;
13046   *)
13047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13049 do
13050   IFS=$as_save_IFS
13051   test -z "$as_dir" && as_dir=.
13052   for ac_exec_ext in '' $ac_executable_extensions; do
13053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13054     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13055     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13056     break 2
13057   fi
13058 done
13059 done
13060 IFS=$as_save_IFS
13061
13062   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
13063   ;;
13064 esac
13065 fi
13066 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
13067 if test -n "$SDL_CONFIG"; then
13068   { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
13069 $as_echo "$SDL_CONFIG" >&6; }
13070 else
13071   { $as_echo "$as_me:$LINENO: result: no" >&5
13072 $as_echo "no" >&6; }
13073 fi
13074
13075
13076   min_sdl_version=0.11.0
13077   { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
13078 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
13079   no_sdl=""
13080   if test "$SDL_CONFIG" = "no" ; then
13081     no_sdl=yes
13082   else
13083     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
13084     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
13085
13086     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
13087            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13088     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
13089            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13090     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
13091            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13092     if test "x$enable_sdltest" = "xyes" ; then
13093       ac_save_CFLAGS="$CFLAGS"
13094       ac_save_CXXFLAGS="$CXXFLAGS"
13095       ac_save_LIBS="$LIBS"
13096       CFLAGS="$CFLAGS $SDL_CFLAGS"
13097       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13098       LIBS="$LIBS $SDL_LIBS"
13099       rm -f conf.sdltest
13100       if test "$cross_compiling" = yes; then
13101   echo $ac_n "cross compiling; assumed OK... $ac_c"
13102 else
13103   cat >conftest.$ac_ext <<_ACEOF
13104 /* confdefs.h.  */
13105 _ACEOF
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h.  */
13109
13110 #include <stdio.h>
13111 #include <stdlib.h>
13112 #include <string.h>
13113 #include "SDL.h"
13114
13115 char*
13116 my_strdup (char *str)
13117 {
13118   char *new_str;
13119
13120   if (str)
13121     {
13122       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13123       strcpy (new_str, str);
13124     }
13125   else
13126     new_str = NULL;
13127
13128   return new_str;
13129 }
13130
13131 int main (int argc, char *argv[])
13132 {
13133   int major, minor, micro;
13134   char *tmp_version;
13135
13136   /* This hangs on some systems (?)
13137   system ("touch conf.sdltest");
13138   */
13139   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
13140
13141   /* HP/UX 9 (%@#!) writes to sscanf strings */
13142   tmp_version = my_strdup("$min_sdl_version");
13143   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13144      printf("%s, bad version string\n", "$min_sdl_version");
13145      exit(1);
13146    }
13147
13148    if (($sdl_major_version > major) ||
13149       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
13150       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
13151     {
13152       return 0;
13153     }
13154   else
13155     {
13156       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
13157       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
13158       printf("*** best to upgrade to the required version.\n");
13159       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
13160       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
13161       printf("*** config.cache before re-running configure\n");
13162       return 1;
13163     }
13164 }
13165
13166
13167 _ACEOF
13168 rm -f conftest$ac_exeext
13169 if { (ac_try="$ac_link"
13170 case "(($ac_try" in
13171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172   *) ac_try_echo=$ac_try;;
13173 esac
13174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13175 $as_echo "$ac_try_echo") >&5
13176   (eval "$ac_link") 2>&5
13177   ac_status=$?
13178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13180   { (case "(($ac_try" in
13181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182   *) ac_try_echo=$ac_try;;
13183 esac
13184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13185 $as_echo "$ac_try_echo") >&5
13186   (eval "$ac_try") 2>&5
13187   ac_status=$?
13188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189   (exit $ac_status); }; }; then
13190   :
13191 else
13192   $as_echo "$as_me: program exited with status $ac_status" >&5
13193 $as_echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13195
13196 ( exit $ac_status )
13197 no_sdl=yes
13198 fi
13199 rm -rf conftest.dSYM
13200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13201 fi
13202
13203
13204        CFLAGS="$ac_save_CFLAGS"
13205        CXXFLAGS="$ac_save_CXXFLAGS"
13206        LIBS="$ac_save_LIBS"
13207      fi
13208   fi
13209   if test "x$no_sdl" = x ; then
13210      { $as_echo "$as_me:$LINENO: result: yes" >&5
13211 $as_echo "yes" >&6; }
13212
13213   HAVE_SDL=yes
13214   SDL_LIBS=`$SDL_CONFIG --libs`
13215
13216   else
13217      { $as_echo "$as_me:$LINENO: result: no" >&5
13218 $as_echo "no" >&6; }
13219      if test "$SDL_CONFIG" = "no" ; then
13220        echo "*** The sdl-config script installed by SDL could not be found"
13221        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
13222        echo "*** your path, or set the SDL_CONFIG environment variable to the"
13223        echo "*** full path to sdl-config."
13224      else
13225        if test -f conf.sdltest ; then
13226         :
13227        else
13228           echo "*** Could not run SDL test program, checking why..."
13229           CFLAGS="$CFLAGS $SDL_CFLAGS"
13230           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13231           LIBS="$LIBS $SDL_LIBS"
13232           cat >conftest.$ac_ext <<_ACEOF
13233 /* confdefs.h.  */
13234 _ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h.  */
13238
13239 #include <stdio.h>
13240 #include "SDL.h"
13241
13242 int main(int argc, char *argv[])
13243 { return 0; }
13244 #undef  main
13245 #define main K_and_R_C_main
13246
13247 int
13248 main ()
13249 {
13250  return 0;
13251   ;
13252   return 0;
13253 }
13254 _ACEOF
13255 rm -f conftest.$ac_objext conftest$ac_exeext
13256 if { (ac_try="$ac_link"
13257 case "(($ac_try" in
13258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259   *) ac_try_echo=$ac_try;;
13260 esac
13261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13262 $as_echo "$ac_try_echo") >&5
13263   (eval "$ac_link") 2>conftest.er1
13264   ac_status=$?
13265   grep -v '^ *+' conftest.er1 >conftest.err
13266   rm -f conftest.er1
13267   cat conftest.err >&5
13268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269   (exit $ac_status); } && {
13270          test -z "$ac_c_werror_flag" ||
13271          test ! -s conftest.err
13272        } && test -s conftest$ac_exeext && {
13273          test "$cross_compiling" = yes ||
13274          $as_test_x conftest$ac_exeext
13275        }; then
13276    echo "*** The test program compiled, but did not run. This usually means"
13277           echo "*** that the run-time linker is not finding SDL or finding the wrong"
13278           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
13279           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13280           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13281           echo "*** is required on your system"
13282           echo "***"
13283           echo "*** If you have an old version installed, it is best to remove it, although"
13284           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13285 else
13286   $as_echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13288
13289          echo "*** The test program failed to compile or link. See the file config.log for the"
13290           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
13291           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
13292           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
13293 fi
13294
13295 rm -rf conftest.dSYM
13296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13297       conftest$ac_exeext conftest.$ac_ext
13298           CFLAGS="$ac_save_CFLAGS"
13299           CXXFLAGS="$ac_save_CXXFLAGS"
13300           LIBS="$ac_save_LIBS"
13301        fi
13302      fi
13303      SDL_CFLAGS=""
13304      SDL_LIBS=""
13305      { $as_echo "$as_me:$LINENO: WARNING: *** Unable to find SDL -- Not compiling example players ***" >&5
13306 $as_echo "$as_me: WARNING: *** Unable to find SDL -- Not compiling example players ***" >&2;}
13307   fi
13308
13309
13310   rm -f conf.sdltest
13311
13312
13313 HAVE_OSS=no
13314
13315
13316
13317 for ac_header in sys/soundcard.h soundcard.h machine/soundcard.h
13318 do
13319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13321   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13322 $as_echo_n "checking for $ac_header... " >&6; }
13323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13324   $as_echo_n "(cached) " >&6
13325 fi
13326 ac_res=`eval 'as_val=${'$as_ac_Header'}
13327                  $as_echo "$as_val"'`
13328                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13329 $as_echo "$ac_res" >&6; }
13330 else
13331   # Is the header compilable?
13332 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13333 $as_echo_n "checking $ac_header usability... " >&6; }
13334 cat >conftest.$ac_ext <<_ACEOF
13335 /* confdefs.h.  */
13336 _ACEOF
13337 cat confdefs.h >>conftest.$ac_ext
13338 cat >>conftest.$ac_ext <<_ACEOF
13339 /* end confdefs.h.  */
13340 $ac_includes_default
13341 #include <$ac_header>
13342 _ACEOF
13343 rm -f conftest.$ac_objext
13344 if { (ac_try="$ac_compile"
13345 case "(($ac_try" in
13346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347   *) ac_try_echo=$ac_try;;
13348 esac
13349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13350 $as_echo "$ac_try_echo") >&5
13351   (eval "$ac_compile") 2>conftest.er1
13352   ac_status=$?
13353   grep -v '^ *+' conftest.er1 >conftest.err
13354   rm -f conftest.er1
13355   cat conftest.err >&5
13356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357   (exit $ac_status); } && {
13358          test -z "$ac_c_werror_flag" ||
13359          test ! -s conftest.err
13360        } && test -s conftest.$ac_objext; then
13361   ac_header_compiler=yes
13362 else
13363   $as_echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13365
13366         ac_header_compiler=no
13367 fi
13368
13369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13371 $as_echo "$ac_header_compiler" >&6; }
13372
13373 # Is the header present?
13374 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13375 $as_echo_n "checking $ac_header presence... " >&6; }
13376 cat >conftest.$ac_ext <<_ACEOF
13377 /* confdefs.h.  */
13378 _ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h.  */
13382 #include <$ac_header>
13383 _ACEOF
13384 if { (ac_try="$ac_cpp conftest.$ac_ext"
13385 case "(($ac_try" in
13386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387   *) ac_try_echo=$ac_try;;
13388 esac
13389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13390 $as_echo "$ac_try_echo") >&5
13391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13392   ac_status=$?
13393   grep -v '^ *+' conftest.er1 >conftest.err
13394   rm -f conftest.er1
13395   cat conftest.err >&5
13396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); } >/dev/null && {
13398          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13399          test ! -s conftest.err
13400        }; then
13401   ac_header_preproc=yes
13402 else
13403   $as_echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13405
13406   ac_header_preproc=no
13407 fi
13408
13409 rm -f conftest.err conftest.$ac_ext
13410 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13411 $as_echo "$ac_header_preproc" >&6; }
13412
13413 # So?  What about this header?
13414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13415   yes:no: )
13416     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13417 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13418     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13419 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13420     ac_header_preproc=yes
13421     ;;
13422   no:yes:* )
13423     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13424 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13425     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13426 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13427     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13428 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13429     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13430 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13431     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13432 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13433     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13434 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13435
13436     ;;
13437 esac
13438 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13439 $as_echo_n "checking for $ac_header... " >&6; }
13440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13441   $as_echo_n "(cached) " >&6
13442 else
13443   eval "$as_ac_Header=\$ac_header_preproc"
13444 fi
13445 ac_res=`eval 'as_val=${'$as_ac_Header'}
13446                  $as_echo "$as_val"'`
13447                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13448 $as_echo "$ac_res" >&6; }
13449
13450 fi
13451 as_val=`eval 'as_val=${'$as_ac_Header'}
13452                  $as_echo "$as_val"'`
13453    if test "x$as_val" = x""yes; then
13454   cat >>confdefs.h <<_ACEOF
13455 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13456 _ACEOF
13457
13458   HAVE_OSS=yes
13459   break
13460
13461 fi
13462
13463 done
13464
13465 if test x$HAVE_OSS != xyes; then
13466   { $as_echo "$as_me:$LINENO: WARNING: OSS audio support not found -- not compiling player_example" >&5
13467 $as_echo "$as_me: WARNING: OSS audio support not found -- not compiling player_example" >&2;}
13468 fi
13469
13470 OSS_LIBS=
13471 case "$target_os" in
13472   openbsd*)
13473     OSS_LIBS='-lossaudio'
13474     ;;
13475 esac
13476
13477
13478 HAVE_PNG=no
13479 if test "x$HAVE_PKG_CONFIG" = "xyes"
13480 then
13481
13482 pkg_failed=no
13483 { $as_echo "$as_me:$LINENO: checking for PNG" >&5
13484 $as_echo_n "checking for PNG... " >&6; }
13485
13486 if test -n "$PKG_CONFIG"; then
13487     if test -n "$PNG_CFLAGS"; then
13488         pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
13489     else
13490         if test -n "$PKG_CONFIG" && \
13491     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng\"") >&5
13492   ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
13493   ac_status=$?
13494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); }; then
13496   pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
13497 else
13498   pkg_failed=yes
13499 fi
13500     fi
13501 else
13502         pkg_failed=untried
13503 fi
13504 if test -n "$PKG_CONFIG"; then
13505     if test -n "$PNG_LIBS"; then
13506         pkg_cv_PNG_LIBS="$PNG_LIBS"
13507     else
13508         if test -n "$PKG_CONFIG" && \
13509     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng\"") >&5
13510   ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
13511   ac_status=$?
13512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); }; then
13514   pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
13515 else
13516   pkg_failed=yes
13517 fi
13518     fi
13519 else
13520         pkg_failed=untried
13521 fi
13522
13523
13524
13525 if test $pkg_failed = yes; then
13526
13527 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13528         _pkg_short_errors_supported=yes
13529 else
13530         _pkg_short_errors_supported=no
13531 fi
13532         if test $_pkg_short_errors_supported = yes; then
13533                 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng"`
13534         else
13535                 PNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng"`
13536         fi
13537         # Put the nasty error message in config.log where it belongs
13538         echo "$PNG_PKG_ERRORS" >&5
13539
13540         { $as_echo "$as_me:$LINENO: result: no" >&5
13541 $as_echo "no" >&6; }
13542                 HAVE_PNG=no
13543 elif test $pkg_failed = untried; then
13544         HAVE_PNG=no
13545 else
13546         PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
13547         PNG_LIBS=$pkg_cv_PNG_LIBS
13548         { $as_echo "$as_me:$LINENO: result: yes" >&5
13549 $as_echo "yes" >&6; }
13550         HAVE_PNG=yes
13551 fi
13552 fi
13553
13554
13555
13556 HAVE_CAIRO=no
13557 # Check whether --enable-telemetry was given.
13558 if test "${enable_telemetry+set}" = set; then
13559   enableval=$enable_telemetry;  ac_enable_telemetry=$enableval
13560 else
13561    ac_enable_telemetry=no
13562 fi
13563
13564
13565 if test "x${ac_enable_telemetry}" = xyes; then
13566    if test "x$HAVE_PKG_CONFIG" = "xyes"
13567    then
13568
13569 pkg_failed=no
13570 { $as_echo "$as_me:$LINENO: checking for CAIRO" >&5
13571 $as_echo_n "checking for CAIRO... " >&6; }
13572
13573 if test -n "$PKG_CONFIG"; then
13574     if test -n "$CAIRO_CFLAGS"; then
13575         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13576     else
13577         if test -n "$PKG_CONFIG" && \
13578     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
13579   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
13580   ac_status=$?
13581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); }; then
13583   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
13584 else
13585   pkg_failed=yes
13586 fi
13587     fi
13588 else
13589         pkg_failed=untried
13590 fi
13591 if test -n "$PKG_CONFIG"; then
13592     if test -n "$CAIRO_LIBS"; then
13593         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13594     else
13595         if test -n "$PKG_CONFIG" && \
13596     { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
13597   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
13598   ac_status=$?
13599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600   (exit $ac_status); }; then
13601   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
13602 else
13603   pkg_failed=yes
13604 fi
13605     fi
13606 else
13607         pkg_failed=untried
13608 fi
13609
13610
13611
13612 if test $pkg_failed = yes; then
13613
13614 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13615         _pkg_short_errors_supported=yes
13616 else
13617         _pkg_short_errors_supported=no
13618 fi
13619         if test $_pkg_short_errors_supported = yes; then
13620                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
13621         else
13622                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
13623         fi
13624         # Put the nasty error message in config.log where it belongs
13625         echo "$CAIRO_PKG_ERRORS" >&5
13626
13627         { $as_echo "$as_me:$LINENO: result: no" >&5
13628 $as_echo "no" >&6; }
13629                 HAVE_CAIRO=no
13630 elif test $pkg_failed = untried; then
13631         HAVE_CAIRO=no
13632 else
13633         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
13634         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
13635         { $as_echo "$as_me:$LINENO: result: yes" >&5
13636 $as_echo "yes" >&6; }
13637         HAVE_CAIRO=yes
13638 fi
13639
13640 cat >>confdefs.h <<\_ACEOF
13641 #define HAVE_CAIRO /**/
13642 _ACEOF
13643
13644    fi
13645    if test x$HAVE_CAIRO != xyes; then
13646      { $as_echo "$as_me:$LINENO: WARNING: libcairo not found -- not compiling telemetry output support " >&5
13647 $as_echo "$as_me: WARNING: libcairo not found -- not compiling telemetry output support " >&2;}
13648    fi
13649
13650
13651 fi
13652
13653
13654
13655 ac_enable_float=yes
13656 # Check whether --enable-float was given.
13657 if test "${enable_float+set}" = set; then
13658   enableval=$enable_float;  ac_enable_float=$enableval
13659 else
13660    ac_enable_float=yes
13661 fi
13662
13663
13664 if test "x${ac_enable_float}" != xyes ; then
13665
13666 cat >>confdefs.h <<\_ACEOF
13667 #define THEORA_DISABLE_FLOAT /**/
13668 _ACEOF
13669
13670 fi
13671
13672
13673 if test "x${ac_enable_float}" != xyes; then
13674   THEORA_DISABLE_FLOAT_TRUE=
13675   THEORA_DISABLE_FLOAT_FALSE='#'
13676 else
13677   THEORA_DISABLE_FLOAT_TRUE='#'
13678   THEORA_DISABLE_FLOAT_FALSE=
13679 fi
13680
13681
13682
13683 ac_enable_encode=yes
13684 # Check whether --enable-encode was given.
13685 if test "${enable_encode+set}" = set; then
13686   enableval=$enable_encode;  ac_enable_encode=$enableval
13687 else
13688    ac_enable_encode=yes
13689 fi
13690
13691
13692 if test "x${ac_enable_encode}" != xyes ; then
13693
13694 cat >>confdefs.h <<\_ACEOF
13695 #define THEORA_DISABLE_ENCODE /**/
13696 _ACEOF
13697
13698 else
13699     if test x$HAVE_VORBIS = xyes; then
13700       BUILDABLE_EXAMPLES="$BUILDABLE_EXAMPLES encoder_example\$(EXEEXT)"
13701     else
13702       { $as_echo "$as_me:$LINENO: Vorbis missing, cannot build example encoder" >&5
13703 $as_echo "$as_me: Vorbis missing, cannot build example encoder" >&6;}
13704     fi
13705 fi
13706
13707
13708 if test "x${ac_enable_encode}" != xyes; then
13709   THEORA_DISABLE_ENCODE_TRUE=
13710   THEORA_DISABLE_ENCODE_FALSE='#'
13711 else
13712   THEORA_DISABLE_ENCODE_TRUE='#'
13713   THEORA_DISABLE_ENCODE_FALSE=
13714 fi
13715
13716
13717
13718 ac_enable_examples=yes
13719 # Check whether --enable-examples was given.
13720 if test "${enable_examples+set}" = set; then
13721   enableval=$enable_examples;  ac_enable_examples=$enableval
13722 else
13723    ac_enable_examples=yes
13724 fi
13725
13726
13727
13728 if test "x${ac_enable_examples}" != xno; then
13729   THEORA_ENABLE_EXAMPLES_TRUE=
13730   THEORA_ENABLE_EXAMPLES_FALSE='#'
13731 else
13732   THEORA_ENABLE_EXAMPLES_TRUE='#'
13733   THEORA_ENABLE_EXAMPLES_FALSE=
13734 fi
13735
13736
13737
13738
13739
13740
13741
13742 { $as_echo "$as_me:$LINENO: checking for library containing ftime" >&5
13743 $as_echo_n "checking for library containing ftime... " >&6; }
13744 if test "${ac_cv_search_ftime+set}" = set; then
13745   $as_echo_n "(cached) " >&6
13746 else
13747   ac_func_search_save_LIBS=$LIBS
13748 cat >conftest.$ac_ext <<_ACEOF
13749 /* confdefs.h.  */
13750 _ACEOF
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h.  */
13754
13755 /* Override any GCC internal prototype to avoid an error.
13756    Use char because int might match the return type of a GCC
13757    builtin and then its argument prototype would still apply.  */
13758 #ifdef __cplusplus
13759 extern "C"
13760 #endif
13761 char ftime ();
13762 int
13763 main ()
13764 {
13765 return ftime ();
13766   ;
13767   return 0;
13768 }
13769 _ACEOF
13770 for ac_lib in '' compat; do
13771   if test -z "$ac_lib"; then
13772     ac_res="none required"
13773   else
13774     ac_res=-l$ac_lib
13775     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13776   fi
13777   rm -f conftest.$ac_objext conftest$ac_exeext
13778 if { (ac_try="$ac_link"
13779 case "(($ac_try" in
13780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781   *) ac_try_echo=$ac_try;;
13782 esac
13783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13784 $as_echo "$ac_try_echo") >&5
13785   (eval "$ac_link") 2>conftest.er1
13786   ac_status=$?
13787   grep -v '^ *+' conftest.er1 >conftest.err
13788   rm -f conftest.er1
13789   cat conftest.err >&5
13790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791   (exit $ac_status); } && {
13792          test -z "$ac_c_werror_flag" ||
13793          test ! -s conftest.err
13794        } && test -s conftest$ac_exeext && {
13795          test "$cross_compiling" = yes ||
13796          $as_test_x conftest$ac_exeext
13797        }; then
13798   ac_cv_search_ftime=$ac_res
13799 else
13800   $as_echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13802
13803
13804 fi
13805
13806 rm -rf conftest.dSYM
13807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13808       conftest$ac_exeext
13809   if test "${ac_cv_search_ftime+set}" = set; then
13810   break
13811 fi
13812 done
13813 if test "${ac_cv_search_ftime+set}" = set; then
13814   :
13815 else
13816   ac_cv_search_ftime=no
13817 fi
13818 rm conftest.$ac_ext
13819 LIBS=$ac_func_search_save_LIBS
13820 fi
13821 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ftime" >&5
13822 $as_echo "$ac_cv_search_ftime" >&6; }
13823 ac_res=$ac_cv_search_ftime
13824 if test "$ac_res" != no; then
13825   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13826
13827 fi
13828
13829
13830 { $as_echo "$as_me:$LINENO: checking for getopt_long" >&5
13831 $as_echo_n "checking for getopt_long... " >&6; }
13832 if test "${ac_cv_func_getopt_long+set}" = set; then
13833   $as_echo_n "(cached) " >&6
13834 else
13835   cat >conftest.$ac_ext <<_ACEOF
13836 /* confdefs.h.  */
13837 _ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h.  */
13841 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
13842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13843 #define getopt_long innocuous_getopt_long
13844
13845 /* System header to define __stub macros and hopefully few prototypes,
13846     which can conflict with char getopt_long (); below.
13847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13848     <limits.h> exists even on freestanding compilers.  */
13849
13850 #ifdef __STDC__
13851 # include <limits.h>
13852 #else
13853 # include <assert.h>
13854 #endif
13855
13856 #undef getopt_long
13857
13858 /* Override any GCC internal prototype to avoid an error.
13859    Use char because int might match the return type of a GCC
13860    builtin and then its argument prototype would still apply.  */
13861 #ifdef __cplusplus
13862 extern "C"
13863 #endif
13864 char getopt_long ();
13865 /* The GNU C library defines this for functions which it implements
13866     to always fail with ENOSYS.  Some functions are actually named
13867     something starting with __ and the normal name is an alias.  */
13868 #if defined __stub_getopt_long || defined __stub___getopt_long
13869 choke me
13870 #endif
13871
13872 int
13873 main ()
13874 {
13875 return getopt_long ();
13876   ;
13877   return 0;
13878 }
13879 _ACEOF
13880 rm -f conftest.$ac_objext conftest$ac_exeext
13881 if { (ac_try="$ac_link"
13882 case "(($ac_try" in
13883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884   *) ac_try_echo=$ac_try;;
13885 esac
13886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13887 $as_echo "$ac_try_echo") >&5
13888   (eval "$ac_link") 2>conftest.er1
13889   ac_status=$?
13890   grep -v '^ *+' conftest.er1 >conftest.err
13891   rm -f conftest.er1
13892   cat conftest.err >&5
13893   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); } && {
13895          test -z "$ac_c_werror_flag" ||
13896          test ! -s conftest.err
13897        } && test -s conftest$ac_exeext && {
13898          test "$cross_compiling" = yes ||
13899          $as_test_x conftest$ac_exeext
13900        }; then
13901   ac_cv_func_getopt_long=yes
13902 else
13903   $as_echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13905
13906         ac_cv_func_getopt_long=no
13907 fi
13908
13909 rm -rf conftest.dSYM
13910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13911       conftest$ac_exeext conftest.$ac_ext
13912 fi
13913 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
13914 $as_echo "$ac_cv_func_getopt_long" >&6; }
13915 if test "x$ac_cv_func_getopt_long" = x""yes; then
13916   GETOPT_OBJS=''
13917 else
13918   GETOPT_OBJS='getopt.$(OBJEXT) getopt1.$(OBJEXT)'
13919 fi
13920
13921
13922
13923 if test x$HAVE_SDL = xyes -a x$HAVE_OSS = xyes -a x$HAVE_VORBIS = xyes; then
13924   BUILDABLE_EXAMPLES="$BUILDABLE_EXAMPLES player_example\$(EXEEXT)"
13925 fi
13926 if test x$HAVE_PNG = xyes; then
13927   BUILDABLE_EXAMPLES="$BUILDABLE_EXAMPLES png2theora\$(EXEEXT)"
13928 fi
13929
13930
13931
13932
13933
13934
13935 ac_config_files="$ac_config_files Makefile lib/Makefile include/Makefile include/theora/Makefile examples/Makefile doc/Makefile doc/Doxyfile doc/spec/Makefile tests/Makefile m4/Makefile libtheora.spec theora.pc theora-uninstalled.pc theoradec.pc theoradec-uninstalled.pc theoraenc.pc theoraenc-uninstalled.pc"
13936
13937 cat >confcache <<\_ACEOF
13938 # This file is a shell script that caches the results of configure
13939 # tests run on this system so they can be shared between configure
13940 # scripts and configure runs, see configure's option --config-cache.
13941 # It is not useful on other systems.  If it contains results you don't
13942 # want to keep, you may remove or edit it.
13943 #
13944 # config.status only pays attention to the cache file if you give it
13945 # the --recheck option to rerun configure.
13946 #
13947 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13948 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13949 # following values.
13950
13951 _ACEOF
13952
13953 # The following way of writing the cache mishandles newlines in values,
13954 # but we know of no workaround that is simple, portable, and efficient.
13955 # So, we kill variables containing newlines.
13956 # Ultrix sh set writes to stderr and can't be redirected directly,
13957 # and sets the high bit in the cache file unless we assign to the vars.
13958 (
13959   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13960     eval ac_val=\$$ac_var
13961     case $ac_val in #(
13962     *${as_nl}*)
13963       case $ac_var in #(
13964       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13965 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13966       esac
13967       case $ac_var in #(
13968       _ | IFS | as_nl) ;; #(
13969       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13970       *) $as_unset $ac_var ;;
13971       esac ;;
13972     esac
13973   done
13974
13975   (set) 2>&1 |
13976     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13977     *${as_nl}ac_space=\ *)
13978       # `set' does not quote correctly, so add quotes (double-quote
13979       # substitution turns \\\\ into \\, and sed turns \\ into \).
13980       sed -n \
13981         "s/'/'\\\\''/g;
13982           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13983       ;; #(
13984     *)
13985       # `set' quotes correctly as required by POSIX, so do not add quotes.
13986       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13987       ;;
13988     esac |
13989     sort
13990 ) |
13991   sed '
13992      /^ac_cv_env_/b end
13993      t clear
13994      :clear
13995      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13996      t end
13997      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13998      :end' >>confcache
13999 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14000   if test -w "$cache_file"; then
14001     test "x$cache_file" != "x/dev/null" &&
14002       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14003 $as_echo "$as_me: updating cache $cache_file" >&6;}
14004     cat confcache >$cache_file
14005   else
14006     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14007 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14008   fi
14009 fi
14010 rm -f confcache
14011
14012 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14013 # Let make expand exec_prefix.
14014 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14015
14016 DEFS=-DHAVE_CONFIG_H
14017
14018 ac_libobjs=
14019 ac_ltlibobjs=
14020 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14021   # 1. Remove the extension, and $U if already installed.
14022   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14023   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14024   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14025   #    will be set to the directory where LIBOBJS objects are built.
14026   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14027   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14028 done
14029 LIBOBJS=$ac_libobjs
14030
14031 LTLIBOBJS=$ac_ltlibobjs
14032
14033
14034 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14035   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14036 Usually this means the macro was only invoked conditionally." >&5
14037 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14038 Usually this means the macro was only invoked conditionally." >&2;}
14039    { (exit 1); exit 1; }; }
14040 fi
14041 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14042   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14043 Usually this means the macro was only invoked conditionally." >&5
14044 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14045 Usually this means the macro was only invoked conditionally." >&2;}
14046    { (exit 1); exit 1; }; }
14047 fi
14048 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
14049   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined.
14050 Usually this means the macro was only invoked conditionally." >&5
14051 $as_echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined.
14052 Usually this means the macro was only invoked conditionally." >&2;}
14053    { (exit 1); exit 1; }; }
14054 fi
14055 if test -z "${BUILD_SPEC_TRUE}" && test -z "${BUILD_SPEC_FALSE}"; then
14056   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SPEC\" was never defined.
14057 Usually this means the macro was only invoked conditionally." >&5
14058 $as_echo "$as_me: error: conditional \"BUILD_SPEC\" was never defined.
14059 Usually this means the macro was only invoked conditionally." >&2;}
14060    { (exit 1); exit 1; }; }
14061 fi
14062 if test -z "${CPU_x86_64_TRUE}" && test -z "${CPU_x86_64_FALSE}"; then
14063   { { $as_echo "$as_me:$LINENO: error: conditional \"CPU_x86_64\" was never defined.
14064 Usually this means the macro was only invoked conditionally." >&5
14065 $as_echo "$as_me: error: conditional \"CPU_x86_64\" was never defined.
14066 Usually this means the macro was only invoked conditionally." >&2;}
14067    { (exit 1); exit 1; }; }
14068 fi
14069 if test -z "${CPU_x86_32_TRUE}" && test -z "${CPU_x86_32_FALSE}"; then
14070   { { $as_echo "$as_me:$LINENO: error: conditional \"CPU_x86_32\" was never defined.
14071 Usually this means the macro was only invoked conditionally." >&5
14072 $as_echo "$as_me: error: conditional \"CPU_x86_32\" was never defined.
14073 Usually this means the macro was only invoked conditionally." >&2;}
14074    { (exit 1); exit 1; }; }
14075 fi
14076 if test -z "${THEORA_DISABLE_FLOAT_TRUE}" && test -z "${THEORA_DISABLE_FLOAT_FALSE}"; then
14077   { { $as_echo "$as_me:$LINENO: error: conditional \"THEORA_DISABLE_FLOAT\" was never defined.
14078 Usually this means the macro was only invoked conditionally." >&5
14079 $as_echo "$as_me: error: conditional \"THEORA_DISABLE_FLOAT\" was never defined.
14080 Usually this means the macro was only invoked conditionally." >&2;}
14081    { (exit 1); exit 1; }; }
14082 fi
14083 if test -z "${THEORA_DISABLE_ENCODE_TRUE}" && test -z "${THEORA_DISABLE_ENCODE_FALSE}"; then
14084   { { $as_echo "$as_me:$LINENO: error: conditional \"THEORA_DISABLE_ENCODE\" was never defined.
14085 Usually this means the macro was only invoked conditionally." >&5
14086 $as_echo "$as_me: error: conditional \"THEORA_DISABLE_ENCODE\" was never defined.
14087 Usually this means the macro was only invoked conditionally." >&2;}
14088    { (exit 1); exit 1; }; }
14089 fi
14090 if test -z "${THEORA_ENABLE_EXAMPLES_TRUE}" && test -z "${THEORA_ENABLE_EXAMPLES_FALSE}"; then
14091   { { $as_echo "$as_me:$LINENO: error: conditional \"THEORA_ENABLE_EXAMPLES\" was never defined.
14092 Usually this means the macro was only invoked conditionally." >&5
14093 $as_echo "$as_me: error: conditional \"THEORA_ENABLE_EXAMPLES\" was never defined.
14094 Usually this means the macro was only invoked conditionally." >&2;}
14095    { (exit 1); exit 1; }; }
14096 fi
14097
14098 : ${CONFIG_STATUS=./config.status}
14099 ac_write_fail=0
14100 ac_clean_files_save=$ac_clean_files
14101 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14102 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14103 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14104 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14105 #! $SHELL
14106 # Generated by $as_me.
14107 # Run this file to recreate the current configuration.
14108 # Compiler output produced by configure, useful for debugging
14109 # configure, is in config.log if it exists.
14110
14111 debug=false
14112 ac_cs_recheck=false
14113 ac_cs_silent=false
14114 SHELL=\${CONFIG_SHELL-$SHELL}
14115 _ACEOF
14116
14117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14118 ## --------------------- ##
14119 ## M4sh Initialization.  ##
14120 ## --------------------- ##
14121
14122 # Be more Bourne compatible
14123 DUALCASE=1; export DUALCASE # for MKS sh
14124 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14125   emulate sh
14126   NULLCMD=:
14127   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14128   # is contrary to our usage.  Disable this feature.
14129   alias -g '${1+"$@"}'='"$@"'
14130   setopt NO_GLOB_SUBST
14131 else
14132   case `(set -o) 2>/dev/null` in
14133   *posix*) set -o posix ;;
14134 esac
14135
14136 fi
14137
14138
14139
14140
14141 # PATH needs CR
14142 # Avoid depending upon Character Ranges.
14143 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14144 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14145 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14146 as_cr_digits='0123456789'
14147 as_cr_alnum=$as_cr_Letters$as_cr_digits
14148
14149 as_nl='
14150 '
14151 export as_nl
14152 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14153 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14154 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14155 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14156 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14157   as_echo='printf %s\n'
14158   as_echo_n='printf %s'
14159 else
14160   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14161     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14162     as_echo_n='/usr/ucb/echo -n'
14163   else
14164     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14165     as_echo_n_body='eval
14166       arg=$1;
14167       case $arg in
14168       *"$as_nl"*)
14169         expr "X$arg" : "X\\(.*\\)$as_nl";
14170         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14171       esac;
14172       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14173     '
14174     export as_echo_n_body
14175     as_echo_n='sh -c $as_echo_n_body as_echo'
14176   fi
14177   export as_echo_body
14178   as_echo='sh -c $as_echo_body as_echo'
14179 fi
14180
14181 # The user is always right.
14182 if test "${PATH_SEPARATOR+set}" != set; then
14183   PATH_SEPARATOR=:
14184   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14185     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14186       PATH_SEPARATOR=';'
14187   }
14188 fi
14189
14190 # Support unset when possible.
14191 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14192   as_unset=unset
14193 else
14194   as_unset=false
14195 fi
14196
14197
14198 # IFS
14199 # We need space, tab and new line, in precisely that order.  Quoting is
14200 # there to prevent editors from complaining about space-tab.
14201 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14202 # splitting by setting IFS to empty value.)
14203 IFS=" ""        $as_nl"
14204
14205 # Find who we are.  Look in the path if we contain no directory separator.
14206 case $0 in
14207   *[\\/]* ) as_myself=$0 ;;
14208   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14209 for as_dir in $PATH
14210 do
14211   IFS=$as_save_IFS
14212   test -z "$as_dir" && as_dir=.
14213   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14214 done
14215 IFS=$as_save_IFS
14216
14217      ;;
14218 esac
14219 # We did not find ourselves, most probably we were run as `sh COMMAND'
14220 # in which case we are not to be found in the path.
14221 if test "x$as_myself" = x; then
14222   as_myself=$0
14223 fi
14224 if test ! -f "$as_myself"; then
14225   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14226   { (exit 1); exit 1; }
14227 fi
14228
14229 # Work around bugs in pre-3.0 UWIN ksh.
14230 for as_var in ENV MAIL MAILPATH
14231 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14232 done
14233 PS1='$ '
14234 PS2='> '
14235 PS4='+ '
14236
14237 # NLS nuisances.
14238 LC_ALL=C
14239 export LC_ALL
14240 LANGUAGE=C
14241 export LANGUAGE
14242
14243 # Required to use basename.
14244 if expr a : '\(a\)' >/dev/null 2>&1 &&
14245    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14246   as_expr=expr
14247 else
14248   as_expr=false
14249 fi
14250
14251 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14252   as_basename=basename
14253 else
14254   as_basename=false
14255 fi
14256
14257
14258 # Name of the executable.
14259 as_me=`$as_basename -- "$0" ||
14260 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14261          X"$0" : 'X\(//\)$' \| \
14262          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14263 $as_echo X/"$0" |
14264     sed '/^.*\/\([^/][^/]*\)\/*$/{
14265             s//\1/
14266             q
14267           }
14268           /^X\/\(\/\/\)$/{
14269             s//\1/
14270             q
14271           }
14272           /^X\/\(\/\).*/{
14273             s//\1/
14274             q
14275           }
14276           s/.*/./; q'`
14277
14278 # CDPATH.
14279 $as_unset CDPATH
14280
14281
14282
14283   as_lineno_1=$LINENO
14284   as_lineno_2=$LINENO
14285   test "x$as_lineno_1" != "x$as_lineno_2" &&
14286   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14287
14288   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14289   # uniformly replaced by the line number.  The first 'sed' inserts a
14290   # line-number line after each line using $LINENO; the second 'sed'
14291   # does the real work.  The second script uses 'N' to pair each
14292   # line-number line with the line containing $LINENO, and appends
14293   # trailing '-' during substitution so that $LINENO is not a special
14294   # case at line end.
14295   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14296   # scripts with optimization help from Paolo Bonzini.  Blame Lee
14297   # E. McMahon (1931-1989) for sed's syntax.  :-)
14298   sed -n '
14299     p
14300     /[$]LINENO/=
14301   ' <$as_myself |
14302     sed '
14303       s/[$]LINENO.*/&-/
14304       t lineno
14305       b
14306       :lineno
14307       N
14308       :loop
14309       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14310       t loop
14311       s/-\n.*//
14312     ' >$as_me.lineno &&
14313   chmod +x "$as_me.lineno" ||
14314     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14315    { (exit 1); exit 1; }; }
14316
14317   # Don't try to exec as it changes $[0], causing all sort of problems
14318   # (the dirname of $[0] is not the place where we might find the
14319   # original and so on.  Autoconf is especially sensitive to this).
14320   . "./$as_me.lineno"
14321   # Exit status is that of the last command.
14322   exit
14323 }
14324
14325
14326 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14327   as_dirname=dirname
14328 else
14329   as_dirname=false
14330 fi
14331
14332 ECHO_C= ECHO_N= ECHO_T=
14333 case `echo -n x` in
14334 -n*)
14335   case `echo 'x\c'` in
14336   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14337   *)   ECHO_C='\c';;
14338   esac;;
14339 *)
14340   ECHO_N='-n';;
14341 esac
14342 if expr a : '\(a\)' >/dev/null 2>&1 &&
14343    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14344   as_expr=expr
14345 else
14346   as_expr=false
14347 fi
14348
14349 rm -f conf$$ conf$$.exe conf$$.file
14350 if test -d conf$$.dir; then
14351   rm -f conf$$.dir/conf$$.file
14352 else
14353   rm -f conf$$.dir
14354   mkdir conf$$.dir 2>/dev/null
14355 fi
14356 if (echo >conf$$.file) 2>/dev/null; then
14357   if ln -s conf$$.file conf$$ 2>/dev/null; then
14358     as_ln_s='ln -s'
14359     # ... but there are two gotchas:
14360     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14361     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14362     # In both cases, we have to default to `cp -p'.
14363     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14364       as_ln_s='cp -p'
14365   elif ln conf$$.file conf$$ 2>/dev/null; then
14366     as_ln_s=ln
14367   else
14368     as_ln_s='cp -p'
14369   fi
14370 else
14371   as_ln_s='cp -p'
14372 fi
14373 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14374 rmdir conf$$.dir 2>/dev/null
14375
14376 if mkdir -p . 2>/dev/null; then
14377   as_mkdir_p=:
14378 else
14379   test -d ./-p && rmdir ./-p
14380   as_mkdir_p=false
14381 fi
14382
14383 if test -x / >/dev/null 2>&1; then
14384   as_test_x='test -x'
14385 else
14386   if ls -dL / >/dev/null 2>&1; then
14387     as_ls_L_option=L
14388   else
14389     as_ls_L_option=
14390   fi
14391   as_test_x='
14392     eval sh -c '\''
14393       if test -d "$1"; then
14394         test -d "$1/.";
14395       else
14396         case $1 in
14397         -*)set "./$1";;
14398         esac;
14399         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14400         ???[sx]*):;;*)false;;esac;fi
14401     '\'' sh
14402   '
14403 fi
14404 as_executable_p=$as_test_x
14405
14406 # Sed expression to map a string onto a valid CPP name.
14407 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14408
14409 # Sed expression to map a string onto a valid variable name.
14410 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14411
14412
14413 exec 6>&1
14414
14415 # Save the log message, to keep $[0] and so on meaningful, and to
14416 # report actual input values of CONFIG_FILES etc. instead of their
14417 # values after options handling.
14418 ac_log="
14419 This file was extended by libtheora $as_me 1.1.1, which was
14420 generated by GNU Autoconf 2.63.  Invocation command line was
14421
14422   CONFIG_FILES    = $CONFIG_FILES
14423   CONFIG_HEADERS  = $CONFIG_HEADERS
14424   CONFIG_LINKS    = $CONFIG_LINKS
14425   CONFIG_COMMANDS = $CONFIG_COMMANDS
14426   $ $0 $@
14427
14428 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14429 "
14430
14431 _ACEOF
14432
14433 case $ac_config_files in *"
14434 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14435 esac
14436
14437 case $ac_config_headers in *"
14438 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14439 esac
14440
14441
14442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14443 # Files that config.status was made for.
14444 config_files="$ac_config_files"
14445 config_headers="$ac_config_headers"
14446 config_commands="$ac_config_commands"
14447
14448 _ACEOF
14449
14450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14451 ac_cs_usage="\
14452 \`$as_me' instantiates files from templates according to the
14453 current configuration.
14454
14455 Usage: $0 [OPTION]... [FILE]...
14456
14457   -h, --help       print this help, then exit
14458   -V, --version    print version number and configuration settings, then exit
14459   -q, --quiet, --silent
14460                    do not print progress messages
14461   -d, --debug      don't remove temporary files
14462       --recheck    update $as_me by reconfiguring in the same conditions
14463       --file=FILE[:TEMPLATE]
14464                    instantiate the configuration file FILE
14465       --header=FILE[:TEMPLATE]
14466                    instantiate the configuration header FILE
14467
14468 Configuration files:
14469 $config_files
14470
14471 Configuration headers:
14472 $config_headers
14473
14474 Configuration commands:
14475 $config_commands
14476
14477 Report bugs to <bug-autoconf@gnu.org>."
14478
14479 _ACEOF
14480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14481 ac_cs_version="\\
14482 libtheora config.status 1.1.1
14483 configured by $0, generated by GNU Autoconf 2.63,
14484   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14485
14486 Copyright (C) 2008 Free Software Foundation, Inc.
14487 This config.status script is free software; the Free Software Foundation
14488 gives unlimited permission to copy, distribute and modify it."
14489
14490 ac_pwd='$ac_pwd'
14491 srcdir='$srcdir'
14492 INSTALL='$INSTALL'
14493 AWK='$AWK'
14494 test -n "\$AWK" || AWK=awk
14495 _ACEOF
14496
14497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14498 # The default lists apply if the user does not specify any file.
14499 ac_need_defaults=:
14500 while test $# != 0
14501 do
14502   case $1 in
14503   --*=*)
14504     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14505     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14506     ac_shift=:
14507     ;;
14508   *)
14509     ac_option=$1
14510     ac_optarg=$2
14511     ac_shift=shift
14512     ;;
14513   esac
14514
14515   case $ac_option in
14516   # Handling of the options.
14517   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14518     ac_cs_recheck=: ;;
14519   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14520     $as_echo "$ac_cs_version"; exit ;;
14521   --debug | --debu | --deb | --de | --d | -d )
14522     debug=: ;;
14523   --file | --fil | --fi | --f )
14524     $ac_shift
14525     case $ac_optarg in
14526     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14527     esac
14528     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14529     ac_need_defaults=false;;
14530   --header | --heade | --head | --hea )
14531     $ac_shift
14532     case $ac_optarg in
14533     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14534     esac
14535     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14536     ac_need_defaults=false;;
14537   --he | --h)
14538     # Conflict between --help and --header
14539     { $as_echo "$as_me: error: ambiguous option: $1
14540 Try \`$0 --help' for more information." >&2
14541    { (exit 1); exit 1; }; };;
14542   --help | --hel | -h )
14543     $as_echo "$ac_cs_usage"; exit ;;
14544   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14545   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14546     ac_cs_silent=: ;;
14547
14548   # This is an error.
14549   -*) { $as_echo "$as_me: error: unrecognized option: $1
14550 Try \`$0 --help' for more information." >&2
14551    { (exit 1); exit 1; }; } ;;
14552
14553   *) ac_config_targets="$ac_config_targets $1"
14554      ac_need_defaults=false ;;
14555
14556   esac
14557   shift
14558 done
14559
14560 ac_configure_extra_args=
14561
14562 if $ac_cs_silent; then
14563   exec 6>/dev/null
14564   ac_configure_extra_args="$ac_configure_extra_args --silent"
14565 fi
14566
14567 _ACEOF
14568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14569 if \$ac_cs_recheck; then
14570   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14571   shift
14572   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14573   CONFIG_SHELL='$SHELL'
14574   export CONFIG_SHELL
14575   exec "\$@"
14576 fi
14577
14578 _ACEOF
14579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14580 exec 5>>config.log
14581 {
14582   echo
14583   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14584 ## Running $as_me. ##
14585 _ASBOX
14586   $as_echo "$ac_log"
14587 } >&5
14588
14589 _ACEOF
14590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14591 #
14592 # INIT-COMMANDS
14593 #
14594 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14595
14596
14597 # The HP-UX ksh and POSIX shell print the target directory to stdout
14598 # if CDPATH is set.
14599 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14600
14601 sed_quote_subst='$sed_quote_subst'
14602 double_quote_subst='$double_quote_subst'
14603 delay_variable_subst='$delay_variable_subst'
14604 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
14605 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14606 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14607 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14608 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14609 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14610 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14611 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14612 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14613 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14614 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14615 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14616 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14617 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14618 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14619 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14620 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14621 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14622 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14623 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14624 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14625 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14626 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14627 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14628 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14629 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14630 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14631 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14632 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14633 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14634 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14635 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14636 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14637 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14638 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14639 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14640 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14641 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14642 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14643 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14644 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14645 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14646 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14647 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14648 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14649 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14650 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14651 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14652 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14653 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14654 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14655 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14656 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14657 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14658 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14659 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14660 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14661 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14662 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14663 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14664 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14665 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14666 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14667 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14668 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14669 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14670 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14671 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14672 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14673 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14674 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14675 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14676 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14677 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14678 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14679 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14680 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14681 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14682 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14683 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14684 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14685 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14686 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14687 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14688 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14689 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14690 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14691 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14692 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14693 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14694 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14695 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14696 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14697 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14698 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14699 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14700 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14701 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14702 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14703 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14704 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14705 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14706 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14707 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14708 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14709 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14710 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14711 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14712 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14713 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14714 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14715 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14716 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14717 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14718 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14719 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14720 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14721 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14722 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14723 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14724
14725 LTCC='$LTCC'
14726 LTCFLAGS='$LTCFLAGS'
14727 compiler='$compiler_DEFAULT'
14728
14729 # Quote evaled strings.
14730 for var in SED \
14731 GREP \
14732 EGREP \
14733 FGREP \
14734 LD \
14735 NM \
14736 LN_S \
14737 lt_SP2NL \
14738 lt_NL2SP \
14739 reload_flag \
14740 deplibs_check_method \
14741 file_magic_cmd \
14742 AR \
14743 AR_FLAGS \
14744 STRIP \
14745 RANLIB \
14746 CC \
14747 CFLAGS \
14748 compiler \
14749 lt_cv_sys_global_symbol_pipe \
14750 lt_cv_sys_global_symbol_to_cdecl \
14751 lt_cv_sys_global_symbol_to_c_name_address \
14752 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14753 SHELL \
14754 ECHO \
14755 lt_prog_compiler_no_builtin_flag \
14756 lt_prog_compiler_wl \
14757 lt_prog_compiler_pic \
14758 lt_prog_compiler_static \
14759 lt_cv_prog_compiler_c_o \
14760 need_locks \
14761 DSYMUTIL \
14762 NMEDIT \
14763 LIPO \
14764 OTOOL \
14765 OTOOL64 \
14766 shrext_cmds \
14767 export_dynamic_flag_spec \
14768 whole_archive_flag_spec \
14769 compiler_needs_object \
14770 with_gnu_ld \
14771 allow_undefined_flag \
14772 no_undefined_flag \
14773 hardcode_libdir_flag_spec \
14774 hardcode_libdir_flag_spec_ld \
14775 hardcode_libdir_separator \
14776 fix_srcfile_path \
14777 exclude_expsyms \
14778 include_expsyms \
14779 file_list_spec \
14780 variables_saved_for_relink \
14781 libname_spec \
14782 library_names_spec \
14783 soname_spec \
14784 finish_eval \
14785 old_striplib \
14786 striplib; do
14787     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14788     *[\\\\\\\`\\"\\\$]*)
14789       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14790       ;;
14791     *)
14792       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14793       ;;
14794     esac
14795 done
14796
14797 # Double-quote double-evaled strings.
14798 for var in reload_cmds \
14799 old_postinstall_cmds \
14800 old_postuninstall_cmds \
14801 old_archive_cmds \
14802 extract_expsyms_cmds \
14803 old_archive_from_new_cmds \
14804 old_archive_from_expsyms_cmds \
14805 archive_cmds \
14806 archive_expsym_cmds \
14807 module_cmds \
14808 module_expsym_cmds \
14809 export_symbols_cmds \
14810 prelink_cmds \
14811 postinstall_cmds \
14812 postuninstall_cmds \
14813 finish_cmds \
14814 sys_lib_search_path_spec \
14815 sys_lib_dlsearch_path_spec; do
14816     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14817     *[\\\\\\\`\\"\\\$]*)
14818       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14819       ;;
14820     *)
14821       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14822       ;;
14823     esac
14824 done
14825
14826 # Fix-up fallback echo if it was mangled by the above quoting rules.
14827 case \$lt_ECHO in
14828 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14829   ;;
14830 esac
14831
14832 ac_aux_dir='$ac_aux_dir'
14833 xsi_shell='$xsi_shell'
14834 lt_shell_append='$lt_shell_append'
14835
14836 # See if we are running on zsh, and set the options which allow our
14837 # commands through without removal of \ escapes INIT.
14838 if test -n "\${ZSH_VERSION+set}" ; then
14839    setopt NO_GLOB_SUBST
14840 fi
14841
14842
14843     PACKAGE='$PACKAGE'
14844     VERSION='$VERSION'
14845     TIMESTAMP='$TIMESTAMP'
14846     RM='$RM'
14847     ofile='$ofile'
14848
14849
14850
14851
14852 _ACEOF
14853
14854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14855
14856 # Handling of arguments.
14857 for ac_config_target in $ac_config_targets
14858 do
14859   case $ac_config_target in
14860     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14861     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14862     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14863     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14864     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14865     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14866     "include/theora/Makefile") CONFIG_FILES="$CONFIG_FILES include/theora/Makefile" ;;
14867     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14868     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14869     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
14870     "doc/spec/Makefile") CONFIG_FILES="$CONFIG_FILES doc/spec/Makefile" ;;
14871     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14872     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
14873     "libtheora.spec") CONFIG_FILES="$CONFIG_FILES libtheora.spec" ;;
14874     "theora.pc") CONFIG_FILES="$CONFIG_FILES theora.pc" ;;
14875     "theora-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES theora-uninstalled.pc" ;;
14876     "theoradec.pc") CONFIG_FILES="$CONFIG_FILES theoradec.pc" ;;
14877     "theoradec-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES theoradec-uninstalled.pc" ;;
14878     "theoraenc.pc") CONFIG_FILES="$CONFIG_FILES theoraenc.pc" ;;
14879     "theoraenc-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES theoraenc-uninstalled.pc" ;;
14880
14881   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14882 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14883    { (exit 1); exit 1; }; };;
14884   esac
14885 done
14886
14887
14888 # If the user did not use the arguments to specify the items to instantiate,
14889 # then the envvar interface is used.  Set only those that are not.
14890 # We use the long form for the default assignment because of an extremely
14891 # bizarre bug on SunOS 4.1.3.
14892 if $ac_need_defaults; then
14893   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14894   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14895   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14896 fi
14897
14898 # Have a temporary directory for convenience.  Make it in the build tree
14899 # simply because there is no reason against having it here, and in addition,
14900 # creating and moving files from /tmp can sometimes cause problems.
14901 # Hook for its removal unless debugging.
14902 # Note that there is a small window in which the directory will not be cleaned:
14903 # after its creation but before its name has been assigned to `$tmp'.
14904 $debug ||
14905 {
14906   tmp=
14907   trap 'exit_status=$?
14908   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14909 ' 0
14910   trap '{ (exit 1); exit 1; }' 1 2 13 15
14911 }
14912 # Create a (secure) tmp directory for tmp files.
14913
14914 {
14915   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14916   test -n "$tmp" && test -d "$tmp"
14917 }  ||
14918 {
14919   tmp=./conf$$-$RANDOM
14920   (umask 077 && mkdir "$tmp")
14921 } ||
14922 {
14923    $as_echo "$as_me: cannot create a temporary directory in ." >&2
14924    { (exit 1); exit 1; }
14925 }
14926
14927 # Set up the scripts for CONFIG_FILES section.
14928 # No need to generate them if there are no CONFIG_FILES.
14929 # This happens for instance with `./config.status config.h'.
14930 if test -n "$CONFIG_FILES"; then
14931
14932
14933 ac_cr='\r'
14934 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14935 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14936   ac_cs_awk_cr='\\r'
14937 else
14938   ac_cs_awk_cr=$ac_cr
14939 fi
14940
14941 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14942 _ACEOF
14943
14944
14945 {
14946   echo "cat >conf$$subs.awk <<_ACEOF" &&
14947   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14948   echo "_ACEOF"
14949 } >conf$$subs.sh ||
14950   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14951 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14952    { (exit 1); exit 1; }; }
14953 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14954 ac_delim='%!_!# '
14955 for ac_last_try in false false false false false :; do
14956   . ./conf$$subs.sh ||
14957     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14958 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14959    { (exit 1); exit 1; }; }
14960
14961   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14962   if test $ac_delim_n = $ac_delim_num; then
14963     break
14964   elif $ac_last_try; then
14965     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14966 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14967    { (exit 1); exit 1; }; }
14968   else
14969     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14970   fi
14971 done
14972 rm -f conf$$subs.sh
14973
14974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14975 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14976 _ACEOF
14977 sed -n '
14978 h
14979 s/^/S["/; s/!.*/"]=/
14980 p
14981 g
14982 s/^[^!]*!//
14983 :repl
14984 t repl
14985 s/'"$ac_delim"'$//
14986 t delim
14987 :nl
14988 h
14989 s/\(.\{148\}\).*/\1/
14990 t more1
14991 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14992 p
14993 n
14994 b repl
14995 :more1
14996 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14997 p
14998 g
14999 s/.\{148\}//
15000 t nl
15001 :delim
15002 h
15003 s/\(.\{148\}\).*/\1/
15004 t more2
15005 s/["\\]/\\&/g; s/^/"/; s/$/"/
15006 p
15007 b
15008 :more2
15009 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15010 p
15011 g
15012 s/.\{148\}//
15013 t delim
15014 ' <conf$$subs.awk | sed '
15015 /^[^""]/{
15016   N
15017   s/\n//
15018 }
15019 ' >>$CONFIG_STATUS || ac_write_fail=1
15020 rm -f conf$$subs.awk
15021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15022 _ACAWK
15023 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15024   for (key in S) S_is_set[key] = 1
15025   FS = "\a"
15026
15027 }
15028 {
15029   line = $ 0
15030   nfields = split(line, field, "@")
15031   substed = 0
15032   len = length(field[1])
15033   for (i = 2; i < nfields; i++) {
15034     key = field[i]
15035     keylen = length(key)
15036     if (S_is_set[key]) {
15037       value = S[key]
15038       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15039       len += length(value) + length(field[++i])
15040       substed = 1
15041     } else
15042       len += 1 + keylen
15043   }
15044
15045   print line
15046 }
15047
15048 _ACAWK
15049 _ACEOF
15050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15051 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15052   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15053 else
15054   cat
15055 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15056   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15057 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15058    { (exit 1); exit 1; }; }
15059 _ACEOF
15060
15061 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15062 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15063 # trailing colons and then remove the whole line if VPATH becomes empty
15064 # (actually we leave an empty line to preserve line numbers).
15065 if test "x$srcdir" = x.; then
15066   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15067 s/:*\$(srcdir):*/:/
15068 s/:*\${srcdir}:*/:/
15069 s/:*@srcdir@:*/:/
15070 s/^\([^=]*=[     ]*\):*/\1/
15071 s/:*$//
15072 s/^[^=]*=[       ]*$//
15073 }'
15074 fi
15075
15076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15077 fi # test -n "$CONFIG_FILES"
15078
15079 # Set up the scripts for CONFIG_HEADERS section.
15080 # No need to generate them if there are no CONFIG_HEADERS.
15081 # This happens for instance with `./config.status Makefile'.
15082 if test -n "$CONFIG_HEADERS"; then
15083 cat >"$tmp/defines.awk" <<\_ACAWK ||
15084 BEGIN {
15085 _ACEOF
15086
15087 # Transform confdefs.h into an awk script `defines.awk', embedded as
15088 # here-document in config.status, that substitutes the proper values into
15089 # config.h.in to produce config.h.
15090
15091 # Create a delimiter string that does not exist in confdefs.h, to ease
15092 # handling of long lines.
15093 ac_delim='%!_!# '
15094 for ac_last_try in false false :; do
15095   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15096   if test -z "$ac_t"; then
15097     break
15098   elif $ac_last_try; then
15099     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
15100 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
15101    { (exit 1); exit 1; }; }
15102   else
15103     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15104   fi
15105 done
15106
15107 # For the awk script, D is an array of macro values keyed by name,
15108 # likewise P contains macro parameters if any.  Preserve backslash
15109 # newline sequences.
15110
15111 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15112 sed -n '
15113 s/.\{148\}/&'"$ac_delim"'/g
15114 t rset
15115 :rset
15116 s/^[     ]*#[    ]*define[       ][      ]*/ /
15117 t def
15118 d
15119 :def
15120 s/\\$//
15121 t bsnl
15122 s/["\\]/\\&/g
15123 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15124 D["\1"]=" \3"/p
15125 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15126 d
15127 :bsnl
15128 s/["\\]/\\&/g
15129 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15130 D["\1"]=" \3\\\\\\n"\\/p
15131 t cont
15132 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15133 t cont
15134 d
15135 :cont
15136 n
15137 s/.\{148\}/&'"$ac_delim"'/g
15138 t clear
15139 :clear
15140 s/\\$//
15141 t bsnlc
15142 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15143 d
15144 :bsnlc
15145 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15146 b cont
15147 ' <confdefs.h | sed '
15148 s/'"$ac_delim"'/"\\\
15149 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15150
15151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15152   for (key in D) D_is_set[key] = 1
15153   FS = "\a"
15154 }
15155 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15156   line = \$ 0
15157   split(line, arg, " ")
15158   if (arg[1] == "#") {
15159     defundef = arg[2]
15160     mac1 = arg[3]
15161   } else {
15162     defundef = substr(arg[1], 2)
15163     mac1 = arg[2]
15164   }
15165   split(mac1, mac2, "(") #)
15166   macro = mac2[1]
15167   prefix = substr(line, 1, index(line, defundef) - 1)
15168   if (D_is_set[macro]) {
15169     # Preserve the white space surrounding the "#".
15170     print prefix "define", macro P[macro] D[macro]
15171     next
15172   } else {
15173     # Replace #undef with comments.  This is necessary, for example,
15174     # in the case of _POSIX_SOURCE, which is predefined and required
15175     # on some systems where configure will not decide to define it.
15176     if (defundef == "undef") {
15177       print "/*", prefix defundef, macro, "*/"
15178       next
15179     }
15180   }
15181 }
15182 { print }
15183 _ACAWK
15184 _ACEOF
15185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15186   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
15187 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
15188    { (exit 1); exit 1; }; }
15189 fi # test -n "$CONFIG_HEADERS"
15190
15191
15192 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15193 shift
15194 for ac_tag
15195 do
15196   case $ac_tag in
15197   :[FHLC]) ac_mode=$ac_tag; continue;;
15198   esac
15199   case $ac_mode$ac_tag in
15200   :[FHL]*:*);;
15201   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
15202 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
15203    { (exit 1); exit 1; }; };;
15204   :[FH]-) ac_tag=-:-;;
15205   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15206   esac
15207   ac_save_IFS=$IFS
15208   IFS=:
15209   set x $ac_tag
15210   IFS=$ac_save_IFS
15211   shift
15212   ac_file=$1
15213   shift
15214
15215   case $ac_mode in
15216   :L) ac_source=$1;;
15217   :[FH])
15218     ac_file_inputs=
15219     for ac_f
15220     do
15221       case $ac_f in
15222       -) ac_f="$tmp/stdin";;
15223       *) # Look for the file first in the build tree, then in the source tree
15224          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15225          # because $ac_f cannot contain `:'.
15226          test -f "$ac_f" ||
15227            case $ac_f in
15228            [\\/$]*) false;;
15229            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15230            esac ||
15231            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15232 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15233    { (exit 1); exit 1; }; };;
15234       esac
15235       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15236       ac_file_inputs="$ac_file_inputs '$ac_f'"
15237     done
15238
15239     # Let's still pretend it is `configure' which instantiates (i.e., don't
15240     # use $as_me), people would be surprised to read:
15241     #    /* config.h.  Generated by config.status.  */
15242     configure_input='Generated from '`
15243           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15244         `' by configure.'
15245     if test x"$ac_file" != x-; then
15246       configure_input="$ac_file.  $configure_input"
15247       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
15248 $as_echo "$as_me: creating $ac_file" >&6;}
15249     fi
15250     # Neutralize special characters interpreted by sed in replacement strings.
15251     case $configure_input in #(
15252     *\&* | *\|* | *\\* )
15253        ac_sed_conf_input=`$as_echo "$configure_input" |
15254        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15255     *) ac_sed_conf_input=$configure_input;;
15256     esac
15257
15258     case $ac_tag in
15259     *:-:* | *:-) cat >"$tmp/stdin" \
15260       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15261 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15262    { (exit 1); exit 1; }; } ;;
15263     esac
15264     ;;
15265   esac
15266
15267   ac_dir=`$as_dirname -- "$ac_file" ||
15268 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15269          X"$ac_file" : 'X\(//\)[^/]' \| \
15270          X"$ac_file" : 'X\(//\)$' \| \
15271          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15272 $as_echo X"$ac_file" |
15273     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15274             s//\1/
15275             q
15276           }
15277           /^X\(\/\/\)[^/].*/{
15278             s//\1/
15279             q
15280           }
15281           /^X\(\/\/\)$/{
15282             s//\1/
15283             q
15284           }
15285           /^X\(\/\).*/{
15286             s//\1/
15287             q
15288           }
15289           s/.*/./; q'`
15290   { as_dir="$ac_dir"
15291   case $as_dir in #(
15292   -*) as_dir=./$as_dir;;
15293   esac
15294   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15295     as_dirs=
15296     while :; do
15297       case $as_dir in #(
15298       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15299       *) as_qdir=$as_dir;;
15300       esac
15301       as_dirs="'$as_qdir' $as_dirs"
15302       as_dir=`$as_dirname -- "$as_dir" ||
15303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15304          X"$as_dir" : 'X\(//\)[^/]' \| \
15305          X"$as_dir" : 'X\(//\)$' \| \
15306          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15307 $as_echo X"$as_dir" |
15308     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15309             s//\1/
15310             q
15311           }
15312           /^X\(\/\/\)[^/].*/{
15313             s//\1/
15314             q
15315           }
15316           /^X\(\/\/\)$/{
15317             s//\1/
15318             q
15319           }
15320           /^X\(\/\).*/{
15321             s//\1/
15322             q
15323           }
15324           s/.*/./; q'`
15325       test -d "$as_dir" && break
15326     done
15327     test -z "$as_dirs" || eval "mkdir $as_dirs"
15328   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15329 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15330    { (exit 1); exit 1; }; }; }
15331   ac_builddir=.
15332
15333 case "$ac_dir" in
15334 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15335 *)
15336   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15337   # A ".." for each directory in $ac_dir_suffix.
15338   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15339   case $ac_top_builddir_sub in
15340   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15341   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15342   esac ;;
15343 esac
15344 ac_abs_top_builddir=$ac_pwd
15345 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15346 # for backward compatibility:
15347 ac_top_builddir=$ac_top_build_prefix
15348
15349 case $srcdir in
15350   .)  # We are building in place.
15351     ac_srcdir=.
15352     ac_top_srcdir=$ac_top_builddir_sub
15353     ac_abs_top_srcdir=$ac_pwd ;;
15354   [\\/]* | ?:[\\/]* )  # Absolute name.
15355     ac_srcdir=$srcdir$ac_dir_suffix;
15356     ac_top_srcdir=$srcdir
15357     ac_abs_top_srcdir=$srcdir ;;
15358   *) # Relative name.
15359     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15360     ac_top_srcdir=$ac_top_build_prefix$srcdir
15361     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15362 esac
15363 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15364
15365
15366   case $ac_mode in
15367   :F)
15368   #
15369   # CONFIG_FILE
15370   #
15371
15372   case $INSTALL in
15373   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15374   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15375   esac
15376 _ACEOF
15377
15378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15379 # If the template does not know about datarootdir, expand it.
15380 # FIXME: This hack should be removed a few years after 2.60.
15381 ac_datarootdir_hack=; ac_datarootdir_seen=
15382
15383 ac_sed_dataroot='
15384 /datarootdir/ {
15385   p
15386   q
15387 }
15388 /@datadir@/p
15389 /@docdir@/p
15390 /@infodir@/p
15391 /@localedir@/p
15392 /@mandir@/p
15393 '
15394 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15395 *datarootdir*) ac_datarootdir_seen=yes;;
15396 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15397   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15398 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15399 _ACEOF
15400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15401   ac_datarootdir_hack='
15402   s&@datadir@&$datadir&g
15403   s&@docdir@&$docdir&g
15404   s&@infodir@&$infodir&g
15405   s&@localedir@&$localedir&g
15406   s&@mandir@&$mandir&g
15407     s&\\\${datarootdir}&$datarootdir&g' ;;
15408 esac
15409 _ACEOF
15410
15411 # Neutralize VPATH when `$srcdir' = `.'.
15412 # Shell code in configure.ac might set extrasub.
15413 # FIXME: do we really want to maintain this feature?
15414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15415 ac_sed_extra="$ac_vpsub
15416 $extrasub
15417 _ACEOF
15418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15419 :t
15420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15421 s|@configure_input@|$ac_sed_conf_input|;t t
15422 s&@top_builddir@&$ac_top_builddir_sub&;t t
15423 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15424 s&@srcdir@&$ac_srcdir&;t t
15425 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15426 s&@top_srcdir@&$ac_top_srcdir&;t t
15427 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15428 s&@builddir@&$ac_builddir&;t t
15429 s&@abs_builddir@&$ac_abs_builddir&;t t
15430 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15431 s&@INSTALL@&$ac_INSTALL&;t t
15432 $ac_datarootdir_hack
15433 "
15434 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15435   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15436 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15437    { (exit 1); exit 1; }; }
15438
15439 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15440   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15441   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15442   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15443 which seems to be undefined.  Please make sure it is defined." >&5
15444 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15445 which seems to be undefined.  Please make sure it is defined." >&2;}
15446
15447   rm -f "$tmp/stdin"
15448   case $ac_file in
15449   -) cat "$tmp/out" && rm -f "$tmp/out";;
15450   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15451   esac \
15452   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15453 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15454    { (exit 1); exit 1; }; }
15455  ;;
15456   :H)
15457   #
15458   # CONFIG_HEADER
15459   #
15460   if test x"$ac_file" != x-; then
15461     {
15462       $as_echo "/* $configure_input  */" \
15463       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15464     } >"$tmp/config.h" \
15465       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15466 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15467    { (exit 1); exit 1; }; }
15468     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15469       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15470 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15471     else
15472       rm -f "$ac_file"
15473       mv "$tmp/config.h" "$ac_file" \
15474         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15475 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15476    { (exit 1); exit 1; }; }
15477     fi
15478   else
15479     $as_echo "/* $configure_input  */" \
15480       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15481       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15482 $as_echo "$as_me: error: could not create -" >&2;}
15483    { (exit 1); exit 1; }; }
15484   fi
15485  ;;
15486
15487   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15488 $as_echo "$as_me: executing $ac_file commands" >&6;}
15489  ;;
15490   esac
15491
15492
15493   case $ac_file$ac_mode in
15494     "config.h":H) # update the timestamp
15495 echo 'timestamp for config.h' >"./stamp-h1"
15496  ;;
15497     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15498   # Strip MF so we end up with the name of the file.
15499   mf=`echo "$mf" | sed -e 's/:.*$//'`
15500   # Check whether this is an Automake generated Makefile or not.
15501   # We used to match only the files named `Makefile.in', but
15502   # some people rename them; so instead we look at the file content.
15503   # Grep'ing the first line is not enough: some people post-process
15504   # each Makefile.in and add a new line on top of each file to say so.
15505   # So let's grep whole file.
15506   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15507     dirpart=`$as_dirname -- "$mf" ||
15508 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15509          X"$mf" : 'X\(//\)[^/]' \| \
15510          X"$mf" : 'X\(//\)$' \| \
15511          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15512 $as_echo X"$mf" |
15513     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15514             s//\1/
15515             q
15516           }
15517           /^X\(\/\/\)[^/].*/{
15518             s//\1/
15519             q
15520           }
15521           /^X\(\/\/\)$/{
15522             s//\1/
15523             q
15524           }
15525           /^X\(\/\).*/{
15526             s//\1/
15527             q
15528           }
15529           s/.*/./; q'`
15530   else
15531     continue
15532   fi
15533   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
15534   # Extract the definition of DEP_FILES from the Makefile without
15535   # running `make'.
15536   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
15537   test -z "$DEPDIR" && continue
15538   # When using ansi2knr, U may be empty or an underscore; expand it
15539   U=`sed -n -e '/^U = / s///p' < "$mf"`
15540   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
15541   # We invoke sed twice because it is the simplest approach to
15542   # changing $(DEPDIR) to its actual value in the expansion.
15543   for file in `sed -n -e '
15544     /^DEP_FILES = .*\\\\$/ {
15545       s/^DEP_FILES = //
15546       :loop
15547         s/\\\\$//
15548         p
15549         n
15550         /\\\\$/ b loop
15551       p
15552     }
15553     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
15554        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15555     # Make sure the directory exists.
15556     test -f "$dirpart/$file" && continue
15557     fdir=`$as_dirname -- "$file" ||
15558 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15559          X"$file" : 'X\(//\)[^/]' \| \
15560          X"$file" : 'X\(//\)$' \| \
15561          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15562 $as_echo X"$file" |
15563     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15564             s//\1/
15565             q
15566           }
15567           /^X\(\/\/\)[^/].*/{
15568             s//\1/
15569             q
15570           }
15571           /^X\(\/\/\)$/{
15572             s//\1/
15573             q
15574           }
15575           /^X\(\/\).*/{
15576             s//\1/
15577             q
15578           }
15579           s/.*/./; q'`
15580     { as_dir=$dirpart/$fdir
15581   case $as_dir in #(
15582   -*) as_dir=./$as_dir;;
15583   esac
15584   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15585     as_dirs=
15586     while :; do
15587       case $as_dir in #(
15588       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15589       *) as_qdir=$as_dir;;
15590       esac
15591       as_dirs="'$as_qdir' $as_dirs"
15592       as_dir=`$as_dirname -- "$as_dir" ||
15593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15594          X"$as_dir" : 'X\(//\)[^/]' \| \
15595          X"$as_dir" : 'X\(//\)$' \| \
15596          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15597 $as_echo X"$as_dir" |
15598     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15599             s//\1/
15600             q
15601           }
15602           /^X\(\/\/\)[^/].*/{
15603             s//\1/
15604             q
15605           }
15606           /^X\(\/\/\)$/{
15607             s//\1/
15608             q
15609           }
15610           /^X\(\/\).*/{
15611             s//\1/
15612             q
15613           }
15614           s/.*/./; q'`
15615       test -d "$as_dir" && break
15616     done
15617     test -z "$as_dirs" || eval "mkdir $as_dirs"
15618   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15619 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15620    { (exit 1); exit 1; }; }; }
15621     # echo "creating $dirpart/$file"
15622     echo '# dummy' > "$dirpart/$file"
15623   done
15624 done
15625  ;;
15626     "libtool":C)
15627
15628     # See if we are running on zsh, and set the options which allow our
15629     # commands through without removal of \ escapes.
15630     if test -n "${ZSH_VERSION+set}" ; then
15631       setopt NO_GLOB_SUBST
15632     fi
15633
15634     cfgfile="${ofile}T"
15635     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15636     $RM "$cfgfile"
15637
15638     cat <<_LT_EOF >> "$cfgfile"
15639 #! $SHELL
15640
15641 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15642 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15643 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15644 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15645 #
15646 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15647 #                 2006, 2007, 2008 Free Software Foundation, Inc.
15648 #   Written by Gordon Matzigkeit, 1996
15649 #
15650 #   This file is part of GNU Libtool.
15651 #
15652 # GNU Libtool is free software; you can redistribute it and/or
15653 # modify it under the terms of the GNU General Public License as
15654 # published by the Free Software Foundation; either version 2 of
15655 # the License, or (at your option) any later version.
15656 #
15657 # As a special exception to the GNU General Public License,
15658 # if you distribute this file as part of a program or library that
15659 # is built using GNU Libtool, you may include this file under the
15660 # same distribution terms that you use for the rest of that program.
15661 #
15662 # GNU Libtool is distributed in the hope that it will be useful,
15663 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15664 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15665 # GNU General Public License for more details.
15666 #
15667 # You should have received a copy of the GNU General Public License
15668 # along with GNU Libtool; see the file COPYING.  If not, a copy
15669 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15670 # obtained by writing to the Free Software Foundation, Inc.,
15671 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15672
15673
15674 # The names of the tagged configurations supported by this script.
15675 available_tags=""
15676
15677 # ### BEGIN LIBTOOL CONFIG
15678
15679 # Assembler program.
15680 AS=$AS
15681
15682 # DLL creation program.
15683 DLLTOOL=$DLLTOOL
15684
15685 # Object dumper program.
15686 OBJDUMP=$OBJDUMP
15687
15688 # Which release of libtool.m4 was used?
15689 macro_version=$macro_version
15690 macro_revision=$macro_revision
15691
15692 # Whether or not to build shared libraries.
15693 build_libtool_libs=$enable_shared
15694
15695 # Whether or not to build static libraries.
15696 build_old_libs=$enable_static
15697
15698 # What type of objects to build.
15699 pic_mode=$pic_mode
15700
15701 # Whether or not to optimize for fast installation.
15702 fast_install=$enable_fast_install
15703
15704 # The host system.
15705 host_alias=$host_alias
15706 host=$host
15707 host_os=$host_os
15708
15709 # The build system.
15710 build_alias=$build_alias
15711 build=$build
15712 build_os=$build_os
15713
15714 # A sed program that does not truncate output.
15715 SED=$lt_SED
15716
15717 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15718 Xsed="\$SED -e 1s/^X//"
15719
15720 # A grep program that handles long lines.
15721 GREP=$lt_GREP
15722
15723 # An ERE matcher.
15724 EGREP=$lt_EGREP
15725
15726 # A literal string matcher.
15727 FGREP=$lt_FGREP
15728
15729 # A BSD- or MS-compatible name lister.
15730 NM=$lt_NM
15731
15732 # Whether we need soft or hard links.
15733 LN_S=$lt_LN_S
15734
15735 # What is the maximum length of a command?
15736 max_cmd_len=$max_cmd_len
15737
15738 # Object file suffix (normally "o").
15739 objext=$ac_objext
15740
15741 # Executable file suffix (normally "").
15742 exeext=$exeext
15743
15744 # whether the shell understands "unset".
15745 lt_unset=$lt_unset
15746
15747 # turn spaces into newlines.
15748 SP2NL=$lt_lt_SP2NL
15749
15750 # turn newlines into spaces.
15751 NL2SP=$lt_lt_NL2SP
15752
15753 # How to create reloadable object files.
15754 reload_flag=$lt_reload_flag
15755 reload_cmds=$lt_reload_cmds
15756
15757 # Method to check whether dependent libraries are shared objects.
15758 deplibs_check_method=$lt_deplibs_check_method
15759
15760 # Command to use when deplibs_check_method == "file_magic".
15761 file_magic_cmd=$lt_file_magic_cmd
15762
15763 # The archiver.
15764 AR=$lt_AR
15765 AR_FLAGS=$lt_AR_FLAGS
15766
15767 # A symbol stripping program.
15768 STRIP=$lt_STRIP
15769
15770 # Commands used to install an old-style archive.
15771 RANLIB=$lt_RANLIB
15772 old_postinstall_cmds=$lt_old_postinstall_cmds
15773 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15774
15775 # A C compiler.
15776 LTCC=$lt_CC
15777
15778 # LTCC compiler flags.
15779 LTCFLAGS=$lt_CFLAGS
15780
15781 # Take the output of nm and produce a listing of raw symbols and C names.
15782 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15783
15784 # Transform the output of nm in a proper C declaration.
15785 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15786
15787 # Transform the output of nm in a C name address pair.
15788 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15789
15790 # Transform the output of nm in a C name address pair when lib prefix is needed.
15791 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15792
15793 # The name of the directory that contains temporary libtool files.
15794 objdir=$objdir
15795
15796 # Shell to use when invoking shell scripts.
15797 SHELL=$lt_SHELL
15798
15799 # An echo program that does not interpret backslashes.
15800 ECHO=$lt_ECHO
15801
15802 # Used to examine libraries when file_magic_cmd begins with "file".
15803 MAGIC_CMD=$MAGIC_CMD
15804
15805 # Must we lock files when doing compilation?
15806 need_locks=$lt_need_locks
15807
15808 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15809 DSYMUTIL=$lt_DSYMUTIL
15810
15811 # Tool to change global to local symbols on Mac OS X.
15812 NMEDIT=$lt_NMEDIT
15813
15814 # Tool to manipulate fat objects and archives on Mac OS X.
15815 LIPO=$lt_LIPO
15816
15817 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15818 OTOOL=$lt_OTOOL
15819
15820 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15821 OTOOL64=$lt_OTOOL64
15822
15823 # Old archive suffix (normally "a").
15824 libext=$libext
15825
15826 # Shared library suffix (normally ".so").
15827 shrext_cmds=$lt_shrext_cmds
15828
15829 # The commands to extract the exported symbol list from a shared archive.
15830 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15831
15832 # Variables whose values should be saved in libtool wrapper scripts and
15833 # restored at link time.
15834 variables_saved_for_relink=$lt_variables_saved_for_relink
15835
15836 # Do we need the "lib" prefix for modules?
15837 need_lib_prefix=$need_lib_prefix
15838
15839 # Do we need a version for libraries?
15840 need_version=$need_version
15841
15842 # Library versioning type.
15843 version_type=$version_type
15844
15845 # Shared library runtime path variable.
15846 runpath_var=$runpath_var
15847
15848 # Shared library path variable.
15849 shlibpath_var=$shlibpath_var
15850
15851 # Is shlibpath searched before the hard-coded library search path?
15852 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15853
15854 # Format of library name prefix.
15855 libname_spec=$lt_libname_spec
15856
15857 # List of archive names.  First name is the real one, the rest are links.
15858 # The last name is the one that the linker finds with -lNAME
15859 library_names_spec=$lt_library_names_spec
15860
15861 # The coded name of the library, if different from the real name.
15862 soname_spec=$lt_soname_spec
15863
15864 # Command to use after installation of a shared archive.
15865 postinstall_cmds=$lt_postinstall_cmds
15866
15867 # Command to use after uninstallation of a shared archive.
15868 postuninstall_cmds=$lt_postuninstall_cmds
15869
15870 # Commands used to finish a libtool library installation in a directory.
15871 finish_cmds=$lt_finish_cmds
15872
15873 # As "finish_cmds", except a single script fragment to be evaled but
15874 # not shown.
15875 finish_eval=$lt_finish_eval
15876
15877 # Whether we should hardcode library paths into libraries.
15878 hardcode_into_libs=$hardcode_into_libs
15879
15880 # Compile-time system search path for libraries.
15881 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15882
15883 # Run-time system search path for libraries.
15884 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15885
15886 # Whether dlopen is supported.
15887 dlopen_support=$enable_dlopen
15888
15889 # Whether dlopen of programs is supported.
15890 dlopen_self=$enable_dlopen_self
15891
15892 # Whether dlopen of statically linked programs is supported.
15893 dlopen_self_static=$enable_dlopen_self_static
15894
15895 # Commands to strip libraries.
15896 old_striplib=$lt_old_striplib
15897 striplib=$lt_striplib
15898
15899
15900 # The linker used to build libraries.
15901 LD=$lt_LD
15902
15903 # Commands used to build an old-style archive.
15904 old_archive_cmds=$lt_old_archive_cmds
15905
15906 # A language specific compiler.
15907 CC=$lt_compiler
15908
15909 # Is the compiler the GNU compiler?
15910 with_gcc=$GCC
15911
15912 # Compiler flag to turn off builtin functions.
15913 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15914
15915 # How to pass a linker flag through the compiler.
15916 wl=$lt_lt_prog_compiler_wl
15917
15918 # Additional compiler flags for building library objects.
15919 pic_flag=$lt_lt_prog_compiler_pic
15920
15921 # Compiler flag to prevent dynamic linking.
15922 link_static_flag=$lt_lt_prog_compiler_static
15923
15924 # Does compiler simultaneously support -c and -o options?
15925 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15926
15927 # Whether or not to add -lc for building shared libraries.
15928 build_libtool_need_lc=$archive_cmds_need_lc
15929
15930 # Whether or not to disallow shared libs when runtime libs are static.
15931 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15932
15933 # Compiler flag to allow reflexive dlopens.
15934 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15935
15936 # Compiler flag to generate shared objects directly from archives.
15937 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15938
15939 # Whether the compiler copes with passing no objects directly.
15940 compiler_needs_object=$lt_compiler_needs_object
15941
15942 # Create an old-style archive from a shared archive.
15943 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15944
15945 # Create a temporary old-style archive to link instead of a shared archive.
15946 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15947
15948 # Commands used to build a shared archive.
15949 archive_cmds=$lt_archive_cmds
15950 archive_expsym_cmds=$lt_archive_expsym_cmds
15951
15952 # Commands used to build a loadable module if different from building
15953 # a shared archive.
15954 module_cmds=$lt_module_cmds
15955 module_expsym_cmds=$lt_module_expsym_cmds
15956
15957 # Whether we are building with GNU ld or not.
15958 with_gnu_ld=$lt_with_gnu_ld
15959
15960 # Flag that allows shared libraries with undefined symbols to be built.
15961 allow_undefined_flag=$lt_allow_undefined_flag
15962
15963 # Flag that enforces no undefined symbols.
15964 no_undefined_flag=$lt_no_undefined_flag
15965
15966 # Flag to hardcode \$libdir into a binary during linking.
15967 # This must work even if \$libdir does not exist
15968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15969
15970 # If ld is used when linking, flag to hardcode \$libdir into a binary
15971 # during linking.  This must work even if \$libdir does not exist.
15972 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15973
15974 # Whether we need a single "-rpath" flag with a separated argument.
15975 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15976
15977 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15978 # DIR into the resulting binary.
15979 hardcode_direct=$hardcode_direct
15980
15981 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15982 # DIR into the resulting binary and the resulting library dependency is
15983 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15984 # library is relocated.
15985 hardcode_direct_absolute=$hardcode_direct_absolute
15986
15987 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15988 # into the resulting binary.
15989 hardcode_minus_L=$hardcode_minus_L
15990
15991 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15992 # into the resulting binary.
15993 hardcode_shlibpath_var=$hardcode_shlibpath_var
15994
15995 # Set to "yes" if building a shared library automatically hardcodes DIR
15996 # into the library and all subsequent libraries and executables linked
15997 # against it.
15998 hardcode_automatic=$hardcode_automatic
15999
16000 # Set to yes if linker adds runtime paths of dependent libraries
16001 # to runtime path list.
16002 inherit_rpath=$inherit_rpath
16003
16004 # Whether libtool must link a program against all its dependency libraries.
16005 link_all_deplibs=$link_all_deplibs
16006
16007 # Fix the shell variable \$srcfile for the compiler.
16008 fix_srcfile_path=$lt_fix_srcfile_path
16009
16010 # Set to "yes" if exported symbols are required.
16011 always_export_symbols=$always_export_symbols
16012
16013 # The commands to list exported symbols.
16014 export_symbols_cmds=$lt_export_symbols_cmds
16015
16016 # Symbols that should not be listed in the preloaded symbols.
16017 exclude_expsyms=$lt_exclude_expsyms
16018
16019 # Symbols that must always be exported.
16020 include_expsyms=$lt_include_expsyms
16021
16022 # Commands necessary for linking programs (against libraries) with templates.
16023 prelink_cmds=$lt_prelink_cmds
16024
16025 # Specify filename containing input files.
16026 file_list_spec=$lt_file_list_spec
16027
16028 # How to hardcode a shared library path into an executable.
16029 hardcode_action=$hardcode_action
16030
16031 # ### END LIBTOOL CONFIG
16032
16033 _LT_EOF
16034
16035   case $host_os in
16036   aix3*)
16037     cat <<\_LT_EOF >> "$cfgfile"
16038 # AIX sometimes has problems with the GCC collect2 program.  For some
16039 # reason, if we set the COLLECT_NAMES environment variable, the problems
16040 # vanish in a puff of smoke.
16041 if test "X${COLLECT_NAMES+set}" != Xset; then
16042   COLLECT_NAMES=
16043   export COLLECT_NAMES
16044 fi
16045 _LT_EOF
16046     ;;
16047   esac
16048
16049
16050 ltmain="$ac_aux_dir/ltmain.sh"
16051
16052
16053   # We use sed instead of cat because bash on DJGPP gets confused if
16054   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16055   # text mode, it properly converts lines to CR/LF.  This bash problem
16056   # is reportedly fixed, but why not run on old versions too?
16057   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16058     || (rm -f "$cfgfile"; exit 1)
16059
16060   case $xsi_shell in
16061   yes)
16062     cat << \_LT_EOF >> "$cfgfile"
16063
16064 # func_dirname file append nondir_replacement
16065 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16066 # otherwise set result to NONDIR_REPLACEMENT.
16067 func_dirname ()
16068 {
16069   case ${1} in
16070     */*) func_dirname_result="${1%/*}${2}" ;;
16071     *  ) func_dirname_result="${3}" ;;
16072   esac
16073 }
16074
16075 # func_basename file
16076 func_basename ()
16077 {
16078   func_basename_result="${1##*/}"
16079 }
16080
16081 # func_dirname_and_basename file append nondir_replacement
16082 # perform func_basename and func_dirname in a single function
16083 # call:
16084 #   dirname:  Compute the dirname of FILE.  If nonempty,
16085 #             add APPEND to the result, otherwise set result
16086 #             to NONDIR_REPLACEMENT.
16087 #             value returned in "$func_dirname_result"
16088 #   basename: Compute filename of FILE.
16089 #             value retuned in "$func_basename_result"
16090 # Implementation must be kept synchronized with func_dirname
16091 # and func_basename. For efficiency, we do not delegate to
16092 # those functions but instead duplicate the functionality here.
16093 func_dirname_and_basename ()
16094 {
16095   case ${1} in
16096     */*) func_dirname_result="${1%/*}${2}" ;;
16097     *  ) func_dirname_result="${3}" ;;
16098   esac
16099   func_basename_result="${1##*/}"
16100 }
16101
16102 # func_stripname prefix suffix name
16103 # strip PREFIX and SUFFIX off of NAME.
16104 # PREFIX and SUFFIX must not contain globbing or regex special
16105 # characters, hashes, percent signs, but SUFFIX may contain a leading
16106 # dot (in which case that matches only a dot).
16107 func_stripname ()
16108 {
16109   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16110   # positional parameters, so assign one to ordinary parameter first.
16111   func_stripname_result=${3}
16112   func_stripname_result=${func_stripname_result#"${1}"}
16113   func_stripname_result=${func_stripname_result%"${2}"}
16114 }
16115
16116 # func_opt_split
16117 func_opt_split ()
16118 {
16119   func_opt_split_opt=${1%%=*}
16120   func_opt_split_arg=${1#*=}
16121 }
16122
16123 # func_lo2o object
16124 func_lo2o ()
16125 {
16126   case ${1} in
16127     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16128     *)    func_lo2o_result=${1} ;;
16129   esac
16130 }
16131
16132 # func_xform libobj-or-source
16133 func_xform ()
16134 {
16135   func_xform_result=${1%.*}.lo
16136 }
16137
16138 # func_arith arithmetic-term...
16139 func_arith ()
16140 {
16141   func_arith_result=$(( $* ))
16142 }
16143
16144 # func_len string
16145 # STRING may not start with a hyphen.
16146 func_len ()
16147 {
16148   func_len_result=${#1}
16149 }
16150
16151 _LT_EOF
16152     ;;
16153   *) # Bourne compatible functions.
16154     cat << \_LT_EOF >> "$cfgfile"
16155
16156 # func_dirname file append nondir_replacement
16157 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16158 # otherwise set result to NONDIR_REPLACEMENT.
16159 func_dirname ()
16160 {
16161   # Extract subdirectory from the argument.
16162   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16163   if test "X$func_dirname_result" = "X${1}"; then
16164     func_dirname_result="${3}"
16165   else
16166     func_dirname_result="$func_dirname_result${2}"
16167   fi
16168 }
16169
16170 # func_basename file
16171 func_basename ()
16172 {
16173   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16174 }
16175
16176
16177 # func_stripname prefix suffix name
16178 # strip PREFIX and SUFFIX off of NAME.
16179 # PREFIX and SUFFIX must not contain globbing or regex special
16180 # characters, hashes, percent signs, but SUFFIX may contain a leading
16181 # dot (in which case that matches only a dot).
16182 # func_strip_suffix prefix name
16183 func_stripname ()
16184 {
16185   case ${2} in
16186     .*) func_stripname_result=`$ECHO "X${3}" \
16187            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16188     *)  func_stripname_result=`$ECHO "X${3}" \
16189            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16190   esac
16191 }
16192
16193 # sed scripts:
16194 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16195 my_sed_long_arg='1s/^-[^=]*=//'
16196
16197 # func_opt_split
16198 func_opt_split ()
16199 {
16200   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16201   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16202 }
16203
16204 # func_lo2o object
16205 func_lo2o ()
16206 {
16207   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16208 }
16209
16210 # func_xform libobj-or-source
16211 func_xform ()
16212 {
16213   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16214 }
16215
16216 # func_arith arithmetic-term...
16217 func_arith ()
16218 {
16219   func_arith_result=`expr "$@"`
16220 }
16221
16222 # func_len string
16223 # STRING may not start with a hyphen.
16224 func_len ()
16225 {
16226   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16227 }
16228
16229 _LT_EOF
16230 esac
16231
16232 case $lt_shell_append in
16233   yes)
16234     cat << \_LT_EOF >> "$cfgfile"
16235
16236 # func_append var value
16237 # Append VALUE to the end of shell variable VAR.
16238 func_append ()
16239 {
16240   eval "$1+=\$2"
16241 }
16242 _LT_EOF
16243     ;;
16244   *)
16245     cat << \_LT_EOF >> "$cfgfile"
16246
16247 # func_append var value
16248 # Append VALUE to the end of shell variable VAR.
16249 func_append ()
16250 {
16251   eval "$1=\$$1\$2"
16252 }
16253
16254 _LT_EOF
16255     ;;
16256   esac
16257
16258
16259   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16260     || (rm -f "$cfgfile"; exit 1)
16261
16262   mv -f "$cfgfile" "$ofile" ||
16263     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16264   chmod +x "$ofile"
16265
16266  ;;
16267
16268   esac
16269 done # for ac_tag
16270
16271
16272 { (exit 0); exit 0; }
16273 _ACEOF
16274 chmod +x $CONFIG_STATUS
16275 ac_clean_files=$ac_clean_files_save
16276
16277 test $ac_write_fail = 0 ||
16278   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16279 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16280    { (exit 1); exit 1; }; }
16281
16282
16283 # configure is writing to config.log, and then calls config.status.
16284 # config.status does its own redirection, appending to config.log.
16285 # Unfortunately, on DOS this fails, as config.log is still kept open
16286 # by configure, so config.status won't be able to write to it; its
16287 # output is simply discarded.  So we exec the FD to /dev/null,
16288 # effectively closing config.log, so it can be properly (re)opened and
16289 # appended to by config.status.  When coming back to configure, we
16290 # need to make the FD available again.
16291 if test "$no_create" != yes; then
16292   ac_cs_success=:
16293   ac_config_status_args=
16294   test "$silent" = yes &&
16295     ac_config_status_args="$ac_config_status_args --quiet"
16296   exec 5>/dev/null
16297   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16298   exec 5>>config.log
16299   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16300   # would make configure fail if this is the last instruction.
16301   $ac_cs_success || { (exit 1); exit 1; }
16302 fi
16303 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16304   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16305 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16306 fi
16307
16308
16309
16310   EXP_VAR=LIBDIR
16311   FROM_VAR=${libdir}
16312
16313     prefix_save=$prefix
16314   exec_prefix_save=$exec_prefix
16315
16316     if test "x$prefix" = "xNONE"; then
16317     prefix="$ac_default_prefix"
16318   fi
16319     if test "x$exec_prefix" = "xNONE"; then
16320     exec_prefix=$prefix
16321   fi
16322
16323   full_var="$FROM_VAR"
16324     while true; do
16325     new_full_var="`eval echo $full_var`"
16326     if test "x$new_full_var" = "x$full_var"; then break; fi
16327     full_var=$new_full_var
16328   done
16329
16330     full_var=$new_full_var
16331   LIBDIR="$full_var"
16332
16333
16334     prefix=$prefix_save
16335   exec_prefix=$exec_prefix_save
16336
16337
16338   EXP_VAR=INCLUDEDIR
16339   FROM_VAR=${includedir}
16340
16341     prefix_save=$prefix
16342   exec_prefix_save=$exec_prefix
16343
16344     if test "x$prefix" = "xNONE"; then
16345     prefix="$ac_default_prefix"
16346   fi
16347     if test "x$exec_prefix" = "xNONE"; then
16348     exec_prefix=$prefix
16349   fi
16350
16351   full_var="$FROM_VAR"
16352     while true; do
16353     new_full_var="`eval echo $full_var`"
16354     if test "x$new_full_var" = "x$full_var"; then break; fi
16355     full_var=$new_full_var
16356   done
16357
16358     full_var=$new_full_var
16359   INCLUDEDIR="$full_var"
16360
16361
16362     prefix=$prefix_save
16363   exec_prefix=$exec_prefix_save
16364
16365
16366   EXP_VAR=BINDIR
16367   FROM_VAR=${bindir}
16368
16369     prefix_save=$prefix
16370   exec_prefix_save=$exec_prefix
16371
16372     if test "x$prefix" = "xNONE"; then
16373     prefix="$ac_default_prefix"
16374   fi
16375     if test "x$exec_prefix" = "xNONE"; then
16376     exec_prefix=$prefix
16377   fi
16378
16379   full_var="$FROM_VAR"
16380     while true; do
16381     new_full_var="`eval echo $full_var`"
16382     if test "x$new_full_var" = "x$full_var"; then break; fi
16383     full_var=$new_full_var
16384   done
16385
16386     full_var=$new_full_var
16387   BINDIR="$full_var"
16388
16389
16390     prefix=$prefix_save
16391   exec_prefix=$exec_prefix_save
16392
16393
16394   EXP_VAR=DOCDIR
16395   FROM_VAR=${datadir}/doc
16396
16397     prefix_save=$prefix
16398   exec_prefix_save=$exec_prefix
16399
16400     if test "x$prefix" = "xNONE"; then
16401     prefix="$ac_default_prefix"
16402   fi
16403     if test "x$exec_prefix" = "xNONE"; then
16404     exec_prefix=$prefix
16405   fi
16406
16407   full_var="$FROM_VAR"
16408     while true; do
16409     new_full_var="`eval echo $full_var`"
16410     if test "x$new_full_var" = "x$full_var"; then break; fi
16411     full_var=$new_full_var
16412   done
16413
16414     full_var=$new_full_var
16415   DOCDIR="$full_var"
16416
16417
16418     prefix=$prefix_save
16419   exec_prefix=$exec_prefix_save
16420
16421
16422 if test $HAVE_DOXYGEN = "false"; then
16423   doc_build="no"
16424 else
16425   doc_build="yes"
16426 fi
16427 if test $BUILD_SPEC = "false"; then
16428   spec_build="no"
16429 else
16430   spec_build="yes"
16431 fi
16432
16433 { $as_echo "$as_me:$LINENO: result:
16434 ------------------------------------------------------------------------
16435   $PACKAGE $VERSION:  Automatic configuration OK.
16436
16437   General configuration:
16438
16439     Encoding support: ........... ${ac_enable_encode}
16440     Floating point support: ..... ${ac_enable_float}
16441     Assembly optimization: ...... ${cpu_optimization}
16442     Debugging telemetry: ........ ${ac_enable_telemetry}
16443     Build example code: ......... ${ac_enable_examples}
16444     API Documentation: .......... ${doc_build}
16445     Format Documentation: ....... ${spec_build}
16446
16447   Installation paths:
16448
16449     libtheora: ................... ${LIBDIR}
16450     C header files: .............. ${INCLUDEDIR}/theora
16451     Documentation: ............... ${DOCDIR}/$PACKAGE
16452
16453   Building:
16454
16455     Type 'make' to compile $PACKAGE.
16456
16457     Type 'make install' to install $PACKAGE.
16458
16459     ${TESTS_INFO}
16460
16461   Example programs will be built but not installed.
16462 ------------------------------------------------------------------------
16463 " >&5
16464 $as_echo "
16465 ------------------------------------------------------------------------
16466   $PACKAGE $VERSION:  Automatic configuration OK.
16467
16468   General configuration:
16469
16470     Encoding support: ........... ${ac_enable_encode}
16471     Floating point support: ..... ${ac_enable_float}
16472     Assembly optimization: ...... ${cpu_optimization}
16473     Debugging telemetry: ........ ${ac_enable_telemetry}
16474     Build example code: ......... ${ac_enable_examples}
16475     API Documentation: .......... ${doc_build}
16476     Format Documentation: ....... ${spec_build}
16477
16478   Installation paths:
16479
16480     libtheora: ................... ${LIBDIR}
16481     C header files: .............. ${INCLUDEDIR}/theora
16482     Documentation: ............... ${DOCDIR}/$PACKAGE
16483
16484   Building:
16485
16486     Type 'make' to compile $PACKAGE.
16487
16488     Type 'make install' to install $PACKAGE.
16489
16490     ${TESTS_INFO}
16491
16492   Example programs will be built but not installed.
16493 ------------------------------------------------------------------------
16494 " >&6; }
16495