Merge pull request #4324 from FernetMenta/wasapi
[vuplus_xbmc] / lib / libmad / configure
1 #! /bin/sh
2 # From configure.ac Id: configure.ac,v 1.9 2004/01/23 09:41:32 rob Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 for MPEG Audio Decoder 0.15.1b.
5 #
6 # Report bugs to <support@underbit.com>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 as_nl='
44 '
45 export as_nl
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51   as_echo='printf %s\n'
52   as_echo_n='printf %s'
53 else
54   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56     as_echo_n='/usr/ucb/echo -n'
57   else
58     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59     as_echo_n_body='eval
60       arg=$1;
61       case $arg in
62       *"$as_nl"*)
63         expr "X$arg" : "X\\(.*\\)$as_nl";
64         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65       esac;
66       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67     '
68     export as_echo_n_body
69     as_echo_n='sh -c $as_echo_n_body as_echo'
70   fi
71   export as_echo_body
72   as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86   as_unset=unset
87 else
88   as_unset=false
89 fi
90
91
92 # IFS
93 # We need space, tab and new line, in precisely that order.  Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
97 IFS=" ""        $as_nl"
98
99 # Find who we are.  Look in the path if we contain no directory separator.
100 case $0 in
101   *[\\/]* ) as_myself=$0 ;;
102   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 for as_dir in $PATH
104 do
105   IFS=$as_save_IFS
106   test -z "$as_dir" && as_dir=.
107   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 done
109 IFS=$as_save_IFS
110
111      ;;
112 esac
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x; then
116   as_myself=$0
117 fi
118 if test ! -f "$as_myself"; then
119   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120   { (exit 1); exit 1; }
121 fi
122
123 # Work around bugs in pre-3.0 UWIN ksh.
124 for as_var in ENV MAIL MAILPATH
125 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # Required to use basename.
138 if expr a : '\(a\)' >/dev/null 2>&1 &&
139    test "X`expr 00001 : '.*\(...\)'`" = X001; then
140   as_expr=expr
141 else
142   as_expr=false
143 fi
144
145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
146   as_basename=basename
147 else
148   as_basename=false
149 fi
150
151
152 # Name of the executable.
153 as_me=`$as_basename -- "$0" ||
154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155          X"$0" : 'X\(//\)$' \| \
156          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 $as_echo X/"$0" |
158     sed '/^.*\/\([^/][^/]*\)\/*$/{
159             s//\1/
160             q
161           }
162           /^X\/\(\/\/\)$/{
163             s//\1/
164             q
165           }
166           /^X\/\(\/\).*/{
167             s//\1/
168             q
169           }
170           s/.*/./; q'`
171
172 # CDPATH.
173 $as_unset CDPATH
174
175
176 if test "x$CONFIG_SHELL" = x; then
177   if (eval ":") 2>/dev/null; then
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182
183   if test $as_have_required = yes &&     (eval ":
184 (as_func_return () {
185   (exit \$1)
186 }
187 as_func_success () {
188   as_func_return 0
189 }
190 as_func_failure () {
191   as_func_return 1
192 }
193 as_func_ret_success () {
194   return 0
195 }
196 as_func_ret_failure () {
197   return 1
198 }
199
200 exitcode=0
201 if as_func_success; then
202   :
203 else
204   exitcode=1
205   echo as_func_success failed.
206 fi
207
208 if as_func_failure; then
209   exitcode=1
210   echo as_func_failure succeeded.
211 fi
212
213 if as_func_ret_success; then
214   :
215 else
216   exitcode=1
217   echo as_func_ret_success failed.
218 fi
219
220 if as_func_ret_failure; then
221   exitcode=1
222   echo as_func_ret_failure succeeded.
223 fi
224
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226   :
227 else
228   exitcode=1
229   echo positional parameters were not saved.
230 fi
231
232 test \$exitcode = 0) || { (exit 1); exit 1; }
233
234 (
235   as_lineno_1=\$LINENO
236   as_lineno_2=\$LINENO
237   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239 ") 2> /dev/null; then
240   :
241 else
242   as_candidate_shells=
243     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 do
246   IFS=$as_save_IFS
247   test -z "$as_dir" && as_dir=.
248   case $as_dir in
249          /*)
250            for as_base in sh bash ksh sh5; do
251              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252            done;;
253        esac
254 done
255 IFS=$as_save_IFS
256
257
258       for as_shell in $as_candidate_shells $SHELL; do
259          # Try only shells that exist, to save several forks.
260          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261                 { ("$as_shell") 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263   emulate sh
264   NULLCMD=:
265   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266   # is contrary to our usage.  Disable this feature.
267   alias -g '${1+"$@"}'='"$@"'
268   setopt NO_GLOB_SUBST
269 else
270   case `(set -o) 2>/dev/null` in
271   *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 _ASEOF
279 }; then
280   CONFIG_SHELL=$as_shell
281                as_have_required=yes
282                if { "$as_shell" 2> /dev/null <<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284   emulate sh
285   NULLCMD=:
286   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287   # is contrary to our usage.  Disable this feature.
288   alias -g '${1+"$@"}'='"$@"'
289   setopt NO_GLOB_SUBST
290 else
291   case `(set -o) 2>/dev/null` in
292   *posix*) set -o posix ;;
293 esac
294
295 fi
296
297
298 :
299 (as_func_return () {
300   (exit $1)
301 }
302 as_func_success () {
303   as_func_return 0
304 }
305 as_func_failure () {
306   as_func_return 1
307 }
308 as_func_ret_success () {
309   return 0
310 }
311 as_func_ret_failure () {
312   return 1
313 }
314
315 exitcode=0
316 if as_func_success; then
317   :
318 else
319   exitcode=1
320   echo as_func_success failed.
321 fi
322
323 if as_func_failure; then
324   exitcode=1
325   echo as_func_failure succeeded.
326 fi
327
328 if as_func_ret_success; then
329   :
330 else
331   exitcode=1
332   echo as_func_ret_success failed.
333 fi
334
335 if as_func_ret_failure; then
336   exitcode=1
337   echo as_func_ret_failure succeeded.
338 fi
339
340 if ( set x; as_func_ret_success y && test x = "$1" ); then
341   :
342 else
343   exitcode=1
344   echo positional parameters were not saved.
345 fi
346
347 test $exitcode = 0) || { (exit 1); exit 1; }
348
349 (
350   as_lineno_1=$LINENO
351   as_lineno_2=$LINENO
352   test "x$as_lineno_1" != "x$as_lineno_2" &&
353   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354
355 _ASEOF
356 }; then
357   break
358 fi
359
360 fi
361
362       done
363
364       if test "x$CONFIG_SHELL" != x; then
365   for as_var in BASH_ENV ENV
366         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367         done
368         export CONFIG_SHELL
369         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 fi
371
372
373     if test $as_have_required = no; then
374   echo This script requires a shell more modern than all the
375       echo shells that I found on your system.  Please install a
376       echo modern shell, or manually run the script under such a
377       echo shell if you do have one.
378       { (exit 1); exit 1; }
379 fi
380
381
382 fi
383
384 fi
385
386
387
388 (eval "as_func_return () {
389   (exit \$1)
390 }
391 as_func_success () {
392   as_func_return 0
393 }
394 as_func_failure () {
395   as_func_return 1
396 }
397 as_func_ret_success () {
398   return 0
399 }
400 as_func_ret_failure () {
401   return 1
402 }
403
404 exitcode=0
405 if as_func_success; then
406   :
407 else
408   exitcode=1
409   echo as_func_success failed.
410 fi
411
412 if as_func_failure; then
413   exitcode=1
414   echo as_func_failure succeeded.
415 fi
416
417 if as_func_ret_success; then
418   :
419 else
420   exitcode=1
421   echo as_func_ret_success failed.
422 fi
423
424 if as_func_ret_failure; then
425   exitcode=1
426   echo as_func_ret_failure succeeded.
427 fi
428
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430   :
431 else
432   exitcode=1
433   echo positional parameters were not saved.
434 fi
435
436 test \$exitcode = 0") || {
437   echo No shell found that supports shell functions.
438   echo Please tell bug-autoconf@gnu.org about your system,
439   echo including any error possibly output before this message.
440   echo This can help us improve future autoconf versions.
441   echo Configuration will now proceed without shell functions.
442 }
443
444
445
446   as_lineno_1=$LINENO
447   as_lineno_2=$LINENO
448   test "x$as_lineno_1" != "x$as_lineno_2" &&
449   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450
451   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452   # uniformly replaced by the line number.  The first 'sed' inserts a
453   # line-number line after each line using $LINENO; the second 'sed'
454   # does the real work.  The second script uses 'N' to pair each
455   # line-number line with the line containing $LINENO, and appends
456   # trailing '-' during substitution so that $LINENO is not a special
457   # case at line end.
458   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459   # scripts with optimization help from Paolo Bonzini.  Blame Lee
460   # E. McMahon (1931-1989) for sed's syntax.  :-)
461   sed -n '
462     p
463     /[$]LINENO/=
464   ' <$as_myself |
465     sed '
466       s/[$]LINENO.*/&-/
467       t lineno
468       b
469       :lineno
470       N
471       :loop
472       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473       t loop
474       s/-\n.*//
475     ' >$as_me.lineno &&
476   chmod +x "$as_me.lineno" ||
477     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478    { (exit 1); exit 1; }; }
479
480   # Don't try to exec as it changes $[0], causing all sort of problems
481   # (the dirname of $[0] is not the place where we might find the
482   # original and so on.  Autoconf is especially sensitive to this).
483   . "./$as_me.lineno"
484   # Exit status is that of the last command.
485   exit
486 }
487
488
489 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490   as_dirname=dirname
491 else
492   as_dirname=false
493 fi
494
495 ECHO_C= ECHO_N= ECHO_T=
496 case `echo -n x` in
497 -n*)
498   case `echo 'x\c'` in
499   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
500   *)   ECHO_C='\c';;
501   esac;;
502 *)
503   ECHO_N='-n';;
504 esac
505 if expr a : '\(a\)' >/dev/null 2>&1 &&
506    test "X`expr 00001 : '.*\(...\)'`" = X001; then
507   as_expr=expr
508 else
509   as_expr=false
510 fi
511
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514   rm -f conf$$.dir/conf$$.file
515 else
516   rm -f conf$$.dir
517   mkdir conf$$.dir 2>/dev/null
518 fi
519 if (echo >conf$$.file) 2>/dev/null; then
520   if ln -s conf$$.file conf$$ 2>/dev/null; then
521     as_ln_s='ln -s'
522     # ... but there are two gotchas:
523     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525     # In both cases, we have to default to `cp -p'.
526     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527       as_ln_s='cp -p'
528   elif ln conf$$.file conf$$ 2>/dev/null; then
529     as_ln_s=ln
530   else
531     as_ln_s='cp -p'
532   fi
533 else
534   as_ln_s='cp -p'
535 fi
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
538
539 if mkdir -p . 2>/dev/null; then
540   as_mkdir_p=:
541 else
542   test -d ./-p && rmdir ./-p
543   as_mkdir_p=false
544 fi
545
546 if test -x / >/dev/null 2>&1; then
547   as_test_x='test -x'
548 else
549   if ls -dL / >/dev/null 2>&1; then
550     as_ls_L_option=L
551   else
552     as_ls_L_option=
553   fi
554   as_test_x='
555     eval sh -c '\''
556       if test -d "$1"; then
557         test -d "$1/.";
558       else
559         case $1 in
560         -*)set "./$1";;
561         esac;
562         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563         ???[sx]*):;;*)false;;esac;fi
564     '\'' sh
565   '
566 fi
567 as_executable_p=$as_test_x
568
569 # Sed expression to map a string onto a valid CPP name.
570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571
572 # Sed expression to map a string onto a valid variable name.
573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574
575
576
577
578 # Check that we are running under the correct shell.
579 SHELL=${CONFIG_SHELL-/bin/sh}
580
581 case X$lt_ECHO in
582 X*--fallback-echo)
583   # Remove one level of quotation (which was required for Make).
584   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
585   ;;
586 esac
587
588 ECHO=${lt_ECHO-echo}
589 if test "X$1" = X--no-reexec; then
590   # Discard the --no-reexec flag, and continue.
591   shift
592 elif test "X$1" = X--fallback-echo; then
593   # Avoid inline document here, it may be left over
594   :
595 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
596   # Yippee, $ECHO works!
597   :
598 else
599   # Restart under the correct shell.
600   exec $SHELL "$0" --no-reexec ${1+"$@"}
601 fi
602
603 if test "X$1" = X--fallback-echo; then
604   # used as fallback echo
605   shift
606   cat <<_LT_EOF
607 $*
608 _LT_EOF
609   exit 0
610 fi
611
612 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 # if CDPATH is set.
614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615
616 if test -z "$lt_ECHO"; then
617   if test "X${echo_test_string+set}" != Xset; then
618     # find a string as large as possible, as long as the shell can cope with it
619     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
620       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
621       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
622          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
623       then
624         break
625       fi
626     done
627   fi
628
629   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
630      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
631      test "X$echo_testing_string" = "X$echo_test_string"; then
632     :
633   else
634     # The Solaris, AIX, and Digital Unix default echo programs unquote
635     # backslashes.  This makes it impossible to quote backslashes using
636     #   echo "$something" | sed 's/\\/\\\\/g'
637     #
638     # So, first we look for a working echo in the user's PATH.
639
640     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641     for dir in $PATH /usr/ucb; do
642       IFS="$lt_save_ifs"
643       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646          test "X$echo_testing_string" = "X$echo_test_string"; then
647         ECHO="$dir/echo"
648         break
649       fi
650     done
651     IFS="$lt_save_ifs"
652
653     if test "X$ECHO" = Xecho; then
654       # We didn't find a better echo, so look for alternatives.
655       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
656          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
657          test "X$echo_testing_string" = "X$echo_test_string"; then
658         # This shell has a builtin print -r that does the trick.
659         ECHO='print -r'
660       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
661            test "X$CONFIG_SHELL" != X/bin/ksh; then
662         # If we have ksh, try running configure again with it.
663         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664         export ORIGINAL_CONFIG_SHELL
665         CONFIG_SHELL=/bin/ksh
666         export CONFIG_SHELL
667         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668       else
669         # Try using printf.
670         ECHO='printf %s\n'
671         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
672            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
673            test "X$echo_testing_string" = "X$echo_test_string"; then
674           # Cool, printf works
675           :
676         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677              test "X$echo_testing_string" = 'X\t' &&
678              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679              test "X$echo_testing_string" = "X$echo_test_string"; then
680           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681           export CONFIG_SHELL
682           SHELL="$CONFIG_SHELL"
683           export SHELL
684           ECHO="$CONFIG_SHELL $0 --fallback-echo"
685         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686              test "X$echo_testing_string" = 'X\t' &&
687              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688              test "X$echo_testing_string" = "X$echo_test_string"; then
689           ECHO="$CONFIG_SHELL $0 --fallback-echo"
690         else
691           # maybe with a smaller string...
692           prev=:
693
694           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
696             then
697               break
698             fi
699             prev="$cmd"
700           done
701
702           if test "$prev" != 'sed 50q "$0"'; then
703             echo_test_string=`eval $prev`
704             export echo_test_string
705             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706           else
707             # Oops.  We lost completely, so just stick with echo.
708             ECHO=echo
709           fi
710         fi
711       fi
712     fi
713   fi
714 fi
715
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 lt_ECHO=$ECHO
719 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721 fi
722
723
724
725
726 exec 7<&0 </dev/null 6>&1
727
728 # Name of the host.
729 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
730 # so uname gets run too.
731 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
732
733 #
734 # Initializations.
735 #
736 ac_default_prefix=/usr/local
737 ac_clean_files=
738 ac_config_libobj_dir=.
739 LIBOBJS=
740 cross_compiling=no
741 subdirs=
742 MFLAGS=
743 MAKEFLAGS=
744 SHELL=${CONFIG_SHELL-/bin/sh}
745
746 # Identity of this package.
747 PACKAGE_NAME='MPEG Audio Decoder'
748 PACKAGE_TARNAME='libmad'
749 PACKAGE_VERSION='0.15.1b'
750 PACKAGE_STRING='MPEG Audio Decoder 0.15.1b'
751 PACKAGE_BUGREPORT='support@underbit.com'
752
753 ac_unique_file="decoder.h"
754 # Factoring default headers for most tests.
755 ac_includes_default="\
756 #include <stdio.h>
757 #ifdef HAVE_SYS_TYPES_H
758 # include <sys/types.h>
759 #endif
760 #ifdef HAVE_SYS_STAT_H
761 # include <sys/stat.h>
762 #endif
763 #ifdef STDC_HEADERS
764 # include <stdlib.h>
765 # include <stddef.h>
766 #else
767 # ifdef HAVE_STDLIB_H
768 #  include <stdlib.h>
769 # endif
770 #endif
771 #ifdef HAVE_STRING_H
772 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
773 #  include <memory.h>
774 # endif
775 # include <string.h>
776 #endif
777 #ifdef HAVE_STRINGS_H
778 # include <strings.h>
779 #endif
780 #ifdef HAVE_INTTYPES_H
781 # include <inttypes.h>
782 #endif
783 #ifdef HAVE_STDINT_H
784 # include <stdint.h>
785 #endif
786 #ifdef HAVE_UNISTD_H
787 # include <unistd.h>
788 #endif"
789
790 ac_subst_vars='LTLIBOBJS
791 LIBOBJS
792 ASO_OBJS
793 ASO
794 FPM
795 LIBTOOL_DEPS
796 CPP
797 OTOOL64
798 OTOOL
799 LIPO
800 NMEDIT
801 DSYMUTIL
802 lt_ECHO
803 RANLIB
804 AR
805 OBJDUMP
806 LN_S
807 NM
808 ac_ct_DUMPBIN
809 DUMPBIN
810 LD
811 FGREP
812 EGREP
813 GREP
814 SED
815 LIBTOOL
816 am__fastdepCCAS_FALSE
817 am__fastdepCCAS_TRUE
818 CCASDEPMODE
819 CCASFLAGS
820 CCAS
821 am__fastdepCC_FALSE
822 am__fastdepCC_TRUE
823 CCDEPMODE
824 AMDEPBACKSLASH
825 AMDEP_FALSE
826 AMDEP_TRUE
827 am__quote
828 am__include
829 DEPDIR
830 OBJEXT
831 EXEEXT
832 ac_ct_CC
833 CPPFLAGS
834 LDFLAGS
835 CFLAGS
836 CC
837 host_os
838 host_vendor
839 host_cpu
840 host
841 build_os
842 build_vendor
843 build_cpu
844 build
845 am__untar
846 am__tar
847 AMTAR
848 am__leading_dot
849 SET_MAKE
850 AWK
851 mkdir_p
852 MKDIR_P
853 INSTALL_STRIP_PROGRAM
854 STRIP
855 install_sh
856 MAKEINFO
857 AUTOHEADER
858 AUTOMAKE
859 AUTOCONF
860 ACLOCAL
861 VERSION
862 PACKAGE
863 CYGPATH_W
864 am__isrc
865 INSTALL_DATA
866 INSTALL_SCRIPT
867 INSTALL_PROGRAM
868 target_alias
869 host_alias
870 build_alias
871 LIBS
872 ECHO_T
873 ECHO_N
874 ECHO_C
875 DEFS
876 mandir
877 localedir
878 libdir
879 psdir
880 pdfdir
881 dvidir
882 htmldir
883 infodir
884 docdir
885 oldincludedir
886 includedir
887 localstatedir
888 sharedstatedir
889 sysconfdir
890 datadir
891 datarootdir
892 libexecdir
893 sbindir
894 bindir
895 program_transform_name
896 prefix
897 exec_prefix
898 PACKAGE_BUGREPORT
899 PACKAGE_STRING
900 PACKAGE_VERSION
901 PACKAGE_TARNAME
902 PACKAGE_NAME
903 PATH_SEPARATOR
904 SHELL'
905 ac_subst_files=''
906 ac_user_opts='
907 enable_option_checking
908 enable_dependency_tracking
909 enable_shared
910 enable_static
911 with_pic
912 enable_fast_install
913 with_gnu_ld
914 enable_libtool_lock
915 enable_speed
916 enable_accuracy
917 enable_fpm
918 enable_sso
919 enable_aso
920 enable_strict_iso
921 enable_profiling
922 enable_debugging
923 enable_experimental
924 '
925       ac_precious_vars='build_alias
926 host_alias
927 target_alias
928 CC
929 CFLAGS
930 LDFLAGS
931 LIBS
932 CPPFLAGS
933 CCAS
934 CCASFLAGS
935 CPP'
936
937
938 # Initialize some variables set by options.
939 ac_init_help=
940 ac_init_version=false
941 ac_unrecognized_opts=
942 ac_unrecognized_sep=
943 # The variables have the same names as the options, with
944 # dashes changed to underlines.
945 cache_file=/dev/null
946 exec_prefix=NONE
947 no_create=
948 no_recursion=
949 prefix=NONE
950 program_prefix=NONE
951 program_suffix=NONE
952 program_transform_name=s,x,x,
953 silent=
954 site=
955 srcdir=
956 verbose=
957 x_includes=NONE
958 x_libraries=NONE
959
960 # Installation directory options.
961 # These are left unexpanded so users can "make install exec_prefix=/foo"
962 # and all the variables that are supposed to be based on exec_prefix
963 # by default will actually change.
964 # Use braces instead of parens because sh, perl, etc. also accept them.
965 # (The list follows the same order as the GNU Coding Standards.)
966 bindir='${exec_prefix}/bin'
967 sbindir='${exec_prefix}/sbin'
968 libexecdir='${exec_prefix}/libexec'
969 datarootdir='${prefix}/share'
970 datadir='${datarootdir}'
971 sysconfdir='${prefix}/etc'
972 sharedstatedir='${prefix}/com'
973 localstatedir='${prefix}/var'
974 includedir='${prefix}/include'
975 oldincludedir='/usr/include'
976 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
977 infodir='${datarootdir}/info'
978 htmldir='${docdir}'
979 dvidir='${docdir}'
980 pdfdir='${docdir}'
981 psdir='${docdir}'
982 libdir='${exec_prefix}/lib'
983 localedir='${datarootdir}/locale'
984 mandir='${datarootdir}/man'
985
986 ac_prev=
987 ac_dashdash=
988 for ac_option
989 do
990   # If the previous option needs an argument, assign it.
991   if test -n "$ac_prev"; then
992     eval $ac_prev=\$ac_option
993     ac_prev=
994     continue
995   fi
996
997   case $ac_option in
998   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
999   *)    ac_optarg=yes ;;
1000   esac
1001
1002   # Accept the important Cygnus configure options, so we can diagnose typos.
1003
1004   case $ac_dashdash$ac_option in
1005   --)
1006     ac_dashdash=yes ;;
1007
1008   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009     ac_prev=bindir ;;
1010   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1011     bindir=$ac_optarg ;;
1012
1013   -build | --build | --buil | --bui | --bu)
1014     ac_prev=build_alias ;;
1015   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1016     build_alias=$ac_optarg ;;
1017
1018   -cache-file | --cache-file | --cache-fil | --cache-fi \
1019   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1020     ac_prev=cache_file ;;
1021   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1022   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1023     cache_file=$ac_optarg ;;
1024
1025   --config-cache | -C)
1026     cache_file=config.cache ;;
1027
1028   -datadir | --datadir | --datadi | --datad)
1029     ac_prev=datadir ;;
1030   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1031     datadir=$ac_optarg ;;
1032
1033   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1034   | --dataroo | --dataro | --datar)
1035     ac_prev=datarootdir ;;
1036   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1037   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1038     datarootdir=$ac_optarg ;;
1039
1040   -disable-* | --disable-*)
1041     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1042     # Reject names that are not valid shell variable names.
1043     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1045    { (exit 1); exit 1; }; }
1046     ac_useropt_orig=$ac_useropt
1047     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048     case $ac_user_opts in
1049       *"
1050 "enable_$ac_useropt"
1051 "*) ;;
1052       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053          ac_unrecognized_sep=', ';;
1054     esac
1055     eval enable_$ac_useropt=no ;;
1056
1057   -docdir | --docdir | --docdi | --doc | --do)
1058     ac_prev=docdir ;;
1059   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060     docdir=$ac_optarg ;;
1061
1062   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063     ac_prev=dvidir ;;
1064   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065     dvidir=$ac_optarg ;;
1066
1067   -enable-* | --enable-*)
1068     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069     # Reject names that are not valid shell variable names.
1070     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1072    { (exit 1); exit 1; }; }
1073     ac_useropt_orig=$ac_useropt
1074     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075     case $ac_user_opts in
1076       *"
1077 "enable_$ac_useropt"
1078 "*) ;;
1079       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080          ac_unrecognized_sep=', ';;
1081     esac
1082     eval enable_$ac_useropt=\$ac_optarg ;;
1083
1084   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086   | --exec | --exe | --ex)
1087     ac_prev=exec_prefix ;;
1088   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090   | --exec=* | --exe=* | --ex=*)
1091     exec_prefix=$ac_optarg ;;
1092
1093   -gas | --gas | --ga | --g)
1094     # Obsolete; use --with-gas.
1095     with_gas=yes ;;
1096
1097   -help | --help | --hel | --he | -h)
1098     ac_init_help=long ;;
1099   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100     ac_init_help=recursive ;;
1101   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102     ac_init_help=short ;;
1103
1104   -host | --host | --hos | --ho)
1105     ac_prev=host_alias ;;
1106   -host=* | --host=* | --hos=* | --ho=*)
1107     host_alias=$ac_optarg ;;
1108
1109   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110     ac_prev=htmldir ;;
1111   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112   | --ht=*)
1113     htmldir=$ac_optarg ;;
1114
1115   -includedir | --includedir | --includedi | --included | --include \
1116   | --includ | --inclu | --incl | --inc)
1117     ac_prev=includedir ;;
1118   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119   | --includ=* | --inclu=* | --incl=* | --inc=*)
1120     includedir=$ac_optarg ;;
1121
1122   -infodir | --infodir | --infodi | --infod | --info | --inf)
1123     ac_prev=infodir ;;
1124   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125     infodir=$ac_optarg ;;
1126
1127   -libdir | --libdir | --libdi | --libd)
1128     ac_prev=libdir ;;
1129   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130     libdir=$ac_optarg ;;
1131
1132   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133   | --libexe | --libex | --libe)
1134     ac_prev=libexecdir ;;
1135   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136   | --libexe=* | --libex=* | --libe=*)
1137     libexecdir=$ac_optarg ;;
1138
1139   -localedir | --localedir | --localedi | --localed | --locale)
1140     ac_prev=localedir ;;
1141   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142     localedir=$ac_optarg ;;
1143
1144   -localstatedir | --localstatedir | --localstatedi | --localstated \
1145   | --localstate | --localstat | --localsta | --localst | --locals)
1146     ac_prev=localstatedir ;;
1147   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149     localstatedir=$ac_optarg ;;
1150
1151   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152     ac_prev=mandir ;;
1153   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154     mandir=$ac_optarg ;;
1155
1156   -nfp | --nfp | --nf)
1157     # Obsolete; use --without-fp.
1158     with_fp=no ;;
1159
1160   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161   | --no-cr | --no-c | -n)
1162     no_create=yes ;;
1163
1164   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166     no_recursion=yes ;;
1167
1168   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170   | --oldin | --oldi | --old | --ol | --o)
1171     ac_prev=oldincludedir ;;
1172   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175     oldincludedir=$ac_optarg ;;
1176
1177   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178     ac_prev=prefix ;;
1179   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180     prefix=$ac_optarg ;;
1181
1182   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183   | --program-pre | --program-pr | --program-p)
1184     ac_prev=program_prefix ;;
1185   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187     program_prefix=$ac_optarg ;;
1188
1189   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190   | --program-suf | --program-su | --program-s)
1191     ac_prev=program_suffix ;;
1192   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194     program_suffix=$ac_optarg ;;
1195
1196   -program-transform-name | --program-transform-name \
1197   | --program-transform-nam | --program-transform-na \
1198   | --program-transform-n | --program-transform- \
1199   | --program-transform | --program-transfor \
1200   | --program-transfo | --program-transf \
1201   | --program-trans | --program-tran \
1202   | --progr-tra | --program-tr | --program-t)
1203     ac_prev=program_transform_name ;;
1204   -program-transform-name=* | --program-transform-name=* \
1205   | --program-transform-nam=* | --program-transform-na=* \
1206   | --program-transform-n=* | --program-transform-=* \
1207   | --program-transform=* | --program-transfor=* \
1208   | --program-transfo=* | --program-transf=* \
1209   | --program-trans=* | --program-tran=* \
1210   | --progr-tra=* | --program-tr=* | --program-t=*)
1211     program_transform_name=$ac_optarg ;;
1212
1213   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214     ac_prev=pdfdir ;;
1215   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216     pdfdir=$ac_optarg ;;
1217
1218   -psdir | --psdir | --psdi | --psd | --ps)
1219     ac_prev=psdir ;;
1220   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221     psdir=$ac_optarg ;;
1222
1223   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224   | -silent | --silent | --silen | --sile | --sil)
1225     silent=yes ;;
1226
1227   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228     ac_prev=sbindir ;;
1229   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230   | --sbi=* | --sb=*)
1231     sbindir=$ac_optarg ;;
1232
1233   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235   | --sharedst | --shareds | --shared | --share | --shar \
1236   | --sha | --sh)
1237     ac_prev=sharedstatedir ;;
1238   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241   | --sha=* | --sh=*)
1242     sharedstatedir=$ac_optarg ;;
1243
1244   -site | --site | --sit)
1245     ac_prev=site ;;
1246   -site=* | --site=* | --sit=*)
1247     site=$ac_optarg ;;
1248
1249   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250     ac_prev=srcdir ;;
1251   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252     srcdir=$ac_optarg ;;
1253
1254   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255   | --syscon | --sysco | --sysc | --sys | --sy)
1256     ac_prev=sysconfdir ;;
1257   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259     sysconfdir=$ac_optarg ;;
1260
1261   -target | --target | --targe | --targ | --tar | --ta | --t)
1262     ac_prev=target_alias ;;
1263   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264     target_alias=$ac_optarg ;;
1265
1266   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267     verbose=yes ;;
1268
1269   -version | --version | --versio | --versi | --vers | -V)
1270     ac_init_version=: ;;
1271
1272   -with-* | --with-*)
1273     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274     # Reject names that are not valid shell variable names.
1275     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1277    { (exit 1); exit 1; }; }
1278     ac_useropt_orig=$ac_useropt
1279     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280     case $ac_user_opts in
1281       *"
1282 "with_$ac_useropt"
1283 "*) ;;
1284       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285          ac_unrecognized_sep=', ';;
1286     esac
1287     eval with_$ac_useropt=\$ac_optarg ;;
1288
1289   -without-* | --without-*)
1290     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1294    { (exit 1); exit 1; }; }
1295     ac_useropt_orig=$ac_useropt
1296     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297     case $ac_user_opts in
1298       *"
1299 "with_$ac_useropt"
1300 "*) ;;
1301       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302          ac_unrecognized_sep=', ';;
1303     esac
1304     eval with_$ac_useropt=no ;;
1305
1306   --x)
1307     # Obsolete; use --with-x.
1308     with_x=yes ;;
1309
1310   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311   | --x-incl | --x-inc | --x-in | --x-i)
1312     ac_prev=x_includes ;;
1313   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315     x_includes=$ac_optarg ;;
1316
1317   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319     ac_prev=x_libraries ;;
1320   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322     x_libraries=$ac_optarg ;;
1323
1324   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1325 Try \`$0 --help' for more information." >&2
1326    { (exit 1); exit 1; }; }
1327     ;;
1328
1329   *=*)
1330     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331     # Reject names that are not valid shell variable names.
1332     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1333       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334    { (exit 1); exit 1; }; }
1335     eval $ac_envvar=\$ac_optarg
1336     export $ac_envvar ;;
1337
1338   *)
1339     # FIXME: should be removed in autoconf 3.0.
1340     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344     ;;
1345
1346   esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1352    { (exit 1); exit 1; }; }
1353 fi
1354
1355 if test -n "$ac_unrecognized_opts"; then
1356   case $enable_option_checking in
1357     no) ;;
1358     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1359    { (exit 1); exit 1; }; } ;;
1360     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361   esac
1362 fi
1363
1364 # Check all directory arguments for consistency.
1365 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366                 datadir sysconfdir sharedstatedir localstatedir includedir \
1367                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368                 libdir localedir mandir
1369 do
1370   eval ac_val=\$$ac_var
1371   # Remove trailing slashes.
1372   case $ac_val in
1373     */ )
1374       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375       eval $ac_var=\$ac_val;;
1376   esac
1377   # Be sure to have absolute directory names.
1378   case $ac_val in
1379     [\\/$]* | ?:[\\/]* )  continue;;
1380     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381   esac
1382   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1383    { (exit 1); exit 1; }; }
1384 done
1385
1386 # There might be people who depend on the old broken behavior: `$host'
1387 # used to hold the argument of --host etc.
1388 # FIXME: To remove some day.
1389 build=$build_alias
1390 host=$host_alias
1391 target=$target_alias
1392
1393 # FIXME: To remove some day.
1394 if test "x$host_alias" != x; then
1395   if test "x$build_alias" = x; then
1396     cross_compiling=maybe
1397     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1398     If a cross compiler is detected then cross compile mode will be used." >&2
1399   elif test "x$build_alias" != "x$host_alias"; then
1400     cross_compiling=yes
1401   fi
1402 fi
1403
1404 ac_tool_prefix=
1405 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406
1407 test "$silent" = yes && exec 6>/dev/null
1408
1409
1410 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411 ac_ls_di=`ls -di .` &&
1412 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1414    { (exit 1); exit 1; }; }
1415 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1417    { (exit 1); exit 1; }; }
1418
1419
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422   ac_srcdir_defaulted=yes
1423   # Try the directory containing this script, then the parent directory.
1424   ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426          X"$as_myself" : 'X\(//\)[^/]' \| \
1427          X"$as_myself" : 'X\(//\)$' \| \
1428          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431             s//\1/
1432             q
1433           }
1434           /^X\(\/\/\)[^/].*/{
1435             s//\1/
1436             q
1437           }
1438           /^X\(\/\/\)$/{
1439             s//\1/
1440             q
1441           }
1442           /^X\(\/\).*/{
1443             s//\1/
1444             q
1445           }
1446           s/.*/./; q'`
1447   srcdir=$ac_confdir
1448   if test ! -r "$srcdir/$ac_unique_file"; then
1449     srcdir=..
1450   fi
1451 else
1452   ac_srcdir_defaulted=no
1453 fi
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1457    { (exit 1); exit 1; }; }
1458 fi
1459 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 ac_abs_confdir=`(
1461         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1462    { (exit 1); exit 1; }; }
1463         pwd)`
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466   srcdir=.
1467 fi
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1471 case $srcdir in
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 esac
1474 for ac_var in $ac_precious_vars; do
1475   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476   eval ac_env_${ac_var}_value=\$${ac_var}
1477   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 done
1480
1481 #
1482 # Report the --help message.
1483 #
1484 if test "$ac_init_help" = "long"; then
1485   # Omit some internal or obsolete options to make the list less imposing.
1486   # This message is too long to be a string in the A/UX 3.1 sh.
1487   cat <<_ACEOF
1488 \`configure' configures MPEG Audio Decoder 0.15.1b to adapt to many kinds of systems.
1489
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1491
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE.  See below for descriptions of some of the useful variables.
1494
1495 Defaults for the options are specified in brackets.
1496
1497 Configuration:
1498   -h, --help              display this help and exit
1499       --help=short        display options specific to this package
1500       --help=recursive    display the short help of all the included packages
1501   -V, --version           display version information and exit
1502   -q, --quiet, --silent   do not print \`checking...' messages
1503       --cache-file=FILE   cache test results in FILE [disabled]
1504   -C, --config-cache      alias for \`--cache-file=config.cache'
1505   -n, --no-create         do not create output files
1506       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1507
1508 Installation directories:
1509   --prefix=PREFIX         install architecture-independent files in PREFIX
1510                           [$ac_default_prefix]
1511   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1512                           [PREFIX]
1513
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1518
1519 For better control, use the options below.
1520
1521 Fine tuning of the installation directories:
1522   --bindir=DIR            user executables [EPREFIX/bin]
1523   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1524   --libexecdir=DIR        program executables [EPREFIX/libexec]
1525   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1526   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1527   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1528   --libdir=DIR            object code libraries [EPREFIX/lib]
1529   --includedir=DIR        C header files [PREFIX/include]
1530   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1531   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1532   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1533   --infodir=DIR           info documentation [DATAROOTDIR/info]
1534   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1535   --mandir=DIR            man documentation [DATAROOTDIR/man]
1536   --docdir=DIR            documentation root [DATAROOTDIR/doc/libmad]
1537   --htmldir=DIR           html documentation [DOCDIR]
1538   --dvidir=DIR            dvi documentation [DOCDIR]
1539   --pdfdir=DIR            pdf documentation [DOCDIR]
1540   --psdir=DIR             ps documentation [DOCDIR]
1541 _ACEOF
1542
1543   cat <<\_ACEOF
1544
1545 Program names:
1546   --program-prefix=PREFIX            prepend PREFIX to installed program names
1547   --program-suffix=SUFFIX            append SUFFIX to installed program names
1548   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1549
1550 System types:
1551   --build=BUILD     configure for building on BUILD [guessed]
1552   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1553 _ACEOF
1554 fi
1555
1556 if test -n "$ac_init_help"; then
1557   case $ac_init_help in
1558      short | recursive ) echo "Configuration of MPEG Audio Decoder 0.15.1b:";;
1559    esac
1560   cat <<\_ACEOF
1561
1562 Optional Features:
1563   --disable-option-checking  ignore unrecognized --enable/--with options
1564   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1565   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1566   --disable-dependency-tracking  speeds up one-time build
1567   --enable-dependency-tracking   do not reject slow dependency extractors
1568   --enable-shared[=PKGS]  build shared libraries [default=yes]
1569   --enable-static[=PKGS]  build static libraries [default=yes]
1570   --enable-fast-install[=PKGS]
1571                           optimize for fast installation [default=yes]
1572   --disable-libtool-lock  avoid locking (might break parallel builds)
1573   --enable-speed          optimize for speed over accuracy
1574   --enable-accuracy       optimize for accuracy over speed
1575   --enable-fpm=ARCH       use ARCH-specific fixed-point math routines (one of:
1576                           intel, arm, mips, sparc, ppc, 64bit, default)
1577   --enable-sso            use subband synthesis optimization
1578   --disable-aso           disable architecture-specific optimizations
1579   --enable-strict-iso     use strict ISO/IEC interpretations
1580   --enable-profiling      generate profiling code
1581   --enable-debugging      enable diagnostic debugging support
1582   --disable-debugging     do not enable debugging and use more optimization
1583   --enable-experimental   enable experimental code
1584
1585 Optional Packages:
1586   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1587   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1588   --with-pic              try to use only PIC/non-PIC objects [default=use
1589                           both]
1590   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1591
1592 Some influential environment variables:
1593   CC          C compiler command
1594   CFLAGS      C compiler flags
1595   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1596               nonstandard directory <lib dir>
1597   LIBS        libraries to pass to the linker, e.g. -l<library>
1598   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1599               you have headers in a nonstandard directory <include dir>
1600   CCAS        assembler compiler command (defaults to CC)
1601   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1602   CPP         C preprocessor
1603
1604 Use these variables to override the choices made by `configure' or to help
1605 it to find libraries and programs with nonstandard names/locations.
1606
1607 Report bugs to <support@underbit.com>.
1608 _ACEOF
1609 ac_status=$?
1610 fi
1611
1612 if test "$ac_init_help" = "recursive"; then
1613   # If there are subdirs, report their specific --help.
1614   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1615     test -d "$ac_dir" ||
1616       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1617       continue
1618     ac_builddir=.
1619
1620 case "$ac_dir" in
1621 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *)
1623   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1624   # A ".." for each directory in $ac_dir_suffix.
1625   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1626   case $ac_top_builddir_sub in
1627   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1629   esac ;;
1630 esac
1631 ac_abs_top_builddir=$ac_pwd
1632 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1633 # for backward compatibility:
1634 ac_top_builddir=$ac_top_build_prefix
1635
1636 case $srcdir in
1637   .)  # We are building in place.
1638     ac_srcdir=.
1639     ac_top_srcdir=$ac_top_builddir_sub
1640     ac_abs_top_srcdir=$ac_pwd ;;
1641   [\\/]* | ?:[\\/]* )  # Absolute name.
1642     ac_srcdir=$srcdir$ac_dir_suffix;
1643     ac_top_srcdir=$srcdir
1644     ac_abs_top_srcdir=$srcdir ;;
1645   *) # Relative name.
1646     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1647     ac_top_srcdir=$ac_top_build_prefix$srcdir
1648     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1649 esac
1650 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1651
1652     cd "$ac_dir" || { ac_status=$?; continue; }
1653     # Check for guested configure.
1654     if test -f "$ac_srcdir/configure.gnu"; then
1655       echo &&
1656       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1657     elif test -f "$ac_srcdir/configure"; then
1658       echo &&
1659       $SHELL "$ac_srcdir/configure" --help=recursive
1660     else
1661       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1662     fi || ac_status=$?
1663     cd "$ac_pwd" || { ac_status=$?; break; }
1664   done
1665 fi
1666
1667 test -n "$ac_init_help" && exit $ac_status
1668 if $ac_init_version; then
1669   cat <<\_ACEOF
1670 MPEG Audio Decoder configure 0.15.1b
1671 generated by GNU Autoconf 2.63
1672
1673 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1674 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1675 This configure script is free software; the Free Software Foundation
1676 gives unlimited permission to copy, distribute and modify it.
1677 _ACEOF
1678   exit
1679 fi
1680 cat >config.log <<_ACEOF
1681 This file contains any messages produced by compilers while
1682 running configure, to aid debugging if configure makes a mistake.
1683
1684 It was created by MPEG Audio Decoder $as_me 0.15.1b, which was
1685 generated by GNU Autoconf 2.63.  Invocation command line was
1686
1687   $ $0 $@
1688
1689 _ACEOF
1690 exec 5>>config.log
1691 {
1692 cat <<_ASUNAME
1693 ## --------- ##
1694 ## Platform. ##
1695 ## --------- ##
1696
1697 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1698 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1699 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1700 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1701 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1702
1703 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1704 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1705
1706 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1707 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1708 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1709 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1710 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1711 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1712 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1713
1714 _ASUNAME
1715
1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 for as_dir in $PATH
1718 do
1719   IFS=$as_save_IFS
1720   test -z "$as_dir" && as_dir=.
1721   $as_echo "PATH: $as_dir"
1722 done
1723 IFS=$as_save_IFS
1724
1725 } >&5
1726
1727 cat >&5 <<_ACEOF
1728
1729
1730 ## ----------- ##
1731 ## Core tests. ##
1732 ## ----------- ##
1733
1734 _ACEOF
1735
1736
1737 # Keep a trace of the command line.
1738 # Strip out --no-create and --no-recursion so they do not pile up.
1739 # Strip out --silent because we don't want to record it for future runs.
1740 # Also quote any args containing shell meta-characters.
1741 # Make two passes to allow for proper duplicate-argument suppression.
1742 ac_configure_args=
1743 ac_configure_args0=
1744 ac_configure_args1=
1745 ac_must_keep_next=false
1746 for ac_pass in 1 2
1747 do
1748   for ac_arg
1749   do
1750     case $ac_arg in
1751     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1752     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1753     | -silent | --silent | --silen | --sile | --sil)
1754       continue ;;
1755     *\'*)
1756       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1757     esac
1758     case $ac_pass in
1759     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1760     2)
1761       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1762       if test $ac_must_keep_next = true; then
1763         ac_must_keep_next=false # Got value, back to normal.
1764       else
1765         case $ac_arg in
1766           *=* | --config-cache | -C | -disable-* | --disable-* \
1767           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1768           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1769           | -with-* | --with-* | -without-* | --without-* | --x)
1770             case "$ac_configure_args0 " in
1771               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1772             esac
1773             ;;
1774           -* ) ac_must_keep_next=true ;;
1775         esac
1776       fi
1777       ac_configure_args="$ac_configure_args '$ac_arg'"
1778       ;;
1779     esac
1780   done
1781 done
1782 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1783 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1784
1785 # When interrupted or exit'd, cleanup temporary files, and complete
1786 # config.log.  We remove comments because anyway the quotes in there
1787 # would cause problems or look ugly.
1788 # WARNING: Use '\'' to represent an apostrophe within the trap.
1789 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1790 trap 'exit_status=$?
1791   # Save into config.log some information that might help in debugging.
1792   {
1793     echo
1794
1795     cat <<\_ASBOX
1796 ## ---------------- ##
1797 ## Cache variables. ##
1798 ## ---------------- ##
1799 _ASBOX
1800     echo
1801     # The following way of writing the cache mishandles newlines in values,
1802 (
1803   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1804     eval ac_val=\$$ac_var
1805     case $ac_val in #(
1806     *${as_nl}*)
1807       case $ac_var in #(
1808       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1809 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1810       esac
1811       case $ac_var in #(
1812       _ | IFS | as_nl) ;; #(
1813       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1814       *) $as_unset $ac_var ;;
1815       esac ;;
1816     esac
1817   done
1818   (set) 2>&1 |
1819     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1820     *${as_nl}ac_space=\ *)
1821       sed -n \
1822         "s/'\''/'\''\\\\'\'''\''/g;
1823           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1824       ;; #(
1825     *)
1826       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1827       ;;
1828     esac |
1829     sort
1830 )
1831     echo
1832
1833     cat <<\_ASBOX
1834 ## ----------------- ##
1835 ## Output variables. ##
1836 ## ----------------- ##
1837 _ASBOX
1838     echo
1839     for ac_var in $ac_subst_vars
1840     do
1841       eval ac_val=\$$ac_var
1842       case $ac_val in
1843       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1844       esac
1845       $as_echo "$ac_var='\''$ac_val'\''"
1846     done | sort
1847     echo
1848
1849     if test -n "$ac_subst_files"; then
1850       cat <<\_ASBOX
1851 ## ------------------- ##
1852 ## File substitutions. ##
1853 ## ------------------- ##
1854 _ASBOX
1855       echo
1856       for ac_var in $ac_subst_files
1857       do
1858         eval ac_val=\$$ac_var
1859         case $ac_val in
1860         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1861         esac
1862         $as_echo "$ac_var='\''$ac_val'\''"
1863       done | sort
1864       echo
1865     fi
1866
1867     if test -s confdefs.h; then
1868       cat <<\_ASBOX
1869 ## ----------- ##
1870 ## confdefs.h. ##
1871 ## ----------- ##
1872 _ASBOX
1873       echo
1874       cat confdefs.h
1875       echo
1876     fi
1877     test "$ac_signal" != 0 &&
1878       $as_echo "$as_me: caught signal $ac_signal"
1879     $as_echo "$as_me: exit $exit_status"
1880   } >&5
1881   rm -f core *.core core.conftest.* &&
1882     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1883     exit $exit_status
1884 ' 0
1885 for ac_signal in 1 2 13 15; do
1886   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1887 done
1888 ac_signal=0
1889
1890 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1891 rm -f -r conftest* confdefs.h
1892
1893 # Predefined preprocessor variables.
1894
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_NAME "$PACKAGE_NAME"
1897 _ACEOF
1898
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1902 _ACEOF
1903
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1907 _ACEOF
1908
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_STRING "$PACKAGE_STRING"
1912 _ACEOF
1913
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1917 _ACEOF
1918
1919
1920 # Let the site file select an alternate cache file if it wants to.
1921 # Prefer an explicitly selected file to automatically selected ones.
1922 ac_site_file1=NONE
1923 ac_site_file2=NONE
1924 if test -n "$CONFIG_SITE"; then
1925   ac_site_file1=$CONFIG_SITE
1926 elif test "x$prefix" != xNONE; then
1927   ac_site_file1=$prefix/share/config.site
1928   ac_site_file2=$prefix/etc/config.site
1929 else
1930   ac_site_file1=$ac_default_prefix/share/config.site
1931   ac_site_file2=$ac_default_prefix/etc/config.site
1932 fi
1933 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1934 do
1935   test "x$ac_site_file" = xNONE && continue
1936   if test -r "$ac_site_file"; then
1937     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1938 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1939     sed 's/^/| /' "$ac_site_file" >&5
1940     . "$ac_site_file"
1941   fi
1942 done
1943
1944 if test -r "$cache_file"; then
1945   # Some versions of bash will fail to source /dev/null (special
1946   # files actually), so we avoid doing that.
1947   if test -f "$cache_file"; then
1948     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1949 $as_echo "$as_me: loading cache $cache_file" >&6;}
1950     case $cache_file in
1951       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1952       *)                      . "./$cache_file";;
1953     esac
1954   fi
1955 else
1956   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1957 $as_echo "$as_me: creating cache $cache_file" >&6;}
1958   >$cache_file
1959 fi
1960
1961 # Check that the precious variables saved in the cache have kept the same
1962 # value.
1963 ac_cache_corrupted=false
1964 for ac_var in $ac_precious_vars; do
1965   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1966   eval ac_new_set=\$ac_env_${ac_var}_set
1967   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1968   eval ac_new_val=\$ac_env_${ac_var}_value
1969   case $ac_old_set,$ac_new_set in
1970     set,)
1971       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1972 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1973       ac_cache_corrupted=: ;;
1974     ,set)
1975       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1976 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1977       ac_cache_corrupted=: ;;
1978     ,);;
1979     *)
1980       if test "x$ac_old_val" != "x$ac_new_val"; then
1981         # differences in whitespace do not lead to failure.
1982         ac_old_val_w=`echo x $ac_old_val`
1983         ac_new_val_w=`echo x $ac_new_val`
1984         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1985           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1986 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1987           ac_cache_corrupted=:
1988         else
1989           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1990 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1991           eval $ac_var=\$ac_old_val
1992         fi
1993         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1994 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1995         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1996 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1997       fi;;
1998   esac
1999   # Pass precious variables to config.status.
2000   if test "$ac_new_set" = set; then
2001     case $ac_new_val in
2002     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2003     *) ac_arg=$ac_var=$ac_new_val ;;
2004     esac
2005     case " $ac_configure_args " in
2006       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2007       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2008     esac
2009   fi
2010 done
2011 if $ac_cache_corrupted; then
2012   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2014   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2015 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2016   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2017 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2018    { (exit 1); exit 1; }; }
2019 fi
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045 ac_ext=c
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2050
2051
2052
2053
2054
2055
2056 am__api_version='1.10'
2057
2058 ac_aux_dir=
2059 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2060   if test -f "$ac_dir/install-sh"; then
2061     ac_aux_dir=$ac_dir
2062     ac_install_sh="$ac_aux_dir/install-sh -c"
2063     break
2064   elif test -f "$ac_dir/install.sh"; then
2065     ac_aux_dir=$ac_dir
2066     ac_install_sh="$ac_aux_dir/install.sh -c"
2067     break
2068   elif test -f "$ac_dir/shtool"; then
2069     ac_aux_dir=$ac_dir
2070     ac_install_sh="$ac_aux_dir/shtool install -c"
2071     break
2072   fi
2073 done
2074 if test -z "$ac_aux_dir"; then
2075   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2076 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2077    { (exit 1); exit 1; }; }
2078 fi
2079
2080 # These three variables are undocumented and unsupported,
2081 # and are intended to be withdrawn in a future Autoconf release.
2082 # They can cause serious problems if a builder's source tree is in a directory
2083 # whose full name contains unusual characters.
2084 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2085 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2086 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2087
2088
2089 # Find a good install program.  We prefer a C program (faster),
2090 # so one script is as good as another.  But avoid the broken or
2091 # incompatible versions:
2092 # SysV /etc/install, /usr/sbin/install
2093 # SunOS /usr/etc/install
2094 # IRIX /sbin/install
2095 # AIX /bin/install
2096 # AmigaOS /C/install, which installs bootblocks on floppy discs
2097 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2098 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2099 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2100 # OS/2's system install, which has a completely different semantic
2101 # ./install, which can be erroneously created by make from ./install.sh.
2102 # Reject install programs that cannot install multiple files.
2103 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2104 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2105 if test -z "$INSTALL"; then
2106 if test "${ac_cv_path_install+set}" = set; then
2107   $as_echo_n "(cached) " >&6
2108 else
2109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2111 do
2112   IFS=$as_save_IFS
2113   test -z "$as_dir" && as_dir=.
2114   # Account for people who put trailing slashes in PATH elements.
2115 case $as_dir/ in
2116   ./ | .// | /cC/* | \
2117   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2118   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2119   /usr/ucb/* ) ;;
2120   *)
2121     # OSF1 and SCO ODT 3.0 have their own names for install.
2122     # Don't use installbsd from OSF since it installs stuff as root
2123     # by default.
2124     for ac_prog in ginstall scoinst install; do
2125       for ac_exec_ext in '' $ac_executable_extensions; do
2126         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2127           if test $ac_prog = install &&
2128             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2129             # AIX install.  It has an incompatible calling convention.
2130             :
2131           elif test $ac_prog = install &&
2132             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2133             # program-specific install script used by HP pwplus--don't use.
2134             :
2135           else
2136             rm -rf conftest.one conftest.two conftest.dir
2137             echo one > conftest.one
2138             echo two > conftest.two
2139             mkdir conftest.dir
2140             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2141               test -s conftest.one && test -s conftest.two &&
2142               test -s conftest.dir/conftest.one &&
2143               test -s conftest.dir/conftest.two
2144             then
2145               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2146               break 3
2147             fi
2148           fi
2149         fi
2150       done
2151     done
2152     ;;
2153 esac
2154
2155 done
2156 IFS=$as_save_IFS
2157
2158 rm -rf conftest.one conftest.two conftest.dir
2159
2160 fi
2161   if test "${ac_cv_path_install+set}" = set; then
2162     INSTALL=$ac_cv_path_install
2163   else
2164     # As a last resort, use the slow shell script.  Don't cache a
2165     # value for INSTALL within a source directory, because that will
2166     # break other packages using the cache if that directory is
2167     # removed, or if the value is a relative name.
2168     INSTALL=$ac_install_sh
2169   fi
2170 fi
2171 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2172 $as_echo "$INSTALL" >&6; }
2173
2174 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2175 # It thinks the first close brace ends the variable substitution.
2176 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2177
2178 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2179
2180 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2181
2182 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2183 $as_echo_n "checking whether build environment is sane... " >&6; }
2184 # Just in case
2185 sleep 1
2186 echo timestamp > conftest.file
2187 # Do `set' in a subshell so we don't clobber the current shell's
2188 # arguments.  Must try -L first in case configure is actually a
2189 # symlink; some systems play weird games with the mod time of symlinks
2190 # (eg FreeBSD returns the mod time of the symlink's containing
2191 # directory).
2192 if (
2193    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2194    if test "$*" = "X"; then
2195       # -L didn't work.
2196       set X `ls -t $srcdir/configure conftest.file`
2197    fi
2198    rm -f conftest.file
2199    if test "$*" != "X $srcdir/configure conftest.file" \
2200       && test "$*" != "X conftest.file $srcdir/configure"; then
2201
2202       # If neither matched, then we have a broken ls.  This can happen
2203       # if, for instance, CONFIG_SHELL is bash and it inherits a
2204       # broken ls alias from the environment.  This has actually
2205       # happened.  Such a system could not be considered "sane".
2206       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2207 alias in your environment" >&5
2208 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2209 alias in your environment" >&2;}
2210    { (exit 1); exit 1; }; }
2211    fi
2212
2213    test "$2" = conftest.file
2214    )
2215 then
2216    # Ok.
2217    :
2218 else
2219    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2220 Check your system clock" >&5
2221 $as_echo "$as_me: error: newly created file is older than distributed files!
2222 Check your system clock" >&2;}
2223    { (exit 1); exit 1; }; }
2224 fi
2225 { $as_echo "$as_me:$LINENO: result: yes" >&5
2226 $as_echo "yes" >&6; }
2227 test "$program_prefix" != NONE &&
2228   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2229 # Use a double $ so make ignores it.
2230 test "$program_suffix" != NONE &&
2231   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2232 # Double any \ or $.
2233 # By default was `s,x,x', remove it if useless.
2234 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2235 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2236
2237 # expand $ac_aux_dir to an absolute path
2238 am_aux_dir=`cd $ac_aux_dir && pwd`
2239
2240 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2241 # Use eval to expand $SHELL
2242 if eval "$MISSING --run true"; then
2243   am_missing_run="$MISSING --run "
2244 else
2245   am_missing_run=
2246   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2247 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2248 fi
2249
2250 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2251 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2252 if test -z "$MKDIR_P"; then
2253   if test "${ac_cv_path_mkdir+set}" = set; then
2254   $as_echo_n "(cached) " >&6
2255 else
2256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2258 do
2259   IFS=$as_save_IFS
2260   test -z "$as_dir" && as_dir=.
2261   for ac_prog in mkdir gmkdir; do
2262          for ac_exec_ext in '' $ac_executable_extensions; do
2263            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2264            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2265              'mkdir (GNU coreutils) '* | \
2266              'mkdir (coreutils) '* | \
2267              'mkdir (fileutils) '4.1*)
2268                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2269                break 3;;
2270            esac
2271          done
2272        done
2273 done
2274 IFS=$as_save_IFS
2275
2276 fi
2277
2278   if test "${ac_cv_path_mkdir+set}" = set; then
2279     MKDIR_P="$ac_cv_path_mkdir -p"
2280   else
2281     # As a last resort, use the slow shell script.  Don't cache a
2282     # value for MKDIR_P within a source directory, because that will
2283     # break other packages using the cache if that directory is
2284     # removed, or if the value is a relative name.
2285     test -d ./--version && rmdir ./--version
2286     MKDIR_P="$ac_install_sh -d"
2287   fi
2288 fi
2289 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2290 $as_echo "$MKDIR_P" >&6; }
2291
2292 mkdir_p="$MKDIR_P"
2293 case $mkdir_p in
2294   [\\/$]* | ?:[\\/]*) ;;
2295   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2296 esac
2297
2298 for ac_prog in gawk mawk nawk awk
2299 do
2300   # Extract the first word of "$ac_prog", so it can be a program name with args.
2301 set dummy $ac_prog; ac_word=$2
2302 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 $as_echo_n "checking for $ac_word... " >&6; }
2304 if test "${ac_cv_prog_AWK+set}" = set; then
2305   $as_echo_n "(cached) " >&6
2306 else
2307   if test -n "$AWK"; then
2308   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2309 else
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 for as_dir in $PATH
2312 do
2313   IFS=$as_save_IFS
2314   test -z "$as_dir" && as_dir=.
2315   for ac_exec_ext in '' $ac_executable_extensions; do
2316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2317     ac_cv_prog_AWK="$ac_prog"
2318     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319     break 2
2320   fi
2321 done
2322 done
2323 IFS=$as_save_IFS
2324
2325 fi
2326 fi
2327 AWK=$ac_cv_prog_AWK
2328 if test -n "$AWK"; then
2329   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2330 $as_echo "$AWK" >&6; }
2331 else
2332   { $as_echo "$as_me:$LINENO: result: no" >&5
2333 $as_echo "no" >&6; }
2334 fi
2335
2336
2337   test -n "$AWK" && break
2338 done
2339
2340 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2341 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2342 set x ${MAKE-make}
2343 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2344 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2345   $as_echo_n "(cached) " >&6
2346 else
2347   cat >conftest.make <<\_ACEOF
2348 SHELL = /bin/sh
2349 all:
2350         @echo '@@@%%%=$(MAKE)=@@@%%%'
2351 _ACEOF
2352 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2353 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2354   *@@@%%%=?*=@@@%%%*)
2355     eval ac_cv_prog_make_${ac_make}_set=yes;;
2356   *)
2357     eval ac_cv_prog_make_${ac_make}_set=no;;
2358 esac
2359 rm -f conftest.make
2360 fi
2361 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2362   { $as_echo "$as_me:$LINENO: result: yes" >&5
2363 $as_echo "yes" >&6; }
2364   SET_MAKE=
2365 else
2366   { $as_echo "$as_me:$LINENO: result: no" >&5
2367 $as_echo "no" >&6; }
2368   SET_MAKE="MAKE=${MAKE-make}"
2369 fi
2370
2371 rm -rf .tst 2>/dev/null
2372 mkdir .tst 2>/dev/null
2373 if test -d .tst; then
2374   am__leading_dot=.
2375 else
2376   am__leading_dot=_
2377 fi
2378 rmdir .tst 2>/dev/null
2379
2380 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2381   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2382   # is not polluted with repeated "-I."
2383   am__isrc=' -I$(srcdir)'
2384   # test to see if srcdir already configured
2385   if test -f $srcdir/config.status; then
2386     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2387 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2388    { (exit 1); exit 1; }; }
2389   fi
2390 fi
2391
2392 # test whether we have cygpath
2393 if test -z "$CYGPATH_W"; then
2394   if (cygpath --version) >/dev/null 2>/dev/null; then
2395     CYGPATH_W='cygpath -w'
2396   else
2397     CYGPATH_W=echo
2398   fi
2399 fi
2400
2401
2402 # Define the identity of the package.
2403  PACKAGE='libmad'
2404  VERSION='0.15.1b'
2405
2406
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE "$PACKAGE"
2409 _ACEOF
2410
2411
2412 cat >>confdefs.h <<_ACEOF
2413 #define VERSION "$VERSION"
2414 _ACEOF
2415
2416 # Some tools Automake needs.
2417
2418 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2419
2420
2421 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2422
2423
2424 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2425
2426
2427 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2428
2429
2430 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2431
2432 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2433
2434 # Installed binaries are usually stripped using `strip' when the user
2435 # run `make install-strip'.  However `strip' might not be the right
2436 # tool to use in cross-compilation environments, therefore Automake
2437 # will honor the `STRIP' environment variable to overrule this program.
2438 if test "$cross_compiling" != no; then
2439   if test -n "$ac_tool_prefix"; then
2440   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2441 set dummy ${ac_tool_prefix}strip; ac_word=$2
2442 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2443 $as_echo_n "checking for $ac_word... " >&6; }
2444 if test "${ac_cv_prog_STRIP+set}" = set; then
2445   $as_echo_n "(cached) " >&6
2446 else
2447   if test -n "$STRIP"; then
2448   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2449 else
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 for as_dir in $PATH
2452 do
2453   IFS=$as_save_IFS
2454   test -z "$as_dir" && as_dir=.
2455   for ac_exec_ext in '' $ac_executable_extensions; do
2456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2457     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2458     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459     break 2
2460   fi
2461 done
2462 done
2463 IFS=$as_save_IFS
2464
2465 fi
2466 fi
2467 STRIP=$ac_cv_prog_STRIP
2468 if test -n "$STRIP"; then
2469   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2470 $as_echo "$STRIP" >&6; }
2471 else
2472   { $as_echo "$as_me:$LINENO: result: no" >&5
2473 $as_echo "no" >&6; }
2474 fi
2475
2476
2477 fi
2478 if test -z "$ac_cv_prog_STRIP"; then
2479   ac_ct_STRIP=$STRIP
2480   # Extract the first word of "strip", so it can be a program name with args.
2481 set dummy strip; ac_word=$2
2482 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2483 $as_echo_n "checking for $ac_word... " >&6; }
2484 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2485   $as_echo_n "(cached) " >&6
2486 else
2487   if test -n "$ac_ct_STRIP"; then
2488   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH
2492 do
2493   IFS=$as_save_IFS
2494   test -z "$as_dir" && as_dir=.
2495   for ac_exec_ext in '' $ac_executable_extensions; do
2496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497     ac_cv_prog_ac_ct_STRIP="strip"
2498     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499     break 2
2500   fi
2501 done
2502 done
2503 IFS=$as_save_IFS
2504
2505 fi
2506 fi
2507 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2508 if test -n "$ac_ct_STRIP"; then
2509   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2510 $as_echo "$ac_ct_STRIP" >&6; }
2511 else
2512   { $as_echo "$as_me:$LINENO: result: no" >&5
2513 $as_echo "no" >&6; }
2514 fi
2515
2516   if test "x$ac_ct_STRIP" = x; then
2517     STRIP=":"
2518   else
2519     case $cross_compiling:$ac_tool_warned in
2520 yes:)
2521 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2523 ac_tool_warned=yes ;;
2524 esac
2525     STRIP=$ac_ct_STRIP
2526   fi
2527 else
2528   STRIP="$ac_cv_prog_STRIP"
2529 fi
2530
2531 fi
2532 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2533
2534 # We need awk for the "check" target.  The system "awk" is bad on
2535 # some platforms.
2536 # Always define AMTAR for backward compatibility.
2537
2538 AMTAR=${AMTAR-"${am_missing_run}tar"}
2539
2540 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2541
2542
2543
2544
2545
2546
2547 ac_config_headers="$ac_config_headers config.h"
2548
2549
2550
2551 # Make sure we can run config.sub.
2552 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2553   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2554 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2555    { (exit 1); exit 1; }; }
2556
2557 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2558 $as_echo_n "checking build system type... " >&6; }
2559 if test "${ac_cv_build+set}" = set; then
2560   $as_echo_n "(cached) " >&6
2561 else
2562   ac_build_alias=$build_alias
2563 test "x$ac_build_alias" = x &&
2564   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2565 test "x$ac_build_alias" = x &&
2566   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2567 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2568    { (exit 1); exit 1; }; }
2569 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2570   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2571 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2572    { (exit 1); exit 1; }; }
2573
2574 fi
2575 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2576 $as_echo "$ac_cv_build" >&6; }
2577 case $ac_cv_build in
2578 *-*-*) ;;
2579 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2580 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2581    { (exit 1); exit 1; }; };;
2582 esac
2583 build=$ac_cv_build
2584 ac_save_IFS=$IFS; IFS='-'
2585 set x $ac_cv_build
2586 shift
2587 build_cpu=$1
2588 build_vendor=$2
2589 shift; shift
2590 # Remember, the first character of IFS is used to create $*,
2591 # except with old shells:
2592 build_os=$*
2593 IFS=$ac_save_IFS
2594 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2595
2596
2597 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2598 $as_echo_n "checking host system type... " >&6; }
2599 if test "${ac_cv_host+set}" = set; then
2600   $as_echo_n "(cached) " >&6
2601 else
2602   if test "x$host_alias" = x; then
2603   ac_cv_host=$ac_cv_build
2604 else
2605   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2606     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2607 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2608    { (exit 1); exit 1; }; }
2609 fi
2610
2611 fi
2612 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2613 $as_echo "$ac_cv_host" >&6; }
2614 case $ac_cv_host in
2615 *-*-*) ;;
2616 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2617 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2618    { (exit 1); exit 1; }; };;
2619 esac
2620 host=$ac_cv_host
2621 ac_save_IFS=$IFS; IFS='-'
2622 set x $ac_cv_host
2623 shift
2624 host_cpu=$1
2625 host_vendor=$2
2626 shift; shift
2627 # Remember, the first character of IFS is used to create $*,
2628 # except with old shells:
2629 host_os=$*
2630 IFS=$ac_save_IFS
2631 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2632
2633
2634
2635
2636 ac_ext=c
2637 ac_cpp='$CPP $CPPFLAGS'
2638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641 if test -n "$ac_tool_prefix"; then
2642   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2643 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if test "${ac_cv_prog_CC+set}" = set; then
2647   $as_echo_n "(cached) " >&6
2648 else
2649   if test -n "$CC"; then
2650   ac_cv_prog_CC="$CC" # Let the user override the test.
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2654 do
2655   IFS=$as_save_IFS
2656   test -z "$as_dir" && as_dir=.
2657   for ac_exec_ext in '' $ac_executable_extensions; do
2658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2660     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661     break 2
2662   fi
2663 done
2664 done
2665 IFS=$as_save_IFS
2666
2667 fi
2668 fi
2669 CC=$ac_cv_prog_CC
2670 if test -n "$CC"; then
2671   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2672 $as_echo "$CC" >&6; }
2673 else
2674   { $as_echo "$as_me:$LINENO: result: no" >&5
2675 $as_echo "no" >&6; }
2676 fi
2677
2678
2679 fi
2680 if test -z "$ac_cv_prog_CC"; then
2681   ac_ct_CC=$CC
2682   # Extract the first word of "gcc", so it can be a program name with args.
2683 set dummy gcc; ac_word=$2
2684 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2685 $as_echo_n "checking for $ac_word... " >&6; }
2686 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2687   $as_echo_n "(cached) " >&6
2688 else
2689   if test -n "$ac_ct_CC"; then
2690   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695   IFS=$as_save_IFS
2696   test -z "$as_dir" && as_dir=.
2697   for ac_exec_ext in '' $ac_executable_extensions; do
2698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699     ac_cv_prog_ac_ct_CC="gcc"
2700     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701     break 2
2702   fi
2703 done
2704 done
2705 IFS=$as_save_IFS
2706
2707 fi
2708 fi
2709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2710 if test -n "$ac_ct_CC"; then
2711   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2712 $as_echo "$ac_ct_CC" >&6; }
2713 else
2714   { $as_echo "$as_me:$LINENO: result: no" >&5
2715 $as_echo "no" >&6; }
2716 fi
2717
2718   if test "x$ac_ct_CC" = x; then
2719     CC=""
2720   else
2721     case $cross_compiling:$ac_tool_warned in
2722 yes:)
2723 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2725 ac_tool_warned=yes ;;
2726 esac
2727     CC=$ac_ct_CC
2728   fi
2729 else
2730   CC="$ac_cv_prog_CC"
2731 fi
2732
2733 if test -z "$CC"; then
2734           if test -n "$ac_tool_prefix"; then
2735     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2736 set dummy ${ac_tool_prefix}cc; ac_word=$2
2737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if test "${ac_cv_prog_CC+set}" = set; then
2740   $as_echo_n "(cached) " >&6
2741 else
2742   if test -n "$CC"; then
2743   ac_cv_prog_CC="$CC" # Let the user override the test.
2744 else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2747 do
2748   IFS=$as_save_IFS
2749   test -z "$as_dir" && as_dir=.
2750   for ac_exec_ext in '' $ac_executable_extensions; do
2751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752     ac_cv_prog_CC="${ac_tool_prefix}cc"
2753     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754     break 2
2755   fi
2756 done
2757 done
2758 IFS=$as_save_IFS
2759
2760 fi
2761 fi
2762 CC=$ac_cv_prog_CC
2763 if test -n "$CC"; then
2764   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2765 $as_echo "$CC" >&6; }
2766 else
2767   { $as_echo "$as_me:$LINENO: result: no" >&5
2768 $as_echo "no" >&6; }
2769 fi
2770
2771
2772   fi
2773 fi
2774 if test -z "$CC"; then
2775   # Extract the first word of "cc", so it can be a program name with args.
2776 set dummy cc; ac_word=$2
2777 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 $as_echo_n "checking for $ac_word... " >&6; }
2779 if test "${ac_cv_prog_CC+set}" = set; then
2780   $as_echo_n "(cached) " >&6
2781 else
2782   if test -n "$CC"; then
2783   ac_cv_prog_CC="$CC" # Let the user override the test.
2784 else
2785   ac_prog_rejected=no
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789   IFS=$as_save_IFS
2790   test -z "$as_dir" && as_dir=.
2791   for ac_exec_ext in '' $ac_executable_extensions; do
2792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2794        ac_prog_rejected=yes
2795        continue
2796      fi
2797     ac_cv_prog_CC="cc"
2798     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799     break 2
2800   fi
2801 done
2802 done
2803 IFS=$as_save_IFS
2804
2805 if test $ac_prog_rejected = yes; then
2806   # We found a bogon in the path, so make sure we never use it.
2807   set dummy $ac_cv_prog_CC
2808   shift
2809   if test $# != 0; then
2810     # We chose a different compiler from the bogus one.
2811     # However, it has the same basename, so the bogon will be chosen
2812     # first if we set CC to just the basename; use the full file name.
2813     shift
2814     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2815   fi
2816 fi
2817 fi
2818 fi
2819 CC=$ac_cv_prog_CC
2820 if test -n "$CC"; then
2821   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2822 $as_echo "$CC" >&6; }
2823 else
2824   { $as_echo "$as_me:$LINENO: result: no" >&5
2825 $as_echo "no" >&6; }
2826 fi
2827
2828
2829 fi
2830 if test -z "$CC"; then
2831   if test -n "$ac_tool_prefix"; then
2832   for ac_prog in cl.exe
2833   do
2834     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2835 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2836 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if test "${ac_cv_prog_CC+set}" = set; then
2839   $as_echo_n "(cached) " >&6
2840 else
2841   if test -n "$CC"; then
2842   ac_cv_prog_CC="$CC" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847   IFS=$as_save_IFS
2848   test -z "$as_dir" && as_dir=.
2849   for ac_exec_ext in '' $ac_executable_extensions; do
2850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2852     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853     break 2
2854   fi
2855 done
2856 done
2857 IFS=$as_save_IFS
2858
2859 fi
2860 fi
2861 CC=$ac_cv_prog_CC
2862 if test -n "$CC"; then
2863   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2864 $as_echo "$CC" >&6; }
2865 else
2866   { $as_echo "$as_me:$LINENO: result: no" >&5
2867 $as_echo "no" >&6; }
2868 fi
2869
2870
2871     test -n "$CC" && break
2872   done
2873 fi
2874 if test -z "$CC"; then
2875   ac_ct_CC=$CC
2876   for ac_prog in cl.exe
2877 do
2878   # Extract the first word of "$ac_prog", so it can be a program name with args.
2879 set dummy $ac_prog; ac_word=$2
2880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2883   $as_echo_n "(cached) " >&6
2884 else
2885   if test -n "$ac_ct_CC"; then
2886   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2890 do
2891   IFS=$as_save_IFS
2892   test -z "$as_dir" && as_dir=.
2893   for ac_exec_ext in '' $ac_executable_extensions; do
2894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895     ac_cv_prog_ac_ct_CC="$ac_prog"
2896     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897     break 2
2898   fi
2899 done
2900 done
2901 IFS=$as_save_IFS
2902
2903 fi
2904 fi
2905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2906 if test -n "$ac_ct_CC"; then
2907   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2908 $as_echo "$ac_ct_CC" >&6; }
2909 else
2910   { $as_echo "$as_me:$LINENO: result: no" >&5
2911 $as_echo "no" >&6; }
2912 fi
2913
2914
2915   test -n "$ac_ct_CC" && break
2916 done
2917
2918   if test "x$ac_ct_CC" = x; then
2919     CC=""
2920   else
2921     case $cross_compiling:$ac_tool_warned in
2922 yes:)
2923 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2925 ac_tool_warned=yes ;;
2926 esac
2927     CC=$ac_ct_CC
2928   fi
2929 fi
2930
2931 fi
2932
2933
2934 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2937 See \`config.log' for more details." >&5
2938 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2939 See \`config.log' for more details." >&2;}
2940    { (exit 1); exit 1; }; }; }
2941
2942 # Provide some information about the compiler.
2943 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2944 set X $ac_compile
2945 ac_compiler=$2
2946 { (ac_try="$ac_compiler --version >&5"
2947 case "(($ac_try" in
2948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949   *) ac_try_echo=$ac_try;;
2950 esac
2951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2952 $as_echo "$ac_try_echo") >&5
2953   (eval "$ac_compiler --version >&5") 2>&5
2954   ac_status=$?
2955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); }
2957 { (ac_try="$ac_compiler -v >&5"
2958 case "(($ac_try" in
2959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960   *) ac_try_echo=$ac_try;;
2961 esac
2962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2963 $as_echo "$ac_try_echo") >&5
2964   (eval "$ac_compiler -v >&5") 2>&5
2965   ac_status=$?
2966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967   (exit $ac_status); }
2968 { (ac_try="$ac_compiler -V >&5"
2969 case "(($ac_try" in
2970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971   *) ac_try_echo=$ac_try;;
2972 esac
2973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2974 $as_echo "$ac_try_echo") >&5
2975   (eval "$ac_compiler -V >&5") 2>&5
2976   ac_status=$?
2977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }
2979
2980 cat >conftest.$ac_ext <<_ACEOF
2981 /* confdefs.h.  */
2982 _ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h.  */
2986
2987 int
2988 main ()
2989 {
2990
2991   ;
2992   return 0;
2993 }
2994 _ACEOF
2995 ac_clean_files_save=$ac_clean_files
2996 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2997 # Try to create an executable without -o first, disregard a.out.
2998 # It will help us diagnose broken compilers, and finding out an intuition
2999 # of exeext.
3000 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3001 $as_echo_n "checking for C compiler default output file name... " >&6; }
3002 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3003
3004 # The possible output files:
3005 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3006
3007 ac_rmfiles=
3008 for ac_file in $ac_files
3009 do
3010   case $ac_file in
3011     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3012     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3013   esac
3014 done
3015 rm -f $ac_rmfiles
3016
3017 if { (ac_try="$ac_link_default"
3018 case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3023 $as_echo "$ac_try_echo") >&5
3024   (eval "$ac_link_default") 2>&5
3025   ac_status=$?
3026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); }; then
3028   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3029 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3030 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3031 # so that the user can short-circuit this test for compilers unknown to
3032 # Autoconf.
3033 for ac_file in $ac_files ''
3034 do
3035   test -f "$ac_file" || continue
3036   case $ac_file in
3037     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3038         ;;
3039     [ab].out )
3040         # We found the default executable, but exeext='' is most
3041         # certainly right.
3042         break;;
3043     *.* )
3044         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3045         then :; else
3046            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3047         fi
3048         # We set ac_cv_exeext here because the later test for it is not
3049         # safe: cross compilers may not add the suffix if given an `-o'
3050         # argument, so we may need to know it at that point already.
3051         # Even if this section looks crufty: it has the advantage of
3052         # actually working.
3053         break;;
3054     * )
3055         break;;
3056   esac
3057 done
3058 test "$ac_cv_exeext" = no && ac_cv_exeext=
3059
3060 else
3061   ac_file=''
3062 fi
3063
3064 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3065 $as_echo "$ac_file" >&6; }
3066 if test -z "$ac_file"; then
3067   $as_echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3069
3070 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3073 See \`config.log' for more details." >&5
3074 $as_echo "$as_me: error: C compiler cannot create executables
3075 See \`config.log' for more details." >&2;}
3076    { (exit 77); exit 77; }; }; }
3077 fi
3078
3079 ac_exeext=$ac_cv_exeext
3080
3081 # Check that the compiler produces executables we can run.  If not, either
3082 # the compiler is broken, or we cross compile.
3083 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3084 $as_echo_n "checking whether the C compiler works... " >&6; }
3085 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3086 # If not cross compiling, check that we can run a simple program.
3087 if test "$cross_compiling" != yes; then
3088   if { ac_try='./$ac_file'
3089   { (case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094 $as_echo "$ac_try_echo") >&5
3095   (eval "$ac_try") 2>&5
3096   ac_status=$?
3097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }; }; then
3099     cross_compiling=no
3100   else
3101     if test "$cross_compiling" = maybe; then
3102         cross_compiling=yes
3103     else
3104         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3107 If you meant to cross compile, use \`--host'.
3108 See \`config.log' for more details." >&5
3109 $as_echo "$as_me: error: cannot run C compiled programs.
3110 If you meant to cross compile, use \`--host'.
3111 See \`config.log' for more details." >&2;}
3112    { (exit 1); exit 1; }; }; }
3113     fi
3114   fi
3115 fi
3116 { $as_echo "$as_me:$LINENO: result: yes" >&5
3117 $as_echo "yes" >&6; }
3118
3119 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3120 ac_clean_files=$ac_clean_files_save
3121 # Check that the compiler produces executables we can run.  If not, either
3122 # the compiler is broken, or we cross compile.
3123 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3124 $as_echo_n "checking whether we are cross compiling... " >&6; }
3125 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3126 $as_echo "$cross_compiling" >&6; }
3127
3128 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3129 $as_echo_n "checking for suffix of executables... " >&6; }
3130 if { (ac_try="$ac_link"
3131 case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3136 $as_echo "$ac_try_echo") >&5
3137   (eval "$ac_link") 2>&5
3138   ac_status=$?
3139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); }; then
3141   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3142 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3143 # work properly (i.e., refer to `conftest.exe'), while it won't with
3144 # `rm'.
3145 for ac_file in conftest.exe conftest conftest.*; do
3146   test -f "$ac_file" || continue
3147   case $ac_file in
3148     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3149     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150           break;;
3151     * ) break;;
3152   esac
3153 done
3154 else
3155   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3158 See \`config.log' for more details." >&5
3159 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3160 See \`config.log' for more details." >&2;}
3161    { (exit 1); exit 1; }; }; }
3162 fi
3163
3164 rm -f conftest$ac_cv_exeext
3165 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3166 $as_echo "$ac_cv_exeext" >&6; }
3167
3168 rm -f conftest.$ac_ext
3169 EXEEXT=$ac_cv_exeext
3170 ac_exeext=$EXEEXT
3171 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3172 $as_echo_n "checking for suffix of object files... " >&6; }
3173 if test "${ac_cv_objext+set}" = set; then
3174   $as_echo_n "(cached) " >&6
3175 else
3176   cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h.  */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h.  */
3182
3183 int
3184 main ()
3185 {
3186
3187   ;
3188   return 0;
3189 }
3190 _ACEOF
3191 rm -f conftest.o conftest.obj
3192 if { (ac_try="$ac_compile"
3193 case "(($ac_try" in
3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195   *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3198 $as_echo "$ac_try_echo") >&5
3199   (eval "$ac_compile") 2>&5
3200   ac_status=$?
3201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202   (exit $ac_status); }; then
3203   for ac_file in conftest.o conftest.obj conftest.*; do
3204   test -f "$ac_file" || continue;
3205   case $ac_file in
3206     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3207     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3208        break;;
3209   esac
3210 done
3211 else
3212   $as_echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3214
3215 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3218 See \`config.log' for more details." >&5
3219 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3220 See \`config.log' for more details." >&2;}
3221    { (exit 1); exit 1; }; }; }
3222 fi
3223
3224 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3225 fi
3226 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3227 $as_echo "$ac_cv_objext" >&6; }
3228 OBJEXT=$ac_cv_objext
3229 ac_objext=$OBJEXT
3230 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3231 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3232 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3233   $as_echo_n "(cached) " >&6
3234 else
3235   cat >conftest.$ac_ext <<_ACEOF
3236 /* confdefs.h.  */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h.  */
3241
3242 int
3243 main ()
3244 {
3245 #ifndef __GNUC__
3246        choke me
3247 #endif
3248
3249   ;
3250   return 0;
3251 }
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3255 case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261   (eval "$ac_compile") 2>conftest.er1
3262   ac_status=$?
3263   grep -v '^ *+' conftest.er1 >conftest.err
3264   rm -f conftest.er1
3265   cat conftest.err >&5
3266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267   (exit $ac_status); } && {
3268          test -z "$ac_c_werror_flag" ||
3269          test ! -s conftest.err
3270        } && test -s conftest.$ac_objext; then
3271   ac_compiler_gnu=yes
3272 else
3273   $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276         ac_compiler_gnu=no
3277 fi
3278
3279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3280 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3281
3282 fi
3283 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3284 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3285 if test $ac_compiler_gnu = yes; then
3286   GCC=yes
3287 else
3288   GCC=
3289 fi
3290 ac_test_CFLAGS=${CFLAGS+set}
3291 ac_save_CFLAGS=$CFLAGS
3292 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3293 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3294 if test "${ac_cv_prog_cc_g+set}" = set; then
3295   $as_echo_n "(cached) " >&6
3296 else
3297   ac_save_c_werror_flag=$ac_c_werror_flag
3298    ac_c_werror_flag=yes
3299    ac_cv_prog_cc_g=no
3300    CFLAGS="-g"
3301    cat >conftest.$ac_ext <<_ACEOF
3302 /* confdefs.h.  */
3303 _ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h.  */
3307
3308 int
3309 main ()
3310 {
3311
3312   ;
3313   return 0;
3314 }
3315 _ACEOF
3316 rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3318 case "(($ac_try" in
3319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320   *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3323 $as_echo "$ac_try_echo") >&5
3324   (eval "$ac_compile") 2>conftest.er1
3325   ac_status=$?
3326   grep -v '^ *+' conftest.er1 >conftest.err
3327   rm -f conftest.er1
3328   cat conftest.err >&5
3329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); } && {
3331          test -z "$ac_c_werror_flag" ||
3332          test ! -s conftest.err
3333        } && test -s conftest.$ac_objext; then
3334   ac_cv_prog_cc_g=yes
3335 else
3336   $as_echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339         CFLAGS=""
3340       cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h.  */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h.  */
3346
3347 int
3348 main ()
3349 {
3350
3351   ;
3352   return 0;
3353 }
3354 _ACEOF
3355 rm -f conftest.$ac_objext
3356 if { (ac_try="$ac_compile"
3357 case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3362 $as_echo "$ac_try_echo") >&5
3363   (eval "$ac_compile") 2>conftest.er1
3364   ac_status=$?
3365   grep -v '^ *+' conftest.er1 >conftest.err
3366   rm -f conftest.er1
3367   cat conftest.err >&5
3368   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); } && {
3370          test -z "$ac_c_werror_flag" ||
3371          test ! -s conftest.err
3372        } && test -s conftest.$ac_objext; then
3373   :
3374 else
3375   $as_echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3377
3378         ac_c_werror_flag=$ac_save_c_werror_flag
3379          CFLAGS="-g"
3380          cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h.  */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h.  */
3386
3387 int
3388 main ()
3389 {
3390
3391   ;
3392   return 0;
3393 }
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (ac_try="$ac_compile"
3397 case "(($ac_try" in
3398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399   *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3402 $as_echo "$ac_try_echo") >&5
3403   (eval "$ac_compile") 2>conftest.er1
3404   ac_status=$?
3405   grep -v '^ *+' conftest.er1 >conftest.err
3406   rm -f conftest.er1
3407   cat conftest.err >&5
3408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409   (exit $ac_status); } && {
3410          test -z "$ac_c_werror_flag" ||
3411          test ! -s conftest.err
3412        } && test -s conftest.$ac_objext; then
3413   ac_cv_prog_cc_g=yes
3414 else
3415   $as_echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418
3419 fi
3420
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 fi
3423
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 fi
3426
3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428    ac_c_werror_flag=$ac_save_c_werror_flag
3429 fi
3430 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3431 $as_echo "$ac_cv_prog_cc_g" >&6; }
3432 if test "$ac_test_CFLAGS" = set; then
3433   CFLAGS=$ac_save_CFLAGS
3434 elif test $ac_cv_prog_cc_g = yes; then
3435   if test "$GCC" = yes; then
3436     CFLAGS="-g -O2"
3437   else
3438     CFLAGS="-g"
3439   fi
3440 else
3441   if test "$GCC" = yes; then
3442     CFLAGS="-O2"
3443   else
3444     CFLAGS=
3445   fi
3446 fi
3447 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3448 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3449 if test "${ac_cv_prog_cc_c89+set}" = set; then
3450   $as_echo_n "(cached) " >&6
3451 else
3452   ac_cv_prog_cc_c89=no
3453 ac_save_CC=$CC
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h.  */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h.  */
3460 #include <stdarg.h>
3461 #include <stdio.h>
3462 #include <sys/types.h>
3463 #include <sys/stat.h>
3464 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3465 struct buf { int x; };
3466 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3467 static char *e (p, i)
3468      char **p;
3469      int i;
3470 {
3471   return p[i];
3472 }
3473 static char *f (char * (*g) (char **, int), char **p, ...)
3474 {
3475   char *s;
3476   va_list v;
3477   va_start (v,p);
3478   s = g (p, va_arg (v,int));
3479   va_end (v);
3480   return s;
3481 }
3482
3483 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3484    function prototypes and stuff, but not '\xHH' hex character constants.
3485    These don't provoke an error unfortunately, instead are silently treated
3486    as 'x'.  The following induces an error, until -std is added to get
3487    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3488    array size at least.  It's necessary to write '\x00'==0 to get something
3489    that's true only with -std.  */
3490 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3491
3492 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3493    inside strings and character constants.  */
3494 #define FOO(x) 'x'
3495 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3496
3497 int test (int i, double x);
3498 struct s1 {int (*f) (int a);};
3499 struct s2 {int (*f) (double a);};
3500 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3501 int argc;
3502 char **argv;
3503 int
3504 main ()
3505 {
3506 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3507   ;
3508   return 0;
3509 }
3510 _ACEOF
3511 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3512         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3513 do
3514   CC="$ac_save_CC $ac_arg"
3515   rm -f conftest.$ac_objext
3516 if { (ac_try="$ac_compile"
3517 case "(($ac_try" in
3518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519   *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523   (eval "$ac_compile") 2>conftest.er1
3524   ac_status=$?
3525   grep -v '^ *+' conftest.er1 >conftest.err
3526   rm -f conftest.er1
3527   cat conftest.err >&5
3528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); } && {
3530          test -z "$ac_c_werror_flag" ||
3531          test ! -s conftest.err
3532        } && test -s conftest.$ac_objext; then
3533   ac_cv_prog_cc_c89=$ac_arg
3534 else
3535   $as_echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538
3539 fi
3540
3541 rm -f core conftest.err conftest.$ac_objext
3542   test "x$ac_cv_prog_cc_c89" != "xno" && break
3543 done
3544 rm -f conftest.$ac_ext
3545 CC=$ac_save_CC
3546
3547 fi
3548 # AC_CACHE_VAL
3549 case "x$ac_cv_prog_cc_c89" in
3550   x)
3551     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3552 $as_echo "none needed" >&6; } ;;
3553   xno)
3554     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3555 $as_echo "unsupported" >&6; } ;;
3556   *)
3557     CC="$CC $ac_cv_prog_cc_c89"
3558     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3559 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3560 esac
3561
3562
3563 ac_ext=c
3564 ac_cpp='$CPP $CPPFLAGS'
3565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568 DEPDIR="${am__leading_dot}deps"
3569
3570 ac_config_commands="$ac_config_commands depfiles"
3571
3572
3573 am_make=${MAKE-make}
3574 cat > confinc << 'END'
3575 am__doit:
3576         @echo done
3577 .PHONY: am__doit
3578 END
3579 # If we don't find an include directive, just comment out the code.
3580 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3581 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3582 am__include="#"
3583 am__quote=
3584 _am_result=none
3585 # First try GNU make style include.
3586 echo "include confinc" > confmf
3587 # We grep out `Entering directory' and `Leaving directory'
3588 # messages which can occur if `w' ends up in MAKEFLAGS.
3589 # In particular we don't look at `^make:' because GNU make might
3590 # be invoked under some other name (usually "gmake"), in which
3591 # case it prints its new name instead of `make'.
3592 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3593    am__include=include
3594    am__quote=
3595    _am_result=GNU
3596 fi
3597 # Now try BSD make style include.
3598 if test "$am__include" = "#"; then
3599    echo '.include "confinc"' > confmf
3600    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3601       am__include=.include
3602       am__quote="\""
3603       _am_result=BSD
3604    fi
3605 fi
3606
3607
3608 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3609 $as_echo "$_am_result" >&6; }
3610 rm -f confinc confmf
3611
3612 # Check whether --enable-dependency-tracking was given.
3613 if test "${enable_dependency_tracking+set}" = set; then
3614   enableval=$enable_dependency_tracking;
3615 fi
3616
3617 if test "x$enable_dependency_tracking" != xno; then
3618   am_depcomp="$ac_aux_dir/depcomp"
3619   AMDEPBACKSLASH='\'
3620 fi
3621  if test "x$enable_dependency_tracking" != xno; then
3622   AMDEP_TRUE=
3623   AMDEP_FALSE='#'
3624 else
3625   AMDEP_TRUE='#'
3626   AMDEP_FALSE=
3627 fi
3628
3629
3630
3631 depcc="$CC"   am_compiler_list=
3632
3633 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3634 $as_echo_n "checking dependency style of $depcc... " >&6; }
3635 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3636   $as_echo_n "(cached) " >&6
3637 else
3638   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3639   # We make a subdir and do the tests there.  Otherwise we can end up
3640   # making bogus files that we don't know about and never remove.  For
3641   # instance it was reported that on HP-UX the gcc test will end up
3642   # making a dummy file named `D' -- because `-MD' means `put the output
3643   # in D'.
3644   mkdir conftest.dir
3645   # Copy depcomp to subdir because otherwise we won't find it if we're
3646   # using a relative directory.
3647   cp "$am_depcomp" conftest.dir
3648   cd conftest.dir
3649   # We will build objects and dependencies in a subdirectory because
3650   # it helps to detect inapplicable dependency modes.  For instance
3651   # both Tru64's cc and ICC support -MD to output dependencies as a
3652   # side effect of compilation, but ICC will put the dependencies in
3653   # the current directory while Tru64 will put them in the object
3654   # directory.
3655   mkdir sub
3656
3657   am_cv_CC_dependencies_compiler_type=none
3658   if test "$am_compiler_list" = ""; then
3659      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3660   fi
3661   for depmode in $am_compiler_list; do
3662     # Setup a source with many dependencies, because some compilers
3663     # like to wrap large dependency lists on column 80 (with \), and
3664     # we should not choose a depcomp mode which is confused by this.
3665     #
3666     # We need to recreate these files for each test, as the compiler may
3667     # overwrite some of them when testing with obscure command lines.
3668     # This happens at least with the AIX C compiler.
3669     : > sub/conftest.c
3670     for i in 1 2 3 4 5 6; do
3671       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3672       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3673       # Solaris 8's {/usr,}/bin/sh.
3674       touch sub/conftst$i.h
3675     done
3676     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3677
3678     case $depmode in
3679     nosideeffect)
3680       # after this tag, mechanisms are not by side-effect, so they'll
3681       # only be used when explicitly requested
3682       if test "x$enable_dependency_tracking" = xyes; then
3683         continue
3684       else
3685         break
3686       fi
3687       ;;
3688     none) break ;;
3689     esac
3690     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3691     # mode.  It turns out that the SunPro C++ compiler does not properly
3692     # handle `-M -o', and we need to detect this.
3693     if depmode=$depmode \
3694        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3695        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3696        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3697          >/dev/null 2>conftest.err &&
3698        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3699        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3700        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3701        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3702       # icc doesn't choke on unknown options, it will just issue warnings
3703       # or remarks (even with -Werror).  So we grep stderr for any message
3704       # that says an option was ignored or not supported.
3705       # When given -MP, icc 7.0 and 7.1 complain thusly:
3706       #   icc: Command line warning: ignoring option '-M'; no argument required
3707       # The diagnosis changed in icc 8.0:
3708       #   icc: Command line remark: option '-MP' not supported
3709       if (grep 'ignoring option' conftest.err ||
3710           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3711         am_cv_CC_dependencies_compiler_type=$depmode
3712         break
3713       fi
3714     fi
3715   done
3716
3717   cd ..
3718   rm -rf conftest.dir
3719 else
3720   am_cv_CC_dependencies_compiler_type=none
3721 fi
3722
3723 fi
3724 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3725 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3726 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3727
3728  if
3729   test "x$enable_dependency_tracking" != xno \
3730   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3731   am__fastdepCC_TRUE=
3732   am__fastdepCC_FALSE='#'
3733 else
3734   am__fastdepCC_TRUE='#'
3735   am__fastdepCC_FALSE=
3736 fi
3737
3738
3739 # By default we simply use the C compiler to build assembly code.
3740
3741 test "${CCAS+set}" = set || CCAS=$CC
3742 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3743
3744
3745
3746 depcc="$CCAS"   am_compiler_list=
3747
3748 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3749 $as_echo_n "checking dependency style of $depcc... " >&6; }
3750 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
3751   $as_echo_n "(cached) " >&6
3752 else
3753   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3754   # We make a subdir and do the tests there.  Otherwise we can end up
3755   # making bogus files that we don't know about and never remove.  For
3756   # instance it was reported that on HP-UX the gcc test will end up
3757   # making a dummy file named `D' -- because `-MD' means `put the output
3758   # in D'.
3759   mkdir conftest.dir
3760   # Copy depcomp to subdir because otherwise we won't find it if we're
3761   # using a relative directory.
3762   cp "$am_depcomp" conftest.dir
3763   cd conftest.dir
3764   # We will build objects and dependencies in a subdirectory because
3765   # it helps to detect inapplicable dependency modes.  For instance
3766   # both Tru64's cc and ICC support -MD to output dependencies as a
3767   # side effect of compilation, but ICC will put the dependencies in
3768   # the current directory while Tru64 will put them in the object
3769   # directory.
3770   mkdir sub
3771
3772   am_cv_CCAS_dependencies_compiler_type=none
3773   if test "$am_compiler_list" = ""; then
3774      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3775   fi
3776   for depmode in $am_compiler_list; do
3777     # Setup a source with many dependencies, because some compilers
3778     # like to wrap large dependency lists on column 80 (with \), and
3779     # we should not choose a depcomp mode which is confused by this.
3780     #
3781     # We need to recreate these files for each test, as the compiler may
3782     # overwrite some of them when testing with obscure command lines.
3783     # This happens at least with the AIX C compiler.
3784     : > sub/conftest.c
3785     for i in 1 2 3 4 5 6; do
3786       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3787       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3788       # Solaris 8's {/usr,}/bin/sh.
3789       touch sub/conftst$i.h
3790     done
3791     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3792
3793     case $depmode in
3794     nosideeffect)
3795       # after this tag, mechanisms are not by side-effect, so they'll
3796       # only be used when explicitly requested
3797       if test "x$enable_dependency_tracking" = xyes; then
3798         continue
3799       else
3800         break
3801       fi
3802       ;;
3803     none) break ;;
3804     esac
3805     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3806     # mode.  It turns out that the SunPro C++ compiler does not properly
3807     # handle `-M -o', and we need to detect this.
3808     if depmode=$depmode \
3809        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3810        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3811        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3812          >/dev/null 2>conftest.err &&
3813        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3814        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3815        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3816        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3817       # icc doesn't choke on unknown options, it will just issue warnings
3818       # or remarks (even with -Werror).  So we grep stderr for any message
3819       # that says an option was ignored or not supported.
3820       # When given -MP, icc 7.0 and 7.1 complain thusly:
3821       #   icc: Command line warning: ignoring option '-M'; no argument required
3822       # The diagnosis changed in icc 8.0:
3823       #   icc: Command line remark: option '-MP' not supported
3824       if (grep 'ignoring option' conftest.err ||
3825           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3826         am_cv_CCAS_dependencies_compiler_type=$depmode
3827         break
3828       fi
3829     fi
3830   done
3831
3832   cd ..
3833   rm -rf conftest.dir
3834 else
3835   am_cv_CCAS_dependencies_compiler_type=none
3836 fi
3837
3838 fi
3839 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
3840 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
3841 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
3842
3843  if
3844   test "x$enable_dependency_tracking" != xno \
3845   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
3846   am__fastdepCCAS_TRUE=
3847   am__fastdepCCAS_FALSE='#'
3848 else
3849   am__fastdepCCAS_TRUE='#'
3850   am__fastdepCCAS_FALSE=
3851 fi
3852
3853
3854
3855 if test "$GCC" = yes
3856 then
3857     case "$host" in
3858         *-*-mingw*)
3859             case "$build" in
3860                 *-*-cygwin*)
3861                     CPPFLAGS="$CPPFLAGS -mno-cygwin"
3862                     LDFLAGS="$LDFLAGS -mno-cygwin"
3863                     ;;
3864             esac
3865     esac
3866
3867 fi
3868
3869
3870 case `pwd` in
3871   *\ * | *\     *)
3872     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3873 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3874 esac
3875
3876
3877
3878 macro_version='2.2.6'
3879 macro_revision='1.3012'
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893 ltmain="$ac_aux_dir/ltmain.sh"
3894
3895 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3896 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3897 if test "${ac_cv_path_SED+set}" = set; then
3898   $as_echo_n "(cached) " >&6
3899 else
3900             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3901      for ac_i in 1 2 3 4 5 6 7; do
3902        ac_script="$ac_script$as_nl$ac_script"
3903      done
3904      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3905      $as_unset ac_script || ac_script=
3906      if test -z "$SED"; then
3907   ac_path_SED_found=false
3908   # Loop through the user's path and test for each of PROGNAME-LIST
3909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912   IFS=$as_save_IFS
3913   test -z "$as_dir" && as_dir=.
3914   for ac_prog in sed gsed; do
3915     for ac_exec_ext in '' $ac_executable_extensions; do
3916       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3917       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3918 # Check for GNU ac_path_SED and select it if it is found.
3919   # Check for GNU $ac_path_SED
3920 case `"$ac_path_SED" --version 2>&1` in
3921 *GNU*)
3922   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3923 *)
3924   ac_count=0
3925   $as_echo_n 0123456789 >"conftest.in"
3926   while :
3927   do
3928     cat "conftest.in" "conftest.in" >"conftest.tmp"
3929     mv "conftest.tmp" "conftest.in"
3930     cp "conftest.in" "conftest.nl"
3931     $as_echo '' >> "conftest.nl"
3932     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3933     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3934     ac_count=`expr $ac_count + 1`
3935     if test $ac_count -gt ${ac_path_SED_max-0}; then
3936       # Best one so far, save it but keep looking for a better one
3937       ac_cv_path_SED="$ac_path_SED"
3938       ac_path_SED_max=$ac_count
3939     fi
3940     # 10*(2^10) chars as input seems more than enough
3941     test $ac_count -gt 10 && break
3942   done
3943   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3944 esac
3945
3946       $ac_path_SED_found && break 3
3947     done
3948   done
3949 done
3950 IFS=$as_save_IFS
3951   if test -z "$ac_cv_path_SED"; then
3952     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3953 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3954    { (exit 1); exit 1; }; }
3955   fi
3956 else
3957   ac_cv_path_SED=$SED
3958 fi
3959
3960 fi
3961 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3962 $as_echo "$ac_cv_path_SED" >&6; }
3963  SED="$ac_cv_path_SED"
3964   rm -f conftest.sed
3965
3966 test -z "$SED" && SED=sed
3967 Xsed="$SED -e 1s/^X//"
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3980 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3981 if test "${ac_cv_path_GREP+set}" = set; then
3982   $as_echo_n "(cached) " >&6
3983 else
3984   if test -z "$GREP"; then
3985   ac_path_GREP_found=false
3986   # Loop through the user's path and test for each of PROGNAME-LIST
3987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3989 do
3990   IFS=$as_save_IFS
3991   test -z "$as_dir" && as_dir=.
3992   for ac_prog in grep ggrep; do
3993     for ac_exec_ext in '' $ac_executable_extensions; do
3994       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3995       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3996 # Check for GNU ac_path_GREP and select it if it is found.
3997   # Check for GNU $ac_path_GREP
3998 case `"$ac_path_GREP" --version 2>&1` in
3999 *GNU*)
4000   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4001 *)
4002   ac_count=0
4003   $as_echo_n 0123456789 >"conftest.in"
4004   while :
4005   do
4006     cat "conftest.in" "conftest.in" >"conftest.tmp"
4007     mv "conftest.tmp" "conftest.in"
4008     cp "conftest.in" "conftest.nl"
4009     $as_echo 'GREP' >> "conftest.nl"
4010     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4011     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4012     ac_count=`expr $ac_count + 1`
4013     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4014       # Best one so far, save it but keep looking for a better one
4015       ac_cv_path_GREP="$ac_path_GREP"
4016       ac_path_GREP_max=$ac_count
4017     fi
4018     # 10*(2^10) chars as input seems more than enough
4019     test $ac_count -gt 10 && break
4020   done
4021   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4022 esac
4023
4024       $ac_path_GREP_found && break 3
4025     done
4026   done
4027 done
4028 IFS=$as_save_IFS
4029   if test -z "$ac_cv_path_GREP"; then
4030     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4031 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4032    { (exit 1); exit 1; }; }
4033   fi
4034 else
4035   ac_cv_path_GREP=$GREP
4036 fi
4037
4038 fi
4039 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4040 $as_echo "$ac_cv_path_GREP" >&6; }
4041  GREP="$ac_cv_path_GREP"
4042
4043
4044 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4045 $as_echo_n "checking for egrep... " >&6; }
4046 if test "${ac_cv_path_EGREP+set}" = set; then
4047   $as_echo_n "(cached) " >&6
4048 else
4049   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4050    then ac_cv_path_EGREP="$GREP -E"
4051    else
4052      if test -z "$EGREP"; then
4053   ac_path_EGREP_found=false
4054   # Loop through the user's path and test for each of PROGNAME-LIST
4055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4057 do
4058   IFS=$as_save_IFS
4059   test -z "$as_dir" && as_dir=.
4060   for ac_prog in egrep; do
4061     for ac_exec_ext in '' $ac_executable_extensions; do
4062       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4063       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4064 # Check for GNU ac_path_EGREP and select it if it is found.
4065   # Check for GNU $ac_path_EGREP
4066 case `"$ac_path_EGREP" --version 2>&1` in
4067 *GNU*)
4068   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4069 *)
4070   ac_count=0
4071   $as_echo_n 0123456789 >"conftest.in"
4072   while :
4073   do
4074     cat "conftest.in" "conftest.in" >"conftest.tmp"
4075     mv "conftest.tmp" "conftest.in"
4076     cp "conftest.in" "conftest.nl"
4077     $as_echo 'EGREP' >> "conftest.nl"
4078     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4079     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4080     ac_count=`expr $ac_count + 1`
4081     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4082       # Best one so far, save it but keep looking for a better one
4083       ac_cv_path_EGREP="$ac_path_EGREP"
4084       ac_path_EGREP_max=$ac_count
4085     fi
4086     # 10*(2^10) chars as input seems more than enough
4087     test $ac_count -gt 10 && break
4088   done
4089   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4090 esac
4091
4092       $ac_path_EGREP_found && break 3
4093     done
4094   done
4095 done
4096 IFS=$as_save_IFS
4097   if test -z "$ac_cv_path_EGREP"; then
4098     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4099 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4100    { (exit 1); exit 1; }; }
4101   fi
4102 else
4103   ac_cv_path_EGREP=$EGREP
4104 fi
4105
4106    fi
4107 fi
4108 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4109 $as_echo "$ac_cv_path_EGREP" >&6; }
4110  EGREP="$ac_cv_path_EGREP"
4111
4112
4113 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4114 $as_echo_n "checking for fgrep... " >&6; }
4115 if test "${ac_cv_path_FGREP+set}" = set; then
4116   $as_echo_n "(cached) " >&6
4117 else
4118   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4119    then ac_cv_path_FGREP="$GREP -F"
4120    else
4121      if test -z "$FGREP"; then
4122   ac_path_FGREP_found=false
4123   # Loop through the user's path and test for each of PROGNAME-LIST
4124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4126 do
4127   IFS=$as_save_IFS
4128   test -z "$as_dir" && as_dir=.
4129   for ac_prog in fgrep; do
4130     for ac_exec_ext in '' $ac_executable_extensions; do
4131       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4132       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4133 # Check for GNU ac_path_FGREP and select it if it is found.
4134   # Check for GNU $ac_path_FGREP
4135 case `"$ac_path_FGREP" --version 2>&1` in
4136 *GNU*)
4137   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4138 *)
4139   ac_count=0
4140   $as_echo_n 0123456789 >"conftest.in"
4141   while :
4142   do
4143     cat "conftest.in" "conftest.in" >"conftest.tmp"
4144     mv "conftest.tmp" "conftest.in"
4145     cp "conftest.in" "conftest.nl"
4146     $as_echo 'FGREP' >> "conftest.nl"
4147     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4148     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4149     ac_count=`expr $ac_count + 1`
4150     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4151       # Best one so far, save it but keep looking for a better one
4152       ac_cv_path_FGREP="$ac_path_FGREP"
4153       ac_path_FGREP_max=$ac_count
4154     fi
4155     # 10*(2^10) chars as input seems more than enough
4156     test $ac_count -gt 10 && break
4157   done
4158   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4159 esac
4160
4161       $ac_path_FGREP_found && break 3
4162     done
4163   done
4164 done
4165 IFS=$as_save_IFS
4166   if test -z "$ac_cv_path_FGREP"; then
4167     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4168 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4169    { (exit 1); exit 1; }; }
4170   fi
4171 else
4172   ac_cv_path_FGREP=$FGREP
4173 fi
4174
4175    fi
4176 fi
4177 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4178 $as_echo "$ac_cv_path_FGREP" >&6; }
4179  FGREP="$ac_cv_path_FGREP"
4180
4181
4182 test -z "$GREP" && GREP=grep
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202 # Check whether --with-gnu-ld was given.
4203 if test "${with_gnu_ld+set}" = set; then
4204   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4205 else
4206   with_gnu_ld=no
4207 fi
4208
4209 ac_prog=ld
4210 if test "$GCC" = yes; then
4211   # Check if gcc -print-prog-name=ld gives a path.
4212   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4213 $as_echo_n "checking for ld used by $CC... " >&6; }
4214   case $host in
4215   *-*-mingw*)
4216     # gcc leaves a trailing carriage return which upsets mingw
4217     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4218   *)
4219     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4220   esac
4221   case $ac_prog in
4222     # Accept absolute paths.
4223     [\\/]* | ?:[\\/]*)
4224       re_direlt='/[^/][^/]*/\.\./'
4225       # Canonicalize the pathname of ld
4226       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4227       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4228         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4229       done
4230       test -z "$LD" && LD="$ac_prog"
4231       ;;
4232   "")
4233     # If it fails, then pretend we aren't using GCC.
4234     ac_prog=ld
4235     ;;
4236   *)
4237     # If it is relative, then search for the first ld in PATH.
4238     with_gnu_ld=unknown
4239     ;;
4240   esac
4241 elif test "$with_gnu_ld" = yes; then
4242   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4243 $as_echo_n "checking for GNU ld... " >&6; }
4244 else
4245   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4246 $as_echo_n "checking for non-GNU ld... " >&6; }
4247 fi
4248 if test "${lt_cv_path_LD+set}" = set; then
4249   $as_echo_n "(cached) " >&6
4250 else
4251   if test -z "$LD"; then
4252   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4253   for ac_dir in $PATH; do
4254     IFS="$lt_save_ifs"
4255     test -z "$ac_dir" && ac_dir=.
4256     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4257       lt_cv_path_LD="$ac_dir/$ac_prog"
4258       # Check to see if the program is GNU ld.  I'd rather use --version,
4259       # but apparently some variants of GNU ld only accept -v.
4260       # Break only if it was the GNU/non-GNU ld that we prefer.
4261       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4262       *GNU* | *'with BFD'*)
4263         test "$with_gnu_ld" != no && break
4264         ;;
4265       *)
4266         test "$with_gnu_ld" != yes && break
4267         ;;
4268       esac
4269     fi
4270   done
4271   IFS="$lt_save_ifs"
4272 else
4273   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4274 fi
4275 fi
4276
4277 LD="$lt_cv_path_LD"
4278 if test -n "$LD"; then
4279   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4280 $as_echo "$LD" >&6; }
4281 else
4282   { $as_echo "$as_me:$LINENO: result: no" >&5
4283 $as_echo "no" >&6; }
4284 fi
4285 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4286 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4287    { (exit 1); exit 1; }; }
4288 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4289 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4290 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4291   $as_echo_n "(cached) " >&6
4292 else
4293   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4294 case `$LD -v 2>&1 </dev/null` in
4295 *GNU* | *'with BFD'*)
4296   lt_cv_prog_gnu_ld=yes
4297   ;;
4298 *)
4299   lt_cv_prog_gnu_ld=no
4300   ;;
4301 esac
4302 fi
4303 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4304 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4305 with_gnu_ld=$lt_cv_prog_gnu_ld
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4316 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4317 if test "${lt_cv_path_NM+set}" = set; then
4318   $as_echo_n "(cached) " >&6
4319 else
4320   if test -n "$NM"; then
4321   # Let the user override the test.
4322   lt_cv_path_NM="$NM"
4323 else
4324   lt_nm_to_check="${ac_tool_prefix}nm"
4325   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4326     lt_nm_to_check="$lt_nm_to_check nm"
4327   fi
4328   for lt_tmp_nm in $lt_nm_to_check; do
4329     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4330     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4331       IFS="$lt_save_ifs"
4332       test -z "$ac_dir" && ac_dir=.
4333       tmp_nm="$ac_dir/$lt_tmp_nm"
4334       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4335         # Check to see if the nm accepts a BSD-compat flag.
4336         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4337         #   nm: unknown option "B" ignored
4338         # Tru64's nm complains that /dev/null is an invalid object file
4339         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4340         */dev/null* | *'Invalid file or object type'*)
4341           lt_cv_path_NM="$tmp_nm -B"
4342           break
4343           ;;
4344         *)
4345           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4346           */dev/null*)
4347             lt_cv_path_NM="$tmp_nm -p"
4348             break
4349             ;;
4350           *)
4351             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4352             continue # so that we can try to find one that supports BSD flags
4353             ;;
4354           esac
4355           ;;
4356         esac
4357       fi
4358     done
4359     IFS="$lt_save_ifs"
4360   done
4361   : ${lt_cv_path_NM=no}
4362 fi
4363 fi
4364 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4365 $as_echo "$lt_cv_path_NM" >&6; }
4366 if test "$lt_cv_path_NM" != "no"; then
4367   NM="$lt_cv_path_NM"
4368 else
4369   # Didn't find any BSD compatible name lister, look for dumpbin.
4370   if test -n "$ac_tool_prefix"; then
4371   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4372   do
4373     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4375 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4378   $as_echo_n "(cached) " >&6
4379 else
4380   if test -n "$DUMPBIN"; then
4381   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386   IFS=$as_save_IFS
4387   test -z "$as_dir" && as_dir=.
4388   for ac_exec_ext in '' $ac_executable_extensions; do
4389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4391     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392     break 2
4393   fi
4394 done
4395 done
4396 IFS=$as_save_IFS
4397
4398 fi
4399 fi
4400 DUMPBIN=$ac_cv_prog_DUMPBIN
4401 if test -n "$DUMPBIN"; then
4402   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4403 $as_echo "$DUMPBIN" >&6; }
4404 else
4405   { $as_echo "$as_me:$LINENO: result: no" >&5
4406 $as_echo "no" >&6; }
4407 fi
4408
4409
4410     test -n "$DUMPBIN" && break
4411   done
4412 fi
4413 if test -z "$DUMPBIN"; then
4414   ac_ct_DUMPBIN=$DUMPBIN
4415   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4416 do
4417   # Extract the first word of "$ac_prog", so it can be a program name with args.
4418 set dummy $ac_prog; ac_word=$2
4419 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 $as_echo_n "checking for $ac_word... " >&6; }
4421 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4422   $as_echo_n "(cached) " >&6
4423 else
4424   if test -n "$ac_ct_DUMPBIN"; then
4425   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4426 else
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4429 do
4430   IFS=$as_save_IFS
4431   test -z "$as_dir" && as_dir=.
4432   for ac_exec_ext in '' $ac_executable_extensions; do
4433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4435     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436     break 2
4437   fi
4438 done
4439 done
4440 IFS=$as_save_IFS
4441
4442 fi
4443 fi
4444 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4445 if test -n "$ac_ct_DUMPBIN"; then
4446   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4447 $as_echo "$ac_ct_DUMPBIN" >&6; }
4448 else
4449   { $as_echo "$as_me:$LINENO: result: no" >&5
4450 $as_echo "no" >&6; }
4451 fi
4452
4453
4454   test -n "$ac_ct_DUMPBIN" && break
4455 done
4456
4457   if test "x$ac_ct_DUMPBIN" = x; then
4458     DUMPBIN=":"
4459   else
4460     case $cross_compiling:$ac_tool_warned in
4461 yes:)
4462 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4464 ac_tool_warned=yes ;;
4465 esac
4466     DUMPBIN=$ac_ct_DUMPBIN
4467   fi
4468 fi
4469
4470
4471   if test "$DUMPBIN" != ":"; then
4472     NM="$DUMPBIN"
4473   fi
4474 fi
4475 test -z "$NM" && NM=nm
4476
4477
4478
4479
4480
4481
4482 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4483 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4484 if test "${lt_cv_nm_interface+set}" = set; then
4485   $as_echo_n "(cached) " >&6
4486 else
4487   lt_cv_nm_interface="BSD nm"
4488   echo "int some_variable = 0;" > conftest.$ac_ext
4489   (eval echo "\"\$as_me:4489: $ac_compile\"" >&5)
4490   (eval "$ac_compile" 2>conftest.err)
4491   cat conftest.err >&5
4492   (eval echo "\"\$as_me:4492: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4493   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4494   cat conftest.err >&5
4495   (eval echo "\"\$as_me:4495: output\"" >&5)
4496   cat conftest.out >&5
4497   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4498     lt_cv_nm_interface="MS dumpbin"
4499   fi
4500   rm -f conftest*
4501 fi
4502 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4503 $as_echo "$lt_cv_nm_interface" >&6; }
4504
4505 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4506 $as_echo_n "checking whether ln -s works... " >&6; }
4507 LN_S=$as_ln_s
4508 if test "$LN_S" = "ln -s"; then
4509   { $as_echo "$as_me:$LINENO: result: yes" >&5
4510 $as_echo "yes" >&6; }
4511 else
4512   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4513 $as_echo "no, using $LN_S" >&6; }
4514 fi
4515
4516 # find the maximum length of command line arguments
4517 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4518 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4519 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4520   $as_echo_n "(cached) " >&6
4521 else
4522     i=0
4523   teststring="ABCD"
4524
4525   case $build_os in
4526   msdosdjgpp*)
4527     # On DJGPP, this test can blow up pretty badly due to problems in libc
4528     # (any single argument exceeding 2000 bytes causes a buffer overrun
4529     # during glob expansion).  Even if it were fixed, the result of this
4530     # check would be larger than it should be.
4531     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4532     ;;
4533
4534   gnu*)
4535     # Under GNU Hurd, this test is not required because there is
4536     # no limit to the length of command line arguments.
4537     # Libtool will interpret -1 as no limit whatsoever
4538     lt_cv_sys_max_cmd_len=-1;
4539     ;;
4540
4541   cygwin* | mingw* | cegcc*)
4542     # On Win9x/ME, this test blows up -- it succeeds, but takes
4543     # about 5 minutes as the teststring grows exponentially.
4544     # Worse, since 9x/ME are not pre-emptively multitasking,
4545     # you end up with a "frozen" computer, even though with patience
4546     # the test eventually succeeds (with a max line length of 256k).
4547     # Instead, let's just punt: use the minimum linelength reported by
4548     # all of the supported platforms: 8192 (on NT/2K/XP).
4549     lt_cv_sys_max_cmd_len=8192;
4550     ;;
4551
4552   amigaos*)
4553     # On AmigaOS with pdksh, this test takes hours, literally.
4554     # So we just punt and use a minimum line length of 8192.
4555     lt_cv_sys_max_cmd_len=8192;
4556     ;;
4557
4558   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4559     # This has been around since 386BSD, at least.  Likely further.
4560     if test -x /sbin/sysctl; then
4561       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4562     elif test -x /usr/sbin/sysctl; then
4563       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4564     else
4565       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4566     fi
4567     # And add a safety zone
4568     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4569     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4570     ;;
4571
4572   interix*)
4573     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4574     lt_cv_sys_max_cmd_len=196608
4575     ;;
4576
4577   osf*)
4578     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4579     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4580     # nice to cause kernel panics so lets avoid the loop below.
4581     # First set a reasonable default.
4582     lt_cv_sys_max_cmd_len=16384
4583     #
4584     if test -x /sbin/sysconfig; then
4585       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4586         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4587       esac
4588     fi
4589     ;;
4590   sco3.2v5*)
4591     lt_cv_sys_max_cmd_len=102400
4592     ;;
4593   sysv5* | sco5v6* | sysv4.2uw2*)
4594     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4595     if test -n "$kargmax"; then
4596       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4597     else
4598       lt_cv_sys_max_cmd_len=32768
4599     fi
4600     ;;
4601   *)
4602     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4603     if test -n "$lt_cv_sys_max_cmd_len"; then
4604       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4605       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4606     else
4607       # Make teststring a little bigger before we do anything with it.
4608       # a 1K string should be a reasonable start.
4609       for i in 1 2 3 4 5 6 7 8 ; do
4610         teststring=$teststring$teststring
4611       done
4612       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4613       # If test is not a shell built-in, we'll probably end up computing a
4614       # maximum length that is only half of the actual maximum length, but
4615       # we can't tell.
4616       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4617                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4618               test $i != 17 # 1/2 MB should be enough
4619       do
4620         i=`expr $i + 1`
4621         teststring=$teststring$teststring
4622       done
4623       # Only check the string length outside the loop.
4624       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4625       teststring=
4626       # Add a significant safety factor because C++ compilers can tack on
4627       # massive amounts of additional arguments before passing them to the
4628       # linker.  It appears as though 1/2 is a usable value.
4629       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4630     fi
4631     ;;
4632   esac
4633
4634 fi
4635
4636 if test -n $lt_cv_sys_max_cmd_len ; then
4637   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4638 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4639 else
4640   { $as_echo "$as_me:$LINENO: result: none" >&5
4641 $as_echo "none" >&6; }
4642 fi
4643 max_cmd_len=$lt_cv_sys_max_cmd_len
4644
4645
4646
4647
4648
4649
4650 : ${CP="cp -f"}
4651 : ${MV="mv -f"}
4652 : ${RM="rm -f"}
4653
4654 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4655 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4656 # Try some XSI features
4657 xsi_shell=no
4658 ( _lt_dummy="a/b/c"
4659   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4660       = c,a/b,, \
4661     && eval 'test $(( 1 + 1 )) -eq 2 \
4662     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4663   && xsi_shell=yes
4664 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4665 $as_echo "$xsi_shell" >&6; }
4666
4667
4668 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4669 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4670 lt_shell_append=no
4671 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4672     >/dev/null 2>&1 \
4673   && lt_shell_append=yes
4674 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4675 $as_echo "$lt_shell_append" >&6; }
4676
4677
4678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4679   lt_unset=unset
4680 else
4681   lt_unset=false
4682 fi
4683
4684
4685
4686
4687
4688 # test EBCDIC or ASCII
4689 case `echo X|tr X '\101'` in
4690  A) # ASCII based system
4691     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4692   lt_SP2NL='tr \040 \012'
4693   lt_NL2SP='tr \015\012 \040\040'
4694   ;;
4695  *) # EBCDIC based system
4696   lt_SP2NL='tr \100 \n'
4697   lt_NL2SP='tr \r\n \100\100'
4698   ;;
4699 esac
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4710 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4711 if test "${lt_cv_ld_reload_flag+set}" = set; then
4712   $as_echo_n "(cached) " >&6
4713 else
4714   lt_cv_ld_reload_flag='-r'
4715 fi
4716 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4717 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4718 reload_flag=$lt_cv_ld_reload_flag
4719 case $reload_flag in
4720 "" | " "*) ;;
4721 *) reload_flag=" $reload_flag" ;;
4722 esac
4723 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4724 case $host_os in
4725   darwin*)
4726     if test "$GCC" = yes; then
4727       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4728     else
4729       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4730     fi
4731     ;;
4732 esac
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742 if test -n "$ac_tool_prefix"; then
4743   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4744 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4745 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4748   $as_echo_n "(cached) " >&6
4749 else
4750   if test -n "$OBJDUMP"; then
4751   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
4756   IFS=$as_save_IFS
4757   test -z "$as_dir" && as_dir=.
4758   for ac_exec_ext in '' $ac_executable_extensions; do
4759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4761     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762     break 2
4763   fi
4764 done
4765 done
4766 IFS=$as_save_IFS
4767
4768 fi
4769 fi
4770 OBJDUMP=$ac_cv_prog_OBJDUMP
4771 if test -n "$OBJDUMP"; then
4772   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4773 $as_echo "$OBJDUMP" >&6; }
4774 else
4775   { $as_echo "$as_me:$LINENO: result: no" >&5
4776 $as_echo "no" >&6; }
4777 fi
4778
4779
4780 fi
4781 if test -z "$ac_cv_prog_OBJDUMP"; then
4782   ac_ct_OBJDUMP=$OBJDUMP
4783   # Extract the first word of "objdump", so it can be a program name with args.
4784 set dummy objdump; ac_word=$2
4785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4788   $as_echo_n "(cached) " >&6
4789 else
4790   if test -n "$ac_ct_OBJDUMP"; then
4791   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4792 else
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4795 do
4796   IFS=$as_save_IFS
4797   test -z "$as_dir" && as_dir=.
4798   for ac_exec_ext in '' $ac_executable_extensions; do
4799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4801     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802     break 2
4803   fi
4804 done
4805 done
4806 IFS=$as_save_IFS
4807
4808 fi
4809 fi
4810 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4811 if test -n "$ac_ct_OBJDUMP"; then
4812   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4813 $as_echo "$ac_ct_OBJDUMP" >&6; }
4814 else
4815   { $as_echo "$as_me:$LINENO: result: no" >&5
4816 $as_echo "no" >&6; }
4817 fi
4818
4819   if test "x$ac_ct_OBJDUMP" = x; then
4820     OBJDUMP="false"
4821   else
4822     case $cross_compiling:$ac_tool_warned in
4823 yes:)
4824 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826 ac_tool_warned=yes ;;
4827 esac
4828     OBJDUMP=$ac_ct_OBJDUMP
4829   fi
4830 else
4831   OBJDUMP="$ac_cv_prog_OBJDUMP"
4832 fi
4833
4834 test -z "$OBJDUMP" && OBJDUMP=objdump
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4845 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4846 if test "${lt_cv_deplibs_check_method+set}" = set; then
4847   $as_echo_n "(cached) " >&6
4848 else
4849   lt_cv_file_magic_cmd='$MAGIC_CMD'
4850 lt_cv_file_magic_test_file=
4851 lt_cv_deplibs_check_method='unknown'
4852 # Need to set the preceding variable on all platforms that support
4853 # interlibrary dependencies.
4854 # 'none' -- dependencies not supported.
4855 # `unknown' -- same as none, but documents that we really don't know.
4856 # 'pass_all' -- all dependencies passed with no checks.
4857 # 'test_compile' -- check by making test program.
4858 # 'file_magic [[regex]]' -- check by looking for files in library path
4859 # which responds to the $file_magic_cmd with a given extended regex.
4860 # If you have `file' or equivalent on your system and you're not sure
4861 # whether `pass_all' will *always* work, you probably want this one.
4862
4863 case $host_os in
4864 aix[4-9]*)
4865   lt_cv_deplibs_check_method=pass_all
4866   ;;
4867
4868 beos*)
4869   lt_cv_deplibs_check_method=pass_all
4870   ;;
4871
4872 bsdi[45]*)
4873   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4874   lt_cv_file_magic_cmd='/usr/bin/file -L'
4875   lt_cv_file_magic_test_file=/shlib/libc.so
4876   ;;
4877
4878 cygwin*)
4879   # func_win32_libid is a shell function defined in ltmain.sh
4880   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4881   lt_cv_file_magic_cmd='func_win32_libid'
4882   ;;
4883
4884 mingw* | pw32*)
4885   # Base MSYS/MinGW do not provide the 'file' command needed by
4886   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4887   # unless we find 'file', for example because we are cross-compiling.
4888   if ( file / ) >/dev/null 2>&1; then
4889     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4890     lt_cv_file_magic_cmd='func_win32_libid'
4891   else
4892     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4893     lt_cv_file_magic_cmd='$OBJDUMP -f'
4894   fi
4895   ;;
4896
4897 cegcc)
4898   # use the weaker test based on 'objdump'. See mingw*.
4899   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4900   lt_cv_file_magic_cmd='$OBJDUMP -f'
4901   ;;
4902
4903 darwin* | rhapsody*)
4904   lt_cv_deplibs_check_method=pass_all
4905   ;;
4906
4907 freebsd* | dragonfly*)
4908   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4909     case $host_cpu in
4910     i*86 )
4911       # Not sure whether the presence of OpenBSD here was a mistake.
4912       # Let's accept both of them until this is cleared up.
4913       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4914       lt_cv_file_magic_cmd=/usr/bin/file
4915       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4916       ;;
4917     esac
4918   else
4919     lt_cv_deplibs_check_method=pass_all
4920   fi
4921   ;;
4922
4923 gnu*)
4924   lt_cv_deplibs_check_method=pass_all
4925   ;;
4926
4927 hpux10.20* | hpux11*)
4928   lt_cv_file_magic_cmd=/usr/bin/file
4929   case $host_cpu in
4930   ia64*)
4931     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4932     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4933     ;;
4934   hppa*64*)
4935     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]'
4936     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4937     ;;
4938   *)
4939     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4940     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4941     ;;
4942   esac
4943   ;;
4944
4945 interix[3-9]*)
4946   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4947   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4948   ;;
4949
4950 irix5* | irix6* | nonstopux*)
4951   case $LD in
4952   *-32|*"-32 ") libmagic=32-bit;;
4953   *-n32|*"-n32 ") libmagic=N32;;
4954   *-64|*"-64 ") libmagic=64-bit;;
4955   *) libmagic=never-match;;
4956   esac
4957   lt_cv_deplibs_check_method=pass_all
4958   ;;
4959
4960 # This must be Linux ELF.
4961 linux* | k*bsd*-gnu)
4962   lt_cv_deplibs_check_method=pass_all
4963   ;;
4964
4965 netbsd* | netbsdelf*-gnu)
4966   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4967     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4968   else
4969     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4970   fi
4971   ;;
4972
4973 newos6*)
4974   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4975   lt_cv_file_magic_cmd=/usr/bin/file
4976   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4977   ;;
4978
4979 *nto* | *qnx*)
4980   lt_cv_deplibs_check_method=pass_all
4981   ;;
4982
4983 openbsd*)
4984   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4985     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4986   else
4987     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4988   fi
4989   ;;
4990
4991 osf3* | osf4* | osf5*)
4992   lt_cv_deplibs_check_method=pass_all
4993   ;;
4994
4995 rdos*)
4996   lt_cv_deplibs_check_method=pass_all
4997   ;;
4998
4999 solaris*)
5000   lt_cv_deplibs_check_method=pass_all
5001   ;;
5002
5003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5004   lt_cv_deplibs_check_method=pass_all
5005   ;;
5006
5007 sysv4 | sysv4.3*)
5008   case $host_vendor in
5009   motorola)
5010     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]'
5011     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5012     ;;
5013   ncr)
5014     lt_cv_deplibs_check_method=pass_all
5015     ;;
5016   sequent)
5017     lt_cv_file_magic_cmd='/bin/file'
5018     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5019     ;;
5020   sni)
5021     lt_cv_file_magic_cmd='/bin/file'
5022     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5023     lt_cv_file_magic_test_file=/lib/libc.so
5024     ;;
5025   siemens)
5026     lt_cv_deplibs_check_method=pass_all
5027     ;;
5028   pc)
5029     lt_cv_deplibs_check_method=pass_all
5030     ;;
5031   esac
5032   ;;
5033
5034 tpf*)
5035   lt_cv_deplibs_check_method=pass_all
5036   ;;
5037 esac
5038
5039 fi
5040 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5041 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5042 file_magic_cmd=$lt_cv_file_magic_cmd
5043 deplibs_check_method=$lt_cv_deplibs_check_method
5044 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057 if test -n "$ac_tool_prefix"; then
5058   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5059 set dummy ${ac_tool_prefix}ar; ac_word=$2
5060 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if test "${ac_cv_prog_AR+set}" = set; then
5063   $as_echo_n "(cached) " >&6
5064 else
5065   if test -n "$AR"; then
5066   ac_cv_prog_AR="$AR" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071   IFS=$as_save_IFS
5072   test -z "$as_dir" && as_dir=.
5073   for ac_exec_ext in '' $ac_executable_extensions; do
5074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075     ac_cv_prog_AR="${ac_tool_prefix}ar"
5076     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077     break 2
5078   fi
5079 done
5080 done
5081 IFS=$as_save_IFS
5082
5083 fi
5084 fi
5085 AR=$ac_cv_prog_AR
5086 if test -n "$AR"; then
5087   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5088 $as_echo "$AR" >&6; }
5089 else
5090   { $as_echo "$as_me:$LINENO: result: no" >&5
5091 $as_echo "no" >&6; }
5092 fi
5093
5094
5095 fi
5096 if test -z "$ac_cv_prog_AR"; then
5097   ac_ct_AR=$AR
5098   # Extract the first word of "ar", so it can be a program name with args.
5099 set dummy ar; ac_word=$2
5100 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5103   $as_echo_n "(cached) " >&6
5104 else
5105   if test -n "$ac_ct_AR"; then
5106   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113   for ac_exec_ext in '' $ac_executable_extensions; do
5114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115     ac_cv_prog_ac_ct_AR="ar"
5116     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117     break 2
5118   fi
5119 done
5120 done
5121 IFS=$as_save_IFS
5122
5123 fi
5124 fi
5125 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5126 if test -n "$ac_ct_AR"; then
5127   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5128 $as_echo "$ac_ct_AR" >&6; }
5129 else
5130   { $as_echo "$as_me:$LINENO: result: no" >&5
5131 $as_echo "no" >&6; }
5132 fi
5133
5134   if test "x$ac_ct_AR" = x; then
5135     AR="false"
5136   else
5137     case $cross_compiling:$ac_tool_warned in
5138 yes:)
5139 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5141 ac_tool_warned=yes ;;
5142 esac
5143     AR=$ac_ct_AR
5144   fi
5145 else
5146   AR="$ac_cv_prog_AR"
5147 fi
5148
5149 test -z "$AR" && AR=ar
5150 test -z "$AR_FLAGS" && AR_FLAGS=cru
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162 if test -n "$ac_tool_prefix"; then
5163   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5164 set dummy ${ac_tool_prefix}strip; ac_word=$2
5165 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if test "${ac_cv_prog_STRIP+set}" = set; then
5168   $as_echo_n "(cached) " >&6
5169 else
5170   if test -n "$STRIP"; then
5171   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176   IFS=$as_save_IFS
5177   test -z "$as_dir" && as_dir=.
5178   for ac_exec_ext in '' $ac_executable_extensions; do
5179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5181     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182     break 2
5183   fi
5184 done
5185 done
5186 IFS=$as_save_IFS
5187
5188 fi
5189 fi
5190 STRIP=$ac_cv_prog_STRIP
5191 if test -n "$STRIP"; then
5192   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5193 $as_echo "$STRIP" >&6; }
5194 else
5195   { $as_echo "$as_me:$LINENO: result: no" >&5
5196 $as_echo "no" >&6; }
5197 fi
5198
5199
5200 fi
5201 if test -z "$ac_cv_prog_STRIP"; then
5202   ac_ct_STRIP=$STRIP
5203   # Extract the first word of "strip", so it can be a program name with args.
5204 set dummy strip; ac_word=$2
5205 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5208   $as_echo_n "(cached) " >&6
5209 else
5210   if test -n "$ac_ct_STRIP"; then
5211   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216   IFS=$as_save_IFS
5217   test -z "$as_dir" && as_dir=.
5218   for ac_exec_ext in '' $ac_executable_extensions; do
5219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220     ac_cv_prog_ac_ct_STRIP="strip"
5221     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222     break 2
5223   fi
5224 done
5225 done
5226 IFS=$as_save_IFS
5227
5228 fi
5229 fi
5230 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5231 if test -n "$ac_ct_STRIP"; then
5232   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5233 $as_echo "$ac_ct_STRIP" >&6; }
5234 else
5235   { $as_echo "$as_me:$LINENO: result: no" >&5
5236 $as_echo "no" >&6; }
5237 fi
5238
5239   if test "x$ac_ct_STRIP" = x; then
5240     STRIP=":"
5241   else
5242     case $cross_compiling:$ac_tool_warned in
5243 yes:)
5244 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5246 ac_tool_warned=yes ;;
5247 esac
5248     STRIP=$ac_ct_STRIP
5249   fi
5250 else
5251   STRIP="$ac_cv_prog_STRIP"
5252 fi
5253
5254 test -z "$STRIP" && STRIP=:
5255
5256
5257
5258
5259
5260
5261 if test -n "$ac_tool_prefix"; then
5262   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5263 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5264 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5265 $as_echo_n "checking for $ac_word... " >&6; }
5266 if test "${ac_cv_prog_RANLIB+set}" = set; then
5267   $as_echo_n "(cached) " >&6
5268 else
5269   if test -n "$RANLIB"; then
5270   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5271 else
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5274 do
5275   IFS=$as_save_IFS
5276   test -z "$as_dir" && as_dir=.
5277   for ac_exec_ext in '' $ac_executable_extensions; do
5278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5279     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5280     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5281     break 2
5282   fi
5283 done
5284 done
5285 IFS=$as_save_IFS
5286
5287 fi
5288 fi
5289 RANLIB=$ac_cv_prog_RANLIB
5290 if test -n "$RANLIB"; then
5291   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5292 $as_echo "$RANLIB" >&6; }
5293 else
5294   { $as_echo "$as_me:$LINENO: result: no" >&5
5295 $as_echo "no" >&6; }
5296 fi
5297
5298
5299 fi
5300 if test -z "$ac_cv_prog_RANLIB"; then
5301   ac_ct_RANLIB=$RANLIB
5302   # Extract the first word of "ranlib", so it can be a program name with args.
5303 set dummy ranlib; ac_word=$2
5304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5307   $as_echo_n "(cached) " >&6
5308 else
5309   if test -n "$ac_ct_RANLIB"; then
5310   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5311 else
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5314 do
5315   IFS=$as_save_IFS
5316   test -z "$as_dir" && as_dir=.
5317   for ac_exec_ext in '' $ac_executable_extensions; do
5318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5319     ac_cv_prog_ac_ct_RANLIB="ranlib"
5320     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5321     break 2
5322   fi
5323 done
5324 done
5325 IFS=$as_save_IFS
5326
5327 fi
5328 fi
5329 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5330 if test -n "$ac_ct_RANLIB"; then
5331   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5332 $as_echo "$ac_ct_RANLIB" >&6; }
5333 else
5334   { $as_echo "$as_me:$LINENO: result: no" >&5
5335 $as_echo "no" >&6; }
5336 fi
5337
5338   if test "x$ac_ct_RANLIB" = x; then
5339     RANLIB=":"
5340   else
5341     case $cross_compiling:$ac_tool_warned in
5342 yes:)
5343 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5345 ac_tool_warned=yes ;;
5346 esac
5347     RANLIB=$ac_ct_RANLIB
5348   fi
5349 else
5350   RANLIB="$ac_cv_prog_RANLIB"
5351 fi
5352
5353 test -z "$RANLIB" && RANLIB=:
5354
5355
5356
5357
5358
5359
5360 # Determine commands to create old-style static archives.
5361 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5362 old_postinstall_cmds='chmod 644 $oldlib'
5363 old_postuninstall_cmds=
5364
5365 if test -n "$RANLIB"; then
5366   case $host_os in
5367   openbsd*)
5368     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5369     ;;
5370   *)
5371     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5372     ;;
5373   esac
5374   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5375 fi
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410 # If no C compiler was specified, use CC.
5411 LTCC=${LTCC-"$CC"}
5412
5413 # If no C compiler flags were specified, use CFLAGS.
5414 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5415
5416 # Allow CC to be a program name with arguments.
5417 compiler=$CC
5418
5419
5420 # Check for command to grab the raw symbol name followed by C symbol from nm.
5421 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5422 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5423 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5424   $as_echo_n "(cached) " >&6
5425 else
5426
5427 # These are sane defaults that work on at least a few old systems.
5428 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5429
5430 # Character class describing NM global symbol codes.
5431 symcode='[BCDEGRST]'
5432
5433 # Regexp to match symbols that can be accessed directly from C.
5434 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5435
5436 # Define system-specific variables.
5437 case $host_os in
5438 aix*)
5439   symcode='[BCDT]'
5440   ;;
5441 cygwin* | mingw* | pw32* | cegcc*)
5442   symcode='[ABCDGISTW]'
5443   ;;
5444 hpux*)
5445   if test "$host_cpu" = ia64; then
5446     symcode='[ABCDEGRST]'
5447   fi
5448   ;;
5449 irix* | nonstopux*)
5450   symcode='[BCDEGRST]'
5451   ;;
5452 osf*)
5453   symcode='[BCDEGQRST]'
5454   ;;
5455 solaris*)
5456   symcode='[BDRT]'
5457   ;;
5458 sco3.2v5*)
5459   symcode='[DT]'
5460   ;;
5461 sysv4.2uw2*)
5462   symcode='[DT]'
5463   ;;
5464 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5465   symcode='[ABDT]'
5466   ;;
5467 sysv4)
5468   symcode='[DFNSTU]'
5469   ;;
5470 esac
5471
5472 # If we're using GNU nm, then use its standard symbol codes.
5473 case `$NM -V 2>&1` in
5474 *GNU* | *'with BFD'*)
5475   symcode='[ABCDGIRSTW]' ;;
5476 esac
5477
5478 # Transform an extracted symbol line into a proper C declaration.
5479 # Some systems (esp. on ia64) link data and code symbols differently,
5480 # so use this general approach.
5481 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5482
5483 # Transform an extracted symbol line into symbol name and symbol address
5484 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5485 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'"
5486
5487 # Handle CRLF in mingw tool chain
5488 opt_cr=
5489 case $build_os in
5490 mingw*)
5491   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5492   ;;
5493 esac
5494
5495 # Try without a prefix underscore, then with it.
5496 for ac_symprfx in "" "_"; do
5497
5498   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5499   symxfrm="\\1 $ac_symprfx\\2 \\2"
5500
5501   # Write the raw and C identifiers.
5502   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5503     # Fake it for dumpbin and say T for any non-static function
5504     # and D for any global variable.
5505     # Also find C++ and __fastcall symbols from MSVC++,
5506     # which start with @ or ?.
5507     lt_cv_sys_global_symbol_pipe="$AWK '"\
5508 "     {last_section=section; section=\$ 3};"\
5509 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5510 "     \$ 0!~/External *\|/{next};"\
5511 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5512 "     {if(hide[section]) next};"\
5513 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5514 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5515 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5516 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5517 "     ' prfx=^$ac_symprfx"
5518   else
5519     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5520   fi
5521
5522   # Check to see that the pipe works correctly.
5523   pipe_works=no
5524
5525   rm -f conftest*
5526   cat > conftest.$ac_ext <<_LT_EOF
5527 #ifdef __cplusplus
5528 extern "C" {
5529 #endif
5530 char nm_test_var;
5531 void nm_test_func(void);
5532 void nm_test_func(void){}
5533 #ifdef __cplusplus
5534 }
5535 #endif
5536 int main(){nm_test_var='a';nm_test_func();return(0);}
5537 _LT_EOF
5538
5539   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5540   (eval $ac_compile) 2>&5
5541   ac_status=$?
5542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543   (exit $ac_status); }; then
5544     # Now try to grab the symbols.
5545     nlist=conftest.nm
5546     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5547   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5548   ac_status=$?
5549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550   (exit $ac_status); } && test -s "$nlist"; then
5551       # Try sorting and uniquifying the output.
5552       if sort "$nlist" | uniq > "$nlist"T; then
5553         mv -f "$nlist"T "$nlist"
5554       else
5555         rm -f "$nlist"T
5556       fi
5557
5558       # Make sure that we snagged all the symbols we need.
5559       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5560         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5561           cat <<_LT_EOF > conftest.$ac_ext
5562 #ifdef __cplusplus
5563 extern "C" {
5564 #endif
5565
5566 _LT_EOF
5567           # Now generate the symbol file.
5568           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5569
5570           cat <<_LT_EOF >> conftest.$ac_ext
5571
5572 /* The mapping between symbol names and symbols.  */
5573 const struct {
5574   const char *name;
5575   void       *address;
5576 }
5577 lt__PROGRAM__LTX_preloaded_symbols[] =
5578 {
5579   { "@PROGRAM@", (void *) 0 },
5580 _LT_EOF
5581           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5582           cat <<\_LT_EOF >> conftest.$ac_ext
5583   {0, (void *) 0}
5584 };
5585
5586 /* This works around a problem in FreeBSD linker */
5587 #ifdef FREEBSD_WORKAROUND
5588 static const void *lt_preloaded_setup() {
5589   return lt__PROGRAM__LTX_preloaded_symbols;
5590 }
5591 #endif
5592
5593 #ifdef __cplusplus
5594 }
5595 #endif
5596 _LT_EOF
5597           # Now try linking the two files.
5598           mv conftest.$ac_objext conftstm.$ac_objext
5599           lt_save_LIBS="$LIBS"
5600           lt_save_CFLAGS="$CFLAGS"
5601           LIBS="conftstm.$ac_objext"
5602           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5603           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5604   (eval $ac_link) 2>&5
5605   ac_status=$?
5606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5608             pipe_works=yes
5609           fi
5610           LIBS="$lt_save_LIBS"
5611           CFLAGS="$lt_save_CFLAGS"
5612         else
5613           echo "cannot find nm_test_func in $nlist" >&5
5614         fi
5615       else
5616         echo "cannot find nm_test_var in $nlist" >&5
5617       fi
5618     else
5619       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5620     fi
5621   else
5622     echo "$progname: failed program was:" >&5
5623     cat conftest.$ac_ext >&5
5624   fi
5625   rm -rf conftest* conftst*
5626
5627   # Do not use the global_symbol_pipe unless it works.
5628   if test "$pipe_works" = yes; then
5629     break
5630   else
5631     lt_cv_sys_global_symbol_pipe=
5632   fi
5633 done
5634
5635 fi
5636
5637 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5638   lt_cv_sys_global_symbol_to_cdecl=
5639 fi
5640 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5641   { $as_echo "$as_me:$LINENO: result: failed" >&5
5642 $as_echo "failed" >&6; }
5643 else
5644   { $as_echo "$as_me:$LINENO: result: ok" >&5
5645 $as_echo "ok" >&6; }
5646 fi
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670 # Check whether --enable-libtool-lock was given.
5671 if test "${enable_libtool_lock+set}" = set; then
5672   enableval=$enable_libtool_lock;
5673 fi
5674
5675 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5676
5677 # Some flags need to be propagated to the compiler or linker for good
5678 # libtool support.
5679 case $host in
5680 ia64-*-hpux*)
5681   # Find out which ABI we are using.
5682   echo 'int i;' > conftest.$ac_ext
5683   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5684   (eval $ac_compile) 2>&5
5685   ac_status=$?
5686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); }; then
5688     case `/usr/bin/file conftest.$ac_objext` in
5689       *ELF-32*)
5690         HPUX_IA64_MODE="32"
5691         ;;
5692       *ELF-64*)
5693         HPUX_IA64_MODE="64"
5694         ;;
5695     esac
5696   fi
5697   rm -rf conftest*
5698   ;;
5699 *-*-irix6*)
5700   # Find out which ABI we are using.
5701   echo '#line 5701 "configure"' > conftest.$ac_ext
5702   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703   (eval $ac_compile) 2>&5
5704   ac_status=$?
5705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); }; then
5707     if test "$lt_cv_prog_gnu_ld" = yes; then
5708       case `/usr/bin/file conftest.$ac_objext` in
5709         *32-bit*)
5710           LD="${LD-ld} -melf32bsmip"
5711           ;;
5712         *N32*)
5713           LD="${LD-ld} -melf32bmipn32"
5714           ;;
5715         *64-bit*)
5716           LD="${LD-ld} -melf64bmip"
5717         ;;
5718       esac
5719     else
5720       case `/usr/bin/file conftest.$ac_objext` in
5721         *32-bit*)
5722           LD="${LD-ld} -32"
5723           ;;
5724         *N32*)
5725           LD="${LD-ld} -n32"
5726           ;;
5727         *64-bit*)
5728           LD="${LD-ld} -64"
5729           ;;
5730       esac
5731     fi
5732   fi
5733   rm -rf conftest*
5734   ;;
5735
5736 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5737 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5738   # Find out which ABI we are using.
5739   echo 'int i;' > conftest.$ac_ext
5740   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5741   (eval $ac_compile) 2>&5
5742   ac_status=$?
5743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); }; then
5745     case `/usr/bin/file conftest.o` in
5746       *32-bit*)
5747         case $host in
5748           x86_64-*kfreebsd*-gnu)
5749             LD="${LD-ld} -m elf_i386_fbsd"
5750             ;;
5751           x86_64-*linux*)
5752             LD="${LD-ld} -m elf_i386"
5753             ;;
5754           ppc64-*linux*|powerpc64-*linux*)
5755             LD="${LD-ld} -m elf32ppclinux"
5756             ;;
5757           s390x-*linux*)
5758             LD="${LD-ld} -m elf_s390"
5759             ;;
5760           sparc64-*linux*)
5761             LD="${LD-ld} -m elf32_sparc"
5762             ;;
5763         esac
5764         ;;
5765       *64-bit*)
5766         case $host in
5767           x86_64-*kfreebsd*-gnu)
5768             LD="${LD-ld} -m elf_x86_64_fbsd"
5769             ;;
5770           x86_64-*linux*)
5771             LD="${LD-ld} -m elf_x86_64"
5772             ;;
5773           ppc*-*linux*|powerpc*-*linux*)
5774             LD="${LD-ld} -m elf64ppc"
5775             ;;
5776           s390*-*linux*|s390*-*tpf*)
5777             LD="${LD-ld} -m elf64_s390"
5778             ;;
5779           sparc*-*linux*)
5780             LD="${LD-ld} -m elf64_sparc"
5781             ;;
5782         esac
5783         ;;
5784     esac
5785   fi
5786   rm -rf conftest*
5787   ;;
5788
5789 *-*-sco3.2v5*)
5790   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5791   SAVE_CFLAGS="$CFLAGS"
5792   CFLAGS="$CFLAGS -belf"
5793   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5794 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5795 if test "${lt_cv_cc_needs_belf+set}" = set; then
5796   $as_echo_n "(cached) " >&6
5797 else
5798   ac_ext=c
5799 ac_cpp='$CPP $CPPFLAGS'
5800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5803
5804      cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h.  */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h.  */
5810
5811 int
5812 main ()
5813 {
5814
5815   ;
5816   return 0;
5817 }
5818 _ACEOF
5819 rm -f conftest.$ac_objext conftest$ac_exeext
5820 if { (ac_try="$ac_link"
5821 case "(($ac_try" in
5822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823   *) ac_try_echo=$ac_try;;
5824 esac
5825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5826 $as_echo "$ac_try_echo") >&5
5827   (eval "$ac_link") 2>conftest.er1
5828   ac_status=$?
5829   grep -v '^ *+' conftest.er1 >conftest.err
5830   rm -f conftest.er1
5831   cat conftest.err >&5
5832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833   (exit $ac_status); } && {
5834          test -z "$ac_c_werror_flag" ||
5835          test ! -s conftest.err
5836        } && test -s conftest$ac_exeext && {
5837          test "$cross_compiling" = yes ||
5838          $as_test_x conftest$ac_exeext
5839        }; then
5840   lt_cv_cc_needs_belf=yes
5841 else
5842   $as_echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5844
5845         lt_cv_cc_needs_belf=no
5846 fi
5847
5848 rm -rf conftest.dSYM
5849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5850       conftest$ac_exeext conftest.$ac_ext
5851      ac_ext=c
5852 ac_cpp='$CPP $CPPFLAGS'
5853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5856
5857 fi
5858 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5859 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5860   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5861     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5862     CFLAGS="$SAVE_CFLAGS"
5863   fi
5864   ;;
5865 sparc*-*solaris*)
5866   # Find out which ABI we are using.
5867   echo 'int i;' > conftest.$ac_ext
5868   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869   (eval $ac_compile) 2>&5
5870   ac_status=$?
5871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); }; then
5873     case `/usr/bin/file conftest.o` in
5874     *64-bit*)
5875       case $lt_cv_prog_gnu_ld in
5876       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5877       *)
5878         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5879           LD="${LD-ld} -64"
5880         fi
5881         ;;
5882       esac
5883       ;;
5884     esac
5885   fi
5886   rm -rf conftest*
5887   ;;
5888 esac
5889
5890 need_locks="$enable_libtool_lock"
5891
5892
5893   case $host_os in
5894     rhapsody* | darwin*)
5895     if test -n "$ac_tool_prefix"; then
5896   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5897 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5898 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5899 $as_echo_n "checking for $ac_word... " >&6; }
5900 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5901   $as_echo_n "(cached) " >&6
5902 else
5903   if test -n "$DSYMUTIL"; then
5904   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5905 else
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $PATH
5908 do
5909   IFS=$as_save_IFS
5910   test -z "$as_dir" && as_dir=.
5911   for ac_exec_ext in '' $ac_executable_extensions; do
5912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5913     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5914     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915     break 2
5916   fi
5917 done
5918 done
5919 IFS=$as_save_IFS
5920
5921 fi
5922 fi
5923 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5924 if test -n "$DSYMUTIL"; then
5925   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5926 $as_echo "$DSYMUTIL" >&6; }
5927 else
5928   { $as_echo "$as_me:$LINENO: result: no" >&5
5929 $as_echo "no" >&6; }
5930 fi
5931
5932
5933 fi
5934 if test -z "$ac_cv_prog_DSYMUTIL"; then
5935   ac_ct_DSYMUTIL=$DSYMUTIL
5936   # Extract the first word of "dsymutil", so it can be a program name with args.
5937 set dummy dsymutil; ac_word=$2
5938 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5939 $as_echo_n "checking for $ac_word... " >&6; }
5940 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5941   $as_echo_n "(cached) " >&6
5942 else
5943   if test -n "$ac_ct_DSYMUTIL"; then
5944   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5945 else
5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 for as_dir in $PATH
5948 do
5949   IFS=$as_save_IFS
5950   test -z "$as_dir" && as_dir=.
5951   for ac_exec_ext in '' $ac_executable_extensions; do
5952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5953     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5954     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5955     break 2
5956   fi
5957 done
5958 done
5959 IFS=$as_save_IFS
5960
5961 fi
5962 fi
5963 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5964 if test -n "$ac_ct_DSYMUTIL"; then
5965   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5966 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5967 else
5968   { $as_echo "$as_me:$LINENO: result: no" >&5
5969 $as_echo "no" >&6; }
5970 fi
5971
5972   if test "x$ac_ct_DSYMUTIL" = x; then
5973     DSYMUTIL=":"
5974   else
5975     case $cross_compiling:$ac_tool_warned in
5976 yes:)
5977 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5979 ac_tool_warned=yes ;;
5980 esac
5981     DSYMUTIL=$ac_ct_DSYMUTIL
5982   fi
5983 else
5984   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5985 fi
5986
5987     if test -n "$ac_tool_prefix"; then
5988   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5989 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5990 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5991 $as_echo_n "checking for $ac_word... " >&6; }
5992 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5993   $as_echo_n "(cached) " >&6
5994 else
5995   if test -n "$NMEDIT"; then
5996   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5997 else
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH
6000 do
6001   IFS=$as_save_IFS
6002   test -z "$as_dir" && as_dir=.
6003   for ac_exec_ext in '' $ac_executable_extensions; do
6004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6005     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6006     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007     break 2
6008   fi
6009 done
6010 done
6011 IFS=$as_save_IFS
6012
6013 fi
6014 fi
6015 NMEDIT=$ac_cv_prog_NMEDIT
6016 if test -n "$NMEDIT"; then
6017   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6018 $as_echo "$NMEDIT" >&6; }
6019 else
6020   { $as_echo "$as_me:$LINENO: result: no" >&5
6021 $as_echo "no" >&6; }
6022 fi
6023
6024
6025 fi
6026 if test -z "$ac_cv_prog_NMEDIT"; then
6027   ac_ct_NMEDIT=$NMEDIT
6028   # Extract the first word of "nmedit", so it can be a program name with args.
6029 set dummy nmedit; ac_word=$2
6030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6033   $as_echo_n "(cached) " >&6
6034 else
6035   if test -n "$ac_ct_NMEDIT"; then
6036   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041   IFS=$as_save_IFS
6042   test -z "$as_dir" && as_dir=.
6043   for ac_exec_ext in '' $ac_executable_extensions; do
6044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6046     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047     break 2
6048   fi
6049 done
6050 done
6051 IFS=$as_save_IFS
6052
6053 fi
6054 fi
6055 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6056 if test -n "$ac_ct_NMEDIT"; then
6057   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6058 $as_echo "$ac_ct_NMEDIT" >&6; }
6059 else
6060   { $as_echo "$as_me:$LINENO: result: no" >&5
6061 $as_echo "no" >&6; }
6062 fi
6063
6064   if test "x$ac_ct_NMEDIT" = x; then
6065     NMEDIT=":"
6066   else
6067     case $cross_compiling:$ac_tool_warned in
6068 yes:)
6069 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6071 ac_tool_warned=yes ;;
6072 esac
6073     NMEDIT=$ac_ct_NMEDIT
6074   fi
6075 else
6076   NMEDIT="$ac_cv_prog_NMEDIT"
6077 fi
6078
6079     if test -n "$ac_tool_prefix"; then
6080   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6081 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6082 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6083 $as_echo_n "checking for $ac_word... " >&6; }
6084 if test "${ac_cv_prog_LIPO+set}" = set; then
6085   $as_echo_n "(cached) " >&6
6086 else
6087   if test -n "$LIPO"; then
6088   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6089 else
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in $PATH
6092 do
6093   IFS=$as_save_IFS
6094   test -z "$as_dir" && as_dir=.
6095   for ac_exec_ext in '' $ac_executable_extensions; do
6096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6097     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6098     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099     break 2
6100   fi
6101 done
6102 done
6103 IFS=$as_save_IFS
6104
6105 fi
6106 fi
6107 LIPO=$ac_cv_prog_LIPO
6108 if test -n "$LIPO"; then
6109   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6110 $as_echo "$LIPO" >&6; }
6111 else
6112   { $as_echo "$as_me:$LINENO: result: no" >&5
6113 $as_echo "no" >&6; }
6114 fi
6115
6116
6117 fi
6118 if test -z "$ac_cv_prog_LIPO"; then
6119   ac_ct_LIPO=$LIPO
6120   # Extract the first word of "lipo", so it can be a program name with args.
6121 set dummy lipo; ac_word=$2
6122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6123 $as_echo_n "checking for $ac_word... " >&6; }
6124 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6125   $as_echo_n "(cached) " >&6
6126 else
6127   if test -n "$ac_ct_LIPO"; then
6128   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6129 else
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6132 do
6133   IFS=$as_save_IFS
6134   test -z "$as_dir" && as_dir=.
6135   for ac_exec_ext in '' $ac_executable_extensions; do
6136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6137     ac_cv_prog_ac_ct_LIPO="lipo"
6138     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6139     break 2
6140   fi
6141 done
6142 done
6143 IFS=$as_save_IFS
6144
6145 fi
6146 fi
6147 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6148 if test -n "$ac_ct_LIPO"; then
6149   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6150 $as_echo "$ac_ct_LIPO" >&6; }
6151 else
6152   { $as_echo "$as_me:$LINENO: result: no" >&5
6153 $as_echo "no" >&6; }
6154 fi
6155
6156   if test "x$ac_ct_LIPO" = x; then
6157     LIPO=":"
6158   else
6159     case $cross_compiling:$ac_tool_warned in
6160 yes:)
6161 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6163 ac_tool_warned=yes ;;
6164 esac
6165     LIPO=$ac_ct_LIPO
6166   fi
6167 else
6168   LIPO="$ac_cv_prog_LIPO"
6169 fi
6170
6171     if test -n "$ac_tool_prefix"; then
6172   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6173 set dummy ${ac_tool_prefix}otool; ac_word=$2
6174 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6175 $as_echo_n "checking for $ac_word... " >&6; }
6176 if test "${ac_cv_prog_OTOOL+set}" = set; then
6177   $as_echo_n "(cached) " >&6
6178 else
6179   if test -n "$OTOOL"; then
6180   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6181 else
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH
6184 do
6185   IFS=$as_save_IFS
6186   test -z "$as_dir" && as_dir=.
6187   for ac_exec_ext in '' $ac_executable_extensions; do
6188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6189     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6190     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6191     break 2
6192   fi
6193 done
6194 done
6195 IFS=$as_save_IFS
6196
6197 fi
6198 fi
6199 OTOOL=$ac_cv_prog_OTOOL
6200 if test -n "$OTOOL"; then
6201   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6202 $as_echo "$OTOOL" >&6; }
6203 else
6204   { $as_echo "$as_me:$LINENO: result: no" >&5
6205 $as_echo "no" >&6; }
6206 fi
6207
6208
6209 fi
6210 if test -z "$ac_cv_prog_OTOOL"; then
6211   ac_ct_OTOOL=$OTOOL
6212   # Extract the first word of "otool", so it can be a program name with args.
6213 set dummy otool; ac_word=$2
6214 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6215 $as_echo_n "checking for $ac_word... " >&6; }
6216 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6217   $as_echo_n "(cached) " >&6
6218 else
6219   if test -n "$ac_ct_OTOOL"; then
6220   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6221 else
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 for as_dir in $PATH
6224 do
6225   IFS=$as_save_IFS
6226   test -z "$as_dir" && as_dir=.
6227   for ac_exec_ext in '' $ac_executable_extensions; do
6228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6229     ac_cv_prog_ac_ct_OTOOL="otool"
6230     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6231     break 2
6232   fi
6233 done
6234 done
6235 IFS=$as_save_IFS
6236
6237 fi
6238 fi
6239 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6240 if test -n "$ac_ct_OTOOL"; then
6241   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6242 $as_echo "$ac_ct_OTOOL" >&6; }
6243 else
6244   { $as_echo "$as_me:$LINENO: result: no" >&5
6245 $as_echo "no" >&6; }
6246 fi
6247
6248   if test "x$ac_ct_OTOOL" = x; then
6249     OTOOL=":"
6250   else
6251     case $cross_compiling:$ac_tool_warned in
6252 yes:)
6253 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6255 ac_tool_warned=yes ;;
6256 esac
6257     OTOOL=$ac_ct_OTOOL
6258   fi
6259 else
6260   OTOOL="$ac_cv_prog_OTOOL"
6261 fi
6262
6263     if test -n "$ac_tool_prefix"; then
6264   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6265 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6267 $as_echo_n "checking for $ac_word... " >&6; }
6268 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6269   $as_echo_n "(cached) " >&6
6270 else
6271   if test -n "$OTOOL64"; then
6272   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6273 else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6276 do
6277   IFS=$as_save_IFS
6278   test -z "$as_dir" && as_dir=.
6279   for ac_exec_ext in '' $ac_executable_extensions; do
6280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6282     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283     break 2
6284   fi
6285 done
6286 done
6287 IFS=$as_save_IFS
6288
6289 fi
6290 fi
6291 OTOOL64=$ac_cv_prog_OTOOL64
6292 if test -n "$OTOOL64"; then
6293   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6294 $as_echo "$OTOOL64" >&6; }
6295 else
6296   { $as_echo "$as_me:$LINENO: result: no" >&5
6297 $as_echo "no" >&6; }
6298 fi
6299
6300
6301 fi
6302 if test -z "$ac_cv_prog_OTOOL64"; then
6303   ac_ct_OTOOL64=$OTOOL64
6304   # Extract the first word of "otool64", so it can be a program name with args.
6305 set dummy otool64; ac_word=$2
6306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6309   $as_echo_n "(cached) " >&6
6310 else
6311   if test -n "$ac_ct_OTOOL64"; then
6312   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317   IFS=$as_save_IFS
6318   test -z "$as_dir" && as_dir=.
6319   for ac_exec_ext in '' $ac_executable_extensions; do
6320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321     ac_cv_prog_ac_ct_OTOOL64="otool64"
6322     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323     break 2
6324   fi
6325 done
6326 done
6327 IFS=$as_save_IFS
6328
6329 fi
6330 fi
6331 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6332 if test -n "$ac_ct_OTOOL64"; then
6333   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6334 $as_echo "$ac_ct_OTOOL64" >&6; }
6335 else
6336   { $as_echo "$as_me:$LINENO: result: no" >&5
6337 $as_echo "no" >&6; }
6338 fi
6339
6340   if test "x$ac_ct_OTOOL64" = x; then
6341     OTOOL64=":"
6342   else
6343     case $cross_compiling:$ac_tool_warned in
6344 yes:)
6345 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6347 ac_tool_warned=yes ;;
6348 esac
6349     OTOOL64=$ac_ct_OTOOL64
6350   fi
6351 else
6352   OTOOL64="$ac_cv_prog_OTOOL64"
6353 fi
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6382 $as_echo_n "checking for -single_module linker flag... " >&6; }
6383 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6384   $as_echo_n "(cached) " >&6
6385 else
6386   lt_cv_apple_cc_single_mod=no
6387       if test -z "${LT_MULTI_MODULE}"; then
6388         # By default we will add the -single_module flag. You can override
6389         # by either setting the environment variable LT_MULTI_MODULE
6390         # non-empty at configure time, or by adding -multi_module to the
6391         # link flags.
6392         rm -rf libconftest.dylib*
6393         echo "int foo(void){return 1;}" > conftest.c
6394         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6395 -dynamiclib -Wl,-single_module conftest.c" >&5
6396         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6397           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6398         _lt_result=$?
6399         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6400           lt_cv_apple_cc_single_mod=yes
6401         else
6402           cat conftest.err >&5
6403         fi
6404         rm -rf libconftest.dylib*
6405         rm -f conftest.*
6406       fi
6407 fi
6408 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6409 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6410     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6411 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6412 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6413   $as_echo_n "(cached) " >&6
6414 else
6415   lt_cv_ld_exported_symbols_list=no
6416       save_LDFLAGS=$LDFLAGS
6417       echo "_main" > conftest.sym
6418       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6419       cat >conftest.$ac_ext <<_ACEOF
6420 /* confdefs.h.  */
6421 _ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h.  */
6425
6426 int
6427 main ()
6428 {
6429
6430   ;
6431   return 0;
6432 }
6433 _ACEOF
6434 rm -f conftest.$ac_objext conftest$ac_exeext
6435 if { (ac_try="$ac_link"
6436 case "(($ac_try" in
6437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6438   *) ac_try_echo=$ac_try;;
6439 esac
6440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6441 $as_echo "$ac_try_echo") >&5
6442   (eval "$ac_link") 2>conftest.er1
6443   ac_status=$?
6444   grep -v '^ *+' conftest.er1 >conftest.err
6445   rm -f conftest.er1
6446   cat conftest.err >&5
6447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); } && {
6449          test -z "$ac_c_werror_flag" ||
6450          test ! -s conftest.err
6451        } && test -s conftest$ac_exeext && {
6452          test "$cross_compiling" = yes ||
6453          $as_test_x conftest$ac_exeext
6454        }; then
6455   lt_cv_ld_exported_symbols_list=yes
6456 else
6457   $as_echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6459
6460         lt_cv_ld_exported_symbols_list=no
6461 fi
6462
6463 rm -rf conftest.dSYM
6464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6465       conftest$ac_exeext conftest.$ac_ext
6466         LDFLAGS="$save_LDFLAGS"
6467
6468 fi
6469 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6470 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6471     case $host_os in
6472     rhapsody* | darwin1.[012])
6473       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6474     darwin1.*)
6475       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6476     darwin*) # darwin 5.x on
6477       # if running on 10.5 or later, the deployment target defaults
6478       # to the OS version, if on x86, and 10.4, the deployment
6479       # target defaults to 10.4. Don't you love it?
6480       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6481         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6482           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6483         10.[012]*)
6484           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6485         10.*)
6486           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6487       esac
6488     ;;
6489   esac
6490     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6491       _lt_dar_single_mod='$single_module'
6492     fi
6493     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6494       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6495     else
6496       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6497     fi
6498     if test "$DSYMUTIL" != ":"; then
6499       _lt_dsymutil='~$DSYMUTIL $lib || :'
6500     else
6501       _lt_dsymutil=
6502     fi
6503     ;;
6504   esac
6505
6506 ac_ext=c
6507 ac_cpp='$CPP $CPPFLAGS'
6508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6511 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6512 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6513 # On Suns, sometimes $CPP names a directory.
6514 if test -n "$CPP" && test -d "$CPP"; then
6515   CPP=
6516 fi
6517 if test -z "$CPP"; then
6518   if test "${ac_cv_prog_CPP+set}" = set; then
6519   $as_echo_n "(cached) " >&6
6520 else
6521       # Double quotes because CPP needs to be expanded
6522     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6523     do
6524       ac_preproc_ok=false
6525 for ac_c_preproc_warn_flag in '' yes
6526 do
6527   # Use a header file that comes with gcc, so configuring glibc
6528   # with a fresh cross-compiler works.
6529   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6530   # <limits.h> exists even on freestanding compilers.
6531   # On the NeXT, cc -E runs the code through the compiler's parser,
6532   # not just through cpp. "Syntax error" is here to catch this case.
6533   cat >conftest.$ac_ext <<_ACEOF
6534 /* confdefs.h.  */
6535 _ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h.  */
6539 #ifdef __STDC__
6540 # include <limits.h>
6541 #else
6542 # include <assert.h>
6543 #endif
6544                      Syntax error
6545 _ACEOF
6546 if { (ac_try="$ac_cpp conftest.$ac_ext"
6547 case "(($ac_try" in
6548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6549   *) ac_try_echo=$ac_try;;
6550 esac
6551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6552 $as_echo "$ac_try_echo") >&5
6553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6554   ac_status=$?
6555   grep -v '^ *+' conftest.er1 >conftest.err
6556   rm -f conftest.er1
6557   cat conftest.err >&5
6558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559   (exit $ac_status); } >/dev/null && {
6560          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6561          test ! -s conftest.err
6562        }; then
6563   :
6564 else
6565   $as_echo "$as_me: failed program was:" >&5
6566 sed 's/^/| /' conftest.$ac_ext >&5
6567
6568   # Broken: fails on valid input.
6569 continue
6570 fi
6571
6572 rm -f conftest.err conftest.$ac_ext
6573
6574   # OK, works on sane cases.  Now check whether nonexistent headers
6575   # can be detected and how.
6576   cat >conftest.$ac_ext <<_ACEOF
6577 /* confdefs.h.  */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h.  */
6582 #include <ac_nonexistent.h>
6583 _ACEOF
6584 if { (ac_try="$ac_cpp conftest.$ac_ext"
6585 case "(($ac_try" in
6586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587   *) ac_try_echo=$ac_try;;
6588 esac
6589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6590 $as_echo "$ac_try_echo") >&5
6591   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6592   ac_status=$?
6593   grep -v '^ *+' conftest.er1 >conftest.err
6594   rm -f conftest.er1
6595   cat conftest.err >&5
6596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597   (exit $ac_status); } >/dev/null && {
6598          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6599          test ! -s conftest.err
6600        }; then
6601   # Broken: success on invalid input.
6602 continue
6603 else
6604   $as_echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6606
6607   # Passes both tests.
6608 ac_preproc_ok=:
6609 break
6610 fi
6611
6612 rm -f conftest.err conftest.$ac_ext
6613
6614 done
6615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6616 rm -f conftest.err conftest.$ac_ext
6617 if $ac_preproc_ok; then
6618   break
6619 fi
6620
6621     done
6622     ac_cv_prog_CPP=$CPP
6623
6624 fi
6625   CPP=$ac_cv_prog_CPP
6626 else
6627   ac_cv_prog_CPP=$CPP
6628 fi
6629 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6630 $as_echo "$CPP" >&6; }
6631 ac_preproc_ok=false
6632 for ac_c_preproc_warn_flag in '' yes
6633 do
6634   # Use a header file that comes with gcc, so configuring glibc
6635   # with a fresh cross-compiler works.
6636   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6637   # <limits.h> exists even on freestanding compilers.
6638   # On the NeXT, cc -E runs the code through the compiler's parser,
6639   # not just through cpp. "Syntax error" is here to catch this case.
6640   cat >conftest.$ac_ext <<_ACEOF
6641 /* confdefs.h.  */
6642 _ACEOF
6643 cat confdefs.h >>conftest.$ac_ext
6644 cat >>conftest.$ac_ext <<_ACEOF
6645 /* end confdefs.h.  */
6646 #ifdef __STDC__
6647 # include <limits.h>
6648 #else
6649 # include <assert.h>
6650 #endif
6651                      Syntax error
6652 _ACEOF
6653 if { (ac_try="$ac_cpp conftest.$ac_ext"
6654 case "(($ac_try" in
6655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6656   *) ac_try_echo=$ac_try;;
6657 esac
6658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6659 $as_echo "$ac_try_echo") >&5
6660   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6661   ac_status=$?
6662   grep -v '^ *+' conftest.er1 >conftest.err
6663   rm -f conftest.er1
6664   cat conftest.err >&5
6665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666   (exit $ac_status); } >/dev/null && {
6667          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6668          test ! -s conftest.err
6669        }; then
6670   :
6671 else
6672   $as_echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6674
6675   # Broken: fails on valid input.
6676 continue
6677 fi
6678
6679 rm -f conftest.err conftest.$ac_ext
6680
6681   # OK, works on sane cases.  Now check whether nonexistent headers
6682   # can be detected and how.
6683   cat >conftest.$ac_ext <<_ACEOF
6684 /* confdefs.h.  */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h.  */
6689 #include <ac_nonexistent.h>
6690 _ACEOF
6691 if { (ac_try="$ac_cpp conftest.$ac_ext"
6692 case "(($ac_try" in
6693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694   *) ac_try_echo=$ac_try;;
6695 esac
6696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6697 $as_echo "$ac_try_echo") >&5
6698   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6699   ac_status=$?
6700   grep -v '^ *+' conftest.er1 >conftest.err
6701   rm -f conftest.er1
6702   cat conftest.err >&5
6703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704   (exit $ac_status); } >/dev/null && {
6705          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6706          test ! -s conftest.err
6707        }; then
6708   # Broken: success on invalid input.
6709 continue
6710 else
6711   $as_echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6713
6714   # Passes both tests.
6715 ac_preproc_ok=:
6716 break
6717 fi
6718
6719 rm -f conftest.err conftest.$ac_ext
6720
6721 done
6722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6723 rm -f conftest.err conftest.$ac_ext
6724 if $ac_preproc_ok; then
6725   :
6726 else
6727   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6729 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6730 See \`config.log' for more details." >&5
6731 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6732 See \`config.log' for more details." >&2;}
6733    { (exit 1); exit 1; }; }; }
6734 fi
6735
6736 ac_ext=c
6737 ac_cpp='$CPP $CPPFLAGS'
6738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6741
6742
6743 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6744 $as_echo_n "checking for ANSI C header files... " >&6; }
6745 if test "${ac_cv_header_stdc+set}" = set; then
6746   $as_echo_n "(cached) " >&6
6747 else
6748   cat >conftest.$ac_ext <<_ACEOF
6749 /* confdefs.h.  */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h.  */
6754 #include <stdlib.h>
6755 #include <stdarg.h>
6756 #include <string.h>
6757 #include <float.h>
6758
6759 int
6760 main ()
6761 {
6762
6763   ;
6764   return 0;
6765 }
6766 _ACEOF
6767 rm -f conftest.$ac_objext
6768 if { (ac_try="$ac_compile"
6769 case "(($ac_try" in
6770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6771   *) ac_try_echo=$ac_try;;
6772 esac
6773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6774 $as_echo "$ac_try_echo") >&5
6775   (eval "$ac_compile") 2>conftest.er1
6776   ac_status=$?
6777   grep -v '^ *+' conftest.er1 >conftest.err
6778   rm -f conftest.er1
6779   cat conftest.err >&5
6780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781   (exit $ac_status); } && {
6782          test -z "$ac_c_werror_flag" ||
6783          test ! -s conftest.err
6784        } && test -s conftest.$ac_objext; then
6785   ac_cv_header_stdc=yes
6786 else
6787   $as_echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6789
6790         ac_cv_header_stdc=no
6791 fi
6792
6793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794
6795 if test $ac_cv_header_stdc = yes; then
6796   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6797   cat >conftest.$ac_ext <<_ACEOF
6798 /* confdefs.h.  */
6799 _ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h.  */
6803 #include <string.h>
6804
6805 _ACEOF
6806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6807   $EGREP "memchr" >/dev/null 2>&1; then
6808   :
6809 else
6810   ac_cv_header_stdc=no
6811 fi
6812 rm -f conftest*
6813
6814 fi
6815
6816 if test $ac_cv_header_stdc = yes; then
6817   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6818   cat >conftest.$ac_ext <<_ACEOF
6819 /* confdefs.h.  */
6820 _ACEOF
6821 cat confdefs.h >>conftest.$ac_ext
6822 cat >>conftest.$ac_ext <<_ACEOF
6823 /* end confdefs.h.  */
6824 #include <stdlib.h>
6825
6826 _ACEOF
6827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6828   $EGREP "free" >/dev/null 2>&1; then
6829   :
6830 else
6831   ac_cv_header_stdc=no
6832 fi
6833 rm -f conftest*
6834
6835 fi
6836
6837 if test $ac_cv_header_stdc = yes; then
6838   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6839   if test "$cross_compiling" = yes; then
6840   :
6841 else
6842   cat >conftest.$ac_ext <<_ACEOF
6843 /* confdefs.h.  */
6844 _ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h.  */
6848 #include <ctype.h>
6849 #include <stdlib.h>
6850 #if ((' ' & 0x0FF) == 0x020)
6851 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6852 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6853 #else
6854 # define ISLOWER(c) \
6855                    (('a' <= (c) && (c) <= 'i') \
6856                      || ('j' <= (c) && (c) <= 'r') \
6857                      || ('s' <= (c) && (c) <= 'z'))
6858 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6859 #endif
6860
6861 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6862 int
6863 main ()
6864 {
6865   int i;
6866   for (i = 0; i < 256; i++)
6867     if (XOR (islower (i), ISLOWER (i))
6868         || toupper (i) != TOUPPER (i))
6869       return 2;
6870   return 0;
6871 }
6872 _ACEOF
6873 rm -f conftest$ac_exeext
6874 if { (ac_try="$ac_link"
6875 case "(($ac_try" in
6876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6877   *) ac_try_echo=$ac_try;;
6878 esac
6879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6880 $as_echo "$ac_try_echo") >&5
6881   (eval "$ac_link") 2>&5
6882   ac_status=$?
6883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6885   { (case "(($ac_try" in
6886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887   *) ac_try_echo=$ac_try;;
6888 esac
6889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6890 $as_echo "$ac_try_echo") >&5
6891   (eval "$ac_try") 2>&5
6892   ac_status=$?
6893   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894   (exit $ac_status); }; }; then
6895   :
6896 else
6897   $as_echo "$as_me: program exited with status $ac_status" >&5
6898 $as_echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6900
6901 ( exit $ac_status )
6902 ac_cv_header_stdc=no
6903 fi
6904 rm -rf conftest.dSYM
6905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6906 fi
6907
6908
6909 fi
6910 fi
6911 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6912 $as_echo "$ac_cv_header_stdc" >&6; }
6913 if test $ac_cv_header_stdc = yes; then
6914
6915 cat >>confdefs.h <<\_ACEOF
6916 #define STDC_HEADERS 1
6917 _ACEOF
6918
6919 fi
6920
6921 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6932                   inttypes.h stdint.h unistd.h
6933 do
6934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6935 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6936 $as_echo_n "checking for $ac_header... " >&6; }
6937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6938   $as_echo_n "(cached) " >&6
6939 else
6940   cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h.  */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h.  */
6946 $ac_includes_default
6947
6948 #include <$ac_header>
6949 _ACEOF
6950 rm -f conftest.$ac_objext
6951 if { (ac_try="$ac_compile"
6952 case "(($ac_try" in
6953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954   *) ac_try_echo=$ac_try;;
6955 esac
6956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6957 $as_echo "$ac_try_echo") >&5
6958   (eval "$ac_compile") 2>conftest.er1
6959   ac_status=$?
6960   grep -v '^ *+' conftest.er1 >conftest.err
6961   rm -f conftest.er1
6962   cat conftest.err >&5
6963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964   (exit $ac_status); } && {
6965          test -z "$ac_c_werror_flag" ||
6966          test ! -s conftest.err
6967        } && test -s conftest.$ac_objext; then
6968   eval "$as_ac_Header=yes"
6969 else
6970   $as_echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6972
6973         eval "$as_ac_Header=no"
6974 fi
6975
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 fi
6978 ac_res=`eval 'as_val=${'$as_ac_Header'}
6979                  $as_echo "$as_val"'`
6980                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6981 $as_echo "$ac_res" >&6; }
6982 as_val=`eval 'as_val=${'$as_ac_Header'}
6983                  $as_echo "$as_val"'`
6984    if test "x$as_val" = x""yes; then
6985   cat >>confdefs.h <<_ACEOF
6986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6987 _ACEOF
6988
6989 fi
6990
6991 done
6992
6993
6994
6995 for ac_header in dlfcn.h
6996 do
6997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6998 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6999 $as_echo_n "checking for $ac_header... " >&6; }
7000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7001   $as_echo_n "(cached) " >&6
7002 else
7003   cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h.  */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h.  */
7009 $ac_includes_default
7010
7011 #include <$ac_header>
7012 _ACEOF
7013 rm -f conftest.$ac_objext
7014 if { (ac_try="$ac_compile"
7015 case "(($ac_try" in
7016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7017   *) ac_try_echo=$ac_try;;
7018 esac
7019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7020 $as_echo "$ac_try_echo") >&5
7021   (eval "$ac_compile") 2>conftest.er1
7022   ac_status=$?
7023   grep -v '^ *+' conftest.er1 >conftest.err
7024   rm -f conftest.er1
7025   cat conftest.err >&5
7026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); } && {
7028          test -z "$ac_c_werror_flag" ||
7029          test ! -s conftest.err
7030        } && test -s conftest.$ac_objext; then
7031   eval "$as_ac_Header=yes"
7032 else
7033   $as_echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7035
7036         eval "$as_ac_Header=no"
7037 fi
7038
7039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040 fi
7041 ac_res=`eval 'as_val=${'$as_ac_Header'}
7042                  $as_echo "$as_val"'`
7043                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7044 $as_echo "$ac_res" >&6; }
7045 as_val=`eval 'as_val=${'$as_ac_Header'}
7046                  $as_echo "$as_val"'`
7047    if test "x$as_val" = x""yes; then
7048   cat >>confdefs.h <<_ACEOF
7049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7050 _ACEOF
7051
7052 fi
7053
7054 done
7055
7056
7057
7058 # Set options
7059
7060
7061
7062         enable_dlopen=no
7063
7064
7065   enable_win32_dll=no
7066
7067
7068             # Check whether --enable-shared was given.
7069 if test "${enable_shared+set}" = set; then
7070   enableval=$enable_shared; p=${PACKAGE-default}
7071     case $enableval in
7072     yes) enable_shared=yes ;;
7073     no) enable_shared=no ;;
7074     *)
7075       enable_shared=no
7076       # Look at the argument we got.  We use all the common list separators.
7077       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7078       for pkg in $enableval; do
7079         IFS="$lt_save_ifs"
7080         if test "X$pkg" = "X$p"; then
7081           enable_shared=yes
7082         fi
7083       done
7084       IFS="$lt_save_ifs"
7085       ;;
7086     esac
7087 else
7088   enable_shared=yes
7089 fi
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099   # Check whether --enable-static was given.
7100 if test "${enable_static+set}" = set; then
7101   enableval=$enable_static; p=${PACKAGE-default}
7102     case $enableval in
7103     yes) enable_static=yes ;;
7104     no) enable_static=no ;;
7105     *)
7106      enable_static=no
7107       # Look at the argument we got.  We use all the common list separators.
7108       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7109       for pkg in $enableval; do
7110         IFS="$lt_save_ifs"
7111         if test "X$pkg" = "X$p"; then
7112           enable_static=yes
7113         fi
7114       done
7115       IFS="$lt_save_ifs"
7116       ;;
7117     esac
7118 else
7119   enable_static=yes
7120 fi
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131 # Check whether --with-pic was given.
7132 if test "${with_pic+set}" = set; then
7133   withval=$with_pic; pic_mode="$withval"
7134 else
7135   pic_mode=default
7136 fi
7137
7138
7139 test -z "$pic_mode" && pic_mode=default
7140
7141
7142
7143
7144
7145
7146
7147   # Check whether --enable-fast-install was given.
7148 if test "${enable_fast_install+set}" = set; then
7149   enableval=$enable_fast_install; p=${PACKAGE-default}
7150     case $enableval in
7151     yes) enable_fast_install=yes ;;
7152     no) enable_fast_install=no ;;
7153     *)
7154       enable_fast_install=no
7155       # Look at the argument we got.  We use all the common list separators.
7156       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7157       for pkg in $enableval; do
7158         IFS="$lt_save_ifs"
7159         if test "X$pkg" = "X$p"; then
7160           enable_fast_install=yes
7161         fi
7162       done
7163       IFS="$lt_save_ifs"
7164       ;;
7165     esac
7166 else
7167   enable_fast_install=yes
7168 fi
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180 # This can be used to rebuild libtool when needed
7181 LIBTOOL_DEPS="$ltmain"
7182
7183 # Always use our own libtool.
7184 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210 test -z "$LN_S" && LN_S="ln -s"
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225 if test -n "${ZSH_VERSION+set}" ; then
7226    setopt NO_GLOB_SUBST
7227 fi
7228
7229 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7230 $as_echo_n "checking for objdir... " >&6; }
7231 if test "${lt_cv_objdir+set}" = set; then
7232   $as_echo_n "(cached) " >&6
7233 else
7234   rm -f .libs 2>/dev/null
7235 mkdir .libs 2>/dev/null
7236 if test -d .libs; then
7237   lt_cv_objdir=.libs
7238 else
7239   # MS-DOS does not allow filenames that begin with a dot.
7240   lt_cv_objdir=_libs
7241 fi
7242 rmdir .libs 2>/dev/null
7243 fi
7244 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7245 $as_echo "$lt_cv_objdir" >&6; }
7246 objdir=$lt_cv_objdir
7247
7248
7249
7250
7251
7252 cat >>confdefs.h <<_ACEOF
7253 #define LT_OBJDIR "$lt_cv_objdir/"
7254 _ACEOF
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272 case $host_os in
7273 aix3*)
7274   # AIX sometimes has problems with the GCC collect2 program.  For some
7275   # reason, if we set the COLLECT_NAMES environment variable, the problems
7276   # vanish in a puff of smoke.
7277   if test "X${COLLECT_NAMES+set}" != Xset; then
7278     COLLECT_NAMES=
7279     export COLLECT_NAMES
7280   fi
7281   ;;
7282 esac
7283
7284 # Sed substitution that helps us do robust quoting.  It backslashifies
7285 # metacharacters that are still active within double-quoted strings.
7286 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7287
7288 # Same as above, but do not quote variable references.
7289 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7290
7291 # Sed substitution to delay expansion of an escaped shell variable in a
7292 # double_quote_subst'ed string.
7293 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7294
7295 # Sed substitution to delay expansion of an escaped single quote.
7296 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7297
7298 # Sed substitution to avoid accidental globbing in evaled expressions
7299 no_glob_subst='s/\*/\\\*/g'
7300
7301 # Global variables:
7302 ofile=libtool
7303 can_build_shared=yes
7304
7305 # All known linkers require a `.a' archive for static linking (except MSVC,
7306 # which needs '.lib').
7307 libext=a
7308
7309 with_gnu_ld="$lt_cv_prog_gnu_ld"
7310
7311 old_CC="$CC"
7312 old_CFLAGS="$CFLAGS"
7313
7314 # Set sane defaults for various variables
7315 test -z "$CC" && CC=cc
7316 test -z "$LTCC" && LTCC=$CC
7317 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7318 test -z "$LD" && LD=ld
7319 test -z "$ac_objext" && ac_objext=o
7320
7321 for cc_temp in $compiler""; do
7322   case $cc_temp in
7323     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7324     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7325     \-*) ;;
7326     *) break;;
7327   esac
7328 done
7329 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7330
7331
7332 # Only perform the check for file, if the check method requires it
7333 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7334 case $deplibs_check_method in
7335 file_magic*)
7336   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7337     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7338 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7339 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7340   $as_echo_n "(cached) " >&6
7341 else
7342   case $MAGIC_CMD in
7343 [\\/*] |  ?:[\\/]*)
7344   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7345   ;;
7346 *)
7347   lt_save_MAGIC_CMD="$MAGIC_CMD"
7348   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7349   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7350   for ac_dir in $ac_dummy; do
7351     IFS="$lt_save_ifs"
7352     test -z "$ac_dir" && ac_dir=.
7353     if test -f $ac_dir/${ac_tool_prefix}file; then
7354       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7355       if test -n "$file_magic_test_file"; then
7356         case $deplibs_check_method in
7357         "file_magic "*)
7358           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7359           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7360           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7361             $EGREP "$file_magic_regex" > /dev/null; then
7362             :
7363           else
7364             cat <<_LT_EOF 1>&2
7365
7366 *** Warning: the command libtool uses to detect shared libraries,
7367 *** $file_magic_cmd, produces output that libtool cannot recognize.
7368 *** The result is that libtool may fail to recognize shared libraries
7369 *** as such.  This will affect the creation of libtool libraries that
7370 *** depend on shared libraries, but programs linked with such libtool
7371 *** libraries will work regardless of this problem.  Nevertheless, you
7372 *** may want to report the problem to your system manager and/or to
7373 *** bug-libtool@gnu.org
7374
7375 _LT_EOF
7376           fi ;;
7377         esac
7378       fi
7379       break
7380     fi
7381   done
7382   IFS="$lt_save_ifs"
7383   MAGIC_CMD="$lt_save_MAGIC_CMD"
7384   ;;
7385 esac
7386 fi
7387
7388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7389 if test -n "$MAGIC_CMD"; then
7390   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7391 $as_echo "$MAGIC_CMD" >&6; }
7392 else
7393   { $as_echo "$as_me:$LINENO: result: no" >&5
7394 $as_echo "no" >&6; }
7395 fi
7396
7397
7398
7399
7400
7401 if test -z "$lt_cv_path_MAGIC_CMD"; then
7402   if test -n "$ac_tool_prefix"; then
7403     { $as_echo "$as_me:$LINENO: checking for file" >&5
7404 $as_echo_n "checking for file... " >&6; }
7405 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7406   $as_echo_n "(cached) " >&6
7407 else
7408   case $MAGIC_CMD in
7409 [\\/*] |  ?:[\\/]*)
7410   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7411   ;;
7412 *)
7413   lt_save_MAGIC_CMD="$MAGIC_CMD"
7414   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7415   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7416   for ac_dir in $ac_dummy; do
7417     IFS="$lt_save_ifs"
7418     test -z "$ac_dir" && ac_dir=.
7419     if test -f $ac_dir/file; then
7420       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7421       if test -n "$file_magic_test_file"; then
7422         case $deplibs_check_method in
7423         "file_magic "*)
7424           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7425           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7426           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7427             $EGREP "$file_magic_regex" > /dev/null; then
7428             :
7429           else
7430             cat <<_LT_EOF 1>&2
7431
7432 *** Warning: the command libtool uses to detect shared libraries,
7433 *** $file_magic_cmd, produces output that libtool cannot recognize.
7434 *** The result is that libtool may fail to recognize shared libraries
7435 *** as such.  This will affect the creation of libtool libraries that
7436 *** depend on shared libraries, but programs linked with such libtool
7437 *** libraries will work regardless of this problem.  Nevertheless, you
7438 *** may want to report the problem to your system manager and/or to
7439 *** bug-libtool@gnu.org
7440
7441 _LT_EOF
7442           fi ;;
7443         esac
7444       fi
7445       break
7446     fi
7447   done
7448   IFS="$lt_save_ifs"
7449   MAGIC_CMD="$lt_save_MAGIC_CMD"
7450   ;;
7451 esac
7452 fi
7453
7454 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7455 if test -n "$MAGIC_CMD"; then
7456   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7457 $as_echo "$MAGIC_CMD" >&6; }
7458 else
7459   { $as_echo "$as_me:$LINENO: result: no" >&5
7460 $as_echo "no" >&6; }
7461 fi
7462
7463
7464   else
7465     MAGIC_CMD=:
7466   fi
7467 fi
7468
7469   fi
7470   ;;
7471 esac
7472
7473 # Use C for the default configuration in the libtool script
7474
7475 lt_save_CC="$CC"
7476 ac_ext=c
7477 ac_cpp='$CPP $CPPFLAGS'
7478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7481
7482
7483 # Source file extension for C test sources.
7484 ac_ext=c
7485
7486 # Object file extension for compiled C test sources.
7487 objext=o
7488 objext=$objext
7489
7490 # Code to be used in simple compile tests
7491 lt_simple_compile_test_code="int some_variable = 0;"
7492
7493 # Code to be used in simple link tests
7494 lt_simple_link_test_code='int main(){return(0);}'
7495
7496
7497
7498
7499
7500
7501
7502 # If no C compiler was specified, use CC.
7503 LTCC=${LTCC-"$CC"}
7504
7505 # If no C compiler flags were specified, use CFLAGS.
7506 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7507
7508 # Allow CC to be a program name with arguments.
7509 compiler=$CC
7510
7511 # Save the default compiler, since it gets overwritten when the other
7512 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7513 compiler_DEFAULT=$CC
7514
7515 # save warnings/boilerplate of simple test code
7516 ac_outfile=conftest.$ac_objext
7517 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7518 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7519 _lt_compiler_boilerplate=`cat conftest.err`
7520 $RM conftest*
7521
7522 ac_outfile=conftest.$ac_objext
7523 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7524 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7525 _lt_linker_boilerplate=`cat conftest.err`
7526 $RM -r conftest*
7527
7528
7529 if test -n "$compiler"; then
7530
7531 lt_prog_compiler_no_builtin_flag=
7532
7533 if test "$GCC" = yes; then
7534   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7535
7536   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7537 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7538 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7539   $as_echo_n "(cached) " >&6
7540 else
7541   lt_cv_prog_compiler_rtti_exceptions=no
7542    ac_outfile=conftest.$ac_objext
7543    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7544    lt_compiler_flag="-fno-rtti -fno-exceptions"
7545    # Insert the option either (1) after the last *FLAGS variable, or
7546    # (2) before a word containing "conftest.", or (3) at the end.
7547    # Note that $ac_compile itself does not contain backslashes and begins
7548    # with a dollar sign (not a hyphen), so the echo should work correctly.
7549    # The option is referenced via a variable to avoid confusing sed.
7550    lt_compile=`echo "$ac_compile" | $SED \
7551    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7552    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7553    -e 's:$: $lt_compiler_flag:'`
7554    (eval echo "\"\$as_me:7554: $lt_compile\"" >&5)
7555    (eval "$lt_compile" 2>conftest.err)
7556    ac_status=$?
7557    cat conftest.err >&5
7558    echo "$as_me:7558: \$? = $ac_status" >&5
7559    if (exit $ac_status) && test -s "$ac_outfile"; then
7560      # The compiler can only warn and ignore the option if not recognized
7561      # So say no if there are warnings other than the usual output.
7562      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7563      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7564      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7565        lt_cv_prog_compiler_rtti_exceptions=yes
7566      fi
7567    fi
7568    $RM conftest*
7569
7570 fi
7571 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7572 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7573
7574 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7575     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7576 else
7577     :
7578 fi
7579
7580 fi
7581
7582
7583
7584
7585
7586
7587   lt_prog_compiler_wl=
7588 lt_prog_compiler_pic=
7589 lt_prog_compiler_static=
7590
7591 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7592 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7593
7594   if test "$GCC" = yes; then
7595     lt_prog_compiler_wl='-Wl,'
7596     lt_prog_compiler_static='-static'
7597
7598     case $host_os in
7599       aix*)
7600       # All AIX code is PIC.
7601       if test "$host_cpu" = ia64; then
7602         # AIX 5 now supports IA64 processor
7603         lt_prog_compiler_static='-Bstatic'
7604       fi
7605       ;;
7606
7607     amigaos*)
7608       case $host_cpu in
7609       powerpc)
7610             # see comment about AmigaOS4 .so support
7611             lt_prog_compiler_pic='-fPIC'
7612         ;;
7613       m68k)
7614             # FIXME: we need at least 68020 code to build shared libraries, but
7615             # adding the `-m68020' flag to GCC prevents building anything better,
7616             # like `-m68040'.
7617             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7618         ;;
7619       esac
7620       ;;
7621
7622     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7623       # PIC is the default for these OSes.
7624       ;;
7625
7626     mingw* | cygwin* | pw32* | os2* | cegcc*)
7627       # This hack is so that the source file can tell whether it is being
7628       # built for inclusion in a dll (and should export symbols for example).
7629       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7630       # (--disable-auto-import) libraries
7631       lt_prog_compiler_pic='-DDLL_EXPORT'
7632       ;;
7633
7634     darwin* | rhapsody*)
7635       # PIC is the default on this platform
7636       # Common symbols not allowed in MH_DYLIB files
7637       lt_prog_compiler_pic='-fno-common'
7638       ;;
7639
7640     hpux*)
7641       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7642       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7643       # sets the default TLS model and affects inlining.
7644       case $host_cpu in
7645       hppa*64*)
7646         # +Z the default
7647         ;;
7648       *)
7649         lt_prog_compiler_pic='-fPIC'
7650         ;;
7651       esac
7652       ;;
7653
7654     interix[3-9]*)
7655       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7656       # Instead, we relocate shared libraries at runtime.
7657       ;;
7658
7659     msdosdjgpp*)
7660       # Just because we use GCC doesn't mean we suddenly get shared libraries
7661       # on systems that don't support them.
7662       lt_prog_compiler_can_build_shared=no
7663       enable_shared=no
7664       ;;
7665
7666     *nto* | *qnx*)
7667       # QNX uses GNU C++, but need to define -shared option too, otherwise
7668       # it will coredump.
7669       lt_prog_compiler_pic='-fPIC -shared'
7670       ;;
7671
7672     sysv4*MP*)
7673       if test -d /usr/nec; then
7674         lt_prog_compiler_pic=-Kconform_pic
7675       fi
7676       ;;
7677
7678     *)
7679       lt_prog_compiler_pic='-fPIC'
7680       ;;
7681     esac
7682   else
7683     # PORTME Check for flag to pass linker flags through the system compiler.
7684     case $host_os in
7685     aix*)
7686       lt_prog_compiler_wl='-Wl,'
7687       if test "$host_cpu" = ia64; then
7688         # AIX 5 now supports IA64 processor
7689         lt_prog_compiler_static='-Bstatic'
7690       else
7691         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7692       fi
7693       ;;
7694
7695     mingw* | cygwin* | pw32* | os2* | cegcc*)
7696       # This hack is so that the source file can tell whether it is being
7697       # built for inclusion in a dll (and should export symbols for example).
7698       lt_prog_compiler_pic='-DDLL_EXPORT'
7699       ;;
7700
7701     hpux9* | hpux10* | hpux11*)
7702       lt_prog_compiler_wl='-Wl,'
7703       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7704       # not for PA HP-UX.
7705       case $host_cpu in
7706       hppa*64*|ia64*)
7707         # +Z the default
7708         ;;
7709       *)
7710         lt_prog_compiler_pic='+Z'
7711         ;;
7712       esac
7713       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7714       lt_prog_compiler_static='${wl}-a ${wl}archive'
7715       ;;
7716
7717     irix5* | irix6* | nonstopux*)
7718       lt_prog_compiler_wl='-Wl,'
7719       # PIC (with -KPIC) is the default.
7720       lt_prog_compiler_static='-non_shared'
7721       ;;
7722
7723     linux* | k*bsd*-gnu)
7724       case $cc_basename in
7725       # old Intel for x86_64 which still supported -KPIC.
7726       ecc*)
7727         lt_prog_compiler_wl='-Wl,'
7728         lt_prog_compiler_pic='-KPIC'
7729         lt_prog_compiler_static='-static'
7730         ;;
7731       # icc used to be incompatible with GCC.
7732       # ICC 10 doesn't accept -KPIC any more.
7733       icc* | ifort*)
7734         lt_prog_compiler_wl='-Wl,'
7735         lt_prog_compiler_pic='-fPIC'
7736         lt_prog_compiler_static='-static'
7737         ;;
7738       # Lahey Fortran 8.1.
7739       lf95*)
7740         lt_prog_compiler_wl='-Wl,'
7741         lt_prog_compiler_pic='--shared'
7742         lt_prog_compiler_static='--static'
7743         ;;
7744       pgcc* | pgf77* | pgf90* | pgf95*)
7745         # Portland Group compilers (*not* the Pentium gcc compiler,
7746         # which looks to be a dead project)
7747         lt_prog_compiler_wl='-Wl,'
7748         lt_prog_compiler_pic='-fpic'
7749         lt_prog_compiler_static='-Bstatic'
7750         ;;
7751       ccc*)
7752         lt_prog_compiler_wl='-Wl,'
7753         # All Alpha code is PIC.
7754         lt_prog_compiler_static='-non_shared'
7755         ;;
7756       xl*)
7757         # IBM XL C 8.0/Fortran 10.1 on PPC
7758         lt_prog_compiler_wl='-Wl,'
7759         lt_prog_compiler_pic='-qpic'
7760         lt_prog_compiler_static='-qstaticlink'
7761         ;;
7762       *)
7763         case `$CC -V 2>&1 | sed 5q` in
7764         *Sun\ C*)
7765           # Sun C 5.9
7766           lt_prog_compiler_pic='-KPIC'
7767           lt_prog_compiler_static='-Bstatic'
7768           lt_prog_compiler_wl='-Wl,'
7769           ;;
7770         *Sun\ F*)
7771           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7772           lt_prog_compiler_pic='-KPIC'
7773           lt_prog_compiler_static='-Bstatic'
7774           lt_prog_compiler_wl=''
7775           ;;
7776         esac
7777         ;;
7778       esac
7779       ;;
7780
7781     newsos6)
7782       lt_prog_compiler_pic='-KPIC'
7783       lt_prog_compiler_static='-Bstatic'
7784       ;;
7785
7786     *nto* | *qnx*)
7787       # QNX uses GNU C++, but need to define -shared option too, otherwise
7788       # it will coredump.
7789       lt_prog_compiler_pic='-fPIC -shared'
7790       ;;
7791
7792     osf3* | osf4* | osf5*)
7793       lt_prog_compiler_wl='-Wl,'
7794       # All OSF/1 code is PIC.
7795       lt_prog_compiler_static='-non_shared'
7796       ;;
7797
7798     rdos*)
7799       lt_prog_compiler_static='-non_shared'
7800       ;;
7801
7802     solaris*)
7803       lt_prog_compiler_pic='-KPIC'
7804       lt_prog_compiler_static='-Bstatic'
7805       case $cc_basename in
7806       f77* | f90* | f95*)
7807         lt_prog_compiler_wl='-Qoption ld ';;
7808       *)
7809         lt_prog_compiler_wl='-Wl,';;
7810       esac
7811       ;;
7812
7813     sunos4*)
7814       lt_prog_compiler_wl='-Qoption ld '
7815       lt_prog_compiler_pic='-PIC'
7816       lt_prog_compiler_static='-Bstatic'
7817       ;;
7818
7819     sysv4 | sysv4.2uw2* | sysv4.3*)
7820       lt_prog_compiler_wl='-Wl,'
7821       lt_prog_compiler_pic='-KPIC'
7822       lt_prog_compiler_static='-Bstatic'
7823       ;;
7824
7825     sysv4*MP*)
7826       if test -d /usr/nec ;then
7827         lt_prog_compiler_pic='-Kconform_pic'
7828         lt_prog_compiler_static='-Bstatic'
7829       fi
7830       ;;
7831
7832     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7833       lt_prog_compiler_wl='-Wl,'
7834       lt_prog_compiler_pic='-KPIC'
7835       lt_prog_compiler_static='-Bstatic'
7836       ;;
7837
7838     unicos*)
7839       lt_prog_compiler_wl='-Wl,'
7840       lt_prog_compiler_can_build_shared=no
7841       ;;
7842
7843     uts4*)
7844       lt_prog_compiler_pic='-pic'
7845       lt_prog_compiler_static='-Bstatic'
7846       ;;
7847
7848     *)
7849       lt_prog_compiler_can_build_shared=no
7850       ;;
7851     esac
7852   fi
7853
7854 case $host_os in
7855   # For platforms which do not support PIC, -DPIC is meaningless:
7856   *djgpp*)
7857     lt_prog_compiler_pic=
7858     ;;
7859   *)
7860     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7861     ;;
7862 esac
7863 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7864 $as_echo "$lt_prog_compiler_pic" >&6; }
7865
7866
7867
7868
7869
7870
7871 #
7872 # Check to make sure the PIC flag actually works.
7873 #
7874 if test -n "$lt_prog_compiler_pic"; then
7875   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7876 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7877 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7878   $as_echo_n "(cached) " >&6
7879 else
7880   lt_cv_prog_compiler_pic_works=no
7881    ac_outfile=conftest.$ac_objext
7882    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7883    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7884    # Insert the option either (1) after the last *FLAGS variable, or
7885    # (2) before a word containing "conftest.", or (3) at the end.
7886    # Note that $ac_compile itself does not contain backslashes and begins
7887    # with a dollar sign (not a hyphen), so the echo should work correctly.
7888    # The option is referenced via a variable to avoid confusing sed.
7889    lt_compile=`echo "$ac_compile" | $SED \
7890    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7891    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7892    -e 's:$: $lt_compiler_flag:'`
7893    (eval echo "\"\$as_me:7893: $lt_compile\"" >&5)
7894    (eval "$lt_compile" 2>conftest.err)
7895    ac_status=$?
7896    cat conftest.err >&5
7897    echo "$as_me:7897: \$? = $ac_status" >&5
7898    if (exit $ac_status) && test -s "$ac_outfile"; then
7899      # The compiler can only warn and ignore the option if not recognized
7900      # So say no if there are warnings other than the usual output.
7901      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7902      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7903      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7904        lt_cv_prog_compiler_pic_works=yes
7905      fi
7906    fi
7907    $RM conftest*
7908
7909 fi
7910 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7911 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7912
7913 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7914     case $lt_prog_compiler_pic in
7915      "" | " "*) ;;
7916      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7917      esac
7918 else
7919     lt_prog_compiler_pic=
7920      lt_prog_compiler_can_build_shared=no
7921 fi
7922
7923 fi
7924
7925
7926
7927
7928
7929
7930 #
7931 # Check to make sure the static flag actually works.
7932 #
7933 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7934 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7935 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7936 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7937   $as_echo_n "(cached) " >&6
7938 else
7939   lt_cv_prog_compiler_static_works=no
7940    save_LDFLAGS="$LDFLAGS"
7941    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7942    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7943    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7944      # The linker can only warn and ignore the option if not recognized
7945      # So say no if there are warnings
7946      if test -s conftest.err; then
7947        # Append any errors to the config.log.
7948        cat conftest.err 1>&5
7949        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7950        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7951        if diff conftest.exp conftest.er2 >/dev/null; then
7952          lt_cv_prog_compiler_static_works=yes
7953        fi
7954      else
7955        lt_cv_prog_compiler_static_works=yes
7956      fi
7957    fi
7958    $RM -r conftest*
7959    LDFLAGS="$save_LDFLAGS"
7960
7961 fi
7962 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7963 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7964
7965 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7966     :
7967 else
7968     lt_prog_compiler_static=
7969 fi
7970
7971
7972
7973
7974
7975
7976
7977   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7978 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7979 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7980   $as_echo_n "(cached) " >&6
7981 else
7982   lt_cv_prog_compiler_c_o=no
7983    $RM -r conftest 2>/dev/null
7984    mkdir conftest
7985    cd conftest
7986    mkdir out
7987    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7988
7989    lt_compiler_flag="-o out/conftest2.$ac_objext"
7990    # Insert the option either (1) after the last *FLAGS variable, or
7991    # (2) before a word containing "conftest.", or (3) at the end.
7992    # Note that $ac_compile itself does not contain backslashes and begins
7993    # with a dollar sign (not a hyphen), so the echo should work correctly.
7994    lt_compile=`echo "$ac_compile" | $SED \
7995    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7996    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7997    -e 's:$: $lt_compiler_flag:'`
7998    (eval echo "\"\$as_me:7998: $lt_compile\"" >&5)
7999    (eval "$lt_compile" 2>out/conftest.err)
8000    ac_status=$?
8001    cat out/conftest.err >&5
8002    echo "$as_me:8002: \$? = $ac_status" >&5
8003    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8004    then
8005      # The compiler can only warn and ignore the option if not recognized
8006      # So say no if there are warnings
8007      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8008      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8009      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8010        lt_cv_prog_compiler_c_o=yes
8011      fi
8012    fi
8013    chmod u+w . 2>&5
8014    $RM conftest*
8015    # SGI C++ compiler will create directory out/ii_files/ for
8016    # template instantiation
8017    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8018    $RM out/* && rmdir out
8019    cd ..
8020    $RM -r conftest
8021    $RM conftest*
8022
8023 fi
8024 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8025 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8026
8027
8028
8029
8030
8031
8032   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8033 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8034 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8035   $as_echo_n "(cached) " >&6
8036 else
8037   lt_cv_prog_compiler_c_o=no
8038    $RM -r conftest 2>/dev/null
8039    mkdir conftest
8040    cd conftest
8041    mkdir out
8042    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8043
8044    lt_compiler_flag="-o out/conftest2.$ac_objext"
8045    # Insert the option either (1) after the last *FLAGS variable, or
8046    # (2) before a word containing "conftest.", or (3) at the end.
8047    # Note that $ac_compile itself does not contain backslashes and begins
8048    # with a dollar sign (not a hyphen), so the echo should work correctly.
8049    lt_compile=`echo "$ac_compile" | $SED \
8050    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8051    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8052    -e 's:$: $lt_compiler_flag:'`
8053    (eval echo "\"\$as_me:8053: $lt_compile\"" >&5)
8054    (eval "$lt_compile" 2>out/conftest.err)
8055    ac_status=$?
8056    cat out/conftest.err >&5
8057    echo "$as_me:8057: \$? = $ac_status" >&5
8058    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8059    then
8060      # The compiler can only warn and ignore the option if not recognized
8061      # So say no if there are warnings
8062      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8063      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8064      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8065        lt_cv_prog_compiler_c_o=yes
8066      fi
8067    fi
8068    chmod u+w . 2>&5
8069    $RM conftest*
8070    # SGI C++ compiler will create directory out/ii_files/ for
8071    # template instantiation
8072    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8073    $RM out/* && rmdir out
8074    cd ..
8075    $RM -r conftest
8076    $RM conftest*
8077
8078 fi
8079 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8080 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8081
8082
8083
8084
8085 hard_links="nottested"
8086 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8087   # do not overwrite the value of need_locks provided by the user
8088   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8089 $as_echo_n "checking if we can lock with hard links... " >&6; }
8090   hard_links=yes
8091   $RM conftest*
8092   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8093   touch conftest.a
8094   ln conftest.a conftest.b 2>&5 || hard_links=no
8095   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8096   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8097 $as_echo "$hard_links" >&6; }
8098   if test "$hard_links" = no; then
8099     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8100 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8101     need_locks=warn
8102   fi
8103 else
8104   need_locks=no
8105 fi
8106
8107
8108
8109
8110
8111
8112   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8113 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8114
8115   runpath_var=
8116   allow_undefined_flag=
8117   always_export_symbols=no
8118   archive_cmds=
8119   archive_expsym_cmds=
8120   compiler_needs_object=no
8121   enable_shared_with_static_runtimes=no
8122   export_dynamic_flag_spec=
8123   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8124   hardcode_automatic=no
8125   hardcode_direct=no
8126   hardcode_direct_absolute=no
8127   hardcode_libdir_flag_spec=
8128   hardcode_libdir_flag_spec_ld=
8129   hardcode_libdir_separator=
8130   hardcode_minus_L=no
8131   hardcode_shlibpath_var=unsupported
8132   inherit_rpath=no
8133   link_all_deplibs=unknown
8134   module_cmds=
8135   module_expsym_cmds=
8136   old_archive_from_new_cmds=
8137   old_archive_from_expsyms_cmds=
8138   thread_safe_flag_spec=
8139   whole_archive_flag_spec=
8140   # include_expsyms should be a list of space-separated symbols to be *always*
8141   # included in the symbol list
8142   include_expsyms=
8143   # exclude_expsyms can be an extended regexp of symbols to exclude
8144   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8145   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8146   # as well as any symbol that contains `d'.
8147   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8148   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8149   # platforms (ab)use it in PIC code, but their linkers get confused if
8150   # the symbol is explicitly referenced.  Since portable code cannot
8151   # rely on this symbol name, it's probably fine to never include it in
8152   # preloaded symbol tables.
8153   # Exclude shared library initialization/finalization symbols.
8154   extract_expsyms_cmds=
8155
8156   case $host_os in
8157   cygwin* | mingw* | pw32* | cegcc*)
8158     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8159     # When not using gcc, we currently assume that we are using
8160     # Microsoft Visual C++.
8161     if test "$GCC" != yes; then
8162       with_gnu_ld=no
8163     fi
8164     ;;
8165   interix*)
8166     # we just hope/assume this is gcc and not c89 (= MSVC++)
8167     with_gnu_ld=yes
8168     ;;
8169   openbsd*)
8170     with_gnu_ld=no
8171     ;;
8172   linux* | k*bsd*-gnu)
8173     link_all_deplibs=no
8174     ;;
8175   esac
8176
8177   ld_shlibs=yes
8178   if test "$with_gnu_ld" = yes; then
8179     # If archive_cmds runs LD, not CC, wlarc should be empty
8180     wlarc='${wl}'
8181
8182     # Set some defaults for GNU ld with shared library support. These
8183     # are reset later if shared libraries are not supported. Putting them
8184     # here allows them to be overridden if necessary.
8185     runpath_var=LD_RUN_PATH
8186     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8187     export_dynamic_flag_spec='${wl}--export-dynamic'
8188     # ancient GNU ld didn't support --whole-archive et. al.
8189     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8190       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8191     else
8192       whole_archive_flag_spec=
8193     fi
8194     supports_anon_versioning=no
8195     case `$LD -v 2>&1` in
8196       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8197       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8198       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8199       *\ 2.11.*) ;; # other 2.11 versions
8200       *) supports_anon_versioning=yes ;;
8201     esac
8202
8203     # See if GNU ld supports shared libraries.
8204     case $host_os in
8205     aix[3-9]*)
8206       # On AIX/PPC, the GNU linker is very broken
8207       if test "$host_cpu" != ia64; then
8208         ld_shlibs=no
8209         cat <<_LT_EOF 1>&2
8210
8211 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8212 *** to be unable to reliably create shared libraries on AIX.
8213 *** Therefore, libtool is disabling shared libraries support.  If you
8214 *** really care for shared libraries, you may want to modify your PATH
8215 *** so that a non-GNU linker is found, and then restart.
8216
8217 _LT_EOF
8218       fi
8219       ;;
8220
8221     amigaos*)
8222       case $host_cpu in
8223       powerpc)
8224             # see comment about AmigaOS4 .so support
8225             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8226             archive_expsym_cmds=''
8227         ;;
8228       m68k)
8229             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)'
8230             hardcode_libdir_flag_spec='-L$libdir'
8231             hardcode_minus_L=yes
8232         ;;
8233       esac
8234       ;;
8235
8236     beos*)
8237       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8238         allow_undefined_flag=unsupported
8239         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8240         # support --undefined.  This deserves some investigation.  FIXME
8241         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8242       else
8243         ld_shlibs=no
8244       fi
8245       ;;
8246
8247     cygwin* | mingw* | pw32* | cegcc*)
8248       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8249       # as there is no search path for DLLs.
8250       hardcode_libdir_flag_spec='-L$libdir'
8251       allow_undefined_flag=unsupported
8252       always_export_symbols=no
8253       enable_shared_with_static_runtimes=yes
8254       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8255
8256       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8257         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8258         # If the export-symbols file already is a .def file (1st line
8259         # is EXPORTS), use it as is; otherwise, prepend...
8260         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8261           cp $export_symbols $output_objdir/$soname.def;
8262         else
8263           echo EXPORTS > $output_objdir/$soname.def;
8264           cat $export_symbols >> $output_objdir/$soname.def;
8265         fi~
8266         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8267       else
8268         ld_shlibs=no
8269       fi
8270       ;;
8271
8272     interix[3-9]*)
8273       hardcode_direct=no
8274       hardcode_shlibpath_var=no
8275       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8276       export_dynamic_flag_spec='${wl}-E'
8277       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8278       # Instead, shared libraries are loaded at an image base (0x10000000 by
8279       # default) and relocated if they conflict, which is a slow very memory
8280       # consuming and fragmenting process.  To avoid this, we pick a random,
8281       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8282       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8283       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8284       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'
8285       ;;
8286
8287     gnu* | linux* | tpf* | k*bsd*-gnu)
8288       tmp_diet=no
8289       if test "$host_os" = linux-dietlibc; then
8290         case $cc_basename in
8291           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8292         esac
8293       fi
8294       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8295          && test "$tmp_diet" = no
8296       then
8297         tmp_addflag=
8298         tmp_sharedflag='-shared'
8299         case $cc_basename,$host_cpu in
8300         pgcc*)                          # Portland Group C compiler
8301           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'
8302           tmp_addflag=' $pic_flag'
8303           ;;
8304         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8305           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'
8306           tmp_addflag=' $pic_flag -Mnomain' ;;
8307         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8308           tmp_addflag=' -i_dynamic' ;;
8309         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8310           tmp_addflag=' -i_dynamic -nofor_main' ;;
8311         ifc* | ifort*)                  # Intel Fortran compiler
8312           tmp_addflag=' -nofor_main' ;;
8313         lf95*)                          # Lahey Fortran 8.1
8314           whole_archive_flag_spec=
8315           tmp_sharedflag='--shared' ;;
8316         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8317           tmp_sharedflag='-qmkshrobj'
8318           tmp_addflag= ;;
8319         esac
8320         case `$CC -V 2>&1 | sed 5q` in
8321         *Sun\ C*)                       # Sun C 5.9
8322           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'
8323           compiler_needs_object=yes
8324           tmp_sharedflag='-G' ;;
8325         *Sun\ F*)                       # Sun Fortran 8.3
8326           tmp_sharedflag='-G' ;;
8327         esac
8328         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8329
8330         if test "x$supports_anon_versioning" = xyes; then
8331           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8332             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8333             echo "local: *; };" >> $output_objdir/$libname.ver~
8334             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8335         fi
8336
8337         case $cc_basename in
8338         xlf*)
8339           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8340           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8341           hardcode_libdir_flag_spec=
8342           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8343           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8344           if test "x$supports_anon_versioning" = xyes; then
8345             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8346               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8347               echo "local: *; };" >> $output_objdir/$libname.ver~
8348               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8349           fi
8350           ;;
8351         esac
8352       else
8353         ld_shlibs=no
8354       fi
8355       ;;
8356
8357     netbsd* | netbsdelf*-gnu)
8358       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8359         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8360         wlarc=
8361       else
8362         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8363         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8364       fi
8365       ;;
8366
8367     solaris*)
8368       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8369         ld_shlibs=no
8370         cat <<_LT_EOF 1>&2
8371
8372 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8373 *** create shared libraries on Solaris systems.  Therefore, libtool
8374 *** is disabling shared libraries support.  We urge you to upgrade GNU
8375 *** binutils to release 2.9.1 or newer.  Another option is to modify
8376 *** your PATH or compiler configuration so that the native linker is
8377 *** used, and then restart.
8378
8379 _LT_EOF
8380       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8381         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8382         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8383       else
8384         ld_shlibs=no
8385       fi
8386       ;;
8387
8388     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8389       case `$LD -v 2>&1` in
8390         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8391         ld_shlibs=no
8392         cat <<_LT_EOF 1>&2
8393
8394 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8395 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8396 *** is disabling shared libraries support.  We urge you to upgrade GNU
8397 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8398 *** your PATH or compiler configuration so that the native linker is
8399 *** used, and then restart.
8400
8401 _LT_EOF
8402         ;;
8403         *)
8404           # For security reasons, it is highly recommended that you always
8405           # use absolute paths for naming shared libraries, and exclude the
8406           # DT_RUNPATH tag from executables and libraries.  But doing so
8407           # requires that you compile everything twice, which is a pain.
8408           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8409             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8410             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8411             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8412           else
8413             ld_shlibs=no
8414           fi
8415         ;;
8416       esac
8417       ;;
8418
8419     sunos4*)
8420       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8421       wlarc=
8422       hardcode_direct=yes
8423       hardcode_shlibpath_var=no
8424       ;;
8425
8426     *)
8427       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8428         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8429         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8430       else
8431         ld_shlibs=no
8432       fi
8433       ;;
8434     esac
8435
8436     if test "$ld_shlibs" = no; then
8437       runpath_var=
8438       hardcode_libdir_flag_spec=
8439       export_dynamic_flag_spec=
8440       whole_archive_flag_spec=
8441     fi
8442   else
8443     # PORTME fill in a description of your system's linker (not GNU ld)
8444     case $host_os in
8445     aix3*)
8446       allow_undefined_flag=unsupported
8447       always_export_symbols=yes
8448       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'
8449       # Note: this linker hardcodes the directories in LIBPATH if there
8450       # are no directories specified by -L.
8451       hardcode_minus_L=yes
8452       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8453         # Neither direct hardcoding nor static linking is supported with a
8454         # broken collect2.
8455         hardcode_direct=unsupported
8456       fi
8457       ;;
8458
8459     aix[4-9]*)
8460       if test "$host_cpu" = ia64; then
8461         # On IA64, the linker does run time linking by default, so we don't
8462         # have to do anything special.
8463         aix_use_runtimelinking=no
8464         exp_sym_flag='-Bexport'
8465         no_entry_flag=""
8466       else
8467         # If we're using GNU nm, then we don't want the "-C" option.
8468         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8469         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8470           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'
8471         else
8472           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'
8473         fi
8474         aix_use_runtimelinking=no
8475
8476         # Test if we are trying to use run time linking or normal
8477         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8478         # need to do runtime linking.
8479         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8480           for ld_flag in $LDFLAGS; do
8481           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8482             aix_use_runtimelinking=yes
8483             break
8484           fi
8485           done
8486           ;;
8487         esac
8488
8489         exp_sym_flag='-bexport'
8490         no_entry_flag='-bnoentry'
8491       fi
8492
8493       # When large executables or shared objects are built, AIX ld can
8494       # have problems creating the table of contents.  If linking a library
8495       # or program results in "error TOC overflow" add -mminimal-toc to
8496       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8497       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8498
8499       archive_cmds=''
8500       hardcode_direct=yes
8501       hardcode_direct_absolute=yes
8502       hardcode_libdir_separator=':'
8503       link_all_deplibs=yes
8504       file_list_spec='${wl}-f,'
8505
8506       if test "$GCC" = yes; then
8507         case $host_os in aix4.[012]|aix4.[012].*)
8508         # We only want to do this on AIX 4.2 and lower, the check
8509         # below for broken collect2 doesn't work under 4.3+
8510           collect2name=`${CC} -print-prog-name=collect2`
8511           if test -f "$collect2name" &&
8512            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8513           then
8514           # We have reworked collect2
8515           :
8516           else
8517           # We have old collect2
8518           hardcode_direct=unsupported
8519           # It fails to find uninstalled libraries when the uninstalled
8520           # path is not listed in the libpath.  Setting hardcode_minus_L
8521           # to unsupported forces relinking
8522           hardcode_minus_L=yes
8523           hardcode_libdir_flag_spec='-L$libdir'
8524           hardcode_libdir_separator=
8525           fi
8526           ;;
8527         esac
8528         shared_flag='-shared'
8529         if test "$aix_use_runtimelinking" = yes; then
8530           shared_flag="$shared_flag "'${wl}-G'
8531         fi
8532         link_all_deplibs=no
8533       else
8534         # not using gcc
8535         if test "$host_cpu" = ia64; then
8536         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8537         # chokes on -Wl,-G. The following line is correct:
8538           shared_flag='-G'
8539         else
8540           if test "$aix_use_runtimelinking" = yes; then
8541             shared_flag='${wl}-G'
8542           else
8543             shared_flag='${wl}-bM:SRE'
8544           fi
8545         fi
8546       fi
8547
8548       export_dynamic_flag_spec='${wl}-bexpall'
8549       # It seems that -bexpall does not export symbols beginning with
8550       # underscore (_), so it is better to generate a list of symbols to export.
8551       always_export_symbols=yes
8552       if test "$aix_use_runtimelinking" = yes; then
8553         # Warning - without using the other runtime loading flags (-brtl),
8554         # -berok will link without error, but may produce a broken library.
8555         allow_undefined_flag='-berok'
8556         # Determine the default libpath from the value encoded in an
8557         # empty executable.
8558         cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h.  */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h.  */
8564
8565 int
8566 main ()
8567 {
8568
8569   ;
8570   return 0;
8571 }
8572 _ACEOF
8573 rm -f conftest.$ac_objext conftest$ac_exeext
8574 if { (ac_try="$ac_link"
8575 case "(($ac_try" in
8576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577   *) ac_try_echo=$ac_try;;
8578 esac
8579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8580 $as_echo "$ac_try_echo") >&5
8581   (eval "$ac_link") 2>conftest.er1
8582   ac_status=$?
8583   grep -v '^ *+' conftest.er1 >conftest.err
8584   rm -f conftest.er1
8585   cat conftest.err >&5
8586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); } && {
8588          test -z "$ac_c_werror_flag" ||
8589          test ! -s conftest.err
8590        } && test -s conftest$ac_exeext && {
8591          test "$cross_compiling" = yes ||
8592          $as_test_x conftest$ac_exeext
8593        }; then
8594
8595 lt_aix_libpath_sed='
8596     /Import File Strings/,/^$/ {
8597         /^0/ {
8598             s/^0  *\(.*\)$/\1/
8599             p
8600         }
8601     }'
8602 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8603 # Check for a 64-bit object if we didn't find anything.
8604 if test -z "$aix_libpath"; then
8605   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8606 fi
8607 else
8608   $as_echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8610
8611
8612 fi
8613
8614 rm -rf conftest.dSYM
8615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8616       conftest$ac_exeext conftest.$ac_ext
8617 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8618
8619         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8620         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"
8621       else
8622         if test "$host_cpu" = ia64; then
8623           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8624           allow_undefined_flag="-z nodefs"
8625           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"
8626         else
8627          # Determine the default libpath from the value encoded in an
8628          # empty executable.
8629          cat >conftest.$ac_ext <<_ACEOF
8630 /* confdefs.h.  */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h.  */
8635
8636 int
8637 main ()
8638 {
8639
8640   ;
8641   return 0;
8642 }
8643 _ACEOF
8644 rm -f conftest.$ac_objext conftest$ac_exeext
8645 if { (ac_try="$ac_link"
8646 case "(($ac_try" in
8647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8648   *) ac_try_echo=$ac_try;;
8649 esac
8650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8651 $as_echo "$ac_try_echo") >&5
8652   (eval "$ac_link") 2>conftest.er1
8653   ac_status=$?
8654   grep -v '^ *+' conftest.er1 >conftest.err
8655   rm -f conftest.er1
8656   cat conftest.err >&5
8657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); } && {
8659          test -z "$ac_c_werror_flag" ||
8660          test ! -s conftest.err
8661        } && test -s conftest$ac_exeext && {
8662          test "$cross_compiling" = yes ||
8663          $as_test_x conftest$ac_exeext
8664        }; then
8665
8666 lt_aix_libpath_sed='
8667     /Import File Strings/,/^$/ {
8668         /^0/ {
8669             s/^0  *\(.*\)$/\1/
8670             p
8671         }
8672     }'
8673 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8674 # Check for a 64-bit object if we didn't find anything.
8675 if test -z "$aix_libpath"; then
8676   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8677 fi
8678 else
8679   $as_echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682
8683 fi
8684
8685 rm -rf conftest.dSYM
8686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8687       conftest$ac_exeext conftest.$ac_ext
8688 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8689
8690          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8691           # Warning - without using the other run time loading flags,
8692           # -berok will link without error, but may produce a broken library.
8693           no_undefined_flag=' ${wl}-bernotok'
8694           allow_undefined_flag=' ${wl}-berok'
8695           # Exported symbols can be pulled into shared objects from archives
8696           whole_archive_flag_spec='$convenience'
8697           archive_cmds_need_lc=yes
8698           # This is similar to how AIX traditionally builds its shared libraries.
8699           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'
8700         fi
8701       fi
8702       ;;
8703
8704     amigaos*)
8705       case $host_cpu in
8706       powerpc)
8707             # see comment about AmigaOS4 .so support
8708             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8709             archive_expsym_cmds=''
8710         ;;
8711       m68k)
8712             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)'
8713             hardcode_libdir_flag_spec='-L$libdir'
8714             hardcode_minus_L=yes
8715         ;;
8716       esac
8717       ;;
8718
8719     bsdi[45]*)
8720       export_dynamic_flag_spec=-rdynamic
8721       ;;
8722
8723     cygwin* | mingw* | pw32* | cegcc*)
8724       # When not using gcc, we currently assume that we are using
8725       # Microsoft Visual C++.
8726       # hardcode_libdir_flag_spec is actually meaningless, as there is
8727       # no search path for DLLs.
8728       hardcode_libdir_flag_spec=' '
8729       allow_undefined_flag=unsupported
8730       # Tell ltmain to make .lib files, not .a files.
8731       libext=lib
8732       # Tell ltmain to make .dll files, not .so files.
8733       shrext_cmds=".dll"
8734       # FIXME: Setting linknames here is a bad hack.
8735       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8736       # The linker will automatically build a .lib file if we build a DLL.
8737       old_archive_from_new_cmds='true'
8738       # FIXME: Should let the user specify the lib program.
8739       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8740       fix_srcfile_path='`cygpath -w "$srcfile"`'
8741       enable_shared_with_static_runtimes=yes
8742       ;;
8743
8744     darwin* | rhapsody*)
8745
8746
8747   archive_cmds_need_lc=no
8748   hardcode_direct=no
8749   hardcode_automatic=yes
8750   hardcode_shlibpath_var=unsupported
8751   whole_archive_flag_spec=''
8752   link_all_deplibs=yes
8753   allow_undefined_flag="$_lt_dar_allow_undefined"
8754   case $cc_basename in
8755      ifort*) _lt_dar_can_shared=yes ;;
8756      *) _lt_dar_can_shared=$GCC ;;
8757   esac
8758   if test "$_lt_dar_can_shared" = "yes"; then
8759     output_verbose_link_cmd=echo
8760     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8761     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8762     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}"
8763     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}"
8764
8765   else
8766   ld_shlibs=no
8767   fi
8768
8769       ;;
8770
8771     dgux*)
8772       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8773       hardcode_libdir_flag_spec='-L$libdir'
8774       hardcode_shlibpath_var=no
8775       ;;
8776
8777     freebsd1*)
8778       ld_shlibs=no
8779       ;;
8780
8781     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8782     # support.  Future versions do this automatically, but an explicit c++rt0.o
8783     # does not break anything, and helps significantly (at the cost of a little
8784     # extra space).
8785     freebsd2.2*)
8786       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8787       hardcode_libdir_flag_spec='-R$libdir'
8788       hardcode_direct=yes
8789       hardcode_shlibpath_var=no
8790       ;;
8791
8792     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8793     freebsd2*)
8794       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8795       hardcode_direct=yes
8796       hardcode_minus_L=yes
8797       hardcode_shlibpath_var=no
8798       ;;
8799
8800     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8801     freebsd* | dragonfly*)
8802       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8803       hardcode_libdir_flag_spec='-R$libdir'
8804       hardcode_direct=yes
8805       hardcode_shlibpath_var=no
8806       ;;
8807
8808     hpux9*)
8809       if test "$GCC" = yes; then
8810         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'
8811       else
8812         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'
8813       fi
8814       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8815       hardcode_libdir_separator=:
8816       hardcode_direct=yes
8817
8818       # hardcode_minus_L: Not really in the search PATH,
8819       # but as the default location of the library.
8820       hardcode_minus_L=yes
8821       export_dynamic_flag_spec='${wl}-E'
8822       ;;
8823
8824     hpux10*)
8825       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8826         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8827       else
8828         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8829       fi
8830       if test "$with_gnu_ld" = no; then
8831         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8832         hardcode_libdir_flag_spec_ld='+b $libdir'
8833         hardcode_libdir_separator=:
8834         hardcode_direct=yes
8835         hardcode_direct_absolute=yes
8836         export_dynamic_flag_spec='${wl}-E'
8837         # hardcode_minus_L: Not really in the search PATH,
8838         # but as the default location of the library.
8839         hardcode_minus_L=yes
8840       fi
8841       ;;
8842
8843     hpux11*)
8844       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8845         case $host_cpu in
8846         hppa*64*)
8847           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8848           ;;
8849         ia64*)
8850           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8851           ;;
8852         *)
8853           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8854           ;;
8855         esac
8856       else
8857         case $host_cpu in
8858         hppa*64*)
8859           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8860           ;;
8861         ia64*)
8862           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8863           ;;
8864         *)
8865           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8866           ;;
8867         esac
8868       fi
8869       if test "$with_gnu_ld" = no; then
8870         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8871         hardcode_libdir_separator=:
8872
8873         case $host_cpu in
8874         hppa*64*|ia64*)
8875           hardcode_direct=no
8876           hardcode_shlibpath_var=no
8877           ;;
8878         *)
8879           hardcode_direct=yes
8880           hardcode_direct_absolute=yes
8881           export_dynamic_flag_spec='${wl}-E'
8882
8883           # hardcode_minus_L: Not really in the search PATH,
8884           # but as the default location of the library.
8885           hardcode_minus_L=yes
8886           ;;
8887         esac
8888       fi
8889       ;;
8890
8891     irix5* | irix6* | nonstopux*)
8892       if test "$GCC" = yes; then
8893         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'
8894         # Try to use the -exported_symbol ld option, if it does not
8895         # work, assume that -exports_file does not work either and
8896         # implicitly export all symbols.
8897         save_LDFLAGS="$LDFLAGS"
8898         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8899         cat >conftest.$ac_ext <<_ACEOF
8900 int foo(void) {}
8901 _ACEOF
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (ac_try="$ac_link"
8904 case "(($ac_try" in
8905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906   *) ac_try_echo=$ac_try;;
8907 esac
8908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8909 $as_echo "$ac_try_echo") >&5
8910   (eval "$ac_link") 2>conftest.er1
8911   ac_status=$?
8912   grep -v '^ *+' conftest.er1 >conftest.err
8913   rm -f conftest.er1
8914   cat conftest.err >&5
8915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); } && {
8917          test -z "$ac_c_werror_flag" ||
8918          test ! -s conftest.err
8919        } && test -s conftest$ac_exeext && {
8920          test "$cross_compiling" = yes ||
8921          $as_test_x conftest$ac_exeext
8922        }; then
8923   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'
8924
8925 else
8926   $as_echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8928
8929
8930 fi
8931
8932 rm -rf conftest.dSYM
8933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8934       conftest$ac_exeext conftest.$ac_ext
8935         LDFLAGS="$save_LDFLAGS"
8936       else
8937         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'
8938         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'
8939       fi
8940       archive_cmds_need_lc='no'
8941       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8942       hardcode_libdir_separator=:
8943       inherit_rpath=yes
8944       link_all_deplibs=yes
8945       ;;
8946
8947     netbsd* | netbsdelf*-gnu)
8948       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8949         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8950       else
8951         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8952       fi
8953       hardcode_libdir_flag_spec='-R$libdir'
8954       hardcode_direct=yes
8955       hardcode_shlibpath_var=no
8956       ;;
8957
8958     newsos6)
8959       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8960       hardcode_direct=yes
8961       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8962       hardcode_libdir_separator=:
8963       hardcode_shlibpath_var=no
8964       ;;
8965
8966     *nto* | *qnx*)
8967       ;;
8968
8969     openbsd*)
8970       if test -f /usr/libexec/ld.so; then
8971         hardcode_direct=yes
8972         hardcode_shlibpath_var=no
8973         hardcode_direct_absolute=yes
8974         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8975           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8976           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8977           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8978           export_dynamic_flag_spec='${wl}-E'
8979         else
8980           case $host_os in
8981            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8982              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8983              hardcode_libdir_flag_spec='-R$libdir'
8984              ;;
8985            *)
8986              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8987              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8988              ;;
8989           esac
8990         fi
8991       else
8992         ld_shlibs=no
8993       fi
8994       ;;
8995
8996     os2*)
8997       hardcode_libdir_flag_spec='-L$libdir'
8998       hardcode_minus_L=yes
8999       allow_undefined_flag=unsupported
9000       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'
9001       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9002       ;;
9003
9004     osf3*)
9005       if test "$GCC" = yes; then
9006         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9007         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'
9008       else
9009         allow_undefined_flag=' -expect_unresolved \*'
9010         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'
9011       fi
9012       archive_cmds_need_lc='no'
9013       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9014       hardcode_libdir_separator=:
9015       ;;
9016
9017     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9018       if test "$GCC" = yes; then
9019         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9020         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'
9021         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9022       else
9023         allow_undefined_flag=' -expect_unresolved \*'
9024         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'
9025         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~
9026         $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'
9027
9028         # Both c and cxx compiler support -rpath directly
9029         hardcode_libdir_flag_spec='-rpath $libdir'
9030       fi
9031       archive_cmds_need_lc='no'
9032       hardcode_libdir_separator=:
9033       ;;
9034
9035     solaris*)
9036       no_undefined_flag=' -z defs'
9037       if test "$GCC" = yes; then
9038         wlarc='${wl}'
9039         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9040         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9041           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9042       else
9043         case `$CC -V 2>&1` in
9044         *"Compilers 5.0"*)
9045           wlarc=''
9046           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9047           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9048           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9049           ;;
9050         *)
9051           wlarc='${wl}'
9052           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9053           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9054           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9055           ;;
9056         esac
9057       fi
9058       hardcode_libdir_flag_spec='-R$libdir'
9059       hardcode_shlibpath_var=no
9060       case $host_os in
9061       solaris2.[0-5] | solaris2.[0-5].*) ;;
9062       *)
9063         # The compiler driver will combine and reorder linker options,
9064         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9065         # but is careful enough not to reorder.
9066         # Supported since Solaris 2.6 (maybe 2.5.1?)
9067         if test "$GCC" = yes; then
9068           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9069         else
9070           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9071         fi
9072         ;;
9073       esac
9074       link_all_deplibs=yes
9075       ;;
9076
9077     sunos4*)
9078       if test "x$host_vendor" = xsequent; then
9079         # Use $CC to link under sequent, because it throws in some extra .o
9080         # files that make .init and .fini sections work.
9081         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9082       else
9083         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9084       fi
9085       hardcode_libdir_flag_spec='-L$libdir'
9086       hardcode_direct=yes
9087       hardcode_minus_L=yes
9088       hardcode_shlibpath_var=no
9089       ;;
9090
9091     sysv4)
9092       case $host_vendor in
9093         sni)
9094           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9095           hardcode_direct=yes # is this really true???
9096         ;;
9097         siemens)
9098           ## LD is ld it makes a PLAMLIB
9099           ## CC just makes a GrossModule.
9100           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9101           reload_cmds='$CC -r -o $output$reload_objs'
9102           hardcode_direct=no
9103         ;;
9104         motorola)
9105           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9106           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9107         ;;
9108       esac
9109       runpath_var='LD_RUN_PATH'
9110       hardcode_shlibpath_var=no
9111       ;;
9112
9113     sysv4.3*)
9114       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9115       hardcode_shlibpath_var=no
9116       export_dynamic_flag_spec='-Bexport'
9117       ;;
9118
9119     sysv4*MP*)
9120       if test -d /usr/nec; then
9121         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9122         hardcode_shlibpath_var=no
9123         runpath_var=LD_RUN_PATH
9124         hardcode_runpath_var=yes
9125         ld_shlibs=yes
9126       fi
9127       ;;
9128
9129     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9130       no_undefined_flag='${wl}-z,text'
9131       archive_cmds_need_lc=no
9132       hardcode_shlibpath_var=no
9133       runpath_var='LD_RUN_PATH'
9134
9135       if test "$GCC" = yes; then
9136         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9137         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9138       else
9139         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9140         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9141       fi
9142       ;;
9143
9144     sysv5* | sco3.2v5* | sco5v6*)
9145       # Note: We can NOT use -z defs as we might desire, because we do not
9146       # link with -lc, and that would cause any symbols used from libc to
9147       # always be unresolved, which means just about no library would
9148       # ever link correctly.  If we're not using GNU ld we use -z text
9149       # though, which does catch some bad symbols but isn't as heavy-handed
9150       # as -z defs.
9151       no_undefined_flag='${wl}-z,text'
9152       allow_undefined_flag='${wl}-z,nodefs'
9153       archive_cmds_need_lc=no
9154       hardcode_shlibpath_var=no
9155       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9156       hardcode_libdir_separator=':'
9157       link_all_deplibs=yes
9158       export_dynamic_flag_spec='${wl}-Bexport'
9159       runpath_var='LD_RUN_PATH'
9160
9161       if test "$GCC" = yes; then
9162         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9163         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9164       else
9165         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9166         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9167       fi
9168       ;;
9169
9170     uts4*)
9171       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9172       hardcode_libdir_flag_spec='-L$libdir'
9173       hardcode_shlibpath_var=no
9174       ;;
9175
9176     *)
9177       ld_shlibs=no
9178       ;;
9179     esac
9180
9181     if test x$host_vendor = xsni; then
9182       case $host in
9183       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9184         export_dynamic_flag_spec='${wl}-Blargedynsym'
9185         ;;
9186       esac
9187     fi
9188   fi
9189
9190 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9191 $as_echo "$ld_shlibs" >&6; }
9192 test "$ld_shlibs" = no && can_build_shared=no
9193
9194 with_gnu_ld=$with_gnu_ld
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210 #
9211 # Do we need to explicitly link libc?
9212 #
9213 case "x$archive_cmds_need_lc" in
9214 x|xyes)
9215   # Assume -lc should be added
9216   archive_cmds_need_lc=yes
9217
9218   if test "$enable_shared" = yes && test "$GCC" = yes; then
9219     case $archive_cmds in
9220     *'~'*)
9221       # FIXME: we may have to deal with multi-command sequences.
9222       ;;
9223     '$CC '*)
9224       # Test whether the compiler implicitly links with -lc since on some
9225       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9226       # to ld, don't add -lc before -lgcc.
9227       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9228 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9229       $RM conftest*
9230       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9231
9232       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9233   (eval $ac_compile) 2>&5
9234   ac_status=$?
9235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236   (exit $ac_status); } 2>conftest.err; then
9237         soname=conftest
9238         lib=conftest
9239         libobjs=conftest.$ac_objext
9240         deplibs=
9241         wl=$lt_prog_compiler_wl
9242         pic_flag=$lt_prog_compiler_pic
9243         compiler_flags=-v
9244         linker_flags=-v
9245         verstring=
9246         output_objdir=.
9247         libname=conftest
9248         lt_save_allow_undefined_flag=$allow_undefined_flag
9249         allow_undefined_flag=
9250         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9251   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9252   ac_status=$?
9253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); }
9255         then
9256           archive_cmds_need_lc=no
9257         else
9258           archive_cmds_need_lc=yes
9259         fi
9260         allow_undefined_flag=$lt_save_allow_undefined_flag
9261       else
9262         cat conftest.err 1>&5
9263       fi
9264       $RM conftest*
9265       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9266 $as_echo "$archive_cmds_need_lc" >&6; }
9267       ;;
9268     esac
9269   fi
9270   ;;
9271 esac
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9430 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9431
9432 if test "$GCC" = yes; then
9433   case $host_os in
9434     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9435     *) lt_awk_arg="/^libraries:/" ;;
9436   esac
9437   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9438   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9439     # if the path contains ";" then we assume it to be the separator
9440     # otherwise default to the standard path separator (i.e. ":") - it is
9441     # assumed that no part of a normal pathname contains ";" but that should
9442     # okay in the real world where ";" in dirpaths is itself problematic.
9443     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9444   else
9445     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9446   fi
9447   # Ok, now we have the path, separated by spaces, we can step through it
9448   # and add multilib dir if necessary.
9449   lt_tmp_lt_search_path_spec=
9450   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9451   for lt_sys_path in $lt_search_path_spec; do
9452     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9453       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9454     else
9455       test -d "$lt_sys_path" && \
9456         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9457     fi
9458   done
9459   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9460 BEGIN {RS=" "; FS="/|\n";} {
9461   lt_foo="";
9462   lt_count=0;
9463   for (lt_i = NF; lt_i > 0; lt_i--) {
9464     if ($lt_i != "" && $lt_i != ".") {
9465       if ($lt_i == "..") {
9466         lt_count++;
9467       } else {
9468         if (lt_count == 0) {
9469           lt_foo="/" $lt_i lt_foo;
9470         } else {
9471           lt_count--;
9472         }
9473       }
9474     }
9475   }
9476   if (lt_foo != "") { lt_freq[lt_foo]++; }
9477   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9478 }'`
9479   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9480 else
9481   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9482 fi
9483 library_names_spec=
9484 libname_spec='lib$name'
9485 soname_spec=
9486 shrext_cmds=".so"
9487 postinstall_cmds=
9488 postuninstall_cmds=
9489 finish_cmds=
9490 finish_eval=
9491 shlibpath_var=
9492 shlibpath_overrides_runpath=unknown
9493 version_type=none
9494 dynamic_linker="$host_os ld.so"
9495 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9496 need_lib_prefix=unknown
9497 hardcode_into_libs=no
9498
9499 # when you set need_version to no, make sure it does not cause -set_version
9500 # flags to be left without arguments
9501 need_version=unknown
9502
9503 case $host_os in
9504 aix3*)
9505   version_type=linux
9506   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9507   shlibpath_var=LIBPATH
9508
9509   # AIX 3 has no versioning support, so we append a major version to the name.
9510   soname_spec='${libname}${release}${shared_ext}$major'
9511   ;;
9512
9513 aix[4-9]*)
9514   version_type=linux
9515   need_lib_prefix=no
9516   need_version=no
9517   hardcode_into_libs=yes
9518   if test "$host_cpu" = ia64; then
9519     # AIX 5 supports IA64
9520     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9521     shlibpath_var=LD_LIBRARY_PATH
9522   else
9523     # With GCC up to 2.95.x, collect2 would create an import file
9524     # for dependence libraries.  The import file would start with
9525     # the line `#! .'.  This would cause the generated library to
9526     # depend on `.', always an invalid library.  This was fixed in
9527     # development snapshots of GCC prior to 3.0.
9528     case $host_os in
9529       aix4 | aix4.[01] | aix4.[01].*)
9530       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9531            echo ' yes '
9532            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9533         :
9534       else
9535         can_build_shared=no
9536       fi
9537       ;;
9538     esac
9539     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9540     # soname into executable. Probably we can add versioning support to
9541     # collect2, so additional links can be useful in future.
9542     if test "$aix_use_runtimelinking" = yes; then
9543       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9544       # instead of lib<name>.a to let people know that these are not
9545       # typical AIX shared libraries.
9546       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9547     else
9548       # We preserve .a as extension for shared libraries through AIX4.2
9549       # and later when we are not doing run time linking.
9550       library_names_spec='${libname}${release}.a $libname.a'
9551       soname_spec='${libname}${release}${shared_ext}$major'
9552     fi
9553     shlibpath_var=LIBPATH
9554   fi
9555   ;;
9556
9557 amigaos*)
9558   case $host_cpu in
9559   powerpc)
9560     # Since July 2007 AmigaOS4 officially supports .so libraries.
9561     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9562     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9563     ;;
9564   m68k)
9565     library_names_spec='$libname.ixlibrary $libname.a'
9566     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9567     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'
9568     ;;
9569   esac
9570   ;;
9571
9572 beos*)
9573   library_names_spec='${libname}${shared_ext}'
9574   dynamic_linker="$host_os ld.so"
9575   shlibpath_var=LIBRARY_PATH
9576   ;;
9577
9578 bsdi[45]*)
9579   version_type=linux
9580   need_version=no
9581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9582   soname_spec='${libname}${release}${shared_ext}$major'
9583   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9584   shlibpath_var=LD_LIBRARY_PATH
9585   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9586   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9587   # the default ld.so.conf also contains /usr/contrib/lib and
9588   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9589   # libtool to hard-code these into programs
9590   ;;
9591
9592 cygwin* | mingw* | pw32* | cegcc*)
9593   version_type=windows
9594   shrext_cmds=".dll"
9595   need_version=no
9596   need_lib_prefix=no
9597
9598   case $GCC,$host_os in
9599   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9600     library_names_spec='$libname.dll.a'
9601     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9602     postinstall_cmds='base_file=`basename \${file}`~
9603       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9604       dldir=$destdir/`dirname \$dlpath`~
9605       test -d \$dldir || mkdir -p \$dldir~
9606       $install_prog $dir/$dlname \$dldir/$dlname~
9607       chmod a+x \$dldir/$dlname~
9608       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9609         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9610       fi'
9611     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9612       dlpath=$dir/\$dldll~
9613        $RM \$dlpath'
9614     shlibpath_overrides_runpath=yes
9615
9616     case $host_os in
9617     cygwin*)
9618       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9619       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9620       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9621       ;;
9622     mingw* | cegcc*)
9623       # MinGW DLLs use traditional 'lib' prefix
9624       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9625       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9626       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9627         # It is most probably a Windows format PATH printed by
9628         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9629         # path with ; separators, and with drive letters. We can handle the
9630         # drive letters (cygwin fileutils understands them), so leave them,
9631         # especially as we might pass files found there to a mingw objdump,
9632         # which wouldn't understand a cygwinified path. Ahh.
9633         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9634       else
9635         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9636       fi
9637       ;;
9638     pw32*)
9639       # pw32 DLLs use 'pw' prefix rather than 'lib'
9640       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9641       ;;
9642     esac
9643     ;;
9644
9645   *)
9646     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9647     ;;
9648   esac
9649   dynamic_linker='Win32 ld.exe'
9650   # FIXME: first we should search . and the directory the executable is in
9651   shlibpath_var=PATH
9652   ;;
9653
9654 darwin* | rhapsody*)
9655   dynamic_linker="$host_os dyld"
9656   version_type=darwin
9657   need_lib_prefix=no
9658   need_version=no
9659   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9660   soname_spec='${libname}${release}${major}$shared_ext'
9661   shlibpath_overrides_runpath=yes
9662   shlibpath_var=DYLD_LIBRARY_PATH
9663   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9664
9665   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9666   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9667   ;;
9668
9669 dgux*)
9670   version_type=linux
9671   need_lib_prefix=no
9672   need_version=no
9673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9674   soname_spec='${libname}${release}${shared_ext}$major'
9675   shlibpath_var=LD_LIBRARY_PATH
9676   ;;
9677
9678 freebsd1*)
9679   dynamic_linker=no
9680   ;;
9681
9682 freebsd* | dragonfly*)
9683   # DragonFly does not have aout.  When/if they implement a new
9684   # versioning mechanism, adjust this.
9685   if test -x /usr/bin/objformat; then
9686     objformat=`/usr/bin/objformat`
9687   else
9688     case $host_os in
9689     freebsd[123]*) objformat=aout ;;
9690     *) objformat=elf ;;
9691     esac
9692   fi
9693   version_type=freebsd-$objformat
9694   case $version_type in
9695     freebsd-elf*)
9696       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9697       need_version=no
9698       need_lib_prefix=no
9699       ;;
9700     freebsd-*)
9701       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9702       need_version=yes
9703       ;;
9704   esac
9705   shlibpath_var=LD_LIBRARY_PATH
9706   case $host_os in
9707   freebsd2*)
9708     shlibpath_overrides_runpath=yes
9709     ;;
9710   freebsd3.[01]* | freebsdelf3.[01]*)
9711     shlibpath_overrides_runpath=yes
9712     hardcode_into_libs=yes
9713     ;;
9714   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9715   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9716     shlibpath_overrides_runpath=no
9717     hardcode_into_libs=yes
9718     ;;
9719   *) # from 4.6 on, and DragonFly
9720     shlibpath_overrides_runpath=yes
9721     hardcode_into_libs=yes
9722     ;;
9723   esac
9724   ;;
9725
9726 gnu*)
9727   version_type=linux
9728   need_lib_prefix=no
9729   need_version=no
9730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9731   soname_spec='${libname}${release}${shared_ext}$major'
9732   shlibpath_var=LD_LIBRARY_PATH
9733   hardcode_into_libs=yes
9734   ;;
9735
9736 hpux9* | hpux10* | hpux11*)
9737   # Give a soname corresponding to the major version so that dld.sl refuses to
9738   # link against other versions.
9739   version_type=sunos
9740   need_lib_prefix=no
9741   need_version=no
9742   case $host_cpu in
9743   ia64*)
9744     shrext_cmds='.so'
9745     hardcode_into_libs=yes
9746     dynamic_linker="$host_os dld.so"
9747     shlibpath_var=LD_LIBRARY_PATH
9748     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9749     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9750     soname_spec='${libname}${release}${shared_ext}$major'
9751     if test "X$HPUX_IA64_MODE" = X32; then
9752       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9753     else
9754       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9755     fi
9756     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9757     ;;
9758   hppa*64*)
9759     shrext_cmds='.sl'
9760     hardcode_into_libs=yes
9761     dynamic_linker="$host_os dld.sl"
9762     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9763     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9764     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9765     soname_spec='${libname}${release}${shared_ext}$major'
9766     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9767     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9768     ;;
9769   *)
9770     shrext_cmds='.sl'
9771     dynamic_linker="$host_os dld.sl"
9772     shlibpath_var=SHLIB_PATH
9773     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9774     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9775     soname_spec='${libname}${release}${shared_ext}$major'
9776     ;;
9777   esac
9778   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9779   postinstall_cmds='chmod 555 $lib'
9780   ;;
9781
9782 interix[3-9]*)
9783   version_type=linux
9784   need_lib_prefix=no
9785   need_version=no
9786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9787   soname_spec='${libname}${release}${shared_ext}$major'
9788   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9789   shlibpath_var=LD_LIBRARY_PATH
9790   shlibpath_overrides_runpath=no
9791   hardcode_into_libs=yes
9792   ;;
9793
9794 irix5* | irix6* | nonstopux*)
9795   case $host_os in
9796     nonstopux*) version_type=nonstopux ;;
9797     *)
9798         if test "$lt_cv_prog_gnu_ld" = yes; then
9799                 version_type=linux
9800         else
9801                 version_type=irix
9802         fi ;;
9803   esac
9804   need_lib_prefix=no
9805   need_version=no
9806   soname_spec='${libname}${release}${shared_ext}$major'
9807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9808   case $host_os in
9809   irix5* | nonstopux*)
9810     libsuff= shlibsuff=
9811     ;;
9812   *)
9813     case $LD in # libtool.m4 will add one of these switches to LD
9814     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9815       libsuff= shlibsuff= libmagic=32-bit;;
9816     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9817       libsuff=32 shlibsuff=N32 libmagic=N32;;
9818     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9819       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9820     *) libsuff= shlibsuff= libmagic=never-match;;
9821     esac
9822     ;;
9823   esac
9824   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9825   shlibpath_overrides_runpath=no
9826   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9827   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9828   hardcode_into_libs=yes
9829   ;;
9830
9831 # No shared lib support for Linux oldld, aout, or coff.
9832 linux*oldld* | linux*aout* | linux*coff*)
9833   dynamic_linker=no
9834   ;;
9835
9836 # This must be Linux ELF.
9837 linux* | k*bsd*-gnu)
9838   version_type=linux
9839   need_lib_prefix=no
9840   need_version=no
9841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9842   soname_spec='${libname}${release}${shared_ext}$major'
9843   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9844   shlibpath_var=LD_LIBRARY_PATH
9845   shlibpath_overrides_runpath=no
9846   # Some binutils ld are patched to set DT_RUNPATH
9847   save_LDFLAGS=$LDFLAGS
9848   save_libdir=$libdir
9849   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9850        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9851   cat >conftest.$ac_ext <<_ACEOF
9852 /* confdefs.h.  */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h.  */
9857
9858 int
9859 main ()
9860 {
9861
9862   ;
9863   return 0;
9864 }
9865 _ACEOF
9866 rm -f conftest.$ac_objext conftest$ac_exeext
9867 if { (ac_try="$ac_link"
9868 case "(($ac_try" in
9869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870   *) ac_try_echo=$ac_try;;
9871 esac
9872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9873 $as_echo "$ac_try_echo") >&5
9874   (eval "$ac_link") 2>conftest.er1
9875   ac_status=$?
9876   grep -v '^ *+' conftest.er1 >conftest.err
9877   rm -f conftest.er1
9878   cat conftest.err >&5
9879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); } && {
9881          test -z "$ac_c_werror_flag" ||
9882          test ! -s conftest.err
9883        } && test -s conftest$ac_exeext && {
9884          test "$cross_compiling" = yes ||
9885          $as_test_x conftest$ac_exeext
9886        }; then
9887   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9888   shlibpath_overrides_runpath=yes
9889 fi
9890
9891 else
9892   $as_echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9894
9895
9896 fi
9897
9898 rm -rf conftest.dSYM
9899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9900       conftest$ac_exeext conftest.$ac_ext
9901   LDFLAGS=$save_LDFLAGS
9902   libdir=$save_libdir
9903
9904   # This implies no fast_install, which is unacceptable.
9905   # Some rework will be needed to allow for fast_install
9906   # before this can be enabled.
9907   hardcode_into_libs=yes
9908
9909   # Append ld.so.conf contents to the search path
9910   if test -f /etc/ld.so.conf; then
9911     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' ' '`
9912     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9913   fi
9914
9915   # We used to test for /lib/ld.so.1 and disable shared libraries on
9916   # powerpc, because MkLinux only supported shared libraries with the
9917   # GNU dynamic linker.  Since this was broken with cross compilers,
9918   # most powerpc-linux boxes support dynamic linking these days and
9919   # people can always --disable-shared, the test was removed, and we
9920   # assume the GNU/Linux dynamic linker is in use.
9921   dynamic_linker='GNU/Linux ld.so'
9922   ;;
9923
9924 netbsdelf*-gnu)
9925   version_type=linux
9926   need_lib_prefix=no
9927   need_version=no
9928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9929   soname_spec='${libname}${release}${shared_ext}$major'
9930   shlibpath_var=LD_LIBRARY_PATH
9931   shlibpath_overrides_runpath=no
9932   hardcode_into_libs=yes
9933   dynamic_linker='NetBSD ld.elf_so'
9934   ;;
9935
9936 netbsd*)
9937   version_type=sunos
9938   need_lib_prefix=no
9939   need_version=no
9940   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9942     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9943     dynamic_linker='NetBSD (a.out) ld.so'
9944   else
9945     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9946     soname_spec='${libname}${release}${shared_ext}$major'
9947     dynamic_linker='NetBSD ld.elf_so'
9948   fi
9949   shlibpath_var=LD_LIBRARY_PATH
9950   shlibpath_overrides_runpath=yes
9951   hardcode_into_libs=yes
9952   ;;
9953
9954 newsos6)
9955   version_type=linux
9956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957   shlibpath_var=LD_LIBRARY_PATH
9958   shlibpath_overrides_runpath=yes
9959   ;;
9960
9961 *nto* | *qnx*)
9962   version_type=qnx
9963   need_lib_prefix=no
9964   need_version=no
9965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966   soname_spec='${libname}${release}${shared_ext}$major'
9967   shlibpath_var=LD_LIBRARY_PATH
9968   shlibpath_overrides_runpath=no
9969   hardcode_into_libs=yes
9970   dynamic_linker='ldqnx.so'
9971   ;;
9972
9973 openbsd*)
9974   version_type=sunos
9975   sys_lib_dlsearch_path_spec="/usr/lib"
9976   need_lib_prefix=no
9977   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9978   case $host_os in
9979     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9980     *)                          need_version=no  ;;
9981   esac
9982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9983   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9984   shlibpath_var=LD_LIBRARY_PATH
9985   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9986     case $host_os in
9987       openbsd2.[89] | openbsd2.[89].*)
9988         shlibpath_overrides_runpath=no
9989         ;;
9990       *)
9991         shlibpath_overrides_runpath=yes
9992         ;;
9993       esac
9994   else
9995     shlibpath_overrides_runpath=yes
9996   fi
9997   ;;
9998
9999 os2*)
10000   libname_spec='$name'
10001   shrext_cmds=".dll"
10002   need_lib_prefix=no
10003   library_names_spec='$libname${shared_ext} $libname.a'
10004   dynamic_linker='OS/2 ld.exe'
10005   shlibpath_var=LIBPATH
10006   ;;
10007
10008 osf3* | osf4* | osf5*)
10009   version_type=osf
10010   need_lib_prefix=no
10011   need_version=no
10012   soname_spec='${libname}${release}${shared_ext}$major'
10013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014   shlibpath_var=LD_LIBRARY_PATH
10015   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10016   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10017   ;;
10018
10019 rdos*)
10020   dynamic_linker=no
10021   ;;
10022
10023 solaris*)
10024   version_type=linux
10025   need_lib_prefix=no
10026   need_version=no
10027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028   soname_spec='${libname}${release}${shared_ext}$major'
10029   shlibpath_var=LD_LIBRARY_PATH
10030   shlibpath_overrides_runpath=yes
10031   hardcode_into_libs=yes
10032   # ldd complains unless libraries are executable
10033   postinstall_cmds='chmod +x $lib'
10034   ;;
10035
10036 sunos4*)
10037   version_type=sunos
10038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10039   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10040   shlibpath_var=LD_LIBRARY_PATH
10041   shlibpath_overrides_runpath=yes
10042   if test "$with_gnu_ld" = yes; then
10043     need_lib_prefix=no
10044   fi
10045   need_version=yes
10046   ;;
10047
10048 sysv4 | sysv4.3*)
10049   version_type=linux
10050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051   soname_spec='${libname}${release}${shared_ext}$major'
10052   shlibpath_var=LD_LIBRARY_PATH
10053   case $host_vendor in
10054     sni)
10055       shlibpath_overrides_runpath=no
10056       need_lib_prefix=no
10057       runpath_var=LD_RUN_PATH
10058       ;;
10059     siemens)
10060       need_lib_prefix=no
10061       ;;
10062     motorola)
10063       need_lib_prefix=no
10064       need_version=no
10065       shlibpath_overrides_runpath=no
10066       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10067       ;;
10068   esac
10069   ;;
10070
10071 sysv4*MP*)
10072   if test -d /usr/nec ;then
10073     version_type=linux
10074     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10075     soname_spec='$libname${shared_ext}.$major'
10076     shlibpath_var=LD_LIBRARY_PATH
10077   fi
10078   ;;
10079
10080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10081   version_type=freebsd-elf
10082   need_lib_prefix=no
10083   need_version=no
10084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10085   soname_spec='${libname}${release}${shared_ext}$major'
10086   shlibpath_var=LD_LIBRARY_PATH
10087   shlibpath_overrides_runpath=yes
10088   hardcode_into_libs=yes
10089   if test "$with_gnu_ld" = yes; then
10090     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10091   else
10092     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10093     case $host_os in
10094       sco3.2v5*)
10095         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10096         ;;
10097     esac
10098   fi
10099   sys_lib_dlsearch_path_spec='/usr/lib'
10100   ;;
10101
10102 tpf*)
10103   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10104   version_type=linux
10105   need_lib_prefix=no
10106   need_version=no
10107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10108   shlibpath_var=LD_LIBRARY_PATH
10109   shlibpath_overrides_runpath=no
10110   hardcode_into_libs=yes
10111   ;;
10112
10113 uts4*)
10114   version_type=linux
10115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116   soname_spec='${libname}${release}${shared_ext}$major'
10117   shlibpath_var=LD_LIBRARY_PATH
10118   ;;
10119
10120 *)
10121   dynamic_linker=no
10122   ;;
10123 esac
10124 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10125 $as_echo "$dynamic_linker" >&6; }
10126 test "$dynamic_linker" = no && can_build_shared=no
10127
10128 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10129 if test "$GCC" = yes; then
10130   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10131 fi
10132
10133 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10134   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10135 fi
10136 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10137   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10138 fi
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10227 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10228 hardcode_action=
10229 if test -n "$hardcode_libdir_flag_spec" ||
10230    test -n "$runpath_var" ||
10231    test "X$hardcode_automatic" = "Xyes" ; then
10232
10233   # We can hardcode non-existent directories.
10234   if test "$hardcode_direct" != no &&
10235      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10236      # have to relink, otherwise we might link with an installed library
10237      # when we should be linking with a yet-to-be-installed one
10238      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10239      test "$hardcode_minus_L" != no; then
10240     # Linking always hardcodes the temporary library directory.
10241     hardcode_action=relink
10242   else
10243     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10244     hardcode_action=immediate
10245   fi
10246 else
10247   # We cannot hardcode anything, or else we can only hardcode existing
10248   # directories.
10249   hardcode_action=unsupported
10250 fi
10251 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10252 $as_echo "$hardcode_action" >&6; }
10253
10254 if test "$hardcode_action" = relink ||
10255    test "$inherit_rpath" = yes; then
10256   # Fast installation is not supported
10257   enable_fast_install=no
10258 elif test "$shlibpath_overrides_runpath" = yes ||
10259      test "$enable_shared" = no; then
10260   # Fast installation is not necessary
10261   enable_fast_install=needless
10262 fi
10263
10264
10265
10266
10267
10268
10269   if test "x$enable_dlopen" != xyes; then
10270   enable_dlopen=unknown
10271   enable_dlopen_self=unknown
10272   enable_dlopen_self_static=unknown
10273 else
10274   lt_cv_dlopen=no
10275   lt_cv_dlopen_libs=
10276
10277   case $host_os in
10278   beos*)
10279     lt_cv_dlopen="load_add_on"
10280     lt_cv_dlopen_libs=
10281     lt_cv_dlopen_self=yes
10282     ;;
10283
10284   mingw* | pw32* | cegcc*)
10285     lt_cv_dlopen="LoadLibrary"
10286     lt_cv_dlopen_libs=
10287     ;;
10288
10289   cygwin*)
10290     lt_cv_dlopen="dlopen"
10291     lt_cv_dlopen_libs=
10292     ;;
10293
10294   darwin*)
10295   # if libdl is installed we need to link against it
10296     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10297 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10298 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10299   $as_echo_n "(cached) " >&6
10300 else
10301   ac_check_lib_save_LIBS=$LIBS
10302 LIBS="-ldl  $LIBS"
10303 cat >conftest.$ac_ext <<_ACEOF
10304 /* confdefs.h.  */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h.  */
10309
10310 /* Override any GCC internal prototype to avoid an error.
10311    Use char because int might match the return type of a GCC
10312    builtin and then its argument prototype would still apply.  */
10313 #ifdef __cplusplus
10314 extern "C"
10315 #endif
10316 char dlopen ();
10317 int
10318 main ()
10319 {
10320 return dlopen ();
10321   ;
10322   return 0;
10323 }
10324 _ACEOF
10325 rm -f conftest.$ac_objext conftest$ac_exeext
10326 if { (ac_try="$ac_link"
10327 case "(($ac_try" in
10328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329   *) ac_try_echo=$ac_try;;
10330 esac
10331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10332 $as_echo "$ac_try_echo") >&5
10333   (eval "$ac_link") 2>conftest.er1
10334   ac_status=$?
10335   grep -v '^ *+' conftest.er1 >conftest.err
10336   rm -f conftest.er1
10337   cat conftest.err >&5
10338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339   (exit $ac_status); } && {
10340          test -z "$ac_c_werror_flag" ||
10341          test ! -s conftest.err
10342        } && test -s conftest$ac_exeext && {
10343          test "$cross_compiling" = yes ||
10344          $as_test_x conftest$ac_exeext
10345        }; then
10346   ac_cv_lib_dl_dlopen=yes
10347 else
10348   $as_echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10350
10351         ac_cv_lib_dl_dlopen=no
10352 fi
10353
10354 rm -rf conftest.dSYM
10355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10356       conftest$ac_exeext conftest.$ac_ext
10357 LIBS=$ac_check_lib_save_LIBS
10358 fi
10359 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10360 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10361 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10362   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10363 else
10364
10365     lt_cv_dlopen="dyld"
10366     lt_cv_dlopen_libs=
10367     lt_cv_dlopen_self=yes
10368
10369 fi
10370
10371     ;;
10372
10373   *)
10374     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10375 $as_echo_n "checking for shl_load... " >&6; }
10376 if test "${ac_cv_func_shl_load+set}" = set; then
10377   $as_echo_n "(cached) " >&6
10378 else
10379   cat >conftest.$ac_ext <<_ACEOF
10380 /* confdefs.h.  */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h.  */
10385 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10386    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10387 #define shl_load innocuous_shl_load
10388
10389 /* System header to define __stub macros and hopefully few prototypes,
10390     which can conflict with char shl_load (); below.
10391     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10392     <limits.h> exists even on freestanding compilers.  */
10393
10394 #ifdef __STDC__
10395 # include <limits.h>
10396 #else
10397 # include <assert.h>
10398 #endif
10399
10400 #undef shl_load
10401
10402 /* Override any GCC internal prototype to avoid an error.
10403    Use char because int might match the return type of a GCC
10404    builtin and then its argument prototype would still apply.  */
10405 #ifdef __cplusplus
10406 extern "C"
10407 #endif
10408 char shl_load ();
10409 /* The GNU C library defines this for functions which it implements
10410     to always fail with ENOSYS.  Some functions are actually named
10411     something starting with __ and the normal name is an alias.  */
10412 #if defined __stub_shl_load || defined __stub___shl_load
10413 choke me
10414 #endif
10415
10416 int
10417 main ()
10418 {
10419 return shl_load ();
10420   ;
10421   return 0;
10422 }
10423 _ACEOF
10424 rm -f conftest.$ac_objext conftest$ac_exeext
10425 if { (ac_try="$ac_link"
10426 case "(($ac_try" in
10427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428   *) ac_try_echo=$ac_try;;
10429 esac
10430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10431 $as_echo "$ac_try_echo") >&5
10432   (eval "$ac_link") 2>conftest.er1
10433   ac_status=$?
10434   grep -v '^ *+' conftest.er1 >conftest.err
10435   rm -f conftest.er1
10436   cat conftest.err >&5
10437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438   (exit $ac_status); } && {
10439          test -z "$ac_c_werror_flag" ||
10440          test ! -s conftest.err
10441        } && test -s conftest$ac_exeext && {
10442          test "$cross_compiling" = yes ||
10443          $as_test_x conftest$ac_exeext
10444        }; then
10445   ac_cv_func_shl_load=yes
10446 else
10447   $as_echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10449
10450         ac_cv_func_shl_load=no
10451 fi
10452
10453 rm -rf conftest.dSYM
10454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10455       conftest$ac_exeext conftest.$ac_ext
10456 fi
10457 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10458 $as_echo "$ac_cv_func_shl_load" >&6; }
10459 if test "x$ac_cv_func_shl_load" = x""yes; then
10460   lt_cv_dlopen="shl_load"
10461 else
10462   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10463 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10464 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10465   $as_echo_n "(cached) " >&6
10466 else
10467   ac_check_lib_save_LIBS=$LIBS
10468 LIBS="-ldld  $LIBS"
10469 cat >conftest.$ac_ext <<_ACEOF
10470 /* confdefs.h.  */
10471 _ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h.  */
10475
10476 /* Override any GCC internal prototype to avoid an error.
10477    Use char because int might match the return type of a GCC
10478    builtin and then its argument prototype would still apply.  */
10479 #ifdef __cplusplus
10480 extern "C"
10481 #endif
10482 char shl_load ();
10483 int
10484 main ()
10485 {
10486 return shl_load ();
10487   ;
10488   return 0;
10489 }
10490 _ACEOF
10491 rm -f conftest.$ac_objext conftest$ac_exeext
10492 if { (ac_try="$ac_link"
10493 case "(($ac_try" in
10494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495   *) ac_try_echo=$ac_try;;
10496 esac
10497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10498 $as_echo "$ac_try_echo") >&5
10499   (eval "$ac_link") 2>conftest.er1
10500   ac_status=$?
10501   grep -v '^ *+' conftest.er1 >conftest.err
10502   rm -f conftest.er1
10503   cat conftest.err >&5
10504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505   (exit $ac_status); } && {
10506          test -z "$ac_c_werror_flag" ||
10507          test ! -s conftest.err
10508        } && test -s conftest$ac_exeext && {
10509          test "$cross_compiling" = yes ||
10510          $as_test_x conftest$ac_exeext
10511        }; then
10512   ac_cv_lib_dld_shl_load=yes
10513 else
10514   $as_echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10516
10517         ac_cv_lib_dld_shl_load=no
10518 fi
10519
10520 rm -rf conftest.dSYM
10521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10522       conftest$ac_exeext conftest.$ac_ext
10523 LIBS=$ac_check_lib_save_LIBS
10524 fi
10525 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10526 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10527 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10528   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10529 else
10530   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10531 $as_echo_n "checking for dlopen... " >&6; }
10532 if test "${ac_cv_func_dlopen+set}" = set; then
10533   $as_echo_n "(cached) " >&6
10534 else
10535   cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h.  */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h.  */
10541 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10543 #define dlopen innocuous_dlopen
10544
10545 /* System header to define __stub macros and hopefully few prototypes,
10546     which can conflict with char dlopen (); below.
10547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10548     <limits.h> exists even on freestanding compilers.  */
10549
10550 #ifdef __STDC__
10551 # include <limits.h>
10552 #else
10553 # include <assert.h>
10554 #endif
10555
10556 #undef dlopen
10557
10558 /* Override any GCC internal prototype to avoid an error.
10559    Use char because int might match the return type of a GCC
10560    builtin and then its argument prototype would still apply.  */
10561 #ifdef __cplusplus
10562 extern "C"
10563 #endif
10564 char dlopen ();
10565 /* The GNU C library defines this for functions which it implements
10566     to always fail with ENOSYS.  Some functions are actually named
10567     something starting with __ and the normal name is an alias.  */
10568 #if defined __stub_dlopen || defined __stub___dlopen
10569 choke me
10570 #endif
10571
10572 int
10573 main ()
10574 {
10575 return dlopen ();
10576   ;
10577   return 0;
10578 }
10579 _ACEOF
10580 rm -f conftest.$ac_objext conftest$ac_exeext
10581 if { (ac_try="$ac_link"
10582 case "(($ac_try" in
10583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584   *) ac_try_echo=$ac_try;;
10585 esac
10586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10587 $as_echo "$ac_try_echo") >&5
10588   (eval "$ac_link") 2>conftest.er1
10589   ac_status=$?
10590   grep -v '^ *+' conftest.er1 >conftest.err
10591   rm -f conftest.er1
10592   cat conftest.err >&5
10593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594   (exit $ac_status); } && {
10595          test -z "$ac_c_werror_flag" ||
10596          test ! -s conftest.err
10597        } && test -s conftest$ac_exeext && {
10598          test "$cross_compiling" = yes ||
10599          $as_test_x conftest$ac_exeext
10600        }; then
10601   ac_cv_func_dlopen=yes
10602 else
10603   $as_echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10605
10606         ac_cv_func_dlopen=no
10607 fi
10608
10609 rm -rf conftest.dSYM
10610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10611       conftest$ac_exeext conftest.$ac_ext
10612 fi
10613 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10614 $as_echo "$ac_cv_func_dlopen" >&6; }
10615 if test "x$ac_cv_func_dlopen" = x""yes; then
10616   lt_cv_dlopen="dlopen"
10617 else
10618   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10619 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10621   $as_echo_n "(cached) " >&6
10622 else
10623   ac_check_lib_save_LIBS=$LIBS
10624 LIBS="-ldl  $LIBS"
10625 cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h.  */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h.  */
10631
10632 /* Override any GCC internal prototype to avoid an error.
10633    Use char because int might match the return type of a GCC
10634    builtin and then its argument prototype would still apply.  */
10635 #ifdef __cplusplus
10636 extern "C"
10637 #endif
10638 char dlopen ();
10639 int
10640 main ()
10641 {
10642 return dlopen ();
10643   ;
10644   return 0;
10645 }
10646 _ACEOF
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (ac_try="$ac_link"
10649 case "(($ac_try" in
10650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651   *) ac_try_echo=$ac_try;;
10652 esac
10653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10654 $as_echo "$ac_try_echo") >&5
10655   (eval "$ac_link") 2>conftest.er1
10656   ac_status=$?
10657   grep -v '^ *+' conftest.er1 >conftest.err
10658   rm -f conftest.er1
10659   cat conftest.err >&5
10660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); } && {
10662          test -z "$ac_c_werror_flag" ||
10663          test ! -s conftest.err
10664        } && test -s conftest$ac_exeext && {
10665          test "$cross_compiling" = yes ||
10666          $as_test_x conftest$ac_exeext
10667        }; then
10668   ac_cv_lib_dl_dlopen=yes
10669 else
10670   $as_echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673         ac_cv_lib_dl_dlopen=no
10674 fi
10675
10676 rm -rf conftest.dSYM
10677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10678       conftest$ac_exeext conftest.$ac_ext
10679 LIBS=$ac_check_lib_save_LIBS
10680 fi
10681 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10682 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10683 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10684   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10685 else
10686   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10687 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10688 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10689   $as_echo_n "(cached) " >&6
10690 else
10691   ac_check_lib_save_LIBS=$LIBS
10692 LIBS="-lsvld  $LIBS"
10693 cat >conftest.$ac_ext <<_ACEOF
10694 /* confdefs.h.  */
10695 _ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h.  */
10699
10700 /* Override any GCC internal prototype to avoid an error.
10701    Use char because int might match the return type of a GCC
10702    builtin and then its argument prototype would still apply.  */
10703 #ifdef __cplusplus
10704 extern "C"
10705 #endif
10706 char dlopen ();
10707 int
10708 main ()
10709 {
10710 return dlopen ();
10711   ;
10712   return 0;
10713 }
10714 _ACEOF
10715 rm -f conftest.$ac_objext conftest$ac_exeext
10716 if { (ac_try="$ac_link"
10717 case "(($ac_try" in
10718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719   *) ac_try_echo=$ac_try;;
10720 esac
10721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10722 $as_echo "$ac_try_echo") >&5
10723   (eval "$ac_link") 2>conftest.er1
10724   ac_status=$?
10725   grep -v '^ *+' conftest.er1 >conftest.err
10726   rm -f conftest.er1
10727   cat conftest.err >&5
10728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); } && {
10730          test -z "$ac_c_werror_flag" ||
10731          test ! -s conftest.err
10732        } && test -s conftest$ac_exeext && {
10733          test "$cross_compiling" = yes ||
10734          $as_test_x conftest$ac_exeext
10735        }; then
10736   ac_cv_lib_svld_dlopen=yes
10737 else
10738   $as_echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10740
10741         ac_cv_lib_svld_dlopen=no
10742 fi
10743
10744 rm -rf conftest.dSYM
10745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10746       conftest$ac_exeext conftest.$ac_ext
10747 LIBS=$ac_check_lib_save_LIBS
10748 fi
10749 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10750 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10751 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10752   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10753 else
10754   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10755 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10756 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10757   $as_echo_n "(cached) " >&6
10758 else
10759   ac_check_lib_save_LIBS=$LIBS
10760 LIBS="-ldld  $LIBS"
10761 cat >conftest.$ac_ext <<_ACEOF
10762 /* confdefs.h.  */
10763 _ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h.  */
10767
10768 /* Override any GCC internal prototype to avoid an error.
10769    Use char because int might match the return type of a GCC
10770    builtin and then its argument prototype would still apply.  */
10771 #ifdef __cplusplus
10772 extern "C"
10773 #endif
10774 char dld_link ();
10775 int
10776 main ()
10777 {
10778 return dld_link ();
10779   ;
10780   return 0;
10781 }
10782 _ACEOF
10783 rm -f conftest.$ac_objext conftest$ac_exeext
10784 if { (ac_try="$ac_link"
10785 case "(($ac_try" in
10786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787   *) ac_try_echo=$ac_try;;
10788 esac
10789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10790 $as_echo "$ac_try_echo") >&5
10791   (eval "$ac_link") 2>conftest.er1
10792   ac_status=$?
10793   grep -v '^ *+' conftest.er1 >conftest.err
10794   rm -f conftest.er1
10795   cat conftest.err >&5
10796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); } && {
10798          test -z "$ac_c_werror_flag" ||
10799          test ! -s conftest.err
10800        } && test -s conftest$ac_exeext && {
10801          test "$cross_compiling" = yes ||
10802          $as_test_x conftest$ac_exeext
10803        }; then
10804   ac_cv_lib_dld_dld_link=yes
10805 else
10806   $as_echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10808
10809         ac_cv_lib_dld_dld_link=no
10810 fi
10811
10812 rm -rf conftest.dSYM
10813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10814       conftest$ac_exeext conftest.$ac_ext
10815 LIBS=$ac_check_lib_save_LIBS
10816 fi
10817 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10818 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10819 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10820   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10821 fi
10822
10823
10824 fi
10825
10826
10827 fi
10828
10829
10830 fi
10831
10832
10833 fi
10834
10835
10836 fi
10837
10838     ;;
10839   esac
10840
10841   if test "x$lt_cv_dlopen" != xno; then
10842     enable_dlopen=yes
10843   else
10844     enable_dlopen=no
10845   fi
10846
10847   case $lt_cv_dlopen in
10848   dlopen)
10849     save_CPPFLAGS="$CPPFLAGS"
10850     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10851
10852     save_LDFLAGS="$LDFLAGS"
10853     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10854
10855     save_LIBS="$LIBS"
10856     LIBS="$lt_cv_dlopen_libs $LIBS"
10857
10858     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10859 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10860 if test "${lt_cv_dlopen_self+set}" = set; then
10861   $as_echo_n "(cached) " >&6
10862 else
10863           if test "$cross_compiling" = yes; then :
10864   lt_cv_dlopen_self=cross
10865 else
10866   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10867   lt_status=$lt_dlunknown
10868   cat > conftest.$ac_ext <<_LT_EOF
10869 #line 10869 "configure"
10870 #include "confdefs.h"
10871
10872 #if HAVE_DLFCN_H
10873 #include <dlfcn.h>
10874 #endif
10875
10876 #include <stdio.h>
10877
10878 #ifdef RTLD_GLOBAL
10879 #  define LT_DLGLOBAL           RTLD_GLOBAL
10880 #else
10881 #  ifdef DL_GLOBAL
10882 #    define LT_DLGLOBAL         DL_GLOBAL
10883 #  else
10884 #    define LT_DLGLOBAL         0
10885 #  endif
10886 #endif
10887
10888 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10889    find out it does not work in some platform. */
10890 #ifndef LT_DLLAZY_OR_NOW
10891 #  ifdef RTLD_LAZY
10892 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10893 #  else
10894 #    ifdef DL_LAZY
10895 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10896 #    else
10897 #      ifdef RTLD_NOW
10898 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10899 #      else
10900 #        ifdef DL_NOW
10901 #          define LT_DLLAZY_OR_NOW      DL_NOW
10902 #        else
10903 #          define LT_DLLAZY_OR_NOW      0
10904 #        endif
10905 #      endif
10906 #    endif
10907 #  endif
10908 #endif
10909
10910 void fnord() { int i=42;}
10911 int main ()
10912 {
10913   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10914   int status = $lt_dlunknown;
10915
10916   if (self)
10917     {
10918       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10919       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10920       /* dlclose (self); */
10921     }
10922   else
10923     puts (dlerror ());
10924
10925   return status;
10926 }
10927 _LT_EOF
10928   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10929   (eval $ac_link) 2>&5
10930   ac_status=$?
10931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10933     (./conftest; exit; ) >&5 2>/dev/null
10934     lt_status=$?
10935     case x$lt_status in
10936       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10937       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10938       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10939     esac
10940   else :
10941     # compilation failed
10942     lt_cv_dlopen_self=no
10943   fi
10944 fi
10945 rm -fr conftest*
10946
10947
10948 fi
10949 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10950 $as_echo "$lt_cv_dlopen_self" >&6; }
10951
10952     if test "x$lt_cv_dlopen_self" = xyes; then
10953       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10954       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10955 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10956 if test "${lt_cv_dlopen_self_static+set}" = set; then
10957   $as_echo_n "(cached) " >&6
10958 else
10959           if test "$cross_compiling" = yes; then :
10960   lt_cv_dlopen_self_static=cross
10961 else
10962   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10963   lt_status=$lt_dlunknown
10964   cat > conftest.$ac_ext <<_LT_EOF
10965 #line 10965 "configure"
10966 #include "confdefs.h"
10967
10968 #if HAVE_DLFCN_H
10969 #include <dlfcn.h>
10970 #endif
10971
10972 #include <stdio.h>
10973
10974 #ifdef RTLD_GLOBAL
10975 #  define LT_DLGLOBAL           RTLD_GLOBAL
10976 #else
10977 #  ifdef DL_GLOBAL
10978 #    define LT_DLGLOBAL         DL_GLOBAL
10979 #  else
10980 #    define LT_DLGLOBAL         0
10981 #  endif
10982 #endif
10983
10984 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10985    find out it does not work in some platform. */
10986 #ifndef LT_DLLAZY_OR_NOW
10987 #  ifdef RTLD_LAZY
10988 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10989 #  else
10990 #    ifdef DL_LAZY
10991 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10992 #    else
10993 #      ifdef RTLD_NOW
10994 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10995 #      else
10996 #        ifdef DL_NOW
10997 #          define LT_DLLAZY_OR_NOW      DL_NOW
10998 #        else
10999 #          define LT_DLLAZY_OR_NOW      0
11000 #        endif
11001 #      endif
11002 #    endif
11003 #  endif
11004 #endif
11005
11006 void fnord() { int i=42;}
11007 int main ()
11008 {
11009   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11010   int status = $lt_dlunknown;
11011
11012   if (self)
11013     {
11014       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11015       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11016       /* dlclose (self); */
11017     }
11018   else
11019     puts (dlerror ());
11020
11021   return status;
11022 }
11023 _LT_EOF
11024   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11025   (eval $ac_link) 2>&5
11026   ac_status=$?
11027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11029     (./conftest; exit; ) >&5 2>/dev/null
11030     lt_status=$?
11031     case x$lt_status in
11032       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11033       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11034       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11035     esac
11036   else :
11037     # compilation failed
11038     lt_cv_dlopen_self_static=no
11039   fi
11040 fi
11041 rm -fr conftest*
11042
11043
11044 fi
11045 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11046 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11047     fi
11048
11049     CPPFLAGS="$save_CPPFLAGS"
11050     LDFLAGS="$save_LDFLAGS"
11051     LIBS="$save_LIBS"
11052     ;;
11053   esac
11054
11055   case $lt_cv_dlopen_self in
11056   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11057   *) enable_dlopen_self=unknown ;;
11058   esac
11059
11060   case $lt_cv_dlopen_self_static in
11061   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11062   *) enable_dlopen_self_static=unknown ;;
11063   esac
11064 fi
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082 striplib=
11083 old_striplib=
11084 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11085 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11086 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11087   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11088   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11089   { $as_echo "$as_me:$LINENO: result: yes" >&5
11090 $as_echo "yes" >&6; }
11091 else
11092 # FIXME - insert some real tests, host_os isn't really good enough
11093   case $host_os in
11094   darwin*)
11095     if test -n "$STRIP" ; then
11096       striplib="$STRIP -x"
11097       old_striplib="$STRIP -S"
11098       { $as_echo "$as_me:$LINENO: result: yes" >&5
11099 $as_echo "yes" >&6; }
11100     else
11101       { $as_echo "$as_me:$LINENO: result: no" >&5
11102 $as_echo "no" >&6; }
11103     fi
11104     ;;
11105   *)
11106     { $as_echo "$as_me:$LINENO: result: no" >&5
11107 $as_echo "no" >&6; }
11108     ;;
11109   esac
11110 fi
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123   # Report which library types will actually be built
11124   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11125 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11126   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11127 $as_echo "$can_build_shared" >&6; }
11128
11129   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11130 $as_echo_n "checking whether to build shared libraries... " >&6; }
11131   test "$can_build_shared" = "no" && enable_shared=no
11132
11133   # On AIX, shared libraries and static libraries use the same namespace, and
11134   # are all built from PIC.
11135   case $host_os in
11136   aix3*)
11137     test "$enable_shared" = yes && enable_static=no
11138     if test -n "$RANLIB"; then
11139       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11140       postinstall_cmds='$RANLIB $lib'
11141     fi
11142     ;;
11143
11144   aix[4-9]*)
11145     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11146       test "$enable_shared" = yes && enable_static=no
11147     fi
11148     ;;
11149   esac
11150   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11151 $as_echo "$enable_shared" >&6; }
11152
11153   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11154 $as_echo_n "checking whether to build static libraries... " >&6; }
11155   # Make sure either enable_shared or enable_static is yes.
11156   test "$enable_shared" = yes || enable_static=yes
11157   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11158 $as_echo "$enable_static" >&6; }
11159
11160
11161
11162
11163 fi
11164 ac_ext=c
11165 ac_cpp='$CPP $CPPFLAGS'
11166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11169
11170 CC="$lt_save_CC"
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184         ac_config_commands="$ac_config_commands libtool"
11185
11186
11187
11188
11189 # Only expand once:
11190
11191
11192
11193
11194
11195
11196 arch=""
11197 debug=""
11198 optimize=""
11199 profile=""
11200
11201 set -- $CFLAGS
11202 CFLAGS=""
11203
11204 if test "$GCC" = yes
11205 then
11206     CFLAGS="-Wall"
11207 fi
11208
11209 while test $# -gt 0
11210 do
11211     case "$1" in
11212         -Wall)
11213             if test "$GCC" = yes
11214             then
11215                 :
11216             else
11217                 CFLAGS="$CFLAGS $1"
11218             fi
11219             shift
11220             ;;
11221         -g)
11222             debug="-g"
11223             shift
11224             ;;
11225         -mno-cygwin)
11226             shift
11227             ;;
11228         -m*)
11229             arch="$arch $1"
11230             shift
11231             ;;
11232         -O2)
11233             optimize="-O"
11234             shift
11235             ;;
11236         -fomit-frame-pointer)
11237             shift
11238             ;;
11239         -O*|-f*)
11240             optimize="$optimize $1"
11241             shift
11242             ;;
11243         *)
11244             CFLAGS="$CFLAGS $1"
11245             shift
11246             ;;
11247     esac
11248 done
11249
11250 if test "$GCC" = yes
11251 then
11252     if test -z "$arch"
11253     then
11254         case "$host" in
11255             i386-*)           ;;
11256             i?86-*)           arch="-march=i486" ;;
11257             arm*-empeg-*)     arch="-march=armv4 -mtune=strongarm1100" ;;
11258             armv4*-*)         arch="-march=armv4 -mtune=strongarm" ;;
11259             powerpc-*)        ;;
11260             mips*-agenda-*)   arch="-mcpu=vr4100" ;;
11261             mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
11262         esac
11263     fi
11264
11265     case "$optimize" in
11266         -O|"-O "*)
11267             optimize="-O"
11268             #optimize="$optimize -fforce-mem"
11269             optimize="$optimize -fforce-addr"
11270             : #x optimize="$optimize -finline-functions"
11271             : #- optimize="$optimize -fstrength-reduce"
11272             optimize="$optimize -fthread-jumps"
11273             optimize="$optimize -fcse-follow-jumps"
11274             optimize="$optimize -fcse-skip-blocks"
11275             : #x optimize="$optimize -frerun-cse-after-loop"
11276             : #x optimize="$optimize -frerun-loop-opt"
11277             : #x optimize="$optimize -fgcse"
11278             optimize="$optimize -fexpensive-optimizations"
11279             optimize="$optimize -fregmove"
11280             : #* optimize="$optimize -fdelayed-branch"
11281             : #x optimize="$optimize -fschedule-insns"
11282             optimize="$optimize -fschedule-insns2"
11283             : #? optimize="$optimize -ffunction-sections"
11284             : #? optimize="$optimize -fcaller-saves"
11285             : #> optimize="$optimize -funroll-loops"
11286             : #> optimize="$optimize -funroll-all-loops"
11287             : #x optimize="$optimize -fmove-all-movables"
11288             : #x optimize="$optimize -freduce-all-givs"
11289             : #? optimize="$optimize -fstrict-aliasing"
11290             : #* optimize="$optimize -fstructure-noalias"
11291
11292             case "$host" in
11293                 arm*-*)
11294                     optimize="$optimize -fstrength-reduce"
11295                     ;;
11296                 mips*-*)
11297                     optimize="$optimize -fstrength-reduce"
11298                     optimize="$optimize -finline-functions"
11299                     ;;
11300                 i?86-*)
11301                     optimize="$optimize -fstrength-reduce"
11302                     ;;
11303                 powerpc-apple-*)
11304                     # this triggers an internal compiler error with gcc2
11305                     : #optimize="$optimize -fstrength-reduce"
11306
11307                     # this is really only beneficial with gcc3
11308                     : #optimize="$optimize -finline-functions"
11309                     ;;
11310                 *)
11311                     # this sometimes provokes bugs in gcc 2.95.2
11312                     : #optimize="$optimize -fstrength-reduce"
11313                     ;;
11314             esac
11315             ;;
11316     esac
11317 fi
11318
11319 case "$host" in
11320     mips*-agenda-*)
11321
11322 cat >>confdefs.h <<\_ACEOF
11323 #define HAVE_MADD16_ASM 1
11324 _ACEOF
11325
11326         ;;
11327     mips*-luxsonor-*)
11328
11329 cat >>confdefs.h <<\_ACEOF
11330 #define HAVE_MADD_ASM 1
11331 _ACEOF
11332
11333         ;;
11334 esac
11335
11336
11337 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11338 $as_echo_n "checking for ANSI C header files... " >&6; }
11339 if test "${ac_cv_header_stdc+set}" = set; then
11340   $as_echo_n "(cached) " >&6
11341 else
11342   cat >conftest.$ac_ext <<_ACEOF
11343 /* confdefs.h.  */
11344 _ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h.  */
11348 #include <stdlib.h>
11349 #include <stdarg.h>
11350 #include <string.h>
11351 #include <float.h>
11352
11353 int
11354 main ()
11355 {
11356
11357   ;
11358   return 0;
11359 }
11360 _ACEOF
11361 rm -f conftest.$ac_objext
11362 if { (ac_try="$ac_compile"
11363 case "(($ac_try" in
11364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365   *) ac_try_echo=$ac_try;;
11366 esac
11367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11368 $as_echo "$ac_try_echo") >&5
11369   (eval "$ac_compile") 2>conftest.er1
11370   ac_status=$?
11371   grep -v '^ *+' conftest.er1 >conftest.err
11372   rm -f conftest.er1
11373   cat conftest.err >&5
11374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375   (exit $ac_status); } && {
11376          test -z "$ac_c_werror_flag" ||
11377          test ! -s conftest.err
11378        } && test -s conftest.$ac_objext; then
11379   ac_cv_header_stdc=yes
11380 else
11381   $as_echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11383
11384         ac_cv_header_stdc=no
11385 fi
11386
11387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11388
11389 if test $ac_cv_header_stdc = yes; then
11390   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11391   cat >conftest.$ac_ext <<_ACEOF
11392 /* confdefs.h.  */
11393 _ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h.  */
11397 #include <string.h>
11398
11399 _ACEOF
11400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11401   $EGREP "memchr" >/dev/null 2>&1; then
11402   :
11403 else
11404   ac_cv_header_stdc=no
11405 fi
11406 rm -f conftest*
11407
11408 fi
11409
11410 if test $ac_cv_header_stdc = yes; then
11411   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11412   cat >conftest.$ac_ext <<_ACEOF
11413 /* confdefs.h.  */
11414 _ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h.  */
11418 #include <stdlib.h>
11419
11420 _ACEOF
11421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11422   $EGREP "free" >/dev/null 2>&1; then
11423   :
11424 else
11425   ac_cv_header_stdc=no
11426 fi
11427 rm -f conftest*
11428
11429 fi
11430
11431 if test $ac_cv_header_stdc = yes; then
11432   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11433   if test "$cross_compiling" = yes; then
11434   :
11435 else
11436   cat >conftest.$ac_ext <<_ACEOF
11437 /* confdefs.h.  */
11438 _ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h.  */
11442 #include <ctype.h>
11443 #include <stdlib.h>
11444 #if ((' ' & 0x0FF) == 0x020)
11445 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11446 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11447 #else
11448 # define ISLOWER(c) \
11449                    (('a' <= (c) && (c) <= 'i') \
11450                      || ('j' <= (c) && (c) <= 'r') \
11451                      || ('s' <= (c) && (c) <= 'z'))
11452 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11453 #endif
11454
11455 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11456 int
11457 main ()
11458 {
11459   int i;
11460   for (i = 0; i < 256; i++)
11461     if (XOR (islower (i), ISLOWER (i))
11462         || toupper (i) != TOUPPER (i))
11463       return 2;
11464   return 0;
11465 }
11466 _ACEOF
11467 rm -f conftest$ac_exeext
11468 if { (ac_try="$ac_link"
11469 case "(($ac_try" in
11470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11471   *) ac_try_echo=$ac_try;;
11472 esac
11473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11474 $as_echo "$ac_try_echo") >&5
11475   (eval "$ac_link") 2>&5
11476   ac_status=$?
11477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11479   { (case "(($ac_try" in
11480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481   *) ac_try_echo=$ac_try;;
11482 esac
11483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11484 $as_echo "$ac_try_echo") >&5
11485   (eval "$ac_try") 2>&5
11486   ac_status=$?
11487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488   (exit $ac_status); }; }; then
11489   :
11490 else
11491   $as_echo "$as_me: program exited with status $ac_status" >&5
11492 $as_echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11494
11495 ( exit $ac_status )
11496 ac_cv_header_stdc=no
11497 fi
11498 rm -rf conftest.dSYM
11499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11500 fi
11501
11502
11503 fi
11504 fi
11505 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11506 $as_echo "$ac_cv_header_stdc" >&6; }
11507 if test $ac_cv_header_stdc = yes; then
11508
11509 cat >>confdefs.h <<\_ACEOF
11510 #define STDC_HEADERS 1
11511 _ACEOF
11512
11513 fi
11514
11515 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11516 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11517 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11518   $as_echo_n "(cached) " >&6
11519 else
11520   cat >conftest.$ac_ext <<_ACEOF
11521 /* confdefs.h.  */
11522 _ACEOF
11523 cat confdefs.h >>conftest.$ac_ext
11524 cat >>conftest.$ac_ext <<_ACEOF
11525 /* end confdefs.h.  */
11526 #include <sys/types.h>
11527 #include <sys/wait.h>
11528 #ifndef WEXITSTATUS
11529 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11530 #endif
11531 #ifndef WIFEXITED
11532 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11533 #endif
11534
11535 int
11536 main ()
11537 {
11538   int s;
11539   wait (&s);
11540   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11541   ;
11542   return 0;
11543 }
11544 _ACEOF
11545 rm -f conftest.$ac_objext
11546 if { (ac_try="$ac_compile"
11547 case "(($ac_try" in
11548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549   *) ac_try_echo=$ac_try;;
11550 esac
11551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11552 $as_echo "$ac_try_echo") >&5
11553   (eval "$ac_compile") 2>conftest.er1
11554   ac_status=$?
11555   grep -v '^ *+' conftest.er1 >conftest.err
11556   rm -f conftest.er1
11557   cat conftest.err >&5
11558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); } && {
11560          test -z "$ac_c_werror_flag" ||
11561          test ! -s conftest.err
11562        } && test -s conftest.$ac_objext; then
11563   ac_cv_header_sys_wait_h=yes
11564 else
11565   $as_echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11567
11568         ac_cv_header_sys_wait_h=no
11569 fi
11570
11571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11572 fi
11573 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11574 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11575 if test $ac_cv_header_sys_wait_h = yes; then
11576
11577 cat >>confdefs.h <<\_ACEOF
11578 #define HAVE_SYS_WAIT_H 1
11579 _ACEOF
11580
11581 fi
11582
11583
11584
11585
11586
11587
11588
11589 for ac_header in assert.h limits.h unistd.h sys/types.h fcntl.h errno.h
11590 do
11591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11593   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11594 $as_echo_n "checking for $ac_header... " >&6; }
11595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11596   $as_echo_n "(cached) " >&6
11597 fi
11598 ac_res=`eval 'as_val=${'$as_ac_Header'}
11599                  $as_echo "$as_val"'`
11600                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11601 $as_echo "$ac_res" >&6; }
11602 else
11603   # Is the header compilable?
11604 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11605 $as_echo_n "checking $ac_header usability... " >&6; }
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h.  */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h.  */
11612 $ac_includes_default
11613 #include <$ac_header>
11614 _ACEOF
11615 rm -f conftest.$ac_objext
11616 if { (ac_try="$ac_compile"
11617 case "(($ac_try" in
11618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619   *) ac_try_echo=$ac_try;;
11620 esac
11621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11622 $as_echo "$ac_try_echo") >&5
11623   (eval "$ac_compile") 2>conftest.er1
11624   ac_status=$?
11625   grep -v '^ *+' conftest.er1 >conftest.err
11626   rm -f conftest.er1
11627   cat conftest.err >&5
11628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629   (exit $ac_status); } && {
11630          test -z "$ac_c_werror_flag" ||
11631          test ! -s conftest.err
11632        } && test -s conftest.$ac_objext; then
11633   ac_header_compiler=yes
11634 else
11635   $as_echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11637
11638         ac_header_compiler=no
11639 fi
11640
11641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11642 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11643 $as_echo "$ac_header_compiler" >&6; }
11644
11645 # Is the header present?
11646 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11647 $as_echo_n "checking $ac_header presence... " >&6; }
11648 cat >conftest.$ac_ext <<_ACEOF
11649 /* confdefs.h.  */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h.  */
11654 #include <$ac_header>
11655 _ACEOF
11656 if { (ac_try="$ac_cpp conftest.$ac_ext"
11657 case "(($ac_try" in
11658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659   *) ac_try_echo=$ac_try;;
11660 esac
11661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11662 $as_echo "$ac_try_echo") >&5
11663   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11664   ac_status=$?
11665   grep -v '^ *+' conftest.er1 >conftest.err
11666   rm -f conftest.er1
11667   cat conftest.err >&5
11668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669   (exit $ac_status); } >/dev/null && {
11670          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11671          test ! -s conftest.err
11672        }; then
11673   ac_header_preproc=yes
11674 else
11675   $as_echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11677
11678   ac_header_preproc=no
11679 fi
11680
11681 rm -f conftest.err conftest.$ac_ext
11682 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11683 $as_echo "$ac_header_preproc" >&6; }
11684
11685 # So?  What about this header?
11686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11687   yes:no: )
11688     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11689 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11690     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11691 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11692     ac_header_preproc=yes
11693     ;;
11694   no:yes:* )
11695     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11696 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11697     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11698 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11699     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11700 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11701     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11702 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11703     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11704 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11705     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11706 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11707     ( cat <<\_ASBOX
11708 ## ----------------------------------- ##
11709 ## Report this to support@underbit.com ##
11710 ## ----------------------------------- ##
11711 _ASBOX
11712      ) | sed "s/^/$as_me: WARNING:     /" >&2
11713     ;;
11714 esac
11715 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11716 $as_echo_n "checking for $ac_header... " >&6; }
11717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11718   $as_echo_n "(cached) " >&6
11719 else
11720   eval "$as_ac_Header=\$ac_header_preproc"
11721 fi
11722 ac_res=`eval 'as_val=${'$as_ac_Header'}
11723                  $as_echo "$as_val"'`
11724                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11725 $as_echo "$ac_res" >&6; }
11726
11727 fi
11728 as_val=`eval 'as_val=${'$as_ac_Header'}
11729                  $as_echo "$as_val"'`
11730    if test "x$as_val" = x""yes; then
11731   cat >>confdefs.h <<_ACEOF
11732 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11733 _ACEOF
11734
11735 fi
11736
11737 done
11738
11739
11740
11741 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11742 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11743 if test "${ac_cv_c_const+set}" = set; then
11744   $as_echo_n "(cached) " >&6
11745 else
11746   cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h.  */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h.  */
11752
11753 int
11754 main ()
11755 {
11756 /* FIXME: Include the comments suggested by Paul. */
11757 #ifndef __cplusplus
11758   /* Ultrix mips cc rejects this.  */
11759   typedef int charset[2];
11760   const charset cs;
11761   /* SunOS 4.1.1 cc rejects this.  */
11762   char const *const *pcpcc;
11763   char **ppc;
11764   /* NEC SVR4.0.2 mips cc rejects this.  */
11765   struct point {int x, y;};
11766   static struct point const zero = {0,0};
11767   /* AIX XL C 1.02.0.0 rejects this.
11768      It does not let you subtract one const X* pointer from another in
11769      an arm of an if-expression whose if-part is not a constant
11770      expression */
11771   const char *g = "string";
11772   pcpcc = &g + (g ? g-g : 0);
11773   /* HPUX 7.0 cc rejects these. */
11774   ++pcpcc;
11775   ppc = (char**) pcpcc;
11776   pcpcc = (char const *const *) ppc;
11777   { /* SCO 3.2v4 cc rejects this.  */
11778     char *t;
11779     char const *s = 0 ? (char *) 0 : (char const *) 0;
11780
11781     *t++ = 0;
11782     if (s) return 0;
11783   }
11784   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11785     int x[] = {25, 17};
11786     const int *foo = &x[0];
11787     ++foo;
11788   }
11789   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11790     typedef const int *iptr;
11791     iptr p = 0;
11792     ++p;
11793   }
11794   { /* AIX XL C 1.02.0.0 rejects this saying
11795        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11796     struct s { int j; const int *ap[3]; };
11797     struct s *b; b->j = 5;
11798   }
11799   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11800     const int foo = 10;
11801     if (!foo) return 0;
11802   }
11803   return !cs[0] && !zero.x;
11804 #endif
11805
11806   ;
11807   return 0;
11808 }
11809 _ACEOF
11810 rm -f conftest.$ac_objext
11811 if { (ac_try="$ac_compile"
11812 case "(($ac_try" in
11813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814   *) ac_try_echo=$ac_try;;
11815 esac
11816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11817 $as_echo "$ac_try_echo") >&5
11818   (eval "$ac_compile") 2>conftest.er1
11819   ac_status=$?
11820   grep -v '^ *+' conftest.er1 >conftest.err
11821   rm -f conftest.er1
11822   cat conftest.err >&5
11823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); } && {
11825          test -z "$ac_c_werror_flag" ||
11826          test ! -s conftest.err
11827        } && test -s conftest.$ac_objext; then
11828   ac_cv_c_const=yes
11829 else
11830   $as_echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11832
11833         ac_cv_c_const=no
11834 fi
11835
11836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837 fi
11838 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11839 $as_echo "$ac_cv_c_const" >&6; }
11840 if test $ac_cv_c_const = no; then
11841
11842 cat >>confdefs.h <<\_ACEOF
11843 #define const /**/
11844 _ACEOF
11845
11846 fi
11847
11848 { $as_echo "$as_me:$LINENO: checking for inline" >&5
11849 $as_echo_n "checking for inline... " >&6; }
11850 if test "${ac_cv_c_inline+set}" = set; then
11851   $as_echo_n "(cached) " >&6
11852 else
11853   ac_cv_c_inline=no
11854 for ac_kw in inline __inline__ __inline; do
11855   cat >conftest.$ac_ext <<_ACEOF
11856 /* confdefs.h.  */
11857 _ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h.  */
11861 #ifndef __cplusplus
11862 typedef int foo_t;
11863 static $ac_kw foo_t static_foo () {return 0; }
11864 $ac_kw foo_t foo () {return 0; }
11865 #endif
11866
11867 _ACEOF
11868 rm -f conftest.$ac_objext
11869 if { (ac_try="$ac_compile"
11870 case "(($ac_try" in
11871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872   *) ac_try_echo=$ac_try;;
11873 esac
11874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11875 $as_echo "$ac_try_echo") >&5
11876   (eval "$ac_compile") 2>conftest.er1
11877   ac_status=$?
11878   grep -v '^ *+' conftest.er1 >conftest.err
11879   rm -f conftest.er1
11880   cat conftest.err >&5
11881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); } && {
11883          test -z "$ac_c_werror_flag" ||
11884          test ! -s conftest.err
11885        } && test -s conftest.$ac_objext; then
11886   ac_cv_c_inline=$ac_kw
11887 else
11888   $as_echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11890
11891
11892 fi
11893
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895   test "$ac_cv_c_inline" != no && break
11896 done
11897
11898 fi
11899 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11900 $as_echo "$ac_cv_c_inline" >&6; }
11901
11902
11903 case $ac_cv_c_inline in
11904   inline | yes) ;;
11905   *)
11906     case $ac_cv_c_inline in
11907       no) ac_val=;;
11908       *) ac_val=$ac_cv_c_inline;;
11909     esac
11910     cat >>confdefs.h <<_ACEOF
11911 #ifndef __cplusplus
11912 #define inline $ac_val
11913 #endif
11914 _ACEOF
11915     ;;
11916 esac
11917
11918
11919  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11920 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11921 if test "${ac_cv_c_bigendian+set}" = set; then
11922   $as_echo_n "(cached) " >&6
11923 else
11924   ac_cv_c_bigendian=unknown
11925     # See if we're dealing with a universal compiler.
11926     cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h.  */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h.  */
11932 #ifndef __APPLE_CC__
11933                not a universal capable compiler
11934              #endif
11935              typedef int dummy;
11936
11937 _ACEOF
11938 rm -f conftest.$ac_objext
11939 if { (ac_try="$ac_compile"
11940 case "(($ac_try" in
11941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942   *) ac_try_echo=$ac_try;;
11943 esac
11944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11945 $as_echo "$ac_try_echo") >&5
11946   (eval "$ac_compile") 2>conftest.er1
11947   ac_status=$?
11948   grep -v '^ *+' conftest.er1 >conftest.err
11949   rm -f conftest.er1
11950   cat conftest.err >&5
11951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); } && {
11953          test -z "$ac_c_werror_flag" ||
11954          test ! -s conftest.err
11955        } && test -s conftest.$ac_objext; then
11956
11957         # Check for potential -arch flags.  It is not universal unless
11958         # there are some -arch flags.  Note that *ppc* also matches
11959         # ppc64.  This check is also rather less than ideal.
11960         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
11961           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
11962         esac
11963 else
11964   $as_echo "$as_me: failed program was:" >&5
11965 sed 's/^/| /' conftest.$ac_ext >&5
11966
11967
11968 fi
11969
11970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11971     if test $ac_cv_c_bigendian = unknown; then
11972       # See if sys/param.h defines the BYTE_ORDER macro.
11973       cat >conftest.$ac_ext <<_ACEOF
11974 /* confdefs.h.  */
11975 _ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h.  */
11979 #include <sys/types.h>
11980              #include <sys/param.h>
11981
11982 int
11983 main ()
11984 {
11985 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11986                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11987                      && LITTLE_ENDIAN)
11988               bogus endian macros
11989              #endif
11990
11991   ;
11992   return 0;
11993 }
11994 _ACEOF
11995 rm -f conftest.$ac_objext
11996 if { (ac_try="$ac_compile"
11997 case "(($ac_try" in
11998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999   *) ac_try_echo=$ac_try;;
12000 esac
12001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12002 $as_echo "$ac_try_echo") >&5
12003   (eval "$ac_compile") 2>conftest.er1
12004   ac_status=$?
12005   grep -v '^ *+' conftest.er1 >conftest.err
12006   rm -f conftest.er1
12007   cat conftest.err >&5
12008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009   (exit $ac_status); } && {
12010          test -z "$ac_c_werror_flag" ||
12011          test ! -s conftest.err
12012        } && test -s conftest.$ac_objext; then
12013   # It does; now see whether it defined to BIG_ENDIAN or not.
12014          cat >conftest.$ac_ext <<_ACEOF
12015 /* confdefs.h.  */
12016 _ACEOF
12017 cat confdefs.h >>conftest.$ac_ext
12018 cat >>conftest.$ac_ext <<_ACEOF
12019 /* end confdefs.h.  */
12020 #include <sys/types.h>
12021                 #include <sys/param.h>
12022
12023 int
12024 main ()
12025 {
12026 #if BYTE_ORDER != BIG_ENDIAN
12027                  not big endian
12028                 #endif
12029
12030   ;
12031   return 0;
12032 }
12033 _ACEOF
12034 rm -f conftest.$ac_objext
12035 if { (ac_try="$ac_compile"
12036 case "(($ac_try" in
12037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038   *) ac_try_echo=$ac_try;;
12039 esac
12040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12041 $as_echo "$ac_try_echo") >&5
12042   (eval "$ac_compile") 2>conftest.er1
12043   ac_status=$?
12044   grep -v '^ *+' conftest.er1 >conftest.err
12045   rm -f conftest.er1
12046   cat conftest.err >&5
12047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048   (exit $ac_status); } && {
12049          test -z "$ac_c_werror_flag" ||
12050          test ! -s conftest.err
12051        } && test -s conftest.$ac_objext; then
12052   ac_cv_c_bigendian=yes
12053 else
12054   $as_echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12056
12057         ac_cv_c_bigendian=no
12058 fi
12059
12060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12061 else
12062   $as_echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065
12066 fi
12067
12068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12069     fi
12070     if test $ac_cv_c_bigendian = unknown; then
12071       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12072       cat >conftest.$ac_ext <<_ACEOF
12073 /* confdefs.h.  */
12074 _ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h.  */
12078 #include <limits.h>
12079
12080 int
12081 main ()
12082 {
12083 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12084               bogus endian macros
12085              #endif
12086
12087   ;
12088   return 0;
12089 }
12090 _ACEOF
12091 rm -f conftest.$ac_objext
12092 if { (ac_try="$ac_compile"
12093 case "(($ac_try" in
12094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095   *) ac_try_echo=$ac_try;;
12096 esac
12097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12098 $as_echo "$ac_try_echo") >&5
12099   (eval "$ac_compile") 2>conftest.er1
12100   ac_status=$?
12101   grep -v '^ *+' conftest.er1 >conftest.err
12102   rm -f conftest.er1
12103   cat conftest.err >&5
12104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105   (exit $ac_status); } && {
12106          test -z "$ac_c_werror_flag" ||
12107          test ! -s conftest.err
12108        } && test -s conftest.$ac_objext; then
12109   # It does; now see whether it defined to _BIG_ENDIAN or not.
12110          cat >conftest.$ac_ext <<_ACEOF
12111 /* confdefs.h.  */
12112 _ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h.  */
12116 #include <limits.h>
12117
12118 int
12119 main ()
12120 {
12121 #ifndef _BIG_ENDIAN
12122                  not big endian
12123                 #endif
12124
12125   ;
12126   return 0;
12127 }
12128 _ACEOF
12129 rm -f conftest.$ac_objext
12130 if { (ac_try="$ac_compile"
12131 case "(($ac_try" in
12132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133   *) ac_try_echo=$ac_try;;
12134 esac
12135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12136 $as_echo "$ac_try_echo") >&5
12137   (eval "$ac_compile") 2>conftest.er1
12138   ac_status=$?
12139   grep -v '^ *+' conftest.er1 >conftest.err
12140   rm -f conftest.er1
12141   cat conftest.err >&5
12142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143   (exit $ac_status); } && {
12144          test -z "$ac_c_werror_flag" ||
12145          test ! -s conftest.err
12146        } && test -s conftest.$ac_objext; then
12147   ac_cv_c_bigendian=yes
12148 else
12149   $as_echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152         ac_cv_c_bigendian=no
12153 fi
12154
12155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12156 else
12157   $as_echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12159
12160
12161 fi
12162
12163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12164     fi
12165     if test $ac_cv_c_bigendian = unknown; then
12166       # Compile a test program.
12167       if test "$cross_compiling" = yes; then
12168   # Try to guess by grepping values from an object file.
12169          cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h.  */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h.  */
12175 short int ascii_mm[] =
12176                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12177                 short int ascii_ii[] =
12178                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12179                 int use_ascii (int i) {
12180                   return ascii_mm[i] + ascii_ii[i];
12181                 }
12182                 short int ebcdic_ii[] =
12183                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12184                 short int ebcdic_mm[] =
12185                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12186                 int use_ebcdic (int i) {
12187                   return ebcdic_mm[i] + ebcdic_ii[i];
12188                 }
12189                 extern int foo;
12190
12191 int
12192 main ()
12193 {
12194 return use_ascii (foo) == use_ebcdic (foo);
12195   ;
12196   return 0;
12197 }
12198 _ACEOF
12199 rm -f conftest.$ac_objext
12200 if { (ac_try="$ac_compile"
12201 case "(($ac_try" in
12202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203   *) ac_try_echo=$ac_try;;
12204 esac
12205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12206 $as_echo "$ac_try_echo") >&5
12207   (eval "$ac_compile") 2>conftest.er1
12208   ac_status=$?
12209   grep -v '^ *+' conftest.er1 >conftest.err
12210   rm -f conftest.er1
12211   cat conftest.err >&5
12212   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); } && {
12214          test -z "$ac_c_werror_flag" ||
12215          test ! -s conftest.err
12216        } && test -s conftest.$ac_objext; then
12217   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12218               ac_cv_c_bigendian=yes
12219             fi
12220             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12221               if test "$ac_cv_c_bigendian" = unknown; then
12222                 ac_cv_c_bigendian=no
12223               else
12224                 # finding both strings is unlikely to happen, but who knows?
12225                 ac_cv_c_bigendian=unknown
12226               fi
12227             fi
12228 else
12229   $as_echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12231
12232
12233 fi
12234
12235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12236 else
12237   cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h.  */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h.  */
12243 $ac_includes_default
12244 int
12245 main ()
12246 {
12247
12248              /* Are we little or big endian?  From Harbison&Steele.  */
12249              union
12250              {
12251                long int l;
12252                char c[sizeof (long int)];
12253              } u;
12254              u.l = 1;
12255              return u.c[sizeof (long int) - 1] == 1;
12256
12257   ;
12258   return 0;
12259 }
12260 _ACEOF
12261 rm -f conftest$ac_exeext
12262 if { (ac_try="$ac_link"
12263 case "(($ac_try" in
12264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265   *) ac_try_echo=$ac_try;;
12266 esac
12267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12268 $as_echo "$ac_try_echo") >&5
12269   (eval "$ac_link") 2>&5
12270   ac_status=$?
12271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12273   { (case "(($ac_try" in
12274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275   *) ac_try_echo=$ac_try;;
12276 esac
12277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12278 $as_echo "$ac_try_echo") >&5
12279   (eval "$ac_try") 2>&5
12280   ac_status=$?
12281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282   (exit $ac_status); }; }; then
12283   ac_cv_c_bigendian=no
12284 else
12285   $as_echo "$as_me: program exited with status $ac_status" >&5
12286 $as_echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12288
12289 ( exit $ac_status )
12290 ac_cv_c_bigendian=yes
12291 fi
12292 rm -rf conftest.dSYM
12293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12294 fi
12295
12296
12297     fi
12298 fi
12299 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12300 $as_echo "$ac_cv_c_bigendian" >&6; }
12301  case $ac_cv_c_bigendian in #(
12302    yes)
12303      cat >>confdefs.h <<\_ACEOF
12304 #define WORDS_BIGENDIAN 1
12305 _ACEOF
12306 ;; #(
12307    no)
12308       ;; #(
12309    universal)
12310
12311 cat >>confdefs.h <<\_ACEOF
12312 #define AC_APPLE_UNIVERSAL_BUILD 1
12313 _ACEOF
12314
12315      ;; #(
12316    *)
12317      { { $as_echo "$as_me:$LINENO: error: unknown endianness
12318  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12319 $as_echo "$as_me: error: unknown endianness
12320  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12321    { (exit 1); exit 1; }; } ;;
12322  esac
12323
12324 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12325 $as_echo_n "checking for pid_t... " >&6; }
12326 if test "${ac_cv_type_pid_t+set}" = set; then
12327   $as_echo_n "(cached) " >&6
12328 else
12329   ac_cv_type_pid_t=no
12330 cat >conftest.$ac_ext <<_ACEOF
12331 /* confdefs.h.  */
12332 _ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h.  */
12336 $ac_includes_default
12337 int
12338 main ()
12339 {
12340 if (sizeof (pid_t))
12341        return 0;
12342   ;
12343   return 0;
12344 }
12345 _ACEOF
12346 rm -f conftest.$ac_objext
12347 if { (ac_try="$ac_compile"
12348 case "(($ac_try" in
12349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350   *) ac_try_echo=$ac_try;;
12351 esac
12352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12353 $as_echo "$ac_try_echo") >&5
12354   (eval "$ac_compile") 2>conftest.er1
12355   ac_status=$?
12356   grep -v '^ *+' conftest.er1 >conftest.err
12357   rm -f conftest.er1
12358   cat conftest.err >&5
12359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360   (exit $ac_status); } && {
12361          test -z "$ac_c_werror_flag" ||
12362          test ! -s conftest.err
12363        } && test -s conftest.$ac_objext; then
12364   cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h.  */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h.  */
12370 $ac_includes_default
12371 int
12372 main ()
12373 {
12374 if (sizeof ((pid_t)))
12375           return 0;
12376   ;
12377   return 0;
12378 }
12379 _ACEOF
12380 rm -f conftest.$ac_objext
12381 if { (ac_try="$ac_compile"
12382 case "(($ac_try" in
12383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12384   *) ac_try_echo=$ac_try;;
12385 esac
12386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12387 $as_echo "$ac_try_echo") >&5
12388   (eval "$ac_compile") 2>conftest.er1
12389   ac_status=$?
12390   grep -v '^ *+' conftest.er1 >conftest.err
12391   rm -f conftest.er1
12392   cat conftest.err >&5
12393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); } && {
12395          test -z "$ac_c_werror_flag" ||
12396          test ! -s conftest.err
12397        } && test -s conftest.$ac_objext; then
12398   :
12399 else
12400   $as_echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12402
12403         ac_cv_type_pid_t=yes
12404 fi
12405
12406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12407 else
12408   $as_echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12410
12411
12412 fi
12413
12414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12415 fi
12416 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12417 $as_echo "$ac_cv_type_pid_t" >&6; }
12418 if test "x$ac_cv_type_pid_t" = x""yes; then
12419   :
12420 else
12421
12422 cat >>confdefs.h <<_ACEOF
12423 #define pid_t int
12424 _ACEOF
12425
12426 fi
12427
12428
12429 # The cast to long int works around a bug in the HP C Compiler
12430 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12431 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12432 # This bug is HP SR number 8606223364.
12433 { $as_echo "$as_me:$LINENO: checking size of int" >&5
12434 $as_echo_n "checking size of int... " >&6; }
12435 if test "${ac_cv_sizeof_int+set}" = set; then
12436   $as_echo_n "(cached) " >&6
12437 else
12438   if test "$cross_compiling" = yes; then
12439   # Depending upon the size, compute the lo and hi bounds.
12440 cat >conftest.$ac_ext <<_ACEOF
12441 /* confdefs.h.  */
12442 _ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h.  */
12446 $ac_includes_default
12447 int
12448 main ()
12449 {
12450 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
12451 test_array [0] = 0
12452
12453   ;
12454   return 0;
12455 }
12456 _ACEOF
12457 rm -f conftest.$ac_objext
12458 if { (ac_try="$ac_compile"
12459 case "(($ac_try" in
12460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461   *) ac_try_echo=$ac_try;;
12462 esac
12463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12464 $as_echo "$ac_try_echo") >&5
12465   (eval "$ac_compile") 2>conftest.er1
12466   ac_status=$?
12467   grep -v '^ *+' conftest.er1 >conftest.err
12468   rm -f conftest.er1
12469   cat conftest.err >&5
12470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471   (exit $ac_status); } && {
12472          test -z "$ac_c_werror_flag" ||
12473          test ! -s conftest.err
12474        } && test -s conftest.$ac_objext; then
12475   ac_lo=0 ac_mid=0
12476   while :; do
12477     cat >conftest.$ac_ext <<_ACEOF
12478 /* confdefs.h.  */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h.  */
12483 $ac_includes_default
12484 int
12485 main ()
12486 {
12487 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
12488 test_array [0] = 0
12489
12490   ;
12491   return 0;
12492 }
12493 _ACEOF
12494 rm -f conftest.$ac_objext
12495 if { (ac_try="$ac_compile"
12496 case "(($ac_try" in
12497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498   *) ac_try_echo=$ac_try;;
12499 esac
12500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12501 $as_echo "$ac_try_echo") >&5
12502   (eval "$ac_compile") 2>conftest.er1
12503   ac_status=$?
12504   grep -v '^ *+' conftest.er1 >conftest.err
12505   rm -f conftest.er1
12506   cat conftest.err >&5
12507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); } && {
12509          test -z "$ac_c_werror_flag" ||
12510          test ! -s conftest.err
12511        } && test -s conftest.$ac_objext; then
12512   ac_hi=$ac_mid; break
12513 else
12514   $as_echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12516
12517         ac_lo=`expr $ac_mid + 1`
12518                         if test $ac_lo -le $ac_mid; then
12519                           ac_lo= ac_hi=
12520                           break
12521                         fi
12522                         ac_mid=`expr 2 '*' $ac_mid + 1`
12523 fi
12524
12525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12526   done
12527 else
12528   $as_echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12530
12531         cat >conftest.$ac_ext <<_ACEOF
12532 /* confdefs.h.  */
12533 _ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h.  */
12537 $ac_includes_default
12538 int
12539 main ()
12540 {
12541 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
12542 test_array [0] = 0
12543
12544   ;
12545   return 0;
12546 }
12547 _ACEOF
12548 rm -f conftest.$ac_objext
12549 if { (ac_try="$ac_compile"
12550 case "(($ac_try" in
12551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552   *) ac_try_echo=$ac_try;;
12553 esac
12554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12555 $as_echo "$ac_try_echo") >&5
12556   (eval "$ac_compile") 2>conftest.er1
12557   ac_status=$?
12558   grep -v '^ *+' conftest.er1 >conftest.err
12559   rm -f conftest.er1
12560   cat conftest.err >&5
12561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); } && {
12563          test -z "$ac_c_werror_flag" ||
12564          test ! -s conftest.err
12565        } && test -s conftest.$ac_objext; then
12566   ac_hi=-1 ac_mid=-1
12567   while :; do
12568     cat >conftest.$ac_ext <<_ACEOF
12569 /* confdefs.h.  */
12570 _ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h.  */
12574 $ac_includes_default
12575 int
12576 main ()
12577 {
12578 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
12579 test_array [0] = 0
12580
12581   ;
12582   return 0;
12583 }
12584 _ACEOF
12585 rm -f conftest.$ac_objext
12586 if { (ac_try="$ac_compile"
12587 case "(($ac_try" in
12588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589   *) ac_try_echo=$ac_try;;
12590 esac
12591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12592 $as_echo "$ac_try_echo") >&5
12593   (eval "$ac_compile") 2>conftest.er1
12594   ac_status=$?
12595   grep -v '^ *+' conftest.er1 >conftest.err
12596   rm -f conftest.er1
12597   cat conftest.err >&5
12598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); } && {
12600          test -z "$ac_c_werror_flag" ||
12601          test ! -s conftest.err
12602        } && test -s conftest.$ac_objext; then
12603   ac_lo=$ac_mid; break
12604 else
12605   $as_echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608         ac_hi=`expr '(' $ac_mid ')' - 1`
12609                         if test $ac_mid -le $ac_hi; then
12610                           ac_lo= ac_hi=
12611                           break
12612                         fi
12613                         ac_mid=`expr 2 '*' $ac_mid`
12614 fi
12615
12616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12617   done
12618 else
12619   $as_echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12621
12622         ac_lo= ac_hi=
12623 fi
12624
12625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12626 fi
12627
12628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12629 # Binary search between lo and hi bounds.
12630 while test "x$ac_lo" != "x$ac_hi"; do
12631   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12632   cat >conftest.$ac_ext <<_ACEOF
12633 /* confdefs.h.  */
12634 _ACEOF
12635 cat confdefs.h >>conftest.$ac_ext
12636 cat >>conftest.$ac_ext <<_ACEOF
12637 /* end confdefs.h.  */
12638 $ac_includes_default
12639 int
12640 main ()
12641 {
12642 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
12643 test_array [0] = 0
12644
12645   ;
12646   return 0;
12647 }
12648 _ACEOF
12649 rm -f conftest.$ac_objext
12650 if { (ac_try="$ac_compile"
12651 case "(($ac_try" in
12652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653   *) ac_try_echo=$ac_try;;
12654 esac
12655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12656 $as_echo "$ac_try_echo") >&5
12657   (eval "$ac_compile") 2>conftest.er1
12658   ac_status=$?
12659   grep -v '^ *+' conftest.er1 >conftest.err
12660   rm -f conftest.er1
12661   cat conftest.err >&5
12662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); } && {
12664          test -z "$ac_c_werror_flag" ||
12665          test ! -s conftest.err
12666        } && test -s conftest.$ac_objext; then
12667   ac_hi=$ac_mid
12668 else
12669   $as_echo "$as_me: failed program was:" >&5
12670 sed 's/^/| /' conftest.$ac_ext >&5
12671
12672         ac_lo=`expr '(' $ac_mid ')' + 1`
12673 fi
12674
12675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12676 done
12677 case $ac_lo in
12678 ?*) ac_cv_sizeof_int=$ac_lo;;
12679 '') if test "$ac_cv_type_int" = yes; then
12680      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12682 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
12683 See \`config.log' for more details." >&5
12684 $as_echo "$as_me: error: cannot compute sizeof (int)
12685 See \`config.log' for more details." >&2;}
12686    { (exit 77); exit 77; }; }; }
12687    else
12688      ac_cv_sizeof_int=0
12689    fi ;;
12690 esac
12691 else
12692   cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h.  */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h.  */
12698 $ac_includes_default
12699 static long int longval () { return (long int) (sizeof (int)); }
12700 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
12701 #include <stdio.h>
12702 #include <stdlib.h>
12703 int
12704 main ()
12705 {
12706
12707   FILE *f = fopen ("conftest.val", "w");
12708   if (! f)
12709     return 1;
12710   if (((long int) (sizeof (int))) < 0)
12711     {
12712       long int i = longval ();
12713       if (i != ((long int) (sizeof (int))))
12714         return 1;
12715       fprintf (f, "%ld", i);
12716     }
12717   else
12718     {
12719       unsigned long int i = ulongval ();
12720       if (i != ((long int) (sizeof (int))))
12721         return 1;
12722       fprintf (f, "%lu", i);
12723     }
12724   /* Do not output a trailing newline, as this causes \r\n confusion
12725      on some platforms.  */
12726   return ferror (f) || fclose (f) != 0;
12727
12728   ;
12729   return 0;
12730 }
12731 _ACEOF
12732 rm -f conftest$ac_exeext
12733 if { (ac_try="$ac_link"
12734 case "(($ac_try" in
12735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736   *) ac_try_echo=$ac_try;;
12737 esac
12738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12739 $as_echo "$ac_try_echo") >&5
12740   (eval "$ac_link") 2>&5
12741   ac_status=$?
12742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12744   { (case "(($ac_try" in
12745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746   *) ac_try_echo=$ac_try;;
12747 esac
12748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12749 $as_echo "$ac_try_echo") >&5
12750   (eval "$ac_try") 2>&5
12751   ac_status=$?
12752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); }; }; then
12754   ac_cv_sizeof_int=`cat conftest.val`
12755 else
12756   $as_echo "$as_me: program exited with status $ac_status" >&5
12757 $as_echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12759
12760 ( exit $ac_status )
12761 if test "$ac_cv_type_int" = yes; then
12762      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12764 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
12765 See \`config.log' for more details." >&5
12766 $as_echo "$as_me: error: cannot compute sizeof (int)
12767 See \`config.log' for more details." >&2;}
12768    { (exit 77); exit 77; }; }; }
12769    else
12770      ac_cv_sizeof_int=0
12771    fi
12772 fi
12773 rm -rf conftest.dSYM
12774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12775 fi
12776 rm -f conftest.val
12777 fi
12778 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12779 $as_echo "$ac_cv_sizeof_int" >&6; }
12780
12781
12782
12783 cat >>confdefs.h <<_ACEOF
12784 #define SIZEOF_INT $ac_cv_sizeof_int
12785 _ACEOF
12786
12787
12788 # The cast to long int works around a bug in the HP C Compiler
12789 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12790 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12791 # This bug is HP SR number 8606223364.
12792 { $as_echo "$as_me:$LINENO: checking size of long" >&5
12793 $as_echo_n "checking size of long... " >&6; }
12794 if test "${ac_cv_sizeof_long+set}" = set; then
12795   $as_echo_n "(cached) " >&6
12796 else
12797   if test "$cross_compiling" = yes; then
12798   # Depending upon the size, compute the lo and hi bounds.
12799 cat >conftest.$ac_ext <<_ACEOF
12800 /* confdefs.h.  */
12801 _ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h.  */
12805 $ac_includes_default
12806 int
12807 main ()
12808 {
12809 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
12810 test_array [0] = 0
12811
12812   ;
12813   return 0;
12814 }
12815 _ACEOF
12816 rm -f conftest.$ac_objext
12817 if { (ac_try="$ac_compile"
12818 case "(($ac_try" in
12819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820   *) ac_try_echo=$ac_try;;
12821 esac
12822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12823 $as_echo "$ac_try_echo") >&5
12824   (eval "$ac_compile") 2>conftest.er1
12825   ac_status=$?
12826   grep -v '^ *+' conftest.er1 >conftest.err
12827   rm -f conftest.er1
12828   cat conftest.err >&5
12829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); } && {
12831          test -z "$ac_c_werror_flag" ||
12832          test ! -s conftest.err
12833        } && test -s conftest.$ac_objext; then
12834   ac_lo=0 ac_mid=0
12835   while :; do
12836     cat >conftest.$ac_ext <<_ACEOF
12837 /* confdefs.h.  */
12838 _ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h.  */
12842 $ac_includes_default
12843 int
12844 main ()
12845 {
12846 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
12847 test_array [0] = 0
12848
12849   ;
12850   return 0;
12851 }
12852 _ACEOF
12853 rm -f conftest.$ac_objext
12854 if { (ac_try="$ac_compile"
12855 case "(($ac_try" in
12856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857   *) ac_try_echo=$ac_try;;
12858 esac
12859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12860 $as_echo "$ac_try_echo") >&5
12861   (eval "$ac_compile") 2>conftest.er1
12862   ac_status=$?
12863   grep -v '^ *+' conftest.er1 >conftest.err
12864   rm -f conftest.er1
12865   cat conftest.err >&5
12866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867   (exit $ac_status); } && {
12868          test -z "$ac_c_werror_flag" ||
12869          test ! -s conftest.err
12870        } && test -s conftest.$ac_objext; then
12871   ac_hi=$ac_mid; break
12872 else
12873   $as_echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12875
12876         ac_lo=`expr $ac_mid + 1`
12877                         if test $ac_lo -le $ac_mid; then
12878                           ac_lo= ac_hi=
12879                           break
12880                         fi
12881                         ac_mid=`expr 2 '*' $ac_mid + 1`
12882 fi
12883
12884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12885   done
12886 else
12887   $as_echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12889
12890         cat >conftest.$ac_ext <<_ACEOF
12891 /* confdefs.h.  */
12892 _ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h.  */
12896 $ac_includes_default
12897 int
12898 main ()
12899 {
12900 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
12901 test_array [0] = 0
12902
12903   ;
12904   return 0;
12905 }
12906 _ACEOF
12907 rm -f conftest.$ac_objext
12908 if { (ac_try="$ac_compile"
12909 case "(($ac_try" in
12910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911   *) ac_try_echo=$ac_try;;
12912 esac
12913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12914 $as_echo "$ac_try_echo") >&5
12915   (eval "$ac_compile") 2>conftest.er1
12916   ac_status=$?
12917   grep -v '^ *+' conftest.er1 >conftest.err
12918   rm -f conftest.er1
12919   cat conftest.err >&5
12920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921   (exit $ac_status); } && {
12922          test -z "$ac_c_werror_flag" ||
12923          test ! -s conftest.err
12924        } && test -s conftest.$ac_objext; then
12925   ac_hi=-1 ac_mid=-1
12926   while :; do
12927     cat >conftest.$ac_ext <<_ACEOF
12928 /* confdefs.h.  */
12929 _ACEOF
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h.  */
12933 $ac_includes_default
12934 int
12935 main ()
12936 {
12937 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
12938 test_array [0] = 0
12939
12940   ;
12941   return 0;
12942 }
12943 _ACEOF
12944 rm -f conftest.$ac_objext
12945 if { (ac_try="$ac_compile"
12946 case "(($ac_try" in
12947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948   *) ac_try_echo=$ac_try;;
12949 esac
12950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12951 $as_echo "$ac_try_echo") >&5
12952   (eval "$ac_compile") 2>conftest.er1
12953   ac_status=$?
12954   grep -v '^ *+' conftest.er1 >conftest.err
12955   rm -f conftest.er1
12956   cat conftest.err >&5
12957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958   (exit $ac_status); } && {
12959          test -z "$ac_c_werror_flag" ||
12960          test ! -s conftest.err
12961        } && test -s conftest.$ac_objext; then
12962   ac_lo=$ac_mid; break
12963 else
12964   $as_echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12966
12967         ac_hi=`expr '(' $ac_mid ')' - 1`
12968                         if test $ac_mid -le $ac_hi; then
12969                           ac_lo= ac_hi=
12970                           break
12971                         fi
12972                         ac_mid=`expr 2 '*' $ac_mid`
12973 fi
12974
12975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12976   done
12977 else
12978   $as_echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12980
12981         ac_lo= ac_hi=
12982 fi
12983
12984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12985 fi
12986
12987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12988 # Binary search between lo and hi bounds.
12989 while test "x$ac_lo" != "x$ac_hi"; do
12990   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12991   cat >conftest.$ac_ext <<_ACEOF
12992 /* confdefs.h.  */
12993 _ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h.  */
12997 $ac_includes_default
12998 int
12999 main ()
13000 {
13001 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
13002 test_array [0] = 0
13003
13004   ;
13005   return 0;
13006 }
13007 _ACEOF
13008 rm -f conftest.$ac_objext
13009 if { (ac_try="$ac_compile"
13010 case "(($ac_try" in
13011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012   *) ac_try_echo=$ac_try;;
13013 esac
13014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13015 $as_echo "$ac_try_echo") >&5
13016   (eval "$ac_compile") 2>conftest.er1
13017   ac_status=$?
13018   grep -v '^ *+' conftest.er1 >conftest.err
13019   rm -f conftest.er1
13020   cat conftest.err >&5
13021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); } && {
13023          test -z "$ac_c_werror_flag" ||
13024          test ! -s conftest.err
13025        } && test -s conftest.$ac_objext; then
13026   ac_hi=$ac_mid
13027 else
13028   $as_echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13030
13031         ac_lo=`expr '(' $ac_mid ')' + 1`
13032 fi
13033
13034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13035 done
13036 case $ac_lo in
13037 ?*) ac_cv_sizeof_long=$ac_lo;;
13038 '') if test "$ac_cv_type_long" = yes; then
13039      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13041 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13042 See \`config.log' for more details." >&5
13043 $as_echo "$as_me: error: cannot compute sizeof (long)
13044 See \`config.log' for more details." >&2;}
13045    { (exit 77); exit 77; }; }; }
13046    else
13047      ac_cv_sizeof_long=0
13048    fi ;;
13049 esac
13050 else
13051   cat >conftest.$ac_ext <<_ACEOF
13052 /* confdefs.h.  */
13053 _ACEOF
13054 cat confdefs.h >>conftest.$ac_ext
13055 cat >>conftest.$ac_ext <<_ACEOF
13056 /* end confdefs.h.  */
13057 $ac_includes_default
13058 static long int longval () { return (long int) (sizeof (long)); }
13059 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
13060 #include <stdio.h>
13061 #include <stdlib.h>
13062 int
13063 main ()
13064 {
13065
13066   FILE *f = fopen ("conftest.val", "w");
13067   if (! f)
13068     return 1;
13069   if (((long int) (sizeof (long))) < 0)
13070     {
13071       long int i = longval ();
13072       if (i != ((long int) (sizeof (long))))
13073         return 1;
13074       fprintf (f, "%ld", i);
13075     }
13076   else
13077     {
13078       unsigned long int i = ulongval ();
13079       if (i != ((long int) (sizeof (long))))
13080         return 1;
13081       fprintf (f, "%lu", i);
13082     }
13083   /* Do not output a trailing newline, as this causes \r\n confusion
13084      on some platforms.  */
13085   return ferror (f) || fclose (f) != 0;
13086
13087   ;
13088   return 0;
13089 }
13090 _ACEOF
13091 rm -f conftest$ac_exeext
13092 if { (ac_try="$ac_link"
13093 case "(($ac_try" in
13094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095   *) ac_try_echo=$ac_try;;
13096 esac
13097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13098 $as_echo "$ac_try_echo") >&5
13099   (eval "$ac_link") 2>&5
13100   ac_status=$?
13101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13103   { (case "(($ac_try" in
13104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105   *) ac_try_echo=$ac_try;;
13106 esac
13107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13108 $as_echo "$ac_try_echo") >&5
13109   (eval "$ac_try") 2>&5
13110   ac_status=$?
13111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112   (exit $ac_status); }; }; then
13113   ac_cv_sizeof_long=`cat conftest.val`
13114 else
13115   $as_echo "$as_me: program exited with status $ac_status" >&5
13116 $as_echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13118
13119 ( exit $ac_status )
13120 if test "$ac_cv_type_long" = yes; then
13121      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13123 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13124 See \`config.log' for more details." >&5
13125 $as_echo "$as_me: error: cannot compute sizeof (long)
13126 See \`config.log' for more details." >&2;}
13127    { (exit 77); exit 77; }; }; }
13128    else
13129      ac_cv_sizeof_long=0
13130    fi
13131 fi
13132 rm -rf conftest.dSYM
13133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13134 fi
13135 rm -f conftest.val
13136 fi
13137 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13138 $as_echo "$ac_cv_sizeof_long" >&6; }
13139
13140
13141
13142 cat >>confdefs.h <<_ACEOF
13143 #define SIZEOF_LONG $ac_cv_sizeof_long
13144 _ACEOF
13145
13146
13147 # The cast to long int works around a bug in the HP C Compiler
13148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13150 # This bug is HP SR number 8606223364.
13151 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
13152 $as_echo_n "checking size of long long... " >&6; }
13153 if test "${ac_cv_sizeof_long_long+set}" = set; then
13154   $as_echo_n "(cached) " >&6
13155 else
13156   if test "$cross_compiling" = yes; then
13157   # Depending upon the size, compute the lo and hi bounds.
13158 cat >conftest.$ac_ext <<_ACEOF
13159 /* confdefs.h.  */
13160 _ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h.  */
13164 $ac_includes_default
13165 int
13166 main ()
13167 {
13168 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
13169 test_array [0] = 0
13170
13171   ;
13172   return 0;
13173 }
13174 _ACEOF
13175 rm -f conftest.$ac_objext
13176 if { (ac_try="$ac_compile"
13177 case "(($ac_try" in
13178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179   *) ac_try_echo=$ac_try;;
13180 esac
13181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13182 $as_echo "$ac_try_echo") >&5
13183   (eval "$ac_compile") 2>conftest.er1
13184   ac_status=$?
13185   grep -v '^ *+' conftest.er1 >conftest.err
13186   rm -f conftest.er1
13187   cat conftest.err >&5
13188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189   (exit $ac_status); } && {
13190          test -z "$ac_c_werror_flag" ||
13191          test ! -s conftest.err
13192        } && test -s conftest.$ac_objext; then
13193   ac_lo=0 ac_mid=0
13194   while :; do
13195     cat >conftest.$ac_ext <<_ACEOF
13196 /* confdefs.h.  */
13197 _ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h.  */
13201 $ac_includes_default
13202 int
13203 main ()
13204 {
13205 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
13206 test_array [0] = 0
13207
13208   ;
13209   return 0;
13210 }
13211 _ACEOF
13212 rm -f conftest.$ac_objext
13213 if { (ac_try="$ac_compile"
13214 case "(($ac_try" in
13215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216   *) ac_try_echo=$ac_try;;
13217 esac
13218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13219 $as_echo "$ac_try_echo") >&5
13220   (eval "$ac_compile") 2>conftest.er1
13221   ac_status=$?
13222   grep -v '^ *+' conftest.er1 >conftest.err
13223   rm -f conftest.er1
13224   cat conftest.err >&5
13225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226   (exit $ac_status); } && {
13227          test -z "$ac_c_werror_flag" ||
13228          test ! -s conftest.err
13229        } && test -s conftest.$ac_objext; then
13230   ac_hi=$ac_mid; break
13231 else
13232   $as_echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13234
13235         ac_lo=`expr $ac_mid + 1`
13236                         if test $ac_lo -le $ac_mid; then
13237                           ac_lo= ac_hi=
13238                           break
13239                         fi
13240                         ac_mid=`expr 2 '*' $ac_mid + 1`
13241 fi
13242
13243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13244   done
13245 else
13246   $as_echo "$as_me: failed program was:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13248
13249         cat >conftest.$ac_ext <<_ACEOF
13250 /* confdefs.h.  */
13251 _ACEOF
13252 cat confdefs.h >>conftest.$ac_ext
13253 cat >>conftest.$ac_ext <<_ACEOF
13254 /* end confdefs.h.  */
13255 $ac_includes_default
13256 int
13257 main ()
13258 {
13259 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
13260 test_array [0] = 0
13261
13262   ;
13263   return 0;
13264 }
13265 _ACEOF
13266 rm -f conftest.$ac_objext
13267 if { (ac_try="$ac_compile"
13268 case "(($ac_try" in
13269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270   *) ac_try_echo=$ac_try;;
13271 esac
13272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13273 $as_echo "$ac_try_echo") >&5
13274   (eval "$ac_compile") 2>conftest.er1
13275   ac_status=$?
13276   grep -v '^ *+' conftest.er1 >conftest.err
13277   rm -f conftest.er1
13278   cat conftest.err >&5
13279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); } && {
13281          test -z "$ac_c_werror_flag" ||
13282          test ! -s conftest.err
13283        } && test -s conftest.$ac_objext; then
13284   ac_hi=-1 ac_mid=-1
13285   while :; do
13286     cat >conftest.$ac_ext <<_ACEOF
13287 /* confdefs.h.  */
13288 _ACEOF
13289 cat confdefs.h >>conftest.$ac_ext
13290 cat >>conftest.$ac_ext <<_ACEOF
13291 /* end confdefs.h.  */
13292 $ac_includes_default
13293 int
13294 main ()
13295 {
13296 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
13297 test_array [0] = 0
13298
13299   ;
13300   return 0;
13301 }
13302 _ACEOF
13303 rm -f conftest.$ac_objext
13304 if { (ac_try="$ac_compile"
13305 case "(($ac_try" in
13306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307   *) ac_try_echo=$ac_try;;
13308 esac
13309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13310 $as_echo "$ac_try_echo") >&5
13311   (eval "$ac_compile") 2>conftest.er1
13312   ac_status=$?
13313   grep -v '^ *+' conftest.er1 >conftest.err
13314   rm -f conftest.er1
13315   cat conftest.err >&5
13316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317   (exit $ac_status); } && {
13318          test -z "$ac_c_werror_flag" ||
13319          test ! -s conftest.err
13320        } && test -s conftest.$ac_objext; then
13321   ac_lo=$ac_mid; break
13322 else
13323   $as_echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13325
13326         ac_hi=`expr '(' $ac_mid ')' - 1`
13327                         if test $ac_mid -le $ac_hi; then
13328                           ac_lo= ac_hi=
13329                           break
13330                         fi
13331                         ac_mid=`expr 2 '*' $ac_mid`
13332 fi
13333
13334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13335   done
13336 else
13337   $as_echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13339
13340         ac_lo= ac_hi=
13341 fi
13342
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13344 fi
13345
13346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13347 # Binary search between lo and hi bounds.
13348 while test "x$ac_lo" != "x$ac_hi"; do
13349   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13350   cat >conftest.$ac_ext <<_ACEOF
13351 /* confdefs.h.  */
13352 _ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h.  */
13356 $ac_includes_default
13357 int
13358 main ()
13359 {
13360 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
13361 test_array [0] = 0
13362
13363   ;
13364   return 0;
13365 }
13366 _ACEOF
13367 rm -f conftest.$ac_objext
13368 if { (ac_try="$ac_compile"
13369 case "(($ac_try" in
13370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371   *) ac_try_echo=$ac_try;;
13372 esac
13373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13374 $as_echo "$ac_try_echo") >&5
13375   (eval "$ac_compile") 2>conftest.er1
13376   ac_status=$?
13377   grep -v '^ *+' conftest.er1 >conftest.err
13378   rm -f conftest.er1
13379   cat conftest.err >&5
13380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381   (exit $ac_status); } && {
13382          test -z "$ac_c_werror_flag" ||
13383          test ! -s conftest.err
13384        } && test -s conftest.$ac_objext; then
13385   ac_hi=$ac_mid
13386 else
13387   $as_echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13389
13390         ac_lo=`expr '(' $ac_mid ')' + 1`
13391 fi
13392
13393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13394 done
13395 case $ac_lo in
13396 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13397 '') if test "$ac_cv_type_long_long" = yes; then
13398      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13400 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13401 See \`config.log' for more details." >&5
13402 $as_echo "$as_me: error: cannot compute sizeof (long long)
13403 See \`config.log' for more details." >&2;}
13404    { (exit 77); exit 77; }; }; }
13405    else
13406      ac_cv_sizeof_long_long=0
13407    fi ;;
13408 esac
13409 else
13410   cat >conftest.$ac_ext <<_ACEOF
13411 /* confdefs.h.  */
13412 _ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h.  */
13416 $ac_includes_default
13417 static long int longval () { return (long int) (sizeof (long long)); }
13418 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
13419 #include <stdio.h>
13420 #include <stdlib.h>
13421 int
13422 main ()
13423 {
13424
13425   FILE *f = fopen ("conftest.val", "w");
13426   if (! f)
13427     return 1;
13428   if (((long int) (sizeof (long long))) < 0)
13429     {
13430       long int i = longval ();
13431       if (i != ((long int) (sizeof (long long))))
13432         return 1;
13433       fprintf (f, "%ld", i);
13434     }
13435   else
13436     {
13437       unsigned long int i = ulongval ();
13438       if (i != ((long int) (sizeof (long long))))
13439         return 1;
13440       fprintf (f, "%lu", i);
13441     }
13442   /* Do not output a trailing newline, as this causes \r\n confusion
13443      on some platforms.  */
13444   return ferror (f) || fclose (f) != 0;
13445
13446   ;
13447   return 0;
13448 }
13449 _ACEOF
13450 rm -f conftest$ac_exeext
13451 if { (ac_try="$ac_link"
13452 case "(($ac_try" in
13453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454   *) ac_try_echo=$ac_try;;
13455 esac
13456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13457 $as_echo "$ac_try_echo") >&5
13458   (eval "$ac_link") 2>&5
13459   ac_status=$?
13460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13462   { (case "(($ac_try" in
13463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464   *) ac_try_echo=$ac_try;;
13465 esac
13466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13467 $as_echo "$ac_try_echo") >&5
13468   (eval "$ac_try") 2>&5
13469   ac_status=$?
13470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471   (exit $ac_status); }; }; then
13472   ac_cv_sizeof_long_long=`cat conftest.val`
13473 else
13474   $as_echo "$as_me: program exited with status $ac_status" >&5
13475 $as_echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13477
13478 ( exit $ac_status )
13479 if test "$ac_cv_type_long_long" = yes; then
13480      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13482 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13483 See \`config.log' for more details." >&5
13484 $as_echo "$as_me: error: cannot compute sizeof (long long)
13485 See \`config.log' for more details." >&2;}
13486    { (exit 77); exit 77; }; }; }
13487    else
13488      ac_cv_sizeof_long_long=0
13489    fi
13490 fi
13491 rm -rf conftest.dSYM
13492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13493 fi
13494 rm -f conftest.val
13495 fi
13496 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13497 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13498
13499
13500
13501 cat >>confdefs.h <<_ACEOF
13502 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13503 _ACEOF
13504
13505
13506
13507
13508
13509
13510
13511
13512 for ac_func in waitpid fcntl pipe fork
13513 do
13514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13515 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13516 $as_echo_n "checking for $ac_func... " >&6; }
13517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13518   $as_echo_n "(cached) " >&6
13519 else
13520   cat >conftest.$ac_ext <<_ACEOF
13521 /* confdefs.h.  */
13522 _ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h.  */
13526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13528 #define $ac_func innocuous_$ac_func
13529
13530 /* System header to define __stub macros and hopefully few prototypes,
13531     which can conflict with char $ac_func (); below.
13532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13533     <limits.h> exists even on freestanding compilers.  */
13534
13535 #ifdef __STDC__
13536 # include <limits.h>
13537 #else
13538 # include <assert.h>
13539 #endif
13540
13541 #undef $ac_func
13542
13543 /* Override any GCC internal prototype to avoid an error.
13544    Use char because int might match the return type of a GCC
13545    builtin and then its argument prototype would still apply.  */
13546 #ifdef __cplusplus
13547 extern "C"
13548 #endif
13549 char $ac_func ();
13550 /* The GNU C library defines this for functions which it implements
13551     to always fail with ENOSYS.  Some functions are actually named
13552     something starting with __ and the normal name is an alias.  */
13553 #if defined __stub_$ac_func || defined __stub___$ac_func
13554 choke me
13555 #endif
13556
13557 int
13558 main ()
13559 {
13560 return $ac_func ();
13561   ;
13562   return 0;
13563 }
13564 _ACEOF
13565 rm -f conftest.$ac_objext conftest$ac_exeext
13566 if { (ac_try="$ac_link"
13567 case "(($ac_try" in
13568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569   *) ac_try_echo=$ac_try;;
13570 esac
13571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13572 $as_echo "$ac_try_echo") >&5
13573   (eval "$ac_link") 2>conftest.er1
13574   ac_status=$?
13575   grep -v '^ *+' conftest.er1 >conftest.err
13576   rm -f conftest.er1
13577   cat conftest.err >&5
13578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); } && {
13580          test -z "$ac_c_werror_flag" ||
13581          test ! -s conftest.err
13582        } && test -s conftest$ac_exeext && {
13583          test "$cross_compiling" = yes ||
13584          $as_test_x conftest$ac_exeext
13585        }; then
13586   eval "$as_ac_var=yes"
13587 else
13588   $as_echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13590
13591         eval "$as_ac_var=no"
13592 fi
13593
13594 rm -rf conftest.dSYM
13595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13596       conftest$ac_exeext conftest.$ac_ext
13597 fi
13598 ac_res=`eval 'as_val=${'$as_ac_var'}
13599                  $as_echo "$as_val"'`
13600                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13601 $as_echo "$ac_res" >&6; }
13602 as_val=`eval 'as_val=${'$as_ac_var'}
13603                  $as_echo "$as_val"'`
13604    if test "x$as_val" = x""yes; then
13605   cat >>confdefs.h <<_ACEOF
13606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13607 _ACEOF
13608
13609 fi
13610 done
13611
13612
13613
13614
13615
13616
13617
13618
13619 cat >confcache <<\_ACEOF
13620 # This file is a shell script that caches the results of configure
13621 # tests run on this system so they can be shared between configure
13622 # scripts and configure runs, see configure's option --config-cache.
13623 # It is not useful on other systems.  If it contains results you don't
13624 # want to keep, you may remove or edit it.
13625 #
13626 # config.status only pays attention to the cache file if you give it
13627 # the --recheck option to rerun configure.
13628 #
13629 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13630 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13631 # following values.
13632
13633 _ACEOF
13634
13635 # The following way of writing the cache mishandles newlines in values,
13636 # but we know of no workaround that is simple, portable, and efficient.
13637 # So, we kill variables containing newlines.
13638 # Ultrix sh set writes to stderr and can't be redirected directly,
13639 # and sets the high bit in the cache file unless we assign to the vars.
13640 (
13641   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13642     eval ac_val=\$$ac_var
13643     case $ac_val in #(
13644     *${as_nl}*)
13645       case $ac_var in #(
13646       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13647 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13648       esac
13649       case $ac_var in #(
13650       _ | IFS | as_nl) ;; #(
13651       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13652       *) $as_unset $ac_var ;;
13653       esac ;;
13654     esac
13655   done
13656
13657   (set) 2>&1 |
13658     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13659     *${as_nl}ac_space=\ *)
13660       # `set' does not quote correctly, so add quotes (double-quote
13661       # substitution turns \\\\ into \\, and sed turns \\ into \).
13662       sed -n \
13663         "s/'/'\\\\''/g;
13664           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13665       ;; #(
13666     *)
13667       # `set' quotes correctly as required by POSIX, so do not add quotes.
13668       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13669       ;;
13670     esac |
13671     sort
13672 ) |
13673   sed '
13674      /^ac_cv_env_/b end
13675      t clear
13676      :clear
13677      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13678      t end
13679      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13680      :end' >>confcache
13681 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13682   if test -w "$cache_file"; then
13683     test "x$cache_file" != "x/dev/null" &&
13684       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13685 $as_echo "$as_me: updating cache $cache_file" >&6;}
13686     cat confcache >$cache_file
13687   else
13688     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13689 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13690   fi
13691 fi
13692 rm -f confcache
13693
13694 { $as_echo "$as_me:$LINENO: checking whether to optimize for speed or for accuracy" >&5
13695 $as_echo_n "checking whether to optimize for speed or for accuracy... " >&6; }
13696
13697 # Check whether --enable-speed was given.
13698 if test "${enable_speed+set}" = set; then
13699   enableval=$enable_speed;
13700     case "$enableval" in
13701         yes)
13702             optimize_for="speed"
13703
13704 cat >>confdefs.h <<\_ACEOF
13705 #define OPT_SPEED 1
13706 _ACEOF
13707
13708             ;;
13709     esac
13710
13711 fi
13712
13713
13714 # Check whether --enable-accuracy was given.
13715 if test "${enable_accuracy+set}" = set; then
13716   enableval=$enable_accuracy;
13717     case "$enableval" in
13718         yes)
13719             if test "$optimize_for" = "speed"
13720             then
13721                 optimize_for="both"
13722             else
13723                 optimize_for="accuracy"
13724             fi
13725
13726 cat >>confdefs.h <<\_ACEOF
13727 #define OPT_ACCURACY 1
13728 _ACEOF
13729
13730             ;;
13731     esac
13732
13733 fi
13734
13735
13736 { $as_echo "$as_me:$LINENO: result: ${optimize_for-default}" >&5
13737 $as_echo "${optimize_for-default}" >&6; }
13738
13739 if test "$optimize_for" = "both"
13740 then
13741     { { $as_echo "$as_me:$LINENO: error: cannot optimize for both speed and accuracy" >&5
13742 $as_echo "$as_me: error: cannot optimize for both speed and accuracy" >&2;}
13743    { (exit 1); exit 1; }; }
13744 fi
13745
13746 { $as_echo "$as_me:$LINENO: checking for architecture-specific fixed-point math routines" >&5
13747 $as_echo_n "checking for architecture-specific fixed-point math routines... " >&6; }
13748 # Check whether --enable-fpm was given.
13749 if test "${enable_fpm+set}" = set; then
13750   enableval=$enable_fpm;
13751     case "$enableval" in
13752         yes)                             ;;
13753         no|default|approx) FPM="DEFAULT" ;;
13754         intel|i?86)        FPM="INTEL"   ;;
13755         arm)               FPM="ARM"     ;;
13756         mips)              FPM="MIPS"    ;;
13757         sparc)             FPM="SPARC"   ;;
13758         ppc|powerpc)       FPM="PPC"     ;;
13759         64bit)             FPM="64BIT"   ;;
13760         float)             FPM="FLOAT"   ;;
13761         *)
13762             { $as_echo "$as_me:$LINENO: result: failed" >&5
13763 $as_echo "failed" >&6; }
13764             { { $as_echo "$as_me:$LINENO: error: bad --enable-fpm option" >&5
13765 $as_echo "$as_me: error: bad --enable-fpm option" >&2;}
13766    { (exit 1); exit 1; }; }
13767             ;;
13768     esac
13769
13770 fi
13771
13772
13773 if test -z "$FPM" && test "$GCC" = yes
13774 then
13775     case "$host" in
13776         i?86-*)     FPM="INTEL"  ;;
13777         arm*-*)     FPM="ARM"    ;;
13778         mips*-*)    FPM="MIPS"   ;;
13779         sparc*-*)   FPM="SPARC"  ;;
13780         powerpc*-*) FPM="PPC"    ;;
13781         # FIXME: need to test for 64-bit long long...
13782     esac
13783 fi
13784
13785 { $as_echo "$as_me:$LINENO: result: ${FPM=DEFAULT}" >&5
13786 $as_echo "${FPM=DEFAULT}" >&6; }
13787
13788 if test "$FPM" = "DEFAULT"
13789 then
13790     { $as_echo "$as_me:$LINENO: WARNING: default fixed-point math will yield limited accuracy" >&5
13791 $as_echo "$as_me: WARNING: default fixed-point math will yield limited accuracy" >&2;}
13792 fi
13793
13794 FPM="-DFPM_$FPM"
13795
13796 # Check whether --enable-sso was given.
13797 if test "${enable_sso+set}" = set; then
13798   enableval=$enable_sso;
13799     case "$enableval" in
13800         yes)
13801
13802 cat >>confdefs.h <<\_ACEOF
13803 #define OPT_SSO 1
13804 _ACEOF
13805
13806             ;;
13807     esac
13808
13809 fi
13810
13811
13812 # Check whether --enable-aso was given.
13813 if test "${enable_aso+set}" = set; then
13814   enableval=$enable_aso;
13815 else
13816   enable_aso=yes
13817 fi
13818
13819
13820 if test "$enable_aso" = yes
13821 then
13822     case "$host" in
13823         i?86-*)
13824             : #ASO="$ASO -DASO_INTERLEAVE1"
13825             ASO="$ASO -DASO_ZEROCHECK"
13826             : #not yet #ASO="$ASO -DASO_SYNTH"
13827             : #not yet #ASO_OBJS="synth_mmx.lo"
13828             ;;
13829         arm*-*)
13830             ASO="$ASO -DASO_INTERLEAVE1"
13831             ASO="$ASO -DASO_IMDCT"
13832             ASO_OBJS="imdct_l_arm.lo"
13833             ;;
13834         mips*-*)
13835             ASO="$ASO -DASO_INTERLEAVE2"
13836             ASO="$ASO -DASO_ZEROCHECK"
13837             ;;
13838     esac
13839 fi
13840
13841 { $as_echo "$as_me:$LINENO: checking for ISO/IEC interpretation" >&5
13842 $as_echo_n "checking for ISO/IEC interpretation... " >&6; }
13843 # Check whether --enable-strict-iso was given.
13844 if test "${enable_strict_iso+set}" = set; then
13845   enableval=$enable_strict_iso;
13846     case "$enableval" in
13847         yes)
13848
13849 cat >>confdefs.h <<\_ACEOF
13850 #define OPT_STRICT 1
13851 _ACEOF
13852
13853             interpretation="strict"
13854             ;;
13855     esac
13856
13857 fi
13858
13859 { $as_echo "$as_me:$LINENO: result: ${interpretation-best accepted practices}" >&5
13860 $as_echo "${interpretation-best accepted practices}" >&6; }
13861
13862 { $as_echo "$as_me:$LINENO: checking whether to enable profiling" >&5
13863 $as_echo_n "checking whether to enable profiling... " >&6; }
13864 # Check whether --enable-profiling was given.
13865 if test "${enable_profiling+set}" = set; then
13866   enableval=$enable_profiling;
13867     case "$enableval" in
13868         yes) profile="-pg" ;;
13869     esac
13870
13871 fi
13872
13873 { $as_echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
13874 $as_echo "${enable_profiling-no}" >&6; }
13875
13876 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
13877 $as_echo_n "checking whether to enable debugging... " >&6; }
13878 # Check whether --enable-debugging was given.
13879 if test "${enable_debugging+set}" = set; then
13880   enableval=$enable_debugging;
13881     case "$enableval" in
13882         yes)
13883
13884 cat >>confdefs.h <<\_ACEOF
13885 #define DEBUG 1
13886 _ACEOF
13887
13888             optimize=""
13889             ;;
13890         no)
13891             if test -n "$profile"
13892             then
13893     { { $as_echo "$as_me:$LINENO: error: --enable-profiling and --disable-debugging are incompatible" >&5
13894 $as_echo "$as_me: error: --enable-profiling and --disable-debugging are incompatible" >&2;}
13895    { (exit 1); exit 1; }; }
13896             fi
13897
13898
13899 cat >>confdefs.h <<\_ACEOF
13900 #define NDEBUG 1
13901 _ACEOF
13902
13903             debug=""
13904             if test "$GCC" = yes
13905             then
13906                 optimize="$optimize -fomit-frame-pointer"
13907             fi
13908             ;;
13909     esac
13910
13911 fi
13912
13913 { $as_echo "$as_me:$LINENO: result: ${enable_debugging-default}" >&5
13914 $as_echo "${enable_debugging-default}" >&6; }
13915
13916 { $as_echo "$as_me:$LINENO: checking whether to enable experimental code" >&5
13917 $as_echo_n "checking whether to enable experimental code... " >&6; }
13918 # Check whether --enable-experimental was given.
13919 if test "${enable_experimental+set}" = set; then
13920   enableval=$enable_experimental;
13921     case "$enableval" in
13922         yes)
13923
13924 cat >>confdefs.h <<\_ACEOF
13925 #define EXPERIMENTAL 1
13926 _ACEOF
13927
13928             ;;
13929     esac
13930
13931 fi
13932
13933 { $as_echo "$as_me:$LINENO: result: ${enable_experimental-no}" >&5
13934 $as_echo "${enable_experimental-no}" >&6; }
13935
13936
13937 test -n "$arch"     && CFLAGS="$CFLAGS $arch"
13938 test -n "$debug"    && CFLAGS="$CFLAGS $debug"
13939 test -n "$optimize" && CFLAGS="$CFLAGS $optimize"
13940 test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
13941
13942
13943 ac_config_files="$ac_config_files Makefile msvc++/Makefile libmad.list"
13944
13945 cat >confcache <<\_ACEOF
13946 # This file is a shell script that caches the results of configure
13947 # tests run on this system so they can be shared between configure
13948 # scripts and configure runs, see configure's option --config-cache.
13949 # It is not useful on other systems.  If it contains results you don't
13950 # want to keep, you may remove or edit it.
13951 #
13952 # config.status only pays attention to the cache file if you give it
13953 # the --recheck option to rerun configure.
13954 #
13955 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13956 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13957 # following values.
13958
13959 _ACEOF
13960
13961 # The following way of writing the cache mishandles newlines in values,
13962 # but we know of no workaround that is simple, portable, and efficient.
13963 # So, we kill variables containing newlines.
13964 # Ultrix sh set writes to stderr and can't be redirected directly,
13965 # and sets the high bit in the cache file unless we assign to the vars.
13966 (
13967   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13968     eval ac_val=\$$ac_var
13969     case $ac_val in #(
13970     *${as_nl}*)
13971       case $ac_var in #(
13972       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13973 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13974       esac
13975       case $ac_var in #(
13976       _ | IFS | as_nl) ;; #(
13977       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13978       *) $as_unset $ac_var ;;
13979       esac ;;
13980     esac
13981   done
13982
13983   (set) 2>&1 |
13984     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13985     *${as_nl}ac_space=\ *)
13986       # `set' does not quote correctly, so add quotes (double-quote
13987       # substitution turns \\\\ into \\, and sed turns \\ into \).
13988       sed -n \
13989         "s/'/'\\\\''/g;
13990           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13991       ;; #(
13992     *)
13993       # `set' quotes correctly as required by POSIX, so do not add quotes.
13994       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13995       ;;
13996     esac |
13997     sort
13998 ) |
13999   sed '
14000      /^ac_cv_env_/b end
14001      t clear
14002      :clear
14003      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14004      t end
14005      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14006      :end' >>confcache
14007 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14008   if test -w "$cache_file"; then
14009     test "x$cache_file" != "x/dev/null" &&
14010       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14011 $as_echo "$as_me: updating cache $cache_file" >&6;}
14012     cat confcache >$cache_file
14013   else
14014     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14015 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14016   fi
14017 fi
14018 rm -f confcache
14019
14020 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14021 # Let make expand exec_prefix.
14022 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14023
14024 DEFS=-DHAVE_CONFIG_H
14025
14026 ac_libobjs=
14027 ac_ltlibobjs=
14028 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14029   # 1. Remove the extension, and $U if already installed.
14030   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14031   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14032   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14033   #    will be set to the directory where LIBOBJS objects are built.
14034   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14035   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14036 done
14037 LIBOBJS=$ac_libobjs
14038
14039 LTLIBOBJS=$ac_ltlibobjs
14040
14041
14042 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14043   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14044 Usually this means the macro was only invoked conditionally." >&5
14045 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14046 Usually this means the macro was only invoked conditionally." >&2;}
14047    { (exit 1); exit 1; }; }
14048 fi
14049 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14050   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14051 Usually this means the macro was only invoked conditionally." >&5
14052 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14053 Usually this means the macro was only invoked conditionally." >&2;}
14054    { (exit 1); exit 1; }; }
14055 fi
14056 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14057   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
14058 Usually this means the macro was only invoked conditionally." >&5
14059 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
14060 Usually this means the macro was only invoked conditionally." >&2;}
14061    { (exit 1); exit 1; }; }
14062 fi
14063
14064
14065 : ${CONFIG_STATUS=./config.status}
14066 ac_write_fail=0
14067 ac_clean_files_save=$ac_clean_files
14068 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14069 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14070 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14071 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14072 #! $SHELL
14073 # Generated by $as_me.
14074 # Run this file to recreate the current configuration.
14075 # Compiler output produced by configure, useful for debugging
14076 # configure, is in config.log if it exists.
14077
14078 debug=false
14079 ac_cs_recheck=false
14080 ac_cs_silent=false
14081 SHELL=\${CONFIG_SHELL-$SHELL}
14082 _ACEOF
14083
14084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14085 ## --------------------- ##
14086 ## M4sh Initialization.  ##
14087 ## --------------------- ##
14088
14089 # Be more Bourne compatible
14090 DUALCASE=1; export DUALCASE # for MKS sh
14091 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14092   emulate sh
14093   NULLCMD=:
14094   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14095   # is contrary to our usage.  Disable this feature.
14096   alias -g '${1+"$@"}'='"$@"'
14097   setopt NO_GLOB_SUBST
14098 else
14099   case `(set -o) 2>/dev/null` in
14100   *posix*) set -o posix ;;
14101 esac
14102
14103 fi
14104
14105
14106
14107
14108 # PATH needs CR
14109 # Avoid depending upon Character Ranges.
14110 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14111 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14112 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14113 as_cr_digits='0123456789'
14114 as_cr_alnum=$as_cr_Letters$as_cr_digits
14115
14116 as_nl='
14117 '
14118 export as_nl
14119 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14120 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14121 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14122 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14123 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14124   as_echo='printf %s\n'
14125   as_echo_n='printf %s'
14126 else
14127   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14128     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14129     as_echo_n='/usr/ucb/echo -n'
14130   else
14131     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14132     as_echo_n_body='eval
14133       arg=$1;
14134       case $arg in
14135       *"$as_nl"*)
14136         expr "X$arg" : "X\\(.*\\)$as_nl";
14137         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14138       esac;
14139       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14140     '
14141     export as_echo_n_body
14142     as_echo_n='sh -c $as_echo_n_body as_echo'
14143   fi
14144   export as_echo_body
14145   as_echo='sh -c $as_echo_body as_echo'
14146 fi
14147
14148 # The user is always right.
14149 if test "${PATH_SEPARATOR+set}" != set; then
14150   PATH_SEPARATOR=:
14151   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14152     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14153       PATH_SEPARATOR=';'
14154   }
14155 fi
14156
14157 # Support unset when possible.
14158 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14159   as_unset=unset
14160 else
14161   as_unset=false
14162 fi
14163
14164
14165 # IFS
14166 # We need space, tab and new line, in precisely that order.  Quoting is
14167 # there to prevent editors from complaining about space-tab.
14168 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14169 # splitting by setting IFS to empty value.)
14170 IFS=" ""        $as_nl"
14171
14172 # Find who we are.  Look in the path if we contain no directory separator.
14173 case $0 in
14174   *[\\/]* ) as_myself=$0 ;;
14175   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176 for as_dir in $PATH
14177 do
14178   IFS=$as_save_IFS
14179   test -z "$as_dir" && as_dir=.
14180   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14181 done
14182 IFS=$as_save_IFS
14183
14184      ;;
14185 esac
14186 # We did not find ourselves, most probably we were run as `sh COMMAND'
14187 # in which case we are not to be found in the path.
14188 if test "x$as_myself" = x; then
14189   as_myself=$0
14190 fi
14191 if test ! -f "$as_myself"; then
14192   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14193   { (exit 1); exit 1; }
14194 fi
14195
14196 # Work around bugs in pre-3.0 UWIN ksh.
14197 for as_var in ENV MAIL MAILPATH
14198 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14199 done
14200 PS1='$ '
14201 PS2='> '
14202 PS4='+ '
14203
14204 # NLS nuisances.
14205 LC_ALL=C
14206 export LC_ALL
14207 LANGUAGE=C
14208 export LANGUAGE
14209
14210 # Required to use basename.
14211 if expr a : '\(a\)' >/dev/null 2>&1 &&
14212    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14213   as_expr=expr
14214 else
14215   as_expr=false
14216 fi
14217
14218 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14219   as_basename=basename
14220 else
14221   as_basename=false
14222 fi
14223
14224
14225 # Name of the executable.
14226 as_me=`$as_basename -- "$0" ||
14227 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14228          X"$0" : 'X\(//\)$' \| \
14229          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14230 $as_echo X/"$0" |
14231     sed '/^.*\/\([^/][^/]*\)\/*$/{
14232             s//\1/
14233             q
14234           }
14235           /^X\/\(\/\/\)$/{
14236             s//\1/
14237             q
14238           }
14239           /^X\/\(\/\).*/{
14240             s//\1/
14241             q
14242           }
14243           s/.*/./; q'`
14244
14245 # CDPATH.
14246 $as_unset CDPATH
14247
14248
14249
14250   as_lineno_1=$LINENO
14251   as_lineno_2=$LINENO
14252   test "x$as_lineno_1" != "x$as_lineno_2" &&
14253   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14254
14255   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14256   # uniformly replaced by the line number.  The first 'sed' inserts a
14257   # line-number line after each line using $LINENO; the second 'sed'
14258   # does the real work.  The second script uses 'N' to pair each
14259   # line-number line with the line containing $LINENO, and appends
14260   # trailing '-' during substitution so that $LINENO is not a special
14261   # case at line end.
14262   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14263   # scripts with optimization help from Paolo Bonzini.  Blame Lee
14264   # E. McMahon (1931-1989) for sed's syntax.  :-)
14265   sed -n '
14266     p
14267     /[$]LINENO/=
14268   ' <$as_myself |
14269     sed '
14270       s/[$]LINENO.*/&-/
14271       t lineno
14272       b
14273       :lineno
14274       N
14275       :loop
14276       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14277       t loop
14278       s/-\n.*//
14279     ' >$as_me.lineno &&
14280   chmod +x "$as_me.lineno" ||
14281     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14282    { (exit 1); exit 1; }; }
14283
14284   # Don't try to exec as it changes $[0], causing all sort of problems
14285   # (the dirname of $[0] is not the place where we might find the
14286   # original and so on.  Autoconf is especially sensitive to this).
14287   . "./$as_me.lineno"
14288   # Exit status is that of the last command.
14289   exit
14290 }
14291
14292
14293 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14294   as_dirname=dirname
14295 else
14296   as_dirname=false
14297 fi
14298
14299 ECHO_C= ECHO_N= ECHO_T=
14300 case `echo -n x` in
14301 -n*)
14302   case `echo 'x\c'` in
14303   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14304   *)   ECHO_C='\c';;
14305   esac;;
14306 *)
14307   ECHO_N='-n';;
14308 esac
14309 if expr a : '\(a\)' >/dev/null 2>&1 &&
14310    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14311   as_expr=expr
14312 else
14313   as_expr=false
14314 fi
14315
14316 rm -f conf$$ conf$$.exe conf$$.file
14317 if test -d conf$$.dir; then
14318   rm -f conf$$.dir/conf$$.file
14319 else
14320   rm -f conf$$.dir
14321   mkdir conf$$.dir 2>/dev/null
14322 fi
14323 if (echo >conf$$.file) 2>/dev/null; then
14324   if ln -s conf$$.file conf$$ 2>/dev/null; then
14325     as_ln_s='ln -s'
14326     # ... but there are two gotchas:
14327     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14328     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14329     # In both cases, we have to default to `cp -p'.
14330     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14331       as_ln_s='cp -p'
14332   elif ln conf$$.file conf$$ 2>/dev/null; then
14333     as_ln_s=ln
14334   else
14335     as_ln_s='cp -p'
14336   fi
14337 else
14338   as_ln_s='cp -p'
14339 fi
14340 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14341 rmdir conf$$.dir 2>/dev/null
14342
14343 if mkdir -p . 2>/dev/null; then
14344   as_mkdir_p=:
14345 else
14346   test -d ./-p && rmdir ./-p
14347   as_mkdir_p=false
14348 fi
14349
14350 if test -x / >/dev/null 2>&1; then
14351   as_test_x='test -x'
14352 else
14353   if ls -dL / >/dev/null 2>&1; then
14354     as_ls_L_option=L
14355   else
14356     as_ls_L_option=
14357   fi
14358   as_test_x='
14359     eval sh -c '\''
14360       if test -d "$1"; then
14361         test -d "$1/.";
14362       else
14363         case $1 in
14364         -*)set "./$1";;
14365         esac;
14366         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14367         ???[sx]*):;;*)false;;esac;fi
14368     '\'' sh
14369   '
14370 fi
14371 as_executable_p=$as_test_x
14372
14373 # Sed expression to map a string onto a valid CPP name.
14374 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14375
14376 # Sed expression to map a string onto a valid variable name.
14377 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14378
14379
14380 exec 6>&1
14381
14382 # Save the log message, to keep $[0] and so on meaningful, and to
14383 # report actual input values of CONFIG_FILES etc. instead of their
14384 # values after options handling.
14385 ac_log="
14386 This file was extended by MPEG Audio Decoder $as_me 0.15.1b, which was
14387 generated by GNU Autoconf 2.63.  Invocation command line was
14388
14389   CONFIG_FILES    = $CONFIG_FILES
14390   CONFIG_HEADERS  = $CONFIG_HEADERS
14391   CONFIG_LINKS    = $CONFIG_LINKS
14392   CONFIG_COMMANDS = $CONFIG_COMMANDS
14393   $ $0 $@
14394
14395 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14396 "
14397
14398 _ACEOF
14399
14400 case $ac_config_files in *"
14401 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14402 esac
14403
14404 case $ac_config_headers in *"
14405 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14406 esac
14407
14408
14409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14410 # Files that config.status was made for.
14411 config_files="$ac_config_files"
14412 config_headers="$ac_config_headers"
14413 config_commands="$ac_config_commands"
14414
14415 _ACEOF
14416
14417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14418 ac_cs_usage="\
14419 \`$as_me' instantiates files from templates according to the
14420 current configuration.
14421
14422 Usage: $0 [OPTION]... [FILE]...
14423
14424   -h, --help       print this help, then exit
14425   -V, --version    print version number and configuration settings, then exit
14426   -q, --quiet, --silent
14427                    do not print progress messages
14428   -d, --debug      don't remove temporary files
14429       --recheck    update $as_me by reconfiguring in the same conditions
14430       --file=FILE[:TEMPLATE]
14431                    instantiate the configuration file FILE
14432       --header=FILE[:TEMPLATE]
14433                    instantiate the configuration header FILE
14434
14435 Configuration files:
14436 $config_files
14437
14438 Configuration headers:
14439 $config_headers
14440
14441 Configuration commands:
14442 $config_commands
14443
14444 Report bugs to <bug-autoconf@gnu.org>."
14445
14446 _ACEOF
14447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14448 ac_cs_version="\\
14449 MPEG Audio Decoder config.status 0.15.1b
14450 configured by $0, generated by GNU Autoconf 2.63,
14451   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14452
14453 Copyright (C) 2008 Free Software Foundation, Inc.
14454 This config.status script is free software; the Free Software Foundation
14455 gives unlimited permission to copy, distribute and modify it."
14456
14457 ac_pwd='$ac_pwd'
14458 srcdir='$srcdir'
14459 INSTALL='$INSTALL'
14460 MKDIR_P='$MKDIR_P'
14461 AWK='$AWK'
14462 test -n "\$AWK" || AWK=awk
14463 _ACEOF
14464
14465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14466 # The default lists apply if the user does not specify any file.
14467 ac_need_defaults=:
14468 while test $# != 0
14469 do
14470   case $1 in
14471   --*=*)
14472     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14473     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14474     ac_shift=:
14475     ;;
14476   *)
14477     ac_option=$1
14478     ac_optarg=$2
14479     ac_shift=shift
14480     ;;
14481   esac
14482
14483   case $ac_option in
14484   # Handling of the options.
14485   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14486     ac_cs_recheck=: ;;
14487   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14488     $as_echo "$ac_cs_version"; exit ;;
14489   --debug | --debu | --deb | --de | --d | -d )
14490     debug=: ;;
14491   --file | --fil | --fi | --f )
14492     $ac_shift
14493     case $ac_optarg in
14494     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14495     esac
14496     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14497     ac_need_defaults=false;;
14498   --header | --heade | --head | --hea )
14499     $ac_shift
14500     case $ac_optarg in
14501     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14502     esac
14503     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14504     ac_need_defaults=false;;
14505   --he | --h)
14506     # Conflict between --help and --header
14507     { $as_echo "$as_me: error: ambiguous option: $1
14508 Try \`$0 --help' for more information." >&2
14509    { (exit 1); exit 1; }; };;
14510   --help | --hel | -h )
14511     $as_echo "$ac_cs_usage"; exit ;;
14512   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14513   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14514     ac_cs_silent=: ;;
14515
14516   # This is an error.
14517   -*) { $as_echo "$as_me: error: unrecognized option: $1
14518 Try \`$0 --help' for more information." >&2
14519    { (exit 1); exit 1; }; } ;;
14520
14521   *) ac_config_targets="$ac_config_targets $1"
14522      ac_need_defaults=false ;;
14523
14524   esac
14525   shift
14526 done
14527
14528 ac_configure_extra_args=
14529
14530 if $ac_cs_silent; then
14531   exec 6>/dev/null
14532   ac_configure_extra_args="$ac_configure_extra_args --silent"
14533 fi
14534
14535 _ACEOF
14536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14537 if \$ac_cs_recheck; then
14538   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14539   shift
14540   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14541   CONFIG_SHELL='$SHELL'
14542   export CONFIG_SHELL
14543   exec "\$@"
14544 fi
14545
14546 _ACEOF
14547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14548 exec 5>>config.log
14549 {
14550   echo
14551   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14552 ## Running $as_me. ##
14553 _ASBOX
14554   $as_echo "$ac_log"
14555 } >&5
14556
14557 _ACEOF
14558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14559 #
14560 # INIT-COMMANDS
14561 #
14562 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14563
14564
14565 # The HP-UX ksh and POSIX shell print the target directory to stdout
14566 # if CDPATH is set.
14567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14568
14569 sed_quote_subst='$sed_quote_subst'
14570 double_quote_subst='$double_quote_subst'
14571 delay_variable_subst='$delay_variable_subst'
14572 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14573 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14574 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14575 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14576 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14577 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14578 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14579 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14580 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14581 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14582 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14583 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14584 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14585 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14586 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14587 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14588 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14589 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14590 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14591 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14592 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14593 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14594 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14595 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14596 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14597 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14598 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14599 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14600 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14601 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14602 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14603 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14604 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14605 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14606 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14607 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14608 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14609 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14610 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14611 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14612 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14613 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14614 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14615 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14616 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"`'
14617 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"`'
14618 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14619 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14620 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14621 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14622 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14623 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14624 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14625 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14626 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14627 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14628 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14629 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14630 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14631 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14632 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14633 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14634 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14635 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14636 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14637 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14638 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14639 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14640 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14641 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14642 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14643 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14644 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14645 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14646 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14647 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14648 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14649 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14650 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14651 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14652 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14653 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14654 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14655 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14656 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14657 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14658 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14659 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14660 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14661 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14662 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14663 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14664 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14665 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14666 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14667 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14668 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14669 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14670 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14671 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14672 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14673 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14674 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14675 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14676 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14677 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14678 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14679 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14680 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14681 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14682 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14683 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14684 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14685 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14686 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14687 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14688 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14689 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14690
14691 LTCC='$LTCC'
14692 LTCFLAGS='$LTCFLAGS'
14693 compiler='$compiler_DEFAULT'
14694
14695 # Quote evaled strings.
14696 for var in SED \
14697 GREP \
14698 EGREP \
14699 FGREP \
14700 LD \
14701 NM \
14702 LN_S \
14703 lt_SP2NL \
14704 lt_NL2SP \
14705 reload_flag \
14706 OBJDUMP \
14707 deplibs_check_method \
14708 file_magic_cmd \
14709 AR \
14710 AR_FLAGS \
14711 STRIP \
14712 RANLIB \
14713 CC \
14714 CFLAGS \
14715 compiler \
14716 lt_cv_sys_global_symbol_pipe \
14717 lt_cv_sys_global_symbol_to_cdecl \
14718 lt_cv_sys_global_symbol_to_c_name_address \
14719 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14720 SHELL \
14721 ECHO \
14722 lt_prog_compiler_no_builtin_flag \
14723 lt_prog_compiler_wl \
14724 lt_prog_compiler_pic \
14725 lt_prog_compiler_static \
14726 lt_cv_prog_compiler_c_o \
14727 need_locks \
14728 DSYMUTIL \
14729 NMEDIT \
14730 LIPO \
14731 OTOOL \
14732 OTOOL64 \
14733 shrext_cmds \
14734 export_dynamic_flag_spec \
14735 whole_archive_flag_spec \
14736 compiler_needs_object \
14737 with_gnu_ld \
14738 allow_undefined_flag \
14739 no_undefined_flag \
14740 hardcode_libdir_flag_spec \
14741 hardcode_libdir_flag_spec_ld \
14742 hardcode_libdir_separator \
14743 fix_srcfile_path \
14744 exclude_expsyms \
14745 include_expsyms \
14746 file_list_spec \
14747 variables_saved_for_relink \
14748 libname_spec \
14749 library_names_spec \
14750 soname_spec \
14751 finish_eval \
14752 old_striplib \
14753 striplib; do
14754     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14755     *[\\\\\\\`\\"\\\$]*)
14756       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14757       ;;
14758     *)
14759       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14760       ;;
14761     esac
14762 done
14763
14764 # Double-quote double-evaled strings.
14765 for var in reload_cmds \
14766 old_postinstall_cmds \
14767 old_postuninstall_cmds \
14768 old_archive_cmds \
14769 extract_expsyms_cmds \
14770 old_archive_from_new_cmds \
14771 old_archive_from_expsyms_cmds \
14772 archive_cmds \
14773 archive_expsym_cmds \
14774 module_cmds \
14775 module_expsym_cmds \
14776 export_symbols_cmds \
14777 prelink_cmds \
14778 postinstall_cmds \
14779 postuninstall_cmds \
14780 finish_cmds \
14781 sys_lib_search_path_spec \
14782 sys_lib_dlsearch_path_spec; do
14783     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14784     *[\\\\\\\`\\"\\\$]*)
14785       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14786       ;;
14787     *)
14788       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14789       ;;
14790     esac
14791 done
14792
14793 # Fix-up fallback echo if it was mangled by the above quoting rules.
14794 case \$lt_ECHO in
14795 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14796   ;;
14797 esac
14798
14799 ac_aux_dir='$ac_aux_dir'
14800 xsi_shell='$xsi_shell'
14801 lt_shell_append='$lt_shell_append'
14802
14803 # See if we are running on zsh, and set the options which allow our
14804 # commands through without removal of \ escapes INIT.
14805 if test -n "\${ZSH_VERSION+set}" ; then
14806    setopt NO_GLOB_SUBST
14807 fi
14808
14809
14810     PACKAGE='$PACKAGE'
14811     VERSION='$VERSION'
14812     TIMESTAMP='$TIMESTAMP'
14813     RM='$RM'
14814     ofile='$ofile'
14815
14816
14817
14818
14819 _ACEOF
14820
14821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14822
14823 # Handling of arguments.
14824 for ac_config_target in $ac_config_targets
14825 do
14826   case $ac_config_target in
14827     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14828     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14829     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14830     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14831     "msvc++/Makefile") CONFIG_FILES="$CONFIG_FILES msvc++/Makefile" ;;
14832     "libmad.list") CONFIG_FILES="$CONFIG_FILES libmad.list" ;;
14833
14834   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14835 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14836    { (exit 1); exit 1; }; };;
14837   esac
14838 done
14839
14840
14841 # If the user did not use the arguments to specify the items to instantiate,
14842 # then the envvar interface is used.  Set only those that are not.
14843 # We use the long form for the default assignment because of an extremely
14844 # bizarre bug on SunOS 4.1.3.
14845 if $ac_need_defaults; then
14846   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14847   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14848   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14849 fi
14850
14851 # Have a temporary directory for convenience.  Make it in the build tree
14852 # simply because there is no reason against having it here, and in addition,
14853 # creating and moving files from /tmp can sometimes cause problems.
14854 # Hook for its removal unless debugging.
14855 # Note that there is a small window in which the directory will not be cleaned:
14856 # after its creation but before its name has been assigned to `$tmp'.
14857 $debug ||
14858 {
14859   tmp=
14860   trap 'exit_status=$?
14861   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14862 ' 0
14863   trap '{ (exit 1); exit 1; }' 1 2 13 15
14864 }
14865 # Create a (secure) tmp directory for tmp files.
14866
14867 {
14868   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14869   test -n "$tmp" && test -d "$tmp"
14870 }  ||
14871 {
14872   tmp=./conf$$-$RANDOM
14873   (umask 077 && mkdir "$tmp")
14874 } ||
14875 {
14876    $as_echo "$as_me: cannot create a temporary directory in ." >&2
14877    { (exit 1); exit 1; }
14878 }
14879
14880 # Set up the scripts for CONFIG_FILES section.
14881 # No need to generate them if there are no CONFIG_FILES.
14882 # This happens for instance with `./config.status config.h'.
14883 if test -n "$CONFIG_FILES"; then
14884
14885
14886 ac_cr='\r'
14887 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14888 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14889   ac_cs_awk_cr='\\r'
14890 else
14891   ac_cs_awk_cr=$ac_cr
14892 fi
14893
14894 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14895 _ACEOF
14896
14897
14898 {
14899   echo "cat >conf$$subs.awk <<_ACEOF" &&
14900   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14901   echo "_ACEOF"
14902 } >conf$$subs.sh ||
14903   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14904 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14905    { (exit 1); exit 1; }; }
14906 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14907 ac_delim='%!_!# '
14908 for ac_last_try in false false false false false :; do
14909   . ./conf$$subs.sh ||
14910     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14911 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14912    { (exit 1); exit 1; }; }
14913
14914   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14915   if test $ac_delim_n = $ac_delim_num; then
14916     break
14917   elif $ac_last_try; then
14918     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14919 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14920    { (exit 1); exit 1; }; }
14921   else
14922     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14923   fi
14924 done
14925 rm -f conf$$subs.sh
14926
14927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14928 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14929 _ACEOF
14930 sed -n '
14931 h
14932 s/^/S["/; s/!.*/"]=/
14933 p
14934 g
14935 s/^[^!]*!//
14936 :repl
14937 t repl
14938 s/'"$ac_delim"'$//
14939 t delim
14940 :nl
14941 h
14942 s/\(.\{148\}\).*/\1/
14943 t more1
14944 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14945 p
14946 n
14947 b repl
14948 :more1
14949 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14950 p
14951 g
14952 s/.\{148\}//
14953 t nl
14954 :delim
14955 h
14956 s/\(.\{148\}\).*/\1/
14957 t more2
14958 s/["\\]/\\&/g; s/^/"/; s/$/"/
14959 p
14960 b
14961 :more2
14962 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14963 p
14964 g
14965 s/.\{148\}//
14966 t delim
14967 ' <conf$$subs.awk | sed '
14968 /^[^""]/{
14969   N
14970   s/\n//
14971 }
14972 ' >>$CONFIG_STATUS || ac_write_fail=1
14973 rm -f conf$$subs.awk
14974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14975 _ACAWK
14976 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14977   for (key in S) S_is_set[key] = 1
14978   FS = "\a"
14979
14980 }
14981 {
14982   line = $ 0
14983   nfields = split(line, field, "@")
14984   substed = 0
14985   len = length(field[1])
14986   for (i = 2; i < nfields; i++) {
14987     key = field[i]
14988     keylen = length(key)
14989     if (S_is_set[key]) {
14990       value = S[key]
14991       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14992       len += length(value) + length(field[++i])
14993       substed = 1
14994     } else
14995       len += 1 + keylen
14996   }
14997
14998   print line
14999 }
15000
15001 _ACAWK
15002 _ACEOF
15003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15004 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15005   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15006 else
15007   cat
15008 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15009   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15010 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15011    { (exit 1); exit 1; }; }
15012 _ACEOF
15013
15014 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15015 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15016 # trailing colons and then remove the whole line if VPATH becomes empty
15017 # (actually we leave an empty line to preserve line numbers).
15018 if test "x$srcdir" = x.; then
15019   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15020 s/:*\$(srcdir):*/:/
15021 s/:*\${srcdir}:*/:/
15022 s/:*@srcdir@:*/:/
15023 s/^\([^=]*=[     ]*\):*/\1/
15024 s/:*$//
15025 s/^[^=]*=[       ]*$//
15026 }'
15027 fi
15028
15029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15030 fi # test -n "$CONFIG_FILES"
15031
15032 # Set up the scripts for CONFIG_HEADERS section.
15033 # No need to generate them if there are no CONFIG_HEADERS.
15034 # This happens for instance with `./config.status Makefile'.
15035 if test -n "$CONFIG_HEADERS"; then
15036 cat >"$tmp/defines.awk" <<\_ACAWK ||
15037 BEGIN {
15038 _ACEOF
15039
15040 # Transform confdefs.h into an awk script `defines.awk', embedded as
15041 # here-document in config.status, that substitutes the proper values into
15042 # config.h.in to produce config.h.
15043
15044 # Create a delimiter string that does not exist in confdefs.h, to ease
15045 # handling of long lines.
15046 ac_delim='%!_!# '
15047 for ac_last_try in false false :; do
15048   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15049   if test -z "$ac_t"; then
15050     break
15051   elif $ac_last_try; then
15052     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
15053 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
15054    { (exit 1); exit 1; }; }
15055   else
15056     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15057   fi
15058 done
15059
15060 # For the awk script, D is an array of macro values keyed by name,
15061 # likewise P contains macro parameters if any.  Preserve backslash
15062 # newline sequences.
15063
15064 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15065 sed -n '
15066 s/.\{148\}/&'"$ac_delim"'/g
15067 t rset
15068 :rset
15069 s/^[     ]*#[    ]*define[       ][      ]*/ /
15070 t def
15071 d
15072 :def
15073 s/\\$//
15074 t bsnl
15075 s/["\\]/\\&/g
15076 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15077 D["\1"]=" \3"/p
15078 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15079 d
15080 :bsnl
15081 s/["\\]/\\&/g
15082 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15083 D["\1"]=" \3\\\\\\n"\\/p
15084 t cont
15085 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15086 t cont
15087 d
15088 :cont
15089 n
15090 s/.\{148\}/&'"$ac_delim"'/g
15091 t clear
15092 :clear
15093 s/\\$//
15094 t bsnlc
15095 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15096 d
15097 :bsnlc
15098 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15099 b cont
15100 ' <confdefs.h | sed '
15101 s/'"$ac_delim"'/"\\\
15102 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15103
15104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15105   for (key in D) D_is_set[key] = 1
15106   FS = "\a"
15107 }
15108 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15109   line = \$ 0
15110   split(line, arg, " ")
15111   if (arg[1] == "#") {
15112     defundef = arg[2]
15113     mac1 = arg[3]
15114   } else {
15115     defundef = substr(arg[1], 2)
15116     mac1 = arg[2]
15117   }
15118   split(mac1, mac2, "(") #)
15119   macro = mac2[1]
15120   prefix = substr(line, 1, index(line, defundef) - 1)
15121   if (D_is_set[macro]) {
15122     # Preserve the white space surrounding the "#".
15123     print prefix "define", macro P[macro] D[macro]
15124     next
15125   } else {
15126     # Replace #undef with comments.  This is necessary, for example,
15127     # in the case of _POSIX_SOURCE, which is predefined and required
15128     # on some systems where configure will not decide to define it.
15129     if (defundef == "undef") {
15130       print "/*", prefix defundef, macro, "*/"
15131       next
15132     }
15133   }
15134 }
15135 { print }
15136 _ACAWK
15137 _ACEOF
15138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15139   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
15140 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
15141    { (exit 1); exit 1; }; }
15142 fi # test -n "$CONFIG_HEADERS"
15143
15144
15145 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15146 shift
15147 for ac_tag
15148 do
15149   case $ac_tag in
15150   :[FHLC]) ac_mode=$ac_tag; continue;;
15151   esac
15152   case $ac_mode$ac_tag in
15153   :[FHL]*:*);;
15154   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
15155 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
15156    { (exit 1); exit 1; }; };;
15157   :[FH]-) ac_tag=-:-;;
15158   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15159   esac
15160   ac_save_IFS=$IFS
15161   IFS=:
15162   set x $ac_tag
15163   IFS=$ac_save_IFS
15164   shift
15165   ac_file=$1
15166   shift
15167
15168   case $ac_mode in
15169   :L) ac_source=$1;;
15170   :[FH])
15171     ac_file_inputs=
15172     for ac_f
15173     do
15174       case $ac_f in
15175       -) ac_f="$tmp/stdin";;
15176       *) # Look for the file first in the build tree, then in the source tree
15177          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15178          # because $ac_f cannot contain `:'.
15179          test -f "$ac_f" ||
15180            case $ac_f in
15181            [\\/$]*) false;;
15182            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15183            esac ||
15184            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15185 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15186    { (exit 1); exit 1; }; };;
15187       esac
15188       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15189       ac_file_inputs="$ac_file_inputs '$ac_f'"
15190     done
15191
15192     # Let's still pretend it is `configure' which instantiates (i.e., don't
15193     # use $as_me), people would be surprised to read:
15194     #    /* config.h.  Generated by config.status.  */
15195     configure_input='Generated from '`
15196           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15197         `' by configure.'
15198     if test x"$ac_file" != x-; then
15199       configure_input="$ac_file.  $configure_input"
15200       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
15201 $as_echo "$as_me: creating $ac_file" >&6;}
15202     fi
15203     # Neutralize special characters interpreted by sed in replacement strings.
15204     case $configure_input in #(
15205     *\&* | *\|* | *\\* )
15206        ac_sed_conf_input=`$as_echo "$configure_input" |
15207        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15208     *) ac_sed_conf_input=$configure_input;;
15209     esac
15210
15211     case $ac_tag in
15212     *:-:* | *:-) cat >"$tmp/stdin" \
15213       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15214 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15215    { (exit 1); exit 1; }; } ;;
15216     esac
15217     ;;
15218   esac
15219
15220   ac_dir=`$as_dirname -- "$ac_file" ||
15221 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15222          X"$ac_file" : 'X\(//\)[^/]' \| \
15223          X"$ac_file" : 'X\(//\)$' \| \
15224          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15225 $as_echo X"$ac_file" |
15226     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15227             s//\1/
15228             q
15229           }
15230           /^X\(\/\/\)[^/].*/{
15231             s//\1/
15232             q
15233           }
15234           /^X\(\/\/\)$/{
15235             s//\1/
15236             q
15237           }
15238           /^X\(\/\).*/{
15239             s//\1/
15240             q
15241           }
15242           s/.*/./; q'`
15243   { as_dir="$ac_dir"
15244   case $as_dir in #(
15245   -*) as_dir=./$as_dir;;
15246   esac
15247   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15248     as_dirs=
15249     while :; do
15250       case $as_dir in #(
15251       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15252       *) as_qdir=$as_dir;;
15253       esac
15254       as_dirs="'$as_qdir' $as_dirs"
15255       as_dir=`$as_dirname -- "$as_dir" ||
15256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15257          X"$as_dir" : 'X\(//\)[^/]' \| \
15258          X"$as_dir" : 'X\(//\)$' \| \
15259          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15260 $as_echo X"$as_dir" |
15261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15262             s//\1/
15263             q
15264           }
15265           /^X\(\/\/\)[^/].*/{
15266             s//\1/
15267             q
15268           }
15269           /^X\(\/\/\)$/{
15270             s//\1/
15271             q
15272           }
15273           /^X\(\/\).*/{
15274             s//\1/
15275             q
15276           }
15277           s/.*/./; q'`
15278       test -d "$as_dir" && break
15279     done
15280     test -z "$as_dirs" || eval "mkdir $as_dirs"
15281   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15282 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15283    { (exit 1); exit 1; }; }; }
15284   ac_builddir=.
15285
15286 case "$ac_dir" in
15287 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15288 *)
15289   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15290   # A ".." for each directory in $ac_dir_suffix.
15291   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15292   case $ac_top_builddir_sub in
15293   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15294   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15295   esac ;;
15296 esac
15297 ac_abs_top_builddir=$ac_pwd
15298 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15299 # for backward compatibility:
15300 ac_top_builddir=$ac_top_build_prefix
15301
15302 case $srcdir in
15303   .)  # We are building in place.
15304     ac_srcdir=.
15305     ac_top_srcdir=$ac_top_builddir_sub
15306     ac_abs_top_srcdir=$ac_pwd ;;
15307   [\\/]* | ?:[\\/]* )  # Absolute name.
15308     ac_srcdir=$srcdir$ac_dir_suffix;
15309     ac_top_srcdir=$srcdir
15310     ac_abs_top_srcdir=$srcdir ;;
15311   *) # Relative name.
15312     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15313     ac_top_srcdir=$ac_top_build_prefix$srcdir
15314     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15315 esac
15316 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15317
15318
15319   case $ac_mode in
15320   :F)
15321   #
15322   # CONFIG_FILE
15323   #
15324
15325   case $INSTALL in
15326   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15327   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15328   esac
15329   ac_MKDIR_P=$MKDIR_P
15330   case $MKDIR_P in
15331   [\\/$]* | ?:[\\/]* ) ;;
15332   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15333   esac
15334 _ACEOF
15335
15336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15337 # If the template does not know about datarootdir, expand it.
15338 # FIXME: This hack should be removed a few years after 2.60.
15339 ac_datarootdir_hack=; ac_datarootdir_seen=
15340
15341 ac_sed_dataroot='
15342 /datarootdir/ {
15343   p
15344   q
15345 }
15346 /@datadir@/p
15347 /@docdir@/p
15348 /@infodir@/p
15349 /@localedir@/p
15350 /@mandir@/p
15351 '
15352 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15353 *datarootdir*) ac_datarootdir_seen=yes;;
15354 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15355   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15356 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15357 _ACEOF
15358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15359   ac_datarootdir_hack='
15360   s&@datadir@&$datadir&g
15361   s&@docdir@&$docdir&g
15362   s&@infodir@&$infodir&g
15363   s&@localedir@&$localedir&g
15364   s&@mandir@&$mandir&g
15365     s&\\\${datarootdir}&$datarootdir&g' ;;
15366 esac
15367 _ACEOF
15368
15369 # Neutralize VPATH when `$srcdir' = `.'.
15370 # Shell code in configure.ac might set extrasub.
15371 # FIXME: do we really want to maintain this feature?
15372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15373 ac_sed_extra="$ac_vpsub
15374 $extrasub
15375 _ACEOF
15376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15377 :t
15378 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15379 s|@configure_input@|$ac_sed_conf_input|;t t
15380 s&@top_builddir@&$ac_top_builddir_sub&;t t
15381 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15382 s&@srcdir@&$ac_srcdir&;t t
15383 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15384 s&@top_srcdir@&$ac_top_srcdir&;t t
15385 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15386 s&@builddir@&$ac_builddir&;t t
15387 s&@abs_builddir@&$ac_abs_builddir&;t t
15388 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15389 s&@INSTALL@&$ac_INSTALL&;t t
15390 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15391 $ac_datarootdir_hack
15392 "
15393 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15394   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15395 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15396    { (exit 1); exit 1; }; }
15397
15398 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15399   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15400   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15401   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15402 which seems to be undefined.  Please make sure it is defined." >&5
15403 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15404 which seems to be undefined.  Please make sure it is defined." >&2;}
15405
15406   rm -f "$tmp/stdin"
15407   case $ac_file in
15408   -) cat "$tmp/out" && rm -f "$tmp/out";;
15409   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15410   esac \
15411   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15412 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15413    { (exit 1); exit 1; }; }
15414  ;;
15415   :H)
15416   #
15417   # CONFIG_HEADER
15418   #
15419   if test x"$ac_file" != x-; then
15420     {
15421       $as_echo "/* $configure_input  */" \
15422       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15423     } >"$tmp/config.h" \
15424       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15425 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15426    { (exit 1); exit 1; }; }
15427     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15428       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15429 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15430     else
15431       rm -f "$ac_file"
15432       mv "$tmp/config.h" "$ac_file" \
15433         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15434 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15435    { (exit 1); exit 1; }; }
15436     fi
15437   else
15438     $as_echo "/* $configure_input  */" \
15439       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15440       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15441 $as_echo "$as_me: error: could not create -" >&2;}
15442    { (exit 1); exit 1; }; }
15443   fi
15444 # Compute "$ac_file"'s index in $config_headers.
15445 _am_arg="$ac_file"
15446 _am_stamp_count=1
15447 for _am_header in $config_headers :; do
15448   case $_am_header in
15449     $_am_arg | $_am_arg:* )
15450       break ;;
15451     * )
15452       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15453   esac
15454 done
15455 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15456 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15457          X"$_am_arg" : 'X\(//\)[^/]' \| \
15458          X"$_am_arg" : 'X\(//\)$' \| \
15459          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15460 $as_echo X"$_am_arg" |
15461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15462             s//\1/
15463             q
15464           }
15465           /^X\(\/\/\)[^/].*/{
15466             s//\1/
15467             q
15468           }
15469           /^X\(\/\/\)$/{
15470             s//\1/
15471             q
15472           }
15473           /^X\(\/\).*/{
15474             s//\1/
15475             q
15476           }
15477           s/.*/./; q'`/stamp-h$_am_stamp_count
15478  ;;
15479
15480   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15481 $as_echo "$as_me: executing $ac_file commands" >&6;}
15482  ;;
15483   esac
15484
15485
15486   case $ac_file$ac_mode in
15487     "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
15488 # are listed without --file.  Let's play safe and only enable the eval
15489 # if we detect the quoting.
15490 case $CONFIG_FILES in
15491 *\'*) eval set x "$CONFIG_FILES" ;;
15492 *)   set x $CONFIG_FILES ;;
15493 esac
15494 shift
15495 for mf
15496 do
15497   # Strip MF so we end up with the name of the file.
15498   mf=`echo "$mf" | sed -e 's/:.*$//'`
15499   # Check whether this is an Automake generated Makefile or not.
15500   # We used to match only the files named `Makefile.in', but
15501   # some people rename them; so instead we look at the file content.
15502   # Grep'ing the first line is not enough: some people post-process
15503   # each Makefile.in and add a new line on top of each file to say so.
15504   # Grep'ing the whole file is not good either: AIX grep has a line
15505   # limit of 2048, but all sed's we know have understand at least 4000.
15506   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/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   # Extract the definition of DEPDIR, am__include, and am__quote
15534   # from the Makefile without running `make'.
15535   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15536   test -z "$DEPDIR" && continue
15537   am__include=`sed -n 's/^am__include = //p' < "$mf"`
15538   test -z "am__include" && continue
15539   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15540   # When using ansi2knr, U may be empty or an underscore; expand it
15541   U=`sed -n 's/^U = //p' < "$mf"`
15542   # Find all dependency output files, they are included files with
15543   # $(DEPDIR) in their names.  We invoke sed twice because it is the
15544   # simplest approach to changing $(DEPDIR) to its actual value in the
15545   # expansion.
15546   for file in `sed -n "
15547     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15548        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15549     # Make sure the directory exists.
15550     test -f "$dirpart/$file" && continue
15551     fdir=`$as_dirname -- "$file" ||
15552 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15553          X"$file" : 'X\(//\)[^/]' \| \
15554          X"$file" : 'X\(//\)$' \| \
15555          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15556 $as_echo X"$file" |
15557     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15558             s//\1/
15559             q
15560           }
15561           /^X\(\/\/\)[^/].*/{
15562             s//\1/
15563             q
15564           }
15565           /^X\(\/\/\)$/{
15566             s//\1/
15567             q
15568           }
15569           /^X\(\/\).*/{
15570             s//\1/
15571             q
15572           }
15573           s/.*/./; q'`
15574     { as_dir=$dirpart/$fdir
15575   case $as_dir in #(
15576   -*) as_dir=./$as_dir;;
15577   esac
15578   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15579     as_dirs=
15580     while :; do
15581       case $as_dir in #(
15582       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15583       *) as_qdir=$as_dir;;
15584       esac
15585       as_dirs="'$as_qdir' $as_dirs"
15586       as_dir=`$as_dirname -- "$as_dir" ||
15587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15588          X"$as_dir" : 'X\(//\)[^/]' \| \
15589          X"$as_dir" : 'X\(//\)$' \| \
15590          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15591 $as_echo X"$as_dir" |
15592     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15593             s//\1/
15594             q
15595           }
15596           /^X\(\/\/\)[^/].*/{
15597             s//\1/
15598             q
15599           }
15600           /^X\(\/\/\)$/{
15601             s//\1/
15602             q
15603           }
15604           /^X\(\/\).*/{
15605             s//\1/
15606             q
15607           }
15608           s/.*/./; q'`
15609       test -d "$as_dir" && break
15610     done
15611     test -z "$as_dirs" || eval "mkdir $as_dirs"
15612   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15613 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15614    { (exit 1); exit 1; }; }; }
15615     # echo "creating $dirpart/$file"
15616     echo '# dummy' > "$dirpart/$file"
15617   done
15618 done
15619  ;;
15620     "libtool":C)
15621
15622     # See if we are running on zsh, and set the options which allow our
15623     # commands through without removal of \ escapes.
15624     if test -n "${ZSH_VERSION+set}" ; then
15625       setopt NO_GLOB_SUBST
15626     fi
15627
15628     cfgfile="${ofile}T"
15629     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15630     $RM "$cfgfile"
15631
15632     cat <<_LT_EOF >> "$cfgfile"
15633 #! $SHELL
15634
15635 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15636 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15637 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15638 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15639 #
15640 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15641 #                 2006, 2007, 2008 Free Software Foundation, Inc.
15642 #   Written by Gordon Matzigkeit, 1996
15643 #
15644 #   This file is part of GNU Libtool.
15645 #
15646 # GNU Libtool is free software; you can redistribute it and/or
15647 # modify it under the terms of the GNU General Public License as
15648 # published by the Free Software Foundation; either version 2 of
15649 # the License, or (at your option) any later version.
15650 #
15651 # As a special exception to the GNU General Public License,
15652 # if you distribute this file as part of a program or library that
15653 # is built using GNU Libtool, you may include this file under the
15654 # same distribution terms that you use for the rest of that program.
15655 #
15656 # GNU Libtool is distributed in the hope that it will be useful,
15657 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15658 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15659 # GNU General Public License for more details.
15660 #
15661 # You should have received a copy of the GNU General Public License
15662 # along with GNU Libtool; see the file COPYING.  If not, a copy
15663 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15664 # obtained by writing to the Free Software Foundation, Inc.,
15665 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15666
15667
15668 # The names of the tagged configurations supported by this script.
15669 available_tags=""
15670
15671 # ### BEGIN LIBTOOL CONFIG
15672
15673 # Which release of libtool.m4 was used?
15674 macro_version=$macro_version
15675 macro_revision=$macro_revision
15676
15677 # Whether or not to build shared libraries.
15678 build_libtool_libs=$enable_shared
15679
15680 # Whether or not to build static libraries.
15681 build_old_libs=$enable_static
15682
15683 # What type of objects to build.
15684 pic_mode=$pic_mode
15685
15686 # Whether or not to optimize for fast installation.
15687 fast_install=$enable_fast_install
15688
15689 # The host system.
15690 host_alias=$host_alias
15691 host=$host
15692 host_os=$host_os
15693
15694 # The build system.
15695 build_alias=$build_alias
15696 build=$build
15697 build_os=$build_os
15698
15699 # A sed program that does not truncate output.
15700 SED=$lt_SED
15701
15702 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15703 Xsed="\$SED -e 1s/^X//"
15704
15705 # A grep program that handles long lines.
15706 GREP=$lt_GREP
15707
15708 # An ERE matcher.
15709 EGREP=$lt_EGREP
15710
15711 # A literal string matcher.
15712 FGREP=$lt_FGREP
15713
15714 # A BSD- or MS-compatible name lister.
15715 NM=$lt_NM
15716
15717 # Whether we need soft or hard links.
15718 LN_S=$lt_LN_S
15719
15720 # What is the maximum length of a command?
15721 max_cmd_len=$max_cmd_len
15722
15723 # Object file suffix (normally "o").
15724 objext=$ac_objext
15725
15726 # Executable file suffix (normally "").
15727 exeext=$exeext
15728
15729 # whether the shell understands "unset".
15730 lt_unset=$lt_unset
15731
15732 # turn spaces into newlines.
15733 SP2NL=$lt_lt_SP2NL
15734
15735 # turn newlines into spaces.
15736 NL2SP=$lt_lt_NL2SP
15737
15738 # How to create reloadable object files.
15739 reload_flag=$lt_reload_flag
15740 reload_cmds=$lt_reload_cmds
15741
15742 # An object symbol dumper.
15743 OBJDUMP=$lt_OBJDUMP
15744
15745 # Method to check whether dependent libraries are shared objects.
15746 deplibs_check_method=$lt_deplibs_check_method
15747
15748 # Command to use when deplibs_check_method == "file_magic".
15749 file_magic_cmd=$lt_file_magic_cmd
15750
15751 # The archiver.
15752 AR=$lt_AR
15753 AR_FLAGS=$lt_AR_FLAGS
15754
15755 # A symbol stripping program.
15756 STRIP=$lt_STRIP
15757
15758 # Commands used to install an old-style archive.
15759 RANLIB=$lt_RANLIB
15760 old_postinstall_cmds=$lt_old_postinstall_cmds
15761 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15762
15763 # A C compiler.
15764 LTCC=$lt_CC
15765
15766 # LTCC compiler flags.
15767 LTCFLAGS=$lt_CFLAGS
15768
15769 # Take the output of nm and produce a listing of raw symbols and C names.
15770 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15771
15772 # Transform the output of nm in a proper C declaration.
15773 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15774
15775 # Transform the output of nm in a C name address pair.
15776 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15777
15778 # Transform the output of nm in a C name address pair when lib prefix is needed.
15779 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15780
15781 # The name of the directory that contains temporary libtool files.
15782 objdir=$objdir
15783
15784 # Shell to use when invoking shell scripts.
15785 SHELL=$lt_SHELL
15786
15787 # An echo program that does not interpret backslashes.
15788 ECHO=$lt_ECHO
15789
15790 # Used to examine libraries when file_magic_cmd begins with "file".
15791 MAGIC_CMD=$MAGIC_CMD
15792
15793 # Must we lock files when doing compilation?
15794 need_locks=$lt_need_locks
15795
15796 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15797 DSYMUTIL=$lt_DSYMUTIL
15798
15799 # Tool to change global to local symbols on Mac OS X.
15800 NMEDIT=$lt_NMEDIT
15801
15802 # Tool to manipulate fat objects and archives on Mac OS X.
15803 LIPO=$lt_LIPO
15804
15805 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15806 OTOOL=$lt_OTOOL
15807
15808 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15809 OTOOL64=$lt_OTOOL64
15810
15811 # Old archive suffix (normally "a").
15812 libext=$libext
15813
15814 # Shared library suffix (normally ".so").
15815 shrext_cmds=$lt_shrext_cmds
15816
15817 # The commands to extract the exported symbol list from a shared archive.
15818 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15819
15820 # Variables whose values should be saved in libtool wrapper scripts and
15821 # restored at link time.
15822 variables_saved_for_relink=$lt_variables_saved_for_relink
15823
15824 # Do we need the "lib" prefix for modules?
15825 need_lib_prefix=$need_lib_prefix
15826
15827 # Do we need a version for libraries?
15828 need_version=$need_version
15829
15830 # Library versioning type.
15831 version_type=$version_type
15832
15833 # Shared library runtime path variable.
15834 runpath_var=$runpath_var
15835
15836 # Shared library path variable.
15837 shlibpath_var=$shlibpath_var
15838
15839 # Is shlibpath searched before the hard-coded library search path?
15840 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15841
15842 # Format of library name prefix.
15843 libname_spec=$lt_libname_spec
15844
15845 # List of archive names.  First name is the real one, the rest are links.
15846 # The last name is the one that the linker finds with -lNAME
15847 library_names_spec=$lt_library_names_spec
15848
15849 # The coded name of the library, if different from the real name.
15850 soname_spec=$lt_soname_spec
15851
15852 # Command to use after installation of a shared archive.
15853 postinstall_cmds=$lt_postinstall_cmds
15854
15855 # Command to use after uninstallation of a shared archive.
15856 postuninstall_cmds=$lt_postuninstall_cmds
15857
15858 # Commands used to finish a libtool library installation in a directory.
15859 finish_cmds=$lt_finish_cmds
15860
15861 # As "finish_cmds", except a single script fragment to be evaled but
15862 # not shown.
15863 finish_eval=$lt_finish_eval
15864
15865 # Whether we should hardcode library paths into libraries.
15866 hardcode_into_libs=$hardcode_into_libs
15867
15868 # Compile-time system search path for libraries.
15869 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15870
15871 # Run-time system search path for libraries.
15872 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15873
15874 # Whether dlopen is supported.
15875 dlopen_support=$enable_dlopen
15876
15877 # Whether dlopen of programs is supported.
15878 dlopen_self=$enable_dlopen_self
15879
15880 # Whether dlopen of statically linked programs is supported.
15881 dlopen_self_static=$enable_dlopen_self_static
15882
15883 # Commands to strip libraries.
15884 old_striplib=$lt_old_striplib
15885 striplib=$lt_striplib
15886
15887
15888 # The linker used to build libraries.
15889 LD=$lt_LD
15890
15891 # Commands used to build an old-style archive.
15892 old_archive_cmds=$lt_old_archive_cmds
15893
15894 # A language specific compiler.
15895 CC=$lt_compiler
15896
15897 # Is the compiler the GNU compiler?
15898 with_gcc=$GCC
15899
15900 # Compiler flag to turn off builtin functions.
15901 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15902
15903 # How to pass a linker flag through the compiler.
15904 wl=$lt_lt_prog_compiler_wl
15905
15906 # Additional compiler flags for building library objects.
15907 pic_flag=$lt_lt_prog_compiler_pic
15908
15909 # Compiler flag to prevent dynamic linking.
15910 link_static_flag=$lt_lt_prog_compiler_static
15911
15912 # Does compiler simultaneously support -c and -o options?
15913 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15914
15915 # Whether or not to add -lc for building shared libraries.
15916 build_libtool_need_lc=$archive_cmds_need_lc
15917
15918 # Whether or not to disallow shared libs when runtime libs are static.
15919 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15920
15921 # Compiler flag to allow reflexive dlopens.
15922 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15923
15924 # Compiler flag to generate shared objects directly from archives.
15925 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15926
15927 # Whether the compiler copes with passing no objects directly.
15928 compiler_needs_object=$lt_compiler_needs_object
15929
15930 # Create an old-style archive from a shared archive.
15931 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15932
15933 # Create a temporary old-style archive to link instead of a shared archive.
15934 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15935
15936 # Commands used to build a shared archive.
15937 archive_cmds=$lt_archive_cmds
15938 archive_expsym_cmds=$lt_archive_expsym_cmds
15939
15940 # Commands used to build a loadable module if different from building
15941 # a shared archive.
15942 module_cmds=$lt_module_cmds
15943 module_expsym_cmds=$lt_module_expsym_cmds
15944
15945 # Whether we are building with GNU ld or not.
15946 with_gnu_ld=$lt_with_gnu_ld
15947
15948 # Flag that allows shared libraries with undefined symbols to be built.
15949 allow_undefined_flag=$lt_allow_undefined_flag
15950
15951 # Flag that enforces no undefined symbols.
15952 no_undefined_flag=$lt_no_undefined_flag
15953
15954 # Flag to hardcode \$libdir into a binary during linking.
15955 # This must work even if \$libdir does not exist
15956 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15957
15958 # If ld is used when linking, flag to hardcode \$libdir into a binary
15959 # during linking.  This must work even if \$libdir does not exist.
15960 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15961
15962 # Whether we need a single "-rpath" flag with a separated argument.
15963 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15964
15965 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15966 # DIR into the resulting binary.
15967 hardcode_direct=$hardcode_direct
15968
15969 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15970 # DIR into the resulting binary and the resulting library dependency is
15971 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15972 # library is relocated.
15973 hardcode_direct_absolute=$hardcode_direct_absolute
15974
15975 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15976 # into the resulting binary.
15977 hardcode_minus_L=$hardcode_minus_L
15978
15979 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15980 # into the resulting binary.
15981 hardcode_shlibpath_var=$hardcode_shlibpath_var
15982
15983 # Set to "yes" if building a shared library automatically hardcodes DIR
15984 # into the library and all subsequent libraries and executables linked
15985 # against it.
15986 hardcode_automatic=$hardcode_automatic
15987
15988 # Set to yes if linker adds runtime paths of dependent libraries
15989 # to runtime path list.
15990 inherit_rpath=$inherit_rpath
15991
15992 # Whether libtool must link a program against all its dependency libraries.
15993 link_all_deplibs=$link_all_deplibs
15994
15995 # Fix the shell variable \$srcfile for the compiler.
15996 fix_srcfile_path=$lt_fix_srcfile_path
15997
15998 # Set to "yes" if exported symbols are required.
15999 always_export_symbols=$always_export_symbols
16000
16001 # The commands to list exported symbols.
16002 export_symbols_cmds=$lt_export_symbols_cmds
16003
16004 # Symbols that should not be listed in the preloaded symbols.
16005 exclude_expsyms=$lt_exclude_expsyms
16006
16007 # Symbols that must always be exported.
16008 include_expsyms=$lt_include_expsyms
16009
16010 # Commands necessary for linking programs (against libraries) with templates.
16011 prelink_cmds=$lt_prelink_cmds
16012
16013 # Specify filename containing input files.
16014 file_list_spec=$lt_file_list_spec
16015
16016 # How to hardcode a shared library path into an executable.
16017 hardcode_action=$hardcode_action
16018
16019 # ### END LIBTOOL CONFIG
16020
16021 _LT_EOF
16022
16023   case $host_os in
16024   aix3*)
16025     cat <<\_LT_EOF >> "$cfgfile"
16026 # AIX sometimes has problems with the GCC collect2 program.  For some
16027 # reason, if we set the COLLECT_NAMES environment variable, the problems
16028 # vanish in a puff of smoke.
16029 if test "X${COLLECT_NAMES+set}" != Xset; then
16030   COLLECT_NAMES=
16031   export COLLECT_NAMES
16032 fi
16033 _LT_EOF
16034     ;;
16035   esac
16036
16037
16038 ltmain="$ac_aux_dir/ltmain.sh"
16039
16040
16041   # We use sed instead of cat because bash on DJGPP gets confused if
16042   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16043   # text mode, it properly converts lines to CR/LF.  This bash problem
16044   # is reportedly fixed, but why not run on old versions too?
16045   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16046     || (rm -f "$cfgfile"; exit 1)
16047
16048   case $xsi_shell in
16049   yes)
16050     cat << \_LT_EOF >> "$cfgfile"
16051
16052 # func_dirname file append nondir_replacement
16053 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16054 # otherwise set result to NONDIR_REPLACEMENT.
16055 func_dirname ()
16056 {
16057   case ${1} in
16058     */*) func_dirname_result="${1%/*}${2}" ;;
16059     *  ) func_dirname_result="${3}" ;;
16060   esac
16061 }
16062
16063 # func_basename file
16064 func_basename ()
16065 {
16066   func_basename_result="${1##*/}"
16067 }
16068
16069 # func_dirname_and_basename file append nondir_replacement
16070 # perform func_basename and func_dirname in a single function
16071 # call:
16072 #   dirname:  Compute the dirname of FILE.  If nonempty,
16073 #             add APPEND to the result, otherwise set result
16074 #             to NONDIR_REPLACEMENT.
16075 #             value returned in "$func_dirname_result"
16076 #   basename: Compute filename of FILE.
16077 #             value retuned in "$func_basename_result"
16078 # Implementation must be kept synchronized with func_dirname
16079 # and func_basename. For efficiency, we do not delegate to
16080 # those functions but instead duplicate the functionality here.
16081 func_dirname_and_basename ()
16082 {
16083   case ${1} in
16084     */*) func_dirname_result="${1%/*}${2}" ;;
16085     *  ) func_dirname_result="${3}" ;;
16086   esac
16087   func_basename_result="${1##*/}"
16088 }
16089
16090 # func_stripname prefix suffix name
16091 # strip PREFIX and SUFFIX off of NAME.
16092 # PREFIX and SUFFIX must not contain globbing or regex special
16093 # characters, hashes, percent signs, but SUFFIX may contain a leading
16094 # dot (in which case that matches only a dot).
16095 func_stripname ()
16096 {
16097   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16098   # positional parameters, so assign one to ordinary parameter first.
16099   func_stripname_result=${3}
16100   func_stripname_result=${func_stripname_result#"${1}"}
16101   func_stripname_result=${func_stripname_result%"${2}"}
16102 }
16103
16104 # func_opt_split
16105 func_opt_split ()
16106 {
16107   func_opt_split_opt=${1%%=*}
16108   func_opt_split_arg=${1#*=}
16109 }
16110
16111 # func_lo2o object
16112 func_lo2o ()
16113 {
16114   case ${1} in
16115     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16116     *)    func_lo2o_result=${1} ;;
16117   esac
16118 }
16119
16120 # func_xform libobj-or-source
16121 func_xform ()
16122 {
16123   func_xform_result=${1%.*}.lo
16124 }
16125
16126 # func_arith arithmetic-term...
16127 func_arith ()
16128 {
16129   func_arith_result=$(( $* ))
16130 }
16131
16132 # func_len string
16133 # STRING may not start with a hyphen.
16134 func_len ()
16135 {
16136   func_len_result=${#1}
16137 }
16138
16139 _LT_EOF
16140     ;;
16141   *) # Bourne compatible functions.
16142     cat << \_LT_EOF >> "$cfgfile"
16143
16144 # func_dirname file append nondir_replacement
16145 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16146 # otherwise set result to NONDIR_REPLACEMENT.
16147 func_dirname ()
16148 {
16149   # Extract subdirectory from the argument.
16150   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16151   if test "X$func_dirname_result" = "X${1}"; then
16152     func_dirname_result="${3}"
16153   else
16154     func_dirname_result="$func_dirname_result${2}"
16155   fi
16156 }
16157
16158 # func_basename file
16159 func_basename ()
16160 {
16161   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16162 }
16163
16164
16165 # func_stripname prefix suffix name
16166 # strip PREFIX and SUFFIX off of NAME.
16167 # PREFIX and SUFFIX must not contain globbing or regex special
16168 # characters, hashes, percent signs, but SUFFIX may contain a leading
16169 # dot (in which case that matches only a dot).
16170 # func_strip_suffix prefix name
16171 func_stripname ()
16172 {
16173   case ${2} in
16174     .*) func_stripname_result=`$ECHO "X${3}" \
16175            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16176     *)  func_stripname_result=`$ECHO "X${3}" \
16177            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16178   esac
16179 }
16180
16181 # sed scripts:
16182 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16183 my_sed_long_arg='1s/^-[^=]*=//'
16184
16185 # func_opt_split
16186 func_opt_split ()
16187 {
16188   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16189   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16190 }
16191
16192 # func_lo2o object
16193 func_lo2o ()
16194 {
16195   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16196 }
16197
16198 # func_xform libobj-or-source
16199 func_xform ()
16200 {
16201   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16202 }
16203
16204 # func_arith arithmetic-term...
16205 func_arith ()
16206 {
16207   func_arith_result=`expr "$@"`
16208 }
16209
16210 # func_len string
16211 # STRING may not start with a hyphen.
16212 func_len ()
16213 {
16214   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16215 }
16216
16217 _LT_EOF
16218 esac
16219
16220 case $lt_shell_append in
16221   yes)
16222     cat << \_LT_EOF >> "$cfgfile"
16223
16224 # func_append var value
16225 # Append VALUE to the end of shell variable VAR.
16226 func_append ()
16227 {
16228   eval "$1+=\$2"
16229 }
16230 _LT_EOF
16231     ;;
16232   *)
16233     cat << \_LT_EOF >> "$cfgfile"
16234
16235 # func_append var value
16236 # Append VALUE to the end of shell variable VAR.
16237 func_append ()
16238 {
16239   eval "$1=\$$1\$2"
16240 }
16241
16242 _LT_EOF
16243     ;;
16244   esac
16245
16246
16247   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16248     || (rm -f "$cfgfile"; exit 1)
16249
16250   mv -f "$cfgfile" "$ofile" ||
16251     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16252   chmod +x "$ofile"
16253
16254  ;;
16255
16256   esac
16257 done # for ac_tag
16258
16259
16260 { (exit 0); exit 0; }
16261 _ACEOF
16262 chmod +x $CONFIG_STATUS
16263 ac_clean_files=$ac_clean_files_save
16264
16265 test $ac_write_fail = 0 ||
16266   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16267 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16268    { (exit 1); exit 1; }; }
16269
16270
16271 # configure is writing to config.log, and then calls config.status.
16272 # config.status does its own redirection, appending to config.log.
16273 # Unfortunately, on DOS this fails, as config.log is still kept open
16274 # by configure, so config.status won't be able to write to it; its
16275 # output is simply discarded.  So we exec the FD to /dev/null,
16276 # effectively closing config.log, so it can be properly (re)opened and
16277 # appended to by config.status.  When coming back to configure, we
16278 # need to make the FD available again.
16279 if test "$no_create" != yes; then
16280   ac_cs_success=:
16281   ac_config_status_args=
16282   test "$silent" = yes &&
16283     ac_config_status_args="$ac_config_status_args --quiet"
16284   exec 5>/dev/null
16285   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16286   exec 5>>config.log
16287   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16288   # would make configure fail if this is the last instruction.
16289   $ac_cs_success || { (exit 1); exit 1; }
16290 fi
16291 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16292   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16293 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16294 fi
16295