Cleanup
[framework/multimedia/audio-session-manager.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for AUDIOSESSIONMGR 1.0.
4 #
5 # Report bugs to <BUG-REPORT-ADDRESS>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$lt_ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 ECHO=${lt_ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $ECHO works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<_LT_EOF
584 $*
585 _LT_EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$lt_ECHO"; then
594   if test "X${echo_test_string+set}" != Xset; then
595     # find a string as large as possible, as long as the shell can cope with it
596     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
599          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
600       then
601         break
602       fi
603     done
604   fi
605
606   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
607      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
608      test "X$echo_testing_string" = "X$echo_test_string"; then
609     :
610   else
611     # The Solaris, AIX, and Digital Unix default echo programs unquote
612     # backslashes.  This makes it impossible to quote backslashes using
613     #   echo "$something" | sed 's/\\/\\\\/g'
614     #
615     # So, first we look for a working echo in the user's PATH.
616
617     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618     for dir in $PATH /usr/ucb; do
619       IFS="$lt_save_ifs"
620       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623          test "X$echo_testing_string" = "X$echo_test_string"; then
624         ECHO="$dir/echo"
625         break
626       fi
627     done
628     IFS="$lt_save_ifs"
629
630     if test "X$ECHO" = Xecho; then
631       # We didn't find a better echo, so look for alternatives.
632       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
633          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
634          test "X$echo_testing_string" = "X$echo_test_string"; then
635         # This shell has a builtin print -r that does the trick.
636         ECHO='print -r'
637       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
638            test "X$CONFIG_SHELL" != X/bin/ksh; then
639         # If we have ksh, try running configure again with it.
640         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641         export ORIGINAL_CONFIG_SHELL
642         CONFIG_SHELL=/bin/ksh
643         export CONFIG_SHELL
644         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645       else
646         # Try using printf.
647         ECHO='printf %s\n'
648         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
649            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
650            test "X$echo_testing_string" = "X$echo_test_string"; then
651           # Cool, printf works
652           :
653         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654              test "X$echo_testing_string" = 'X\t' &&
655              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656              test "X$echo_testing_string" = "X$echo_test_string"; then
657           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658           export CONFIG_SHELL
659           SHELL="$CONFIG_SHELL"
660           export SHELL
661           ECHO="$CONFIG_SHELL $0 --fallback-echo"
662         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663              test "X$echo_testing_string" = 'X\t' &&
664              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665              test "X$echo_testing_string" = "X$echo_test_string"; then
666           ECHO="$CONFIG_SHELL $0 --fallback-echo"
667         else
668           # maybe with a smaller string...
669           prev=:
670
671           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
673             then
674               break
675             fi
676             prev="$cmd"
677           done
678
679           if test "$prev" != 'sed 50q "$0"'; then
680             echo_test_string=`eval $prev`
681             export echo_test_string
682             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683           else
684             # Oops.  We lost completely, so just stick with echo.
685             ECHO=echo
686           fi
687         fi
688       fi
689     fi
690   fi
691 fi
692
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
695 lt_ECHO=$ECHO
696 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698 fi
699
700
701
702
703 exec 7<&0 </dev/null 6>&1
704
705 # Name of the host.
706 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
707 # so uname gets run too.
708 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
709
710 #
711 # Initializations.
712 #
713 ac_default_prefix=/usr/local
714 ac_clean_files=
715 ac_config_libobj_dir=.
716 LIBOBJS=
717 cross_compiling=no
718 subdirs=
719 MFLAGS=
720 MAKEFLAGS=
721 SHELL=${CONFIG_SHELL-/bin/sh}
722
723 # Identity of this package.
724 PACKAGE_NAME='AUDIOSESSIONMGR'
725 PACKAGE_TARNAME='audiosessionmgr'
726 PACKAGE_VERSION='1.0'
727 PACKAGE_STRING='AUDIOSESSIONMGR 1.0'
728 PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
729
730 # Factoring default headers for most tests.
731 ac_includes_default="\
732 #include <stdio.h>
733 #ifdef HAVE_SYS_TYPES_H
734 # include <sys/types.h>
735 #endif
736 #ifdef HAVE_SYS_STAT_H
737 # include <sys/stat.h>
738 #endif
739 #ifdef STDC_HEADERS
740 # include <stdlib.h>
741 # include <stddef.h>
742 #else
743 # ifdef HAVE_STDLIB_H
744 #  include <stdlib.h>
745 # endif
746 #endif
747 #ifdef HAVE_STRING_H
748 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
749 #  include <memory.h>
750 # endif
751 # include <string.h>
752 #endif
753 #ifdef HAVE_STRINGS_H
754 # include <strings.h>
755 #endif
756 #ifdef HAVE_INTTYPES_H
757 # include <inttypes.h>
758 #endif
759 #ifdef HAVE_STDINT_H
760 # include <stdint.h>
761 #endif
762 #ifdef HAVE_UNISTD_H
763 # include <unistd.h>
764 #endif"
765
766 ac_subst_vars='SHELL
767 PATH_SEPARATOR
768 PACKAGE_NAME
769 PACKAGE_TARNAME
770 PACKAGE_VERSION
771 PACKAGE_STRING
772 PACKAGE_BUGREPORT
773 exec_prefix
774 prefix
775 program_transform_name
776 bindir
777 sbindir
778 libexecdir
779 datarootdir
780 datadir
781 sysconfdir
782 sharedstatedir
783 localstatedir
784 includedir
785 oldincludedir
786 docdir
787 infodir
788 htmldir
789 dvidir
790 pdfdir
791 psdir
792 libdir
793 localedir
794 mandir
795 DEFS
796 ECHO_C
797 ECHO_N
798 ECHO_T
799 LIBS
800 build_alias
801 host_alias
802 target_alias
803 INSTALL_PROGRAM
804 INSTALL_SCRIPT
805 INSTALL_DATA
806 am__isrc
807 CYGPATH_W
808 PACKAGE
809 VERSION
810 ACLOCAL
811 AUTOCONF
812 AUTOMAKE
813 AUTOHEADER
814 MAKEINFO
815 install_sh
816 STRIP
817 INSTALL_STRIP_PROGRAM
818 mkdir_p
819 AWK
820 SET_MAKE
821 am__leading_dot
822 AMTAR
823 am__tar
824 am__untar
825 CC
826 CFLAGS
827 LDFLAGS
828 CPPFLAGS
829 ac_ct_CC
830 EXEEXT
831 OBJEXT
832 DEPDIR
833 am__include
834 am__quote
835 AMDEP_TRUE
836 AMDEP_FALSE
837 AMDEPBACKSLASH
838 CCDEPMODE
839 am__fastdepCC_TRUE
840 am__fastdepCC_FALSE
841 LIBTOOL
842 build
843 build_cpu
844 build_vendor
845 build_os
846 host
847 host_cpu
848 host_vendor
849 host_os
850 SED
851 GREP
852 EGREP
853 FGREP
854 LD
855 DUMPBIN
856 ac_ct_DUMPBIN
857 NM
858 LN_S
859 AR
860 RANLIB
861 lt_ECHO
862 DSYMUTIL
863 NMEDIT
864 LIPO
865 OTOOL
866 OTOOL64
867 CPP
868 PKG_CONFIG
869 AUDIOSESSIONMGR_CFLAGS
870 AUDIOSESSIONMGR_LIBS
871 MMLOG_CFLAGS
872 MMLOG_LIBS
873 SYSMAN_CFLAGS
874 SYSMAN_LIBS
875 LIBOBJS
876 LTLIBOBJS'
877 ac_subst_files=''
878       ac_precious_vars='build_alias
879 host_alias
880 target_alias
881 CC
882 CFLAGS
883 LDFLAGS
884 LIBS
885 CPPFLAGS
886 CPP
887 PKG_CONFIG
888 AUDIOSESSIONMGR_CFLAGS
889 AUDIOSESSIONMGR_LIBS
890 MMLOG_CFLAGS
891 MMLOG_LIBS
892 SYSMAN_CFLAGS
893 SYSMAN_LIBS'
894
895
896 # Initialize some variables set by options.
897 ac_init_help=
898 ac_init_version=false
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
901 cache_file=/dev/null
902 exec_prefix=NONE
903 no_create=
904 no_recursion=
905 prefix=NONE
906 program_prefix=NONE
907 program_suffix=NONE
908 program_transform_name=s,x,x,
909 silent=
910 site=
911 srcdir=
912 verbose=
913 x_includes=NONE
914 x_libraries=NONE
915
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir='${datarootdir}/info'
934 htmldir='${docdir}'
935 dvidir='${docdir}'
936 pdfdir='${docdir}'
937 psdir='${docdir}'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
941
942 ac_prev=
943 ac_dashdash=
944 for ac_option
945 do
946   # If the previous option needs an argument, assign it.
947   if test -n "$ac_prev"; then
948     eval $ac_prev=\$ac_option
949     ac_prev=
950     continue
951   fi
952
953   case $ac_option in
954   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955   *)    ac_optarg=yes ;;
956   esac
957
958   # Accept the important Cygnus configure options, so we can diagnose typos.
959
960   case $ac_dashdash$ac_option in
961   --)
962     ac_dashdash=yes ;;
963
964   -bindir | --bindir | --bindi | --bind | --bin | --bi)
965     ac_prev=bindir ;;
966   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967     bindir=$ac_optarg ;;
968
969   -build | --build | --buil | --bui | --bu)
970     ac_prev=build_alias ;;
971   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
972     build_alias=$ac_optarg ;;
973
974   -cache-file | --cache-file | --cache-fil | --cache-fi \
975   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976     ac_prev=cache_file ;;
977   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979     cache_file=$ac_optarg ;;
980
981   --config-cache | -C)
982     cache_file=config.cache ;;
983
984   -datadir | --datadir | --datadi | --datad)
985     ac_prev=datadir ;;
986   -datadir=* | --datadir=* | --datadi=* | --datad=*)
987     datadir=$ac_optarg ;;
988
989   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990   | --dataroo | --dataro | --datar)
991     ac_prev=datarootdir ;;
992   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994     datarootdir=$ac_optarg ;;
995
996   -disable-* | --disable-*)
997     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998     # Reject names that are not valid shell variable names.
999     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1000       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001    { (exit 1); exit 1; }; }
1002     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1003     eval enable_$ac_feature=no ;;
1004
1005   -docdir | --docdir | --docdi | --doc | --do)
1006     ac_prev=docdir ;;
1007   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008     docdir=$ac_optarg ;;
1009
1010   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011     ac_prev=dvidir ;;
1012   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013     dvidir=$ac_optarg ;;
1014
1015   -enable-* | --enable-*)
1016     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017     # Reject names that are not valid shell variable names.
1018     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020    { (exit 1); exit 1; }; }
1021     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022     eval enable_$ac_feature=\$ac_optarg ;;
1023
1024   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026   | --exec | --exe | --ex)
1027     ac_prev=exec_prefix ;;
1028   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030   | --exec=* | --exe=* | --ex=*)
1031     exec_prefix=$ac_optarg ;;
1032
1033   -gas | --gas | --ga | --g)
1034     # Obsolete; use --with-gas.
1035     with_gas=yes ;;
1036
1037   -help | --help | --hel | --he | -h)
1038     ac_init_help=long ;;
1039   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040     ac_init_help=recursive ;;
1041   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042     ac_init_help=short ;;
1043
1044   -host | --host | --hos | --ho)
1045     ac_prev=host_alias ;;
1046   -host=* | --host=* | --hos=* | --ho=*)
1047     host_alias=$ac_optarg ;;
1048
1049   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050     ac_prev=htmldir ;;
1051   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052   | --ht=*)
1053     htmldir=$ac_optarg ;;
1054
1055   -includedir | --includedir | --includedi | --included | --include \
1056   | --includ | --inclu | --incl | --inc)
1057     ac_prev=includedir ;;
1058   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059   | --includ=* | --inclu=* | --incl=* | --inc=*)
1060     includedir=$ac_optarg ;;
1061
1062   -infodir | --infodir | --infodi | --infod | --info | --inf)
1063     ac_prev=infodir ;;
1064   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065     infodir=$ac_optarg ;;
1066
1067   -libdir | --libdir | --libdi | --libd)
1068     ac_prev=libdir ;;
1069   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070     libdir=$ac_optarg ;;
1071
1072   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073   | --libexe | --libex | --libe)
1074     ac_prev=libexecdir ;;
1075   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076   | --libexe=* | --libex=* | --libe=*)
1077     libexecdir=$ac_optarg ;;
1078
1079   -localedir | --localedir | --localedi | --localed | --locale)
1080     ac_prev=localedir ;;
1081   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082     localedir=$ac_optarg ;;
1083
1084   -localstatedir | --localstatedir | --localstatedi | --localstated \
1085   | --localstate | --localstat | --localsta | --localst | --locals)
1086     ac_prev=localstatedir ;;
1087   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089     localstatedir=$ac_optarg ;;
1090
1091   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092     ac_prev=mandir ;;
1093   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094     mandir=$ac_optarg ;;
1095
1096   -nfp | --nfp | --nf)
1097     # Obsolete; use --without-fp.
1098     with_fp=no ;;
1099
1100   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101   | --no-cr | --no-c | -n)
1102     no_create=yes ;;
1103
1104   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106     no_recursion=yes ;;
1107
1108   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110   | --oldin | --oldi | --old | --ol | --o)
1111     ac_prev=oldincludedir ;;
1112   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115     oldincludedir=$ac_optarg ;;
1116
1117   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118     ac_prev=prefix ;;
1119   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120     prefix=$ac_optarg ;;
1121
1122   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123   | --program-pre | --program-pr | --program-p)
1124     ac_prev=program_prefix ;;
1125   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127     program_prefix=$ac_optarg ;;
1128
1129   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130   | --program-suf | --program-su | --program-s)
1131     ac_prev=program_suffix ;;
1132   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134     program_suffix=$ac_optarg ;;
1135
1136   -program-transform-name | --program-transform-name \
1137   | --program-transform-nam | --program-transform-na \
1138   | --program-transform-n | --program-transform- \
1139   | --program-transform | --program-transfor \
1140   | --program-transfo | --program-transf \
1141   | --program-trans | --program-tran \
1142   | --progr-tra | --program-tr | --program-t)
1143     ac_prev=program_transform_name ;;
1144   -program-transform-name=* | --program-transform-name=* \
1145   | --program-transform-nam=* | --program-transform-na=* \
1146   | --program-transform-n=* | --program-transform-=* \
1147   | --program-transform=* | --program-transfor=* \
1148   | --program-transfo=* | --program-transf=* \
1149   | --program-trans=* | --program-tran=* \
1150   | --progr-tra=* | --program-tr=* | --program-t=*)
1151     program_transform_name=$ac_optarg ;;
1152
1153   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154     ac_prev=pdfdir ;;
1155   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156     pdfdir=$ac_optarg ;;
1157
1158   -psdir | --psdir | --psdi | --psd | --ps)
1159     ac_prev=psdir ;;
1160   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161     psdir=$ac_optarg ;;
1162
1163   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164   | -silent | --silent | --silen | --sile | --sil)
1165     silent=yes ;;
1166
1167   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168     ac_prev=sbindir ;;
1169   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170   | --sbi=* | --sb=*)
1171     sbindir=$ac_optarg ;;
1172
1173   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175   | --sharedst | --shareds | --shared | --share | --shar \
1176   | --sha | --sh)
1177     ac_prev=sharedstatedir ;;
1178   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181   | --sha=* | --sh=*)
1182     sharedstatedir=$ac_optarg ;;
1183
1184   -site | --site | --sit)
1185     ac_prev=site ;;
1186   -site=* | --site=* | --sit=*)
1187     site=$ac_optarg ;;
1188
1189   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190     ac_prev=srcdir ;;
1191   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192     srcdir=$ac_optarg ;;
1193
1194   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195   | --syscon | --sysco | --sysc | --sys | --sy)
1196     ac_prev=sysconfdir ;;
1197   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199     sysconfdir=$ac_optarg ;;
1200
1201   -target | --target | --targe | --targ | --tar | --ta | --t)
1202     ac_prev=target_alias ;;
1203   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204     target_alias=$ac_optarg ;;
1205
1206   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207     verbose=yes ;;
1208
1209   -version | --version | --versio | --versi | --vers | -V)
1210     ac_init_version=: ;;
1211
1212   -with-* | --with-*)
1213     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214     # Reject names that are not valid shell variable names.
1215     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216       { echo "$as_me: error: invalid package name: $ac_package" >&2
1217    { (exit 1); exit 1; }; }
1218     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1219     eval with_$ac_package=\$ac_optarg ;;
1220
1221   -without-* | --without-*)
1222     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223     # Reject names that are not valid shell variable names.
1224     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225       { echo "$as_me: error: invalid package name: $ac_package" >&2
1226    { (exit 1); exit 1; }; }
1227     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228     eval with_$ac_package=no ;;
1229
1230   --x)
1231     # Obsolete; use --with-x.
1232     with_x=yes ;;
1233
1234   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235   | --x-incl | --x-inc | --x-in | --x-i)
1236     ac_prev=x_includes ;;
1237   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239     x_includes=$ac_optarg ;;
1240
1241   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243     ac_prev=x_libraries ;;
1244   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246     x_libraries=$ac_optarg ;;
1247
1248   -*) { echo "$as_me: error: unrecognized option: $ac_option
1249 Try \`$0 --help' for more information." >&2
1250    { (exit 1); exit 1; }; }
1251     ;;
1252
1253   *=*)
1254     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255     # Reject names that are not valid shell variable names.
1256     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1257       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258    { (exit 1); exit 1; }; }
1259     eval $ac_envvar=\$ac_optarg
1260     export $ac_envvar ;;
1261
1262   *)
1263     # FIXME: should be removed in autoconf 3.0.
1264     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1268     ;;
1269
1270   esac
1271 done
1272
1273 if test -n "$ac_prev"; then
1274   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275   { echo "$as_me: error: missing argument to $ac_option" >&2
1276    { (exit 1); exit 1; }; }
1277 fi
1278
1279 # Be sure to have absolute directory names.
1280 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281                 datadir sysconfdir sharedstatedir localstatedir includedir \
1282                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283                 libdir localedir mandir
1284 do
1285   eval ac_val=\$$ac_var
1286   case $ac_val in
1287     [\\/$]* | ?:[\\/]* )  continue;;
1288     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289   esac
1290   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291    { (exit 1); exit 1; }; }
1292 done
1293
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1300
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303   if test "x$build_alias" = x; then
1304     cross_compiling=maybe
1305     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306     If a cross compiler is detected then cross compile mode will be used." >&2
1307   elif test "x$build_alias" != "x$host_alias"; then
1308     cross_compiling=yes
1309   fi
1310 fi
1311
1312 ac_tool_prefix=
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315 test "$silent" = yes && exec 6>/dev/null
1316
1317
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321   { echo "$as_me: error: Working directory cannot be determined" >&2
1322    { (exit 1); exit 1; }; }
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324   { echo "$as_me: error: pwd does not report name of working directory" >&2
1325    { (exit 1); exit 1; }; }
1326
1327
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330   ac_srcdir_defaulted=yes
1331   # Try the directory containing this script, then the parent directory.
1332   ac_confdir=`$as_dirname -- "$0" ||
1333 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334          X"$0" : 'X\(//\)[^/]' \| \
1335          X"$0" : 'X\(//\)$' \| \
1336          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1337 echo X"$0" |
1338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339             s//\1/
1340             q
1341           }
1342           /^X\(\/\/\)[^/].*/{
1343             s//\1/
1344             q
1345           }
1346           /^X\(\/\/\)$/{
1347             s//\1/
1348             q
1349           }
1350           /^X\(\/\).*/{
1351             s//\1/
1352             q
1353           }
1354           s/.*/./; q'`
1355   srcdir=$ac_confdir
1356   if test ! -r "$srcdir/$ac_unique_file"; then
1357     srcdir=..
1358   fi
1359 else
1360   ac_srcdir_defaulted=no
1361 fi
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1365    { (exit 1); exit 1; }; }
1366 fi
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1370    { (exit 1); exit 1; }; }
1371         pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374   srcdir=.
1375 fi
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384   eval ac_env_${ac_var}_value=\$${ac_var}
1385   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1388
1389 #
1390 # Report the --help message.
1391 #
1392 if test "$ac_init_help" = "long"; then
1393   # Omit some internal or obsolete options to make the list less imposing.
1394   # This message is too long to be a string in the A/UX 3.1 sh.
1395   cat <<_ACEOF
1396 \`configure' configures AUDIOSESSIONMGR 1.0 to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE.  See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406   -h, --help              display this help and exit
1407       --help=short        display options specific to this package
1408       --help=recursive    display the short help of all the included packages
1409   -V, --version           display version information and exit
1410   -q, --quiet, --silent   do not print \`checking...' messages
1411       --cache-file=FILE   cache test results in FILE [disabled]
1412   -C, --config-cache      alias for \`--cache-file=config.cache'
1413   -n, --no-create         do not create output files
1414       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1415
1416 Installation directories:
1417   --prefix=PREFIX         install architecture-independent files in PREFIX
1418                           [$ac_default_prefix]
1419   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1420                           [PREFIX]
1421
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430   --bindir=DIR           user executables [EPREFIX/bin]
1431   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1432   --libexecdir=DIR       program executables [EPREFIX/libexec]
1433   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1434   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1435   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1436   --libdir=DIR           object code libraries [EPREFIX/lib]
1437   --includedir=DIR       C header files [PREFIX/include]
1438   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1439   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1440   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1441   --infodir=DIR          info documentation [DATAROOTDIR/info]
1442   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1443   --mandir=DIR           man documentation [DATAROOTDIR/man]
1444   --docdir=DIR           documentation root [DATAROOTDIR/doc/audiosessionmgr]
1445   --htmldir=DIR          html documentation [DOCDIR]
1446   --dvidir=DIR           dvi documentation [DOCDIR]
1447   --pdfdir=DIR           pdf documentation [DOCDIR]
1448   --psdir=DIR            ps documentation [DOCDIR]
1449 _ACEOF
1450
1451   cat <<\_ACEOF
1452
1453 Program names:
1454   --program-prefix=PREFIX            prepend PREFIX to installed program names
1455   --program-suffix=SUFFIX            append SUFFIX to installed program names
1456   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1457
1458 System types:
1459   --build=BUILD     configure for building on BUILD [guessed]
1460   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1461 _ACEOF
1462 fi
1463
1464 if test -n "$ac_init_help"; then
1465   case $ac_init_help in
1466      short | recursive ) echo "Configuration of AUDIOSESSIONMGR 1.0:";;
1467    esac
1468   cat <<\_ACEOF
1469
1470 Optional Features:
1471   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1472   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1473   --enable-platform-debug use platform debug default=no
1474   --enable-platform-intercall
1475                           use platform intercall default=yes
1476   --disable-dependency-tracking  speeds up one-time build
1477   --enable-dependency-tracking   do not reject slow dependency extractors
1478   --enable-shared[=PKGS]  build shared libraries [default=yes]
1479   --enable-static[=PKGS]  build static libraries [default=yes]
1480   --enable-fast-install[=PKGS]
1481                           optimize for fast installation [default=yes]
1482   --disable-libtool-lock  avoid locking (might break parallel builds)
1483
1484 Optional Packages:
1485   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1486   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1487   --with-xo               apply xo configuration [default=yes]
1488   --with-pic              try to use only PIC/non-PIC objects [default=use
1489                           both]
1490   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1491
1492 Some influential environment variables:
1493   CC          C compiler command
1494   CFLAGS      C compiler flags
1495   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1496               nonstandard directory <lib dir>
1497   LIBS        libraries to pass to the linker, e.g. -l<library>
1498   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1499               you have headers in a nonstandard directory <include dir>
1500   CPP         C preprocessor
1501   PKG_CONFIG  path to pkg-config utility
1502   AUDIOSESSIONMGR_CFLAGS
1503               C compiler flags for AUDIOSESSIONMGR, overriding pkg-config
1504   AUDIOSESSIONMGR_LIBS
1505               linker flags for AUDIOSESSIONMGR, overriding pkg-config
1506   MMLOG_CFLAGS
1507               C compiler flags for MMLOG, overriding pkg-config
1508   MMLOG_LIBS  linker flags for MMLOG, overriding pkg-config
1509   SYSMAN_CFLAGS
1510               C compiler flags for SYSMAN, overriding pkg-config
1511   SYSMAN_LIBS linker flags for SYSMAN, overriding pkg-config
1512
1513 Use these variables to override the choices made by `configure' or to help
1514 it to find libraries and programs with nonstandard names/locations.
1515
1516 Report bugs to <BUG-REPORT-ADDRESS>.
1517 _ACEOF
1518 ac_status=$?
1519 fi
1520
1521 if test "$ac_init_help" = "recursive"; then
1522   # If there are subdirs, report their specific --help.
1523   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524     test -d "$ac_dir" || continue
1525     ac_builddir=.
1526
1527 case "$ac_dir" in
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *)
1530   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1531   # A ".." for each directory in $ac_dir_suffix.
1532   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1533   case $ac_top_builddir_sub in
1534   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536   esac ;;
1537 esac
1538 ac_abs_top_builddir=$ac_pwd
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540 # for backward compatibility:
1541 ac_top_builddir=$ac_top_build_prefix
1542
1543 case $srcdir in
1544   .)  # We are building in place.
1545     ac_srcdir=.
1546     ac_top_srcdir=$ac_top_builddir_sub
1547     ac_abs_top_srcdir=$ac_pwd ;;
1548   [\\/]* | ?:[\\/]* )  # Absolute name.
1549     ac_srcdir=$srcdir$ac_dir_suffix;
1550     ac_top_srcdir=$srcdir
1551     ac_abs_top_srcdir=$srcdir ;;
1552   *) # Relative name.
1553     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554     ac_top_srcdir=$ac_top_build_prefix$srcdir
1555     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 esac
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558
1559     cd "$ac_dir" || { ac_status=$?; continue; }
1560     # Check for guested configure.
1561     if test -f "$ac_srcdir/configure.gnu"; then
1562       echo &&
1563       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564     elif test -f "$ac_srcdir/configure"; then
1565       echo &&
1566       $SHELL "$ac_srcdir/configure" --help=recursive
1567     else
1568       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569     fi || ac_status=$?
1570     cd "$ac_pwd" || { ac_status=$?; break; }
1571   done
1572 fi
1573
1574 test -n "$ac_init_help" && exit $ac_status
1575 if $ac_init_version; then
1576   cat <<\_ACEOF
1577 AUDIOSESSIONMGR configure 1.0
1578 generated by GNU Autoconf 2.61
1579
1580 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1581 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1582 This configure script is free software; the Free Software Foundation
1583 gives unlimited permission to copy, distribute and modify it.
1584 _ACEOF
1585   exit
1586 fi
1587 cat >config.log <<_ACEOF
1588 This file contains any messages produced by compilers while
1589 running configure, to aid debugging if configure makes a mistake.
1590
1591 It was created by AUDIOSESSIONMGR $as_me 1.0, which was
1592 generated by GNU Autoconf 2.61.  Invocation command line was
1593
1594   $ $0 $@
1595
1596 _ACEOF
1597 exec 5>>config.log
1598 {
1599 cat <<_ASUNAME
1600 ## --------- ##
1601 ## Platform. ##
1602 ## --------- ##
1603
1604 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1605 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1606 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1607 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1608 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1609
1610 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1611 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1612
1613 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1614 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1615 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1616 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1617 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1618 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1619 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1620
1621 _ASUNAME
1622
1623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624 for as_dir in $PATH
1625 do
1626   IFS=$as_save_IFS
1627   test -z "$as_dir" && as_dir=.
1628   echo "PATH: $as_dir"
1629 done
1630 IFS=$as_save_IFS
1631
1632 } >&5
1633
1634 cat >&5 <<_ACEOF
1635
1636
1637 ## ----------- ##
1638 ## Core tests. ##
1639 ## ----------- ##
1640
1641 _ACEOF
1642
1643
1644 # Keep a trace of the command line.
1645 # Strip out --no-create and --no-recursion so they do not pile up.
1646 # Strip out --silent because we don't want to record it for future runs.
1647 # Also quote any args containing shell meta-characters.
1648 # Make two passes to allow for proper duplicate-argument suppression.
1649 ac_configure_args=
1650 ac_configure_args0=
1651 ac_configure_args1=
1652 ac_must_keep_next=false
1653 for ac_pass in 1 2
1654 do
1655   for ac_arg
1656   do
1657     case $ac_arg in
1658     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1659     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1660     | -silent | --silent | --silen | --sile | --sil)
1661       continue ;;
1662     *\'*)
1663       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1664     esac
1665     case $ac_pass in
1666     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1667     2)
1668       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1669       if test $ac_must_keep_next = true; then
1670         ac_must_keep_next=false # Got value, back to normal.
1671       else
1672         case $ac_arg in
1673           *=* | --config-cache | -C | -disable-* | --disable-* \
1674           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1675           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1676           | -with-* | --with-* | -without-* | --without-* | --x)
1677             case "$ac_configure_args0 " in
1678               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1679             esac
1680             ;;
1681           -* ) ac_must_keep_next=true ;;
1682         esac
1683       fi
1684       ac_configure_args="$ac_configure_args '$ac_arg'"
1685       ;;
1686     esac
1687   done
1688 done
1689 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1690 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1691
1692 # When interrupted or exit'd, cleanup temporary files, and complete
1693 # config.log.  We remove comments because anyway the quotes in there
1694 # would cause problems or look ugly.
1695 # WARNING: Use '\'' to represent an apostrophe within the trap.
1696 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1697 trap 'exit_status=$?
1698   # Save into config.log some information that might help in debugging.
1699   {
1700     echo
1701
1702     cat <<\_ASBOX
1703 ## ---------------- ##
1704 ## Cache variables. ##
1705 ## ---------------- ##
1706 _ASBOX
1707     echo
1708     # The following way of writing the cache mishandles newlines in values,
1709 (
1710   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1711     eval ac_val=\$$ac_var
1712     case $ac_val in #(
1713     *${as_nl}*)
1714       case $ac_var in #(
1715       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1716 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1717       esac
1718       case $ac_var in #(
1719       _ | IFS | as_nl) ;; #(
1720       *) $as_unset $ac_var ;;
1721       esac ;;
1722     esac
1723   done
1724   (set) 2>&1 |
1725     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1726     *${as_nl}ac_space=\ *)
1727       sed -n \
1728         "s/'\''/'\''\\\\'\'''\''/g;
1729           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1730       ;; #(
1731     *)
1732       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1733       ;;
1734     esac |
1735     sort
1736 )
1737     echo
1738
1739     cat <<\_ASBOX
1740 ## ----------------- ##
1741 ## Output variables. ##
1742 ## ----------------- ##
1743 _ASBOX
1744     echo
1745     for ac_var in $ac_subst_vars
1746     do
1747       eval ac_val=\$$ac_var
1748       case $ac_val in
1749       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750       esac
1751       echo "$ac_var='\''$ac_val'\''"
1752     done | sort
1753     echo
1754
1755     if test -n "$ac_subst_files"; then
1756       cat <<\_ASBOX
1757 ## ------------------- ##
1758 ## File substitutions. ##
1759 ## ------------------- ##
1760 _ASBOX
1761       echo
1762       for ac_var in $ac_subst_files
1763       do
1764         eval ac_val=\$$ac_var
1765         case $ac_val in
1766         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1767         esac
1768         echo "$ac_var='\''$ac_val'\''"
1769       done | sort
1770       echo
1771     fi
1772
1773     if test -s confdefs.h; then
1774       cat <<\_ASBOX
1775 ## ----------- ##
1776 ## confdefs.h. ##
1777 ## ----------- ##
1778 _ASBOX
1779       echo
1780       cat confdefs.h
1781       echo
1782     fi
1783     test "$ac_signal" != 0 &&
1784       echo "$as_me: caught signal $ac_signal"
1785     echo "$as_me: exit $exit_status"
1786   } >&5
1787   rm -f core *.core core.conftest.* &&
1788     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1789     exit $exit_status
1790 ' 0
1791 for ac_signal in 1 2 13 15; do
1792   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1793 done
1794 ac_signal=0
1795
1796 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1797 rm -f -r conftest* confdefs.h
1798
1799 # Predefined preprocessor variables.
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_NAME "$PACKAGE_NAME"
1803 _ACEOF
1804
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1808 _ACEOF
1809
1810
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1813 _ACEOF
1814
1815
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_STRING "$PACKAGE_STRING"
1818 _ACEOF
1819
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1823 _ACEOF
1824
1825
1826 # Let the site file select an alternate cache file if it wants to.
1827 # Prefer explicitly selected file to automatically selected ones.
1828 if test -n "$CONFIG_SITE"; then
1829   set x "$CONFIG_SITE"
1830 elif test "x$prefix" != xNONE; then
1831   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1832 else
1833   set x "$ac_default_prefix/share/config.site" \
1834         "$ac_default_prefix/etc/config.site"
1835 fi
1836 shift
1837 for ac_site_file
1838 do
1839   if test -r "$ac_site_file"; then
1840     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1841 echo "$as_me: loading site script $ac_site_file" >&6;}
1842     sed 's/^/| /' "$ac_site_file" >&5
1843     . "$ac_site_file"
1844   fi
1845 done
1846
1847 if test -r "$cache_file"; then
1848   # Some versions of bash will fail to source /dev/null (special
1849   # files actually), so we avoid doing that.
1850   if test -f "$cache_file"; then
1851     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1852 echo "$as_me: loading cache $cache_file" >&6;}
1853     case $cache_file in
1854       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1855       *)                      . "./$cache_file";;
1856     esac
1857   fi
1858 else
1859   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1860 echo "$as_me: creating cache $cache_file" >&6;}
1861   >$cache_file
1862 fi
1863
1864 # Check that the precious variables saved in the cache have kept the same
1865 # value.
1866 ac_cache_corrupted=false
1867 for ac_var in $ac_precious_vars; do
1868   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1869   eval ac_new_set=\$ac_env_${ac_var}_set
1870   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1871   eval ac_new_val=\$ac_env_${ac_var}_value
1872   case $ac_old_set,$ac_new_set in
1873     set,)
1874       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1875 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1876       ac_cache_corrupted=: ;;
1877     ,set)
1878       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1879 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1880       ac_cache_corrupted=: ;;
1881     ,);;
1882     *)
1883       if test "x$ac_old_val" != "x$ac_new_val"; then
1884         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1885 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1886         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1887 echo "$as_me:   former value:  $ac_old_val" >&2;}
1888         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1889 echo "$as_me:   current value: $ac_new_val" >&2;}
1890         ac_cache_corrupted=:
1891       fi;;
1892   esac
1893   # Pass precious variables to config.status.
1894   if test "$ac_new_set" = set; then
1895     case $ac_new_val in
1896     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1897     *) ac_arg=$ac_var=$ac_new_val ;;
1898     esac
1899     case " $ac_configure_args " in
1900       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1901       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1902     esac
1903   fi
1904 done
1905 if $ac_cache_corrupted; then
1906   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1907 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1908   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1909 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1910    { (exit 1); exit 1; }; }
1911 fi
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937 ac_ext=c
1938 ac_cpp='$CPP $CPPFLAGS'
1939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942
1943
1944 ac_config_headers="$ac_config_headers config.h"
1945
1946
1947 am__api_version='1.10'
1948
1949 ac_aux_dir=
1950 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1951   if test -f "$ac_dir/install-sh"; then
1952     ac_aux_dir=$ac_dir
1953     ac_install_sh="$ac_aux_dir/install-sh -c"
1954     break
1955   elif test -f "$ac_dir/install.sh"; then
1956     ac_aux_dir=$ac_dir
1957     ac_install_sh="$ac_aux_dir/install.sh -c"
1958     break
1959   elif test -f "$ac_dir/shtool"; then
1960     ac_aux_dir=$ac_dir
1961     ac_install_sh="$ac_aux_dir/shtool install -c"
1962     break
1963   fi
1964 done
1965 if test -z "$ac_aux_dir"; then
1966   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1967 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1968    { (exit 1); exit 1; }; }
1969 fi
1970
1971 # These three variables are undocumented and unsupported,
1972 # and are intended to be withdrawn in a future Autoconf release.
1973 # They can cause serious problems if a builder's source tree is in a directory
1974 # whose full name contains unusual characters.
1975 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1976 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1977 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1978
1979
1980 # Find a good install program.  We prefer a C program (faster),
1981 # so one script is as good as another.  But avoid the broken or
1982 # incompatible versions:
1983 # SysV /etc/install, /usr/sbin/install
1984 # SunOS /usr/etc/install
1985 # IRIX /sbin/install
1986 # AIX /bin/install
1987 # AmigaOS /C/install, which installs bootblocks on floppy discs
1988 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1989 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1990 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1991 # OS/2's system install, which has a completely different semantic
1992 # ./install, which can be erroneously created by make from ./install.sh.
1993 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1994 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1995 if test -z "$INSTALL"; then
1996 if test "${ac_cv_path_install+set}" = set; then
1997   echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2001 do
2002   IFS=$as_save_IFS
2003   test -z "$as_dir" && as_dir=.
2004   # Account for people who put trailing slashes in PATH elements.
2005 case $as_dir/ in
2006   ./ | .// | /cC/* | \
2007   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2008   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2009   /usr/ucb/* ) ;;
2010   *)
2011     # OSF1 and SCO ODT 3.0 have their own names for install.
2012     # Don't use installbsd from OSF since it installs stuff as root
2013     # by default.
2014     for ac_prog in ginstall scoinst install; do
2015       for ac_exec_ext in '' $ac_executable_extensions; do
2016         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2017           if test $ac_prog = install &&
2018             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019             # AIX install.  It has an incompatible calling convention.
2020             :
2021           elif test $ac_prog = install &&
2022             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2023             # program-specific install script used by HP pwplus--don't use.
2024             :
2025           else
2026             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2027             break 3
2028           fi
2029         fi
2030       done
2031     done
2032     ;;
2033 esac
2034 done
2035 IFS=$as_save_IFS
2036
2037
2038 fi
2039   if test "${ac_cv_path_install+set}" = set; then
2040     INSTALL=$ac_cv_path_install
2041   else
2042     # As a last resort, use the slow shell script.  Don't cache a
2043     # value for INSTALL within a source directory, because that will
2044     # break other packages using the cache if that directory is
2045     # removed, or if the value is a relative name.
2046     INSTALL=$ac_install_sh
2047   fi
2048 fi
2049 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2050 echo "${ECHO_T}$INSTALL" >&6; }
2051
2052 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2053 # It thinks the first close brace ends the variable substitution.
2054 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2055
2056 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2057
2058 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2059
2060 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2061 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2062 # Just in case
2063 sleep 1
2064 echo timestamp > conftest.file
2065 # Do `set' in a subshell so we don't clobber the current shell's
2066 # arguments.  Must try -L first in case configure is actually a
2067 # symlink; some systems play weird games with the mod time of symlinks
2068 # (eg FreeBSD returns the mod time of the symlink's containing
2069 # directory).
2070 if (
2071    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2072    if test "$*" = "X"; then
2073       # -L didn't work.
2074       set X `ls -t $srcdir/configure conftest.file`
2075    fi
2076    rm -f conftest.file
2077    if test "$*" != "X $srcdir/configure conftest.file" \
2078       && test "$*" != "X conftest.file $srcdir/configure"; then
2079
2080       # If neither matched, then we have a broken ls.  This can happen
2081       # if, for instance, CONFIG_SHELL is bash and it inherits a
2082       # broken ls alias from the environment.  This has actually
2083       # happened.  Such a system could not be considered "sane".
2084       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2085 alias in your environment" >&5
2086 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2087 alias in your environment" >&2;}
2088    { (exit 1); exit 1; }; }
2089    fi
2090
2091    test "$2" = conftest.file
2092    )
2093 then
2094    # Ok.
2095    :
2096 else
2097    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2098 Check your system clock" >&5
2099 echo "$as_me: error: newly created file is older than distributed files!
2100 Check your system clock" >&2;}
2101    { (exit 1); exit 1; }; }
2102 fi
2103 { echo "$as_me:$LINENO: result: yes" >&5
2104 echo "${ECHO_T}yes" >&6; }
2105 test "$program_prefix" != NONE &&
2106   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2107 # Use a double $ so make ignores it.
2108 test "$program_suffix" != NONE &&
2109   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2110 # Double any \ or $.  echo might interpret backslashes.
2111 # By default was `s,x,x', remove it if useless.
2112 cat <<\_ACEOF >conftest.sed
2113 s/[\\$]/&&/g;s/;s,x,x,$//
2114 _ACEOF
2115 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2116 rm -f conftest.sed
2117
2118 # expand $ac_aux_dir to an absolute path
2119 am_aux_dir=`cd $ac_aux_dir && pwd`
2120
2121 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2122 # Use eval to expand $SHELL
2123 if eval "$MISSING --run true"; then
2124   am_missing_run="$MISSING --run "
2125 else
2126   am_missing_run=
2127   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2128 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2129 fi
2130
2131 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2132 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2133 if test -z "$MKDIR_P"; then
2134   if test "${ac_cv_path_mkdir+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2139 do
2140   IFS=$as_save_IFS
2141   test -z "$as_dir" && as_dir=.
2142   for ac_prog in mkdir gmkdir; do
2143          for ac_exec_ext in '' $ac_executable_extensions; do
2144            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2145            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2146              'mkdir (GNU coreutils) '* | \
2147              'mkdir (coreutils) '* | \
2148              'mkdir (fileutils) '4.1*)
2149                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2150                break 3;;
2151            esac
2152          done
2153        done
2154 done
2155 IFS=$as_save_IFS
2156
2157 fi
2158
2159   if test "${ac_cv_path_mkdir+set}" = set; then
2160     MKDIR_P="$ac_cv_path_mkdir -p"
2161   else
2162     # As a last resort, use the slow shell script.  Don't cache a
2163     # value for MKDIR_P within a source directory, because that will
2164     # break other packages using the cache if that directory is
2165     # removed, or if the value is a relative name.
2166     test -d ./--version && rmdir ./--version
2167     MKDIR_P="$ac_install_sh -d"
2168   fi
2169 fi
2170 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2171 echo "${ECHO_T}$MKDIR_P" >&6; }
2172
2173 mkdir_p="$MKDIR_P"
2174 case $mkdir_p in
2175   [\\/$]* | ?:[\\/]*) ;;
2176   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2177 esac
2178
2179 for ac_prog in gawk mawk nawk awk
2180 do
2181   # Extract the first word of "$ac_prog", so it can be a program name with args.
2182 set dummy $ac_prog; ac_word=$2
2183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2185 if test "${ac_cv_prog_AWK+set}" = set; then
2186   echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188   if test -n "$AWK"; then
2189   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2190 else
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2193 do
2194   IFS=$as_save_IFS
2195   test -z "$as_dir" && as_dir=.
2196   for ac_exec_ext in '' $ac_executable_extensions; do
2197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198     ac_cv_prog_AWK="$ac_prog"
2199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200     break 2
2201   fi
2202 done
2203 done
2204 IFS=$as_save_IFS
2205
2206 fi
2207 fi
2208 AWK=$ac_cv_prog_AWK
2209 if test -n "$AWK"; then
2210   { echo "$as_me:$LINENO: result: $AWK" >&5
2211 echo "${ECHO_T}$AWK" >&6; }
2212 else
2213   { echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6; }
2215 fi
2216
2217
2218   test -n "$AWK" && break
2219 done
2220
2221 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2222 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2223 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2224 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2225   echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227   cat >conftest.make <<\_ACEOF
2228 SHELL = /bin/sh
2229 all:
2230         @echo '@@@%%%=$(MAKE)=@@@%%%'
2231 _ACEOF
2232 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2233 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2234   *@@@%%%=?*=@@@%%%*)
2235     eval ac_cv_prog_make_${ac_make}_set=yes;;
2236   *)
2237     eval ac_cv_prog_make_${ac_make}_set=no;;
2238 esac
2239 rm -f conftest.make
2240 fi
2241 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2242   { echo "$as_me:$LINENO: result: yes" >&5
2243 echo "${ECHO_T}yes" >&6; }
2244   SET_MAKE=
2245 else
2246   { echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6; }
2248   SET_MAKE="MAKE=${MAKE-make}"
2249 fi
2250
2251 rm -rf .tst 2>/dev/null
2252 mkdir .tst 2>/dev/null
2253 if test -d .tst; then
2254   am__leading_dot=.
2255 else
2256   am__leading_dot=_
2257 fi
2258 rmdir .tst 2>/dev/null
2259
2260 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2261   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2262   # is not polluted with repeated "-I."
2263   am__isrc=' -I$(srcdir)'
2264   # test to see if srcdir already configured
2265   if test -f $srcdir/config.status; then
2266     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2267 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2268    { (exit 1); exit 1; }; }
2269   fi
2270 fi
2271
2272 # test whether we have cygpath
2273 if test -z "$CYGPATH_W"; then
2274   if (cygpath --version) >/dev/null 2>/dev/null; then
2275     CYGPATH_W='cygpath -w'
2276   else
2277     CYGPATH_W=echo
2278   fi
2279 fi
2280
2281
2282 # Define the identity of the package.
2283  PACKAGE=audio-session-manager
2284  VERSION=1.0
2285
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE "$PACKAGE"
2289 _ACEOF
2290
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define VERSION "$VERSION"
2294 _ACEOF
2295
2296 # Some tools Automake needs.
2297
2298 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2299
2300
2301 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2302
2303
2304 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2305
2306
2307 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2308
2309
2310 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2311
2312 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2313
2314 # Installed binaries are usually stripped using `strip' when the user
2315 # run `make install-strip'.  However `strip' might not be the right
2316 # tool to use in cross-compilation environments, therefore Automake
2317 # will honor the `STRIP' environment variable to overrule this program.
2318 if test "$cross_compiling" != no; then
2319   if test -n "$ac_tool_prefix"; then
2320   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2321 set dummy ${ac_tool_prefix}strip; ac_word=$2
2322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2324 if test "${ac_cv_prog_STRIP+set}" = set; then
2325   echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327   if test -n "$STRIP"; then
2328   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2329 else
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
2332 do
2333   IFS=$as_save_IFS
2334   test -z "$as_dir" && as_dir=.
2335   for ac_exec_ext in '' $ac_executable_extensions; do
2336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339     break 2
2340   fi
2341 done
2342 done
2343 IFS=$as_save_IFS
2344
2345 fi
2346 fi
2347 STRIP=$ac_cv_prog_STRIP
2348 if test -n "$STRIP"; then
2349   { echo "$as_me:$LINENO: result: $STRIP" >&5
2350 echo "${ECHO_T}$STRIP" >&6; }
2351 else
2352   { echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6; }
2354 fi
2355
2356
2357 fi
2358 if test -z "$ac_cv_prog_STRIP"; then
2359   ac_ct_STRIP=$STRIP
2360   # Extract the first word of "strip", so it can be a program name with args.
2361 set dummy strip; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2365   echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367   if test -n "$ac_ct_STRIP"; then
2368   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2369 else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2372 do
2373   IFS=$as_save_IFS
2374   test -z "$as_dir" && as_dir=.
2375   for ac_exec_ext in '' $ac_executable_extensions; do
2376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377     ac_cv_prog_ac_ct_STRIP="strip"
2378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379     break 2
2380   fi
2381 done
2382 done
2383 IFS=$as_save_IFS
2384
2385 fi
2386 fi
2387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2388 if test -n "$ac_ct_STRIP"; then
2389   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2390 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2391 else
2392   { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2394 fi
2395
2396   if test "x$ac_ct_STRIP" = x; then
2397     STRIP=":"
2398   else
2399     case $cross_compiling:$ac_tool_warned in
2400 yes:)
2401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2402 whose name does not start with the host triplet.  If you think this
2403 configuration is useful to you, please write to autoconf@gnu.org." >&5
2404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet.  If you think this
2406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2407 ac_tool_warned=yes ;;
2408 esac
2409     STRIP=$ac_ct_STRIP
2410   fi
2411 else
2412   STRIP="$ac_cv_prog_STRIP"
2413 fi
2414
2415 fi
2416 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2417
2418 # We need awk for the "check" target.  The system "awk" is bad on
2419 # some platforms.
2420 # Always define AMTAR for backward compatibility.
2421
2422 AMTAR=${AMTAR-"${am_missing_run}tar"}
2423
2424 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2425
2426
2427
2428
2429
2430
2431
2432
2433 # Check whether --with-xo was given.
2434 if test "${with_xo+set}" = set; then
2435   withval=$with_xo; test "$withval" = yes || with_xo=no
2436 else
2437   with_xo=yes
2438 fi
2439
2440
2441   if test "$with_xo" = yes; then
2442     if test "x$MODEL" != "x" ; then
2443
2444 cat >>confdefs.h <<_ACEOF
2445 #define PLATFORM_MODEL_NAME "$MODEL"
2446 _ACEOF
2447
2448     else
2449       echo "model_name not specified"
2450     fi
2451
2452     if test "x$WINSYS" = "xtinyx";  then
2453
2454 cat >>confdefs.h <<\_ACEOF
2455 #define PLATFORM_WINSYS "X"
2456 _ACEOF
2457
2458     else
2459
2460 cat >>confdefs.h <<\_ACEOF
2461 #define PLATFORM_WINSYS "DFB"
2462 _ACEOF
2463
2464     fi
2465
2466     if test "x$LCDTYPE" = "xWVGA" ; then
2467
2468 cat >>confdefs.h <<\_ACEOF
2469 #define PLATFORM_LCDTYPE "WVGA"
2470 _ACEOF
2471
2472
2473 cat >>confdefs.h <<\_ACEOF
2474 #define PLATFORM_LCD_WIDTH 800
2475 _ACEOF
2476
2477
2478 cat >>confdefs.h <<\_ACEOF
2479 #define PLATFORM_LCD_HEIGHT 480
2480 _ACEOF
2481
2482     elif test "x$LCDTYPE" = "xWQVGA" ; then
2483
2484 cat >>confdefs.h <<\_ACEOF
2485 #define PLATFORM_LCDEYPE "WQVGA"
2486 _ACEOF
2487
2488
2489 cat >>confdefs.h <<\_ACEOF
2490 #define PLATFORM_LCD_WIDTH 400
2491 _ACEOF
2492
2493
2494 cat >>confdefs.h <<\_ACEOF
2495 #define PLATFORM_LCD_HEIGHT 240
2496 _ACEOF
2497
2498     elif test "x$LCDTYPE" = "xSQVGA" ; then
2499
2500 cat >>confdefs.h <<\_ACEOF
2501 #define PLATFORM_LCDTYPE "SQVGA"
2502 _ACEOF
2503
2504
2505 cat >>confdefs.h <<\_ACEOF
2506 #define PLATFORM_LCD_WIDTH 320
2507 _ACEOF
2508
2509
2510 cat >>confdefs.h <<\_ACEOF
2511 #define PLATFORM_LCD_HEIGHT 320
2512 _ACEOF
2513
2514     elif test "x$LCDTYPE" = "xQVGA" ; then
2515
2516 cat >>confdefs.h <<\_ACEOF
2517 #define PLATFORM_LCDTYPE "QVGA"
2518 _ACEOF
2519
2520
2521 cat >>confdefs.h <<\_ACEOF
2522 #define PLATFORM_LCD_WIDTH 240
2523 _ACEOF
2524
2525
2526 cat >>confdefs.h <<\_ACEOF
2527 #define PLATFORM_LCD_HEIGHT 320
2528 _ACEOF
2529
2530     else
2531       echo "lcdtype not specified"
2532     fi
2533
2534     if test "x$EFFECT" = "xall" ; then
2535
2536 cat >>confdefs.h <<\_ACEOF
2537 #define PLATFORM_EFFECT "all"
2538 _ACEOF
2539
2540     elif test "x$EFFECT" = "xwindow" ; then
2541
2542 cat >>confdefs.h <<\_ACEOF
2543 #define PLATFORM_EFFECT "window"
2544 _ACEOF
2545
2546     elif test "x$EFFECT" = "xwidget" ; then
2547
2548 cat >>confdefs.h <<\_ACEOF
2549 #define PLATFORM_EFFECT "widget"
2550 _ACEOF
2551
2552     else
2553
2554 cat >>confdefs.h <<\_ACEOF
2555 #define PLATFORM_EFFECT "none"
2556 _ACEOF
2557
2558     fi
2559
2560     if test "x$MMC_ROOT_PATH" != "x";  then
2561
2562 cat >>confdefs.h <<_ACEOF
2563 #define PLATFORM_MMC_ROOT_PATH "$MMC_ROOT_PATH"
2564 _ACEOF
2565
2566     fi
2567
2568
2569 cat >>confdefs.h <<\_ACEOF
2570 #define EXPORT_API __attribute__((visibility("default")))
2571 _ACEOF
2572
2573
2574   else
2575    echo ""
2576   fi
2577
2578   # Check whether --enable-platform-debug was given.
2579 if test "${enable_platform_debug+set}" = set; then
2580   enableval=$enable_platform_debug;
2581 else
2582   enable_platform_debug=no
2583 fi
2584
2585
2586   if test x$enable_platform_debug = xyes; then
2587
2588 cat >>confdefs.h <<\_ACEOF
2589 #define PLATFORM_DEBUG "yes"
2590 _ACEOF
2591
2592   else
2593
2594 cat >>confdefs.h <<\_ACEOF
2595 #define PLATFORM_DEBUG "no"
2596 _ACEOF
2597
2598   fi
2599
2600   # Check whether --enable-platform-intercall was given.
2601 if test "${enable_platform_intercall+set}" = set; then
2602   enableval=$enable_platform_intercall;
2603 else
2604   enable_platform_intercall=yes
2605 fi
2606
2607
2608   have_platform_intercall=no
2609   if test x$enable_platform_intercall= xyes; then
2610
2611 cat >>confdefs.h <<\_ACEOF
2612 #define PLATFORM_INTERCALL "yes"
2613 _ACEOF
2614
2615   else
2616
2617 cat >>confdefs.h <<\_ACEOF
2618 #define PLATFORM_INTERCALL "no"
2619 _ACEOF
2620
2621   fi
2622
2623
2624
2625
2626 # Checks for programs.
2627 ac_ext=c
2628 ac_cpp='$CPP $CPPFLAGS'
2629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632 if test -n "$ac_tool_prefix"; then
2633   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2634 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_CC+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   if test -n "$CC"; then
2641   ac_cv_prog_CC="$CC" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2645 do
2646   IFS=$as_save_IFS
2647   test -z "$as_dir" && as_dir=.
2648   for ac_exec_ext in '' $ac_executable_extensions; do
2649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652     break 2
2653   fi
2654 done
2655 done
2656 IFS=$as_save_IFS
2657
2658 fi
2659 fi
2660 CC=$ac_cv_prog_CC
2661 if test -n "$CC"; then
2662   { echo "$as_me:$LINENO: result: $CC" >&5
2663 echo "${ECHO_T}$CC" >&6; }
2664 else
2665   { echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6; }
2667 fi
2668
2669
2670 fi
2671 if test -z "$ac_cv_prog_CC"; then
2672   ac_ct_CC=$CC
2673   # Extract the first word of "gcc", so it can be a program name with args.
2674 set dummy gcc; ac_word=$2
2675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2678   echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680   if test -n "$ac_ct_CC"; then
2681   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2682 else
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686   IFS=$as_save_IFS
2687   test -z "$as_dir" && as_dir=.
2688   for ac_exec_ext in '' $ac_executable_extensions; do
2689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690     ac_cv_prog_ac_ct_CC="gcc"
2691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692     break 2
2693   fi
2694 done
2695 done
2696 IFS=$as_save_IFS
2697
2698 fi
2699 fi
2700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2701 if test -n "$ac_ct_CC"; then
2702   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2703 echo "${ECHO_T}$ac_ct_CC" >&6; }
2704 else
2705   { echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6; }
2707 fi
2708
2709   if test "x$ac_ct_CC" = x; then
2710     CC=""
2711   else
2712     case $cross_compiling:$ac_tool_warned in
2713 yes:)
2714 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2715 whose name does not start with the host triplet.  If you think this
2716 configuration is useful to you, please write to autoconf@gnu.org." >&5
2717 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2718 whose name does not start with the host triplet.  If you think this
2719 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2720 ac_tool_warned=yes ;;
2721 esac
2722     CC=$ac_ct_CC
2723   fi
2724 else
2725   CC="$ac_cv_prog_CC"
2726 fi
2727
2728 if test -z "$CC"; then
2729           if test -n "$ac_tool_prefix"; then
2730     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2731 set dummy ${ac_tool_prefix}cc; ac_word=$2
2732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2734 if test "${ac_cv_prog_CC+set}" = set; then
2735   echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737   if test -n "$CC"; then
2738   ac_cv_prog_CC="$CC" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2742 do
2743   IFS=$as_save_IFS
2744   test -z "$as_dir" && as_dir=.
2745   for ac_exec_ext in '' $ac_executable_extensions; do
2746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747     ac_cv_prog_CC="${ac_tool_prefix}cc"
2748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749     break 2
2750   fi
2751 done
2752 done
2753 IFS=$as_save_IFS
2754
2755 fi
2756 fi
2757 CC=$ac_cv_prog_CC
2758 if test -n "$CC"; then
2759   { echo "$as_me:$LINENO: result: $CC" >&5
2760 echo "${ECHO_T}$CC" >&6; }
2761 else
2762   { echo "$as_me:$LINENO: result: no" >&5
2763 echo "${ECHO_T}no" >&6; }
2764 fi
2765
2766
2767   fi
2768 fi
2769 if test -z "$CC"; then
2770   # Extract the first word of "cc", so it can be a program name with args.
2771 set dummy cc; ac_word=$2
2772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774 if test "${ac_cv_prog_CC+set}" = set; then
2775   echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777   if test -n "$CC"; then
2778   ac_cv_prog_CC="$CC" # Let the user override the test.
2779 else
2780   ac_prog_rejected=no
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784   IFS=$as_save_IFS
2785   test -z "$as_dir" && as_dir=.
2786   for ac_exec_ext in '' $ac_executable_extensions; do
2787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2789        ac_prog_rejected=yes
2790        continue
2791      fi
2792     ac_cv_prog_CC="cc"
2793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794     break 2
2795   fi
2796 done
2797 done
2798 IFS=$as_save_IFS
2799
2800 if test $ac_prog_rejected = yes; then
2801   # We found a bogon in the path, so make sure we never use it.
2802   set dummy $ac_cv_prog_CC
2803   shift
2804   if test $# != 0; then
2805     # We chose a different compiler from the bogus one.
2806     # However, it has the same basename, so the bogon will be chosen
2807     # first if we set CC to just the basename; use the full file name.
2808     shift
2809     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2810   fi
2811 fi
2812 fi
2813 fi
2814 CC=$ac_cv_prog_CC
2815 if test -n "$CC"; then
2816   { echo "$as_me:$LINENO: result: $CC" >&5
2817 echo "${ECHO_T}$CC" >&6; }
2818 else
2819   { echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6; }
2821 fi
2822
2823
2824 fi
2825 if test -z "$CC"; then
2826   if test -n "$ac_tool_prefix"; then
2827   for ac_prog in cl.exe
2828   do
2829     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2830 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833 if test "${ac_cv_prog_CC+set}" = set; then
2834   echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836   if test -n "$CC"; then
2837   ac_cv_prog_CC="$CC" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842   IFS=$as_save_IFS
2843   test -z "$as_dir" && as_dir=.
2844   for ac_exec_ext in '' $ac_executable_extensions; do
2845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848     break 2
2849   fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 CC=$ac_cv_prog_CC
2857 if test -n "$CC"; then
2858   { echo "$as_me:$LINENO: result: $CC" >&5
2859 echo "${ECHO_T}$CC" >&6; }
2860 else
2861   { echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6; }
2863 fi
2864
2865
2866     test -n "$CC" && break
2867   done
2868 fi
2869 if test -z "$CC"; then
2870   ac_ct_CC=$CC
2871   for ac_prog in cl.exe
2872 do
2873   # Extract the first word of "$ac_prog", so it can be a program name with args.
2874 set dummy $ac_prog; ac_word=$2
2875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2877 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2878   echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880   if test -n "$ac_ct_CC"; then
2881   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886   IFS=$as_save_IFS
2887   test -z "$as_dir" && as_dir=.
2888   for ac_exec_ext in '' $ac_executable_extensions; do
2889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2890     ac_cv_prog_ac_ct_CC="$ac_prog"
2891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892     break 2
2893   fi
2894 done
2895 done
2896 IFS=$as_save_IFS
2897
2898 fi
2899 fi
2900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2901 if test -n "$ac_ct_CC"; then
2902   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2903 echo "${ECHO_T}$ac_ct_CC" >&6; }
2904 else
2905   { echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6; }
2907 fi
2908
2909
2910   test -n "$ac_ct_CC" && break
2911 done
2912
2913   if test "x$ac_ct_CC" = x; then
2914     CC=""
2915   else
2916     case $cross_compiling:$ac_tool_warned in
2917 yes:)
2918 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2919 whose name does not start with the host triplet.  If you think this
2920 configuration is useful to you, please write to autoconf@gnu.org." >&5
2921 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2922 whose name does not start with the host triplet.  If you think this
2923 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2924 ac_tool_warned=yes ;;
2925 esac
2926     CC=$ac_ct_CC
2927   fi
2928 fi
2929
2930 fi
2931
2932
2933 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2934 See \`config.log' for more details." >&5
2935 echo "$as_me: error: no acceptable C compiler found in \$PATH
2936 See \`config.log' for more details." >&2;}
2937    { (exit 1); exit 1; }; }
2938
2939 # Provide some information about the compiler.
2940 echo "$as_me:$LINENO: checking for C compiler version" >&5
2941 ac_compiler=`set X $ac_compile; echo $2`
2942 { (ac_try="$ac_compiler --version >&5"
2943 case "(($ac_try" in
2944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945   *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948   (eval "$ac_compiler --version >&5") 2>&5
2949   ac_status=$?
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); }
2952 { (ac_try="$ac_compiler -v >&5"
2953 case "(($ac_try" in
2954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955   *) ac_try_echo=$ac_try;;
2956 esac
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958   (eval "$ac_compiler -v >&5") 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }
2962 { (ac_try="$ac_compiler -V >&5"
2963 case "(($ac_try" in
2964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965   *) ac_try_echo=$ac_try;;
2966 esac
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968   (eval "$ac_compiler -V >&5") 2>&5
2969   ac_status=$?
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); }
2972
2973 cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h.  */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h.  */
2979
2980 int
2981 main ()
2982 {
2983
2984   ;
2985   return 0;
2986 }
2987 _ACEOF
2988 ac_clean_files_save=$ac_clean_files
2989 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2990 # Try to create an executable without -o first, disregard a.out.
2991 # It will help us diagnose broken compilers, and finding out an intuition
2992 # of exeext.
2993 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2994 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2995 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2996 #
2997 # List of possible output files, starting from the most likely.
2998 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2999 # only as a last resort.  b.out is created by i960 compilers.
3000 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3001 #
3002 # The IRIX 6 linker writes into existing files which may not be
3003 # executable, retaining their permissions.  Remove them first so a
3004 # subsequent execution test works.
3005 ac_rmfiles=
3006 for ac_file in $ac_files
3007 do
3008   case $ac_file in
3009     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3010     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3011   esac
3012 done
3013 rm -f $ac_rmfiles
3014
3015 if { (ac_try="$ac_link_default"
3016 case "(($ac_try" in
3017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018   *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021   (eval "$ac_link_default") 2>&5
3022   ac_status=$?
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); }; then
3025   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3026 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3027 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3028 # so that the user can short-circuit this test for compilers unknown to
3029 # Autoconf.
3030 for ac_file in $ac_files ''
3031 do
3032   test -f "$ac_file" || continue
3033   case $ac_file in
3034     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3035         ;;
3036     [ab].out )
3037         # We found the default executable, but exeext='' is most
3038         # certainly right.
3039         break;;
3040     *.* )
3041         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3042         then :; else
3043            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3044         fi
3045         # We set ac_cv_exeext here because the later test for it is not
3046         # safe: cross compilers may not add the suffix if given an `-o'
3047         # argument, so we may need to know it at that point already.
3048         # Even if this section looks crufty: it has the advantage of
3049         # actually working.
3050         break;;
3051     * )
3052         break;;
3053   esac
3054 done
3055 test "$ac_cv_exeext" = no && ac_cv_exeext=
3056
3057 else
3058   ac_file=''
3059 fi
3060
3061 { echo "$as_me:$LINENO: result: $ac_file" >&5
3062 echo "${ECHO_T}$ac_file" >&6; }
3063 if test -z "$ac_file"; then
3064   echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3066
3067 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3068 See \`config.log' for more details." >&5
3069 echo "$as_me: error: C compiler cannot create executables
3070 See \`config.log' for more details." >&2;}
3071    { (exit 77); exit 77; }; }
3072 fi
3073
3074 ac_exeext=$ac_cv_exeext
3075
3076 # Check that the compiler produces executables we can run.  If not, either
3077 # the compiler is broken, or we cross compile.
3078 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3079 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3080 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3081 # If not cross compiling, check that we can run a simple program.
3082 if test "$cross_compiling" != yes; then
3083   if { ac_try='./$ac_file'
3084   { (case "(($ac_try" in
3085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086   *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089   (eval "$ac_try") 2>&5
3090   ac_status=$?
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); }; }; then
3093     cross_compiling=no
3094   else
3095     if test "$cross_compiling" = maybe; then
3096         cross_compiling=yes
3097     else
3098         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3099 If you meant to cross compile, use \`--host'.
3100 See \`config.log' for more details." >&5
3101 echo "$as_me: error: cannot run C compiled programs.
3102 If you meant to cross compile, use \`--host'.
3103 See \`config.log' for more details." >&2;}
3104    { (exit 1); exit 1; }; }
3105     fi
3106   fi
3107 fi
3108 { echo "$as_me:$LINENO: result: yes" >&5
3109 echo "${ECHO_T}yes" >&6; }
3110
3111 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3112 ac_clean_files=$ac_clean_files_save
3113 # Check that the compiler produces executables we can run.  If not, either
3114 # the compiler is broken, or we cross compile.
3115 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3116 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3117 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3118 echo "${ECHO_T}$cross_compiling" >&6; }
3119
3120 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3121 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3122 if { (ac_try="$ac_link"
3123 case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128   (eval "$ac_link") 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }; then
3132   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3133 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3134 # work properly (i.e., refer to `conftest.exe'), while it won't with
3135 # `rm'.
3136 for ac_file in conftest.exe conftest conftest.*; do
3137   test -f "$ac_file" || continue
3138   case $ac_file in
3139     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3140     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3141           break;;
3142     * ) break;;
3143   esac
3144 done
3145 else
3146   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3147 See \`config.log' for more details." >&5
3148 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3149 See \`config.log' for more details." >&2;}
3150    { (exit 1); exit 1; }; }
3151 fi
3152
3153 rm -f conftest$ac_cv_exeext
3154 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3155 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3156
3157 rm -f conftest.$ac_ext
3158 EXEEXT=$ac_cv_exeext
3159 ac_exeext=$EXEEXT
3160 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3161 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3162 if test "${ac_cv_objext+set}" = set; then
3163   echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165   cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h.  */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h.  */
3171
3172 int
3173 main ()
3174 {
3175
3176   ;
3177   return 0;
3178 }
3179 _ACEOF
3180 rm -f conftest.o conftest.obj
3181 if { (ac_try="$ac_compile"
3182 case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_compile") 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }; then
3191   for ac_file in conftest.o conftest.obj conftest.*; do
3192   test -f "$ac_file" || continue;
3193   case $ac_file in
3194     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3195     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3196        break;;
3197   esac
3198 done
3199 else
3200   echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3204 See \`config.log' for more details." >&5
3205 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3206 See \`config.log' for more details." >&2;}
3207    { (exit 1); exit 1; }; }
3208 fi
3209
3210 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3211 fi
3212 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3213 echo "${ECHO_T}$ac_cv_objext" >&6; }
3214 OBJEXT=$ac_cv_objext
3215 ac_objext=$OBJEXT
3216 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3217 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3218 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h.  */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h.  */
3227
3228 int
3229 main ()
3230 {
3231 #ifndef __GNUC__
3232        choke me
3233 #endif
3234
3235   ;
3236   return 0;
3237 }
3238 _ACEOF
3239 rm -f conftest.$ac_objext
3240 if { (ac_try="$ac_compile"
3241 case "(($ac_try" in
3242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243   *) ac_try_echo=$ac_try;;
3244 esac
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246   (eval "$ac_compile") 2>conftest.er1
3247   ac_status=$?
3248   grep -v '^ *+' conftest.er1 >conftest.err
3249   rm -f conftest.er1
3250   cat conftest.err >&5
3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); } && {
3253          test -z "$ac_c_werror_flag" ||
3254          test ! -s conftest.err
3255        } && test -s conftest.$ac_objext; then
3256   ac_compiler_gnu=yes
3257 else
3258   echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261         ac_compiler_gnu=no
3262 fi
3263
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3266
3267 fi
3268 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3269 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3270 GCC=`test $ac_compiler_gnu = yes && echo yes`
3271 ac_test_CFLAGS=${CFLAGS+set}
3272 ac_save_CFLAGS=$CFLAGS
3273 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3274 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3275 if test "${ac_cv_prog_cc_g+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   ac_save_c_werror_flag=$ac_c_werror_flag
3279    ac_c_werror_flag=yes
3280    ac_cv_prog_cc_g=no
3281    CFLAGS="-g"
3282    cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h.  */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h.  */
3288
3289 int
3290 main ()
3291 {
3292
3293   ;
3294   return 0;
3295 }
3296 _ACEOF
3297 rm -f conftest.$ac_objext
3298 if { (ac_try="$ac_compile"
3299 case "(($ac_try" in
3300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301   *) ac_try_echo=$ac_try;;
3302 esac
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304   (eval "$ac_compile") 2>conftest.er1
3305   ac_status=$?
3306   grep -v '^ *+' conftest.er1 >conftest.err
3307   rm -f conftest.er1
3308   cat conftest.err >&5
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); } && {
3311          test -z "$ac_c_werror_flag" ||
3312          test ! -s conftest.err
3313        } && test -s conftest.$ac_objext; then
3314   ac_cv_prog_cc_g=yes
3315 else
3316   echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3318
3319         CFLAGS=""
3320       cat >conftest.$ac_ext <<_ACEOF
3321 /* confdefs.h.  */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h.  */
3326
3327 int
3328 main ()
3329 {
3330
3331   ;
3332   return 0;
3333 }
3334 _ACEOF
3335 rm -f conftest.$ac_objext
3336 if { (ac_try="$ac_compile"
3337 case "(($ac_try" in
3338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339   *) ac_try_echo=$ac_try;;
3340 esac
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342   (eval "$ac_compile") 2>conftest.er1
3343   ac_status=$?
3344   grep -v '^ *+' conftest.er1 >conftest.err
3345   rm -f conftest.er1
3346   cat conftest.err >&5
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); } && {
3349          test -z "$ac_c_werror_flag" ||
3350          test ! -s conftest.err
3351        } && test -s conftest.$ac_objext; then
3352   :
3353 else
3354   echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3356
3357         ac_c_werror_flag=$ac_save_c_werror_flag
3358          CFLAGS="-g"
3359          cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h.  */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h.  */
3365
3366 int
3367 main ()
3368 {
3369
3370   ;
3371   return 0;
3372 }
3373 _ACEOF
3374 rm -f conftest.$ac_objext
3375 if { (ac_try="$ac_compile"
3376 case "(($ac_try" in
3377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378   *) ac_try_echo=$ac_try;;
3379 esac
3380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381   (eval "$ac_compile") 2>conftest.er1
3382   ac_status=$?
3383   grep -v '^ *+' conftest.er1 >conftest.err
3384   rm -f conftest.er1
3385   cat conftest.err >&5
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); } && {
3388          test -z "$ac_c_werror_flag" ||
3389          test ! -s conftest.err
3390        } && test -s conftest.$ac_objext; then
3391   ac_cv_prog_cc_g=yes
3392 else
3393   echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3395
3396
3397 fi
3398
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 fi
3401
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 fi
3404
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406    ac_c_werror_flag=$ac_save_c_werror_flag
3407 fi
3408 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3409 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3410 if test "$ac_test_CFLAGS" = set; then
3411   CFLAGS=$ac_save_CFLAGS
3412 elif test $ac_cv_prog_cc_g = yes; then
3413   if test "$GCC" = yes; then
3414     CFLAGS="-g -O2"
3415   else
3416     CFLAGS="-g"
3417   fi
3418 else
3419   if test "$GCC" = yes; then
3420     CFLAGS="-O2"
3421   else
3422     CFLAGS=
3423   fi
3424 fi
3425 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3426 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3427 if test "${ac_cv_prog_cc_c89+set}" = set; then
3428   echo $ECHO_N "(cached) $ECHO_C" >&6
3429 else
3430   ac_cv_prog_cc_c89=no
3431 ac_save_CC=$CC
3432 cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h.  */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h.  */
3438 #include <stdarg.h>
3439 #include <stdio.h>
3440 #include <sys/types.h>
3441 #include <sys/stat.h>
3442 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3443 struct buf { int x; };
3444 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3445 static char *e (p, i)
3446      char **p;
3447      int i;
3448 {
3449   return p[i];
3450 }
3451 static char *f (char * (*g) (char **, int), char **p, ...)
3452 {
3453   char *s;
3454   va_list v;
3455   va_start (v,p);
3456   s = g (p, va_arg (v,int));
3457   va_end (v);
3458   return s;
3459 }
3460
3461 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3462    function prototypes and stuff, but not '\xHH' hex character constants.
3463    These don't provoke an error unfortunately, instead are silently treated
3464    as 'x'.  The following induces an error, until -std is added to get
3465    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3466    array size at least.  It's necessary to write '\x00'==0 to get something
3467    that's true only with -std.  */
3468 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3469
3470 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3471    inside strings and character constants.  */
3472 #define FOO(x) 'x'
3473 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3474
3475 int test (int i, double x);
3476 struct s1 {int (*f) (int a);};
3477 struct s2 {int (*f) (double a);};
3478 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3479 int argc;
3480 char **argv;
3481 int
3482 main ()
3483 {
3484 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3485   ;
3486   return 0;
3487 }
3488 _ACEOF
3489 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3490         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3491 do
3492   CC="$ac_save_CC $ac_arg"
3493   rm -f conftest.$ac_objext
3494 if { (ac_try="$ac_compile"
3495 case "(($ac_try" in
3496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497   *) ac_try_echo=$ac_try;;
3498 esac
3499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3500   (eval "$ac_compile") 2>conftest.er1
3501   ac_status=$?
3502   grep -v '^ *+' conftest.er1 >conftest.err
3503   rm -f conftest.er1
3504   cat conftest.err >&5
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); } && {
3507          test -z "$ac_c_werror_flag" ||
3508          test ! -s conftest.err
3509        } && test -s conftest.$ac_objext; then
3510   ac_cv_prog_cc_c89=$ac_arg
3511 else
3512   echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515
3516 fi
3517
3518 rm -f core conftest.err conftest.$ac_objext
3519   test "x$ac_cv_prog_cc_c89" != "xno" && break
3520 done
3521 rm -f conftest.$ac_ext
3522 CC=$ac_save_CC
3523
3524 fi
3525 # AC_CACHE_VAL
3526 case "x$ac_cv_prog_cc_c89" in
3527   x)
3528     { echo "$as_me:$LINENO: result: none needed" >&5
3529 echo "${ECHO_T}none needed" >&6; } ;;
3530   xno)
3531     { echo "$as_me:$LINENO: result: unsupported" >&5
3532 echo "${ECHO_T}unsupported" >&6; } ;;
3533   *)
3534     CC="$CC $ac_cv_prog_cc_c89"
3535     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3536 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3537 esac
3538
3539
3540 ac_ext=c
3541 ac_cpp='$CPP $CPPFLAGS'
3542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545 DEPDIR="${am__leading_dot}deps"
3546
3547 ac_config_commands="$ac_config_commands depfiles"
3548
3549
3550 am_make=${MAKE-make}
3551 cat > confinc << 'END'
3552 am__doit:
3553         @echo done
3554 .PHONY: am__doit
3555 END
3556 # If we don't find an include directive, just comment out the code.
3557 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3558 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3559 am__include="#"
3560 am__quote=
3561 _am_result=none
3562 # First try GNU make style include.
3563 echo "include confinc" > confmf
3564 # We grep out `Entering directory' and `Leaving directory'
3565 # messages which can occur if `w' ends up in MAKEFLAGS.
3566 # In particular we don't look at `^make:' because GNU make might
3567 # be invoked under some other name (usually "gmake"), in which
3568 # case it prints its new name instead of `make'.
3569 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3570    am__include=include
3571    am__quote=
3572    _am_result=GNU
3573 fi
3574 # Now try BSD make style include.
3575 if test "$am__include" = "#"; then
3576    echo '.include "confinc"' > confmf
3577    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3578       am__include=.include
3579       am__quote="\""
3580       _am_result=BSD
3581    fi
3582 fi
3583
3584
3585 { echo "$as_me:$LINENO: result: $_am_result" >&5
3586 echo "${ECHO_T}$_am_result" >&6; }
3587 rm -f confinc confmf
3588
3589 # Check whether --enable-dependency-tracking was given.
3590 if test "${enable_dependency_tracking+set}" = set; then
3591   enableval=$enable_dependency_tracking;
3592 fi
3593
3594 if test "x$enable_dependency_tracking" != xno; then
3595   am_depcomp="$ac_aux_dir/depcomp"
3596   AMDEPBACKSLASH='\'
3597 fi
3598  if test "x$enable_dependency_tracking" != xno; then
3599   AMDEP_TRUE=
3600   AMDEP_FALSE='#'
3601 else
3602   AMDEP_TRUE='#'
3603   AMDEP_FALSE=
3604 fi
3605
3606
3607
3608 depcc="$CC"   am_compiler_list=
3609
3610 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3611 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3612 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3613   echo $ECHO_N "(cached) $ECHO_C" >&6
3614 else
3615   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3616   # We make a subdir and do the tests there.  Otherwise we can end up
3617   # making bogus files that we don't know about and never remove.  For
3618   # instance it was reported that on HP-UX the gcc test will end up
3619   # making a dummy file named `D' -- because `-MD' means `put the output
3620   # in D'.
3621   mkdir conftest.dir
3622   # Copy depcomp to subdir because otherwise we won't find it if we're
3623   # using a relative directory.
3624   cp "$am_depcomp" conftest.dir
3625   cd conftest.dir
3626   # We will build objects and dependencies in a subdirectory because
3627   # it helps to detect inapplicable dependency modes.  For instance
3628   # both Tru64's cc and ICC support -MD to output dependencies as a
3629   # side effect of compilation, but ICC will put the dependencies in
3630   # the current directory while Tru64 will put them in the object
3631   # directory.
3632   mkdir sub
3633
3634   am_cv_CC_dependencies_compiler_type=none
3635   if test "$am_compiler_list" = ""; then
3636      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3637   fi
3638   for depmode in $am_compiler_list; do
3639     # Setup a source with many dependencies, because some compilers
3640     # like to wrap large dependency lists on column 80 (with \), and
3641     # we should not choose a depcomp mode which is confused by this.
3642     #
3643     # We need to recreate these files for each test, as the compiler may
3644     # overwrite some of them when testing with obscure command lines.
3645     # This happens at least with the AIX C compiler.
3646     : > sub/conftest.c
3647     for i in 1 2 3 4 5 6; do
3648       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3649       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3650       # Solaris 8's {/usr,}/bin/sh.
3651       touch sub/conftst$i.h
3652     done
3653     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3654
3655     case $depmode in
3656     nosideeffect)
3657       # after this tag, mechanisms are not by side-effect, so they'll
3658       # only be used when explicitly requested
3659       if test "x$enable_dependency_tracking" = xyes; then
3660         continue
3661       else
3662         break
3663       fi
3664       ;;
3665     none) break ;;
3666     esac
3667     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3668     # mode.  It turns out that the SunPro C++ compiler does not properly
3669     # handle `-M -o', and we need to detect this.
3670     if depmode=$depmode \
3671        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3672        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3673        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3674          >/dev/null 2>conftest.err &&
3675        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3676        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3677        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3678        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3679       # icc doesn't choke on unknown options, it will just issue warnings
3680       # or remarks (even with -Werror).  So we grep stderr for any message
3681       # that says an option was ignored or not supported.
3682       # When given -MP, icc 7.0 and 7.1 complain thusly:
3683       #   icc: Command line warning: ignoring option '-M'; no argument required
3684       # The diagnosis changed in icc 8.0:
3685       #   icc: Command line remark: option '-MP' not supported
3686       if (grep 'ignoring option' conftest.err ||
3687           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3688         am_cv_CC_dependencies_compiler_type=$depmode
3689         break
3690       fi
3691     fi
3692   done
3693
3694   cd ..
3695   rm -rf conftest.dir
3696 else
3697   am_cv_CC_dependencies_compiler_type=none
3698 fi
3699
3700 fi
3701 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3702 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3703 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3704
3705  if
3706   test "x$enable_dependency_tracking" != xno \
3707   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3708   am__fastdepCC_TRUE=
3709   am__fastdepCC_FALSE='#'
3710 else
3711   am__fastdepCC_TRUE='#'
3712   am__fastdepCC_FALSE=
3713 fi
3714
3715
3716 # Find a good install program.  We prefer a C program (faster),
3717 # so one script is as good as another.  But avoid the broken or
3718 # incompatible versions:
3719 # SysV /etc/install, /usr/sbin/install
3720 # SunOS /usr/etc/install
3721 # IRIX /sbin/install
3722 # AIX /bin/install
3723 # AmigaOS /C/install, which installs bootblocks on floppy discs
3724 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3725 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3726 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3727 # OS/2's system install, which has a completely different semantic
3728 # ./install, which can be erroneously created by make from ./install.sh.
3729 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3730 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3731 if test -z "$INSTALL"; then
3732 if test "${ac_cv_path_install+set}" = set; then
3733   echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3737 do
3738   IFS=$as_save_IFS
3739   test -z "$as_dir" && as_dir=.
3740   # Account for people who put trailing slashes in PATH elements.
3741 case $as_dir/ in
3742   ./ | .// | /cC/* | \
3743   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3744   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3745   /usr/ucb/* ) ;;
3746   *)
3747     # OSF1 and SCO ODT 3.0 have their own names for install.
3748     # Don't use installbsd from OSF since it installs stuff as root
3749     # by default.
3750     for ac_prog in ginstall scoinst install; do
3751       for ac_exec_ext in '' $ac_executable_extensions; do
3752         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3753           if test $ac_prog = install &&
3754             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3755             # AIX install.  It has an incompatible calling convention.
3756             :
3757           elif test $ac_prog = install &&
3758             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3759             # program-specific install script used by HP pwplus--don't use.
3760             :
3761           else
3762             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3763             break 3
3764           fi
3765         fi
3766       done
3767     done
3768     ;;
3769 esac
3770 done
3771 IFS=$as_save_IFS
3772
3773
3774 fi
3775   if test "${ac_cv_path_install+set}" = set; then
3776     INSTALL=$ac_cv_path_install
3777   else
3778     # As a last resort, use the slow shell script.  Don't cache a
3779     # value for INSTALL within a source directory, because that will
3780     # break other packages using the cache if that directory is
3781     # removed, or if the value is a relative name.
3782     INSTALL=$ac_install_sh
3783   fi
3784 fi
3785 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3786 echo "${ECHO_T}$INSTALL" >&6; }
3787
3788 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3789 # It thinks the first close brace ends the variable substitution.
3790 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3791
3792 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3793
3794 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3795
3796 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3797 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3798 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3799 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802   cat >conftest.make <<\_ACEOF
3803 SHELL = /bin/sh
3804 all:
3805         @echo '@@@%%%=$(MAKE)=@@@%%%'
3806 _ACEOF
3807 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3808 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3809   *@@@%%%=?*=@@@%%%*)
3810     eval ac_cv_prog_make_${ac_make}_set=yes;;
3811   *)
3812     eval ac_cv_prog_make_${ac_make}_set=no;;
3813 esac
3814 rm -f conftest.make
3815 fi
3816 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3817   { echo "$as_me:$LINENO: result: yes" >&5
3818 echo "${ECHO_T}yes" >&6; }
3819   SET_MAKE=
3820 else
3821   { echo "$as_me:$LINENO: result: no" >&5
3822 echo "${ECHO_T}no" >&6; }
3823   SET_MAKE="MAKE=${MAKE-make}"
3824 fi
3825
3826 case `pwd` in
3827   *\ * | *\     *)
3828     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3829 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3830 esac
3831
3832
3833
3834 macro_version='2.2.4'
3835 macro_revision='1.2976'
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849 ltmain="$ac_aux_dir/ltmain.sh"
3850
3851 # Make sure we can run config.sub.
3852 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3853   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3854 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3855    { (exit 1); exit 1; }; }
3856
3857 { echo "$as_me:$LINENO: checking build system type" >&5
3858 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3859 if test "${ac_cv_build+set}" = set; then
3860   echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862   ac_build_alias=$build_alias
3863 test "x$ac_build_alias" = x &&
3864   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3865 test "x$ac_build_alias" = x &&
3866   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3867 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3868    { (exit 1); exit 1; }; }
3869 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3870   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3871 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3872    { (exit 1); exit 1; }; }
3873
3874 fi
3875 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3876 echo "${ECHO_T}$ac_cv_build" >&6; }
3877 case $ac_cv_build in
3878 *-*-*) ;;
3879 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3880 echo "$as_me: error: invalid value of canonical build" >&2;}
3881    { (exit 1); exit 1; }; };;
3882 esac
3883 build=$ac_cv_build
3884 ac_save_IFS=$IFS; IFS='-'
3885 set x $ac_cv_build
3886 shift
3887 build_cpu=$1
3888 build_vendor=$2
3889 shift; shift
3890 # Remember, the first character of IFS is used to create $*,
3891 # except with old shells:
3892 build_os=$*
3893 IFS=$ac_save_IFS
3894 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3895
3896
3897 { echo "$as_me:$LINENO: checking host system type" >&5
3898 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3899 if test "${ac_cv_host+set}" = set; then
3900   echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902   if test "x$host_alias" = x; then
3903   ac_cv_host=$ac_cv_build
3904 else
3905   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3906     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3907 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3908    { (exit 1); exit 1; }; }
3909 fi
3910
3911 fi
3912 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3913 echo "${ECHO_T}$ac_cv_host" >&6; }
3914 case $ac_cv_host in
3915 *-*-*) ;;
3916 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3917 echo "$as_me: error: invalid value of canonical host" >&2;}
3918    { (exit 1); exit 1; }; };;
3919 esac
3920 host=$ac_cv_host
3921 ac_save_IFS=$IFS; IFS='-'
3922 set x $ac_cv_host
3923 shift
3924 host_cpu=$1
3925 host_vendor=$2
3926 shift; shift
3927 # Remember, the first character of IFS is used to create $*,
3928 # except with old shells:
3929 host_os=$*
3930 IFS=$ac_save_IFS
3931 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3932
3933
3934 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3935 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3936 if test "${ac_cv_path_SED+set}" = set; then
3937   echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3940      for ac_i in 1 2 3 4 5 6 7; do
3941        ac_script="$ac_script$as_nl$ac_script"
3942      done
3943      echo "$ac_script" | sed 99q >conftest.sed
3944      $as_unset ac_script || ac_script=
3945      # Extract the first word of "sed gsed" to use in msg output
3946 if test -z "$SED"; then
3947 set dummy sed gsed; ac_prog_name=$2
3948 if test "${ac_cv_path_SED+set}" = set; then
3949   echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951   ac_path_SED_found=false
3952 # Loop through the user's path and test for each of PROGNAME-LIST
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3955 do
3956   IFS=$as_save_IFS
3957   test -z "$as_dir" && as_dir=.
3958   for ac_prog in sed gsed; do
3959   for ac_exec_ext in '' $ac_executable_extensions; do
3960     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3961     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3962     # Check for GNU ac_path_SED and select it if it is found.
3963   # Check for GNU $ac_path_SED
3964 case `"$ac_path_SED" --version 2>&1` in
3965 *GNU*)
3966   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3967 *)
3968   ac_count=0
3969   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3970   while :
3971   do
3972     cat "conftest.in" "conftest.in" >"conftest.tmp"
3973     mv "conftest.tmp" "conftest.in"
3974     cp "conftest.in" "conftest.nl"
3975     echo '' >> "conftest.nl"
3976     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3977     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3978     ac_count=`expr $ac_count + 1`
3979     if test $ac_count -gt ${ac_path_SED_max-0}; then
3980       # Best one so far, save it but keep looking for a better one
3981       ac_cv_path_SED="$ac_path_SED"
3982       ac_path_SED_max=$ac_count
3983     fi
3984     # 10*(2^10) chars as input seems more than enough
3985     test $ac_count -gt 10 && break
3986   done
3987   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3988 esac
3989
3990
3991     $ac_path_SED_found && break 3
3992   done
3993 done
3994
3995 done
3996 IFS=$as_save_IFS
3997
3998
3999 fi
4000
4001 SED="$ac_cv_path_SED"
4002 if test -z "$SED"; then
4003   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4004 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4005    { (exit 1); exit 1; }; }
4006 fi
4007
4008 else
4009   ac_cv_path_SED=$SED
4010 fi
4011
4012 fi
4013 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4014 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4015  SED="$ac_cv_path_SED"
4016   rm -f conftest.sed
4017
4018 test -z "$SED" && SED=sed
4019 Xsed="$SED -e 1s/^X//"
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4032 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4033 if test "${ac_cv_path_GREP+set}" = set; then
4034   echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036   # Extract the first word of "grep ggrep" to use in msg output
4037 if test -z "$GREP"; then
4038 set dummy grep ggrep; ac_prog_name=$2
4039 if test "${ac_cv_path_GREP+set}" = set; then
4040   echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042   ac_path_GREP_found=false
4043 # Loop through the user's path and test for each of PROGNAME-LIST
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4046 do
4047   IFS=$as_save_IFS
4048   test -z "$as_dir" && as_dir=.
4049   for ac_prog in grep ggrep; do
4050   for ac_exec_ext in '' $ac_executable_extensions; do
4051     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4052     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4053     # Check for GNU ac_path_GREP and select it if it is found.
4054   # Check for GNU $ac_path_GREP
4055 case `"$ac_path_GREP" --version 2>&1` in
4056 *GNU*)
4057   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4058 *)
4059   ac_count=0
4060   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4061   while :
4062   do
4063     cat "conftest.in" "conftest.in" >"conftest.tmp"
4064     mv "conftest.tmp" "conftest.in"
4065     cp "conftest.in" "conftest.nl"
4066     echo 'GREP' >> "conftest.nl"
4067     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4068     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4069     ac_count=`expr $ac_count + 1`
4070     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4071       # Best one so far, save it but keep looking for a better one
4072       ac_cv_path_GREP="$ac_path_GREP"
4073       ac_path_GREP_max=$ac_count
4074     fi
4075     # 10*(2^10) chars as input seems more than enough
4076     test $ac_count -gt 10 && break
4077   done
4078   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4079 esac
4080
4081
4082     $ac_path_GREP_found && break 3
4083   done
4084 done
4085
4086 done
4087 IFS=$as_save_IFS
4088
4089
4090 fi
4091
4092 GREP="$ac_cv_path_GREP"
4093 if test -z "$GREP"; then
4094   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4095 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4096    { (exit 1); exit 1; }; }
4097 fi
4098
4099 else
4100   ac_cv_path_GREP=$GREP
4101 fi
4102
4103
4104 fi
4105 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4106 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4107  GREP="$ac_cv_path_GREP"
4108
4109
4110 { echo "$as_me:$LINENO: checking for egrep" >&5
4111 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4112 if test "${ac_cv_path_EGREP+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4116    then ac_cv_path_EGREP="$GREP -E"
4117    else
4118      # Extract the first word of "egrep" to use in msg output
4119 if test -z "$EGREP"; then
4120 set dummy egrep; ac_prog_name=$2
4121 if test "${ac_cv_path_EGREP+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124   ac_path_EGREP_found=false
4125 # Loop through the user's path and test for each of PROGNAME-LIST
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4128 do
4129   IFS=$as_save_IFS
4130   test -z "$as_dir" && as_dir=.
4131   for ac_prog in egrep; do
4132   for ac_exec_ext in '' $ac_executable_extensions; do
4133     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4134     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4135     # Check for GNU ac_path_EGREP and select it if it is found.
4136   # Check for GNU $ac_path_EGREP
4137 case `"$ac_path_EGREP" --version 2>&1` in
4138 *GNU*)
4139   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4140 *)
4141   ac_count=0
4142   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4143   while :
4144   do
4145     cat "conftest.in" "conftest.in" >"conftest.tmp"
4146     mv "conftest.tmp" "conftest.in"
4147     cp "conftest.in" "conftest.nl"
4148     echo 'EGREP' >> "conftest.nl"
4149     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4150     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4151     ac_count=`expr $ac_count + 1`
4152     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4153       # Best one so far, save it but keep looking for a better one
4154       ac_cv_path_EGREP="$ac_path_EGREP"
4155       ac_path_EGREP_max=$ac_count
4156     fi
4157     # 10*(2^10) chars as input seems more than enough
4158     test $ac_count -gt 10 && break
4159   done
4160   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4161 esac
4162
4163
4164     $ac_path_EGREP_found && break 3
4165   done
4166 done
4167
4168 done
4169 IFS=$as_save_IFS
4170
4171
4172 fi
4173
4174 EGREP="$ac_cv_path_EGREP"
4175 if test -z "$EGREP"; then
4176   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4177 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4178    { (exit 1); exit 1; }; }
4179 fi
4180
4181 else
4182   ac_cv_path_EGREP=$EGREP
4183 fi
4184
4185
4186    fi
4187 fi
4188 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4189 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4190  EGREP="$ac_cv_path_EGREP"
4191
4192
4193 { echo "$as_me:$LINENO: checking for fgrep" >&5
4194 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4195 if test "${ac_cv_path_FGREP+set}" = set; then
4196   echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4199    then ac_cv_path_FGREP="$GREP -F"
4200    else
4201      # Extract the first word of "fgrep" to use in msg output
4202 if test -z "$FGREP"; then
4203 set dummy fgrep; ac_prog_name=$2
4204 if test "${ac_cv_path_FGREP+set}" = set; then
4205   echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207   ac_path_FGREP_found=false
4208 # Loop through the user's path and test for each of PROGNAME-LIST
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4211 do
4212   IFS=$as_save_IFS
4213   test -z "$as_dir" && as_dir=.
4214   for ac_prog in fgrep; do
4215   for ac_exec_ext in '' $ac_executable_extensions; do
4216     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4217     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4218     # Check for GNU ac_path_FGREP and select it if it is found.
4219   # Check for GNU $ac_path_FGREP
4220 case `"$ac_path_FGREP" --version 2>&1` in
4221 *GNU*)
4222   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4223 *)
4224   ac_count=0
4225   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4226   while :
4227   do
4228     cat "conftest.in" "conftest.in" >"conftest.tmp"
4229     mv "conftest.tmp" "conftest.in"
4230     cp "conftest.in" "conftest.nl"
4231     echo 'FGREP' >> "conftest.nl"
4232     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4233     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4234     ac_count=`expr $ac_count + 1`
4235     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4236       # Best one so far, save it but keep looking for a better one
4237       ac_cv_path_FGREP="$ac_path_FGREP"
4238       ac_path_FGREP_max=$ac_count
4239     fi
4240     # 10*(2^10) chars as input seems more than enough
4241     test $ac_count -gt 10 && break
4242   done
4243   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4244 esac
4245
4246
4247     $ac_path_FGREP_found && break 3
4248   done
4249 done
4250
4251 done
4252 IFS=$as_save_IFS
4253
4254
4255 fi
4256
4257 FGREP="$ac_cv_path_FGREP"
4258 if test -z "$FGREP"; then
4259   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4260 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4261    { (exit 1); exit 1; }; }
4262 fi
4263
4264 else
4265   ac_cv_path_FGREP=$FGREP
4266 fi
4267
4268
4269    fi
4270 fi
4271 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4272 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4273  FGREP="$ac_cv_path_FGREP"
4274
4275
4276 test -z "$GREP" && GREP=grep
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296 # Check whether --with-gnu-ld was given.
4297 if test "${with_gnu_ld+set}" = set; then
4298   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4299 else
4300   with_gnu_ld=no
4301 fi
4302
4303 ac_prog=ld
4304 if test "$GCC" = yes; then
4305   # Check if gcc -print-prog-name=ld gives a path.
4306   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4307 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4308   case $host in
4309   *-*-mingw*)
4310     # gcc leaves a trailing carriage return which upsets mingw
4311     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4312   *)
4313     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4314   esac
4315   case $ac_prog in
4316     # Accept absolute paths.
4317     [\\/]* | ?:[\\/]*)
4318       re_direlt='/[^/][^/]*/\.\./'
4319       # Canonicalize the pathname of ld
4320       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4321       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4322         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4323       done
4324       test -z "$LD" && LD="$ac_prog"
4325       ;;
4326   "")
4327     # If it fails, then pretend we aren't using GCC.
4328     ac_prog=ld
4329     ;;
4330   *)
4331     # If it is relative, then search for the first ld in PATH.
4332     with_gnu_ld=unknown
4333     ;;
4334   esac
4335 elif test "$with_gnu_ld" = yes; then
4336   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4337 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4338 else
4339   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4340 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4341 fi
4342 if test "${lt_cv_path_LD+set}" = set; then
4343   echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345   if test -z "$LD"; then
4346   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4347   for ac_dir in $PATH; do
4348     IFS="$lt_save_ifs"
4349     test -z "$ac_dir" && ac_dir=.
4350     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4351       lt_cv_path_LD="$ac_dir/$ac_prog"
4352       # Check to see if the program is GNU ld.  I'd rather use --version,
4353       # but apparently some variants of GNU ld only accept -v.
4354       # Break only if it was the GNU/non-GNU ld that we prefer.
4355       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4356       *GNU* | *'with BFD'*)
4357         test "$with_gnu_ld" != no && break
4358         ;;
4359       *)
4360         test "$with_gnu_ld" != yes && break
4361         ;;
4362       esac
4363     fi
4364   done
4365   IFS="$lt_save_ifs"
4366 else
4367   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4368 fi
4369 fi
4370
4371 LD="$lt_cv_path_LD"
4372 if test -n "$LD"; then
4373   { echo "$as_me:$LINENO: result: $LD" >&5
4374 echo "${ECHO_T}$LD" >&6; }
4375 else
4376   { echo "$as_me:$LINENO: result: no" >&5
4377 echo "${ECHO_T}no" >&6; }
4378 fi
4379 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4380 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4381    { (exit 1); exit 1; }; }
4382 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4383 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4384 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4385   echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4388 case `$LD -v 2>&1 </dev/null` in
4389 *GNU* | *'with BFD'*)
4390   lt_cv_prog_gnu_ld=yes
4391   ;;
4392 *)
4393   lt_cv_prog_gnu_ld=no
4394   ;;
4395 esac
4396 fi
4397 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4398 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4399 with_gnu_ld=$lt_cv_prog_gnu_ld
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4410 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4411 if test "${lt_cv_path_NM+set}" = set; then
4412   echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414   if test -n "$NM"; then
4415   # Let the user override the test.
4416   lt_cv_path_NM="$NM"
4417 else
4418   lt_nm_to_check="${ac_tool_prefix}nm"
4419   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4420     lt_nm_to_check="$lt_nm_to_check nm"
4421   fi
4422   for lt_tmp_nm in $lt_nm_to_check; do
4423     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4424     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4425       IFS="$lt_save_ifs"
4426       test -z "$ac_dir" && ac_dir=.
4427       tmp_nm="$ac_dir/$lt_tmp_nm"
4428       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4429         # Check to see if the nm accepts a BSD-compat flag.
4430         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4431         #   nm: unknown option "B" ignored
4432         # Tru64's nm complains that /dev/null is an invalid object file
4433         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4434         */dev/null* | *'Invalid file or object type'*)
4435           lt_cv_path_NM="$tmp_nm -B"
4436           break
4437           ;;
4438         *)
4439           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4440           */dev/null*)
4441             lt_cv_path_NM="$tmp_nm -p"
4442             break
4443             ;;
4444           *)
4445             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4446             continue # so that we can try to find one that supports BSD flags
4447             ;;
4448           esac
4449           ;;
4450         esac
4451       fi
4452     done
4453     IFS="$lt_save_ifs"
4454   done
4455   : ${lt_cv_path_NM=no}
4456 fi
4457 fi
4458 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4459 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4460 if test "$lt_cv_path_NM" != "no"; then
4461   NM="$lt_cv_path_NM"
4462 else
4463   # Didn't find any BSD compatible name lister, look for dumpbin.
4464   if test -n "$ac_tool_prefix"; then
4465   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4466   do
4467     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4468 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4471 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4472   echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474   if test -n "$DUMPBIN"; then
4475   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4476 else
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480   IFS=$as_save_IFS
4481   test -z "$as_dir" && as_dir=.
4482   for ac_exec_ext in '' $ac_executable_extensions; do
4483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4484     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486     break 2
4487   fi
4488 done
4489 done
4490 IFS=$as_save_IFS
4491
4492 fi
4493 fi
4494 DUMPBIN=$ac_cv_prog_DUMPBIN
4495 if test -n "$DUMPBIN"; then
4496   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4497 echo "${ECHO_T}$DUMPBIN" >&6; }
4498 else
4499   { echo "$as_me:$LINENO: result: no" >&5
4500 echo "${ECHO_T}no" >&6; }
4501 fi
4502
4503
4504     test -n "$DUMPBIN" && break
4505   done
4506 fi
4507 if test -z "$DUMPBIN"; then
4508   ac_ct_DUMPBIN=$DUMPBIN
4509   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4510 do
4511   # Extract the first word of "$ac_prog", so it can be a program name with args.
4512 set dummy $ac_prog; ac_word=$2
4513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4515 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4516   echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518   if test -n "$ac_ct_DUMPBIN"; then
4519   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524   IFS=$as_save_IFS
4525   test -z "$as_dir" && as_dir=.
4526   for ac_exec_ext in '' $ac_executable_extensions; do
4527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530     break 2
4531   fi
4532 done
4533 done
4534 IFS=$as_save_IFS
4535
4536 fi
4537 fi
4538 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4539 if test -n "$ac_ct_DUMPBIN"; then
4540   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4541 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4542 else
4543   { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }
4545 fi
4546
4547
4548   test -n "$ac_ct_DUMPBIN" && break
4549 done
4550
4551   if test "x$ac_ct_DUMPBIN" = x; then
4552     DUMPBIN=":"
4553   else
4554     case $cross_compiling:$ac_tool_warned in
4555 yes:)
4556 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4557 whose name does not start with the host triplet.  If you think this
4558 configuration is useful to you, please write to autoconf@gnu.org." >&5
4559 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4560 whose name does not start with the host triplet.  If you think this
4561 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4562 ac_tool_warned=yes ;;
4563 esac
4564     DUMPBIN=$ac_ct_DUMPBIN
4565   fi
4566 fi
4567
4568
4569   if test "$DUMPBIN" != ":"; then
4570     NM="$DUMPBIN"
4571   fi
4572 fi
4573 test -z "$NM" && NM=nm
4574
4575
4576
4577
4578
4579
4580 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4581 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4582 if test "${lt_cv_nm_interface+set}" = set; then
4583   echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585   lt_cv_nm_interface="BSD nm"
4586   echo "int some_variable = 0;" > conftest.$ac_ext
4587   (eval echo "\"\$as_me:4587: $ac_compile\"" >&5)
4588   (eval "$ac_compile" 2>conftest.err)
4589   cat conftest.err >&5
4590   (eval echo "\"\$as_me:4590: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4591   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4592   cat conftest.err >&5
4593   (eval echo "\"\$as_me:4593: output\"" >&5)
4594   cat conftest.out >&5
4595   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4596     lt_cv_nm_interface="MS dumpbin"
4597   fi
4598   rm -f conftest*
4599 fi
4600 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4601 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4602
4603 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4604 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4605 LN_S=$as_ln_s
4606 if test "$LN_S" = "ln -s"; then
4607   { echo "$as_me:$LINENO: result: yes" >&5
4608 echo "${ECHO_T}yes" >&6; }
4609 else
4610   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4611 echo "${ECHO_T}no, using $LN_S" >&6; }
4612 fi
4613
4614 # find the maximum length of command line arguments
4615 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4616 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4617 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4618   echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620     i=0
4621   teststring="ABCD"
4622
4623   case $build_os in
4624   msdosdjgpp*)
4625     # On DJGPP, this test can blow up pretty badly due to problems in libc
4626     # (any single argument exceeding 2000 bytes causes a buffer overrun
4627     # during glob expansion).  Even if it were fixed, the result of this
4628     # check would be larger than it should be.
4629     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4630     ;;
4631
4632   gnu*)
4633     # Under GNU Hurd, this test is not required because there is
4634     # no limit to the length of command line arguments.
4635     # Libtool will interpret -1 as no limit whatsoever
4636     lt_cv_sys_max_cmd_len=-1;
4637     ;;
4638
4639   cygwin* | mingw*)
4640     # On Win9x/ME, this test blows up -- it succeeds, but takes
4641     # about 5 minutes as the teststring grows exponentially.
4642     # Worse, since 9x/ME are not pre-emptively multitasking,
4643     # you end up with a "frozen" computer, even though with patience
4644     # the test eventually succeeds (with a max line length of 256k).
4645     # Instead, let's just punt: use the minimum linelength reported by
4646     # all of the supported platforms: 8192 (on NT/2K/XP).
4647     lt_cv_sys_max_cmd_len=8192;
4648     ;;
4649
4650   amigaos*)
4651     # On AmigaOS with pdksh, this test takes hours, literally.
4652     # So we just punt and use a minimum line length of 8192.
4653     lt_cv_sys_max_cmd_len=8192;
4654     ;;
4655
4656   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4657     # This has been around since 386BSD, at least.  Likely further.
4658     if test -x /sbin/sysctl; then
4659       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4660     elif test -x /usr/sbin/sysctl; then
4661       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4662     else
4663       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4664     fi
4665     # And add a safety zone
4666     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4667     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4668     ;;
4669
4670   interix*)
4671     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4672     lt_cv_sys_max_cmd_len=196608
4673     ;;
4674
4675   osf*)
4676     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4677     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4678     # nice to cause kernel panics so lets avoid the loop below.
4679     # First set a reasonable default.
4680     lt_cv_sys_max_cmd_len=16384
4681     #
4682     if test -x /sbin/sysconfig; then
4683       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4684         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4685       esac
4686     fi
4687     ;;
4688   sco3.2v5*)
4689     lt_cv_sys_max_cmd_len=102400
4690     ;;
4691   sysv5* | sco5v6* | sysv4.2uw2*)
4692     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4693     if test -n "$kargmax"; then
4694       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4695     else
4696       lt_cv_sys_max_cmd_len=32768
4697     fi
4698     ;;
4699   *)
4700     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4701     if test -n "$lt_cv_sys_max_cmd_len"; then
4702       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4703       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4704     else
4705       # Make teststring a little bigger before we do anything with it.
4706       # a 1K string should be a reasonable start.
4707       for i in 1 2 3 4 5 6 7 8 ; do
4708         teststring=$teststring$teststring
4709       done
4710       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4711       # If test is not a shell built-in, we'll probably end up computing a
4712       # maximum length that is only half of the actual maximum length, but
4713       # we can't tell.
4714       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4715                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4716               test $i != 17 # 1/2 MB should be enough
4717       do
4718         i=`expr $i + 1`
4719         teststring=$teststring$teststring
4720       done
4721       # Only check the string length outside the loop.
4722       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4723       teststring=
4724       # Add a significant safety factor because C++ compilers can tack on
4725       # massive amounts of additional arguments before passing them to the
4726       # linker.  It appears as though 1/2 is a usable value.
4727       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4728     fi
4729     ;;
4730   esac
4731
4732 fi
4733
4734 if test -n $lt_cv_sys_max_cmd_len ; then
4735   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4736 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4737 else
4738   { echo "$as_me:$LINENO: result: none" >&5
4739 echo "${ECHO_T}none" >&6; }
4740 fi
4741 max_cmd_len=$lt_cv_sys_max_cmd_len
4742
4743
4744
4745
4746
4747
4748 : ${CP="cp -f"}
4749 : ${MV="mv -f"}
4750 : ${RM="rm -f"}
4751
4752 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4753 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4754 # Try some XSI features
4755 xsi_shell=no
4756 ( _lt_dummy="a/b/c"
4757   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4758       = c,a/b,, \
4759     && eval 'test $(( 1 + 1 )) -eq 2 \
4760     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4761   && xsi_shell=yes
4762 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4763 echo "${ECHO_T}$xsi_shell" >&6; }
4764
4765
4766 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4767 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4768 lt_shell_append=no
4769 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4770     >/dev/null 2>&1 \
4771   && lt_shell_append=yes
4772 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4773 echo "${ECHO_T}$lt_shell_append" >&6; }
4774
4775
4776 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4777   lt_unset=unset
4778 else
4779   lt_unset=false
4780 fi
4781
4782
4783
4784
4785
4786 # test EBCDIC or ASCII
4787 case `echo X|tr X '\101'` in
4788  A) # ASCII based system
4789     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4790   lt_SP2NL='tr \040 \012'
4791   lt_NL2SP='tr \015\012 \040\040'
4792   ;;
4793  *) # EBCDIC based system
4794   lt_SP2NL='tr \100 \n'
4795   lt_NL2SP='tr \r\n \100\100'
4796   ;;
4797 esac
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4808 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4809 if test "${lt_cv_ld_reload_flag+set}" = set; then
4810   echo $ECHO_N "(cached) $ECHO_C" >&6
4811 else
4812   lt_cv_ld_reload_flag='-r'
4813 fi
4814 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4815 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4816 reload_flag=$lt_cv_ld_reload_flag
4817 case $reload_flag in
4818 "" | " "*) ;;
4819 *) reload_flag=" $reload_flag" ;;
4820 esac
4821 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4822 case $host_os in
4823   darwin*)
4824     if test "$GCC" = yes; then
4825       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4826     else
4827       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4828     fi
4829     ;;
4830 esac
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4842 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4843 if test "${lt_cv_deplibs_check_method+set}" = set; then
4844   echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846   lt_cv_file_magic_cmd='$MAGIC_CMD'
4847 lt_cv_file_magic_test_file=
4848 lt_cv_deplibs_check_method='unknown'
4849 # Need to set the preceding variable on all platforms that support
4850 # interlibrary dependencies.
4851 # 'none' -- dependencies not supported.
4852 # `unknown' -- same as none, but documents that we really don't know.
4853 # 'pass_all' -- all dependencies passed with no checks.
4854 # 'test_compile' -- check by making test program.
4855 # 'file_magic [[regex]]' -- check by looking for files in library path
4856 # which responds to the $file_magic_cmd with a given extended regex.
4857 # If you have `file' or equivalent on your system and you're not sure
4858 # whether `pass_all' will *always* work, you probably want this one.
4859
4860 case $host_os in
4861 aix[4-9]*)
4862   lt_cv_deplibs_check_method=pass_all
4863   ;;
4864
4865 beos*)
4866   lt_cv_deplibs_check_method=pass_all
4867   ;;
4868
4869 bsdi[45]*)
4870   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4871   lt_cv_file_magic_cmd='/usr/bin/file -L'
4872   lt_cv_file_magic_test_file=/shlib/libc.so
4873   ;;
4874
4875 cygwin*)
4876   # func_win32_libid is a shell function defined in ltmain.sh
4877   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4878   lt_cv_file_magic_cmd='func_win32_libid'
4879   ;;
4880
4881 mingw* | pw32*)
4882   # Base MSYS/MinGW do not provide the 'file' command needed by
4883   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4884   # unless we find 'file', for example because we are cross-compiling.
4885   if ( file / ) >/dev/null 2>&1; then
4886     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4887     lt_cv_file_magic_cmd='func_win32_libid'
4888   else
4889     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4890     lt_cv_file_magic_cmd='$OBJDUMP -f'
4891   fi
4892   ;;
4893
4894 darwin* | rhapsody*)
4895   lt_cv_deplibs_check_method=pass_all
4896   ;;
4897
4898 freebsd* | dragonfly*)
4899   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4900     case $host_cpu in
4901     i*86 )
4902       # Not sure whether the presence of OpenBSD here was a mistake.
4903       # Let's accept both of them until this is cleared up.
4904       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4905       lt_cv_file_magic_cmd=/usr/bin/file
4906       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4907       ;;
4908     esac
4909   else
4910     lt_cv_deplibs_check_method=pass_all
4911   fi
4912   ;;
4913
4914 gnu*)
4915   lt_cv_deplibs_check_method=pass_all
4916   ;;
4917
4918 hpux10.20* | hpux11*)
4919   lt_cv_file_magic_cmd=/usr/bin/file
4920   case $host_cpu in
4921   ia64*)
4922     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4923     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4924     ;;
4925   hppa*64*)
4926     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]'
4927     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4928     ;;
4929   *)
4930     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4931     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4932     ;;
4933   esac
4934   ;;
4935
4936 interix[3-9]*)
4937   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4938   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4939   ;;
4940
4941 irix5* | irix6* | nonstopux*)
4942   case $LD in
4943   *-32|*"-32 ") libmagic=32-bit;;
4944   *-n32|*"-n32 ") libmagic=N32;;
4945   *-64|*"-64 ") libmagic=64-bit;;
4946   *) libmagic=never-match;;
4947   esac
4948   lt_cv_deplibs_check_method=pass_all
4949   ;;
4950
4951 # This must be Linux ELF.
4952 linux* | k*bsd*-gnu)
4953   lt_cv_deplibs_check_method=pass_all
4954   ;;
4955
4956 netbsd*)
4957   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4958     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4959   else
4960     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4961   fi
4962   ;;
4963
4964 newos6*)
4965   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4966   lt_cv_file_magic_cmd=/usr/bin/file
4967   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4968   ;;
4969
4970 *nto* | *qnx*)
4971   lt_cv_deplibs_check_method=pass_all
4972   ;;
4973
4974 openbsd*)
4975   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4976     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4977   else
4978     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4979   fi
4980   ;;
4981
4982 osf3* | osf4* | osf5*)
4983   lt_cv_deplibs_check_method=pass_all
4984   ;;
4985
4986 rdos*)
4987   lt_cv_deplibs_check_method=pass_all
4988   ;;
4989
4990 solaris*)
4991   lt_cv_deplibs_check_method=pass_all
4992   ;;
4993
4994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4995   lt_cv_deplibs_check_method=pass_all
4996   ;;
4997
4998 sysv4 | sysv4.3*)
4999   case $host_vendor in
5000   motorola)
5001     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]'
5002     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5003     ;;
5004   ncr)
5005     lt_cv_deplibs_check_method=pass_all
5006     ;;
5007   sequent)
5008     lt_cv_file_magic_cmd='/bin/file'
5009     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5010     ;;
5011   sni)
5012     lt_cv_file_magic_cmd='/bin/file'
5013     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5014     lt_cv_file_magic_test_file=/lib/libc.so
5015     ;;
5016   siemens)
5017     lt_cv_deplibs_check_method=pass_all
5018     ;;
5019   pc)
5020     lt_cv_deplibs_check_method=pass_all
5021     ;;
5022   esac
5023   ;;
5024
5025 tpf*)
5026   lt_cv_deplibs_check_method=pass_all
5027   ;;
5028 esac
5029
5030 fi
5031 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5032 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5033 file_magic_cmd=$lt_cv_file_magic_cmd
5034 deplibs_check_method=$lt_cv_deplibs_check_method
5035 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048 if test -n "$ac_tool_prefix"; then
5049   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5050 set dummy ${ac_tool_prefix}ar; ac_word=$2
5051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5053 if test "${ac_cv_prog_AR+set}" = set; then
5054   echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056   if test -n "$AR"; then
5057   ac_cv_prog_AR="$AR" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062   IFS=$as_save_IFS
5063   test -z "$as_dir" && as_dir=.
5064   for ac_exec_ext in '' $ac_executable_extensions; do
5065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066     ac_cv_prog_AR="${ac_tool_prefix}ar"
5067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5068     break 2
5069   fi
5070 done
5071 done
5072 IFS=$as_save_IFS
5073
5074 fi
5075 fi
5076 AR=$ac_cv_prog_AR
5077 if test -n "$AR"; then
5078   { echo "$as_me:$LINENO: result: $AR" >&5
5079 echo "${ECHO_T}$AR" >&6; }
5080 else
5081   { echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6; }
5083 fi
5084
5085
5086 fi
5087 if test -z "$ac_cv_prog_AR"; then
5088   ac_ct_AR=$AR
5089   # Extract the first word of "ar", so it can be a program name with args.
5090 set dummy ar; ac_word=$2
5091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5093 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5094   echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096   if test -n "$ac_ct_AR"; then
5097   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102   IFS=$as_save_IFS
5103   test -z "$as_dir" && as_dir=.
5104   for ac_exec_ext in '' $ac_executable_extensions; do
5105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5106     ac_cv_prog_ac_ct_AR="ar"
5107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5108     break 2
5109   fi
5110 done
5111 done
5112 IFS=$as_save_IFS
5113
5114 fi
5115 fi
5116 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5117 if test -n "$ac_ct_AR"; then
5118   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5119 echo "${ECHO_T}$ac_ct_AR" >&6; }
5120 else
5121   { echo "$as_me:$LINENO: result: no" >&5
5122 echo "${ECHO_T}no" >&6; }
5123 fi
5124
5125   if test "x$ac_ct_AR" = x; then
5126     AR="false"
5127   else
5128     case $cross_compiling:$ac_tool_warned in
5129 yes:)
5130 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5131 whose name does not start with the host triplet.  If you think this
5132 configuration is useful to you, please write to autoconf@gnu.org." >&5
5133 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5134 whose name does not start with the host triplet.  If you think this
5135 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5136 ac_tool_warned=yes ;;
5137 esac
5138     AR=$ac_ct_AR
5139   fi
5140 else
5141   AR="$ac_cv_prog_AR"
5142 fi
5143
5144 test -z "$AR" && AR=ar
5145 test -z "$AR_FLAGS" && AR_FLAGS=cru
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157 if test -n "$ac_tool_prefix"; then
5158   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5159 set dummy ${ac_tool_prefix}strip; ac_word=$2
5160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5162 if test "${ac_cv_prog_STRIP+set}" = set; then
5163   echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165   if test -n "$STRIP"; then
5166   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171   IFS=$as_save_IFS
5172   test -z "$as_dir" && as_dir=.
5173   for ac_exec_ext in '' $ac_executable_extensions; do
5174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177     break 2
5178   fi
5179 done
5180 done
5181 IFS=$as_save_IFS
5182
5183 fi
5184 fi
5185 STRIP=$ac_cv_prog_STRIP
5186 if test -n "$STRIP"; then
5187   { echo "$as_me:$LINENO: result: $STRIP" >&5
5188 echo "${ECHO_T}$STRIP" >&6; }
5189 else
5190   { echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6; }
5192 fi
5193
5194
5195 fi
5196 if test -z "$ac_cv_prog_STRIP"; then
5197   ac_ct_STRIP=$STRIP
5198   # Extract the first word of "strip", so it can be a program name with args.
5199 set dummy strip; ac_word=$2
5200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5202 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5203   echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205   if test -n "$ac_ct_STRIP"; then
5206   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211   IFS=$as_save_IFS
5212   test -z "$as_dir" && as_dir=.
5213   for ac_exec_ext in '' $ac_executable_extensions; do
5214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215     ac_cv_prog_ac_ct_STRIP="strip"
5216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217     break 2
5218   fi
5219 done
5220 done
5221 IFS=$as_save_IFS
5222
5223 fi
5224 fi
5225 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5226 if test -n "$ac_ct_STRIP"; then
5227   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5228 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5229 else
5230   { echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6; }
5232 fi
5233
5234   if test "x$ac_ct_STRIP" = x; then
5235     STRIP=":"
5236   else
5237     case $cross_compiling:$ac_tool_warned in
5238 yes:)
5239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5240 whose name does not start with the host triplet.  If you think this
5241 configuration is useful to you, please write to autoconf@gnu.org." >&5
5242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5243 whose name does not start with the host triplet.  If you think this
5244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5245 ac_tool_warned=yes ;;
5246 esac
5247     STRIP=$ac_ct_STRIP
5248   fi
5249 else
5250   STRIP="$ac_cv_prog_STRIP"
5251 fi
5252
5253 test -z "$STRIP" && STRIP=:
5254
5255
5256
5257
5258
5259
5260 if test -n "$ac_tool_prefix"; then
5261   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5262 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5265 if test "${ac_cv_prog_RANLIB+set}" = set; then
5266   echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268   if test -n "$RANLIB"; then
5269   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5270 else
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274   IFS=$as_save_IFS
5275   test -z "$as_dir" && as_dir=.
5276   for ac_exec_ext in '' $ac_executable_extensions; do
5277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5278     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5280     break 2
5281   fi
5282 done
5283 done
5284 IFS=$as_save_IFS
5285
5286 fi
5287 fi
5288 RANLIB=$ac_cv_prog_RANLIB
5289 if test -n "$RANLIB"; then
5290   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5291 echo "${ECHO_T}$RANLIB" >&6; }
5292 else
5293   { echo "$as_me:$LINENO: result: no" >&5
5294 echo "${ECHO_T}no" >&6; }
5295 fi
5296
5297
5298 fi
5299 if test -z "$ac_cv_prog_RANLIB"; then
5300   ac_ct_RANLIB=$RANLIB
5301   # Extract the first word of "ranlib", so it can be a program name with args.
5302 set dummy ranlib; ac_word=$2
5303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5305 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5306   echo $ECHO_N "(cached) $ECHO_C" >&6
5307 else
5308   if test -n "$ac_ct_RANLIB"; then
5309   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5310 else
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5313 do
5314   IFS=$as_save_IFS
5315   test -z "$as_dir" && as_dir=.
5316   for ac_exec_ext in '' $ac_executable_extensions; do
5317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5318     ac_cv_prog_ac_ct_RANLIB="ranlib"
5319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320     break 2
5321   fi
5322 done
5323 done
5324 IFS=$as_save_IFS
5325
5326 fi
5327 fi
5328 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5329 if test -n "$ac_ct_RANLIB"; then
5330   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5331 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5332 else
5333   { echo "$as_me:$LINENO: result: no" >&5
5334 echo "${ECHO_T}no" >&6; }
5335 fi
5336
5337   if test "x$ac_ct_RANLIB" = x; then
5338     RANLIB=":"
5339   else
5340     case $cross_compiling:$ac_tool_warned in
5341 yes:)
5342 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5343 whose name does not start with the host triplet.  If you think this
5344 configuration is useful to you, please write to autoconf@gnu.org." >&5
5345 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5346 whose name does not start with the host triplet.  If you think this
5347 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5348 ac_tool_warned=yes ;;
5349 esac
5350     RANLIB=$ac_ct_RANLIB
5351   fi
5352 else
5353   RANLIB="$ac_cv_prog_RANLIB"
5354 fi
5355
5356 test -z "$RANLIB" && RANLIB=:
5357
5358
5359
5360
5361
5362
5363 # Determine commands to create old-style static archives.
5364 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5365 old_postinstall_cmds='chmod 644 $oldlib'
5366 old_postuninstall_cmds=
5367
5368 if test -n "$RANLIB"; then
5369   case $host_os in
5370   openbsd*)
5371     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5372     ;;
5373   *)
5374     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5375     ;;
5376   esac
5377   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5378 fi
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
5411
5412
5413 # If no C compiler was specified, use CC.
5414 LTCC=${LTCC-"$CC"}
5415
5416 # If no C compiler flags were specified, use CFLAGS.
5417 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5418
5419 # Allow CC to be a program name with arguments.
5420 compiler=$CC
5421
5422
5423 # Check for command to grab the raw symbol name followed by C symbol from nm.
5424 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5425 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5426 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5427   echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429
5430 # These are sane defaults that work on at least a few old systems.
5431 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5432
5433 # Character class describing NM global symbol codes.
5434 symcode='[BCDEGRST]'
5435
5436 # Regexp to match symbols that can be accessed directly from C.
5437 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5438
5439 # Define system-specific variables.
5440 case $host_os in
5441 aix*)
5442   symcode='[BCDT]'
5443   ;;
5444 cygwin* | mingw* | pw32*)
5445   symcode='[ABCDGISTW]'
5446   ;;
5447 hpux*)
5448   if test "$host_cpu" = ia64; then
5449     symcode='[ABCDEGRST]'
5450   fi
5451   ;;
5452 irix* | nonstopux*)
5453   symcode='[BCDEGRST]'
5454   ;;
5455 osf*)
5456   symcode='[BCDEGQRST]'
5457   ;;
5458 solaris*)
5459   symcode='[BDRT]'
5460   ;;
5461 sco3.2v5*)
5462   symcode='[DT]'
5463   ;;
5464 sysv4.2uw2*)
5465   symcode='[DT]'
5466   ;;
5467 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5468   symcode='[ABDT]'
5469   ;;
5470 sysv4)
5471   symcode='[DFNSTU]'
5472   ;;
5473 esac
5474
5475 # If we're using GNU nm, then use its standard symbol codes.
5476 case `$NM -V 2>&1` in
5477 *GNU* | *'with BFD'*)
5478   symcode='[ABCDGIRSTW]' ;;
5479 esac
5480
5481 # Transform an extracted symbol line into a proper C declaration.
5482 # Some systems (esp. on ia64) link data and code symbols differently,
5483 # so use this general approach.
5484 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5485
5486 # Transform an extracted symbol line into symbol name and symbol address
5487 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5488 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'"
5489
5490 # Handle CRLF in mingw tool chain
5491 opt_cr=
5492 case $build_os in
5493 mingw*)
5494   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5495   ;;
5496 esac
5497
5498 # Try without a prefix underscore, then with it.
5499 for ac_symprfx in "" "_"; do
5500
5501   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5502   symxfrm="\\1 $ac_symprfx\\2 \\2"
5503
5504   # Write the raw and C identifiers.
5505   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5506     # Fake it for dumpbin and say T for any non-static function
5507     # and D for any global variable.
5508     # Also find C++ and __fastcall symbols from MSVC++,
5509     # which start with @ or ?.
5510     lt_cv_sys_global_symbol_pipe="$AWK '"\
5511 "     {last_section=section; section=\$ 3};"\
5512 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5513 "     \$ 0!~/External *\|/{next};"\
5514 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5515 "     {if(hide[section]) next};"\
5516 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5517 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5518 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5519 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5520 "     ' prfx=^$ac_symprfx"
5521   else
5522     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5523   fi
5524
5525   # Check to see that the pipe works correctly.
5526   pipe_works=no
5527
5528   rm -f conftest*
5529   cat > conftest.$ac_ext <<_LT_EOF
5530 #ifdef __cplusplus
5531 extern "C" {
5532 #endif
5533 char nm_test_var;
5534 void nm_test_func(void);
5535 void nm_test_func(void){}
5536 #ifdef __cplusplus
5537 }
5538 #endif
5539 int main(){nm_test_var='a';nm_test_func();return(0);}
5540 _LT_EOF
5541
5542   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5543   (eval $ac_compile) 2>&5
5544   ac_status=$?
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); }; then
5547     # Now try to grab the symbols.
5548     nlist=conftest.nm
5549     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5550   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5551   ac_status=$?
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); } && test -s "$nlist"; then
5554       # Try sorting and uniquifying the output.
5555       if sort "$nlist" | uniq > "$nlist"T; then
5556         mv -f "$nlist"T "$nlist"
5557       else
5558         rm -f "$nlist"T
5559       fi
5560
5561       # Make sure that we snagged all the symbols we need.
5562       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5563         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5564           cat <<_LT_EOF > conftest.$ac_ext
5565 #ifdef __cplusplus
5566 extern "C" {
5567 #endif
5568
5569 _LT_EOF
5570           # Now generate the symbol file.
5571           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5572
5573           cat <<_LT_EOF >> conftest.$ac_ext
5574
5575 /* The mapping between symbol names and symbols.  */
5576 const struct {
5577   const char *name;
5578   void       *address;
5579 }
5580 lt__PROGRAM__LTX_preloaded_symbols[] =
5581 {
5582   { "@PROGRAM@", (void *) 0 },
5583 _LT_EOF
5584           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5585           cat <<\_LT_EOF >> conftest.$ac_ext
5586   {0, (void *) 0}
5587 };
5588
5589 /* This works around a problem in FreeBSD linker */
5590 #ifdef FREEBSD_WORKAROUND
5591 static const void *lt_preloaded_setup() {
5592   return lt__PROGRAM__LTX_preloaded_symbols;
5593 }
5594 #endif
5595
5596 #ifdef __cplusplus
5597 }
5598 #endif
5599 _LT_EOF
5600           # Now try linking the two files.
5601           mv conftest.$ac_objext conftstm.$ac_objext
5602           lt_save_LIBS="$LIBS"
5603           lt_save_CFLAGS="$CFLAGS"
5604           LIBS="conftstm.$ac_objext"
5605           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5606           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5607   (eval $ac_link) 2>&5
5608   ac_status=$?
5609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5611             pipe_works=yes
5612           fi
5613           LIBS="$lt_save_LIBS"
5614           CFLAGS="$lt_save_CFLAGS"
5615         else
5616           echo "cannot find nm_test_func in $nlist" >&5
5617         fi
5618       else
5619         echo "cannot find nm_test_var in $nlist" >&5
5620       fi
5621     else
5622       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5623     fi
5624   else
5625     echo "$progname: failed program was:" >&5
5626     cat conftest.$ac_ext >&5
5627   fi
5628   rm -rf conftest* conftst*
5629
5630   # Do not use the global_symbol_pipe unless it works.
5631   if test "$pipe_works" = yes; then
5632     break
5633   else
5634     lt_cv_sys_global_symbol_pipe=
5635   fi
5636 done
5637
5638 fi
5639
5640 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5641   lt_cv_sys_global_symbol_to_cdecl=
5642 fi
5643 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5644   { echo "$as_me:$LINENO: result: failed" >&5
5645 echo "${ECHO_T}failed" >&6; }
5646 else
5647   { echo "$as_me:$LINENO: result: ok" >&5
5648 echo "${ECHO_T}ok" >&6; }
5649 fi
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673 # Check whether --enable-libtool-lock was given.
5674 if test "${enable_libtool_lock+set}" = set; then
5675   enableval=$enable_libtool_lock;
5676 fi
5677
5678 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5679
5680 # Some flags need to be propagated to the compiler or linker for good
5681 # libtool support.
5682 case $host in
5683 ia64-*-hpux*)
5684   # Find out which ABI we are using.
5685   echo 'int i;' > conftest.$ac_ext
5686   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5687   (eval $ac_compile) 2>&5
5688   ac_status=$?
5689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690   (exit $ac_status); }; then
5691     case `/usr/bin/file conftest.$ac_objext` in
5692       *ELF-32*)
5693         HPUX_IA64_MODE="32"
5694         ;;
5695       *ELF-64*)
5696         HPUX_IA64_MODE="64"
5697         ;;
5698     esac
5699   fi
5700   rm -rf conftest*
5701   ;;
5702 *-*-irix6*)
5703   # Find out which ABI we are using.
5704   echo '#line 5704 "configure"' > conftest.$ac_ext
5705   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706   (eval $ac_compile) 2>&5
5707   ac_status=$?
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); }; then
5710     if test "$lt_cv_prog_gnu_ld" = yes; then
5711       case `/usr/bin/file conftest.$ac_objext` in
5712         *32-bit*)
5713           LD="${LD-ld} -melf32bsmip"
5714           ;;
5715         *N32*)
5716           LD="${LD-ld} -melf32bmipn32"
5717           ;;
5718         *64-bit*)
5719           LD="${LD-ld} -melf64bmip"
5720         ;;
5721       esac
5722     else
5723       case `/usr/bin/file conftest.$ac_objext` in
5724         *32-bit*)
5725           LD="${LD-ld} -32"
5726           ;;
5727         *N32*)
5728           LD="${LD-ld} -n32"
5729           ;;
5730         *64-bit*)
5731           LD="${LD-ld} -64"
5732           ;;
5733       esac
5734     fi
5735   fi
5736   rm -rf conftest*
5737   ;;
5738
5739 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5740 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5741   # Find out which ABI we are using.
5742   echo 'int i;' > conftest.$ac_ext
5743   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5744   (eval $ac_compile) 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); }; then
5748     case `/usr/bin/file conftest.o` in
5749       *32-bit*)
5750         case $host in
5751           x86_64-*kfreebsd*-gnu)
5752             LD="${LD-ld} -m elf_i386_fbsd"
5753             ;;
5754           x86_64-*linux*)
5755             LD="${LD-ld} -m elf_i386"
5756             ;;
5757           ppc64-*linux*|powerpc64-*linux*)
5758             LD="${LD-ld} -m elf32ppclinux"
5759             ;;
5760           s390x-*linux*)
5761             LD="${LD-ld} -m elf_s390"
5762             ;;
5763           sparc64-*linux*)
5764             LD="${LD-ld} -m elf32_sparc"
5765             ;;
5766         esac
5767         ;;
5768       *64-bit*)
5769         case $host in
5770           x86_64-*kfreebsd*-gnu)
5771             LD="${LD-ld} -m elf_x86_64_fbsd"
5772             ;;
5773           x86_64-*linux*)
5774             LD="${LD-ld} -m elf_x86_64"
5775             ;;
5776           ppc*-*linux*|powerpc*-*linux*)
5777             LD="${LD-ld} -m elf64ppc"
5778             ;;
5779           s390*-*linux*|s390*-*tpf*)
5780             LD="${LD-ld} -m elf64_s390"
5781             ;;
5782           sparc*-*linux*)
5783             LD="${LD-ld} -m elf64_sparc"
5784             ;;
5785         esac
5786         ;;
5787     esac
5788   fi
5789   rm -rf conftest*
5790   ;;
5791
5792 *-*-sco3.2v5*)
5793   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5794   SAVE_CFLAGS="$CFLAGS"
5795   CFLAGS="$CFLAGS -belf"
5796   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5797 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5798 if test "${lt_cv_cc_needs_belf+set}" = set; then
5799   echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801   ac_ext=c
5802 ac_cpp='$CPP $CPPFLAGS'
5803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5806
5807      cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h.  */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h.  */
5813
5814 int
5815 main ()
5816 {
5817
5818   ;
5819   return 0;
5820 }
5821 _ACEOF
5822 rm -f conftest.$ac_objext conftest$ac_exeext
5823 if { (ac_try="$ac_link"
5824 case "(($ac_try" in
5825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826   *) ac_try_echo=$ac_try;;
5827 esac
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829   (eval "$ac_link") 2>conftest.er1
5830   ac_status=$?
5831   grep -v '^ *+' conftest.er1 >conftest.err
5832   rm -f conftest.er1
5833   cat conftest.err >&5
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); } && {
5836          test -z "$ac_c_werror_flag" ||
5837          test ! -s conftest.err
5838        } && test -s conftest$ac_exeext &&
5839        $as_test_x conftest$ac_exeext; then
5840   lt_cv_cc_needs_belf=yes
5841 else
5842   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 -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5849       conftest$ac_exeext conftest.$ac_ext
5850      ac_ext=c
5851 ac_cpp='$CPP $CPPFLAGS'
5852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5855
5856 fi
5857 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5858 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5859   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5860     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5861     CFLAGS="$SAVE_CFLAGS"
5862   fi
5863   ;;
5864 sparc*-*solaris*)
5865   # Find out which ABI we are using.
5866   echo 'int i;' > conftest.$ac_ext
5867   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868   (eval $ac_compile) 2>&5
5869   ac_status=$?
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); }; then
5872     case `/usr/bin/file conftest.o` in
5873     *64-bit*)
5874       case $lt_cv_prog_gnu_ld in
5875       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5876       *)
5877         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5878           LD="${LD-ld} -64"
5879         fi
5880         ;;
5881       esac
5882       ;;
5883     esac
5884   fi
5885   rm -rf conftest*
5886   ;;
5887 esac
5888
5889 need_locks="$enable_libtool_lock"
5890
5891
5892   case $host_os in
5893     rhapsody* | darwin*)
5894     if test -n "$ac_tool_prefix"; then
5895   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5896 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5899 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5900   echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902   if test -n "$DSYMUTIL"; then
5903   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5907 do
5908   IFS=$as_save_IFS
5909   test -z "$as_dir" && as_dir=.
5910   for ac_exec_ext in '' $ac_executable_extensions; do
5911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5912     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914     break 2
5915   fi
5916 done
5917 done
5918 IFS=$as_save_IFS
5919
5920 fi
5921 fi
5922 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5923 if test -n "$DSYMUTIL"; then
5924   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5925 echo "${ECHO_T}$DSYMUTIL" >&6; }
5926 else
5927   { echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6; }
5929 fi
5930
5931
5932 fi
5933 if test -z "$ac_cv_prog_DSYMUTIL"; then
5934   ac_ct_DSYMUTIL=$DSYMUTIL
5935   # Extract the first word of "dsymutil", so it can be a program name with args.
5936 set dummy dsymutil; ac_word=$2
5937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5939 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5940   echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942   if test -n "$ac_ct_DSYMUTIL"; then
5943   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5944 else
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 for as_dir in $PATH
5947 do
5948   IFS=$as_save_IFS
5949   test -z "$as_dir" && as_dir=.
5950   for ac_exec_ext in '' $ac_executable_extensions; do
5951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954     break 2
5955   fi
5956 done
5957 done
5958 IFS=$as_save_IFS
5959
5960 fi
5961 fi
5962 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5963 if test -n "$ac_ct_DSYMUTIL"; then
5964   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5965 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5966 else
5967   { echo "$as_me:$LINENO: result: no" >&5
5968 echo "${ECHO_T}no" >&6; }
5969 fi
5970
5971   if test "x$ac_ct_DSYMUTIL" = x; then
5972     DSYMUTIL=":"
5973   else
5974     case $cross_compiling:$ac_tool_warned in
5975 yes:)
5976 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5977 whose name does not start with the host triplet.  If you think this
5978 configuration is useful to you, please write to autoconf@gnu.org." >&5
5979 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5980 whose name does not start with the host triplet.  If you think this
5981 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5982 ac_tool_warned=yes ;;
5983 esac
5984     DSYMUTIL=$ac_ct_DSYMUTIL
5985   fi
5986 else
5987   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5988 fi
5989
5990     if test -n "$ac_tool_prefix"; then
5991   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5992 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5995 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5996   echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998   if test -n "$NMEDIT"; then
5999   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6003 do
6004   IFS=$as_save_IFS
6005   test -z "$as_dir" && as_dir=.
6006   for ac_exec_ext in '' $ac_executable_extensions; do
6007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6008     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010     break 2
6011   fi
6012 done
6013 done
6014 IFS=$as_save_IFS
6015
6016 fi
6017 fi
6018 NMEDIT=$ac_cv_prog_NMEDIT
6019 if test -n "$NMEDIT"; then
6020   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6021 echo "${ECHO_T}$NMEDIT" >&6; }
6022 else
6023   { echo "$as_me:$LINENO: result: no" >&5
6024 echo "${ECHO_T}no" >&6; }
6025 fi
6026
6027
6028 fi
6029 if test -z "$ac_cv_prog_NMEDIT"; then
6030   ac_ct_NMEDIT=$NMEDIT
6031   # Extract the first word of "nmedit", so it can be a program name with args.
6032 set dummy nmedit; ac_word=$2
6033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6036   echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038   if test -n "$ac_ct_NMEDIT"; then
6039   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6043 do
6044   IFS=$as_save_IFS
6045   test -z "$as_dir" && as_dir=.
6046   for ac_exec_ext in '' $ac_executable_extensions; do
6047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050     break 2
6051   fi
6052 done
6053 done
6054 IFS=$as_save_IFS
6055
6056 fi
6057 fi
6058 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6059 if test -n "$ac_ct_NMEDIT"; then
6060   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6061 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6062 else
6063   { echo "$as_me:$LINENO: result: no" >&5
6064 echo "${ECHO_T}no" >&6; }
6065 fi
6066
6067   if test "x$ac_ct_NMEDIT" = x; then
6068     NMEDIT=":"
6069   else
6070     case $cross_compiling:$ac_tool_warned in
6071 yes:)
6072 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6073 whose name does not start with the host triplet.  If you think this
6074 configuration is useful to you, please write to autoconf@gnu.org." >&5
6075 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6076 whose name does not start with the host triplet.  If you think this
6077 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6078 ac_tool_warned=yes ;;
6079 esac
6080     NMEDIT=$ac_ct_NMEDIT
6081   fi
6082 else
6083   NMEDIT="$ac_cv_prog_NMEDIT"
6084 fi
6085
6086     if test -n "$ac_tool_prefix"; then
6087   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6088 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091 if test "${ac_cv_prog_LIPO+set}" = set; then
6092   echo $ECHO_N "(cached) $ECHO_C" >&6
6093 else
6094   if test -n "$LIPO"; then
6095   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100   IFS=$as_save_IFS
6101   test -z "$as_dir" && as_dir=.
6102   for ac_exec_ext in '' $ac_executable_extensions; do
6103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106     break 2
6107   fi
6108 done
6109 done
6110 IFS=$as_save_IFS
6111
6112 fi
6113 fi
6114 LIPO=$ac_cv_prog_LIPO
6115 if test -n "$LIPO"; then
6116   { echo "$as_me:$LINENO: result: $LIPO" >&5
6117 echo "${ECHO_T}$LIPO" >&6; }
6118 else
6119   { echo "$as_me:$LINENO: result: no" >&5
6120 echo "${ECHO_T}no" >&6; }
6121 fi
6122
6123
6124 fi
6125 if test -z "$ac_cv_prog_LIPO"; then
6126   ac_ct_LIPO=$LIPO
6127   # Extract the first word of "lipo", so it can be a program name with args.
6128 set dummy lipo; ac_word=$2
6129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6131 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6132   echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134   if test -n "$ac_ct_LIPO"; then
6135   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140   IFS=$as_save_IFS
6141   test -z "$as_dir" && as_dir=.
6142   for ac_exec_ext in '' $ac_executable_extensions; do
6143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144     ac_cv_prog_ac_ct_LIPO="lipo"
6145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146     break 2
6147   fi
6148 done
6149 done
6150 IFS=$as_save_IFS
6151
6152 fi
6153 fi
6154 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6155 if test -n "$ac_ct_LIPO"; then
6156   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6157 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6158 else
6159   { echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6; }
6161 fi
6162
6163   if test "x$ac_ct_LIPO" = x; then
6164     LIPO=":"
6165   else
6166     case $cross_compiling:$ac_tool_warned in
6167 yes:)
6168 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6169 whose name does not start with the host triplet.  If you think this
6170 configuration is useful to you, please write to autoconf@gnu.org." >&5
6171 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6172 whose name does not start with the host triplet.  If you think this
6173 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6174 ac_tool_warned=yes ;;
6175 esac
6176     LIPO=$ac_ct_LIPO
6177   fi
6178 else
6179   LIPO="$ac_cv_prog_LIPO"
6180 fi
6181
6182     if test -n "$ac_tool_prefix"; then
6183   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6184 set dummy ${ac_tool_prefix}otool; ac_word=$2
6185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6187 if test "${ac_cv_prog_OTOOL+set}" = set; then
6188   echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190   if test -n "$OTOOL"; then
6191   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6195 do
6196   IFS=$as_save_IFS
6197   test -z "$as_dir" && as_dir=.
6198   for ac_exec_ext in '' $ac_executable_extensions; do
6199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202     break 2
6203   fi
6204 done
6205 done
6206 IFS=$as_save_IFS
6207
6208 fi
6209 fi
6210 OTOOL=$ac_cv_prog_OTOOL
6211 if test -n "$OTOOL"; then
6212   { echo "$as_me:$LINENO: result: $OTOOL" >&5
6213 echo "${ECHO_T}$OTOOL" >&6; }
6214 else
6215   { echo "$as_me:$LINENO: result: no" >&5
6216 echo "${ECHO_T}no" >&6; }
6217 fi
6218
6219
6220 fi
6221 if test -z "$ac_cv_prog_OTOOL"; then
6222   ac_ct_OTOOL=$OTOOL
6223   # Extract the first word of "otool", so it can be a program name with args.
6224 set dummy otool; ac_word=$2
6225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6227 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230   if test -n "$ac_ct_OTOOL"; then
6231   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6232 else
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH
6235 do
6236   IFS=$as_save_IFS
6237   test -z "$as_dir" && as_dir=.
6238   for ac_exec_ext in '' $ac_executable_extensions; do
6239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6240     ac_cv_prog_ac_ct_OTOOL="otool"
6241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6242     break 2
6243   fi
6244 done
6245 done
6246 IFS=$as_save_IFS
6247
6248 fi
6249 fi
6250 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6251 if test -n "$ac_ct_OTOOL"; then
6252   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6253 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6254 else
6255   { echo "$as_me:$LINENO: result: no" >&5
6256 echo "${ECHO_T}no" >&6; }
6257 fi
6258
6259   if test "x$ac_ct_OTOOL" = x; then
6260     OTOOL=":"
6261   else
6262     case $cross_compiling:$ac_tool_warned in
6263 yes:)
6264 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6265 whose name does not start with the host triplet.  If you think this
6266 configuration is useful to you, please write to autoconf@gnu.org." >&5
6267 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6268 whose name does not start with the host triplet.  If you think this
6269 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6270 ac_tool_warned=yes ;;
6271 esac
6272     OTOOL=$ac_ct_OTOOL
6273   fi
6274 else
6275   OTOOL="$ac_cv_prog_OTOOL"
6276 fi
6277
6278     if test -n "$ac_tool_prefix"; then
6279   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6280 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6283 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6284   echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286   if test -n "$OTOOL64"; then
6287   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6288 else
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 for as_dir in $PATH
6291 do
6292   IFS=$as_save_IFS
6293   test -z "$as_dir" && as_dir=.
6294   for ac_exec_ext in '' $ac_executable_extensions; do
6295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6296     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298     break 2
6299   fi
6300 done
6301 done
6302 IFS=$as_save_IFS
6303
6304 fi
6305 fi
6306 OTOOL64=$ac_cv_prog_OTOOL64
6307 if test -n "$OTOOL64"; then
6308   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6309 echo "${ECHO_T}$OTOOL64" >&6; }
6310 else
6311   { echo "$as_me:$LINENO: result: no" >&5
6312 echo "${ECHO_T}no" >&6; }
6313 fi
6314
6315
6316 fi
6317 if test -z "$ac_cv_prog_OTOOL64"; then
6318   ac_ct_OTOOL64=$OTOOL64
6319   # Extract the first word of "otool64", so it can be a program name with args.
6320 set dummy otool64; ac_word=$2
6321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6323 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6324   echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326   if test -n "$ac_ct_OTOOL64"; then
6327   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332   IFS=$as_save_IFS
6333   test -z "$as_dir" && as_dir=.
6334   for ac_exec_ext in '' $ac_executable_extensions; do
6335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6336     ac_cv_prog_ac_ct_OTOOL64="otool64"
6337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338     break 2
6339   fi
6340 done
6341 done
6342 IFS=$as_save_IFS
6343
6344 fi
6345 fi
6346 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6347 if test -n "$ac_ct_OTOOL64"; then
6348   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6349 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6350 else
6351   { echo "$as_me:$LINENO: result: no" >&5
6352 echo "${ECHO_T}no" >&6; }
6353 fi
6354
6355   if test "x$ac_ct_OTOOL64" = x; then
6356     OTOOL64=":"
6357   else
6358     case $cross_compiling:$ac_tool_warned in
6359 yes:)
6360 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6361 whose name does not start with the host triplet.  If you think this
6362 configuration is useful to you, please write to autoconf@gnu.org." >&5
6363 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6364 whose name does not start with the host triplet.  If you think this
6365 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6366 ac_tool_warned=yes ;;
6367 esac
6368     OTOOL64=$ac_ct_OTOOL64
6369   fi
6370 else
6371   OTOOL64="$ac_cv_prog_OTOOL64"
6372 fi
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6401 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6402 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6403   echo $ECHO_N "(cached) $ECHO_C" >&6
6404 else
6405   lt_cv_apple_cc_single_mod=no
6406       if test -z "${LT_MULTI_MODULE}"; then
6407         # By default we will add the -single_module flag. You can override
6408         # by either setting the environment variable LT_MULTI_MODULE
6409         # non-empty at configure time, or by adding -multi_module to the
6410         # link flags.
6411         rm -rf libconftest.dylib*
6412         echo "int foo(void){return 1;}" > conftest.c
6413         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6414 -dynamiclib -Wl,-single_module conftest.c" >&5
6415         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6416           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6417         _lt_result=$?
6418         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6419           lt_cv_apple_cc_single_mod=yes
6420         else
6421           cat conftest.err >&5
6422         fi
6423         rm -rf libconftest.dylib*
6424         rm -f conftest.*
6425       fi
6426 fi
6427 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6428 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6429     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6430 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6431 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6432   echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434   lt_cv_ld_exported_symbols_list=no
6435       save_LDFLAGS=$LDFLAGS
6436       echo "_main" > conftest.sym
6437       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6438       cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h.  */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h.  */
6444
6445 int
6446 main ()
6447 {
6448
6449   ;
6450   return 0;
6451 }
6452 _ACEOF
6453 rm -f conftest.$ac_objext conftest$ac_exeext
6454 if { (ac_try="$ac_link"
6455 case "(($ac_try" in
6456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457   *) ac_try_echo=$ac_try;;
6458 esac
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460   (eval "$ac_link") 2>conftest.er1
6461   ac_status=$?
6462   grep -v '^ *+' conftest.er1 >conftest.err
6463   rm -f conftest.er1
6464   cat conftest.err >&5
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); } && {
6467          test -z "$ac_c_werror_flag" ||
6468          test ! -s conftest.err
6469        } && test -s conftest$ac_exeext &&
6470        $as_test_x conftest$ac_exeext; then
6471   lt_cv_ld_exported_symbols_list=yes
6472 else
6473   echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6475
6476         lt_cv_ld_exported_symbols_list=no
6477 fi
6478
6479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6480       conftest$ac_exeext conftest.$ac_ext
6481         LDFLAGS="$save_LDFLAGS"
6482
6483 fi
6484 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6485 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6486     case $host_os in
6487     rhapsody* | darwin1.[012])
6488       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6489     darwin1.*)
6490       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6491     darwin*) # darwin 5.x on
6492       # if running on 10.5 or later, the deployment target defaults
6493       # to the OS version, if on x86, and 10.4, the deployment
6494       # target defaults to 10.4. Don't you love it?
6495       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6496         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6497           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6498         10.[012]*)
6499           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6500         10.*)
6501           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6502       esac
6503     ;;
6504   esac
6505     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6506       _lt_dar_single_mod='$single_module'
6507     fi
6508     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6509       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6510     else
6511       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6512     fi
6513     if test "$DSYMUTIL" != ":"; then
6514       _lt_dsymutil='~$DSYMUTIL $lib || :'
6515     else
6516       _lt_dsymutil=
6517     fi
6518     ;;
6519   esac
6520
6521 ac_ext=c
6522 ac_cpp='$CPP $CPPFLAGS'
6523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6526 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6527 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6528 # On Suns, sometimes $CPP names a directory.
6529 if test -n "$CPP" && test -d "$CPP"; then
6530   CPP=
6531 fi
6532 if test -z "$CPP"; then
6533   if test "${ac_cv_prog_CPP+set}" = set; then
6534   echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536       # Double quotes because CPP needs to be expanded
6537     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6538     do
6539       ac_preproc_ok=false
6540 for ac_c_preproc_warn_flag in '' yes
6541 do
6542   # Use a header file that comes with gcc, so configuring glibc
6543   # with a fresh cross-compiler works.
6544   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6545   # <limits.h> exists even on freestanding compilers.
6546   # On the NeXT, cc -E runs the code through the compiler's parser,
6547   # not just through cpp. "Syntax error" is here to catch this case.
6548   cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h.  */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h.  */
6554 #ifdef __STDC__
6555 # include <limits.h>
6556 #else
6557 # include <assert.h>
6558 #endif
6559                      Syntax error
6560 _ACEOF
6561 if { (ac_try="$ac_cpp conftest.$ac_ext"
6562 case "(($ac_try" in
6563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564   *) ac_try_echo=$ac_try;;
6565 esac
6566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6568   ac_status=$?
6569   grep -v '^ *+' conftest.er1 >conftest.err
6570   rm -f conftest.er1
6571   cat conftest.err >&5
6572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573   (exit $ac_status); } >/dev/null && {
6574          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6575          test ! -s conftest.err
6576        }; then
6577   :
6578 else
6579   echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6581
6582   # Broken: fails on valid input.
6583 continue
6584 fi
6585
6586 rm -f conftest.err conftest.$ac_ext
6587
6588   # OK, works on sane cases.  Now check whether nonexistent headers
6589   # can be detected and how.
6590   cat >conftest.$ac_ext <<_ACEOF
6591 /* confdefs.h.  */
6592 _ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h.  */
6596 #include <ac_nonexistent.h>
6597 _ACEOF
6598 if { (ac_try="$ac_cpp conftest.$ac_ext"
6599 case "(($ac_try" in
6600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601   *) ac_try_echo=$ac_try;;
6602 esac
6603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6605   ac_status=$?
6606   grep -v '^ *+' conftest.er1 >conftest.err
6607   rm -f conftest.er1
6608   cat conftest.err >&5
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); } >/dev/null && {
6611          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6612          test ! -s conftest.err
6613        }; then
6614   # Broken: success on invalid input.
6615 continue
6616 else
6617   echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6619
6620   # Passes both tests.
6621 ac_preproc_ok=:
6622 break
6623 fi
6624
6625 rm -f conftest.err conftest.$ac_ext
6626
6627 done
6628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6629 rm -f conftest.err conftest.$ac_ext
6630 if $ac_preproc_ok; then
6631   break
6632 fi
6633
6634     done
6635     ac_cv_prog_CPP=$CPP
6636
6637 fi
6638   CPP=$ac_cv_prog_CPP
6639 else
6640   ac_cv_prog_CPP=$CPP
6641 fi
6642 { echo "$as_me:$LINENO: result: $CPP" >&5
6643 echo "${ECHO_T}$CPP" >&6; }
6644 ac_preproc_ok=false
6645 for ac_c_preproc_warn_flag in '' yes
6646 do
6647   # Use a header file that comes with gcc, so configuring glibc
6648   # with a fresh cross-compiler works.
6649   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6650   # <limits.h> exists even on freestanding compilers.
6651   # On the NeXT, cc -E runs the code through the compiler's parser,
6652   # not just through cpp. "Syntax error" is here to catch this case.
6653   cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h.  */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h.  */
6659 #ifdef __STDC__
6660 # include <limits.h>
6661 #else
6662 # include <assert.h>
6663 #endif
6664                      Syntax error
6665 _ACEOF
6666 if { (ac_try="$ac_cpp conftest.$ac_ext"
6667 case "(($ac_try" in
6668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669   *) ac_try_echo=$ac_try;;
6670 esac
6671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6673   ac_status=$?
6674   grep -v '^ *+' conftest.er1 >conftest.err
6675   rm -f conftest.er1
6676   cat conftest.err >&5
6677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678   (exit $ac_status); } >/dev/null && {
6679          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6680          test ! -s conftest.err
6681        }; then
6682   :
6683 else
6684   echo "$as_me: failed program was:" >&5
6685 sed 's/^/| /' conftest.$ac_ext >&5
6686
6687   # Broken: fails on valid input.
6688 continue
6689 fi
6690
6691 rm -f conftest.err conftest.$ac_ext
6692
6693   # OK, works on sane cases.  Now check whether nonexistent headers
6694   # can be detected and how.
6695   cat >conftest.$ac_ext <<_ACEOF
6696 /* confdefs.h.  */
6697 _ACEOF
6698 cat confdefs.h >>conftest.$ac_ext
6699 cat >>conftest.$ac_ext <<_ACEOF
6700 /* end confdefs.h.  */
6701 #include <ac_nonexistent.h>
6702 _ACEOF
6703 if { (ac_try="$ac_cpp conftest.$ac_ext"
6704 case "(($ac_try" in
6705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6706   *) ac_try_echo=$ac_try;;
6707 esac
6708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6709   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6710   ac_status=$?
6711   grep -v '^ *+' conftest.er1 >conftest.err
6712   rm -f conftest.er1
6713   cat conftest.err >&5
6714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715   (exit $ac_status); } >/dev/null && {
6716          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6717          test ! -s conftest.err
6718        }; then
6719   # Broken: success on invalid input.
6720 continue
6721 else
6722   echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6724
6725   # Passes both tests.
6726 ac_preproc_ok=:
6727 break
6728 fi
6729
6730 rm -f conftest.err conftest.$ac_ext
6731
6732 done
6733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6734 rm -f conftest.err conftest.$ac_ext
6735 if $ac_preproc_ok; then
6736   :
6737 else
6738   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6739 See \`config.log' for more details." >&5
6740 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6741 See \`config.log' for more details." >&2;}
6742    { (exit 1); exit 1; }; }
6743 fi
6744
6745 ac_ext=c
6746 ac_cpp='$CPP $CPPFLAGS'
6747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6750
6751
6752 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6753 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6754 if test "${ac_cv_header_stdc+set}" = set; then
6755   echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757   cat >conftest.$ac_ext <<_ACEOF
6758 /* confdefs.h.  */
6759 _ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h.  */
6763 #include <stdlib.h>
6764 #include <stdarg.h>
6765 #include <string.h>
6766 #include <float.h>
6767
6768 int
6769 main ()
6770 {
6771
6772   ;
6773   return 0;
6774 }
6775 _ACEOF
6776 rm -f conftest.$ac_objext
6777 if { (ac_try="$ac_compile"
6778 case "(($ac_try" in
6779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6780   *) ac_try_echo=$ac_try;;
6781 esac
6782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6783   (eval "$ac_compile") 2>conftest.er1
6784   ac_status=$?
6785   grep -v '^ *+' conftest.er1 >conftest.err
6786   rm -f conftest.er1
6787   cat conftest.err >&5
6788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789   (exit $ac_status); } && {
6790          test -z "$ac_c_werror_flag" ||
6791          test ! -s conftest.err
6792        } && test -s conftest.$ac_objext; then
6793   ac_cv_header_stdc=yes
6794 else
6795   echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6797
6798         ac_cv_header_stdc=no
6799 fi
6800
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802
6803 if test $ac_cv_header_stdc = yes; then
6804   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6805   cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h.  */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h.  */
6811 #include <string.h>
6812
6813 _ACEOF
6814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6815   $EGREP "memchr" >/dev/null 2>&1; then
6816   :
6817 else
6818   ac_cv_header_stdc=no
6819 fi
6820 rm -f conftest*
6821
6822 fi
6823
6824 if test $ac_cv_header_stdc = yes; then
6825   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6826   cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h.  */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h.  */
6832 #include <stdlib.h>
6833
6834 _ACEOF
6835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6836   $EGREP "free" >/dev/null 2>&1; then
6837   :
6838 else
6839   ac_cv_header_stdc=no
6840 fi
6841 rm -f conftest*
6842
6843 fi
6844
6845 if test $ac_cv_header_stdc = yes; then
6846   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6847   if test "$cross_compiling" = yes; then
6848   :
6849 else
6850   cat >conftest.$ac_ext <<_ACEOF
6851 /* confdefs.h.  */
6852 _ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h.  */
6856 #include <ctype.h>
6857 #include <stdlib.h>
6858 #if ((' ' & 0x0FF) == 0x020)
6859 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6860 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6861 #else
6862 # define ISLOWER(c) \
6863                    (('a' <= (c) && (c) <= 'i') \
6864                      || ('j' <= (c) && (c) <= 'r') \
6865                      || ('s' <= (c) && (c) <= 'z'))
6866 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6867 #endif
6868
6869 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6870 int
6871 main ()
6872 {
6873   int i;
6874   for (i = 0; i < 256; i++)
6875     if (XOR (islower (i), ISLOWER (i))
6876         || toupper (i) != TOUPPER (i))
6877       return 2;
6878   return 0;
6879 }
6880 _ACEOF
6881 rm -f conftest$ac_exeext
6882 if { (ac_try="$ac_link"
6883 case "(($ac_try" in
6884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885   *) ac_try_echo=$ac_try;;
6886 esac
6887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6888   (eval "$ac_link") 2>&5
6889   ac_status=$?
6890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6892   { (case "(($ac_try" in
6893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6894   *) ac_try_echo=$ac_try;;
6895 esac
6896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6897   (eval "$ac_try") 2>&5
6898   ac_status=$?
6899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900   (exit $ac_status); }; }; then
6901   :
6902 else
6903   echo "$as_me: program exited with status $ac_status" >&5
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6906
6907 ( exit $ac_status )
6908 ac_cv_header_stdc=no
6909 fi
6910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6911 fi
6912
6913
6914 fi
6915 fi
6916 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6917 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6918 if test $ac_cv_header_stdc = yes; then
6919
6920 cat >>confdefs.h <<\_ACEOF
6921 #define STDC_HEADERS 1
6922 _ACEOF
6923
6924 fi
6925
6926 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6937                   inttypes.h stdint.h unistd.h
6938 do
6939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6943   echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945   cat >conftest.$ac_ext <<_ACEOF
6946 /* confdefs.h.  */
6947 _ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h.  */
6951 $ac_includes_default
6952
6953 #include <$ac_header>
6954 _ACEOF
6955 rm -f conftest.$ac_objext
6956 if { (ac_try="$ac_compile"
6957 case "(($ac_try" in
6958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959   *) ac_try_echo=$ac_try;;
6960 esac
6961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6962   (eval "$ac_compile") 2>conftest.er1
6963   ac_status=$?
6964   grep -v '^ *+' conftest.er1 >conftest.err
6965   rm -f conftest.er1
6966   cat conftest.err >&5
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); } && {
6969          test -z "$ac_c_werror_flag" ||
6970          test ! -s conftest.err
6971        } && test -s conftest.$ac_objext; then
6972   eval "$as_ac_Header=yes"
6973 else
6974   echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6976
6977         eval "$as_ac_Header=no"
6978 fi
6979
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981 fi
6982 ac_res=`eval echo '${'$as_ac_Header'}'`
6983                { echo "$as_me:$LINENO: result: $ac_res" >&5
6984 echo "${ECHO_T}$ac_res" >&6; }
6985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6986   cat >>confdefs.h <<_ACEOF
6987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6988 _ACEOF
6989
6990 fi
6991
6992 done
6993
6994
6995
6996 for ac_header in dlfcn.h
6997 do
6998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7002   echo $ECHO_N "(cached) $ECHO_C" >&6
7003 else
7004   cat >conftest.$ac_ext <<_ACEOF
7005 /* confdefs.h.  */
7006 _ACEOF
7007 cat confdefs.h >>conftest.$ac_ext
7008 cat >>conftest.$ac_ext <<_ACEOF
7009 /* end confdefs.h.  */
7010 $ac_includes_default
7011
7012 #include <$ac_header>
7013 _ACEOF
7014 rm -f conftest.$ac_objext
7015 if { (ac_try="$ac_compile"
7016 case "(($ac_try" in
7017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018   *) ac_try_echo=$ac_try;;
7019 esac
7020 eval "echo \"\$as_me:$LINENO: $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   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   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 echo '${'$as_ac_Header'}'`
7042                { echo "$as_me:$LINENO: result: $ac_res" >&5
7043 echo "${ECHO_T}$ac_res" >&6; }
7044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7045   cat >>confdefs.h <<_ACEOF
7046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7047 _ACEOF
7048
7049 fi
7050
7051 done
7052
7053
7054
7055 # Set options
7056
7057
7058
7059         enable_dlopen=no
7060
7061
7062   enable_win32_dll=no
7063
7064
7065             # Check whether --enable-shared was given.
7066 if test "${enable_shared+set}" = set; then
7067   enableval=$enable_shared; p=${PACKAGE-default}
7068     case $enableval in
7069     yes) enable_shared=yes ;;
7070     no) enable_shared=no ;;
7071     *)
7072       enable_shared=no
7073       # Look at the argument we got.  We use all the common list separators.
7074       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7075       for pkg in $enableval; do
7076         IFS="$lt_save_ifs"
7077         if test "X$pkg" = "X$p"; then
7078           enable_shared=yes
7079         fi
7080       done
7081       IFS="$lt_save_ifs"
7082       ;;
7083     esac
7084 else
7085   enable_shared=yes
7086 fi
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096   # Check whether --enable-static was given.
7097 if test "${enable_static+set}" = set; then
7098   enableval=$enable_static; p=${PACKAGE-default}
7099     case $enableval in
7100     yes) enable_static=yes ;;
7101     no) enable_static=no ;;
7102     *)
7103      enable_static=no
7104       # Look at the argument we got.  We use all the common list separators.
7105       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7106       for pkg in $enableval; do
7107         IFS="$lt_save_ifs"
7108         if test "X$pkg" = "X$p"; then
7109           enable_static=yes
7110         fi
7111       done
7112       IFS="$lt_save_ifs"
7113       ;;
7114     esac
7115 else
7116   enable_static=yes
7117 fi
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128 # Check whether --with-pic was given.
7129 if test "${with_pic+set}" = set; then
7130   withval=$with_pic; pic_mode="$withval"
7131 else
7132   pic_mode=default
7133 fi
7134
7135
7136 test -z "$pic_mode" && pic_mode=default
7137
7138
7139
7140
7141
7142
7143
7144   # Check whether --enable-fast-install was given.
7145 if test "${enable_fast_install+set}" = set; then
7146   enableval=$enable_fast_install; p=${PACKAGE-default}
7147     case $enableval in
7148     yes) enable_fast_install=yes ;;
7149     no) enable_fast_install=no ;;
7150     *)
7151       enable_fast_install=no
7152       # Look at the argument we got.  We use all the common list separators.
7153       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7154       for pkg in $enableval; do
7155         IFS="$lt_save_ifs"
7156         if test "X$pkg" = "X$p"; then
7157           enable_fast_install=yes
7158         fi
7159       done
7160       IFS="$lt_save_ifs"
7161       ;;
7162     esac
7163 else
7164   enable_fast_install=yes
7165 fi
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177 # This can be used to rebuild libtool when needed
7178 LIBTOOL_DEPS="$ltmain"
7179
7180 # Always use our own libtool.
7181 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207 test -z "$LN_S" && LN_S="ln -s"
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222 if test -n "${ZSH_VERSION+set}" ; then
7223    setopt NO_GLOB_SUBST
7224 fi
7225
7226 { echo "$as_me:$LINENO: checking for objdir" >&5
7227 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7228 if test "${lt_cv_objdir+set}" = set; then
7229   echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231   rm -f .libs 2>/dev/null
7232 mkdir .libs 2>/dev/null
7233 if test -d .libs; then
7234   lt_cv_objdir=.libs
7235 else
7236   # MS-DOS does not allow filenames that begin with a dot.
7237   lt_cv_objdir=_libs
7238 fi
7239 rmdir .libs 2>/dev/null
7240 fi
7241 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7242 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7243 objdir=$lt_cv_objdir
7244
7245
7246
7247
7248
7249 cat >>confdefs.h <<_ACEOF
7250 #define LT_OBJDIR "$lt_cv_objdir/"
7251 _ACEOF
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269 case $host_os in
7270 aix3*)
7271   # AIX sometimes has problems with the GCC collect2 program.  For some
7272   # reason, if we set the COLLECT_NAMES environment variable, the problems
7273   # vanish in a puff of smoke.
7274   if test "X${COLLECT_NAMES+set}" != Xset; then
7275     COLLECT_NAMES=
7276     export COLLECT_NAMES
7277   fi
7278   ;;
7279 esac
7280
7281 # Sed substitution that helps us do robust quoting.  It backslashifies
7282 # metacharacters that are still active within double-quoted strings.
7283 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7284
7285 # Same as above, but do not quote variable references.
7286 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7287
7288 # Sed substitution to delay expansion of an escaped shell variable in a
7289 # double_quote_subst'ed string.
7290 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7291
7292 # Sed substitution to delay expansion of an escaped single quote.
7293 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7294
7295 # Sed substitution to avoid accidental globbing in evaled expressions
7296 no_glob_subst='s/\*/\\\*/g'
7297
7298 # Global variables:
7299 ofile=libtool
7300 can_build_shared=yes
7301
7302 # All known linkers require a `.a' archive for static linking (except MSVC,
7303 # which needs '.lib').
7304 libext=a
7305
7306 with_gnu_ld="$lt_cv_prog_gnu_ld"
7307
7308 old_CC="$CC"
7309 old_CFLAGS="$CFLAGS"
7310
7311 # Set sane defaults for various variables
7312 test -z "$CC" && CC=cc
7313 test -z "$LTCC" && LTCC=$CC
7314 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7315 test -z "$LD" && LD=ld
7316 test -z "$ac_objext" && ac_objext=o
7317
7318 for cc_temp in $compiler""; do
7319   case $cc_temp in
7320     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7321     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7322     \-*) ;;
7323     *) break;;
7324   esac
7325 done
7326 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7327
7328
7329 # Only perform the check for file, if the check method requires it
7330 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7331 case $deplibs_check_method in
7332 file_magic*)
7333   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7334     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7335 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7336 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7337   echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339   case $MAGIC_CMD in
7340 [\\/*] |  ?:[\\/]*)
7341   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7342   ;;
7343 *)
7344   lt_save_MAGIC_CMD="$MAGIC_CMD"
7345   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7346   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7347   for ac_dir in $ac_dummy; do
7348     IFS="$lt_save_ifs"
7349     test -z "$ac_dir" && ac_dir=.
7350     if test -f $ac_dir/${ac_tool_prefix}file; then
7351       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7352       if test -n "$file_magic_test_file"; then
7353         case $deplibs_check_method in
7354         "file_magic "*)
7355           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7356           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7357           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7358             $EGREP "$file_magic_regex" > /dev/null; then
7359             :
7360           else
7361             cat <<_LT_EOF 1>&2
7362
7363 *** Warning: the command libtool uses to detect shared libraries,
7364 *** $file_magic_cmd, produces output that libtool cannot recognize.
7365 *** The result is that libtool may fail to recognize shared libraries
7366 *** as such.  This will affect the creation of libtool libraries that
7367 *** depend on shared libraries, but programs linked with such libtool
7368 *** libraries will work regardless of this problem.  Nevertheless, you
7369 *** may want to report the problem to your system manager and/or to
7370 *** bug-libtool@gnu.org
7371
7372 _LT_EOF
7373           fi ;;
7374         esac
7375       fi
7376       break
7377     fi
7378   done
7379   IFS="$lt_save_ifs"
7380   MAGIC_CMD="$lt_save_MAGIC_CMD"
7381   ;;
7382 esac
7383 fi
7384
7385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7386 if test -n "$MAGIC_CMD"; then
7387   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7388 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7389 else
7390   { echo "$as_me:$LINENO: result: no" >&5
7391 echo "${ECHO_T}no" >&6; }
7392 fi
7393
7394
7395
7396
7397
7398 if test -z "$lt_cv_path_MAGIC_CMD"; then
7399   if test -n "$ac_tool_prefix"; then
7400     { echo "$as_me:$LINENO: checking for file" >&5
7401 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7402 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7403   echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405   case $MAGIC_CMD in
7406 [\\/*] |  ?:[\\/]*)
7407   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7408   ;;
7409 *)
7410   lt_save_MAGIC_CMD="$MAGIC_CMD"
7411   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7412   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7413   for ac_dir in $ac_dummy; do
7414     IFS="$lt_save_ifs"
7415     test -z "$ac_dir" && ac_dir=.
7416     if test -f $ac_dir/file; then
7417       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7418       if test -n "$file_magic_test_file"; then
7419         case $deplibs_check_method in
7420         "file_magic "*)
7421           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7422           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7423           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7424             $EGREP "$file_magic_regex" > /dev/null; then
7425             :
7426           else
7427             cat <<_LT_EOF 1>&2
7428
7429 *** Warning: the command libtool uses to detect shared libraries,
7430 *** $file_magic_cmd, produces output that libtool cannot recognize.
7431 *** The result is that libtool may fail to recognize shared libraries
7432 *** as such.  This will affect the creation of libtool libraries that
7433 *** depend on shared libraries, but programs linked with such libtool
7434 *** libraries will work regardless of this problem.  Nevertheless, you
7435 *** may want to report the problem to your system manager and/or to
7436 *** bug-libtool@gnu.org
7437
7438 _LT_EOF
7439           fi ;;
7440         esac
7441       fi
7442       break
7443     fi
7444   done
7445   IFS="$lt_save_ifs"
7446   MAGIC_CMD="$lt_save_MAGIC_CMD"
7447   ;;
7448 esac
7449 fi
7450
7451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7452 if test -n "$MAGIC_CMD"; then
7453   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7454 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7455 else
7456   { echo "$as_me:$LINENO: result: no" >&5
7457 echo "${ECHO_T}no" >&6; }
7458 fi
7459
7460
7461   else
7462     MAGIC_CMD=:
7463   fi
7464 fi
7465
7466   fi
7467   ;;
7468 esac
7469
7470 # Use C for the default configuration in the libtool script
7471
7472 lt_save_CC="$CC"
7473 ac_ext=c
7474 ac_cpp='$CPP $CPPFLAGS'
7475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7478
7479
7480 # Source file extension for C test sources.
7481 ac_ext=c
7482
7483 # Object file extension for compiled C test sources.
7484 objext=o
7485 objext=$objext
7486
7487 # Code to be used in simple compile tests
7488 lt_simple_compile_test_code="int some_variable = 0;"
7489
7490 # Code to be used in simple link tests
7491 lt_simple_link_test_code='int main(){return(0);}'
7492
7493
7494
7495
7496
7497
7498
7499 # If no C compiler was specified, use CC.
7500 LTCC=${LTCC-"$CC"}
7501
7502 # If no C compiler flags were specified, use CFLAGS.
7503 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7504
7505 # Allow CC to be a program name with arguments.
7506 compiler=$CC
7507
7508 # Save the default compiler, since it gets overwritten when the other
7509 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7510 compiler_DEFAULT=$CC
7511
7512 # save warnings/boilerplate of simple test code
7513 ac_outfile=conftest.$ac_objext
7514 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7515 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7516 _lt_compiler_boilerplate=`cat conftest.err`
7517 $RM conftest*
7518
7519 ac_outfile=conftest.$ac_objext
7520 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7521 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7522 _lt_linker_boilerplate=`cat conftest.err`
7523 $RM -r conftest*
7524
7525
7526 if test -n "$compiler"; then
7527
7528 lt_prog_compiler_no_builtin_flag=
7529
7530 if test "$GCC" = yes; then
7531   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7532
7533   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7534 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7535 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7536   echo $ECHO_N "(cached) $ECHO_C" >&6
7537 else
7538   lt_cv_prog_compiler_rtti_exceptions=no
7539    ac_outfile=conftest.$ac_objext
7540    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7541    lt_compiler_flag="-fno-rtti -fno-exceptions"
7542    # Insert the option either (1) after the last *FLAGS variable, or
7543    # (2) before a word containing "conftest.", or (3) at the end.
7544    # Note that $ac_compile itself does not contain backslashes and begins
7545    # with a dollar sign (not a hyphen), so the echo should work correctly.
7546    # The option is referenced via a variable to avoid confusing sed.
7547    lt_compile=`echo "$ac_compile" | $SED \
7548    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7549    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7550    -e 's:$: $lt_compiler_flag:'`
7551    (eval echo "\"\$as_me:7551: $lt_compile\"" >&5)
7552    (eval "$lt_compile" 2>conftest.err)
7553    ac_status=$?
7554    cat conftest.err >&5
7555    echo "$as_me:7555: \$? = $ac_status" >&5
7556    if (exit $ac_status) && test -s "$ac_outfile"; then
7557      # The compiler can only warn and ignore the option if not recognized
7558      # So say no if there are warnings other than the usual output.
7559      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7560      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7561      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7562        lt_cv_prog_compiler_rtti_exceptions=yes
7563      fi
7564    fi
7565    $RM conftest*
7566
7567 fi
7568 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7569 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7570
7571 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7572     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7573 else
7574     :
7575 fi
7576
7577 fi
7578
7579
7580
7581
7582
7583
7584   lt_prog_compiler_wl=
7585 lt_prog_compiler_pic=
7586 lt_prog_compiler_static=
7587
7588 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7589 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7590
7591   if test "$GCC" = yes; then
7592     lt_prog_compiler_wl='-Wl,'
7593     lt_prog_compiler_static='-static'
7594
7595     case $host_os in
7596       aix*)
7597       # All AIX code is PIC.
7598       if test "$host_cpu" = ia64; then
7599         # AIX 5 now supports IA64 processor
7600         lt_prog_compiler_static='-Bstatic'
7601       fi
7602       ;;
7603
7604     amigaos*)
7605       case $host_cpu in
7606       powerpc)
7607             # see comment about AmigaOS4 .so support
7608             lt_prog_compiler_pic='-fPIC'
7609         ;;
7610       m68k)
7611             # FIXME: we need at least 68020 code to build shared libraries, but
7612             # adding the `-m68020' flag to GCC prevents building anything better,
7613             # like `-m68040'.
7614             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7615         ;;
7616       esac
7617       ;;
7618
7619     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7620       # PIC is the default for these OSes.
7621       ;;
7622
7623     mingw* | cygwin* | pw32* | os2*)
7624       # This hack is so that the source file can tell whether it is being
7625       # built for inclusion in a dll (and should export symbols for example).
7626       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7627       # (--disable-auto-import) libraries
7628       lt_prog_compiler_pic='-DDLL_EXPORT'
7629       ;;
7630
7631     darwin* | rhapsody*)
7632       # PIC is the default on this platform
7633       # Common symbols not allowed in MH_DYLIB files
7634       lt_prog_compiler_pic='-fno-common'
7635       ;;
7636
7637     hpux*)
7638       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7639       # not for PA HP-UX.
7640       case $host_cpu in
7641       hppa*64*|ia64*)
7642         # +Z the default
7643         ;;
7644       *)
7645         lt_prog_compiler_pic='-fPIC'
7646         ;;
7647       esac
7648       ;;
7649
7650     interix[3-9]*)
7651       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7652       # Instead, we relocate shared libraries at runtime.
7653       ;;
7654
7655     msdosdjgpp*)
7656       # Just because we use GCC doesn't mean we suddenly get shared libraries
7657       # on systems that don't support them.
7658       lt_prog_compiler_can_build_shared=no
7659       enable_shared=no
7660       ;;
7661
7662     *nto* | *qnx*)
7663       # QNX uses GNU C++, but need to define -shared option too, otherwise
7664       # it will coredump.
7665       lt_prog_compiler_pic='-fPIC -shared'
7666       ;;
7667
7668     sysv4*MP*)
7669       if test -d /usr/nec; then
7670         lt_prog_compiler_pic=-Kconform_pic
7671       fi
7672       ;;
7673
7674     *)
7675       lt_prog_compiler_pic='-fPIC'
7676       ;;
7677     esac
7678   else
7679     # PORTME Check for flag to pass linker flags through the system compiler.
7680     case $host_os in
7681     aix*)
7682       lt_prog_compiler_wl='-Wl,'
7683       if test "$host_cpu" = ia64; then
7684         # AIX 5 now supports IA64 processor
7685         lt_prog_compiler_static='-Bstatic'
7686       else
7687         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7688       fi
7689       ;;
7690
7691     mingw* | cygwin* | pw32* | os2*)
7692       # This hack is so that the source file can tell whether it is being
7693       # built for inclusion in a dll (and should export symbols for example).
7694       lt_prog_compiler_pic='-DDLL_EXPORT'
7695       ;;
7696
7697     hpux9* | hpux10* | hpux11*)
7698       lt_prog_compiler_wl='-Wl,'
7699       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7700       # not for PA HP-UX.
7701       case $host_cpu in
7702       hppa*64*|ia64*)
7703         # +Z the default
7704         ;;
7705       *)
7706         lt_prog_compiler_pic='+Z'
7707         ;;
7708       esac
7709       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7710       lt_prog_compiler_static='${wl}-a ${wl}archive'
7711       ;;
7712
7713     irix5* | irix6* | nonstopux*)
7714       lt_prog_compiler_wl='-Wl,'
7715       # PIC (with -KPIC) is the default.
7716       lt_prog_compiler_static='-non_shared'
7717       ;;
7718
7719     linux* | k*bsd*-gnu)
7720       case $cc_basename in
7721       icc* | ecc* | ifort*)
7722         lt_prog_compiler_wl='-Wl,'
7723         lt_prog_compiler_pic='-KPIC'
7724         lt_prog_compiler_static='-static'
7725         ;;
7726       pgcc* | pgf77* | pgf90* | pgf95*)
7727         # Portland Group compilers (*not* the Pentium gcc compiler,
7728         # which looks to be a dead project)
7729         lt_prog_compiler_wl='-Wl,'
7730         lt_prog_compiler_pic='-fpic'
7731         lt_prog_compiler_static='-Bstatic'
7732         ;;
7733       ccc*)
7734         lt_prog_compiler_wl='-Wl,'
7735         # All Alpha code is PIC.
7736         lt_prog_compiler_static='-non_shared'
7737         ;;
7738       xl*)
7739         # IBM XL C 8.0/Fortran 10.1 on PPC
7740         lt_prog_compiler_wl='-Wl,'
7741         lt_prog_compiler_pic='-qpic'
7742         lt_prog_compiler_static='-qstaticlink'
7743         ;;
7744       *)
7745         case `$CC -V 2>&1 | sed 5q` in
7746         *Sun\ C*)
7747           # Sun C 5.9
7748           lt_prog_compiler_pic='-KPIC'
7749           lt_prog_compiler_static='-Bstatic'
7750           lt_prog_compiler_wl='-Wl,'
7751           ;;
7752         *Sun\ F*)
7753           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7754           lt_prog_compiler_pic='-KPIC'
7755           lt_prog_compiler_static='-Bstatic'
7756           lt_prog_compiler_wl=''
7757           ;;
7758         esac
7759         ;;
7760       esac
7761       ;;
7762
7763     newsos6)
7764       lt_prog_compiler_pic='-KPIC'
7765       lt_prog_compiler_static='-Bstatic'
7766       ;;
7767
7768     *nto* | *qnx*)
7769       # QNX uses GNU C++, but need to define -shared option too, otherwise
7770       # it will coredump.
7771       lt_prog_compiler_pic='-fPIC -shared'
7772       ;;
7773
7774     osf3* | osf4* | osf5*)
7775       lt_prog_compiler_wl='-Wl,'
7776       # All OSF/1 code is PIC.
7777       lt_prog_compiler_static='-non_shared'
7778       ;;
7779
7780     rdos*)
7781       lt_prog_compiler_static='-non_shared'
7782       ;;
7783
7784     solaris*)
7785       lt_prog_compiler_pic='-KPIC'
7786       lt_prog_compiler_static='-Bstatic'
7787       case $cc_basename in
7788       f77* | f90* | f95*)
7789         lt_prog_compiler_wl='-Qoption ld ';;
7790       *)
7791         lt_prog_compiler_wl='-Wl,';;
7792       esac
7793       ;;
7794
7795     sunos4*)
7796       lt_prog_compiler_wl='-Qoption ld '
7797       lt_prog_compiler_pic='-PIC'
7798       lt_prog_compiler_static='-Bstatic'
7799       ;;
7800
7801     sysv4 | sysv4.2uw2* | sysv4.3*)
7802       lt_prog_compiler_wl='-Wl,'
7803       lt_prog_compiler_pic='-KPIC'
7804       lt_prog_compiler_static='-Bstatic'
7805       ;;
7806
7807     sysv4*MP*)
7808       if test -d /usr/nec ;then
7809         lt_prog_compiler_pic='-Kconform_pic'
7810         lt_prog_compiler_static='-Bstatic'
7811       fi
7812       ;;
7813
7814     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7815       lt_prog_compiler_wl='-Wl,'
7816       lt_prog_compiler_pic='-KPIC'
7817       lt_prog_compiler_static='-Bstatic'
7818       ;;
7819
7820     unicos*)
7821       lt_prog_compiler_wl='-Wl,'
7822       lt_prog_compiler_can_build_shared=no
7823       ;;
7824
7825     uts4*)
7826       lt_prog_compiler_pic='-pic'
7827       lt_prog_compiler_static='-Bstatic'
7828       ;;
7829
7830     *)
7831       lt_prog_compiler_can_build_shared=no
7832       ;;
7833     esac
7834   fi
7835
7836 case $host_os in
7837   # For platforms which do not support PIC, -DPIC is meaningless:
7838   *djgpp*)
7839     lt_prog_compiler_pic=
7840     ;;
7841   *)
7842     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7843     ;;
7844 esac
7845 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7846 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7847
7848
7849
7850
7851
7852
7853 #
7854 # Check to make sure the PIC flag actually works.
7855 #
7856 if test -n "$lt_prog_compiler_pic"; then
7857   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7858 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7859 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862   lt_cv_prog_compiler_pic_works=no
7863    ac_outfile=conftest.$ac_objext
7864    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7865    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7866    # Insert the option either (1) after the last *FLAGS variable, or
7867    # (2) before a word containing "conftest.", or (3) at the end.
7868    # Note that $ac_compile itself does not contain backslashes and begins
7869    # with a dollar sign (not a hyphen), so the echo should work correctly.
7870    # The option is referenced via a variable to avoid confusing sed.
7871    lt_compile=`echo "$ac_compile" | $SED \
7872    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7873    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7874    -e 's:$: $lt_compiler_flag:'`
7875    (eval echo "\"\$as_me:7875: $lt_compile\"" >&5)
7876    (eval "$lt_compile" 2>conftest.err)
7877    ac_status=$?
7878    cat conftest.err >&5
7879    echo "$as_me:7879: \$? = $ac_status" >&5
7880    if (exit $ac_status) && test -s "$ac_outfile"; then
7881      # The compiler can only warn and ignore the option if not recognized
7882      # So say no if there are warnings other than the usual output.
7883      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7884      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7885      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7886        lt_cv_prog_compiler_pic_works=yes
7887      fi
7888    fi
7889    $RM conftest*
7890
7891 fi
7892 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7893 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7894
7895 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7896     case $lt_prog_compiler_pic in
7897      "" | " "*) ;;
7898      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7899      esac
7900 else
7901     lt_prog_compiler_pic=
7902      lt_prog_compiler_can_build_shared=no
7903 fi
7904
7905 fi
7906
7907
7908
7909
7910
7911
7912 #
7913 # Check to make sure the static flag actually works.
7914 #
7915 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7916 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7917 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7918 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7919   echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921   lt_cv_prog_compiler_static_works=no
7922    save_LDFLAGS="$LDFLAGS"
7923    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7924    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7925    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7926      # The linker can only warn and ignore the option if not recognized
7927      # So say no if there are warnings
7928      if test -s conftest.err; then
7929        # Append any errors to the config.log.
7930        cat conftest.err 1>&5
7931        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7932        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7933        if diff conftest.exp conftest.er2 >/dev/null; then
7934          lt_cv_prog_compiler_static_works=yes
7935        fi
7936      else
7937        lt_cv_prog_compiler_static_works=yes
7938      fi
7939    fi
7940    $RM -r conftest*
7941    LDFLAGS="$save_LDFLAGS"
7942
7943 fi
7944 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7945 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7946
7947 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7948     :
7949 else
7950     lt_prog_compiler_static=
7951 fi
7952
7953
7954
7955
7956
7957
7958
7959   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7960 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7961 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7962   echo $ECHO_N "(cached) $ECHO_C" >&6
7963 else
7964   lt_cv_prog_compiler_c_o=no
7965    $RM -r conftest 2>/dev/null
7966    mkdir conftest
7967    cd conftest
7968    mkdir out
7969    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7970
7971    lt_compiler_flag="-o out/conftest2.$ac_objext"
7972    # Insert the option either (1) after the last *FLAGS variable, or
7973    # (2) before a word containing "conftest.", or (3) at the end.
7974    # Note that $ac_compile itself does not contain backslashes and begins
7975    # with a dollar sign (not a hyphen), so the echo should work correctly.
7976    lt_compile=`echo "$ac_compile" | $SED \
7977    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7978    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7979    -e 's:$: $lt_compiler_flag:'`
7980    (eval echo "\"\$as_me:7980: $lt_compile\"" >&5)
7981    (eval "$lt_compile" 2>out/conftest.err)
7982    ac_status=$?
7983    cat out/conftest.err >&5
7984    echo "$as_me:7984: \$? = $ac_status" >&5
7985    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7986    then
7987      # The compiler can only warn and ignore the option if not recognized
7988      # So say no if there are warnings
7989      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7990      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7991      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7992        lt_cv_prog_compiler_c_o=yes
7993      fi
7994    fi
7995    chmod u+w . 2>&5
7996    $RM conftest*
7997    # SGI C++ compiler will create directory out/ii_files/ for
7998    # template instantiation
7999    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8000    $RM out/* && rmdir out
8001    cd ..
8002    $RM -r conftest
8003    $RM conftest*
8004
8005 fi
8006 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8007 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8008
8009
8010
8011
8012
8013
8014   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8015 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8016 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8017   echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019   lt_cv_prog_compiler_c_o=no
8020    $RM -r conftest 2>/dev/null
8021    mkdir conftest
8022    cd conftest
8023    mkdir out
8024    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8025
8026    lt_compiler_flag="-o out/conftest2.$ac_objext"
8027    # Insert the option either (1) after the last *FLAGS variable, or
8028    # (2) before a word containing "conftest.", or (3) at the end.
8029    # Note that $ac_compile itself does not contain backslashes and begins
8030    # with a dollar sign (not a hyphen), so the echo should work correctly.
8031    lt_compile=`echo "$ac_compile" | $SED \
8032    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8033    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8034    -e 's:$: $lt_compiler_flag:'`
8035    (eval echo "\"\$as_me:8035: $lt_compile\"" >&5)
8036    (eval "$lt_compile" 2>out/conftest.err)
8037    ac_status=$?
8038    cat out/conftest.err >&5
8039    echo "$as_me:8039: \$? = $ac_status" >&5
8040    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8041    then
8042      # The compiler can only warn and ignore the option if not recognized
8043      # So say no if there are warnings
8044      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8045      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8046      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8047        lt_cv_prog_compiler_c_o=yes
8048      fi
8049    fi
8050    chmod u+w . 2>&5
8051    $RM conftest*
8052    # SGI C++ compiler will create directory out/ii_files/ for
8053    # template instantiation
8054    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8055    $RM out/* && rmdir out
8056    cd ..
8057    $RM -r conftest
8058    $RM conftest*
8059
8060 fi
8061 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8062 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8063
8064
8065
8066
8067 hard_links="nottested"
8068 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8069   # do not overwrite the value of need_locks provided by the user
8070   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8071 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8072   hard_links=yes
8073   $RM conftest*
8074   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8075   touch conftest.a
8076   ln conftest.a conftest.b 2>&5 || hard_links=no
8077   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8078   { echo "$as_me:$LINENO: result: $hard_links" >&5
8079 echo "${ECHO_T}$hard_links" >&6; }
8080   if test "$hard_links" = no; then
8081     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8082 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8083     need_locks=warn
8084   fi
8085 else
8086   need_locks=no
8087 fi
8088
8089
8090
8091
8092
8093
8094   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8095 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8096
8097   runpath_var=
8098   allow_undefined_flag=
8099   always_export_symbols=no
8100   archive_cmds=
8101   archive_expsym_cmds=
8102   compiler_needs_object=no
8103   enable_shared_with_static_runtimes=no
8104   export_dynamic_flag_spec=
8105   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8106   hardcode_automatic=no
8107   hardcode_direct=no
8108   hardcode_direct_absolute=no
8109   hardcode_libdir_flag_spec=
8110   hardcode_libdir_flag_spec_ld=
8111   hardcode_libdir_separator=
8112   hardcode_minus_L=no
8113   hardcode_shlibpath_var=unsupported
8114   inherit_rpath=no
8115   link_all_deplibs=unknown
8116   module_cmds=
8117   module_expsym_cmds=
8118   old_archive_from_new_cmds=
8119   old_archive_from_expsyms_cmds=
8120   thread_safe_flag_spec=
8121   whole_archive_flag_spec=
8122   # include_expsyms should be a list of space-separated symbols to be *always*
8123   # included in the symbol list
8124   include_expsyms=
8125   # exclude_expsyms can be an extended regexp of symbols to exclude
8126   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8127   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8128   # as well as any symbol that contains `d'.
8129   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8130   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8131   # platforms (ab)use it in PIC code, but their linkers get confused if
8132   # the symbol is explicitly referenced.  Since portable code cannot
8133   # rely on this symbol name, it's probably fine to never include it in
8134   # preloaded symbol tables.
8135   # Exclude shared library initialization/finalization symbols.
8136   extract_expsyms_cmds=
8137
8138   case $host_os in
8139   cygwin* | mingw* | pw32*)
8140     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8141     # When not using gcc, we currently assume that we are using
8142     # Microsoft Visual C++.
8143     if test "$GCC" != yes; then
8144       with_gnu_ld=no
8145     fi
8146     ;;
8147   interix*)
8148     # we just hope/assume this is gcc and not c89 (= MSVC++)
8149     with_gnu_ld=yes
8150     ;;
8151   openbsd*)
8152     with_gnu_ld=no
8153     ;;
8154   esac
8155
8156   ld_shlibs=yes
8157   if test "$with_gnu_ld" = yes; then
8158     # If archive_cmds runs LD, not CC, wlarc should be empty
8159     wlarc='${wl}'
8160
8161     # Set some defaults for GNU ld with shared library support. These
8162     # are reset later if shared libraries are not supported. Putting them
8163     # here allows them to be overridden if necessary.
8164     runpath_var=LD_RUN_PATH
8165     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8166     export_dynamic_flag_spec='${wl}--export-dynamic'
8167     # ancient GNU ld didn't support --whole-archive et. al.
8168     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8169       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8170     else
8171       whole_archive_flag_spec=
8172     fi
8173     supports_anon_versioning=no
8174     case `$LD -v 2>&1` in
8175       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8176       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8177       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8178       *\ 2.11.*) ;; # other 2.11 versions
8179       *) supports_anon_versioning=yes ;;
8180     esac
8181
8182     # See if GNU ld supports shared libraries.
8183     case $host_os in
8184     aix[3-9]*)
8185       # On AIX/PPC, the GNU linker is very broken
8186       if test "$host_cpu" != ia64; then
8187         ld_shlibs=no
8188         cat <<_LT_EOF 1>&2
8189
8190 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8191 *** to be unable to reliably create shared libraries on AIX.
8192 *** Therefore, libtool is disabling shared libraries support.  If you
8193 *** really care for shared libraries, you may want to modify your PATH
8194 *** so that a non-GNU linker is found, and then restart.
8195
8196 _LT_EOF
8197       fi
8198       ;;
8199
8200     amigaos*)
8201       case $host_cpu in
8202       powerpc)
8203             # see comment about AmigaOS4 .so support
8204             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8205             archive_expsym_cmds=''
8206         ;;
8207       m68k)
8208             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)'
8209             hardcode_libdir_flag_spec='-L$libdir'
8210             hardcode_minus_L=yes
8211         ;;
8212       esac
8213       ;;
8214
8215     beos*)
8216       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8217         allow_undefined_flag=unsupported
8218         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8219         # support --undefined.  This deserves some investigation.  FIXME
8220         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8221       else
8222         ld_shlibs=no
8223       fi
8224       ;;
8225
8226     cygwin* | mingw* | pw32*)
8227       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8228       # as there is no search path for DLLs.
8229       hardcode_libdir_flag_spec='-L$libdir'
8230       allow_undefined_flag=unsupported
8231       always_export_symbols=no
8232       enable_shared_with_static_runtimes=yes
8233       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8234
8235       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8236         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8237         # If the export-symbols file already is a .def file (1st line
8238         # is EXPORTS), use it as is; otherwise, prepend...
8239         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8240           cp $export_symbols $output_objdir/$soname.def;
8241         else
8242           echo EXPORTS > $output_objdir/$soname.def;
8243           cat $export_symbols >> $output_objdir/$soname.def;
8244         fi~
8245         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8246       else
8247         ld_shlibs=no
8248       fi
8249       ;;
8250
8251     interix[3-9]*)
8252       hardcode_direct=no
8253       hardcode_shlibpath_var=no
8254       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8255       export_dynamic_flag_spec='${wl}-E'
8256       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8257       # Instead, shared libraries are loaded at an image base (0x10000000 by
8258       # default) and relocated if they conflict, which is a slow very memory
8259       # consuming and fragmenting process.  To avoid this, we pick a random,
8260       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8261       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8262       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8263       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'
8264       ;;
8265
8266     gnu* | linux* | tpf* | k*bsd*-gnu)
8267       tmp_diet=no
8268       if test "$host_os" = linux-dietlibc; then
8269         case $cc_basename in
8270           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8271         esac
8272       fi
8273       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8274          && test "$tmp_diet" = no
8275       then
8276         tmp_addflag=
8277         tmp_sharedflag='-shared'
8278         case $cc_basename,$host_cpu in
8279         pgcc*)                          # Portland Group C compiler
8280           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'
8281           tmp_addflag=' $pic_flag'
8282           ;;
8283         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8284           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'
8285           tmp_addflag=' $pic_flag -Mnomain' ;;
8286         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8287           tmp_addflag=' -i_dynamic' ;;
8288         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8289           tmp_addflag=' -i_dynamic -nofor_main' ;;
8290         ifc* | ifort*)                  # Intel Fortran compiler
8291           tmp_addflag=' -nofor_main' ;;
8292         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8293           tmp_sharedflag='-qmkshrobj'
8294           tmp_addflag= ;;
8295         esac
8296         case `$CC -V 2>&1 | sed 5q` in
8297         *Sun\ C*)                       # Sun C 5.9
8298           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'
8299           compiler_needs_object=yes
8300           tmp_sharedflag='-G' ;;
8301         *Sun\ F*)                       # Sun Fortran 8.3
8302           tmp_sharedflag='-G' ;;
8303         esac
8304         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8305
8306         if test "x$supports_anon_versioning" = xyes; then
8307           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8308             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8309             echo "local: *; };" >> $output_objdir/$libname.ver~
8310             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8311         fi
8312
8313         case $cc_basename in
8314         xlf*)
8315           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8316           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8317           hardcode_libdir_flag_spec=
8318           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8319           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8320           if test "x$supports_anon_versioning" = xyes; then
8321             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8322               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8323               echo "local: *; };" >> $output_objdir/$libname.ver~
8324               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8325           fi
8326           ;;
8327         esac
8328       else
8329         ld_shlibs=no
8330       fi
8331       ;;
8332
8333     netbsd*)
8334       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8335         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8336         wlarc=
8337       else
8338         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8339         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8340       fi
8341       ;;
8342
8343     solaris*)
8344       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8345         ld_shlibs=no
8346         cat <<_LT_EOF 1>&2
8347
8348 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8349 *** create shared libraries on Solaris systems.  Therefore, libtool
8350 *** is disabling shared libraries support.  We urge you to upgrade GNU
8351 *** binutils to release 2.9.1 or newer.  Another option is to modify
8352 *** your PATH or compiler configuration so that the native linker is
8353 *** used, and then restart.
8354
8355 _LT_EOF
8356       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8357         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8358         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8359       else
8360         ld_shlibs=no
8361       fi
8362       ;;
8363
8364     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8365       case `$LD -v 2>&1` in
8366         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8367         ld_shlibs=no
8368         cat <<_LT_EOF 1>&2
8369
8370 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8371 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8372 *** is disabling shared libraries support.  We urge you to upgrade GNU
8373 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8374 *** your PATH or compiler configuration so that the native linker is
8375 *** used, and then restart.
8376
8377 _LT_EOF
8378         ;;
8379         *)
8380           # For security reasons, it is highly recommended that you always
8381           # use absolute paths for naming shared libraries, and exclude the
8382           # DT_RUNPATH tag from executables and libraries.  But doing so
8383           # requires that you compile everything twice, which is a pain.
8384           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8385             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8386             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8387             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8388           else
8389             ld_shlibs=no
8390           fi
8391         ;;
8392       esac
8393       ;;
8394
8395     sunos4*)
8396       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8397       wlarc=
8398       hardcode_direct=yes
8399       hardcode_shlibpath_var=no
8400       ;;
8401
8402     *)
8403       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8404         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8405         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8406       else
8407         ld_shlibs=no
8408       fi
8409       ;;
8410     esac
8411
8412     if test "$ld_shlibs" = no; then
8413       runpath_var=
8414       hardcode_libdir_flag_spec=
8415       export_dynamic_flag_spec=
8416       whole_archive_flag_spec=
8417     fi
8418   else
8419     # PORTME fill in a description of your system's linker (not GNU ld)
8420     case $host_os in
8421     aix3*)
8422       allow_undefined_flag=unsupported
8423       always_export_symbols=yes
8424       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'
8425       # Note: this linker hardcodes the directories in LIBPATH if there
8426       # are no directories specified by -L.
8427       hardcode_minus_L=yes
8428       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8429         # Neither direct hardcoding nor static linking is supported with a
8430         # broken collect2.
8431         hardcode_direct=unsupported
8432       fi
8433       ;;
8434
8435     aix[4-9]*)
8436       if test "$host_cpu" = ia64; then
8437         # On IA64, the linker does run time linking by default, so we don't
8438         # have to do anything special.
8439         aix_use_runtimelinking=no
8440         exp_sym_flag='-Bexport'
8441         no_entry_flag=""
8442       else
8443         # If we're using GNU nm, then we don't want the "-C" option.
8444         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8445         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8446           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'
8447         else
8448           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'
8449         fi
8450         aix_use_runtimelinking=no
8451
8452         # Test if we are trying to use run time linking or normal
8453         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8454         # need to do runtime linking.
8455         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8456           for ld_flag in $LDFLAGS; do
8457           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8458             aix_use_runtimelinking=yes
8459             break
8460           fi
8461           done
8462           ;;
8463         esac
8464
8465         exp_sym_flag='-bexport'
8466         no_entry_flag='-bnoentry'
8467       fi
8468
8469       # When large executables or shared objects are built, AIX ld can
8470       # have problems creating the table of contents.  If linking a library
8471       # or program results in "error TOC overflow" add -mminimal-toc to
8472       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8473       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8474
8475       archive_cmds=''
8476       hardcode_direct=yes
8477       hardcode_direct_absolute=yes
8478       hardcode_libdir_separator=':'
8479       link_all_deplibs=yes
8480       file_list_spec='${wl}-f,'
8481
8482       if test "$GCC" = yes; then
8483         case $host_os in aix4.[012]|aix4.[012].*)
8484         # We only want to do this on AIX 4.2 and lower, the check
8485         # below for broken collect2 doesn't work under 4.3+
8486           collect2name=`${CC} -print-prog-name=collect2`
8487           if test -f "$collect2name" &&
8488            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8489           then
8490           # We have reworked collect2
8491           :
8492           else
8493           # We have old collect2
8494           hardcode_direct=unsupported
8495           # It fails to find uninstalled libraries when the uninstalled
8496           # path is not listed in the libpath.  Setting hardcode_minus_L
8497           # to unsupported forces relinking
8498           hardcode_minus_L=yes
8499           hardcode_libdir_flag_spec='-L$libdir'
8500           hardcode_libdir_separator=
8501           fi
8502           ;;
8503         esac
8504         shared_flag='-shared'
8505         if test "$aix_use_runtimelinking" = yes; then
8506           shared_flag="$shared_flag "'${wl}-G'
8507         fi
8508       else
8509         # not using gcc
8510         if test "$host_cpu" = ia64; then
8511         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8512         # chokes on -Wl,-G. The following line is correct:
8513           shared_flag='-G'
8514         else
8515           if test "$aix_use_runtimelinking" = yes; then
8516             shared_flag='${wl}-G'
8517           else
8518             shared_flag='${wl}-bM:SRE'
8519           fi
8520         fi
8521       fi
8522
8523       # It seems that -bexpall does not export symbols beginning with
8524       # underscore (_), so it is better to generate a list of symbols to export.
8525       always_export_symbols=yes
8526       if test "$aix_use_runtimelinking" = yes; then
8527         # Warning - without using the other runtime loading flags (-brtl),
8528         # -berok will link without error, but may produce a broken library.
8529         allow_undefined_flag='-berok'
8530         # Determine the default libpath from the value encoded in an
8531         # empty executable.
8532         cat >conftest.$ac_ext <<_ACEOF
8533 /* confdefs.h.  */
8534 _ACEOF
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h.  */
8538
8539 int
8540 main ()
8541 {
8542
8543   ;
8544   return 0;
8545 }
8546 _ACEOF
8547 rm -f conftest.$ac_objext conftest$ac_exeext
8548 if { (ac_try="$ac_link"
8549 case "(($ac_try" in
8550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551   *) ac_try_echo=$ac_try;;
8552 esac
8553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8554   (eval "$ac_link") 2>conftest.er1
8555   ac_status=$?
8556   grep -v '^ *+' conftest.er1 >conftest.err
8557   rm -f conftest.er1
8558   cat conftest.err >&5
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); } && {
8561          test -z "$ac_c_werror_flag" ||
8562          test ! -s conftest.err
8563        } && test -s conftest$ac_exeext &&
8564        $as_test_x conftest$ac_exeext; then
8565
8566 lt_aix_libpath_sed='
8567     /Import File Strings/,/^$/ {
8568         /^0/ {
8569             s/^0  *\(.*\)$/\1/
8570             p
8571         }
8572     }'
8573 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8574 # Check for a 64-bit object if we didn't find anything.
8575 if test -z "$aix_libpath"; then
8576   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8577 fi
8578 else
8579   echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8581
8582
8583 fi
8584
8585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8586       conftest$ac_exeext conftest.$ac_ext
8587 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8588
8589         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8590         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"
8591       else
8592         if test "$host_cpu" = ia64; then
8593           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8594           allow_undefined_flag="-z nodefs"
8595           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"
8596         else
8597          # Determine the default libpath from the value encoded in an
8598          # empty executable.
8599          cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h.  */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h.  */
8605
8606 int
8607 main ()
8608 {
8609
8610   ;
8611   return 0;
8612 }
8613 _ACEOF
8614 rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (ac_try="$ac_link"
8616 case "(($ac_try" in
8617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618   *) ac_try_echo=$ac_try;;
8619 esac
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621   (eval "$ac_link") 2>conftest.er1
8622   ac_status=$?
8623   grep -v '^ *+' conftest.er1 >conftest.err
8624   rm -f conftest.er1
8625   cat conftest.err >&5
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); } && {
8628          test -z "$ac_c_werror_flag" ||
8629          test ! -s conftest.err
8630        } && test -s conftest$ac_exeext &&
8631        $as_test_x conftest$ac_exeext; then
8632
8633 lt_aix_libpath_sed='
8634     /Import File Strings/,/^$/ {
8635         /^0/ {
8636             s/^0  *\(.*\)$/\1/
8637             p
8638         }
8639     }'
8640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8641 # Check for a 64-bit object if we didn't find anything.
8642 if test -z "$aix_libpath"; then
8643   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8644 fi
8645 else
8646   echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8648
8649
8650 fi
8651
8652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8653       conftest$ac_exeext conftest.$ac_ext
8654 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8655
8656          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8657           # Warning - without using the other run time loading flags,
8658           # -berok will link without error, but may produce a broken library.
8659           no_undefined_flag=' ${wl}-bernotok'
8660           allow_undefined_flag=' ${wl}-berok'
8661           # Exported symbols can be pulled into shared objects from archives
8662           whole_archive_flag_spec='$convenience'
8663           archive_cmds_need_lc=yes
8664           # This is similar to how AIX traditionally builds its shared libraries.
8665           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'
8666         fi
8667       fi
8668       ;;
8669
8670     amigaos*)
8671       case $host_cpu in
8672       powerpc)
8673             # see comment about AmigaOS4 .so support
8674             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8675             archive_expsym_cmds=''
8676         ;;
8677       m68k)
8678             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)'
8679             hardcode_libdir_flag_spec='-L$libdir'
8680             hardcode_minus_L=yes
8681         ;;
8682       esac
8683       ;;
8684
8685     bsdi[45]*)
8686       export_dynamic_flag_spec=-rdynamic
8687       ;;
8688
8689     cygwin* | mingw* | pw32*)
8690       # When not using gcc, we currently assume that we are using
8691       # Microsoft Visual C++.
8692       # hardcode_libdir_flag_spec is actually meaningless, as there is
8693       # no search path for DLLs.
8694       hardcode_libdir_flag_spec=' '
8695       allow_undefined_flag=unsupported
8696       # Tell ltmain to make .lib files, not .a files.
8697       libext=lib
8698       # Tell ltmain to make .dll files, not .so files.
8699       shrext_cmds=".dll"
8700       # FIXME: Setting linknames here is a bad hack.
8701       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8702       # The linker will automatically build a .lib file if we build a DLL.
8703       old_archive_from_new_cmds='true'
8704       # FIXME: Should let the user specify the lib program.
8705       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8706       fix_srcfile_path='`cygpath -w "$srcfile"`'
8707       enable_shared_with_static_runtimes=yes
8708       ;;
8709
8710     darwin* | rhapsody*)
8711
8712
8713   archive_cmds_need_lc=no
8714   hardcode_direct=no
8715   hardcode_automatic=yes
8716   hardcode_shlibpath_var=unsupported
8717   whole_archive_flag_spec=''
8718   link_all_deplibs=yes
8719   allow_undefined_flag="$_lt_dar_allow_undefined"
8720   if test "$GCC" = "yes"; then
8721     output_verbose_link_cmd=echo
8722     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8723     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8724     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}"
8725     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}"
8726
8727   else
8728   ld_shlibs=no
8729   fi
8730
8731       ;;
8732
8733     dgux*)
8734       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8735       hardcode_libdir_flag_spec='-L$libdir'
8736       hardcode_shlibpath_var=no
8737       ;;
8738
8739     freebsd1*)
8740       ld_shlibs=no
8741       ;;
8742
8743     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8744     # support.  Future versions do this automatically, but an explicit c++rt0.o
8745     # does not break anything, and helps significantly (at the cost of a little
8746     # extra space).
8747     freebsd2.2*)
8748       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8749       hardcode_libdir_flag_spec='-R$libdir'
8750       hardcode_direct=yes
8751       hardcode_shlibpath_var=no
8752       ;;
8753
8754     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8755     freebsd2*)
8756       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8757       hardcode_direct=yes
8758       hardcode_minus_L=yes
8759       hardcode_shlibpath_var=no
8760       ;;
8761
8762     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8763     freebsd* | dragonfly*)
8764       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8765       hardcode_libdir_flag_spec='-R$libdir'
8766       hardcode_direct=yes
8767       hardcode_shlibpath_var=no
8768       ;;
8769
8770     hpux9*)
8771       if test "$GCC" = yes; then
8772         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'
8773       else
8774         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'
8775       fi
8776       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8777       hardcode_libdir_separator=:
8778       hardcode_direct=yes
8779
8780       # hardcode_minus_L: Not really in the search PATH,
8781       # but as the default location of the library.
8782       hardcode_minus_L=yes
8783       export_dynamic_flag_spec='${wl}-E'
8784       ;;
8785
8786     hpux10*)
8787       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8788         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8789       else
8790         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8791       fi
8792       if test "$with_gnu_ld" = no; then
8793         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8794         hardcode_libdir_flag_spec_ld='+b $libdir'
8795         hardcode_libdir_separator=:
8796         hardcode_direct=yes
8797         hardcode_direct_absolute=yes
8798         export_dynamic_flag_spec='${wl}-E'
8799         # hardcode_minus_L: Not really in the search PATH,
8800         # but as the default location of the library.
8801         hardcode_minus_L=yes
8802       fi
8803       ;;
8804
8805     hpux11*)
8806       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8807         case $host_cpu in
8808         hppa*64*)
8809           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8810           ;;
8811         ia64*)
8812           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8813           ;;
8814         *)
8815           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8816           ;;
8817         esac
8818       else
8819         case $host_cpu in
8820         hppa*64*)
8821           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8822           ;;
8823         ia64*)
8824           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8825           ;;
8826         *)
8827           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8828           ;;
8829         esac
8830       fi
8831       if test "$with_gnu_ld" = no; then
8832         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8833         hardcode_libdir_separator=:
8834
8835         case $host_cpu in
8836         hppa*64*|ia64*)
8837           hardcode_direct=no
8838           hardcode_shlibpath_var=no
8839           ;;
8840         *)
8841           hardcode_direct=yes
8842           hardcode_direct_absolute=yes
8843           export_dynamic_flag_spec='${wl}-E'
8844
8845           # hardcode_minus_L: Not really in the search PATH,
8846           # but as the default location of the library.
8847           hardcode_minus_L=yes
8848           ;;
8849         esac
8850       fi
8851       ;;
8852
8853     irix5* | irix6* | nonstopux*)
8854       if test "$GCC" = yes; then
8855         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'
8856         # Try to use the -exported_symbol ld option, if it does not
8857         # work, assume that -exports_file does not work either and
8858         # implicitly export all symbols.
8859         save_LDFLAGS="$LDFLAGS"
8860         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8861         cat >conftest.$ac_ext <<_ACEOF
8862 int foo(void) {}
8863 _ACEOF
8864 rm -f conftest.$ac_objext conftest$ac_exeext
8865 if { (ac_try="$ac_link"
8866 case "(($ac_try" in
8867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868   *) ac_try_echo=$ac_try;;
8869 esac
8870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871   (eval "$ac_link") 2>conftest.er1
8872   ac_status=$?
8873   grep -v '^ *+' conftest.er1 >conftest.err
8874   rm -f conftest.er1
8875   cat conftest.err >&5
8876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877   (exit $ac_status); } && {
8878          test -z "$ac_c_werror_flag" ||
8879          test ! -s conftest.err
8880        } && test -s conftest$ac_exeext &&
8881        $as_test_x conftest$ac_exeext; then
8882   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'
8883
8884 else
8885   echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8887
8888
8889 fi
8890
8891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8892       conftest$ac_exeext conftest.$ac_ext
8893         LDFLAGS="$save_LDFLAGS"
8894       else
8895         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'
8896         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'
8897       fi
8898       archive_cmds_need_lc='no'
8899       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8900       hardcode_libdir_separator=:
8901       inherit_rpath=yes
8902       link_all_deplibs=yes
8903       ;;
8904
8905     netbsd*)
8906       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8907         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8908       else
8909         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8910       fi
8911       hardcode_libdir_flag_spec='-R$libdir'
8912       hardcode_direct=yes
8913       hardcode_shlibpath_var=no
8914       ;;
8915
8916     newsos6)
8917       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8918       hardcode_direct=yes
8919       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8920       hardcode_libdir_separator=:
8921       hardcode_shlibpath_var=no
8922       ;;
8923
8924     *nto* | *qnx*)
8925       ;;
8926
8927     openbsd*)
8928       if test -f /usr/libexec/ld.so; then
8929         hardcode_direct=yes
8930         hardcode_shlibpath_var=no
8931         hardcode_direct_absolute=yes
8932         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8933           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8934           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8935           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8936           export_dynamic_flag_spec='${wl}-E'
8937         else
8938           case $host_os in
8939            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8940              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8941              hardcode_libdir_flag_spec='-R$libdir'
8942              ;;
8943            *)
8944              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8945              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8946              ;;
8947           esac
8948         fi
8949       else
8950         ld_shlibs=no
8951       fi
8952       ;;
8953
8954     os2*)
8955       hardcode_libdir_flag_spec='-L$libdir'
8956       hardcode_minus_L=yes
8957       allow_undefined_flag=unsupported
8958       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'
8959       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8960       ;;
8961
8962     osf3*)
8963       if test "$GCC" = yes; then
8964         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8965         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'
8966       else
8967         allow_undefined_flag=' -expect_unresolved \*'
8968         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'
8969       fi
8970       archive_cmds_need_lc='no'
8971       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8972       hardcode_libdir_separator=:
8973       ;;
8974
8975     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8976       if test "$GCC" = yes; then
8977         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8978         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'
8979         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8980       else
8981         allow_undefined_flag=' -expect_unresolved \*'
8982         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'
8983         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~
8984         $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'
8985
8986         # Both c and cxx compiler support -rpath directly
8987         hardcode_libdir_flag_spec='-rpath $libdir'
8988       fi
8989       archive_cmds_need_lc='no'
8990       hardcode_libdir_separator=:
8991       ;;
8992
8993     solaris*)
8994       no_undefined_flag=' -z defs'
8995       if test "$GCC" = yes; then
8996         wlarc='${wl}'
8997         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8998         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8999           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9000       else
9001         case `$CC -V 2>&1` in
9002         *"Compilers 5.0"*)
9003           wlarc=''
9004           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9005           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9006           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9007           ;;
9008         *)
9009           wlarc='${wl}'
9010           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9011           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9012           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9013           ;;
9014         esac
9015       fi
9016       hardcode_libdir_flag_spec='-R$libdir'
9017       hardcode_shlibpath_var=no
9018       case $host_os in
9019       solaris2.[0-5] | solaris2.[0-5].*) ;;
9020       *)
9021         # The compiler driver will combine and reorder linker options,
9022         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9023         # but is careful enough not to reorder.
9024         # Supported since Solaris 2.6 (maybe 2.5.1?)
9025         if test "$GCC" = yes; then
9026           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9027         else
9028           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9029         fi
9030         ;;
9031       esac
9032       link_all_deplibs=yes
9033       ;;
9034
9035     sunos4*)
9036       if test "x$host_vendor" = xsequent; then
9037         # Use $CC to link under sequent, because it throws in some extra .o
9038         # files that make .init and .fini sections work.
9039         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9040       else
9041         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9042       fi
9043       hardcode_libdir_flag_spec='-L$libdir'
9044       hardcode_direct=yes
9045       hardcode_minus_L=yes
9046       hardcode_shlibpath_var=no
9047       ;;
9048
9049     sysv4)
9050       case $host_vendor in
9051         sni)
9052           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9053           hardcode_direct=yes # is this really true???
9054         ;;
9055         siemens)
9056           ## LD is ld it makes a PLAMLIB
9057           ## CC just makes a GrossModule.
9058           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9059           reload_cmds='$CC -r -o $output$reload_objs'
9060           hardcode_direct=no
9061         ;;
9062         motorola)
9063           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9064           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9065         ;;
9066       esac
9067       runpath_var='LD_RUN_PATH'
9068       hardcode_shlibpath_var=no
9069       ;;
9070
9071     sysv4.3*)
9072       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9073       hardcode_shlibpath_var=no
9074       export_dynamic_flag_spec='-Bexport'
9075       ;;
9076
9077     sysv4*MP*)
9078       if test -d /usr/nec; then
9079         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9080         hardcode_shlibpath_var=no
9081         runpath_var=LD_RUN_PATH
9082         hardcode_runpath_var=yes
9083         ld_shlibs=yes
9084       fi
9085       ;;
9086
9087     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9088       no_undefined_flag='${wl}-z,text'
9089       archive_cmds_need_lc=no
9090       hardcode_shlibpath_var=no
9091       runpath_var='LD_RUN_PATH'
9092
9093       if test "$GCC" = yes; then
9094         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9095         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9096       else
9097         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9098         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9099       fi
9100       ;;
9101
9102     sysv5* | sco3.2v5* | sco5v6*)
9103       # Note: We can NOT use -z defs as we might desire, because we do not
9104       # link with -lc, and that would cause any symbols used from libc to
9105       # always be unresolved, which means just about no library would
9106       # ever link correctly.  If we're not using GNU ld we use -z text
9107       # though, which does catch some bad symbols but isn't as heavy-handed
9108       # as -z defs.
9109       no_undefined_flag='${wl}-z,text'
9110       allow_undefined_flag='${wl}-z,nodefs'
9111       archive_cmds_need_lc=no
9112       hardcode_shlibpath_var=no
9113       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9114       hardcode_libdir_separator=':'
9115       link_all_deplibs=yes
9116       export_dynamic_flag_spec='${wl}-Bexport'
9117       runpath_var='LD_RUN_PATH'
9118
9119       if test "$GCC" = yes; then
9120         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9121         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9122       else
9123         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9124         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9125       fi
9126       ;;
9127
9128     uts4*)
9129       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9130       hardcode_libdir_flag_spec='-L$libdir'
9131       hardcode_shlibpath_var=no
9132       ;;
9133
9134     *)
9135       ld_shlibs=no
9136       ;;
9137     esac
9138
9139     if test x$host_vendor = xsni; then
9140       case $host in
9141       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9142         export_dynamic_flag_spec='${wl}-Blargedynsym'
9143         ;;
9144       esac
9145     fi
9146   fi
9147
9148 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9149 echo "${ECHO_T}$ld_shlibs" >&6; }
9150 test "$ld_shlibs" = no && can_build_shared=no
9151
9152 with_gnu_ld=$with_gnu_ld
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168 #
9169 # Do we need to explicitly link libc?
9170 #
9171 case "x$archive_cmds_need_lc" in
9172 x|xyes)
9173   # Assume -lc should be added
9174   archive_cmds_need_lc=yes
9175
9176   if test "$enable_shared" = yes && test "$GCC" = yes; then
9177     case $archive_cmds in
9178     *'~'*)
9179       # FIXME: we may have to deal with multi-command sequences.
9180       ;;
9181     '$CC '*)
9182       # Test whether the compiler implicitly links with -lc since on some
9183       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9184       # to ld, don't add -lc before -lgcc.
9185       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9186 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9187       $RM conftest*
9188       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9189
9190       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9191   (eval $ac_compile) 2>&5
9192   ac_status=$?
9193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194   (exit $ac_status); } 2>conftest.err; then
9195         soname=conftest
9196         lib=conftest
9197         libobjs=conftest.$ac_objext
9198         deplibs=
9199         wl=$lt_prog_compiler_wl
9200         pic_flag=$lt_prog_compiler_pic
9201         compiler_flags=-v
9202         linker_flags=-v
9203         verstring=
9204         output_objdir=.
9205         libname=conftest
9206         lt_save_allow_undefined_flag=$allow_undefined_flag
9207         allow_undefined_flag=
9208         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9209   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9210   ac_status=$?
9211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212   (exit $ac_status); }
9213         then
9214           archive_cmds_need_lc=no
9215         else
9216           archive_cmds_need_lc=yes
9217         fi
9218         allow_undefined_flag=$lt_save_allow_undefined_flag
9219       else
9220         cat conftest.err 1>&5
9221       fi
9222       $RM conftest*
9223       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9224 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9225       ;;
9226     esac
9227   fi
9228   ;;
9229 esac
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
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   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9388 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9389
9390 if test "$GCC" = yes; then
9391   case $host_os in
9392     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9393     *) lt_awk_arg="/^libraries:/" ;;
9394   esac
9395   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9396   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9397     # if the path contains ";" then we assume it to be the separator
9398     # otherwise default to the standard path separator (i.e. ":") - it is
9399     # assumed that no part of a normal pathname contains ";" but that should
9400     # okay in the real world where ";" in dirpaths is itself problematic.
9401     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9402   else
9403     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9404   fi
9405   # Ok, now we have the path, separated by spaces, we can step through it
9406   # and add multilib dir if necessary.
9407   lt_tmp_lt_search_path_spec=
9408   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9409   for lt_sys_path in $lt_search_path_spec; do
9410     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9411       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9412     else
9413       test -d "$lt_sys_path" && \
9414         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9415     fi
9416   done
9417   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9418 BEGIN {RS=" "; FS="/|\n";} {
9419   lt_foo="";
9420   lt_count=0;
9421   for (lt_i = NF; lt_i > 0; lt_i--) {
9422     if ($lt_i != "" && $lt_i != ".") {
9423       if ($lt_i == "..") {
9424         lt_count++;
9425       } else {
9426         if (lt_count == 0) {
9427           lt_foo="/" $lt_i lt_foo;
9428         } else {
9429           lt_count--;
9430         }
9431       }
9432     }
9433   }
9434   if (lt_foo != "") { lt_freq[lt_foo]++; }
9435   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9436 }'`
9437   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9438 else
9439   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9440 fi
9441 library_names_spec=
9442 libname_spec='lib$name'
9443 soname_spec=
9444 shrext_cmds=".so"
9445 postinstall_cmds=
9446 postuninstall_cmds=
9447 finish_cmds=
9448 finish_eval=
9449 shlibpath_var=
9450 shlibpath_overrides_runpath=unknown
9451 version_type=none
9452 dynamic_linker="$host_os ld.so"
9453 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9454 need_lib_prefix=unknown
9455 hardcode_into_libs=no
9456
9457 # when you set need_version to no, make sure it does not cause -set_version
9458 # flags to be left without arguments
9459 need_version=unknown
9460
9461 case $host_os in
9462 aix3*)
9463   version_type=linux
9464   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9465   shlibpath_var=LIBPATH
9466
9467   # AIX 3 has no versioning support, so we append a major version to the name.
9468   soname_spec='${libname}${release}${shared_ext}$major'
9469   ;;
9470
9471 aix[4-9]*)
9472   version_type=linux
9473   need_lib_prefix=no
9474   need_version=no
9475   hardcode_into_libs=yes
9476   if test "$host_cpu" = ia64; then
9477     # AIX 5 supports IA64
9478     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9479     shlibpath_var=LD_LIBRARY_PATH
9480   else
9481     # With GCC up to 2.95.x, collect2 would create an import file
9482     # for dependence libraries.  The import file would start with
9483     # the line `#! .'.  This would cause the generated library to
9484     # depend on `.', always an invalid library.  This was fixed in
9485     # development snapshots of GCC prior to 3.0.
9486     case $host_os in
9487       aix4 | aix4.[01] | aix4.[01].*)
9488       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9489            echo ' yes '
9490            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9491         :
9492       else
9493         can_build_shared=no
9494       fi
9495       ;;
9496     esac
9497     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9498     # soname into executable. Probably we can add versioning support to
9499     # collect2, so additional links can be useful in future.
9500     if test "$aix_use_runtimelinking" = yes; then
9501       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9502       # instead of lib<name>.a to let people know that these are not
9503       # typical AIX shared libraries.
9504       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9505     else
9506       # We preserve .a as extension for shared libraries through AIX4.2
9507       # and later when we are not doing run time linking.
9508       library_names_spec='${libname}${release}.a $libname.a'
9509       soname_spec='${libname}${release}${shared_ext}$major'
9510     fi
9511     shlibpath_var=LIBPATH
9512   fi
9513   ;;
9514
9515 amigaos*)
9516   case $host_cpu in
9517   powerpc)
9518     # Since July 2007 AmigaOS4 officially supports .so libraries.
9519     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9520     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521     ;;
9522   m68k)
9523     library_names_spec='$libname.ixlibrary $libname.a'
9524     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9525     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'
9526     ;;
9527   esac
9528   ;;
9529
9530 beos*)
9531   library_names_spec='${libname}${shared_ext}'
9532   dynamic_linker="$host_os ld.so"
9533   shlibpath_var=LIBRARY_PATH
9534   ;;
9535
9536 bsdi[45]*)
9537   version_type=linux
9538   need_version=no
9539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540   soname_spec='${libname}${release}${shared_ext}$major'
9541   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9542   shlibpath_var=LD_LIBRARY_PATH
9543   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9544   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9545   # the default ld.so.conf also contains /usr/contrib/lib and
9546   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9547   # libtool to hard-code these into programs
9548   ;;
9549
9550 cygwin* | mingw* | pw32*)
9551   version_type=windows
9552   shrext_cmds=".dll"
9553   need_version=no
9554   need_lib_prefix=no
9555
9556   case $GCC,$host_os in
9557   yes,cygwin* | yes,mingw* | yes,pw32*)
9558     library_names_spec='$libname.dll.a'
9559     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9560     postinstall_cmds='base_file=`basename \${file}`~
9561       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9562       dldir=$destdir/`dirname \$dlpath`~
9563       test -d \$dldir || mkdir -p \$dldir~
9564       $install_prog $dir/$dlname \$dldir/$dlname~
9565       chmod a+x \$dldir/$dlname~
9566       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9567         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9568       fi'
9569     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9570       dlpath=$dir/\$dldll~
9571        $RM \$dlpath'
9572     shlibpath_overrides_runpath=yes
9573
9574     case $host_os in
9575     cygwin*)
9576       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9577       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9578       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9579       ;;
9580     mingw*)
9581       # MinGW DLLs use traditional 'lib' prefix
9582       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9583       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9584       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9585         # It is most probably a Windows format PATH printed by
9586         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9587         # path with ; separators, and with drive letters. We can handle the
9588         # drive letters (cygwin fileutils understands them), so leave them,
9589         # especially as we might pass files found there to a mingw objdump,
9590         # which wouldn't understand a cygwinified path. Ahh.
9591         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9592       else
9593         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9594       fi
9595       ;;
9596     pw32*)
9597       # pw32 DLLs use 'pw' prefix rather than 'lib'
9598       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9599       ;;
9600     esac
9601     ;;
9602
9603   *)
9604     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9605     ;;
9606   esac
9607   dynamic_linker='Win32 ld.exe'
9608   # FIXME: first we should search . and the directory the executable is in
9609   shlibpath_var=PATH
9610   ;;
9611
9612 darwin* | rhapsody*)
9613   dynamic_linker="$host_os dyld"
9614   version_type=darwin
9615   need_lib_prefix=no
9616   need_version=no
9617   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9618   soname_spec='${libname}${release}${major}$shared_ext'
9619   shlibpath_overrides_runpath=yes
9620   shlibpath_var=DYLD_LIBRARY_PATH
9621   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9622
9623   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9624   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9625   ;;
9626
9627 dgux*)
9628   version_type=linux
9629   need_lib_prefix=no
9630   need_version=no
9631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9632   soname_spec='${libname}${release}${shared_ext}$major'
9633   shlibpath_var=LD_LIBRARY_PATH
9634   ;;
9635
9636 freebsd1*)
9637   dynamic_linker=no
9638   ;;
9639
9640 freebsd* | dragonfly*)
9641   # DragonFly does not have aout.  When/if they implement a new
9642   # versioning mechanism, adjust this.
9643   if test -x /usr/bin/objformat; then
9644     objformat=`/usr/bin/objformat`
9645   else
9646     case $host_os in
9647     freebsd[123]*) objformat=aout ;;
9648     *) objformat=elf ;;
9649     esac
9650   fi
9651   version_type=freebsd-$objformat
9652   case $version_type in
9653     freebsd-elf*)
9654       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9655       need_version=no
9656       need_lib_prefix=no
9657       ;;
9658     freebsd-*)
9659       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9660       need_version=yes
9661       ;;
9662   esac
9663   shlibpath_var=LD_LIBRARY_PATH
9664   case $host_os in
9665   freebsd2*)
9666     shlibpath_overrides_runpath=yes
9667     ;;
9668   freebsd3.[01]* | freebsdelf3.[01]*)
9669     shlibpath_overrides_runpath=yes
9670     hardcode_into_libs=yes
9671     ;;
9672   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9673   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9674     shlibpath_overrides_runpath=no
9675     hardcode_into_libs=yes
9676     ;;
9677   *) # from 4.6 on, and DragonFly
9678     shlibpath_overrides_runpath=yes
9679     hardcode_into_libs=yes
9680     ;;
9681   esac
9682   ;;
9683
9684 gnu*)
9685   version_type=linux
9686   need_lib_prefix=no
9687   need_version=no
9688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9689   soname_spec='${libname}${release}${shared_ext}$major'
9690   shlibpath_var=LD_LIBRARY_PATH
9691   hardcode_into_libs=yes
9692   ;;
9693
9694 hpux9* | hpux10* | hpux11*)
9695   # Give a soname corresponding to the major version so that dld.sl refuses to
9696   # link against other versions.
9697   version_type=sunos
9698   need_lib_prefix=no
9699   need_version=no
9700   case $host_cpu in
9701   ia64*)
9702     shrext_cmds='.so'
9703     hardcode_into_libs=yes
9704     dynamic_linker="$host_os dld.so"
9705     shlibpath_var=LD_LIBRARY_PATH
9706     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9707     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708     soname_spec='${libname}${release}${shared_ext}$major'
9709     if test "X$HPUX_IA64_MODE" = X32; then
9710       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9711     else
9712       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9713     fi
9714     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9715     ;;
9716   hppa*64*)
9717     shrext_cmds='.sl'
9718     hardcode_into_libs=yes
9719     dynamic_linker="$host_os dld.sl"
9720     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9721     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9722     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723     soname_spec='${libname}${release}${shared_ext}$major'
9724     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9725     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9726     ;;
9727   *)
9728     shrext_cmds='.sl'
9729     dynamic_linker="$host_os dld.sl"
9730     shlibpath_var=SHLIB_PATH
9731     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9732     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9733     soname_spec='${libname}${release}${shared_ext}$major'
9734     ;;
9735   esac
9736   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9737   postinstall_cmds='chmod 555 $lib'
9738   ;;
9739
9740 interix[3-9]*)
9741   version_type=linux
9742   need_lib_prefix=no
9743   need_version=no
9744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9745   soname_spec='${libname}${release}${shared_ext}$major'
9746   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9747   shlibpath_var=LD_LIBRARY_PATH
9748   shlibpath_overrides_runpath=no
9749   hardcode_into_libs=yes
9750   ;;
9751
9752 irix5* | irix6* | nonstopux*)
9753   case $host_os in
9754     nonstopux*) version_type=nonstopux ;;
9755     *)
9756         if test "$lt_cv_prog_gnu_ld" = yes; then
9757                 version_type=linux
9758         else
9759                 version_type=irix
9760         fi ;;
9761   esac
9762   need_lib_prefix=no
9763   need_version=no
9764   soname_spec='${libname}${release}${shared_ext}$major'
9765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9766   case $host_os in
9767   irix5* | nonstopux*)
9768     libsuff= shlibsuff=
9769     ;;
9770   *)
9771     case $LD in # libtool.m4 will add one of these switches to LD
9772     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9773       libsuff= shlibsuff= libmagic=32-bit;;
9774     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9775       libsuff=32 shlibsuff=N32 libmagic=N32;;
9776     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9777       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9778     *) libsuff= shlibsuff= libmagic=never-match;;
9779     esac
9780     ;;
9781   esac
9782   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9783   shlibpath_overrides_runpath=no
9784   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9785   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9786   hardcode_into_libs=yes
9787   ;;
9788
9789 # No shared lib support for Linux oldld, aout, or coff.
9790 linux*oldld* | linux*aout* | linux*coff*)
9791   dynamic_linker=no
9792   ;;
9793
9794 # This must be Linux ELF.
9795 linux* | k*bsd*-gnu)
9796   version_type=linux
9797   need_lib_prefix=no
9798   need_version=no
9799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800   soname_spec='${libname}${release}${shared_ext}$major'
9801   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9802   shlibpath_var=LD_LIBRARY_PATH
9803   shlibpath_overrides_runpath=no
9804   # Some binutils ld are patched to set DT_RUNPATH
9805   save_LDFLAGS=$LDFLAGS
9806   save_libdir=$libdir
9807   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9808        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9809   cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h.  */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h.  */
9815
9816 int
9817 main ()
9818 {
9819
9820   ;
9821   return 0;
9822 }
9823 _ACEOF
9824 rm -f conftest.$ac_objext conftest$ac_exeext
9825 if { (ac_try="$ac_link"
9826 case "(($ac_try" in
9827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828   *) ac_try_echo=$ac_try;;
9829 esac
9830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831   (eval "$ac_link") 2>conftest.er1
9832   ac_status=$?
9833   grep -v '^ *+' conftest.er1 >conftest.err
9834   rm -f conftest.er1
9835   cat conftest.err >&5
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); } && {
9838          test -z "$ac_c_werror_flag" ||
9839          test ! -s conftest.err
9840        } && test -s conftest$ac_exeext &&
9841        $as_test_x conftest$ac_exeext; then
9842   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9843   shlibpath_overrides_runpath=yes
9844 fi
9845
9846 else
9847   echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9849
9850
9851 fi
9852
9853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9854       conftest$ac_exeext conftest.$ac_ext
9855   LDFLAGS=$save_LDFLAGS
9856   libdir=$save_libdir
9857
9858   # This implies no fast_install, which is unacceptable.
9859   # Some rework will be needed to allow for fast_install
9860   # before this can be enabled.
9861   hardcode_into_libs=yes
9862
9863   # Append ld.so.conf contents to the search path
9864   if test -f /etc/ld.so.conf; then
9865     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' ' '`
9866     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9867   fi
9868
9869   # We used to test for /lib/ld.so.1 and disable shared libraries on
9870   # powerpc, because MkLinux only supported shared libraries with the
9871   # GNU dynamic linker.  Since this was broken with cross compilers,
9872   # most powerpc-linux boxes support dynamic linking these days and
9873   # people can always --disable-shared, the test was removed, and we
9874   # assume the GNU/Linux dynamic linker is in use.
9875   dynamic_linker='GNU/Linux ld.so'
9876   ;;
9877
9878 netbsd*)
9879   version_type=sunos
9880   need_lib_prefix=no
9881   need_version=no
9882   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9883     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9884     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9885     dynamic_linker='NetBSD (a.out) ld.so'
9886   else
9887     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9888     soname_spec='${libname}${release}${shared_ext}$major'
9889     dynamic_linker='NetBSD ld.elf_so'
9890   fi
9891   shlibpath_var=LD_LIBRARY_PATH
9892   shlibpath_overrides_runpath=yes
9893   hardcode_into_libs=yes
9894   ;;
9895
9896 newsos6)
9897   version_type=linux
9898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899   shlibpath_var=LD_LIBRARY_PATH
9900   shlibpath_overrides_runpath=yes
9901   ;;
9902
9903 *nto* | *qnx*)
9904   version_type=qnx
9905   need_lib_prefix=no
9906   need_version=no
9907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9908   soname_spec='${libname}${release}${shared_ext}$major'
9909   shlibpath_var=LD_LIBRARY_PATH
9910   shlibpath_overrides_runpath=no
9911   hardcode_into_libs=yes
9912   dynamic_linker='ldqnx.so'
9913   ;;
9914
9915 openbsd*)
9916   version_type=sunos
9917   sys_lib_dlsearch_path_spec="/usr/lib"
9918   need_lib_prefix=no
9919   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9920   case $host_os in
9921     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9922     *)                          need_version=no  ;;
9923   esac
9924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9925   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9926   shlibpath_var=LD_LIBRARY_PATH
9927   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9928     case $host_os in
9929       openbsd2.[89] | openbsd2.[89].*)
9930         shlibpath_overrides_runpath=no
9931         ;;
9932       *)
9933         shlibpath_overrides_runpath=yes
9934         ;;
9935       esac
9936   else
9937     shlibpath_overrides_runpath=yes
9938   fi
9939   ;;
9940
9941 os2*)
9942   libname_spec='$name'
9943   shrext_cmds=".dll"
9944   need_lib_prefix=no
9945   library_names_spec='$libname${shared_ext} $libname.a'
9946   dynamic_linker='OS/2 ld.exe'
9947   shlibpath_var=LIBPATH
9948   ;;
9949
9950 osf3* | osf4* | osf5*)
9951   version_type=osf
9952   need_lib_prefix=no
9953   need_version=no
9954   soname_spec='${libname}${release}${shared_ext}$major'
9955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956   shlibpath_var=LD_LIBRARY_PATH
9957   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9958   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9959   ;;
9960
9961 rdos*)
9962   dynamic_linker=no
9963   ;;
9964
9965 solaris*)
9966   version_type=linux
9967   need_lib_prefix=no
9968   need_version=no
9969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9970   soname_spec='${libname}${release}${shared_ext}$major'
9971   shlibpath_var=LD_LIBRARY_PATH
9972   shlibpath_overrides_runpath=yes
9973   hardcode_into_libs=yes
9974   # ldd complains unless libraries are executable
9975   postinstall_cmds='chmod +x $lib'
9976   ;;
9977
9978 sunos4*)
9979   version_type=sunos
9980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9981   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9982   shlibpath_var=LD_LIBRARY_PATH
9983   shlibpath_overrides_runpath=yes
9984   if test "$with_gnu_ld" = yes; then
9985     need_lib_prefix=no
9986   fi
9987   need_version=yes
9988   ;;
9989
9990 sysv4 | sysv4.3*)
9991   version_type=linux
9992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993   soname_spec='${libname}${release}${shared_ext}$major'
9994   shlibpath_var=LD_LIBRARY_PATH
9995   case $host_vendor in
9996     sni)
9997       shlibpath_overrides_runpath=no
9998       need_lib_prefix=no
9999       runpath_var=LD_RUN_PATH
10000       ;;
10001     siemens)
10002       need_lib_prefix=no
10003       ;;
10004     motorola)
10005       need_lib_prefix=no
10006       need_version=no
10007       shlibpath_overrides_runpath=no
10008       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10009       ;;
10010   esac
10011   ;;
10012
10013 sysv4*MP*)
10014   if test -d /usr/nec ;then
10015     version_type=linux
10016     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10017     soname_spec='$libname${shared_ext}.$major'
10018     shlibpath_var=LD_LIBRARY_PATH
10019   fi
10020   ;;
10021
10022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10023   version_type=freebsd-elf
10024   need_lib_prefix=no
10025   need_version=no
10026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10027   soname_spec='${libname}${release}${shared_ext}$major'
10028   shlibpath_var=LD_LIBRARY_PATH
10029   shlibpath_overrides_runpath=yes
10030   hardcode_into_libs=yes
10031   if test "$with_gnu_ld" = yes; then
10032     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10033   else
10034     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10035     case $host_os in
10036       sco3.2v5*)
10037         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10038         ;;
10039     esac
10040   fi
10041   sys_lib_dlsearch_path_spec='/usr/lib'
10042   ;;
10043
10044 tpf*)
10045   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10046   version_type=linux
10047   need_lib_prefix=no
10048   need_version=no
10049   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10050   shlibpath_var=LD_LIBRARY_PATH
10051   shlibpath_overrides_runpath=no
10052   hardcode_into_libs=yes
10053   ;;
10054
10055 uts4*)
10056   version_type=linux
10057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058   soname_spec='${libname}${release}${shared_ext}$major'
10059   shlibpath_var=LD_LIBRARY_PATH
10060   ;;
10061
10062 *)
10063   dynamic_linker=no
10064   ;;
10065 esac
10066 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10067 echo "${ECHO_T}$dynamic_linker" >&6; }
10068 test "$dynamic_linker" = no && can_build_shared=no
10069
10070 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10071 if test "$GCC" = yes; then
10072   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10073 fi
10074
10075 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10076   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10077 fi
10078 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10079   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10080 fi
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
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   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10169 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10170 hardcode_action=
10171 if test -n "$hardcode_libdir_flag_spec" ||
10172    test -n "$runpath_var" ||
10173    test "X$hardcode_automatic" = "Xyes" ; then
10174
10175   # We can hardcode non-existent directories.
10176   if test "$hardcode_direct" != no &&
10177      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10178      # have to relink, otherwise we might link with an installed library
10179      # when we should be linking with a yet-to-be-installed one
10180      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10181      test "$hardcode_minus_L" != no; then
10182     # Linking always hardcodes the temporary library directory.
10183     hardcode_action=relink
10184   else
10185     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10186     hardcode_action=immediate
10187   fi
10188 else
10189   # We cannot hardcode anything, or else we can only hardcode existing
10190   # directories.
10191   hardcode_action=unsupported
10192 fi
10193 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10194 echo "${ECHO_T}$hardcode_action" >&6; }
10195
10196 if test "$hardcode_action" = relink ||
10197    test "$inherit_rpath" = yes; then
10198   # Fast installation is not supported
10199   enable_fast_install=no
10200 elif test "$shlibpath_overrides_runpath" = yes ||
10201      test "$enable_shared" = no; then
10202   # Fast installation is not necessary
10203   enable_fast_install=needless
10204 fi
10205
10206
10207
10208
10209
10210
10211   if test "x$enable_dlopen" != xyes; then
10212   enable_dlopen=unknown
10213   enable_dlopen_self=unknown
10214   enable_dlopen_self_static=unknown
10215 else
10216   lt_cv_dlopen=no
10217   lt_cv_dlopen_libs=
10218
10219   case $host_os in
10220   beos*)
10221     lt_cv_dlopen="load_add_on"
10222     lt_cv_dlopen_libs=
10223     lt_cv_dlopen_self=yes
10224     ;;
10225
10226   mingw* | pw32*)
10227     lt_cv_dlopen="LoadLibrary"
10228     lt_cv_dlopen_libs=
10229     ;;
10230
10231   cygwin*)
10232     lt_cv_dlopen="dlopen"
10233     lt_cv_dlopen_libs=
10234     ;;
10235
10236   darwin*)
10237   # if libdl is installed we need to link against it
10238     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10239 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10240 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10241   echo $ECHO_N "(cached) $ECHO_C" >&6
10242 else
10243   ac_check_lib_save_LIBS=$LIBS
10244 LIBS="-ldl  $LIBS"
10245 cat >conftest.$ac_ext <<_ACEOF
10246 /* confdefs.h.  */
10247 _ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h.  */
10251
10252 /* Override any GCC internal prototype to avoid an error.
10253    Use char because int might match the return type of a GCC
10254    builtin and then its argument prototype would still apply.  */
10255 #ifdef __cplusplus
10256 extern "C"
10257 #endif
10258 char dlopen ();
10259 int
10260 main ()
10261 {
10262 return dlopen ();
10263   ;
10264   return 0;
10265 }
10266 _ACEOF
10267 rm -f conftest.$ac_objext conftest$ac_exeext
10268 if { (ac_try="$ac_link"
10269 case "(($ac_try" in
10270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271   *) ac_try_echo=$ac_try;;
10272 esac
10273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10274   (eval "$ac_link") 2>conftest.er1
10275   ac_status=$?
10276   grep -v '^ *+' conftest.er1 >conftest.err
10277   rm -f conftest.er1
10278   cat conftest.err >&5
10279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280   (exit $ac_status); } && {
10281          test -z "$ac_c_werror_flag" ||
10282          test ! -s conftest.err
10283        } && test -s conftest$ac_exeext &&
10284        $as_test_x conftest$ac_exeext; then
10285   ac_cv_lib_dl_dlopen=yes
10286 else
10287   echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10289
10290         ac_cv_lib_dl_dlopen=no
10291 fi
10292
10293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10294       conftest$ac_exeext conftest.$ac_ext
10295 LIBS=$ac_check_lib_save_LIBS
10296 fi
10297 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10298 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10299 if test $ac_cv_lib_dl_dlopen = yes; then
10300   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10301 else
10302
10303     lt_cv_dlopen="dyld"
10304     lt_cv_dlopen_libs=
10305     lt_cv_dlopen_self=yes
10306
10307 fi
10308
10309     ;;
10310
10311   *)
10312     { echo "$as_me:$LINENO: checking for shl_load" >&5
10313 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10314 if test "${ac_cv_func_shl_load+set}" = set; then
10315   echo $ECHO_N "(cached) $ECHO_C" >&6
10316 else
10317   cat >conftest.$ac_ext <<_ACEOF
10318 /* confdefs.h.  */
10319 _ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h.  */
10323 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10325 #define shl_load innocuous_shl_load
10326
10327 /* System header to define __stub macros and hopefully few prototypes,
10328     which can conflict with char shl_load (); below.
10329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10330     <limits.h> exists even on freestanding compilers.  */
10331
10332 #ifdef __STDC__
10333 # include <limits.h>
10334 #else
10335 # include <assert.h>
10336 #endif
10337
10338 #undef shl_load
10339
10340 /* Override any GCC internal prototype to avoid an error.
10341    Use char because int might match the return type of a GCC
10342    builtin and then its argument prototype would still apply.  */
10343 #ifdef __cplusplus
10344 extern "C"
10345 #endif
10346 char shl_load ();
10347 /* The GNU C library defines this for functions which it implements
10348     to always fail with ENOSYS.  Some functions are actually named
10349     something starting with __ and the normal name is an alias.  */
10350 #if defined __stub_shl_load || defined __stub___shl_load
10351 choke me
10352 #endif
10353
10354 int
10355 main ()
10356 {
10357 return shl_load ();
10358   ;
10359   return 0;
10360 }
10361 _ACEOF
10362 rm -f conftest.$ac_objext conftest$ac_exeext
10363 if { (ac_try="$ac_link"
10364 case "(($ac_try" in
10365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366   *) ac_try_echo=$ac_try;;
10367 esac
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369   (eval "$ac_link") 2>conftest.er1
10370   ac_status=$?
10371   grep -v '^ *+' conftest.er1 >conftest.err
10372   rm -f conftest.er1
10373   cat conftest.err >&5
10374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375   (exit $ac_status); } && {
10376          test -z "$ac_c_werror_flag" ||
10377          test ! -s conftest.err
10378        } && test -s conftest$ac_exeext &&
10379        $as_test_x conftest$ac_exeext; then
10380   ac_cv_func_shl_load=yes
10381 else
10382   echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10384
10385         ac_cv_func_shl_load=no
10386 fi
10387
10388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10389       conftest$ac_exeext conftest.$ac_ext
10390 fi
10391 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10392 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10393 if test $ac_cv_func_shl_load = yes; then
10394   lt_cv_dlopen="shl_load"
10395 else
10396   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10397 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10398 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10399   echo $ECHO_N "(cached) $ECHO_C" >&6
10400 else
10401   ac_check_lib_save_LIBS=$LIBS
10402 LIBS="-ldld  $LIBS"
10403 cat >conftest.$ac_ext <<_ACEOF
10404 /* confdefs.h.  */
10405 _ACEOF
10406 cat confdefs.h >>conftest.$ac_ext
10407 cat >>conftest.$ac_ext <<_ACEOF
10408 /* end confdefs.h.  */
10409
10410 /* Override any GCC internal prototype to avoid an error.
10411    Use char because int might match the return type of a GCC
10412    builtin and then its argument prototype would still apply.  */
10413 #ifdef __cplusplus
10414 extern "C"
10415 #endif
10416 char shl_load ();
10417 int
10418 main ()
10419 {
10420 return shl_load ();
10421   ;
10422   return 0;
10423 }
10424 _ACEOF
10425 rm -f conftest.$ac_objext conftest$ac_exeext
10426 if { (ac_try="$ac_link"
10427 case "(($ac_try" in
10428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10429   *) ac_try_echo=$ac_try;;
10430 esac
10431 eval "echo \"\$as_me:$LINENO: $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   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        $as_test_x conftest$ac_exeext; then
10443   ac_cv_lib_dld_shl_load=yes
10444 else
10445   echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10447
10448         ac_cv_lib_dld_shl_load=no
10449 fi
10450
10451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10452       conftest$ac_exeext conftest.$ac_ext
10453 LIBS=$ac_check_lib_save_LIBS
10454 fi
10455 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10456 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10457 if test $ac_cv_lib_dld_shl_load = yes; then
10458   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10459 else
10460   { echo "$as_me:$LINENO: checking for dlopen" >&5
10461 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10462 if test "${ac_cv_func_dlopen+set}" = set; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465   cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h.  */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h.  */
10471 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10472    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10473 #define dlopen innocuous_dlopen
10474
10475 /* System header to define __stub macros and hopefully few prototypes,
10476     which can conflict with char dlopen (); below.
10477     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10478     <limits.h> exists even on freestanding compilers.  */
10479
10480 #ifdef __STDC__
10481 # include <limits.h>
10482 #else
10483 # include <assert.h>
10484 #endif
10485
10486 #undef dlopen
10487
10488 /* Override any GCC internal prototype to avoid an error.
10489    Use char because int might match the return type of a GCC
10490    builtin and then its argument prototype would still apply.  */
10491 #ifdef __cplusplus
10492 extern "C"
10493 #endif
10494 char dlopen ();
10495 /* The GNU C library defines this for functions which it implements
10496     to always fail with ENOSYS.  Some functions are actually named
10497     something starting with __ and the normal name is an alias.  */
10498 #if defined __stub_dlopen || defined __stub___dlopen
10499 choke me
10500 #endif
10501
10502 int
10503 main ()
10504 {
10505 return dlopen ();
10506   ;
10507   return 0;
10508 }
10509 _ACEOF
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (ac_try="$ac_link"
10512 case "(($ac_try" in
10513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514   *) ac_try_echo=$ac_try;;
10515 esac
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517   (eval "$ac_link") 2>conftest.er1
10518   ac_status=$?
10519   grep -v '^ *+' conftest.er1 >conftest.err
10520   rm -f conftest.er1
10521   cat conftest.err >&5
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); } && {
10524          test -z "$ac_c_werror_flag" ||
10525          test ! -s conftest.err
10526        } && test -s conftest$ac_exeext &&
10527        $as_test_x conftest$ac_exeext; then
10528   ac_cv_func_dlopen=yes
10529 else
10530   echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10532
10533         ac_cv_func_dlopen=no
10534 fi
10535
10536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10537       conftest$ac_exeext conftest.$ac_ext
10538 fi
10539 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10540 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10541 if test $ac_cv_func_dlopen = yes; then
10542   lt_cv_dlopen="dlopen"
10543 else
10544   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10545 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10546 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10547   echo $ECHO_N "(cached) $ECHO_C" >&6
10548 else
10549   ac_check_lib_save_LIBS=$LIBS
10550 LIBS="-ldl  $LIBS"
10551 cat >conftest.$ac_ext <<_ACEOF
10552 /* confdefs.h.  */
10553 _ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h.  */
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 int
10566 main ()
10567 {
10568 return dlopen ();
10569   ;
10570   return 0;
10571 }
10572 _ACEOF
10573 rm -f conftest.$ac_objext conftest$ac_exeext
10574 if { (ac_try="$ac_link"
10575 case "(($ac_try" in
10576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577   *) ac_try_echo=$ac_try;;
10578 esac
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580   (eval "$ac_link") 2>conftest.er1
10581   ac_status=$?
10582   grep -v '^ *+' conftest.er1 >conftest.err
10583   rm -f conftest.er1
10584   cat conftest.err >&5
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); } && {
10587          test -z "$ac_c_werror_flag" ||
10588          test ! -s conftest.err
10589        } && test -s conftest$ac_exeext &&
10590        $as_test_x conftest$ac_exeext; then
10591   ac_cv_lib_dl_dlopen=yes
10592 else
10593   echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10595
10596         ac_cv_lib_dl_dlopen=no
10597 fi
10598
10599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10600       conftest$ac_exeext conftest.$ac_ext
10601 LIBS=$ac_check_lib_save_LIBS
10602 fi
10603 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10604 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10605 if test $ac_cv_lib_dl_dlopen = yes; then
10606   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10607 else
10608   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10609 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10610 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10611   echo $ECHO_N "(cached) $ECHO_C" >&6
10612 else
10613   ac_check_lib_save_LIBS=$LIBS
10614 LIBS="-lsvld  $LIBS"
10615 cat >conftest.$ac_ext <<_ACEOF
10616 /* confdefs.h.  */
10617 _ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h.  */
10621
10622 /* Override any GCC internal prototype to avoid an error.
10623    Use char because int might match the return type of a GCC
10624    builtin and then its argument prototype would still apply.  */
10625 #ifdef __cplusplus
10626 extern "C"
10627 #endif
10628 char dlopen ();
10629 int
10630 main ()
10631 {
10632 return dlopen ();
10633   ;
10634   return 0;
10635 }
10636 _ACEOF
10637 rm -f conftest.$ac_objext conftest$ac_exeext
10638 if { (ac_try="$ac_link"
10639 case "(($ac_try" in
10640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641   *) ac_try_echo=$ac_try;;
10642 esac
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644   (eval "$ac_link") 2>conftest.er1
10645   ac_status=$?
10646   grep -v '^ *+' conftest.er1 >conftest.err
10647   rm -f conftest.er1
10648   cat conftest.err >&5
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); } && {
10651          test -z "$ac_c_werror_flag" ||
10652          test ! -s conftest.err
10653        } && test -s conftest$ac_exeext &&
10654        $as_test_x conftest$ac_exeext; then
10655   ac_cv_lib_svld_dlopen=yes
10656 else
10657   echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10659
10660         ac_cv_lib_svld_dlopen=no
10661 fi
10662
10663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10664       conftest$ac_exeext conftest.$ac_ext
10665 LIBS=$ac_check_lib_save_LIBS
10666 fi
10667 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10668 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10669 if test $ac_cv_lib_svld_dlopen = yes; then
10670   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10671 else
10672   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10673 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10674 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10675   echo $ECHO_N "(cached) $ECHO_C" >&6
10676 else
10677   ac_check_lib_save_LIBS=$LIBS
10678 LIBS="-ldld  $LIBS"
10679 cat >conftest.$ac_ext <<_ACEOF
10680 /* confdefs.h.  */
10681 _ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h.  */
10685
10686 /* Override any GCC internal prototype to avoid an error.
10687    Use char because int might match the return type of a GCC
10688    builtin and then its argument prototype would still apply.  */
10689 #ifdef __cplusplus
10690 extern "C"
10691 #endif
10692 char dld_link ();
10693 int
10694 main ()
10695 {
10696 return dld_link ();
10697   ;
10698   return 0;
10699 }
10700 _ACEOF
10701 rm -f conftest.$ac_objext conftest$ac_exeext
10702 if { (ac_try="$ac_link"
10703 case "(($ac_try" in
10704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705   *) ac_try_echo=$ac_try;;
10706 esac
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708   (eval "$ac_link") 2>conftest.er1
10709   ac_status=$?
10710   grep -v '^ *+' conftest.er1 >conftest.err
10711   rm -f conftest.er1
10712   cat conftest.err >&5
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); } && {
10715          test -z "$ac_c_werror_flag" ||
10716          test ! -s conftest.err
10717        } && test -s conftest$ac_exeext &&
10718        $as_test_x conftest$ac_exeext; then
10719   ac_cv_lib_dld_dld_link=yes
10720 else
10721   echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10723
10724         ac_cv_lib_dld_dld_link=no
10725 fi
10726
10727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10728       conftest$ac_exeext conftest.$ac_ext
10729 LIBS=$ac_check_lib_save_LIBS
10730 fi
10731 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10732 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10733 if test $ac_cv_lib_dld_dld_link = yes; then
10734   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10735 fi
10736
10737
10738 fi
10739
10740
10741 fi
10742
10743
10744 fi
10745
10746
10747 fi
10748
10749
10750 fi
10751
10752     ;;
10753   esac
10754
10755   if test "x$lt_cv_dlopen" != xno; then
10756     enable_dlopen=yes
10757   else
10758     enable_dlopen=no
10759   fi
10760
10761   case $lt_cv_dlopen in
10762   dlopen)
10763     save_CPPFLAGS="$CPPFLAGS"
10764     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10765
10766     save_LDFLAGS="$LDFLAGS"
10767     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10768
10769     save_LIBS="$LIBS"
10770     LIBS="$lt_cv_dlopen_libs $LIBS"
10771
10772     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10773 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10774 if test "${lt_cv_dlopen_self+set}" = set; then
10775   echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777           if test "$cross_compiling" = yes; then :
10778   lt_cv_dlopen_self=cross
10779 else
10780   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10781   lt_status=$lt_dlunknown
10782   cat > conftest.$ac_ext <<_LT_EOF
10783 #line 10783 "configure"
10784 #include "confdefs.h"
10785
10786 #if HAVE_DLFCN_H
10787 #include <dlfcn.h>
10788 #endif
10789
10790 #include <stdio.h>
10791
10792 #ifdef RTLD_GLOBAL
10793 #  define LT_DLGLOBAL           RTLD_GLOBAL
10794 #else
10795 #  ifdef DL_GLOBAL
10796 #    define LT_DLGLOBAL         DL_GLOBAL
10797 #  else
10798 #    define LT_DLGLOBAL         0
10799 #  endif
10800 #endif
10801
10802 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10803    find out it does not work in some platform. */
10804 #ifndef LT_DLLAZY_OR_NOW
10805 #  ifdef RTLD_LAZY
10806 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10807 #  else
10808 #    ifdef DL_LAZY
10809 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10810 #    else
10811 #      ifdef RTLD_NOW
10812 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10813 #      else
10814 #        ifdef DL_NOW
10815 #          define LT_DLLAZY_OR_NOW      DL_NOW
10816 #        else
10817 #          define LT_DLLAZY_OR_NOW      0
10818 #        endif
10819 #      endif
10820 #    endif
10821 #  endif
10822 #endif
10823
10824 #ifdef __cplusplus
10825 extern "C" void exit (int);
10826 #endif
10827
10828 void fnord() { int i=42;}
10829 int main ()
10830 {
10831   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10832   int status = $lt_dlunknown;
10833
10834   if (self)
10835     {
10836       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10837       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10838       /* dlclose (self); */
10839     }
10840   else
10841     puts (dlerror ());
10842
10843     exit (status);
10844 }
10845 _LT_EOF
10846   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10847   (eval $ac_link) 2>&5
10848   ac_status=$?
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10851     (./conftest; exit; ) >&5 2>/dev/null
10852     lt_status=$?
10853     case x$lt_status in
10854       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10855       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10856       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10857     esac
10858   else :
10859     # compilation failed
10860     lt_cv_dlopen_self=no
10861   fi
10862 fi
10863 rm -fr conftest*
10864
10865
10866 fi
10867 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10868 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10869
10870     if test "x$lt_cv_dlopen_self" = xyes; then
10871       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10872       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10873 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10874 if test "${lt_cv_dlopen_self_static+set}" = set; then
10875   echo $ECHO_N "(cached) $ECHO_C" >&6
10876 else
10877           if test "$cross_compiling" = yes; then :
10878   lt_cv_dlopen_self_static=cross
10879 else
10880   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10881   lt_status=$lt_dlunknown
10882   cat > conftest.$ac_ext <<_LT_EOF
10883 #line 10883 "configure"
10884 #include "confdefs.h"
10885
10886 #if HAVE_DLFCN_H
10887 #include <dlfcn.h>
10888 #endif
10889
10890 #include <stdio.h>
10891
10892 #ifdef RTLD_GLOBAL
10893 #  define LT_DLGLOBAL           RTLD_GLOBAL
10894 #else
10895 #  ifdef DL_GLOBAL
10896 #    define LT_DLGLOBAL         DL_GLOBAL
10897 #  else
10898 #    define LT_DLGLOBAL         0
10899 #  endif
10900 #endif
10901
10902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10903    find out it does not work in some platform. */
10904 #ifndef LT_DLLAZY_OR_NOW
10905 #  ifdef RTLD_LAZY
10906 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10907 #  else
10908 #    ifdef DL_LAZY
10909 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10910 #    else
10911 #      ifdef RTLD_NOW
10912 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10913 #      else
10914 #        ifdef DL_NOW
10915 #          define LT_DLLAZY_OR_NOW      DL_NOW
10916 #        else
10917 #          define LT_DLLAZY_OR_NOW      0
10918 #        endif
10919 #      endif
10920 #    endif
10921 #  endif
10922 #endif
10923
10924 #ifdef __cplusplus
10925 extern "C" void exit (int);
10926 #endif
10927
10928 void fnord() { int i=42;}
10929 int main ()
10930 {
10931   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10932   int status = $lt_dlunknown;
10933
10934   if (self)
10935     {
10936       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10937       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10938       /* dlclose (self); */
10939     }
10940   else
10941     puts (dlerror ());
10942
10943     exit (status);
10944 }
10945 _LT_EOF
10946   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10947   (eval $ac_link) 2>&5
10948   ac_status=$?
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10951     (./conftest; exit; ) >&5 2>/dev/null
10952     lt_status=$?
10953     case x$lt_status in
10954       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10955       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10956       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10957     esac
10958   else :
10959     # compilation failed
10960     lt_cv_dlopen_self_static=no
10961   fi
10962 fi
10963 rm -fr conftest*
10964
10965
10966 fi
10967 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10968 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10969     fi
10970
10971     CPPFLAGS="$save_CPPFLAGS"
10972     LDFLAGS="$save_LDFLAGS"
10973     LIBS="$save_LIBS"
10974     ;;
10975   esac
10976
10977   case $lt_cv_dlopen_self in
10978   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10979   *) enable_dlopen_self=unknown ;;
10980   esac
10981
10982   case $lt_cv_dlopen_self_static in
10983   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10984   *) enable_dlopen_self_static=unknown ;;
10985   esac
10986 fi
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004 striplib=
11005 old_striplib=
11006 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11007 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11008 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11009   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11010   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11011   { echo "$as_me:$LINENO: result: yes" >&5
11012 echo "${ECHO_T}yes" >&6; }
11013 else
11014 # FIXME - insert some real tests, host_os isn't really good enough
11015   case $host_os in
11016   darwin*)
11017     if test -n "$STRIP" ; then
11018       striplib="$STRIP -x"
11019       old_striplib="$STRIP -S"
11020       { echo "$as_me:$LINENO: result: yes" >&5
11021 echo "${ECHO_T}yes" >&6; }
11022     else
11023       { echo "$as_me:$LINENO: result: no" >&5
11024 echo "${ECHO_T}no" >&6; }
11025     fi
11026     ;;
11027   *)
11028     { echo "$as_me:$LINENO: result: no" >&5
11029 echo "${ECHO_T}no" >&6; }
11030     ;;
11031   esac
11032 fi
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045   # Report which library types will actually be built
11046   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11047 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11048   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11049 echo "${ECHO_T}$can_build_shared" >&6; }
11050
11051   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11052 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11053   test "$can_build_shared" = "no" && enable_shared=no
11054
11055   # On AIX, shared libraries and static libraries use the same namespace, and
11056   # are all built from PIC.
11057   case $host_os in
11058   aix3*)
11059     test "$enable_shared" = yes && enable_static=no
11060     if test -n "$RANLIB"; then
11061       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11062       postinstall_cmds='$RANLIB $lib'
11063     fi
11064     ;;
11065
11066   aix[4-9]*)
11067     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11068       test "$enable_shared" = yes && enable_static=no
11069     fi
11070     ;;
11071   esac
11072   { echo "$as_me:$LINENO: result: $enable_shared" >&5
11073 echo "${ECHO_T}$enable_shared" >&6; }
11074
11075   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11076 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11077   # Make sure either enable_shared or enable_static is yes.
11078   test "$enable_shared" = yes || enable_static=yes
11079   { echo "$as_me:$LINENO: result: $enable_static" >&5
11080 echo "${ECHO_T}$enable_static" >&6; }
11081
11082
11083
11084
11085 fi
11086 ac_ext=c
11087 ac_cpp='$CPP $CPPFLAGS'
11088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11091
11092 CC="$lt_save_CC"
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106         ac_config_commands="$ac_config_commands libtool"
11107
11108
11109
11110
11111 # Only expand once:
11112
11113
11114
11115 # Checks for libraries.
11116
11117
11118 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11119         if test -n "$ac_tool_prefix"; then
11120   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11121 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11124 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11125   echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127   case $PKG_CONFIG in
11128   [\\/]* | ?:[\\/]*)
11129   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11130   ;;
11131   *)
11132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11133 for as_dir in $PATH
11134 do
11135   IFS=$as_save_IFS
11136   test -z "$as_dir" && as_dir=.
11137   for ac_exec_ext in '' $ac_executable_extensions; do
11138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11139     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11141     break 2
11142   fi
11143 done
11144 done
11145 IFS=$as_save_IFS
11146
11147   ;;
11148 esac
11149 fi
11150 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11151 if test -n "$PKG_CONFIG"; then
11152   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11153 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11154 else
11155   { echo "$as_me:$LINENO: result: no" >&5
11156 echo "${ECHO_T}no" >&6; }
11157 fi
11158
11159
11160 fi
11161 if test -z "$ac_cv_path_PKG_CONFIG"; then
11162   ac_pt_PKG_CONFIG=$PKG_CONFIG
11163   # Extract the first word of "pkg-config", so it can be a program name with args.
11164 set dummy pkg-config; ac_word=$2
11165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11167 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11168   echo $ECHO_N "(cached) $ECHO_C" >&6
11169 else
11170   case $ac_pt_PKG_CONFIG in
11171   [\\/]* | ?:[\\/]*)
11172   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11173   ;;
11174   *)
11175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176 for as_dir in $PATH
11177 do
11178   IFS=$as_save_IFS
11179   test -z "$as_dir" && as_dir=.
11180   for ac_exec_ext in '' $ac_executable_extensions; do
11181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11182     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11184     break 2
11185   fi
11186 done
11187 done
11188 IFS=$as_save_IFS
11189
11190   ;;
11191 esac
11192 fi
11193 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11194 if test -n "$ac_pt_PKG_CONFIG"; then
11195   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11196 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
11197 else
11198   { echo "$as_me:$LINENO: result: no" >&5
11199 echo "${ECHO_T}no" >&6; }
11200 fi
11201
11202   if test "x$ac_pt_PKG_CONFIG" = x; then
11203     PKG_CONFIG=""
11204   else
11205     case $cross_compiling:$ac_tool_warned in
11206 yes:)
11207 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11208 whose name does not start with the host triplet.  If you think this
11209 configuration is useful to you, please write to autoconf@gnu.org." >&5
11210 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11211 whose name does not start with the host triplet.  If you think this
11212 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11213 ac_tool_warned=yes ;;
11214 esac
11215     PKG_CONFIG=$ac_pt_PKG_CONFIG
11216   fi
11217 else
11218   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11219 fi
11220
11221 fi
11222 if test -n "$PKG_CONFIG"; then
11223         _pkg_min_version=0.9.0
11224         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11225 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
11226         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11227                 { echo "$as_me:$LINENO: result: yes" >&5
11228 echo "${ECHO_T}yes" >&6; }
11229         else
11230                 { echo "$as_me:$LINENO: result: no" >&5
11231 echo "${ECHO_T}no" >&6; }
11232                 PKG_CONFIG=""
11233         fi
11234
11235 fi
11236
11237 pkg_failed=no
11238 { echo "$as_me:$LINENO: checking for AUDIOSESSIONMGR" >&5
11239 echo $ECHO_N "checking for AUDIOSESSIONMGR... $ECHO_C" >&6; }
11240
11241 if test -n "$PKG_CONFIG"; then
11242     if test -n "$AUDIOSESSIONMGR_CFLAGS"; then
11243         pkg_cv_AUDIOSESSIONMGR_CFLAGS="$AUDIOSESSIONMGR_CFLAGS"
11244     else
11245         if test -n "$PKG_CONFIG" && \
11246     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 vconf \"") >&5
11247   ($PKG_CONFIG --exists --print-errors "glib-2.0 vconf ") 2>&5
11248   ac_status=$?
11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); }; then
11251   pkg_cv_AUDIOSESSIONMGR_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 vconf " 2>/dev/null`
11252 else
11253   pkg_failed=yes
11254 fi
11255     fi
11256 else
11257         pkg_failed=untried
11258 fi
11259 if test -n "$PKG_CONFIG"; then
11260     if test -n "$AUDIOSESSIONMGR_LIBS"; then
11261         pkg_cv_AUDIOSESSIONMGR_LIBS="$AUDIOSESSIONMGR_LIBS"
11262     else
11263         if test -n "$PKG_CONFIG" && \
11264     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 vconf \"") >&5
11265   ($PKG_CONFIG --exists --print-errors "glib-2.0 vconf ") 2>&5
11266   ac_status=$?
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); }; then
11269   pkg_cv_AUDIOSESSIONMGR_LIBS=`$PKG_CONFIG --libs "glib-2.0 vconf " 2>/dev/null`
11270 else
11271   pkg_failed=yes
11272 fi
11273     fi
11274 else
11275         pkg_failed=untried
11276 fi
11277
11278
11279
11280 if test $pkg_failed = yes; then
11281
11282 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11283         _pkg_short_errors_supported=yes
11284 else
11285         _pkg_short_errors_supported=no
11286 fi
11287         if test $_pkg_short_errors_supported = yes; then
11288                 AUDIOSESSIONMGR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 vconf "`
11289         else
11290                 AUDIOSESSIONMGR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 vconf "`
11291         fi
11292         # Put the nasty error message in config.log where it belongs
11293         echo "$AUDIOSESSIONMGR_PKG_ERRORS" >&5
11294
11295         { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 vconf ) were not met:
11296
11297 $AUDIOSESSIONMGR_PKG_ERRORS
11298
11299 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11300 installed software in a non-standard prefix.
11301
11302 Alternatively, you may set the environment variables AUDIOSESSIONMGR_CFLAGS
11303 and AUDIOSESSIONMGR_LIBS to avoid the need to call pkg-config.
11304 See the pkg-config man page for more details.
11305 " >&5
11306 echo "$as_me: error: Package requirements (glib-2.0 vconf ) were not met:
11307
11308 $AUDIOSESSIONMGR_PKG_ERRORS
11309
11310 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11311 installed software in a non-standard prefix.
11312
11313 Alternatively, you may set the environment variables AUDIOSESSIONMGR_CFLAGS
11314 and AUDIOSESSIONMGR_LIBS to avoid the need to call pkg-config.
11315 See the pkg-config man page for more details.
11316 " >&2;}
11317    { (exit 1); exit 1; }; }
11318 elif test $pkg_failed = untried; then
11319         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
11320 is in your PATH or set the PKG_CONFIG environment variable to the full
11321 path to pkg-config.
11322
11323 Alternatively, you may set the environment variables AUDIOSESSIONMGR_CFLAGS
11324 and AUDIOSESSIONMGR_LIBS to avoid the need to call pkg-config.
11325 See the pkg-config man page for more details.
11326
11327 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11328 See \`config.log' for more details." >&5
11329 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
11330 is in your PATH or set the PKG_CONFIG environment variable to the full
11331 path to pkg-config.
11332
11333 Alternatively, you may set the environment variables AUDIOSESSIONMGR_CFLAGS
11334 and AUDIOSESSIONMGR_LIBS to avoid the need to call pkg-config.
11335 See the pkg-config man page for more details.
11336
11337 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11338 See \`config.log' for more details." >&2;}
11339    { (exit 1); exit 1; }; }
11340 else
11341         AUDIOSESSIONMGR_CFLAGS=$pkg_cv_AUDIOSESSIONMGR_CFLAGS
11342         AUDIOSESSIONMGR_LIBS=$pkg_cv_AUDIOSESSIONMGR_LIBS
11343         { echo "$as_me:$LINENO: result: yes" >&5
11344 echo "${ECHO_T}yes" >&6; }
11345         :
11346 fi
11347
11348
11349
11350
11351 pkg_failed=no
11352 { echo "$as_me:$LINENO: checking for MMLOG" >&5
11353 echo $ECHO_N "checking for MMLOG... $ECHO_C" >&6; }
11354
11355 if test -n "$PKG_CONFIG"; then
11356     if test -n "$MMLOG_CFLAGS"; then
11357         pkg_cv_MMLOG_CFLAGS="$MMLOG_CFLAGS"
11358     else
11359         if test -n "$PKG_CONFIG" && \
11360     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mm-log\"") >&5
11361   ($PKG_CONFIG --exists --print-errors "mm-log") 2>&5
11362   ac_status=$?
11363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364   (exit $ac_status); }; then
11365   pkg_cv_MMLOG_CFLAGS=`$PKG_CONFIG --cflags "mm-log" 2>/dev/null`
11366 else
11367   pkg_failed=yes
11368 fi
11369     fi
11370 else
11371         pkg_failed=untried
11372 fi
11373 if test -n "$PKG_CONFIG"; then
11374     if test -n "$MMLOG_LIBS"; then
11375         pkg_cv_MMLOG_LIBS="$MMLOG_LIBS"
11376     else
11377         if test -n "$PKG_CONFIG" && \
11378     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mm-log\"") >&5
11379   ($PKG_CONFIG --exists --print-errors "mm-log") 2>&5
11380   ac_status=$?
11381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382   (exit $ac_status); }; then
11383   pkg_cv_MMLOG_LIBS=`$PKG_CONFIG --libs "mm-log" 2>/dev/null`
11384 else
11385   pkg_failed=yes
11386 fi
11387     fi
11388 else
11389         pkg_failed=untried
11390 fi
11391
11392
11393
11394 if test $pkg_failed = yes; then
11395
11396 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11397         _pkg_short_errors_supported=yes
11398 else
11399         _pkg_short_errors_supported=no
11400 fi
11401         if test $_pkg_short_errors_supported = yes; then
11402                 MMLOG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mm-log"`
11403         else
11404                 MMLOG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mm-log"`
11405         fi
11406         # Put the nasty error message in config.log where it belongs
11407         echo "$MMLOG_PKG_ERRORS" >&5
11408
11409         { { echo "$as_me:$LINENO: error: Package requirements (mm-log) were not met:
11410
11411 $MMLOG_PKG_ERRORS
11412
11413 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11414 installed software in a non-standard prefix.
11415
11416 Alternatively, you may set the environment variables MMLOG_CFLAGS
11417 and MMLOG_LIBS to avoid the need to call pkg-config.
11418 See the pkg-config man page for more details.
11419 " >&5
11420 echo "$as_me: error: Package requirements (mm-log) were not met:
11421
11422 $MMLOG_PKG_ERRORS
11423
11424 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11425 installed software in a non-standard prefix.
11426
11427 Alternatively, you may set the environment variables MMLOG_CFLAGS
11428 and MMLOG_LIBS to avoid the need to call pkg-config.
11429 See the pkg-config man page for more details.
11430 " >&2;}
11431    { (exit 1); exit 1; }; }
11432 elif test $pkg_failed = untried; then
11433         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
11434 is in your PATH or set the PKG_CONFIG environment variable to the full
11435 path to pkg-config.
11436
11437 Alternatively, you may set the environment variables MMLOG_CFLAGS
11438 and MMLOG_LIBS to avoid the need to call pkg-config.
11439 See the pkg-config man page for more details.
11440
11441 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11442 See \`config.log' for more details." >&5
11443 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
11444 is in your PATH or set the PKG_CONFIG environment variable to the full
11445 path to pkg-config.
11446
11447 Alternatively, you may set the environment variables MMLOG_CFLAGS
11448 and MMLOG_LIBS to avoid the need to call pkg-config.
11449 See the pkg-config man page for more details.
11450
11451 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11452 See \`config.log' for more details." >&2;}
11453    { (exit 1); exit 1; }; }
11454 else
11455         MMLOG_CFLAGS=$pkg_cv_MMLOG_CFLAGS
11456         MMLOG_LIBS=$pkg_cv_MMLOG_LIBS
11457         { echo "$as_me:$LINENO: result: yes" >&5
11458 echo "${ECHO_T}yes" >&6; }
11459         :
11460 fi
11461
11462
11463
11464
11465 pkg_failed=no
11466 { echo "$as_me:$LINENO: checking for SYSMAN" >&5
11467 echo $ECHO_N "checking for SYSMAN... $ECHO_C" >&6; }
11468
11469 if test -n "$PKG_CONFIG"; then
11470     if test -n "$SYSMAN_CFLAGS"; then
11471         pkg_cv_SYSMAN_CFLAGS="$SYSMAN_CFLAGS"
11472     else
11473         if test -n "$PKG_CONFIG" && \
11474     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sysman\"") >&5
11475   ($PKG_CONFIG --exists --print-errors "sysman") 2>&5
11476   ac_status=$?
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); }; then
11479   pkg_cv_SYSMAN_CFLAGS=`$PKG_CONFIG --cflags "sysman" 2>/dev/null`
11480 else
11481   pkg_failed=yes
11482 fi
11483     fi
11484 else
11485         pkg_failed=untried
11486 fi
11487 if test -n "$PKG_CONFIG"; then
11488     if test -n "$SYSMAN_LIBS"; then
11489         pkg_cv_SYSMAN_LIBS="$SYSMAN_LIBS"
11490     else
11491         if test -n "$PKG_CONFIG" && \
11492     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sysman\"") >&5
11493   ($PKG_CONFIG --exists --print-errors "sysman") 2>&5
11494   ac_status=$?
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); }; then
11497   pkg_cv_SYSMAN_LIBS=`$PKG_CONFIG --libs "sysman" 2>/dev/null`
11498 else
11499   pkg_failed=yes
11500 fi
11501     fi
11502 else
11503         pkg_failed=untried
11504 fi
11505
11506
11507
11508 if test $pkg_failed = yes; then
11509
11510 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11511         _pkg_short_errors_supported=yes
11512 else
11513         _pkg_short_errors_supported=no
11514 fi
11515         if test $_pkg_short_errors_supported = yes; then
11516                 SYSMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sysman"`
11517         else
11518                 SYSMAN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sysman"`
11519         fi
11520         # Put the nasty error message in config.log where it belongs
11521         echo "$SYSMAN_PKG_ERRORS" >&5
11522
11523         { { echo "$as_me:$LINENO: error: Package requirements (sysman) were not met:
11524
11525 $SYSMAN_PKG_ERRORS
11526
11527 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11528 installed software in a non-standard prefix.
11529
11530 Alternatively, you may set the environment variables SYSMAN_CFLAGS
11531 and SYSMAN_LIBS to avoid the need to call pkg-config.
11532 See the pkg-config man page for more details.
11533 " >&5
11534 echo "$as_me: error: Package requirements (sysman) were not met:
11535
11536 $SYSMAN_PKG_ERRORS
11537
11538 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11539 installed software in a non-standard prefix.
11540
11541 Alternatively, you may set the environment variables SYSMAN_CFLAGS
11542 and SYSMAN_LIBS to avoid the need to call pkg-config.
11543 See the pkg-config man page for more details.
11544 " >&2;}
11545    { (exit 1); exit 1; }; }
11546 elif test $pkg_failed = untried; then
11547         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
11548 is in your PATH or set the PKG_CONFIG environment variable to the full
11549 path to pkg-config.
11550
11551 Alternatively, you may set the environment variables SYSMAN_CFLAGS
11552 and SYSMAN_LIBS to avoid the need to call pkg-config.
11553 See the pkg-config man page for more details.
11554
11555 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11556 See \`config.log' for more details." >&5
11557 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
11558 is in your PATH or set the PKG_CONFIG environment variable to the full
11559 path to pkg-config.
11560
11561 Alternatively, you may set the environment variables SYSMAN_CFLAGS
11562 and SYSMAN_LIBS to avoid the need to call pkg-config.
11563 See the pkg-config man page for more details.
11564
11565 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11566 See \`config.log' for more details." >&2;}
11567    { (exit 1); exit 1; }; }
11568 else
11569         SYSMAN_CFLAGS=$pkg_cv_SYSMAN_CFLAGS
11570         SYSMAN_LIBS=$pkg_cv_SYSMAN_LIBS
11571         { echo "$as_me:$LINENO: result: yes" >&5
11572 echo "${ECHO_T}yes" >&6; }
11573         :
11574 fi
11575
11576
11577
11578 # Checks for header files.
11579 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11580 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
11581 if test "${ac_cv_header_stdc+set}" = set; then
11582   echo $ECHO_N "(cached) $ECHO_C" >&6
11583 else
11584   cat >conftest.$ac_ext <<_ACEOF
11585 /* confdefs.h.  */
11586 _ACEOF
11587 cat confdefs.h >>conftest.$ac_ext
11588 cat >>conftest.$ac_ext <<_ACEOF
11589 /* end confdefs.h.  */
11590 #include <stdlib.h>
11591 #include <stdarg.h>
11592 #include <string.h>
11593 #include <float.h>
11594
11595 int
11596 main ()
11597 {
11598
11599   ;
11600   return 0;
11601 }
11602 _ACEOF
11603 rm -f conftest.$ac_objext
11604 if { (ac_try="$ac_compile"
11605 case "(($ac_try" in
11606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607   *) ac_try_echo=$ac_try;;
11608 esac
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610   (eval "$ac_compile") 2>conftest.er1
11611   ac_status=$?
11612   grep -v '^ *+' conftest.er1 >conftest.err
11613   rm -f conftest.er1
11614   cat conftest.err >&5
11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); } && {
11617          test -z "$ac_c_werror_flag" ||
11618          test ! -s conftest.err
11619        } && test -s conftest.$ac_objext; then
11620   ac_cv_header_stdc=yes
11621 else
11622   echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11624
11625         ac_cv_header_stdc=no
11626 fi
11627
11628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11629
11630 if test $ac_cv_header_stdc = yes; then
11631   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11632   cat >conftest.$ac_ext <<_ACEOF
11633 /* confdefs.h.  */
11634 _ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h.  */
11638 #include <string.h>
11639
11640 _ACEOF
11641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11642   $EGREP "memchr" >/dev/null 2>&1; then
11643   :
11644 else
11645   ac_cv_header_stdc=no
11646 fi
11647 rm -f conftest*
11648
11649 fi
11650
11651 if test $ac_cv_header_stdc = yes; then
11652   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11653   cat >conftest.$ac_ext <<_ACEOF
11654 /* confdefs.h.  */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h.  */
11659 #include <stdlib.h>
11660
11661 _ACEOF
11662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11663   $EGREP "free" >/dev/null 2>&1; then
11664   :
11665 else
11666   ac_cv_header_stdc=no
11667 fi
11668 rm -f conftest*
11669
11670 fi
11671
11672 if test $ac_cv_header_stdc = yes; then
11673   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11674   if test "$cross_compiling" = yes; then
11675   :
11676 else
11677   cat >conftest.$ac_ext <<_ACEOF
11678 /* confdefs.h.  */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h.  */
11683 #include <ctype.h>
11684 #include <stdlib.h>
11685 #if ((' ' & 0x0FF) == 0x020)
11686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11688 #else
11689 # define ISLOWER(c) \
11690                    (('a' <= (c) && (c) <= 'i') \
11691                      || ('j' <= (c) && (c) <= 'r') \
11692                      || ('s' <= (c) && (c) <= 'z'))
11693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11694 #endif
11695
11696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11697 int
11698 main ()
11699 {
11700   int i;
11701   for (i = 0; i < 256; i++)
11702     if (XOR (islower (i), ISLOWER (i))
11703         || toupper (i) != TOUPPER (i))
11704       return 2;
11705   return 0;
11706 }
11707 _ACEOF
11708 rm -f conftest$ac_exeext
11709 if { (ac_try="$ac_link"
11710 case "(($ac_try" in
11711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712   *) ac_try_echo=$ac_try;;
11713 esac
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715   (eval "$ac_link") 2>&5
11716   ac_status=$?
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11719   { (case "(($ac_try" in
11720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721   *) ac_try_echo=$ac_try;;
11722 esac
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724   (eval "$ac_try") 2>&5
11725   ac_status=$?
11726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); }; }; then
11728   :
11729 else
11730   echo "$as_me: program exited with status $ac_status" >&5
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11733
11734 ( exit $ac_status )
11735 ac_cv_header_stdc=no
11736 fi
11737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11738 fi
11739
11740
11741 fi
11742 fi
11743 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11744 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
11745 if test $ac_cv_header_stdc = yes; then
11746
11747 cat >>confdefs.h <<\_ACEOF
11748 #define STDC_HEADERS 1
11749 _ACEOF
11750
11751 fi
11752
11753
11754
11755
11756
11757 for ac_header in fcntl.h stdlib.h sys/time.h unistd.h
11758 do
11759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11761   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11764   echo $ECHO_N "(cached) $ECHO_C" >&6
11765 fi
11766 ac_res=`eval echo '${'$as_ac_Header'}'`
11767                { echo "$as_me:$LINENO: result: $ac_res" >&5
11768 echo "${ECHO_T}$ac_res" >&6; }
11769 else
11770   # Is the header compilable?
11771 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11773 cat >conftest.$ac_ext <<_ACEOF
11774 /* confdefs.h.  */
11775 _ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h.  */
11779 $ac_includes_default
11780 #include <$ac_header>
11781 _ACEOF
11782 rm -f conftest.$ac_objext
11783 if { (ac_try="$ac_compile"
11784 case "(($ac_try" in
11785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786   *) ac_try_echo=$ac_try;;
11787 esac
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789   (eval "$ac_compile") 2>conftest.er1
11790   ac_status=$?
11791   grep -v '^ *+' conftest.er1 >conftest.err
11792   rm -f conftest.er1
11793   cat conftest.err >&5
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); } && {
11796          test -z "$ac_c_werror_flag" ||
11797          test ! -s conftest.err
11798        } && test -s conftest.$ac_objext; then
11799   ac_header_compiler=yes
11800 else
11801   echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11803
11804         ac_header_compiler=no
11805 fi
11806
11807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11809 echo "${ECHO_T}$ac_header_compiler" >&6; }
11810
11811 # Is the header present?
11812 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11814 cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h.  */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h.  */
11820 #include <$ac_header>
11821 _ACEOF
11822 if { (ac_try="$ac_cpp conftest.$ac_ext"
11823 case "(($ac_try" in
11824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825   *) ac_try_echo=$ac_try;;
11826 esac
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11829   ac_status=$?
11830   grep -v '^ *+' conftest.er1 >conftest.err
11831   rm -f conftest.er1
11832   cat conftest.err >&5
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); } >/dev/null && {
11835          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11836          test ! -s conftest.err
11837        }; then
11838   ac_header_preproc=yes
11839 else
11840   echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11842
11843   ac_header_preproc=no
11844 fi
11845
11846 rm -f conftest.err conftest.$ac_ext
11847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11848 echo "${ECHO_T}$ac_header_preproc" >&6; }
11849
11850 # So?  What about this header?
11851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11852   yes:no: )
11853     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11857     ac_header_preproc=yes
11858     ;;
11859   no:yes:* )
11860     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11862     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11863 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11864     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11866     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11867 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11870     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11872     ( cat <<\_ASBOX
11873 ## --------------------------------- ##
11874 ## Report this to BUG-REPORT-ADDRESS ##
11875 ## --------------------------------- ##
11876 _ASBOX
11877      ) | sed "s/^/$as_me: WARNING:     /" >&2
11878     ;;
11879 esac
11880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11883   echo $ECHO_N "(cached) $ECHO_C" >&6
11884 else
11885   eval "$as_ac_Header=\$ac_header_preproc"
11886 fi
11887 ac_res=`eval echo '${'$as_ac_Header'}'`
11888                { echo "$as_me:$LINENO: result: $ac_res" >&5
11889 echo "${ECHO_T}$ac_res" >&6; }
11890
11891 fi
11892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11893   cat >>confdefs.h <<_ACEOF
11894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11895 _ACEOF
11896
11897 fi
11898
11899 done
11900
11901
11902 # Checks for typedefs, structures, and compiler characteristics.
11903 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11904 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
11905 if test "${ac_cv_header_stdbool_h+set}" = set; then
11906   echo $ECHO_N "(cached) $ECHO_C" >&6
11907 else
11908   cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h.  */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h.  */
11914
11915 #include <stdbool.h>
11916 #ifndef bool
11917  "error: bool is not defined"
11918 #endif
11919 #ifndef false
11920  "error: false is not defined"
11921 #endif
11922 #if false
11923  "error: false is not 0"
11924 #endif
11925 #ifndef true
11926  "error: true is not defined"
11927 #endif
11928 #if true != 1
11929  "error: true is not 1"
11930 #endif
11931 #ifndef __bool_true_false_are_defined
11932  "error: __bool_true_false_are_defined is not defined"
11933 #endif
11934
11935         struct s { _Bool s: 1; _Bool t; } s;
11936
11937         char a[true == 1 ? 1 : -1];
11938         char b[false == 0 ? 1 : -1];
11939         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11940         char d[(bool) 0.5 == true ? 1 : -1];
11941         bool e = &s;
11942         char f[(_Bool) 0.0 == false ? 1 : -1];
11943         char g[true];
11944         char h[sizeof (_Bool)];
11945         char i[sizeof s.t];
11946         enum { j = false, k = true, l = false * true, m = true * 256 };
11947         _Bool n[m];
11948         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11949         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11950 #       if defined __xlc__ || defined __GNUC__
11951          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11952             reported by James Lemley on 2005-10-05; see
11953             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11954             This test is not quite right, since xlc is allowed to
11955             reject this program, as the initializer for xlcbug is
11956             not one of the forms that C requires support for.
11957             However, doing the test right would require a runtime
11958             test, and that would make cross-compilation harder.
11959             Let us hope that IBM fixes the xlc bug, and also adds
11960             support for this kind of constant expression.  In the
11961             meantime, this test will reject xlc, which is OK, since
11962             our stdbool.h substitute should suffice.  We also test
11963             this with GCC, where it should work, to detect more
11964             quickly whether someone messes up the test in the
11965             future.  */
11966          char digs[] = "0123456789";
11967          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11968 #       endif
11969         /* Catch a bug in an HP-UX C compiler.  See
11970            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11971            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11972          */
11973         _Bool q = true;
11974         _Bool *pq = &q;
11975
11976 int
11977 main ()
11978 {
11979
11980         *pq |= q;
11981         *pq |= ! q;
11982         /* Refer to every declared value, to avoid compiler optimizations.  */
11983         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11984                 + !m + !n + !o + !p + !q + !pq);
11985
11986   ;
11987   return 0;
11988 }
11989 _ACEOF
11990 rm -f conftest.$ac_objext
11991 if { (ac_try="$ac_compile"
11992 case "(($ac_try" in
11993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994   *) ac_try_echo=$ac_try;;
11995 esac
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997   (eval "$ac_compile") 2>conftest.er1
11998   ac_status=$?
11999   grep -v '^ *+' conftest.er1 >conftest.err
12000   rm -f conftest.er1
12001   cat conftest.err >&5
12002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003   (exit $ac_status); } && {
12004          test -z "$ac_c_werror_flag" ||
12005          test ! -s conftest.err
12006        } && test -s conftest.$ac_objext; then
12007   ac_cv_header_stdbool_h=yes
12008 else
12009   echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12011
12012         ac_cv_header_stdbool_h=no
12013 fi
12014
12015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12016 fi
12017 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
12018 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
12019 { echo "$as_me:$LINENO: checking for _Bool" >&5
12020 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12021 if test "${ac_cv_type__Bool+set}" = set; then
12022   echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12024   cat >conftest.$ac_ext <<_ACEOF
12025 /* confdefs.h.  */
12026 _ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h.  */
12030 $ac_includes_default
12031 typedef _Bool ac__type_new_;
12032 int
12033 main ()
12034 {
12035 if ((ac__type_new_ *) 0)
12036   return 0;
12037 if (sizeof (ac__type_new_))
12038   return 0;
12039   ;
12040   return 0;
12041 }
12042 _ACEOF
12043 rm -f conftest.$ac_objext
12044 if { (ac_try="$ac_compile"
12045 case "(($ac_try" in
12046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047   *) ac_try_echo=$ac_try;;
12048 esac
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050   (eval "$ac_compile") 2>conftest.er1
12051   ac_status=$?
12052   grep -v '^ *+' conftest.er1 >conftest.err
12053   rm -f conftest.er1
12054   cat conftest.err >&5
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); } && {
12057          test -z "$ac_c_werror_flag" ||
12058          test ! -s conftest.err
12059        } && test -s conftest.$ac_objext; then
12060   ac_cv_type__Bool=yes
12061 else
12062   echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065         ac_cv_type__Bool=no
12066 fi
12067
12068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12069 fi
12070 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12071 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12072 if test $ac_cv_type__Bool = yes; then
12073
12074 cat >>confdefs.h <<_ACEOF
12075 #define HAVE__BOOL 1
12076 _ACEOF
12077
12078
12079 fi
12080
12081 if test $ac_cv_header_stdbool_h = yes; then
12082
12083 cat >>confdefs.h <<\_ACEOF
12084 #define HAVE_STDBOOL_H 1
12085 _ACEOF
12086
12087 fi
12088
12089 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12090 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12091 if test "${ac_cv_c_const+set}" = set; then
12092   echo $ECHO_N "(cached) $ECHO_C" >&6
12093 else
12094   cat >conftest.$ac_ext <<_ACEOF
12095 /* confdefs.h.  */
12096 _ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h.  */
12100
12101 int
12102 main ()
12103 {
12104 /* FIXME: Include the comments suggested by Paul. */
12105 #ifndef __cplusplus
12106   /* Ultrix mips cc rejects this.  */
12107   typedef int charset[2];
12108   const charset cs;
12109   /* SunOS 4.1.1 cc rejects this.  */
12110   char const *const *pcpcc;
12111   char **ppc;
12112   /* NEC SVR4.0.2 mips cc rejects this.  */
12113   struct point {int x, y;};
12114   static struct point const zero = {0,0};
12115   /* AIX XL C 1.02.0.0 rejects this.
12116      It does not let you subtract one const X* pointer from another in
12117      an arm of an if-expression whose if-part is not a constant
12118      expression */
12119   const char *g = "string";
12120   pcpcc = &g + (g ? g-g : 0);
12121   /* HPUX 7.0 cc rejects these. */
12122   ++pcpcc;
12123   ppc = (char**) pcpcc;
12124   pcpcc = (char const *const *) ppc;
12125   { /* SCO 3.2v4 cc rejects this.  */
12126     char *t;
12127     char const *s = 0 ? (char *) 0 : (char const *) 0;
12128
12129     *t++ = 0;
12130     if (s) return 0;
12131   }
12132   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12133     int x[] = {25, 17};
12134     const int *foo = &x[0];
12135     ++foo;
12136   }
12137   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12138     typedef const int *iptr;
12139     iptr p = 0;
12140     ++p;
12141   }
12142   { /* AIX XL C 1.02.0.0 rejects this saying
12143        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12144     struct s { int j; const int *ap[3]; };
12145     struct s *b; b->j = 5;
12146   }
12147   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12148     const int foo = 10;
12149     if (!foo) return 0;
12150   }
12151   return !cs[0] && !zero.x;
12152 #endif
12153
12154   ;
12155   return 0;
12156 }
12157 _ACEOF
12158 rm -f conftest.$ac_objext
12159 if { (ac_try="$ac_compile"
12160 case "(($ac_try" in
12161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162   *) ac_try_echo=$ac_try;;
12163 esac
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165   (eval "$ac_compile") 2>conftest.er1
12166   ac_status=$?
12167   grep -v '^ *+' conftest.er1 >conftest.err
12168   rm -f conftest.er1
12169   cat conftest.err >&5
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); } && {
12172          test -z "$ac_c_werror_flag" ||
12173          test ! -s conftest.err
12174        } && test -s conftest.$ac_objext; then
12175   ac_cv_c_const=yes
12176 else
12177   echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180         ac_cv_c_const=no
12181 fi
12182
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 fi
12185 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12186 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12187 if test $ac_cv_c_const = no; then
12188
12189 cat >>confdefs.h <<\_ACEOF
12190 #define const
12191 _ACEOF
12192
12193 fi
12194
12195 { echo "$as_me:$LINENO: checking for mode_t" >&5
12196 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
12197 if test "${ac_cv_type_mode_t+set}" = set; then
12198   echo $ECHO_N "(cached) $ECHO_C" >&6
12199 else
12200   cat >conftest.$ac_ext <<_ACEOF
12201 /* confdefs.h.  */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h.  */
12206 $ac_includes_default
12207 typedef mode_t ac__type_new_;
12208 int
12209 main ()
12210 {
12211 if ((ac__type_new_ *) 0)
12212   return 0;
12213 if (sizeof (ac__type_new_))
12214   return 0;
12215   ;
12216   return 0;
12217 }
12218 _ACEOF
12219 rm -f conftest.$ac_objext
12220 if { (ac_try="$ac_compile"
12221 case "(($ac_try" in
12222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223   *) ac_try_echo=$ac_try;;
12224 esac
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226   (eval "$ac_compile") 2>conftest.er1
12227   ac_status=$?
12228   grep -v '^ *+' conftest.er1 >conftest.err
12229   rm -f conftest.er1
12230   cat conftest.err >&5
12231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232   (exit $ac_status); } && {
12233          test -z "$ac_c_werror_flag" ||
12234          test ! -s conftest.err
12235        } && test -s conftest.$ac_objext; then
12236   ac_cv_type_mode_t=yes
12237 else
12238   echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12240
12241         ac_cv_type_mode_t=no
12242 fi
12243
12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245 fi
12246 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12247 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
12248 if test $ac_cv_type_mode_t = yes; then
12249   :
12250 else
12251
12252 cat >>confdefs.h <<_ACEOF
12253 #define mode_t int
12254 _ACEOF
12255
12256 fi
12257
12258
12259 # Checks for library functions.
12260
12261 for ac_header in stdlib.h
12262 do
12263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12265   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12268   echo $ECHO_N "(cached) $ECHO_C" >&6
12269 fi
12270 ac_res=`eval echo '${'$as_ac_Header'}'`
12271                { echo "$as_me:$LINENO: result: $ac_res" >&5
12272 echo "${ECHO_T}$ac_res" >&6; }
12273 else
12274   # Is the header compilable?
12275 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12276 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12277 cat >conftest.$ac_ext <<_ACEOF
12278 /* confdefs.h.  */
12279 _ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h.  */
12283 $ac_includes_default
12284 #include <$ac_header>
12285 _ACEOF
12286 rm -f conftest.$ac_objext
12287 if { (ac_try="$ac_compile"
12288 case "(($ac_try" in
12289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290   *) ac_try_echo=$ac_try;;
12291 esac
12292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293   (eval "$ac_compile") 2>conftest.er1
12294   ac_status=$?
12295   grep -v '^ *+' conftest.er1 >conftest.err
12296   rm -f conftest.er1
12297   cat conftest.err >&5
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); } && {
12300          test -z "$ac_c_werror_flag" ||
12301          test ! -s conftest.err
12302        } && test -s conftest.$ac_objext; then
12303   ac_header_compiler=yes
12304 else
12305   echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12307
12308         ac_header_compiler=no
12309 fi
12310
12311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12313 echo "${ECHO_T}$ac_header_compiler" >&6; }
12314
12315 # Is the header present?
12316 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12318 cat >conftest.$ac_ext <<_ACEOF
12319 /* confdefs.h.  */
12320 _ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h.  */
12324 #include <$ac_header>
12325 _ACEOF
12326 if { (ac_try="$ac_cpp conftest.$ac_ext"
12327 case "(($ac_try" in
12328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329   *) ac_try_echo=$ac_try;;
12330 esac
12331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12332   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12333   ac_status=$?
12334   grep -v '^ *+' conftest.er1 >conftest.err
12335   rm -f conftest.er1
12336   cat conftest.err >&5
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); } >/dev/null && {
12339          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12340          test ! -s conftest.err
12341        }; then
12342   ac_header_preproc=yes
12343 else
12344   echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12346
12347   ac_header_preproc=no
12348 fi
12349
12350 rm -f conftest.err conftest.$ac_ext
12351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12352 echo "${ECHO_T}$ac_header_preproc" >&6; }
12353
12354 # So?  What about this header?
12355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12356   yes:no: )
12357     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12361     ac_header_preproc=yes
12362     ;;
12363   no:yes:* )
12364     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12366     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12367 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12368     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12370     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12371 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12372     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12374     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12376     ( cat <<\_ASBOX
12377 ## --------------------------------- ##
12378 ## Report this to BUG-REPORT-ADDRESS ##
12379 ## --------------------------------- ##
12380 _ASBOX
12381      ) | sed "s/^/$as_me: WARNING:     /" >&2
12382     ;;
12383 esac
12384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12387   echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389   eval "$as_ac_Header=\$ac_header_preproc"
12390 fi
12391 ac_res=`eval echo '${'$as_ac_Header'}'`
12392                { echo "$as_me:$LINENO: result: $ac_res" >&5
12393 echo "${ECHO_T}$ac_res" >&6; }
12394
12395 fi
12396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12397   cat >>confdefs.h <<_ACEOF
12398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12399 _ACEOF
12400
12401 fi
12402
12403 done
12404
12405 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
12406 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
12407 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
12408   echo $ECHO_N "(cached) $ECHO_C" >&6
12409 else
12410   if test "$cross_compiling" = yes; then
12411   ac_cv_func_malloc_0_nonnull=no
12412 else
12413   cat >conftest.$ac_ext <<_ACEOF
12414 /* confdefs.h.  */
12415 _ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h.  */
12419 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12420 # include <stdlib.h>
12421 #else
12422 char *malloc ();
12423 #endif
12424
12425 int
12426 main ()
12427 {
12428 return ! malloc (0);
12429   ;
12430   return 0;
12431 }
12432 _ACEOF
12433 rm -f conftest$ac_exeext
12434 if { (ac_try="$ac_link"
12435 case "(($ac_try" in
12436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437   *) ac_try_echo=$ac_try;;
12438 esac
12439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440   (eval "$ac_link") 2>&5
12441   ac_status=$?
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12444   { (case "(($ac_try" in
12445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446   *) ac_try_echo=$ac_try;;
12447 esac
12448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12449   (eval "$ac_try") 2>&5
12450   ac_status=$?
12451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); }; }; then
12453   ac_cv_func_malloc_0_nonnull=yes
12454 else
12455   echo "$as_me: program exited with status $ac_status" >&5
12456 echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12458
12459 ( exit $ac_status )
12460 ac_cv_func_malloc_0_nonnull=no
12461 fi
12462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12463 fi
12464
12465
12466 fi
12467 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
12468 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
12469 if test $ac_cv_func_malloc_0_nonnull = yes; then
12470
12471 cat >>confdefs.h <<\_ACEOF
12472 #define HAVE_MALLOC 1
12473 _ACEOF
12474
12475 else
12476   cat >>confdefs.h <<\_ACEOF
12477 #define HAVE_MALLOC 0
12478 _ACEOF
12479
12480    case " $LIBOBJS " in
12481   *" malloc.$ac_objext "* ) ;;
12482   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12483  ;;
12484 esac
12485
12486
12487 cat >>confdefs.h <<\_ACEOF
12488 #define malloc rpl_malloc
12489 _ACEOF
12490
12491 fi
12492
12493
12494
12495
12496 for ac_func in memset
12497 do
12498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12502   echo $ECHO_N "(cached) $ECHO_C" >&6
12503 else
12504   cat >conftest.$ac_ext <<_ACEOF
12505 /* confdefs.h.  */
12506 _ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h.  */
12510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12512 #define $ac_func innocuous_$ac_func
12513
12514 /* System header to define __stub macros and hopefully few prototypes,
12515     which can conflict with char $ac_func (); below.
12516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12517     <limits.h> exists even on freestanding compilers.  */
12518
12519 #ifdef __STDC__
12520 # include <limits.h>
12521 #else
12522 # include <assert.h>
12523 #endif
12524
12525 #undef $ac_func
12526
12527 /* Override any GCC internal prototype to avoid an error.
12528    Use char because int might match the return type of a GCC
12529    builtin and then its argument prototype would still apply.  */
12530 #ifdef __cplusplus
12531 extern "C"
12532 #endif
12533 char $ac_func ();
12534 /* The GNU C library defines this for functions which it implements
12535     to always fail with ENOSYS.  Some functions are actually named
12536     something starting with __ and the normal name is an alias.  */
12537 #if defined __stub_$ac_func || defined __stub___$ac_func
12538 choke me
12539 #endif
12540
12541 int
12542 main ()
12543 {
12544 return $ac_func ();
12545   ;
12546   return 0;
12547 }
12548 _ACEOF
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553   *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556   (eval "$ac_link") 2>conftest.er1
12557   ac_status=$?
12558   grep -v '^ *+' conftest.er1 >conftest.err
12559   rm -f conftest.er1
12560   cat conftest.err >&5
12561   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_exeext &&
12566        $as_test_x conftest$ac_exeext; then
12567   eval "$as_ac_var=yes"
12568 else
12569   echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12571
12572         eval "$as_ac_var=no"
12573 fi
12574
12575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12576       conftest$ac_exeext conftest.$ac_ext
12577 fi
12578 ac_res=`eval echo '${'$as_ac_var'}'`
12579                { echo "$as_me:$LINENO: result: $ac_res" >&5
12580 echo "${ECHO_T}$ac_res" >&6; }
12581 if test `eval echo '${'$as_ac_var'}'` = yes; then
12582   cat >>confdefs.h <<_ACEOF
12583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12584 _ACEOF
12585
12586 fi
12587 done
12588
12589
12590 ac_config_files="$ac_config_files Makefile audio-session-mgr.pc init/Makefile"
12591
12592 cat >confcache <<\_ACEOF
12593 # This file is a shell script that caches the results of configure
12594 # tests run on this system so they can be shared between configure
12595 # scripts and configure runs, see configure's option --config-cache.
12596 # It is not useful on other systems.  If it contains results you don't
12597 # want to keep, you may remove or edit it.
12598 #
12599 # config.status only pays attention to the cache file if you give it
12600 # the --recheck option to rerun configure.
12601 #
12602 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12603 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12604 # following values.
12605
12606 _ACEOF
12607
12608 # The following way of writing the cache mishandles newlines in values,
12609 # but we know of no workaround that is simple, portable, and efficient.
12610 # So, we kill variables containing newlines.
12611 # Ultrix sh set writes to stderr and can't be redirected directly,
12612 # and sets the high bit in the cache file unless we assign to the vars.
12613 (
12614   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12615     eval ac_val=\$$ac_var
12616     case $ac_val in #(
12617     *${as_nl}*)
12618       case $ac_var in #(
12619       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12620 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12621       esac
12622       case $ac_var in #(
12623       _ | IFS | as_nl) ;; #(
12624       *) $as_unset $ac_var ;;
12625       esac ;;
12626     esac
12627   done
12628
12629   (set) 2>&1 |
12630     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12631     *${as_nl}ac_space=\ *)
12632       # `set' does not quote correctly, so add quotes (double-quote
12633       # substitution turns \\\\ into \\, and sed turns \\ into \).
12634       sed -n \
12635         "s/'/'\\\\''/g;
12636           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12637       ;; #(
12638     *)
12639       # `set' quotes correctly as required by POSIX, so do not add quotes.
12640       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12641       ;;
12642     esac |
12643     sort
12644 ) |
12645   sed '
12646      /^ac_cv_env_/b end
12647      t clear
12648      :clear
12649      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12650      t end
12651      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12652      :end' >>confcache
12653 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12654   if test -w "$cache_file"; then
12655     test "x$cache_file" != "x/dev/null" &&
12656       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12657 echo "$as_me: updating cache $cache_file" >&6;}
12658     cat confcache >$cache_file
12659   else
12660     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12661 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12662   fi
12663 fi
12664 rm -f confcache
12665
12666 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12667 # Let make expand exec_prefix.
12668 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12669
12670 DEFS=-DHAVE_CONFIG_H
12671
12672 ac_libobjs=
12673 ac_ltlibobjs=
12674 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12675   # 1. Remove the extension, and $U if already installed.
12676   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12677   ac_i=`echo "$ac_i" | sed "$ac_script"`
12678   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12679   #    will be set to the directory where LIBOBJS objects are built.
12680   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12681   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12682 done
12683 LIBOBJS=$ac_libobjs
12684
12685 LTLIBOBJS=$ac_ltlibobjs
12686
12687
12688 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12689   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12690 Usually this means the macro was only invoked conditionally." >&5
12691 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12692 Usually this means the macro was only invoked conditionally." >&2;}
12693    { (exit 1); exit 1; }; }
12694 fi
12695 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12696   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12697 Usually this means the macro was only invoked conditionally." >&5
12698 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12699 Usually this means the macro was only invoked conditionally." >&2;}
12700    { (exit 1); exit 1; }; }
12701 fi
12702
12703 : ${CONFIG_STATUS=./config.status}
12704 ac_clean_files_save=$ac_clean_files
12705 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12706 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12707 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12708 cat >$CONFIG_STATUS <<_ACEOF
12709 #! $SHELL
12710 # Generated by $as_me.
12711 # Run this file to recreate the current configuration.
12712 # Compiler output produced by configure, useful for debugging
12713 # configure, is in config.log if it exists.
12714
12715 debug=false
12716 ac_cs_recheck=false
12717 ac_cs_silent=false
12718 SHELL=\${CONFIG_SHELL-$SHELL}
12719 _ACEOF
12720
12721 cat >>$CONFIG_STATUS <<\_ACEOF
12722 ## --------------------- ##
12723 ## M4sh Initialization.  ##
12724 ## --------------------- ##
12725
12726 # Be more Bourne compatible
12727 DUALCASE=1; export DUALCASE # for MKS sh
12728 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12729   emulate sh
12730   NULLCMD=:
12731   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12732   # is contrary to our usage.  Disable this feature.
12733   alias -g '${1+"$@"}'='"$@"'
12734   setopt NO_GLOB_SUBST
12735 else
12736   case `(set -o) 2>/dev/null` in
12737   *posix*) set -o posix ;;
12738 esac
12739
12740 fi
12741
12742
12743
12744
12745 # PATH needs CR
12746 # Avoid depending upon Character Ranges.
12747 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12748 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12749 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12750 as_cr_digits='0123456789'
12751 as_cr_alnum=$as_cr_Letters$as_cr_digits
12752
12753 # The user is always right.
12754 if test "${PATH_SEPARATOR+set}" != set; then
12755   echo "#! /bin/sh" >conf$$.sh
12756   echo  "exit 0"   >>conf$$.sh
12757   chmod +x conf$$.sh
12758   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12759     PATH_SEPARATOR=';'
12760   else
12761     PATH_SEPARATOR=:
12762   fi
12763   rm -f conf$$.sh
12764 fi
12765
12766 # Support unset when possible.
12767 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12768   as_unset=unset
12769 else
12770   as_unset=false
12771 fi
12772
12773
12774 # IFS
12775 # We need space, tab and new line, in precisely that order.  Quoting is
12776 # there to prevent editors from complaining about space-tab.
12777 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12778 # splitting by setting IFS to empty value.)
12779 as_nl='
12780 '
12781 IFS=" ""        $as_nl"
12782
12783 # Find who we are.  Look in the path if we contain no directory separator.
12784 case $0 in
12785   *[\\/]* ) as_myself=$0 ;;
12786   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12787 for as_dir in $PATH
12788 do
12789   IFS=$as_save_IFS
12790   test -z "$as_dir" && as_dir=.
12791   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12792 done
12793 IFS=$as_save_IFS
12794
12795      ;;
12796 esac
12797 # We did not find ourselves, most probably we were run as `sh COMMAND'
12798 # in which case we are not to be found in the path.
12799 if test "x$as_myself" = x; then
12800   as_myself=$0
12801 fi
12802 if test ! -f "$as_myself"; then
12803   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12804   { (exit 1); exit 1; }
12805 fi
12806
12807 # Work around bugs in pre-3.0 UWIN ksh.
12808 for as_var in ENV MAIL MAILPATH
12809 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12810 done
12811 PS1='$ '
12812 PS2='> '
12813 PS4='+ '
12814
12815 # NLS nuisances.
12816 for as_var in \
12817   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12818   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12819   LC_TELEPHONE LC_TIME
12820 do
12821   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12822     eval $as_var=C; export $as_var
12823   else
12824     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12825   fi
12826 done
12827
12828 # Required to use basename.
12829 if expr a : '\(a\)' >/dev/null 2>&1 &&
12830    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12831   as_expr=expr
12832 else
12833   as_expr=false
12834 fi
12835
12836 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12837   as_basename=basename
12838 else
12839   as_basename=false
12840 fi
12841
12842
12843 # Name of the executable.
12844 as_me=`$as_basename -- "$0" ||
12845 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12846          X"$0" : 'X\(//\)$' \| \
12847          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12848 echo X/"$0" |
12849     sed '/^.*\/\([^/][^/]*\)\/*$/{
12850             s//\1/
12851             q
12852           }
12853           /^X\/\(\/\/\)$/{
12854             s//\1/
12855             q
12856           }
12857           /^X\/\(\/\).*/{
12858             s//\1/
12859             q
12860           }
12861           s/.*/./; q'`
12862
12863 # CDPATH.
12864 $as_unset CDPATH
12865
12866
12867
12868   as_lineno_1=$LINENO
12869   as_lineno_2=$LINENO
12870   test "x$as_lineno_1" != "x$as_lineno_2" &&
12871   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12872
12873   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12874   # uniformly replaced by the line number.  The first 'sed' inserts a
12875   # line-number line after each line using $LINENO; the second 'sed'
12876   # does the real work.  The second script uses 'N' to pair each
12877   # line-number line with the line containing $LINENO, and appends
12878   # trailing '-' during substitution so that $LINENO is not a special
12879   # case at line end.
12880   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12881   # scripts with optimization help from Paolo Bonzini.  Blame Lee
12882   # E. McMahon (1931-1989) for sed's syntax.  :-)
12883   sed -n '
12884     p
12885     /[$]LINENO/=
12886   ' <$as_myself |
12887     sed '
12888       s/[$]LINENO.*/&-/
12889       t lineno
12890       b
12891       :lineno
12892       N
12893       :loop
12894       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12895       t loop
12896       s/-\n.*//
12897     ' >$as_me.lineno &&
12898   chmod +x "$as_me.lineno" ||
12899     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12900    { (exit 1); exit 1; }; }
12901
12902   # Don't try to exec as it changes $[0], causing all sort of problems
12903   # (the dirname of $[0] is not the place where we might find the
12904   # original and so on.  Autoconf is especially sensitive to this).
12905   . "./$as_me.lineno"
12906   # Exit status is that of the last command.
12907   exit
12908 }
12909
12910
12911 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12912   as_dirname=dirname
12913 else
12914   as_dirname=false
12915 fi
12916
12917 ECHO_C= ECHO_N= ECHO_T=
12918 case `echo -n x` in
12919 -n*)
12920   case `echo 'x\c'` in
12921   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12922   *)   ECHO_C='\c';;
12923   esac;;
12924 *)
12925   ECHO_N='-n';;
12926 esac
12927
12928 if expr a : '\(a\)' >/dev/null 2>&1 &&
12929    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12930   as_expr=expr
12931 else
12932   as_expr=false
12933 fi
12934
12935 rm -f conf$$ conf$$.exe conf$$.file
12936 if test -d conf$$.dir; then
12937   rm -f conf$$.dir/conf$$.file
12938 else
12939   rm -f conf$$.dir
12940   mkdir conf$$.dir
12941 fi
12942 echo >conf$$.file
12943 if ln -s conf$$.file conf$$ 2>/dev/null; then
12944   as_ln_s='ln -s'
12945   # ... but there are two gotchas:
12946   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12947   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12948   # In both cases, we have to default to `cp -p'.
12949   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12950     as_ln_s='cp -p'
12951 elif ln conf$$.file conf$$ 2>/dev/null; then
12952   as_ln_s=ln
12953 else
12954   as_ln_s='cp -p'
12955 fi
12956 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12957 rmdir conf$$.dir 2>/dev/null
12958
12959 if mkdir -p . 2>/dev/null; then
12960   as_mkdir_p=:
12961 else
12962   test -d ./-p && rmdir ./-p
12963   as_mkdir_p=false
12964 fi
12965
12966 if test -x / >/dev/null 2>&1; then
12967   as_test_x='test -x'
12968 else
12969   if ls -dL / >/dev/null 2>&1; then
12970     as_ls_L_option=L
12971   else
12972     as_ls_L_option=
12973   fi
12974   as_test_x='
12975     eval sh -c '\''
12976       if test -d "$1"; then
12977         test -d "$1/.";
12978       else
12979         case $1 in
12980         -*)set "./$1";;
12981         esac;
12982         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12983         ???[sx]*):;;*)false;;esac;fi
12984     '\'' sh
12985   '
12986 fi
12987 as_executable_p=$as_test_x
12988
12989 # Sed expression to map a string onto a valid CPP name.
12990 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12991
12992 # Sed expression to map a string onto a valid variable name.
12993 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12994
12995
12996 exec 6>&1
12997
12998 # Save the log message, to keep $[0] and so on meaningful, and to
12999 # report actual input values of CONFIG_FILES etc. instead of their
13000 # values after options handling.
13001 ac_log="
13002 This file was extended by AUDIOSESSIONMGR $as_me 1.0, which was
13003 generated by GNU Autoconf 2.61.  Invocation command line was
13004
13005   CONFIG_FILES    = $CONFIG_FILES
13006   CONFIG_HEADERS  = $CONFIG_HEADERS
13007   CONFIG_LINKS    = $CONFIG_LINKS
13008   CONFIG_COMMANDS = $CONFIG_COMMANDS
13009   $ $0 $@
13010
13011 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13012 "
13013
13014 _ACEOF
13015
13016 cat >>$CONFIG_STATUS <<_ACEOF
13017 # Files that config.status was made for.
13018 config_files="$ac_config_files"
13019 config_headers="$ac_config_headers"
13020 config_commands="$ac_config_commands"
13021
13022 _ACEOF
13023
13024 cat >>$CONFIG_STATUS <<\_ACEOF
13025 ac_cs_usage="\
13026 \`$as_me' instantiates files from templates according to the
13027 current configuration.
13028
13029 Usage: $0 [OPTIONS] [FILE]...
13030
13031   -h, --help       print this help, then exit
13032   -V, --version    print version number and configuration settings, then exit
13033   -q, --quiet      do not print progress messages
13034   -d, --debug      don't remove temporary files
13035       --recheck    update $as_me by reconfiguring in the same conditions
13036   --file=FILE[:TEMPLATE]
13037                    instantiate the configuration file FILE
13038   --header=FILE[:TEMPLATE]
13039                    instantiate the configuration header FILE
13040
13041 Configuration files:
13042 $config_files
13043
13044 Configuration headers:
13045 $config_headers
13046
13047 Configuration commands:
13048 $config_commands
13049
13050 Report bugs to <bug-autoconf@gnu.org>."
13051
13052 _ACEOF
13053 cat >>$CONFIG_STATUS <<_ACEOF
13054 ac_cs_version="\\
13055 AUDIOSESSIONMGR config.status 1.0
13056 configured by $0, generated by GNU Autoconf 2.61,
13057   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13058
13059 Copyright (C) 2006 Free Software Foundation, Inc.
13060 This config.status script is free software; the Free Software Foundation
13061 gives unlimited permission to copy, distribute and modify it."
13062
13063 ac_pwd='$ac_pwd'
13064 srcdir='$srcdir'
13065 INSTALL='$INSTALL'
13066 MKDIR_P='$MKDIR_P'
13067 _ACEOF
13068
13069 cat >>$CONFIG_STATUS <<\_ACEOF
13070 # If no file are specified by the user, then we need to provide default
13071 # value.  By we need to know if files were specified by the user.
13072 ac_need_defaults=:
13073 while test $# != 0
13074 do
13075   case $1 in
13076   --*=*)
13077     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13078     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13079     ac_shift=:
13080     ;;
13081   *)
13082     ac_option=$1
13083     ac_optarg=$2
13084     ac_shift=shift
13085     ;;
13086   esac
13087
13088   case $ac_option in
13089   # Handling of the options.
13090   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13091     ac_cs_recheck=: ;;
13092   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13093     echo "$ac_cs_version"; exit ;;
13094   --debug | --debu | --deb | --de | --d | -d )
13095     debug=: ;;
13096   --file | --fil | --fi | --f )
13097     $ac_shift
13098     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13099     ac_need_defaults=false;;
13100   --header | --heade | --head | --hea )
13101     $ac_shift
13102     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13103     ac_need_defaults=false;;
13104   --he | --h)
13105     # Conflict between --help and --header
13106     { echo "$as_me: error: ambiguous option: $1
13107 Try \`$0 --help' for more information." >&2
13108    { (exit 1); exit 1; }; };;
13109   --help | --hel | -h )
13110     echo "$ac_cs_usage"; exit ;;
13111   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13112   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13113     ac_cs_silent=: ;;
13114
13115   # This is an error.
13116   -*) { echo "$as_me: error: unrecognized option: $1
13117 Try \`$0 --help' for more information." >&2
13118    { (exit 1); exit 1; }; } ;;
13119
13120   *) ac_config_targets="$ac_config_targets $1"
13121      ac_need_defaults=false ;;
13122
13123   esac
13124   shift
13125 done
13126
13127 ac_configure_extra_args=
13128
13129 if $ac_cs_silent; then
13130   exec 6>/dev/null
13131   ac_configure_extra_args="$ac_configure_extra_args --silent"
13132 fi
13133
13134 _ACEOF
13135 cat >>$CONFIG_STATUS <<_ACEOF
13136 if \$ac_cs_recheck; then
13137   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13138   CONFIG_SHELL=$SHELL
13139   export CONFIG_SHELL
13140   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13141 fi
13142
13143 _ACEOF
13144 cat >>$CONFIG_STATUS <<\_ACEOF
13145 exec 5>>config.log
13146 {
13147   echo
13148   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13149 ## Running $as_me. ##
13150 _ASBOX
13151   echo "$ac_log"
13152 } >&5
13153
13154 _ACEOF
13155 cat >>$CONFIG_STATUS <<_ACEOF
13156 #
13157 # INIT-COMMANDS
13158 #
13159 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13160
13161
13162 # The HP-UX ksh and POSIX shell print the target directory to stdout
13163 # if CDPATH is set.
13164 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13165
13166 sed_quote_subst='$sed_quote_subst'
13167 double_quote_subst='$double_quote_subst'
13168 delay_variable_subst='$delay_variable_subst'
13169 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13170 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13171 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13172 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13173 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13174 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13175 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13176 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13177 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13178 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13179 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13180 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13181 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13182 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13183 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13184 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13185 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13186 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13187 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13188 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13189 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13190 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13191 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13192 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13193 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13194 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13195 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13196 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13197 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13198 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13199 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13200 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13201 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13202 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13203 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13204 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13205 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13206 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13207 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13208 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13209 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13210 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13211 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13212 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"`'
13213 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"`'
13214 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13215 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13216 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13217 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13218 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13219 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13220 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13221 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13222 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13223 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13224 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13225 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13226 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13227 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13228 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13229 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13230 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13231 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13232 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13233 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13234 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13235 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13236 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13237 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13238 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13239 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13240 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13241 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13242 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13243 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13244 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13245 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13246 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13247 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13248 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13249 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13250 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13251 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13252 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13253 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13254 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13255 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13256 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13257 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13258 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13259 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13260 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13261 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13262 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13263 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13264 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13265 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13266 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13267 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13268 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13269 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13270 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13271 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13272 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13273 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13274 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13275 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13276 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13277 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13278 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13279 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13280 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13281 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13282 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13283 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13284 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13285 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13286
13287 LTCC='$LTCC'
13288 LTCFLAGS='$LTCFLAGS'
13289 compiler='$compiler_DEFAULT'
13290
13291 # Quote evaled strings.
13292 for var in SED \
13293 GREP \
13294 EGREP \
13295 FGREP \
13296 LD \
13297 NM \
13298 LN_S \
13299 lt_SP2NL \
13300 lt_NL2SP \
13301 reload_flag \
13302 deplibs_check_method \
13303 file_magic_cmd \
13304 AR \
13305 AR_FLAGS \
13306 STRIP \
13307 RANLIB \
13308 CC \
13309 CFLAGS \
13310 compiler \
13311 lt_cv_sys_global_symbol_pipe \
13312 lt_cv_sys_global_symbol_to_cdecl \
13313 lt_cv_sys_global_symbol_to_c_name_address \
13314 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13315 SHELL \
13316 ECHO \
13317 lt_prog_compiler_no_builtin_flag \
13318 lt_prog_compiler_wl \
13319 lt_prog_compiler_pic \
13320 lt_prog_compiler_static \
13321 lt_cv_prog_compiler_c_o \
13322 need_locks \
13323 DSYMUTIL \
13324 NMEDIT \
13325 LIPO \
13326 OTOOL \
13327 OTOOL64 \
13328 shrext_cmds \
13329 export_dynamic_flag_spec \
13330 whole_archive_flag_spec \
13331 compiler_needs_object \
13332 with_gnu_ld \
13333 allow_undefined_flag \
13334 no_undefined_flag \
13335 hardcode_libdir_flag_spec \
13336 hardcode_libdir_flag_spec_ld \
13337 hardcode_libdir_separator \
13338 fix_srcfile_path \
13339 exclude_expsyms \
13340 include_expsyms \
13341 file_list_spec \
13342 variables_saved_for_relink \
13343 libname_spec \
13344 library_names_spec \
13345 soname_spec \
13346 finish_eval \
13347 old_striplib \
13348 striplib; do
13349     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13350     *[\\\\\\\`\\"\\\$]*)
13351       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13352       ;;
13353     *)
13354       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13355       ;;
13356     esac
13357 done
13358
13359 # Double-quote double-evaled strings.
13360 for var in reload_cmds \
13361 old_postinstall_cmds \
13362 old_postuninstall_cmds \
13363 old_archive_cmds \
13364 extract_expsyms_cmds \
13365 old_archive_from_new_cmds \
13366 old_archive_from_expsyms_cmds \
13367 archive_cmds \
13368 archive_expsym_cmds \
13369 module_cmds \
13370 module_expsym_cmds \
13371 export_symbols_cmds \
13372 prelink_cmds \
13373 postinstall_cmds \
13374 postuninstall_cmds \
13375 finish_cmds \
13376 sys_lib_search_path_spec \
13377 sys_lib_dlsearch_path_spec; do
13378     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13379     *[\\\\\\\`\\"\\\$]*)
13380       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13381       ;;
13382     *)
13383       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13384       ;;
13385     esac
13386 done
13387
13388 # Fix-up fallback echo if it was mangled by the above quoting rules.
13389 case \$lt_ECHO in
13390 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13391   ;;
13392 esac
13393
13394 ac_aux_dir='$ac_aux_dir'
13395 xsi_shell='$xsi_shell'
13396 lt_shell_append='$lt_shell_append'
13397
13398 # See if we are running on zsh, and set the options which allow our
13399 # commands through without removal of \ escapes INIT.
13400 if test -n "\${ZSH_VERSION+set}" ; then
13401    setopt NO_GLOB_SUBST
13402 fi
13403
13404
13405     PACKAGE='$PACKAGE'
13406     VERSION='$VERSION'
13407     TIMESTAMP='$TIMESTAMP'
13408     RM='$RM'
13409     ofile='$ofile'
13410
13411
13412
13413
13414 _ACEOF
13415
13416 cat >>$CONFIG_STATUS <<\_ACEOF
13417
13418 # Handling of arguments.
13419 for ac_config_target in $ac_config_targets
13420 do
13421   case $ac_config_target in
13422     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13423     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13424     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13425     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13426     "audio-session-mgr.pc") CONFIG_FILES="$CONFIG_FILES audio-session-mgr.pc" ;;
13427     "init/Makefile") CONFIG_FILES="$CONFIG_FILES init/Makefile" ;;
13428
13429   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13430 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13431    { (exit 1); exit 1; }; };;
13432   esac
13433 done
13434
13435
13436 # If the user did not use the arguments to specify the items to instantiate,
13437 # then the envvar interface is used.  Set only those that are not.
13438 # We use the long form for the default assignment because of an extremely
13439 # bizarre bug on SunOS 4.1.3.
13440 if $ac_need_defaults; then
13441   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13442   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13443   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13444 fi
13445
13446 # Have a temporary directory for convenience.  Make it in the build tree
13447 # simply because there is no reason against having it here, and in addition,
13448 # creating and moving files from /tmp can sometimes cause problems.
13449 # Hook for its removal unless debugging.
13450 # Note that there is a small window in which the directory will not be cleaned:
13451 # after its creation but before its name has been assigned to `$tmp'.
13452 $debug ||
13453 {
13454   tmp=
13455   trap 'exit_status=$?
13456   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13457 ' 0
13458   trap '{ (exit 1); exit 1; }' 1 2 13 15
13459 }
13460 # Create a (secure) tmp directory for tmp files.
13461
13462 {
13463   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13464   test -n "$tmp" && test -d "$tmp"
13465 }  ||
13466 {
13467   tmp=./conf$$-$RANDOM
13468   (umask 077 && mkdir "$tmp")
13469 } ||
13470 {
13471    echo "$me: cannot create a temporary directory in ." >&2
13472    { (exit 1); exit 1; }
13473 }
13474
13475 #
13476 # Set up the sed scripts for CONFIG_FILES section.
13477 #
13478
13479 # No need to generate the scripts if there are no CONFIG_FILES.
13480 # This happens for instance when ./config.status config.h
13481 if test -n "$CONFIG_FILES"; then
13482
13483 _ACEOF
13484
13485
13486
13487 ac_delim='%!_!# '
13488 for ac_last_try in false false false false false :; do
13489   cat >conf$$subs.sed <<_ACEOF
13490 SHELL!$SHELL$ac_delim
13491 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13492 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13493 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13494 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13495 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13496 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13497 exec_prefix!$exec_prefix$ac_delim
13498 prefix!$prefix$ac_delim
13499 program_transform_name!$program_transform_name$ac_delim
13500 bindir!$bindir$ac_delim
13501 sbindir!$sbindir$ac_delim
13502 libexecdir!$libexecdir$ac_delim
13503 datarootdir!$datarootdir$ac_delim
13504 datadir!$datadir$ac_delim
13505 sysconfdir!$sysconfdir$ac_delim
13506 sharedstatedir!$sharedstatedir$ac_delim
13507 localstatedir!$localstatedir$ac_delim
13508 includedir!$includedir$ac_delim
13509 oldincludedir!$oldincludedir$ac_delim
13510 docdir!$docdir$ac_delim
13511 infodir!$infodir$ac_delim
13512 htmldir!$htmldir$ac_delim
13513 dvidir!$dvidir$ac_delim
13514 pdfdir!$pdfdir$ac_delim
13515 psdir!$psdir$ac_delim
13516 libdir!$libdir$ac_delim
13517 localedir!$localedir$ac_delim
13518 mandir!$mandir$ac_delim
13519 DEFS!$DEFS$ac_delim
13520 ECHO_C!$ECHO_C$ac_delim
13521 ECHO_N!$ECHO_N$ac_delim
13522 ECHO_T!$ECHO_T$ac_delim
13523 LIBS!$LIBS$ac_delim
13524 build_alias!$build_alias$ac_delim
13525 host_alias!$host_alias$ac_delim
13526 target_alias!$target_alias$ac_delim
13527 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13528 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13529 INSTALL_DATA!$INSTALL_DATA$ac_delim
13530 am__isrc!$am__isrc$ac_delim
13531 CYGPATH_W!$CYGPATH_W$ac_delim
13532 PACKAGE!$PACKAGE$ac_delim
13533 VERSION!$VERSION$ac_delim
13534 ACLOCAL!$ACLOCAL$ac_delim
13535 AUTOCONF!$AUTOCONF$ac_delim
13536 AUTOMAKE!$AUTOMAKE$ac_delim
13537 AUTOHEADER!$AUTOHEADER$ac_delim
13538 MAKEINFO!$MAKEINFO$ac_delim
13539 install_sh!$install_sh$ac_delim
13540 STRIP!$STRIP$ac_delim
13541 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13542 mkdir_p!$mkdir_p$ac_delim
13543 AWK!$AWK$ac_delim
13544 SET_MAKE!$SET_MAKE$ac_delim
13545 am__leading_dot!$am__leading_dot$ac_delim
13546 AMTAR!$AMTAR$ac_delim
13547 am__tar!$am__tar$ac_delim
13548 am__untar!$am__untar$ac_delim
13549 CC!$CC$ac_delim
13550 CFLAGS!$CFLAGS$ac_delim
13551 LDFLAGS!$LDFLAGS$ac_delim
13552 CPPFLAGS!$CPPFLAGS$ac_delim
13553 ac_ct_CC!$ac_ct_CC$ac_delim
13554 EXEEXT!$EXEEXT$ac_delim
13555 OBJEXT!$OBJEXT$ac_delim
13556 DEPDIR!$DEPDIR$ac_delim
13557 am__include!$am__include$ac_delim
13558 am__quote!$am__quote$ac_delim
13559 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
13560 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
13561 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
13562 CCDEPMODE!$CCDEPMODE$ac_delim
13563 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13564 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
13565 LIBTOOL!$LIBTOOL$ac_delim
13566 build!$build$ac_delim
13567 build_cpu!$build_cpu$ac_delim
13568 build_vendor!$build_vendor$ac_delim
13569 build_os!$build_os$ac_delim
13570 host!$host$ac_delim
13571 host_cpu!$host_cpu$ac_delim
13572 host_vendor!$host_vendor$ac_delim
13573 host_os!$host_os$ac_delim
13574 SED!$SED$ac_delim
13575 GREP!$GREP$ac_delim
13576 EGREP!$EGREP$ac_delim
13577 FGREP!$FGREP$ac_delim
13578 LD!$LD$ac_delim
13579 DUMPBIN!$DUMPBIN$ac_delim
13580 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
13581 NM!$NM$ac_delim
13582 LN_S!$LN_S$ac_delim
13583 AR!$AR$ac_delim
13584 RANLIB!$RANLIB$ac_delim
13585 lt_ECHO!$lt_ECHO$ac_delim
13586 DSYMUTIL!$DSYMUTIL$ac_delim
13587 _ACEOF
13588
13589   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13590     break
13591   elif $ac_last_try; then
13592     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13593 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13594    { (exit 1); exit 1; }; }
13595   else
13596     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13597   fi
13598 done
13599
13600 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13601 if test -n "$ac_eof"; then
13602   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13603   ac_eof=`expr $ac_eof + 1`
13604 fi
13605
13606 cat >>$CONFIG_STATUS <<_ACEOF
13607 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13608 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13609 _ACEOF
13610 sed '
13611 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13612 s/^/s,@/; s/!/@,|#_!!_#|/
13613 :n
13614 t n
13615 s/'"$ac_delim"'$/,g/; t
13616 s/$/\\/; p
13617 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13618 ' >>$CONFIG_STATUS <conf$$subs.sed
13619 rm -f conf$$subs.sed
13620 cat >>$CONFIG_STATUS <<_ACEOF
13621 CEOF$ac_eof
13622 _ACEOF
13623
13624
13625 ac_delim='%!_!# '
13626 for ac_last_try in false false false false false :; do
13627   cat >conf$$subs.sed <<_ACEOF
13628 NMEDIT!$NMEDIT$ac_delim
13629 LIPO!$LIPO$ac_delim
13630 OTOOL!$OTOOL$ac_delim
13631 OTOOL64!$OTOOL64$ac_delim
13632 CPP!$CPP$ac_delim
13633 PKG_CONFIG!$PKG_CONFIG$ac_delim
13634 AUDIOSESSIONMGR_CFLAGS!$AUDIOSESSIONMGR_CFLAGS$ac_delim
13635 AUDIOSESSIONMGR_LIBS!$AUDIOSESSIONMGR_LIBS$ac_delim
13636 MMLOG_CFLAGS!$MMLOG_CFLAGS$ac_delim
13637 MMLOG_LIBS!$MMLOG_LIBS$ac_delim
13638 SYSMAN_CFLAGS!$SYSMAN_CFLAGS$ac_delim
13639 SYSMAN_LIBS!$SYSMAN_LIBS$ac_delim
13640 LIBOBJS!$LIBOBJS$ac_delim
13641 LTLIBOBJS!$LTLIBOBJS$ac_delim
13642 _ACEOF
13643
13644   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
13645     break
13646   elif $ac_last_try; then
13647     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13648 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13649    { (exit 1); exit 1; }; }
13650   else
13651     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13652   fi
13653 done
13654
13655 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13656 if test -n "$ac_eof"; then
13657   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13658   ac_eof=`expr $ac_eof + 1`
13659 fi
13660
13661 cat >>$CONFIG_STATUS <<_ACEOF
13662 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13664 _ACEOF
13665 sed '
13666 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13667 s/^/s,@/; s/!/@,|#_!!_#|/
13668 :n
13669 t n
13670 s/'"$ac_delim"'$/,g/; t
13671 s/$/\\/; p
13672 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13673 ' >>$CONFIG_STATUS <conf$$subs.sed
13674 rm -f conf$$subs.sed
13675 cat >>$CONFIG_STATUS <<_ACEOF
13676 :end
13677 s/|#_!!_#|//g
13678 CEOF$ac_eof
13679 _ACEOF
13680
13681
13682 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13683 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13684 # trailing colons and then remove the whole line if VPATH becomes empty
13685 # (actually we leave an empty line to preserve line numbers).
13686 if test "x$srcdir" = x.; then
13687   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13688 s/:*\$(srcdir):*/:/
13689 s/:*\${srcdir}:*/:/
13690 s/:*@srcdir@:*/:/
13691 s/^\([^=]*=[     ]*\):*/\1/
13692 s/:*$//
13693 s/^[^=]*=[       ]*$//
13694 }'
13695 fi
13696
13697 cat >>$CONFIG_STATUS <<\_ACEOF
13698 fi # test -n "$CONFIG_FILES"
13699
13700
13701 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
13702 do
13703   case $ac_tag in
13704   :[FHLC]) ac_mode=$ac_tag; continue;;
13705   esac
13706   case $ac_mode$ac_tag in
13707   :[FHL]*:*);;
13708   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13709 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13710    { (exit 1); exit 1; }; };;
13711   :[FH]-) ac_tag=-:-;;
13712   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13713   esac
13714   ac_save_IFS=$IFS
13715   IFS=:
13716   set x $ac_tag
13717   IFS=$ac_save_IFS
13718   shift
13719   ac_file=$1
13720   shift
13721
13722   case $ac_mode in
13723   :L) ac_source=$1;;
13724   :[FH])
13725     ac_file_inputs=
13726     for ac_f
13727     do
13728       case $ac_f in
13729       -) ac_f="$tmp/stdin";;
13730       *) # Look for the file first in the build tree, then in the source tree
13731          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13732          # because $ac_f cannot contain `:'.
13733          test -f "$ac_f" ||
13734            case $ac_f in
13735            [\\/$]*) false;;
13736            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13737            esac ||
13738            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13739 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13740    { (exit 1); exit 1; }; };;
13741       esac
13742       ac_file_inputs="$ac_file_inputs $ac_f"
13743     done
13744
13745     # Let's still pretend it is `configure' which instantiates (i.e., don't
13746     # use $as_me), people would be surprised to read:
13747     #    /* config.h.  Generated by config.status.  */
13748     configure_input="Generated from "`IFS=:
13749           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13750     if test x"$ac_file" != x-; then
13751       configure_input="$ac_file.  $configure_input"
13752       { echo "$as_me:$LINENO: creating $ac_file" >&5
13753 echo "$as_me: creating $ac_file" >&6;}
13754     fi
13755
13756     case $ac_tag in
13757     *:-:* | *:-) cat >"$tmp/stdin";;
13758     esac
13759     ;;
13760   esac
13761
13762   ac_dir=`$as_dirname -- "$ac_file" ||
13763 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13764          X"$ac_file" : 'X\(//\)[^/]' \| \
13765          X"$ac_file" : 'X\(//\)$' \| \
13766          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13767 echo X"$ac_file" |
13768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13769             s//\1/
13770             q
13771           }
13772           /^X\(\/\/\)[^/].*/{
13773             s//\1/
13774             q
13775           }
13776           /^X\(\/\/\)$/{
13777             s//\1/
13778             q
13779           }
13780           /^X\(\/\).*/{
13781             s//\1/
13782             q
13783           }
13784           s/.*/./; q'`
13785   { as_dir="$ac_dir"
13786   case $as_dir in #(
13787   -*) as_dir=./$as_dir;;
13788   esac
13789   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13790     as_dirs=
13791     while :; do
13792       case $as_dir in #(
13793       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13794       *) as_qdir=$as_dir;;
13795       esac
13796       as_dirs="'$as_qdir' $as_dirs"
13797       as_dir=`$as_dirname -- "$as_dir" ||
13798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13799          X"$as_dir" : 'X\(//\)[^/]' \| \
13800          X"$as_dir" : 'X\(//\)$' \| \
13801          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13802 echo X"$as_dir" |
13803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13804             s//\1/
13805             q
13806           }
13807           /^X\(\/\/\)[^/].*/{
13808             s//\1/
13809             q
13810           }
13811           /^X\(\/\/\)$/{
13812             s//\1/
13813             q
13814           }
13815           /^X\(\/\).*/{
13816             s//\1/
13817             q
13818           }
13819           s/.*/./; q'`
13820       test -d "$as_dir" && break
13821     done
13822     test -z "$as_dirs" || eval "mkdir $as_dirs"
13823   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13824 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13825    { (exit 1); exit 1; }; }; }
13826   ac_builddir=.
13827
13828 case "$ac_dir" in
13829 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13830 *)
13831   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13832   # A ".." for each directory in $ac_dir_suffix.
13833   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13834   case $ac_top_builddir_sub in
13835   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13836   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13837   esac ;;
13838 esac
13839 ac_abs_top_builddir=$ac_pwd
13840 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13841 # for backward compatibility:
13842 ac_top_builddir=$ac_top_build_prefix
13843
13844 case $srcdir in
13845   .)  # We are building in place.
13846     ac_srcdir=.
13847     ac_top_srcdir=$ac_top_builddir_sub
13848     ac_abs_top_srcdir=$ac_pwd ;;
13849   [\\/]* | ?:[\\/]* )  # Absolute name.
13850     ac_srcdir=$srcdir$ac_dir_suffix;
13851     ac_top_srcdir=$srcdir
13852     ac_abs_top_srcdir=$srcdir ;;
13853   *) # Relative name.
13854     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13855     ac_top_srcdir=$ac_top_build_prefix$srcdir
13856     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13857 esac
13858 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13859
13860
13861   case $ac_mode in
13862   :F)
13863   #
13864   # CONFIG_FILE
13865   #
13866
13867   case $INSTALL in
13868   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13869   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13870   esac
13871   ac_MKDIR_P=$MKDIR_P
13872   case $MKDIR_P in
13873   [\\/$]* | ?:[\\/]* ) ;;
13874   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13875   esac
13876 _ACEOF
13877
13878 cat >>$CONFIG_STATUS <<\_ACEOF
13879 # If the template does not know about datarootdir, expand it.
13880 # FIXME: This hack should be removed a few years after 2.60.
13881 ac_datarootdir_hack=; ac_datarootdir_seen=
13882
13883 case `sed -n '/datarootdir/ {
13884   p
13885   q
13886 }
13887 /@datadir@/p
13888 /@docdir@/p
13889 /@infodir@/p
13890 /@localedir@/p
13891 /@mandir@/p
13892 ' $ac_file_inputs` in
13893 *datarootdir*) ac_datarootdir_seen=yes;;
13894 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13895   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13896 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13897 _ACEOF
13898 cat >>$CONFIG_STATUS <<_ACEOF
13899   ac_datarootdir_hack='
13900   s&@datadir@&$datadir&g
13901   s&@docdir@&$docdir&g
13902   s&@infodir@&$infodir&g
13903   s&@localedir@&$localedir&g
13904   s&@mandir@&$mandir&g
13905     s&\\\${datarootdir}&$datarootdir&g' ;;
13906 esac
13907 _ACEOF
13908
13909 # Neutralize VPATH when `$srcdir' = `.'.
13910 # Shell code in configure.ac might set extrasub.
13911 # FIXME: do we really want to maintain this feature?
13912 cat >>$CONFIG_STATUS <<_ACEOF
13913   sed "$ac_vpsub
13914 $extrasub
13915 _ACEOF
13916 cat >>$CONFIG_STATUS <<\_ACEOF
13917 :t
13918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13919 s&@configure_input@&$configure_input&;t t
13920 s&@top_builddir@&$ac_top_builddir_sub&;t t
13921 s&@srcdir@&$ac_srcdir&;t t
13922 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13923 s&@top_srcdir@&$ac_top_srcdir&;t t
13924 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13925 s&@builddir@&$ac_builddir&;t t
13926 s&@abs_builddir@&$ac_abs_builddir&;t t
13927 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13928 s&@INSTALL@&$ac_INSTALL&;t t
13929 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13930 $ac_datarootdir_hack
13931 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13932
13933 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13934   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13935   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13936   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13937 which seems to be undefined.  Please make sure it is defined." >&5
13938 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13939 which seems to be undefined.  Please make sure it is defined." >&2;}
13940
13941   rm -f "$tmp/stdin"
13942   case $ac_file in
13943   -) cat "$tmp/out"; rm -f "$tmp/out";;
13944   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13945   esac
13946  ;;
13947   :H)
13948   #
13949   # CONFIG_HEADER
13950   #
13951 _ACEOF
13952
13953 # Transform confdefs.h into a sed script `conftest.defines', that
13954 # substitutes the proper values into config.h.in to produce config.h.
13955 rm -f conftest.defines conftest.tail
13956 # First, append a space to every undef/define line, to ease matching.
13957 echo 's/$/ /' >conftest.defines
13958 # Then, protect against being on the right side of a sed subst, or in
13959 # an unquoted here document, in config.status.  If some macros were
13960 # called several times there might be several #defines for the same
13961 # symbol, which is useless.  But do not sort them, since the last
13962 # AC_DEFINE must be honored.
13963 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13964 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13965 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13966 # PARAMS is the parameter list in the macro definition--in most cases, it's
13967 # just an empty string.
13968 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
13969 ac_dB='\\)[      (].*,\\1define\\2'
13970 ac_dC=' '
13971 ac_dD=' ,'
13972
13973 uniq confdefs.h |
13974   sed -n '
13975         t rset
13976         :rset
13977         s/^[     ]*#[    ]*define[       ][      ]*//
13978         t ok
13979         d
13980         :ok
13981         s/[\\&,]/\\&/g
13982         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13983         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13984   ' >>conftest.defines
13985
13986 # Remove the space that was appended to ease matching.
13987 # Then replace #undef with comments.  This is necessary, for
13988 # example, in the case of _POSIX_SOURCE, which is predefined and required
13989 # on some systems where configure will not decide to define it.
13990 # (The regexp can be short, since the line contains either #define or #undef.)
13991 echo 's/ $//
13992 s,^[     #]*u.*,/* & */,' >>conftest.defines
13993
13994 # Break up conftest.defines:
13995 ac_max_sed_lines=50
13996
13997 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13998 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13999 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14000 # et cetera.
14001 ac_in='$ac_file_inputs'
14002 ac_out='"$tmp/out1"'
14003 ac_nxt='"$tmp/out2"'
14004
14005 while :
14006 do
14007   # Write a here document:
14008     cat >>$CONFIG_STATUS <<_ACEOF
14009     # First, check the format of the line:
14010     cat >"\$tmp/defines.sed" <<\\CEOF
14011 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
14012 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
14013 b
14014 :def
14015 _ACEOF
14016   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14017   echo 'CEOF
14018     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14019   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14020   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14021   grep . conftest.tail >/dev/null || break
14022   rm -f conftest.defines
14023   mv conftest.tail conftest.defines
14024 done
14025 rm -f conftest.defines conftest.tail
14026
14027 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14028 cat >>$CONFIG_STATUS <<\_ACEOF
14029   if test x"$ac_file" != x-; then
14030     echo "/* $configure_input  */" >"$tmp/config.h"
14031     cat "$ac_result" >>"$tmp/config.h"
14032     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14033       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14034 echo "$as_me: $ac_file is unchanged" >&6;}
14035     else
14036       rm -f $ac_file
14037       mv "$tmp/config.h" $ac_file
14038     fi
14039   else
14040     echo "/* $configure_input  */"
14041     cat "$ac_result"
14042   fi
14043   rm -f "$tmp/out12"
14044 # Compute $ac_file's index in $config_headers.
14045 _am_arg=$ac_file
14046 _am_stamp_count=1
14047 for _am_header in $config_headers :; do
14048   case $_am_header in
14049     $_am_arg | $_am_arg:* )
14050       break ;;
14051     * )
14052       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14053   esac
14054 done
14055 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14056 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14057          X"$_am_arg" : 'X\(//\)[^/]' \| \
14058          X"$_am_arg" : 'X\(//\)$' \| \
14059          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14060 echo X"$_am_arg" |
14061     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14062             s//\1/
14063             q
14064           }
14065           /^X\(\/\/\)[^/].*/{
14066             s//\1/
14067             q
14068           }
14069           /^X\(\/\/\)$/{
14070             s//\1/
14071             q
14072           }
14073           /^X\(\/\).*/{
14074             s//\1/
14075             q
14076           }
14077           s/.*/./; q'`/stamp-h$_am_stamp_count
14078  ;;
14079
14080   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14081 echo "$as_me: executing $ac_file commands" >&6;}
14082  ;;
14083   esac
14084
14085
14086   case $ac_file$ac_mode in
14087     "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
14088 # are listed without --file.  Let's play safe and only enable the eval
14089 # if we detect the quoting.
14090 case $CONFIG_FILES in
14091 *\'*) eval set x "$CONFIG_FILES" ;;
14092 *)   set x $CONFIG_FILES ;;
14093 esac
14094 shift
14095 for mf
14096 do
14097   # Strip MF so we end up with the name of the file.
14098   mf=`echo "$mf" | sed -e 's/:.*$//'`
14099   # Check whether this is an Automake generated Makefile or not.
14100   # We used to match only the files named `Makefile.in', but
14101   # some people rename them; so instead we look at the file content.
14102   # Grep'ing the first line is not enough: some people post-process
14103   # each Makefile.in and add a new line on top of each file to say so.
14104   # Grep'ing the whole file is not good either: AIX grep has a line
14105   # limit of 2048, but all sed's we know have understand at least 4000.
14106   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14107     dirpart=`$as_dirname -- "$mf" ||
14108 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14109          X"$mf" : 'X\(//\)[^/]' \| \
14110          X"$mf" : 'X\(//\)$' \| \
14111          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14112 echo X"$mf" |
14113     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14114             s//\1/
14115             q
14116           }
14117           /^X\(\/\/\)[^/].*/{
14118             s//\1/
14119             q
14120           }
14121           /^X\(\/\/\)$/{
14122             s//\1/
14123             q
14124           }
14125           /^X\(\/\).*/{
14126             s//\1/
14127             q
14128           }
14129           s/.*/./; q'`
14130   else
14131     continue
14132   fi
14133   # Extract the definition of DEPDIR, am__include, and am__quote
14134   # from the Makefile without running `make'.
14135   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14136   test -z "$DEPDIR" && continue
14137   am__include=`sed -n 's/^am__include = //p' < "$mf"`
14138   test -z "am__include" && continue
14139   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14140   # When using ansi2knr, U may be empty or an underscore; expand it
14141   U=`sed -n 's/^U = //p' < "$mf"`
14142   # Find all dependency output files, they are included files with
14143   # $(DEPDIR) in their names.  We invoke sed twice because it is the
14144   # simplest approach to changing $(DEPDIR) to its actual value in the
14145   # expansion.
14146   for file in `sed -n "
14147     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14148        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14149     # Make sure the directory exists.
14150     test -f "$dirpart/$file" && continue
14151     fdir=`$as_dirname -- "$file" ||
14152 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14153          X"$file" : 'X\(//\)[^/]' \| \
14154          X"$file" : 'X\(//\)$' \| \
14155          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14156 echo X"$file" |
14157     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14158             s//\1/
14159             q
14160           }
14161           /^X\(\/\/\)[^/].*/{
14162             s//\1/
14163             q
14164           }
14165           /^X\(\/\/\)$/{
14166             s//\1/
14167             q
14168           }
14169           /^X\(\/\).*/{
14170             s//\1/
14171             q
14172           }
14173           s/.*/./; q'`
14174     { as_dir=$dirpart/$fdir
14175   case $as_dir in #(
14176   -*) as_dir=./$as_dir;;
14177   esac
14178   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14179     as_dirs=
14180     while :; do
14181       case $as_dir in #(
14182       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14183       *) as_qdir=$as_dir;;
14184       esac
14185       as_dirs="'$as_qdir' $as_dirs"
14186       as_dir=`$as_dirname -- "$as_dir" ||
14187 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14188          X"$as_dir" : 'X\(//\)[^/]' \| \
14189          X"$as_dir" : 'X\(//\)$' \| \
14190          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14191 echo X"$as_dir" |
14192     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14193             s//\1/
14194             q
14195           }
14196           /^X\(\/\/\)[^/].*/{
14197             s//\1/
14198             q
14199           }
14200           /^X\(\/\/\)$/{
14201             s//\1/
14202             q
14203           }
14204           /^X\(\/\).*/{
14205             s//\1/
14206             q
14207           }
14208           s/.*/./; q'`
14209       test -d "$as_dir" && break
14210     done
14211     test -z "$as_dirs" || eval "mkdir $as_dirs"
14212   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14213 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14214    { (exit 1); exit 1; }; }; }
14215     # echo "creating $dirpart/$file"
14216     echo '# dummy' > "$dirpart/$file"
14217   done
14218 done
14219  ;;
14220     "libtool":C)
14221
14222     # See if we are running on zsh, and set the options which allow our
14223     # commands through without removal of \ escapes.
14224     if test -n "${ZSH_VERSION+set}" ; then
14225       setopt NO_GLOB_SUBST
14226     fi
14227
14228     cfgfile="${ofile}T"
14229     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14230     $RM "$cfgfile"
14231
14232     cat <<_LT_EOF >> "$cfgfile"
14233 #! $SHELL
14234
14235 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14236 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14237 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14238 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14239 #
14240 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14241 #                 2006, 2007, 2008 Free Software Foundation, Inc.
14242 #   Written by Gordon Matzigkeit, 1996
14243 #
14244 #   This file is part of GNU Libtool.
14245 #
14246 # GNU Libtool is free software; you can redistribute it and/or
14247 # modify it under the terms of the GNU General Public License as
14248 # published by the Free Software Foundation; either version 2 of
14249 # the License, or (at your option) any later version.
14250 #
14251 # As a special exception to the GNU General Public License,
14252 # if you distribute this file as part of a program or library that
14253 # is built using GNU Libtool, you may include this file under the
14254 # same distribution terms that you use for the rest of that program.
14255 #
14256 # GNU Libtool is distributed in the hope that it will be useful,
14257 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14258 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14259 # GNU General Public License for more details.
14260 #
14261 # You should have received a copy of the GNU General Public License
14262 # along with GNU Libtool; see the file COPYING.  If not, a copy
14263 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14264 # obtained by writing to the Free Software Foundation, Inc.,
14265 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14266
14267
14268 # The names of the tagged configurations supported by this script.
14269 available_tags=""
14270
14271 # ### BEGIN LIBTOOL CONFIG
14272
14273 # Which release of libtool.m4 was used?
14274 macro_version=$macro_version
14275 macro_revision=$macro_revision
14276
14277 # Whether or not to build shared libraries.
14278 build_libtool_libs=$enable_shared
14279
14280 # Whether or not to build static libraries.
14281 build_old_libs=$enable_static
14282
14283 # What type of objects to build.
14284 pic_mode=$pic_mode
14285
14286 # Whether or not to optimize for fast installation.
14287 fast_install=$enable_fast_install
14288
14289 # The host system.
14290 host_alias=$host_alias
14291 host=$host
14292 host_os=$host_os
14293
14294 # The build system.
14295 build_alias=$build_alias
14296 build=$build
14297 build_os=$build_os
14298
14299 # A sed program that does not truncate output.
14300 SED=$lt_SED
14301
14302 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14303 Xsed="\$SED -e 1s/^X//"
14304
14305 # A grep program that handles long lines.
14306 GREP=$lt_GREP
14307
14308 # An ERE matcher.
14309 EGREP=$lt_EGREP
14310
14311 # A literal string matcher.
14312 FGREP=$lt_FGREP
14313
14314 # A BSD- or MS-compatible name lister.
14315 NM=$lt_NM
14316
14317 # Whether we need soft or hard links.
14318 LN_S=$lt_LN_S
14319
14320 # What is the maximum length of a command?
14321 max_cmd_len=$max_cmd_len
14322
14323 # Object file suffix (normally "o").
14324 objext=$ac_objext
14325
14326 # Executable file suffix (normally "").
14327 exeext=$exeext
14328
14329 # whether the shell understands "unset".
14330 lt_unset=$lt_unset
14331
14332 # turn spaces into newlines.
14333 SP2NL=$lt_lt_SP2NL
14334
14335 # turn newlines into spaces.
14336 NL2SP=$lt_lt_NL2SP
14337
14338 # How to create reloadable object files.
14339 reload_flag=$lt_reload_flag
14340 reload_cmds=$lt_reload_cmds
14341
14342 # Method to check whether dependent libraries are shared objects.
14343 deplibs_check_method=$lt_deplibs_check_method
14344
14345 # Command to use when deplibs_check_method == "file_magic".
14346 file_magic_cmd=$lt_file_magic_cmd
14347
14348 # The archiver.
14349 AR=$lt_AR
14350 AR_FLAGS=$lt_AR_FLAGS
14351
14352 # A symbol stripping program.
14353 STRIP=$lt_STRIP
14354
14355 # Commands used to install an old-style archive.
14356 RANLIB=$lt_RANLIB
14357 old_postinstall_cmds=$lt_old_postinstall_cmds
14358 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14359
14360 # A C compiler.
14361 LTCC=$lt_CC
14362
14363 # LTCC compiler flags.
14364 LTCFLAGS=$lt_CFLAGS
14365
14366 # Take the output of nm and produce a listing of raw symbols and C names.
14367 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14368
14369 # Transform the output of nm in a proper C declaration.
14370 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14371
14372 # Transform the output of nm in a C name address pair.
14373 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14374
14375 # Transform the output of nm in a C name address pair when lib prefix is needed.
14376 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14377
14378 # The name of the directory that contains temporary libtool files.
14379 objdir=$objdir
14380
14381 # Shell to use when invoking shell scripts.
14382 SHELL=$lt_SHELL
14383
14384 # An echo program that does not interpret backslashes.
14385 ECHO=$lt_ECHO
14386
14387 # Used to examine libraries when file_magic_cmd begins with "file".
14388 MAGIC_CMD=$MAGIC_CMD
14389
14390 # Must we lock files when doing compilation?
14391 need_locks=$lt_need_locks
14392
14393 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14394 DSYMUTIL=$lt_DSYMUTIL
14395
14396 # Tool to change global to local symbols on Mac OS X.
14397 NMEDIT=$lt_NMEDIT
14398
14399 # Tool to manipulate fat objects and archives on Mac OS X.
14400 LIPO=$lt_LIPO
14401
14402 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14403 OTOOL=$lt_OTOOL
14404
14405 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14406 OTOOL64=$lt_OTOOL64
14407
14408 # Old archive suffix (normally "a").
14409 libext=$libext
14410
14411 # Shared library suffix (normally ".so").
14412 shrext_cmds=$lt_shrext_cmds
14413
14414 # The commands to extract the exported symbol list from a shared archive.
14415 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14416
14417 # Variables whose values should be saved in libtool wrapper scripts and
14418 # restored at link time.
14419 variables_saved_for_relink=$lt_variables_saved_for_relink
14420
14421 # Do we need the "lib" prefix for modules?
14422 need_lib_prefix=$need_lib_prefix
14423
14424 # Do we need a version for libraries?
14425 need_version=$need_version
14426
14427 # Library versioning type.
14428 version_type=$version_type
14429
14430 # Shared library runtime path variable.
14431 runpath_var=$runpath_var
14432
14433 # Shared library path variable.
14434 shlibpath_var=$shlibpath_var
14435
14436 # Is shlibpath searched before the hard-coded library search path?
14437 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14438
14439 # Format of library name prefix.
14440 libname_spec=$lt_libname_spec
14441
14442 # List of archive names.  First name is the real one, the rest are links.
14443 # The last name is the one that the linker finds with -lNAME
14444 library_names_spec=$lt_library_names_spec
14445
14446 # The coded name of the library, if different from the real name.
14447 soname_spec=$lt_soname_spec
14448
14449 # Command to use after installation of a shared archive.
14450 postinstall_cmds=$lt_postinstall_cmds
14451
14452 # Command to use after uninstallation of a shared archive.
14453 postuninstall_cmds=$lt_postuninstall_cmds
14454
14455 # Commands used to finish a libtool library installation in a directory.
14456 finish_cmds=$lt_finish_cmds
14457
14458 # As "finish_cmds", except a single script fragment to be evaled but
14459 # not shown.
14460 finish_eval=$lt_finish_eval
14461
14462 # Whether we should hardcode library paths into libraries.
14463 hardcode_into_libs=$hardcode_into_libs
14464
14465 # Compile-time system search path for libraries.
14466 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14467
14468 # Run-time system search path for libraries.
14469 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14470
14471 # Whether dlopen is supported.
14472 dlopen_support=$enable_dlopen
14473
14474 # Whether dlopen of programs is supported.
14475 dlopen_self=$enable_dlopen_self
14476
14477 # Whether dlopen of statically linked programs is supported.
14478 dlopen_self_static=$enable_dlopen_self_static
14479
14480 # Commands to strip libraries.
14481 old_striplib=$lt_old_striplib
14482 striplib=$lt_striplib
14483
14484
14485 # The linker used to build libraries.
14486 LD=$lt_LD
14487
14488 # Commands used to build an old-style archive.
14489 old_archive_cmds=$lt_old_archive_cmds
14490
14491 # A language specific compiler.
14492 CC=$lt_compiler
14493
14494 # Is the compiler the GNU compiler?
14495 with_gcc=$GCC
14496
14497 # Compiler flag to turn off builtin functions.
14498 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14499
14500 # How to pass a linker flag through the compiler.
14501 wl=$lt_lt_prog_compiler_wl
14502
14503 # Additional compiler flags for building library objects.
14504 pic_flag=$lt_lt_prog_compiler_pic
14505
14506 # Compiler flag to prevent dynamic linking.
14507 link_static_flag=$lt_lt_prog_compiler_static
14508
14509 # Does compiler simultaneously support -c and -o options?
14510 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14511
14512 # Whether or not to add -lc for building shared libraries.
14513 build_libtool_need_lc=$archive_cmds_need_lc
14514
14515 # Whether or not to disallow shared libs when runtime libs are static.
14516 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14517
14518 # Compiler flag to allow reflexive dlopens.
14519 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14520
14521 # Compiler flag to generate shared objects directly from archives.
14522 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14523
14524 # Whether the compiler copes with passing no objects directly.
14525 compiler_needs_object=$lt_compiler_needs_object
14526
14527 # Create an old-style archive from a shared archive.
14528 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14529
14530 # Create a temporary old-style archive to link instead of a shared archive.
14531 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14532
14533 # Commands used to build a shared archive.
14534 archive_cmds=$lt_archive_cmds
14535 archive_expsym_cmds=$lt_archive_expsym_cmds
14536
14537 # Commands used to build a loadable module if different from building
14538 # a shared archive.
14539 module_cmds=$lt_module_cmds
14540 module_expsym_cmds=$lt_module_expsym_cmds
14541
14542 # Whether we are building with GNU ld or not.
14543 with_gnu_ld=$lt_with_gnu_ld
14544
14545 # Flag that allows shared libraries with undefined symbols to be built.
14546 allow_undefined_flag=$lt_allow_undefined_flag
14547
14548 # Flag that enforces no undefined symbols.
14549 no_undefined_flag=$lt_no_undefined_flag
14550
14551 # Flag to hardcode \$libdir into a binary during linking.
14552 # This must work even if \$libdir does not exist
14553 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14554
14555 # If ld is used when linking, flag to hardcode \$libdir into a binary
14556 # during linking.  This must work even if \$libdir does not exist.
14557 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14558
14559 # Whether we need a single "-rpath" flag with a separated argument.
14560 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14561
14562 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14563 # DIR into the resulting binary.
14564 hardcode_direct=$hardcode_direct
14565
14566 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14567 # DIR into the resulting binary and the resulting library dependency is
14568 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14569 # library is relocated.
14570 hardcode_direct_absolute=$hardcode_direct_absolute
14571
14572 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14573 # into the resulting binary.
14574 hardcode_minus_L=$hardcode_minus_L
14575
14576 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14577 # into the resulting binary.
14578 hardcode_shlibpath_var=$hardcode_shlibpath_var
14579
14580 # Set to "yes" if building a shared library automatically hardcodes DIR
14581 # into the library and all subsequent libraries and executables linked
14582 # against it.
14583 hardcode_automatic=$hardcode_automatic
14584
14585 # Set to yes if linker adds runtime paths of dependent libraries
14586 # to runtime path list.
14587 inherit_rpath=$inherit_rpath
14588
14589 # Whether libtool must link a program against all its dependency libraries.
14590 link_all_deplibs=$link_all_deplibs
14591
14592 # Fix the shell variable \$srcfile for the compiler.
14593 fix_srcfile_path=$lt_fix_srcfile_path
14594
14595 # Set to "yes" if exported symbols are required.
14596 always_export_symbols=$always_export_symbols
14597
14598 # The commands to list exported symbols.
14599 export_symbols_cmds=$lt_export_symbols_cmds
14600
14601 # Symbols that should not be listed in the preloaded symbols.
14602 exclude_expsyms=$lt_exclude_expsyms
14603
14604 # Symbols that must always be exported.
14605 include_expsyms=$lt_include_expsyms
14606
14607 # Commands necessary for linking programs (against libraries) with templates.
14608 prelink_cmds=$lt_prelink_cmds
14609
14610 # Specify filename containing input files.
14611 file_list_spec=$lt_file_list_spec
14612
14613 # How to hardcode a shared library path into an executable.
14614 hardcode_action=$hardcode_action
14615
14616 # ### END LIBTOOL CONFIG
14617
14618 _LT_EOF
14619
14620   case $host_os in
14621   aix3*)
14622     cat <<\_LT_EOF >> "$cfgfile"
14623 # AIX sometimes has problems with the GCC collect2 program.  For some
14624 # reason, if we set the COLLECT_NAMES environment variable, the problems
14625 # vanish in a puff of smoke.
14626 if test "X${COLLECT_NAMES+set}" != Xset; then
14627   COLLECT_NAMES=
14628   export COLLECT_NAMES
14629 fi
14630 _LT_EOF
14631     ;;
14632   esac
14633
14634
14635 ltmain="$ac_aux_dir/ltmain.sh"
14636
14637
14638   # We use sed instead of cat because bash on DJGPP gets confused if
14639   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14640   # text mode, it properly converts lines to CR/LF.  This bash problem
14641   # is reportedly fixed, but why not run on old versions too?
14642   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14643     || (rm -f "$cfgfile"; exit 1)
14644
14645   case $xsi_shell in
14646   yes)
14647     cat << \_LT_EOF >> "$cfgfile"
14648
14649 # func_dirname file append nondir_replacement
14650 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14651 # otherwise set result to NONDIR_REPLACEMENT.
14652 func_dirname ()
14653 {
14654   case ${1} in
14655     */*) func_dirname_result="${1%/*}${2}" ;;
14656     *  ) func_dirname_result="${3}" ;;
14657   esac
14658 }
14659
14660 # func_basename file
14661 func_basename ()
14662 {
14663   func_basename_result="${1##*/}"
14664 }
14665
14666 # func_dirname_and_basename file append nondir_replacement
14667 # perform func_basename and func_dirname in a single function
14668 # call:
14669 #   dirname:  Compute the dirname of FILE.  If nonempty,
14670 #             add APPEND to the result, otherwise set result
14671 #             to NONDIR_REPLACEMENT.
14672 #             value returned in "$func_dirname_result"
14673 #   basename: Compute filename of FILE.
14674 #             value retuned in "$func_basename_result"
14675 # Implementation must be kept synchronized with func_dirname
14676 # and func_basename. For efficiency, we do not delegate to
14677 # those functions but instead duplicate the functionality here.
14678 func_dirname_and_basename ()
14679 {
14680   case ${1} in
14681     */*) func_dirname_result="${1%/*}${2}" ;;
14682     *  ) func_dirname_result="${3}" ;;
14683   esac
14684   func_basename_result="${1##*/}"
14685 }
14686
14687 # func_stripname prefix suffix name
14688 # strip PREFIX and SUFFIX off of NAME.
14689 # PREFIX and SUFFIX must not contain globbing or regex special
14690 # characters, hashes, percent signs, but SUFFIX may contain a leading
14691 # dot (in which case that matches only a dot).
14692 func_stripname ()
14693 {
14694   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14695   # positional parameters, so assign one to ordinary parameter first.
14696   func_stripname_result=${3}
14697   func_stripname_result=${func_stripname_result#"${1}"}
14698   func_stripname_result=${func_stripname_result%"${2}"}
14699 }
14700
14701 # func_opt_split
14702 func_opt_split ()
14703 {
14704   func_opt_split_opt=${1%%=*}
14705   func_opt_split_arg=${1#*=}
14706 }
14707
14708 # func_lo2o object
14709 func_lo2o ()
14710 {
14711   case ${1} in
14712     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14713     *)    func_lo2o_result=${1} ;;
14714   esac
14715 }
14716
14717 # func_xform libobj-or-source
14718 func_xform ()
14719 {
14720   func_xform_result=${1%.*}.lo
14721 }
14722
14723 # func_arith arithmetic-term...
14724 func_arith ()
14725 {
14726   func_arith_result=$(( $* ))
14727 }
14728
14729 # func_len string
14730 # STRING may not start with a hyphen.
14731 func_len ()
14732 {
14733   func_len_result=${#1}
14734 }
14735
14736 _LT_EOF
14737     ;;
14738   *) # Bourne compatible functions.
14739     cat << \_LT_EOF >> "$cfgfile"
14740
14741 # func_dirname file append nondir_replacement
14742 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14743 # otherwise set result to NONDIR_REPLACEMENT.
14744 func_dirname ()
14745 {
14746   # Extract subdirectory from the argument.
14747   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14748   if test "X$func_dirname_result" = "X${1}"; then
14749     func_dirname_result="${3}"
14750   else
14751     func_dirname_result="$func_dirname_result${2}"
14752   fi
14753 }
14754
14755 # func_basename file
14756 func_basename ()
14757 {
14758   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14759 }
14760
14761
14762 # func_stripname prefix suffix name
14763 # strip PREFIX and SUFFIX off of NAME.
14764 # PREFIX and SUFFIX must not contain globbing or regex special
14765 # characters, hashes, percent signs, but SUFFIX may contain a leading
14766 # dot (in which case that matches only a dot).
14767 # func_strip_suffix prefix name
14768 func_stripname ()
14769 {
14770   case ${2} in
14771     .*) func_stripname_result=`$ECHO "X${3}" \
14772            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14773     *)  func_stripname_result=`$ECHO "X${3}" \
14774            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14775   esac
14776 }
14777
14778 # sed scripts:
14779 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14780 my_sed_long_arg='1s/^-[^=]*=//'
14781
14782 # func_opt_split
14783 func_opt_split ()
14784 {
14785   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14786   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14787 }
14788
14789 # func_lo2o object
14790 func_lo2o ()
14791 {
14792   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14793 }
14794
14795 # func_xform libobj-or-source
14796 func_xform ()
14797 {
14798   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14799 }
14800
14801 # func_arith arithmetic-term...
14802 func_arith ()
14803 {
14804   func_arith_result=`expr "$@"`
14805 }
14806
14807 # func_len string
14808 # STRING may not start with a hyphen.
14809 func_len ()
14810 {
14811   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14812 }
14813
14814 _LT_EOF
14815 esac
14816
14817 case $lt_shell_append in
14818   yes)
14819     cat << \_LT_EOF >> "$cfgfile"
14820
14821 # func_append var value
14822 # Append VALUE to the end of shell variable VAR.
14823 func_append ()
14824 {
14825   eval "$1+=\$2"
14826 }
14827 _LT_EOF
14828     ;;
14829   *)
14830     cat << \_LT_EOF >> "$cfgfile"
14831
14832 # func_append var value
14833 # Append VALUE to the end of shell variable VAR.
14834 func_append ()
14835 {
14836   eval "$1=\$$1\$2"
14837 }
14838
14839 _LT_EOF
14840     ;;
14841   esac
14842
14843
14844   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14845     || (rm -f "$cfgfile"; exit 1)
14846
14847   mv -f "$cfgfile" "$ofile" ||
14848     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14849   chmod +x "$ofile"
14850
14851  ;;
14852
14853   esac
14854 done # for ac_tag
14855
14856
14857 { (exit 0); exit 0; }
14858 _ACEOF
14859 chmod +x $CONFIG_STATUS
14860 ac_clean_files=$ac_clean_files_save
14861
14862
14863 # configure is writing to config.log, and then calls config.status.
14864 # config.status does its own redirection, appending to config.log.
14865 # Unfortunately, on DOS this fails, as config.log is still kept open
14866 # by configure, so config.status won't be able to write to it; its
14867 # output is simply discarded.  So we exec the FD to /dev/null,
14868 # effectively closing config.log, so it can be properly (re)opened and
14869 # appended to by config.status.  When coming back to configure, we
14870 # need to make the FD available again.
14871 if test "$no_create" != yes; then
14872   ac_cs_success=:
14873   ac_config_status_args=
14874   test "$silent" = yes &&
14875     ac_config_status_args="$ac_config_status_args --quiet"
14876   exec 5>/dev/null
14877   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14878   exec 5>>config.log
14879   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14880   # would make configure fail if this is the last instruction.
14881   $ac_cs_success || { (exit 1); exit 1; }
14882 fi
14883