Cleanup
[framework/multimedia/alsa-scenario-0.2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="src/ascenario.c"
729 ac_default_prefix=/usr
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 ASCENARIO_MAJOR_VERSION
804 ASCENARIO_MINOR_VERSION
805 ASCENARIO_MICRO_VERSION
806 ASCENARIO_VERSION
807 LT_VERSION
808 LT_RELEASE
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 am__isrc
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 INSTALL_M4_TRUE
844 INSTALL_M4_FALSE
845 CC
846 CFLAGS
847 LDFLAGS
848 CPPFLAGS
849 ac_ct_CC
850 EXEEXT
851 OBJEXT
852 DEPDIR
853 am__include
854 am__quote
855 AMDEP_TRUE
856 AMDEP_FALSE
857 AMDEPBACKSLASH
858 CCDEPMODE
859 am__fastdepCC_TRUE
860 am__fastdepCC_FALSE
861 CPP
862 LN_S
863 LIBTOOL
864 SED
865 GREP
866 EGREP
867 FGREP
868 LD
869 DUMPBIN
870 ac_ct_DUMPBIN
871 NM
872 OBJDUMP
873 AR
874 RANLIB
875 lt_ECHO
876 DSYMUTIL
877 NMEDIT
878 LIPO
879 OTOOL
880 OTOOL64
881 LIBTOOL_VERSION_INFO
882 PKG_CONFIG
883 ALSA_CFLAGS
884 ALSA_LIBS
885 ALSA_CONFIG_DIR
886 ALSA_PLUGIN_DIR
887 VERSIONED_SYMBOLS_TRUE
888 VERSIONED_SYMBOLS_FALSE
889 SYMBOLIC_FUNCTIONS_TRUE
890 SYMBOLIC_FUNCTIONS_FALSE
891 SYMBOL_PREFIX
892 ALSA_DEPLIBS
893 LIBOBJS
894 LTLIBOBJS'
895 ac_subst_files=''
896       ac_precious_vars='build_alias
897 host_alias
898 target_alias
899 CC
900 CFLAGS
901 LDFLAGS
902 LIBS
903 CPPFLAGS
904 CPP
905 PKG_CONFIG
906 ALSA_CFLAGS
907 ALSA_LIBS'
908
909
910 # Initialize some variables set by options.
911 ac_init_help=
912 ac_init_version=false
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
915 cache_file=/dev/null
916 exec_prefix=NONE
917 no_create=
918 no_recursion=
919 prefix=NONE
920 program_prefix=NONE
921 program_suffix=NONE
922 program_transform_name=s,x,x,
923 silent=
924 site=
925 srcdir=
926 verbose=
927 x_includes=NONE
928 x_libraries=NONE
929
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir='${exec_prefix}/bin'
937 sbindir='${exec_prefix}/sbin'
938 libexecdir='${exec_prefix}/libexec'
939 datarootdir='${prefix}/share'
940 datadir='${datarootdir}'
941 sysconfdir='${prefix}/etc'
942 sharedstatedir='${prefix}/com'
943 localstatedir='${prefix}/var'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE}'
947 infodir='${datarootdir}/info'
948 htmldir='${docdir}'
949 dvidir='${docdir}'
950 pdfdir='${docdir}'
951 psdir='${docdir}'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
955
956 ac_prev=
957 ac_dashdash=
958 for ac_option
959 do
960   # If the previous option needs an argument, assign it.
961   if test -n "$ac_prev"; then
962     eval $ac_prev=\$ac_option
963     ac_prev=
964     continue
965   fi
966
967   case $ac_option in
968   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969   *)    ac_optarg=yes ;;
970   esac
971
972   # Accept the important Cygnus configure options, so we can diagnose typos.
973
974   case $ac_dashdash$ac_option in
975   --)
976     ac_dashdash=yes ;;
977
978   -bindir | --bindir | --bindi | --bind | --bin | --bi)
979     ac_prev=bindir ;;
980   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
981     bindir=$ac_optarg ;;
982
983   -build | --build | --buil | --bui | --bu)
984     ac_prev=build_alias ;;
985   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
986     build_alias=$ac_optarg ;;
987
988   -cache-file | --cache-file | --cache-fil | --cache-fi \
989   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990     ac_prev=cache_file ;;
991   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993     cache_file=$ac_optarg ;;
994
995   --config-cache | -C)
996     cache_file=config.cache ;;
997
998   -datadir | --datadir | --datadi | --datad)
999     ac_prev=datadir ;;
1000   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1001     datadir=$ac_optarg ;;
1002
1003   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004   | --dataroo | --dataro | --datar)
1005     ac_prev=datarootdir ;;
1006   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008     datarootdir=$ac_optarg ;;
1009
1010   -disable-* | --disable-*)
1011     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012     # Reject names that are not valid shell variable names.
1013     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1015    { (exit 1); exit 1; }; }
1016     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1017     eval enable_$ac_feature=no ;;
1018
1019   -docdir | --docdir | --docdi | --doc | --do)
1020     ac_prev=docdir ;;
1021   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022     docdir=$ac_optarg ;;
1023
1024   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025     ac_prev=dvidir ;;
1026   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027     dvidir=$ac_optarg ;;
1028
1029   -enable-* | --enable-*)
1030     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031     # Reject names that are not valid shell variable names.
1032     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034    { (exit 1); exit 1; }; }
1035     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1036     eval enable_$ac_feature=\$ac_optarg ;;
1037
1038   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1039   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1040   | --exec | --exe | --ex)
1041     ac_prev=exec_prefix ;;
1042   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1043   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1044   | --exec=* | --exe=* | --ex=*)
1045     exec_prefix=$ac_optarg ;;
1046
1047   -gas | --gas | --ga | --g)
1048     # Obsolete; use --with-gas.
1049     with_gas=yes ;;
1050
1051   -help | --help | --hel | --he | -h)
1052     ac_init_help=long ;;
1053   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1054     ac_init_help=recursive ;;
1055   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1056     ac_init_help=short ;;
1057
1058   -host | --host | --hos | --ho)
1059     ac_prev=host_alias ;;
1060   -host=* | --host=* | --hos=* | --ho=*)
1061     host_alias=$ac_optarg ;;
1062
1063   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1064     ac_prev=htmldir ;;
1065   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1066   | --ht=*)
1067     htmldir=$ac_optarg ;;
1068
1069   -includedir | --includedir | --includedi | --included | --include \
1070   | --includ | --inclu | --incl | --inc)
1071     ac_prev=includedir ;;
1072   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1073   | --includ=* | --inclu=* | --incl=* | --inc=*)
1074     includedir=$ac_optarg ;;
1075
1076   -infodir | --infodir | --infodi | --infod | --info | --inf)
1077     ac_prev=infodir ;;
1078   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1079     infodir=$ac_optarg ;;
1080
1081   -libdir | --libdir | --libdi | --libd)
1082     ac_prev=libdir ;;
1083   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1084     libdir=$ac_optarg ;;
1085
1086   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1087   | --libexe | --libex | --libe)
1088     ac_prev=libexecdir ;;
1089   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1090   | --libexe=* | --libex=* | --libe=*)
1091     libexecdir=$ac_optarg ;;
1092
1093   -localedir | --localedir | --localedi | --localed | --locale)
1094     ac_prev=localedir ;;
1095   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1096     localedir=$ac_optarg ;;
1097
1098   -localstatedir | --localstatedir | --localstatedi | --localstated \
1099   | --localstate | --localstat | --localsta | --localst | --locals)
1100     ac_prev=localstatedir ;;
1101   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1102   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1103     localstatedir=$ac_optarg ;;
1104
1105   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1106     ac_prev=mandir ;;
1107   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1108     mandir=$ac_optarg ;;
1109
1110   -nfp | --nfp | --nf)
1111     # Obsolete; use --without-fp.
1112     with_fp=no ;;
1113
1114   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1115   | --no-cr | --no-c | -n)
1116     no_create=yes ;;
1117
1118   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1119   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1120     no_recursion=yes ;;
1121
1122   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1123   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1124   | --oldin | --oldi | --old | --ol | --o)
1125     ac_prev=oldincludedir ;;
1126   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1127   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1128   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1129     oldincludedir=$ac_optarg ;;
1130
1131   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1132     ac_prev=prefix ;;
1133   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1134     prefix=$ac_optarg ;;
1135
1136   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1137   | --program-pre | --program-pr | --program-p)
1138     ac_prev=program_prefix ;;
1139   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1140   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1141     program_prefix=$ac_optarg ;;
1142
1143   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1144   | --program-suf | --program-su | --program-s)
1145     ac_prev=program_suffix ;;
1146   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1147   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1148     program_suffix=$ac_optarg ;;
1149
1150   -program-transform-name | --program-transform-name \
1151   | --program-transform-nam | --program-transform-na \
1152   | --program-transform-n | --program-transform- \
1153   | --program-transform | --program-transfor \
1154   | --program-transfo | --program-transf \
1155   | --program-trans | --program-tran \
1156   | --progr-tra | --program-tr | --program-t)
1157     ac_prev=program_transform_name ;;
1158   -program-transform-name=* | --program-transform-name=* \
1159   | --program-transform-nam=* | --program-transform-na=* \
1160   | --program-transform-n=* | --program-transform-=* \
1161   | --program-transform=* | --program-transfor=* \
1162   | --program-transfo=* | --program-transf=* \
1163   | --program-trans=* | --program-tran=* \
1164   | --progr-tra=* | --program-tr=* | --program-t=*)
1165     program_transform_name=$ac_optarg ;;
1166
1167   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1168     ac_prev=pdfdir ;;
1169   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1170     pdfdir=$ac_optarg ;;
1171
1172   -psdir | --psdir | --psdi | --psd | --ps)
1173     ac_prev=psdir ;;
1174   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1175     psdir=$ac_optarg ;;
1176
1177   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1178   | -silent | --silent | --silen | --sile | --sil)
1179     silent=yes ;;
1180
1181   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1182     ac_prev=sbindir ;;
1183   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1184   | --sbi=* | --sb=*)
1185     sbindir=$ac_optarg ;;
1186
1187   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1188   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1189   | --sharedst | --shareds | --shared | --share | --shar \
1190   | --sha | --sh)
1191     ac_prev=sharedstatedir ;;
1192   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1193   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1194   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1195   | --sha=* | --sh=*)
1196     sharedstatedir=$ac_optarg ;;
1197
1198   -site | --site | --sit)
1199     ac_prev=site ;;
1200   -site=* | --site=* | --sit=*)
1201     site=$ac_optarg ;;
1202
1203   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1204     ac_prev=srcdir ;;
1205   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1206     srcdir=$ac_optarg ;;
1207
1208   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1209   | --syscon | --sysco | --sysc | --sys | --sy)
1210     ac_prev=sysconfdir ;;
1211   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1212   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1213     sysconfdir=$ac_optarg ;;
1214
1215   -target | --target | --targe | --targ | --tar | --ta | --t)
1216     ac_prev=target_alias ;;
1217   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1218     target_alias=$ac_optarg ;;
1219
1220   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1221     verbose=yes ;;
1222
1223   -version | --version | --versio | --versi | --vers | -V)
1224     ac_init_version=: ;;
1225
1226   -with-* | --with-*)
1227     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1228     # Reject names that are not valid shell variable names.
1229     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230       { echo "$as_me: error: invalid package name: $ac_package" >&2
1231    { (exit 1); exit 1; }; }
1232     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1233     eval with_$ac_package=\$ac_optarg ;;
1234
1235   -without-* | --without-*)
1236     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237     # Reject names that are not valid shell variable names.
1238     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239       { echo "$as_me: error: invalid package name: $ac_package" >&2
1240    { (exit 1); exit 1; }; }
1241     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1242     eval with_$ac_package=no ;;
1243
1244   --x)
1245     # Obsolete; use --with-x.
1246     with_x=yes ;;
1247
1248   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249   | --x-incl | --x-inc | --x-in | --x-i)
1250     ac_prev=x_includes ;;
1251   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253     x_includes=$ac_optarg ;;
1254
1255   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257     ac_prev=x_libraries ;;
1258   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260     x_libraries=$ac_optarg ;;
1261
1262   -*) { echo "$as_me: error: unrecognized option: $ac_option
1263 Try \`$0 --help' for more information." >&2
1264    { (exit 1); exit 1; }; }
1265     ;;
1266
1267   *=*)
1268     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269     # Reject names that are not valid shell variable names.
1270     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1271       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1272    { (exit 1); exit 1; }; }
1273     eval $ac_envvar=\$ac_optarg
1274     export $ac_envvar ;;
1275
1276   *)
1277     # FIXME: should be removed in autoconf 3.0.
1278     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1282     ;;
1283
1284   esac
1285 done
1286
1287 if test -n "$ac_prev"; then
1288   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289   { echo "$as_me: error: missing argument to $ac_option" >&2
1290    { (exit 1); exit 1; }; }
1291 fi
1292
1293 # Be sure to have absolute directory names.
1294 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295                 datadir sysconfdir sharedstatedir localstatedir includedir \
1296                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297                 libdir localedir mandir
1298 do
1299   eval ac_val=\$$ac_var
1300   case $ac_val in
1301     [\\/$]* | ?:[\\/]* )  continue;;
1302     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303   esac
1304   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1305    { (exit 1); exit 1; }; }
1306 done
1307
1308 # There might be people who depend on the old broken behavior: `$host'
1309 # used to hold the argument of --host etc.
1310 # FIXME: To remove some day.
1311 build=$build_alias
1312 host=$host_alias
1313 target=$target_alias
1314
1315 # FIXME: To remove some day.
1316 if test "x$host_alias" != x; then
1317   if test "x$build_alias" = x; then
1318     cross_compiling=maybe
1319     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1320     If a cross compiler is detected then cross compile mode will be used." >&2
1321   elif test "x$build_alias" != "x$host_alias"; then
1322     cross_compiling=yes
1323   fi
1324 fi
1325
1326 ac_tool_prefix=
1327 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328
1329 test "$silent" = yes && exec 6>/dev/null
1330
1331
1332 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333 ac_ls_di=`ls -di .` &&
1334 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335   { echo "$as_me: error: Working directory cannot be determined" >&2
1336    { (exit 1); exit 1; }; }
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338   { echo "$as_me: error: pwd does not report name of working directory" >&2
1339    { (exit 1); exit 1; }; }
1340
1341
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344   ac_srcdir_defaulted=yes
1345   # Try the directory containing this script, then the parent directory.
1346   ac_confdir=`$as_dirname -- "$0" ||
1347 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348          X"$0" : 'X\(//\)[^/]' \| \
1349          X"$0" : 'X\(//\)$' \| \
1350          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1351 echo X"$0" |
1352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353             s//\1/
1354             q
1355           }
1356           /^X\(\/\/\)[^/].*/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)$/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\).*/{
1365             s//\1/
1366             q
1367           }
1368           s/.*/./; q'`
1369   srcdir=$ac_confdir
1370   if test ! -r "$srcdir/$ac_unique_file"; then
1371     srcdir=..
1372   fi
1373 else
1374   ac_srcdir_defaulted=no
1375 fi
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1379    { (exit 1); exit 1; }; }
1380 fi
1381 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382 ac_abs_confdir=`(
1383         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1384    { (exit 1); exit 1; }; }
1385         pwd)`
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388   srcdir=.
1389 fi
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1393 case $srcdir in
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 esac
1396 for ac_var in $ac_precious_vars; do
1397   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398   eval ac_env_${ac_var}_value=\$${ac_var}
1399   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401 done
1402
1403 #
1404 # Report the --help message.
1405 #
1406 if test "$ac_init_help" = "long"; then
1407   # Omit some internal or obsolete options to make the list less imposing.
1408   # This message is too long to be a string in the A/UX 3.1 sh.
1409   cat <<_ACEOF
1410 \`configure' configures this package to adapt to many kinds of systems.
1411
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1413
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE.  See below for descriptions of some of the useful variables.
1416
1417 Defaults for the options are specified in brackets.
1418
1419 Configuration:
1420   -h, --help              display this help and exit
1421       --help=short        display options specific to this package
1422       --help=recursive    display the short help of all the included packages
1423   -V, --version           display version information and exit
1424   -q, --quiet, --silent   do not print \`checking...' messages
1425       --cache-file=FILE   cache test results in FILE [disabled]
1426   -C, --config-cache      alias for \`--cache-file=config.cache'
1427   -n, --no-create         do not create output files
1428       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1429
1430 Installation directories:
1431   --prefix=PREFIX         install architecture-independent files in PREFIX
1432                           [$ac_default_prefix]
1433   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1434                           [PREFIX]
1435
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1440
1441 For better control, use the options below.
1442
1443 Fine tuning of the installation directories:
1444   --bindir=DIR           user executables [EPREFIX/bin]
1445   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1446   --libexecdir=DIR       program executables [EPREFIX/libexec]
1447   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1448   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1449   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1450   --libdir=DIR           object code libraries [EPREFIX/lib]
1451   --includedir=DIR       C header files [PREFIX/include]
1452   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1453   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1454   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1455   --infodir=DIR          info documentation [DATAROOTDIR/info]
1456   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1457   --mandir=DIR           man documentation [DATAROOTDIR/man]
1458   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1459   --htmldir=DIR          html documentation [DOCDIR]
1460   --dvidir=DIR           dvi documentation [DOCDIR]
1461   --pdfdir=DIR           pdf documentation [DOCDIR]
1462   --psdir=DIR            ps documentation [DOCDIR]
1463 _ACEOF
1464
1465   cat <<\_ACEOF
1466
1467 Program names:
1468   --program-prefix=PREFIX            prepend PREFIX to installed program names
1469   --program-suffix=SUFFIX            append SUFFIX to installed program names
1470   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1471
1472 System types:
1473   --build=BUILD     configure for building on BUILD [guessed]
1474   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1475   --target=TARGET   configure for building compilers for TARGET [HOST]
1476 _ACEOF
1477 fi
1478
1479 if test -n "$ac_init_help"; then
1480
1481   cat <<\_ACEOF
1482
1483 Optional Features:
1484   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1485   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1486   --disable-dependency-tracking  speeds up one-time build
1487   --enable-dependency-tracking   do not reject slow dependency extractors
1488   --enable-static[=PKGS]  build static libraries [default=no]
1489   --enable-shared[=PKGS]  build shared libraries [default=yes]
1490   --enable-fast-install[=PKGS]
1491                           optimize for fast installation [default=yes]
1492   --disable-libtool-lock  avoid locking (might break parallel builds)
1493   --enable-symbolic-functions
1494                           use -Bsymbolic-functions option if available
1495                           (optmization for size and speed)
1496   --enable-debug          enable assert call at the default error message
1497                           handler
1498
1499 Optional Packages:
1500   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1501   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1502   --with-pic              try to use only PIC/non-PIC objects [default=use
1503                           both]
1504   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1505   --with-configdir=dir    path where ALSA config files are stored
1506   --with-plugindir=dir    path where ALSA plugin files are stored
1507   --with-versioned        shared library will be compiled with versioned
1508                           symbols (default = yes)
1509   --with-debug            library will be compiled with asserts (default =
1510                           yes)
1511
1512 Some influential environment variables:
1513   CC          C compiler command
1514   CFLAGS      C compiler flags
1515   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1516               nonstandard directory <lib dir>
1517   LIBS        libraries to pass to the linker, e.g. -l<library>
1518   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1519               you have headers in a nonstandard directory <include dir>
1520   CPP         C preprocessor
1521   PKG_CONFIG  path to pkg-config utility
1522   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1523   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
1524
1525 Use these variables to override the choices made by `configure' or to help
1526 it to find libraries and programs with nonstandard names/locations.
1527
1528 _ACEOF
1529 ac_status=$?
1530 fi
1531
1532 if test "$ac_init_help" = "recursive"; then
1533   # If there are subdirs, report their specific --help.
1534   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535     test -d "$ac_dir" || continue
1536     ac_builddir=.
1537
1538 case "$ac_dir" in
1539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *)
1541   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1542   # A ".." for each directory in $ac_dir_suffix.
1543   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1544   case $ac_top_builddir_sub in
1545   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547   esac ;;
1548 esac
1549 ac_abs_top_builddir=$ac_pwd
1550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1551 # for backward compatibility:
1552 ac_top_builddir=$ac_top_build_prefix
1553
1554 case $srcdir in
1555   .)  # We are building in place.
1556     ac_srcdir=.
1557     ac_top_srcdir=$ac_top_builddir_sub
1558     ac_abs_top_srcdir=$ac_pwd ;;
1559   [\\/]* | ?:[\\/]* )  # Absolute name.
1560     ac_srcdir=$srcdir$ac_dir_suffix;
1561     ac_top_srcdir=$srcdir
1562     ac_abs_top_srcdir=$srcdir ;;
1563   *) # Relative name.
1564     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1565     ac_top_srcdir=$ac_top_build_prefix$srcdir
1566     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1567 esac
1568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1569
1570     cd "$ac_dir" || { ac_status=$?; continue; }
1571     # Check for guested configure.
1572     if test -f "$ac_srcdir/configure.gnu"; then
1573       echo &&
1574       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575     elif test -f "$ac_srcdir/configure"; then
1576       echo &&
1577       $SHELL "$ac_srcdir/configure" --help=recursive
1578     else
1579       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1580     fi || ac_status=$?
1581     cd "$ac_pwd" || { ac_status=$?; break; }
1582   done
1583 fi
1584
1585 test -n "$ac_init_help" && exit $ac_status
1586 if $ac_init_version; then
1587   cat <<\_ACEOF
1588 configure
1589 generated by GNU Autoconf 2.61
1590
1591 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1592 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1593 This configure script is free software; the Free Software Foundation
1594 gives unlimited permission to copy, distribute and modify it.
1595 _ACEOF
1596   exit
1597 fi
1598 cat >config.log <<_ACEOF
1599 This file contains any messages produced by compilers while
1600 running configure, to aid debugging if configure makes a mistake.
1601
1602 It was created by $as_me, which was
1603 generated by GNU Autoconf 2.61.  Invocation command line was
1604
1605   $ $0 $@
1606
1607 _ACEOF
1608 exec 5>>config.log
1609 {
1610 cat <<_ASUNAME
1611 ## --------- ##
1612 ## Platform. ##
1613 ## --------- ##
1614
1615 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1616 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1617 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1618 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1619 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1620
1621 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1622 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1623
1624 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1625 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1627 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1628 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1629 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1630 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1631
1632 _ASUNAME
1633
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 for as_dir in $PATH
1636 do
1637   IFS=$as_save_IFS
1638   test -z "$as_dir" && as_dir=.
1639   echo "PATH: $as_dir"
1640 done
1641 IFS=$as_save_IFS
1642
1643 } >&5
1644
1645 cat >&5 <<_ACEOF
1646
1647
1648 ## ----------- ##
1649 ## Core tests. ##
1650 ## ----------- ##
1651
1652 _ACEOF
1653
1654
1655 # Keep a trace of the command line.
1656 # Strip out --no-create and --no-recursion so they do not pile up.
1657 # Strip out --silent because we don't want to record it for future runs.
1658 # Also quote any args containing shell meta-characters.
1659 # Make two passes to allow for proper duplicate-argument suppression.
1660 ac_configure_args=
1661 ac_configure_args0=
1662 ac_configure_args1=
1663 ac_must_keep_next=false
1664 for ac_pass in 1 2
1665 do
1666   for ac_arg
1667   do
1668     case $ac_arg in
1669     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1670     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1671     | -silent | --silent | --silen | --sile | --sil)
1672       continue ;;
1673     *\'*)
1674       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1675     esac
1676     case $ac_pass in
1677     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1678     2)
1679       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1680       if test $ac_must_keep_next = true; then
1681         ac_must_keep_next=false # Got value, back to normal.
1682       else
1683         case $ac_arg in
1684           *=* | --config-cache | -C | -disable-* | --disable-* \
1685           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1686           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1687           | -with-* | --with-* | -without-* | --without-* | --x)
1688             case "$ac_configure_args0 " in
1689               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1690             esac
1691             ;;
1692           -* ) ac_must_keep_next=true ;;
1693         esac
1694       fi
1695       ac_configure_args="$ac_configure_args '$ac_arg'"
1696       ;;
1697     esac
1698   done
1699 done
1700 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1701 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1702
1703 # When interrupted or exit'd, cleanup temporary files, and complete
1704 # config.log.  We remove comments because anyway the quotes in there
1705 # would cause problems or look ugly.
1706 # WARNING: Use '\'' to represent an apostrophe within the trap.
1707 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1708 trap 'exit_status=$?
1709   # Save into config.log some information that might help in debugging.
1710   {
1711     echo
1712
1713     cat <<\_ASBOX
1714 ## ---------------- ##
1715 ## Cache variables. ##
1716 ## ---------------- ##
1717 _ASBOX
1718     echo
1719     # The following way of writing the cache mishandles newlines in values,
1720 (
1721   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1722     eval ac_val=\$$ac_var
1723     case $ac_val in #(
1724     *${as_nl}*)
1725       case $ac_var in #(
1726       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1727 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1728       esac
1729       case $ac_var in #(
1730       _ | IFS | as_nl) ;; #(
1731       *) $as_unset $ac_var ;;
1732       esac ;;
1733     esac
1734   done
1735   (set) 2>&1 |
1736     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1737     *${as_nl}ac_space=\ *)
1738       sed -n \
1739         "s/'\''/'\''\\\\'\'''\''/g;
1740           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1741       ;; #(
1742     *)
1743       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1744       ;;
1745     esac |
1746     sort
1747 )
1748     echo
1749
1750     cat <<\_ASBOX
1751 ## ----------------- ##
1752 ## Output variables. ##
1753 ## ----------------- ##
1754 _ASBOX
1755     echo
1756     for ac_var in $ac_subst_vars
1757     do
1758       eval ac_val=\$$ac_var
1759       case $ac_val in
1760       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761       esac
1762       echo "$ac_var='\''$ac_val'\''"
1763     done | sort
1764     echo
1765
1766     if test -n "$ac_subst_files"; then
1767       cat <<\_ASBOX
1768 ## ------------------- ##
1769 ## File substitutions. ##
1770 ## ------------------- ##
1771 _ASBOX
1772       echo
1773       for ac_var in $ac_subst_files
1774       do
1775         eval ac_val=\$$ac_var
1776         case $ac_val in
1777         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1778         esac
1779         echo "$ac_var='\''$ac_val'\''"
1780       done | sort
1781       echo
1782     fi
1783
1784     if test -s confdefs.h; then
1785       cat <<\_ASBOX
1786 ## ----------- ##
1787 ## confdefs.h. ##
1788 ## ----------- ##
1789 _ASBOX
1790       echo
1791       cat confdefs.h
1792       echo
1793     fi
1794     test "$ac_signal" != 0 &&
1795       echo "$as_me: caught signal $ac_signal"
1796     echo "$as_me: exit $exit_status"
1797   } >&5
1798   rm -f core *.core core.conftest.* &&
1799     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1800     exit $exit_status
1801 ' 0
1802 for ac_signal in 1 2 13 15; do
1803   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1804 done
1805 ac_signal=0
1806
1807 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1808 rm -f -r conftest* confdefs.h
1809
1810 # Predefined preprocessor variables.
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_NAME "$PACKAGE_NAME"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_STRING "$PACKAGE_STRING"
1829 _ACEOF
1830
1831
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1834 _ACEOF
1835
1836
1837 # Let the site file select an alternate cache file if it wants to.
1838 # Prefer explicitly selected file to automatically selected ones.
1839 if test -n "$CONFIG_SITE"; then
1840   set x "$CONFIG_SITE"
1841 elif test "x$prefix" != xNONE; then
1842   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1843 else
1844   set x "$ac_default_prefix/share/config.site" \
1845         "$ac_default_prefix/etc/config.site"
1846 fi
1847 shift
1848 for ac_site_file
1849 do
1850   if test -r "$ac_site_file"; then
1851     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1852 echo "$as_me: loading site script $ac_site_file" >&6;}
1853     sed 's/^/| /' "$ac_site_file" >&5
1854     . "$ac_site_file"
1855   fi
1856 done
1857
1858 if test -r "$cache_file"; then
1859   # Some versions of bash will fail to source /dev/null (special
1860   # files actually), so we avoid doing that.
1861   if test -f "$cache_file"; then
1862     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1863 echo "$as_me: loading cache $cache_file" >&6;}
1864     case $cache_file in
1865       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1866       *)                      . "./$cache_file";;
1867     esac
1868   fi
1869 else
1870   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1871 echo "$as_me: creating cache $cache_file" >&6;}
1872   >$cache_file
1873 fi
1874
1875 # Check that the precious variables saved in the cache have kept the same
1876 # value.
1877 ac_cache_corrupted=false
1878 for ac_var in $ac_precious_vars; do
1879   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1880   eval ac_new_set=\$ac_env_${ac_var}_set
1881   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1882   eval ac_new_val=\$ac_env_${ac_var}_value
1883   case $ac_old_set,$ac_new_set in
1884     set,)
1885       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1886 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1887       ac_cache_corrupted=: ;;
1888     ,set)
1889       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1890 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1891       ac_cache_corrupted=: ;;
1892     ,);;
1893     *)
1894       if test "x$ac_old_val" != "x$ac_new_val"; then
1895         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1896 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1897         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1898 echo "$as_me:   former value:  $ac_old_val" >&2;}
1899         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1900 echo "$as_me:   current value: $ac_new_val" >&2;}
1901         ac_cache_corrupted=:
1902       fi;;
1903   esac
1904   # Pass precious variables to config.status.
1905   if test "$ac_new_set" = set; then
1906     case $ac_new_val in
1907     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1908     *) ac_arg=$ac_var=$ac_new_val ;;
1909     esac
1910     case " $ac_configure_args " in
1911       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1912       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1913     esac
1914   fi
1915 done
1916 if $ac_cache_corrupted; then
1917   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1918 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1919   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1920 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1921    { (exit 1); exit 1; }; }
1922 fi
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940 ac_ext=c
1941 ac_cpp='$CPP $CPPFLAGS'
1942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1945
1946
1947
1948 # libtool versioning
1949 ASCENARIO_MAJOR_VERSION=0
1950 ASCENARIO_MINOR_VERSION=2
1951 ASCENARIO_MICRO_VERSION=0
1952 ASCENARIO_VERSION=$ASCENARIO_MAJOR_VERSION.$ASCENARIO_MINOR_VERSION.$ASCENARIO_MICRO_VERSION
1953
1954
1955
1956
1957
1958 LT_VERSION=$ASCENARIO_MICRO_VERSION
1959 LT_RELEASE=$ASCENARIO_MAJOR_VERSION.$ASCENARIO_MINOR_VERSION
1960
1961
1962
1963 ac_aux_dir=
1964 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1965   if test -f "$ac_dir/install-sh"; then
1966     ac_aux_dir=$ac_dir
1967     ac_install_sh="$ac_aux_dir/install-sh -c"
1968     break
1969   elif test -f "$ac_dir/install.sh"; then
1970     ac_aux_dir=$ac_dir
1971     ac_install_sh="$ac_aux_dir/install.sh -c"
1972     break
1973   elif test -f "$ac_dir/shtool"; then
1974     ac_aux_dir=$ac_dir
1975     ac_install_sh="$ac_aux_dir/shtool install -c"
1976     break
1977   fi
1978 done
1979 if test -z "$ac_aux_dir"; then
1980   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1981 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1982    { (exit 1); exit 1; }; }
1983 fi
1984
1985 # These three variables are undocumented and unsupported,
1986 # and are intended to be withdrawn in a future Autoconf release.
1987 # They can cause serious problems if a builder's source tree is in a directory
1988 # whose full name contains unusual characters.
1989 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1990 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1991 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1992
1993
1994 # Make sure we can run config.sub.
1995 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1996   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1997 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1998    { (exit 1); exit 1; }; }
1999
2000 { echo "$as_me:$LINENO: checking build system type" >&5
2001 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2002 if test "${ac_cv_build+set}" = set; then
2003   echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005   ac_build_alias=$build_alias
2006 test "x$ac_build_alias" = x &&
2007   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2008 test "x$ac_build_alias" = x &&
2009   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2010 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2011    { (exit 1); exit 1; }; }
2012 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2013   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2014 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2015    { (exit 1); exit 1; }; }
2016
2017 fi
2018 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2019 echo "${ECHO_T}$ac_cv_build" >&6; }
2020 case $ac_cv_build in
2021 *-*-*) ;;
2022 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2023 echo "$as_me: error: invalid value of canonical build" >&2;}
2024    { (exit 1); exit 1; }; };;
2025 esac
2026 build=$ac_cv_build
2027 ac_save_IFS=$IFS; IFS='-'
2028 set x $ac_cv_build
2029 shift
2030 build_cpu=$1
2031 build_vendor=$2
2032 shift; shift
2033 # Remember, the first character of IFS is used to create $*,
2034 # except with old shells:
2035 build_os=$*
2036 IFS=$ac_save_IFS
2037 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2038
2039
2040 { echo "$as_me:$LINENO: checking host system type" >&5
2041 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2042 if test "${ac_cv_host+set}" = set; then
2043   echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045   if test "x$host_alias" = x; then
2046   ac_cv_host=$ac_cv_build
2047 else
2048   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2049     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2050 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2051    { (exit 1); exit 1; }; }
2052 fi
2053
2054 fi
2055 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2056 echo "${ECHO_T}$ac_cv_host" >&6; }
2057 case $ac_cv_host in
2058 *-*-*) ;;
2059 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2060 echo "$as_me: error: invalid value of canonical host" >&2;}
2061    { (exit 1); exit 1; }; };;
2062 esac
2063 host=$ac_cv_host
2064 ac_save_IFS=$IFS; IFS='-'
2065 set x $ac_cv_host
2066 shift
2067 host_cpu=$1
2068 host_vendor=$2
2069 shift; shift
2070 # Remember, the first character of IFS is used to create $*,
2071 # except with old shells:
2072 host_os=$*
2073 IFS=$ac_save_IFS
2074 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2075
2076
2077 { echo "$as_me:$LINENO: checking target system type" >&5
2078 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2079 if test "${ac_cv_target+set}" = set; then
2080   echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082   if test "x$target_alias" = x; then
2083   ac_cv_target=$ac_cv_host
2084 else
2085   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2086     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2087 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2088    { (exit 1); exit 1; }; }
2089 fi
2090
2091 fi
2092 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2093 echo "${ECHO_T}$ac_cv_target" >&6; }
2094 case $ac_cv_target in
2095 *-*-*) ;;
2096 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2097 echo "$as_me: error: invalid value of canonical target" >&2;}
2098    { (exit 1); exit 1; }; };;
2099 esac
2100 target=$ac_cv_target
2101 ac_save_IFS=$IFS; IFS='-'
2102 set x $ac_cv_target
2103 shift
2104 target_cpu=$1
2105 target_vendor=$2
2106 shift; shift
2107 # Remember, the first character of IFS is used to create $*,
2108 # except with old shells:
2109 target_os=$*
2110 IFS=$ac_save_IFS
2111 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2112
2113
2114 # The aliases save the names the user supplied, while $host etc.
2115 # will get canonicalized.
2116 test -n "$target_alias" &&
2117   test "$program_prefix$program_suffix$program_transform_name" = \
2118     NONENONEs,x,x, &&
2119   program_prefix=${target_alias}-
2120 am__api_version='1.10'
2121
2122 # Find a good install program.  We prefer a C program (faster),
2123 # so one script is as good as another.  But avoid the broken or
2124 # incompatible versions:
2125 # SysV /etc/install, /usr/sbin/install
2126 # SunOS /usr/etc/install
2127 # IRIX /sbin/install
2128 # AIX /bin/install
2129 # AmigaOS /C/install, which installs bootblocks on floppy discs
2130 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2131 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2132 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2133 # OS/2's system install, which has a completely different semantic
2134 # ./install, which can be erroneously created by make from ./install.sh.
2135 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2136 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2137 if test -z "$INSTALL"; then
2138 if test "${ac_cv_path_install+set}" = set; then
2139   echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144   IFS=$as_save_IFS
2145   test -z "$as_dir" && as_dir=.
2146   # Account for people who put trailing slashes in PATH elements.
2147 case $as_dir/ in
2148   ./ | .// | /cC/* | \
2149   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2150   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2151   /usr/ucb/* ) ;;
2152   *)
2153     # OSF1 and SCO ODT 3.0 have their own names for install.
2154     # Don't use installbsd from OSF since it installs stuff as root
2155     # by default.
2156     for ac_prog in ginstall scoinst install; do
2157       for ac_exec_ext in '' $ac_executable_extensions; do
2158         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2159           if test $ac_prog = install &&
2160             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161             # AIX install.  It has an incompatible calling convention.
2162             :
2163           elif test $ac_prog = install &&
2164             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165             # program-specific install script used by HP pwplus--don't use.
2166             :
2167           else
2168             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2169             break 3
2170           fi
2171         fi
2172       done
2173     done
2174     ;;
2175 esac
2176 done
2177 IFS=$as_save_IFS
2178
2179
2180 fi
2181   if test "${ac_cv_path_install+set}" = set; then
2182     INSTALL=$ac_cv_path_install
2183   else
2184     # As a last resort, use the slow shell script.  Don't cache a
2185     # value for INSTALL within a source directory, because that will
2186     # break other packages using the cache if that directory is
2187     # removed, or if the value is a relative name.
2188     INSTALL=$ac_install_sh
2189   fi
2190 fi
2191 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2192 echo "${ECHO_T}$INSTALL" >&6; }
2193
2194 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2195 # It thinks the first close brace ends the variable substitution.
2196 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2197
2198 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2199
2200 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2201
2202 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2203 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2204 # Just in case
2205 sleep 1
2206 echo timestamp > conftest.file
2207 # Do `set' in a subshell so we don't clobber the current shell's
2208 # arguments.  Must try -L first in case configure is actually a
2209 # symlink; some systems play weird games with the mod time of symlinks
2210 # (eg FreeBSD returns the mod time of the symlink's containing
2211 # directory).
2212 if (
2213    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2214    if test "$*" = "X"; then
2215       # -L didn't work.
2216       set X `ls -t $srcdir/configure conftest.file`
2217    fi
2218    rm -f conftest.file
2219    if test "$*" != "X $srcdir/configure conftest.file" \
2220       && test "$*" != "X conftest.file $srcdir/configure"; then
2221
2222       # If neither matched, then we have a broken ls.  This can happen
2223       # if, for instance, CONFIG_SHELL is bash and it inherits a
2224       # broken ls alias from the environment.  This has actually
2225       # happened.  Such a system could not be considered "sane".
2226       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2227 alias in your environment" >&5
2228 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2229 alias in your environment" >&2;}
2230    { (exit 1); exit 1; }; }
2231    fi
2232
2233    test "$2" = conftest.file
2234    )
2235 then
2236    # Ok.
2237    :
2238 else
2239    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2240 Check your system clock" >&5
2241 echo "$as_me: error: newly created file is older than distributed files!
2242 Check your system clock" >&2;}
2243    { (exit 1); exit 1; }; }
2244 fi
2245 { echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6; }
2247 test "$program_prefix" != NONE &&
2248   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2249 # Use a double $ so make ignores it.
2250 test "$program_suffix" != NONE &&
2251   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2252 # Double any \ or $.  echo might interpret backslashes.
2253 # By default was `s,x,x', remove it if useless.
2254 cat <<\_ACEOF >conftest.sed
2255 s/[\\$]/&&/g;s/;s,x,x,$//
2256 _ACEOF
2257 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2258 rm -f conftest.sed
2259
2260 # expand $ac_aux_dir to an absolute path
2261 am_aux_dir=`cd $ac_aux_dir && pwd`
2262
2263 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2264 # Use eval to expand $SHELL
2265 if eval "$MISSING --run true"; then
2266   am_missing_run="$MISSING --run "
2267 else
2268   am_missing_run=
2269   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2270 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2271 fi
2272
2273 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2274 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2275 if test -z "$MKDIR_P"; then
2276   if test "${ac_cv_path_mkdir+set}" = set; then
2277   echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2281 do
2282   IFS=$as_save_IFS
2283   test -z "$as_dir" && as_dir=.
2284   for ac_prog in mkdir gmkdir; do
2285          for ac_exec_ext in '' $ac_executable_extensions; do
2286            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2287            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2288              'mkdir (GNU coreutils) '* | \
2289              'mkdir (coreutils) '* | \
2290              'mkdir (fileutils) '4.1*)
2291                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2292                break 3;;
2293            esac
2294          done
2295        done
2296 done
2297 IFS=$as_save_IFS
2298
2299 fi
2300
2301   if test "${ac_cv_path_mkdir+set}" = set; then
2302     MKDIR_P="$ac_cv_path_mkdir -p"
2303   else
2304     # As a last resort, use the slow shell script.  Don't cache a
2305     # value for MKDIR_P within a source directory, because that will
2306     # break other packages using the cache if that directory is
2307     # removed, or if the value is a relative name.
2308     test -d ./--version && rmdir ./--version
2309     MKDIR_P="$ac_install_sh -d"
2310   fi
2311 fi
2312 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2313 echo "${ECHO_T}$MKDIR_P" >&6; }
2314
2315 mkdir_p="$MKDIR_P"
2316 case $mkdir_p in
2317   [\\/$]* | ?:[\\/]*) ;;
2318   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2319 esac
2320
2321 for ac_prog in gawk mawk nawk awk
2322 do
2323   # Extract the first word of "$ac_prog", so it can be a program name with args.
2324 set dummy $ac_prog; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_AWK+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   if test -n "$AWK"; then
2331   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338   for ac_exec_ext in '' $ac_executable_extensions; do
2339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340     ac_cv_prog_AWK="$ac_prog"
2341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342     break 2
2343   fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2347
2348 fi
2349 fi
2350 AWK=$ac_cv_prog_AWK
2351 if test -n "$AWK"; then
2352   { echo "$as_me:$LINENO: result: $AWK" >&5
2353 echo "${ECHO_T}$AWK" >&6; }
2354 else
2355   { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2357 fi
2358
2359
2360   test -n "$AWK" && break
2361 done
2362
2363 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2364 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2365 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2366 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2367   echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369   cat >conftest.make <<\_ACEOF
2370 SHELL = /bin/sh
2371 all:
2372         @echo '@@@%%%=$(MAKE)=@@@%%%'
2373 _ACEOF
2374 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2375 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2376   *@@@%%%=?*=@@@%%%*)
2377     eval ac_cv_prog_make_${ac_make}_set=yes;;
2378   *)
2379     eval ac_cv_prog_make_${ac_make}_set=no;;
2380 esac
2381 rm -f conftest.make
2382 fi
2383 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2384   { echo "$as_me:$LINENO: result: yes" >&5
2385 echo "${ECHO_T}yes" >&6; }
2386   SET_MAKE=
2387 else
2388   { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2390   SET_MAKE="MAKE=${MAKE-make}"
2391 fi
2392
2393 rm -rf .tst 2>/dev/null
2394 mkdir .tst 2>/dev/null
2395 if test -d .tst; then
2396   am__leading_dot=.
2397 else
2398   am__leading_dot=_
2399 fi
2400 rmdir .tst 2>/dev/null
2401
2402 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2403   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2404   # is not polluted with repeated "-I."
2405   am__isrc=' -I$(srcdir)'
2406   # test to see if srcdir already configured
2407   if test -f $srcdir/config.status; then
2408     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2409 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2410    { (exit 1); exit 1; }; }
2411   fi
2412 fi
2413
2414 # test whether we have cygpath
2415 if test -z "$CYGPATH_W"; then
2416   if (cygpath --version) >/dev/null 2>/dev/null; then
2417     CYGPATH_W='cygpath -w'
2418   else
2419     CYGPATH_W=echo
2420   fi
2421 fi
2422
2423
2424 # Define the identity of the package.
2425  PACKAGE=scenario-lib
2426  VERSION=$ASCENARIO_VERSION
2427
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE "$PACKAGE"
2431 _ACEOF
2432
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define VERSION "$VERSION"
2436 _ACEOF
2437
2438 # Some tools Automake needs.
2439
2440 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2441
2442
2443 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2444
2445
2446 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2447
2448
2449 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2450
2451
2452 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2453
2454 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2455
2456 # Installed binaries are usually stripped using `strip' when the user
2457 # run `make install-strip'.  However `strip' might not be the right
2458 # tool to use in cross-compilation environments, therefore Automake
2459 # will honor the `STRIP' environment variable to overrule this program.
2460 if test "$cross_compiling" != no; then
2461   if test -n "$ac_tool_prefix"; then
2462   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2463 set dummy ${ac_tool_prefix}strip; ac_word=$2
2464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466 if test "${ac_cv_prog_STRIP+set}" = set; then
2467   echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469   if test -n "$STRIP"; then
2470   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475   IFS=$as_save_IFS
2476   test -z "$as_dir" && as_dir=.
2477   for ac_exec_ext in '' $ac_executable_extensions; do
2478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481     break 2
2482   fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 STRIP=$ac_cv_prog_STRIP
2490 if test -n "$STRIP"; then
2491   { echo "$as_me:$LINENO: result: $STRIP" >&5
2492 echo "${ECHO_T}$STRIP" >&6; }
2493 else
2494   { echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6; }
2496 fi
2497
2498
2499 fi
2500 if test -z "$ac_cv_prog_STRIP"; then
2501   ac_ct_STRIP=$STRIP
2502   # Extract the first word of "strip", so it can be a program name with args.
2503 set dummy strip; ac_word=$2
2504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509   if test -n "$ac_ct_STRIP"; then
2510   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515   IFS=$as_save_IFS
2516   test -z "$as_dir" && as_dir=.
2517   for ac_exec_ext in '' $ac_executable_extensions; do
2518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519     ac_cv_prog_ac_ct_STRIP="strip"
2520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521     break 2
2522   fi
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 fi
2528 fi
2529 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2530 if test -n "$ac_ct_STRIP"; then
2531   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2532 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2533 else
2534   { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2536 fi
2537
2538   if test "x$ac_ct_STRIP" = x; then
2539     STRIP=":"
2540   else
2541     case $cross_compiling:$ac_tool_warned in
2542 yes:)
2543 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2544 whose name does not start with the host triplet.  If you think this
2545 configuration is useful to you, please write to autoconf@gnu.org." >&5
2546 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2547 whose name does not start with the host triplet.  If you think this
2548 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2549 ac_tool_warned=yes ;;
2550 esac
2551     STRIP=$ac_ct_STRIP
2552   fi
2553 else
2554   STRIP="$ac_cv_prog_STRIP"
2555 fi
2556
2557 fi
2558 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2559
2560 # We need awk for the "check" target.  The system "awk" is bad on
2561 # some platforms.
2562 # Always define AMTAR for backward compatibility.
2563
2564 AMTAR=${AMTAR-"${am_missing_run}tar"}
2565
2566 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2567
2568
2569
2570
2571
2572 eval LIBTOOL_VERSION_INFO="2:0:0"
2573  if test -n "${ACLOCAL}"; then
2574   INSTALL_M4_TRUE=
2575   INSTALL_M4_FALSE='#'
2576 else
2577   INSTALL_M4_TRUE='#'
2578   INSTALL_M4_FALSE=
2579 fi
2580
2581
2582 # Test for new silent rules
2583
2584
2585
2586
2587
2588 if test "x$target" != "x$host" -a -z "`echo $CC | grep -e '-gcc'`";
2589 then
2590   { echo "$as_me:$LINENO: checking for cross-compiler" >&5
2591 echo $ECHO_N "checking for cross-compiler... $ECHO_C" >&6; }
2592
2593   which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
2594   which ${target_cpu}-${target_os}-gcc >/dev/null 2>&1 \
2595   && CC=${target_cpu}-${target-os}-gcc
2596   which ${target_cpu}-${target_vendor}-${target_os}-gcc >/dev/null 2>&1 \
2597   && CC=${target_cpu}-${target_vendor}-${target_os}-gcc
2598
2599   { echo "$as_me:$LINENO: result: $CC" >&5
2600 echo "${ECHO_T}$CC" >&6; }
2601 fi
2602
2603 ac_ext=c
2604 ac_cpp='$CPP $CPPFLAGS'
2605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2608 if test -n "$ac_tool_prefix"; then
2609   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2610 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_CC+set}" = set; then
2614   echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616   if test -n "$CC"; then
2617   ac_cv_prog_CC="$CC" # Let the user override the test.
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622   IFS=$as_save_IFS
2623   test -z "$as_dir" && as_dir=.
2624   for ac_exec_ext in '' $ac_executable_extensions; do
2625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2626     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628     break 2
2629   fi
2630 done
2631 done
2632 IFS=$as_save_IFS
2633
2634 fi
2635 fi
2636 CC=$ac_cv_prog_CC
2637 if test -n "$CC"; then
2638   { echo "$as_me:$LINENO: result: $CC" >&5
2639 echo "${ECHO_T}$CC" >&6; }
2640 else
2641   { echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6; }
2643 fi
2644
2645
2646 fi
2647 if test -z "$ac_cv_prog_CC"; then
2648   ac_ct_CC=$CC
2649   # Extract the first word of "gcc", so it can be a program name with args.
2650 set dummy gcc; ac_word=$2
2651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2654   echo $ECHO_N "(cached) $ECHO_C" >&6
2655 else
2656   if test -n "$ac_ct_CC"; then
2657   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662   IFS=$as_save_IFS
2663   test -z "$as_dir" && as_dir=.
2664   for ac_exec_ext in '' $ac_executable_extensions; do
2665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666     ac_cv_prog_ac_ct_CC="gcc"
2667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668     break 2
2669   fi
2670 done
2671 done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677 if test -n "$ac_ct_CC"; then
2678   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2679 echo "${ECHO_T}$ac_ct_CC" >&6; }
2680 else
2681   { echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6; }
2683 fi
2684
2685   if test "x$ac_ct_CC" = x; then
2686     CC=""
2687   else
2688     case $cross_compiling:$ac_tool_warned in
2689 yes:)
2690 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2691 whose name does not start with the host triplet.  If you think this
2692 configuration is useful to you, please write to autoconf@gnu.org." >&5
2693 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2694 whose name does not start with the host triplet.  If you think this
2695 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2696 ac_tool_warned=yes ;;
2697 esac
2698     CC=$ac_ct_CC
2699   fi
2700 else
2701   CC="$ac_cv_prog_CC"
2702 fi
2703
2704 if test -z "$CC"; then
2705           if test -n "$ac_tool_prefix"; then
2706     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2707 set dummy ${ac_tool_prefix}cc; ac_word=$2
2708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2710 if test "${ac_cv_prog_CC+set}" = set; then
2711   echo $ECHO_N "(cached) $ECHO_C" >&6
2712 else
2713   if test -n "$CC"; then
2714   ac_cv_prog_CC="$CC" # Let the user override the test.
2715 else
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2718 do
2719   IFS=$as_save_IFS
2720   test -z "$as_dir" && as_dir=.
2721   for ac_exec_ext in '' $ac_executable_extensions; do
2722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723     ac_cv_prog_CC="${ac_tool_prefix}cc"
2724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725     break 2
2726   fi
2727 done
2728 done
2729 IFS=$as_save_IFS
2730
2731 fi
2732 fi
2733 CC=$ac_cv_prog_CC
2734 if test -n "$CC"; then
2735   { echo "$as_me:$LINENO: result: $CC" >&5
2736 echo "${ECHO_T}$CC" >&6; }
2737 else
2738   { echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6; }
2740 fi
2741
2742
2743   fi
2744 fi
2745 if test -z "$CC"; then
2746   # Extract the first word of "cc", so it can be a program name with args.
2747 set dummy cc; ac_word=$2
2748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2750 if test "${ac_cv_prog_CC+set}" = set; then
2751   echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753   if test -n "$CC"; then
2754   ac_cv_prog_CC="$CC" # Let the user override the test.
2755 else
2756   ac_prog_rejected=no
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2759 do
2760   IFS=$as_save_IFS
2761   test -z "$as_dir" && as_dir=.
2762   for ac_exec_ext in '' $ac_executable_extensions; do
2763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2765        ac_prog_rejected=yes
2766        continue
2767      fi
2768     ac_cv_prog_CC="cc"
2769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770     break 2
2771   fi
2772 done
2773 done
2774 IFS=$as_save_IFS
2775
2776 if test $ac_prog_rejected = yes; then
2777   # We found a bogon in the path, so make sure we never use it.
2778   set dummy $ac_cv_prog_CC
2779   shift
2780   if test $# != 0; then
2781     # We chose a different compiler from the bogus one.
2782     # However, it has the same basename, so the bogon will be chosen
2783     # first if we set CC to just the basename; use the full file name.
2784     shift
2785     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2786   fi
2787 fi
2788 fi
2789 fi
2790 CC=$ac_cv_prog_CC
2791 if test -n "$CC"; then
2792   { echo "$as_me:$LINENO: result: $CC" >&5
2793 echo "${ECHO_T}$CC" >&6; }
2794 else
2795   { echo "$as_me:$LINENO: result: no" >&5
2796 echo "${ECHO_T}no" >&6; }
2797 fi
2798
2799
2800 fi
2801 if test -z "$CC"; then
2802   if test -n "$ac_tool_prefix"; then
2803   for ac_prog in cl.exe
2804   do
2805     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2809 if test "${ac_cv_prog_CC+set}" = set; then
2810   echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812   if test -n "$CC"; then
2813   ac_cv_prog_CC="$CC" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818   IFS=$as_save_IFS
2819   test -z "$as_dir" && as_dir=.
2820   for ac_exec_ext in '' $ac_executable_extensions; do
2821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824     break 2
2825   fi
2826 done
2827 done
2828 IFS=$as_save_IFS
2829
2830 fi
2831 fi
2832 CC=$ac_cv_prog_CC
2833 if test -n "$CC"; then
2834   { echo "$as_me:$LINENO: result: $CC" >&5
2835 echo "${ECHO_T}$CC" >&6; }
2836 else
2837   { echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6; }
2839 fi
2840
2841
2842     test -n "$CC" && break
2843   done
2844 fi
2845 if test -z "$CC"; then
2846   ac_ct_CC=$CC
2847   for ac_prog in cl.exe
2848 do
2849   # Extract the first word of "$ac_prog", so it can be a program name with args.
2850 set dummy $ac_prog; ac_word=$2
2851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2854   echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856   if test -n "$ac_ct_CC"; then
2857   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864   for ac_exec_ext in '' $ac_executable_extensions; do
2865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866     ac_cv_prog_ac_ct_CC="$ac_prog"
2867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868     break 2
2869   fi
2870 done
2871 done
2872 IFS=$as_save_IFS
2873
2874 fi
2875 fi
2876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2877 if test -n "$ac_ct_CC"; then
2878   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2879 echo "${ECHO_T}$ac_ct_CC" >&6; }
2880 else
2881   { echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6; }
2883 fi
2884
2885
2886   test -n "$ac_ct_CC" && break
2887 done
2888
2889   if test "x$ac_ct_CC" = x; then
2890     CC=""
2891   else
2892     case $cross_compiling:$ac_tool_warned in
2893 yes:)
2894 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2895 whose name does not start with the host triplet.  If you think this
2896 configuration is useful to you, please write to autoconf@gnu.org." >&5
2897 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2898 whose name does not start with the host triplet.  If you think this
2899 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2900 ac_tool_warned=yes ;;
2901 esac
2902     CC=$ac_ct_CC
2903   fi
2904 fi
2905
2906 fi
2907
2908
2909 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2910 See \`config.log' for more details." >&5
2911 echo "$as_me: error: no acceptable C compiler found in \$PATH
2912 See \`config.log' for more details." >&2;}
2913    { (exit 1); exit 1; }; }
2914
2915 # Provide some information about the compiler.
2916 echo "$as_me:$LINENO: checking for C compiler version" >&5
2917 ac_compiler=`set X $ac_compile; echo $2`
2918 { (ac_try="$ac_compiler --version >&5"
2919 case "(($ac_try" in
2920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921   *) ac_try_echo=$ac_try;;
2922 esac
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924   (eval "$ac_compiler --version >&5") 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }
2928 { (ac_try="$ac_compiler -v >&5"
2929 case "(($ac_try" in
2930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931   *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934   (eval "$ac_compiler -v >&5") 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }
2938 { (ac_try="$ac_compiler -V >&5"
2939 case "(($ac_try" in
2940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941   *) ac_try_echo=$ac_try;;
2942 esac
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944   (eval "$ac_compiler -V >&5") 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); }
2948
2949 cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h.  */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h.  */
2955
2956 int
2957 main ()
2958 {
2959
2960   ;
2961   return 0;
2962 }
2963 _ACEOF
2964 ac_clean_files_save=$ac_clean_files
2965 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2966 # Try to create an executable without -o first, disregard a.out.
2967 # It will help us diagnose broken compilers, and finding out an intuition
2968 # of exeext.
2969 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2970 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2971 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2972 #
2973 # List of possible output files, starting from the most likely.
2974 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2975 # only as a last resort.  b.out is created by i960 compilers.
2976 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2977 #
2978 # The IRIX 6 linker writes into existing files which may not be
2979 # executable, retaining their permissions.  Remove them first so a
2980 # subsequent execution test works.
2981 ac_rmfiles=
2982 for ac_file in $ac_files
2983 do
2984   case $ac_file in
2985     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2986     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2987   esac
2988 done
2989 rm -f $ac_rmfiles
2990
2991 if { (ac_try="$ac_link_default"
2992 case "(($ac_try" in
2993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994   *) ac_try_echo=$ac_try;;
2995 esac
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997   (eval "$ac_link_default") 2>&5
2998   ac_status=$?
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); }; then
3001   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3002 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3003 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3004 # so that the user can short-circuit this test for compilers unknown to
3005 # Autoconf.
3006 for ac_file in $ac_files ''
3007 do
3008   test -f "$ac_file" || continue
3009   case $ac_file in
3010     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3011         ;;
3012     [ab].out )
3013         # We found the default executable, but exeext='' is most
3014         # certainly right.
3015         break;;
3016     *.* )
3017         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3018         then :; else
3019            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3020         fi
3021         # We set ac_cv_exeext here because the later test for it is not
3022         # safe: cross compilers may not add the suffix if given an `-o'
3023         # argument, so we may need to know it at that point already.
3024         # Even if this section looks crufty: it has the advantage of
3025         # actually working.
3026         break;;
3027     * )
3028         break;;
3029   esac
3030 done
3031 test "$ac_cv_exeext" = no && ac_cv_exeext=
3032
3033 else
3034   ac_file=''
3035 fi
3036
3037 { echo "$as_me:$LINENO: result: $ac_file" >&5
3038 echo "${ECHO_T}$ac_file" >&6; }
3039 if test -z "$ac_file"; then
3040   echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3044 See \`config.log' for more details." >&5
3045 echo "$as_me: error: C compiler cannot create executables
3046 See \`config.log' for more details." >&2;}
3047    { (exit 77); exit 77; }; }
3048 fi
3049
3050 ac_exeext=$ac_cv_exeext
3051
3052 # Check that the compiler produces executables we can run.  If not, either
3053 # the compiler is broken, or we cross compile.
3054 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3055 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3056 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3057 # If not cross compiling, check that we can run a simple program.
3058 if test "$cross_compiling" != yes; then
3059   if { ac_try='./$ac_file'
3060   { (case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_try") 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }; }; then
3069     cross_compiling=no
3070   else
3071     if test "$cross_compiling" = maybe; then
3072         cross_compiling=yes
3073     else
3074         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3075 If you meant to cross compile, use \`--host'.
3076 See \`config.log' for more details." >&5
3077 echo "$as_me: error: cannot run C compiled programs.
3078 If you meant to cross compile, use \`--host'.
3079 See \`config.log' for more details." >&2;}
3080    { (exit 1); exit 1; }; }
3081     fi
3082   fi
3083 fi
3084 { echo "$as_me:$LINENO: result: yes" >&5
3085 echo "${ECHO_T}yes" >&6; }
3086
3087 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3088 ac_clean_files=$ac_clean_files_save
3089 # Check that the compiler produces executables we can run.  If not, either
3090 # the compiler is broken, or we cross compile.
3091 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3092 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3093 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3094 echo "${ECHO_T}$cross_compiling" >&6; }
3095
3096 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3097 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3098 if { (ac_try="$ac_link"
3099 case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104   (eval "$ac_link") 2>&5
3105   ac_status=$?
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); }; then
3108   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3109 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3110 # work properly (i.e., refer to `conftest.exe'), while it won't with
3111 # `rm'.
3112 for ac_file in conftest.exe conftest conftest.*; do
3113   test -f "$ac_file" || continue
3114   case $ac_file in
3115     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3116     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117           break;;
3118     * ) break;;
3119   esac
3120 done
3121 else
3122   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3123 See \`config.log' for more details." >&5
3124 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3125 See \`config.log' for more details." >&2;}
3126    { (exit 1); exit 1; }; }
3127 fi
3128
3129 rm -f conftest$ac_cv_exeext
3130 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3131 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3132
3133 rm -f conftest.$ac_ext
3134 EXEEXT=$ac_cv_exeext
3135 ac_exeext=$EXEEXT
3136 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3137 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3138 if test "${ac_cv_objext+set}" = set; then
3139   echo $ECHO_N "(cached) $ECHO_C" >&6
3140 else
3141   cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h.  */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h.  */
3147
3148 int
3149 main ()
3150 {
3151
3152   ;
3153   return 0;
3154 }
3155 _ACEOF
3156 rm -f conftest.o conftest.obj
3157 if { (ac_try="$ac_compile"
3158 case "(($ac_try" in
3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160   *) ac_try_echo=$ac_try;;
3161 esac
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163   (eval "$ac_compile") 2>&5
3164   ac_status=$?
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); }; then
3167   for ac_file in conftest.o conftest.obj conftest.*; do
3168   test -f "$ac_file" || continue;
3169   case $ac_file in
3170     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3171     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3172        break;;
3173   esac
3174 done
3175 else
3176   echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3180 See \`config.log' for more details." >&5
3181 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3182 See \`config.log' for more details." >&2;}
3183    { (exit 1); exit 1; }; }
3184 fi
3185
3186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3187 fi
3188 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3189 echo "${ECHO_T}$ac_cv_objext" >&6; }
3190 OBJEXT=$ac_cv_objext
3191 ac_objext=$OBJEXT
3192 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3193 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3194 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3195   echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197   cat >conftest.$ac_ext <<_ACEOF
3198 /* confdefs.h.  */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h.  */
3203
3204 int
3205 main ()
3206 {
3207 #ifndef __GNUC__
3208        choke me
3209 #endif
3210
3211   ;
3212   return 0;
3213 }
3214 _ACEOF
3215 rm -f conftest.$ac_objext
3216 if { (ac_try="$ac_compile"
3217 case "(($ac_try" in
3218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219   *) ac_try_echo=$ac_try;;
3220 esac
3221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222   (eval "$ac_compile") 2>conftest.er1
3223   ac_status=$?
3224   grep -v '^ *+' conftest.er1 >conftest.err
3225   rm -f conftest.er1
3226   cat conftest.err >&5
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); } && {
3229          test -z "$ac_c_werror_flag" ||
3230          test ! -s conftest.err
3231        } && test -s conftest.$ac_objext; then
3232   ac_compiler_gnu=yes
3233 else
3234   echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237         ac_compiler_gnu=no
3238 fi
3239
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3242
3243 fi
3244 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3245 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3246 GCC=`test $ac_compiler_gnu = yes && echo yes`
3247 ac_test_CFLAGS=${CFLAGS+set}
3248 ac_save_CFLAGS=$CFLAGS
3249 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3250 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cc_g+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254   ac_save_c_werror_flag=$ac_c_werror_flag
3255    ac_c_werror_flag=yes
3256    ac_cv_prog_cc_g=no
3257    CFLAGS="-g"
3258    cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264
3265 int
3266 main ()
3267 {
3268
3269   ;
3270   return 0;
3271 }
3272 _ACEOF
3273 rm -f conftest.$ac_objext
3274 if { (ac_try="$ac_compile"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280   (eval "$ac_compile") 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } && {
3287          test -z "$ac_c_werror_flag" ||
3288          test ! -s conftest.err
3289        } && test -s conftest.$ac_objext; then
3290   ac_cv_prog_cc_g=yes
3291 else
3292   echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295         CFLAGS=""
3296       cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h.  */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h.  */
3302
3303 int
3304 main ()
3305 {
3306
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3313 case "(($ac_try" in
3314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315   *) ac_try_echo=$ac_try;;
3316 esac
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318   (eval "$ac_compile") 2>conftest.er1
3319   ac_status=$?
3320   grep -v '^ *+' conftest.er1 >conftest.err
3321   rm -f conftest.er1
3322   cat conftest.err >&5
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); } && {
3325          test -z "$ac_c_werror_flag" ||
3326          test ! -s conftest.err
3327        } && test -s conftest.$ac_objext; then
3328   :
3329 else
3330   echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333         ac_c_werror_flag=$ac_save_c_werror_flag
3334          CFLAGS="-g"
3335          cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h.  */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h.  */
3341
3342 int
3343 main ()
3344 {
3345
3346   ;
3347   return 0;
3348 }
3349 _ACEOF
3350 rm -f conftest.$ac_objext
3351 if { (ac_try="$ac_compile"
3352 case "(($ac_try" in
3353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354   *) ac_try_echo=$ac_try;;
3355 esac
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357   (eval "$ac_compile") 2>conftest.er1
3358   ac_status=$?
3359   grep -v '^ *+' conftest.er1 >conftest.err
3360   rm -f conftest.er1
3361   cat conftest.err >&5
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); } && {
3364          test -z "$ac_c_werror_flag" ||
3365          test ! -s conftest.err
3366        } && test -s conftest.$ac_objext; then
3367   ac_cv_prog_cc_g=yes
3368 else
3369   echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3371
3372
3373 fi
3374
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376 fi
3377
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 fi
3380
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382    ac_c_werror_flag=$ac_save_c_werror_flag
3383 fi
3384 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3385 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3386 if test "$ac_test_CFLAGS" = set; then
3387   CFLAGS=$ac_save_CFLAGS
3388 elif test $ac_cv_prog_cc_g = yes; then
3389   if test "$GCC" = yes; then
3390     CFLAGS="-g -O2"
3391   else
3392     CFLAGS="-g"
3393   fi
3394 else
3395   if test "$GCC" = yes; then
3396     CFLAGS="-O2"
3397   else
3398     CFLAGS=
3399   fi
3400 fi
3401 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3402 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3403 if test "${ac_cv_prog_cc_c89+set}" = set; then
3404   echo $ECHO_N "(cached) $ECHO_C" >&6
3405 else
3406   ac_cv_prog_cc_c89=no
3407 ac_save_CC=$CC
3408 cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h.  */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h.  */
3414 #include <stdarg.h>
3415 #include <stdio.h>
3416 #include <sys/types.h>
3417 #include <sys/stat.h>
3418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3419 struct buf { int x; };
3420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3421 static char *e (p, i)
3422      char **p;
3423      int i;
3424 {
3425   return p[i];
3426 }
3427 static char *f (char * (*g) (char **, int), char **p, ...)
3428 {
3429   char *s;
3430   va_list v;
3431   va_start (v,p);
3432   s = g (p, va_arg (v,int));
3433   va_end (v);
3434   return s;
3435 }
3436
3437 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3438    function prototypes and stuff, but not '\xHH' hex character constants.
3439    These don't provoke an error unfortunately, instead are silently treated
3440    as 'x'.  The following induces an error, until -std is added to get
3441    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3442    array size at least.  It's necessary to write '\x00'==0 to get something
3443    that's true only with -std.  */
3444 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3445
3446 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3447    inside strings and character constants.  */
3448 #define FOO(x) 'x'
3449 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3450
3451 int test (int i, double x);
3452 struct s1 {int (*f) (int a);};
3453 struct s2 {int (*f) (double a);};
3454 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3455 int argc;
3456 char **argv;
3457 int
3458 main ()
3459 {
3460 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3461   ;
3462   return 0;
3463 }
3464 _ACEOF
3465 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3466         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3467 do
3468   CC="$ac_save_CC $ac_arg"
3469   rm -f conftest.$ac_objext
3470 if { (ac_try="$ac_compile"
3471 case "(($ac_try" in
3472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473   *) ac_try_echo=$ac_try;;
3474 esac
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476   (eval "$ac_compile") 2>conftest.er1
3477   ac_status=$?
3478   grep -v '^ *+' conftest.er1 >conftest.err
3479   rm -f conftest.er1
3480   cat conftest.err >&5
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); } && {
3483          test -z "$ac_c_werror_flag" ||
3484          test ! -s conftest.err
3485        } && test -s conftest.$ac_objext; then
3486   ac_cv_prog_cc_c89=$ac_arg
3487 else
3488   echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491
3492 fi
3493
3494 rm -f core conftest.err conftest.$ac_objext
3495   test "x$ac_cv_prog_cc_c89" != "xno" && break
3496 done
3497 rm -f conftest.$ac_ext
3498 CC=$ac_save_CC
3499
3500 fi
3501 # AC_CACHE_VAL
3502 case "x$ac_cv_prog_cc_c89" in
3503   x)
3504     { echo "$as_me:$LINENO: result: none needed" >&5
3505 echo "${ECHO_T}none needed" >&6; } ;;
3506   xno)
3507     { echo "$as_me:$LINENO: result: unsupported" >&5
3508 echo "${ECHO_T}unsupported" >&6; } ;;
3509   *)
3510     CC="$CC $ac_cv_prog_cc_c89"
3511     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3512 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3513 esac
3514
3515
3516 ac_ext=c
3517 ac_cpp='$CPP $CPPFLAGS'
3518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3521 DEPDIR="${am__leading_dot}deps"
3522
3523 ac_config_commands="$ac_config_commands depfiles"
3524
3525
3526 am_make=${MAKE-make}
3527 cat > confinc << 'END'
3528 am__doit:
3529         @echo done
3530 .PHONY: am__doit
3531 END
3532 # If we don't find an include directive, just comment out the code.
3533 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3534 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3535 am__include="#"
3536 am__quote=
3537 _am_result=none
3538 # First try GNU make style include.
3539 echo "include confinc" > confmf
3540 # We grep out `Entering directory' and `Leaving directory'
3541 # messages which can occur if `w' ends up in MAKEFLAGS.
3542 # In particular we don't look at `^make:' because GNU make might
3543 # be invoked under some other name (usually "gmake"), in which
3544 # case it prints its new name instead of `make'.
3545 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3546    am__include=include
3547    am__quote=
3548    _am_result=GNU
3549 fi
3550 # Now try BSD make style include.
3551 if test "$am__include" = "#"; then
3552    echo '.include "confinc"' > confmf
3553    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3554       am__include=.include
3555       am__quote="\""
3556       _am_result=BSD
3557    fi
3558 fi
3559
3560
3561 { echo "$as_me:$LINENO: result: $_am_result" >&5
3562 echo "${ECHO_T}$_am_result" >&6; }
3563 rm -f confinc confmf
3564
3565 # Check whether --enable-dependency-tracking was given.
3566 if test "${enable_dependency_tracking+set}" = set; then
3567   enableval=$enable_dependency_tracking;
3568 fi
3569
3570 if test "x$enable_dependency_tracking" != xno; then
3571   am_depcomp="$ac_aux_dir/depcomp"
3572   AMDEPBACKSLASH='\'
3573 fi
3574  if test "x$enable_dependency_tracking" != xno; then
3575   AMDEP_TRUE=
3576   AMDEP_FALSE='#'
3577 else
3578   AMDEP_TRUE='#'
3579   AMDEP_FALSE=
3580 fi
3581
3582
3583
3584 depcc="$CC"   am_compiler_list=
3585
3586 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3587 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3588 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3589   echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3592   # We make a subdir and do the tests there.  Otherwise we can end up
3593   # making bogus files that we don't know about and never remove.  For
3594   # instance it was reported that on HP-UX the gcc test will end up
3595   # making a dummy file named `D' -- because `-MD' means `put the output
3596   # in D'.
3597   mkdir conftest.dir
3598   # Copy depcomp to subdir because otherwise we won't find it if we're
3599   # using a relative directory.
3600   cp "$am_depcomp" conftest.dir
3601   cd conftest.dir
3602   # We will build objects and dependencies in a subdirectory because
3603   # it helps to detect inapplicable dependency modes.  For instance
3604   # both Tru64's cc and ICC support -MD to output dependencies as a
3605   # side effect of compilation, but ICC will put the dependencies in
3606   # the current directory while Tru64 will put them in the object
3607   # directory.
3608   mkdir sub
3609
3610   am_cv_CC_dependencies_compiler_type=none
3611   if test "$am_compiler_list" = ""; then
3612      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3613   fi
3614   for depmode in $am_compiler_list; do
3615     # Setup a source with many dependencies, because some compilers
3616     # like to wrap large dependency lists on column 80 (with \), and
3617     # we should not choose a depcomp mode which is confused by this.
3618     #
3619     # We need to recreate these files for each test, as the compiler may
3620     # overwrite some of them when testing with obscure command lines.
3621     # This happens at least with the AIX C compiler.
3622     : > sub/conftest.c
3623     for i in 1 2 3 4 5 6; do
3624       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3625       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3626       # Solaris 8's {/usr,}/bin/sh.
3627       touch sub/conftst$i.h
3628     done
3629     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3630
3631     case $depmode in
3632     nosideeffect)
3633       # after this tag, mechanisms are not by side-effect, so they'll
3634       # only be used when explicitly requested
3635       if test "x$enable_dependency_tracking" = xyes; then
3636         continue
3637       else
3638         break
3639       fi
3640       ;;
3641     none) break ;;
3642     esac
3643     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3644     # mode.  It turns out that the SunPro C++ compiler does not properly
3645     # handle `-M -o', and we need to detect this.
3646     if depmode=$depmode \
3647        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3648        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3649        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3650          >/dev/null 2>conftest.err &&
3651        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3652        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3653        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3654        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3655       # icc doesn't choke on unknown options, it will just issue warnings
3656       # or remarks (even with -Werror).  So we grep stderr for any message
3657       # that says an option was ignored or not supported.
3658       # When given -MP, icc 7.0 and 7.1 complain thusly:
3659       #   icc: Command line warning: ignoring option '-M'; no argument required
3660       # The diagnosis changed in icc 8.0:
3661       #   icc: Command line remark: option '-MP' not supported
3662       if (grep 'ignoring option' conftest.err ||
3663           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3664         am_cv_CC_dependencies_compiler_type=$depmode
3665         break
3666       fi
3667     fi
3668   done
3669
3670   cd ..
3671   rm -rf conftest.dir
3672 else
3673   am_cv_CC_dependencies_compiler_type=none
3674 fi
3675
3676 fi
3677 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3678 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3679 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3680
3681  if
3682   test "x$enable_dependency_tracking" != xno \
3683   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3684   am__fastdepCC_TRUE=
3685   am__fastdepCC_FALSE='#'
3686 else
3687   am__fastdepCC_TRUE='#'
3688   am__fastdepCC_FALSE=
3689 fi
3690
3691
3692 ac_ext=c
3693 ac_cpp='$CPP $CPPFLAGS'
3694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3698 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3699 # On Suns, sometimes $CPP names a directory.
3700 if test -n "$CPP" && test -d "$CPP"; then
3701   CPP=
3702 fi
3703 if test -z "$CPP"; then
3704   if test "${ac_cv_prog_CPP+set}" = set; then
3705   echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707       # Double quotes because CPP needs to be expanded
3708     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3709     do
3710       ac_preproc_ok=false
3711 for ac_c_preproc_warn_flag in '' yes
3712 do
3713   # Use a header file that comes with gcc, so configuring glibc
3714   # with a fresh cross-compiler works.
3715   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3716   # <limits.h> exists even on freestanding compilers.
3717   # On the NeXT, cc -E runs the code through the compiler's parser,
3718   # not just through cpp. "Syntax error" is here to catch this case.
3719   cat >conftest.$ac_ext <<_ACEOF
3720 /* confdefs.h.  */
3721 _ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h.  */
3725 #ifdef __STDC__
3726 # include <limits.h>
3727 #else
3728 # include <assert.h>
3729 #endif
3730                      Syntax error
3731 _ACEOF
3732 if { (ac_try="$ac_cpp conftest.$ac_ext"
3733 case "(($ac_try" in
3734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735   *) ac_try_echo=$ac_try;;
3736 esac
3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3739   ac_status=$?
3740   grep -v '^ *+' conftest.er1 >conftest.err
3741   rm -f conftest.er1
3742   cat conftest.err >&5
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); } >/dev/null && {
3745          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3746          test ! -s conftest.err
3747        }; then
3748   :
3749 else
3750   echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3752
3753   # Broken: fails on valid input.
3754 continue
3755 fi
3756
3757 rm -f conftest.err conftest.$ac_ext
3758
3759   # OK, works on sane cases.  Now check whether nonexistent headers
3760   # can be detected and how.
3761   cat >conftest.$ac_ext <<_ACEOF
3762 /* confdefs.h.  */
3763 _ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h.  */
3767 #include <ac_nonexistent.h>
3768 _ACEOF
3769 if { (ac_try="$ac_cpp conftest.$ac_ext"
3770 case "(($ac_try" in
3771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772   *) ac_try_echo=$ac_try;;
3773 esac
3774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3775   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3776   ac_status=$?
3777   grep -v '^ *+' conftest.er1 >conftest.err
3778   rm -f conftest.er1
3779   cat conftest.err >&5
3780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781   (exit $ac_status); } >/dev/null && {
3782          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3783          test ! -s conftest.err
3784        }; then
3785   # Broken: success on invalid input.
3786 continue
3787 else
3788   echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3790
3791   # Passes both tests.
3792 ac_preproc_ok=:
3793 break
3794 fi
3795
3796 rm -f conftest.err conftest.$ac_ext
3797
3798 done
3799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3800 rm -f conftest.err conftest.$ac_ext
3801 if $ac_preproc_ok; then
3802   break
3803 fi
3804
3805     done
3806     ac_cv_prog_CPP=$CPP
3807
3808 fi
3809   CPP=$ac_cv_prog_CPP
3810 else
3811   ac_cv_prog_CPP=$CPP
3812 fi
3813 { echo "$as_me:$LINENO: result: $CPP" >&5
3814 echo "${ECHO_T}$CPP" >&6; }
3815 ac_preproc_ok=false
3816 for ac_c_preproc_warn_flag in '' yes
3817 do
3818   # Use a header file that comes with gcc, so configuring glibc
3819   # with a fresh cross-compiler works.
3820   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3821   # <limits.h> exists even on freestanding compilers.
3822   # On the NeXT, cc -E runs the code through the compiler's parser,
3823   # not just through cpp. "Syntax error" is here to catch this case.
3824   cat >conftest.$ac_ext <<_ACEOF
3825 /* confdefs.h.  */
3826 _ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h.  */
3830 #ifdef __STDC__
3831 # include <limits.h>
3832 #else
3833 # include <assert.h>
3834 #endif
3835                      Syntax error
3836 _ACEOF
3837 if { (ac_try="$ac_cpp conftest.$ac_ext"
3838 case "(($ac_try" in
3839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840   *) ac_try_echo=$ac_try;;
3841 esac
3842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3844   ac_status=$?
3845   grep -v '^ *+' conftest.er1 >conftest.err
3846   rm -f conftest.er1
3847   cat conftest.err >&5
3848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); } >/dev/null && {
3850          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3851          test ! -s conftest.err
3852        }; then
3853   :
3854 else
3855   echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3857
3858   # Broken: fails on valid input.
3859 continue
3860 fi
3861
3862 rm -f conftest.err conftest.$ac_ext
3863
3864   # OK, works on sane cases.  Now check whether nonexistent headers
3865   # can be detected and how.
3866   cat >conftest.$ac_ext <<_ACEOF
3867 /* confdefs.h.  */
3868 _ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h.  */
3872 #include <ac_nonexistent.h>
3873 _ACEOF
3874 if { (ac_try="$ac_cpp conftest.$ac_ext"
3875 case "(($ac_try" in
3876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877   *) ac_try_echo=$ac_try;;
3878 esac
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3881   ac_status=$?
3882   grep -v '^ *+' conftest.er1 >conftest.err
3883   rm -f conftest.er1
3884   cat conftest.err >&5
3885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886   (exit $ac_status); } >/dev/null && {
3887          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3888          test ! -s conftest.err
3889        }; then
3890   # Broken: success on invalid input.
3891 continue
3892 else
3893   echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3895
3896   # Passes both tests.
3897 ac_preproc_ok=:
3898 break
3899 fi
3900
3901 rm -f conftest.err conftest.$ac_ext
3902
3903 done
3904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3905 rm -f conftest.err conftest.$ac_ext
3906 if $ac_preproc_ok; then
3907   :
3908 else
3909   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3910 See \`config.log' for more details." >&5
3911 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3912 See \`config.log' for more details." >&2;}
3913    { (exit 1); exit 1; }; }
3914 fi
3915
3916 ac_ext=c
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921
3922 # Find a good install program.  We prefer a C program (faster),
3923 # so one script is as good as another.  But avoid the broken or
3924 # incompatible versions:
3925 # SysV /etc/install, /usr/sbin/install
3926 # SunOS /usr/etc/install
3927 # IRIX /sbin/install
3928 # AIX /bin/install
3929 # AmigaOS /C/install, which installs bootblocks on floppy discs
3930 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3931 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3932 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3933 # OS/2's system install, which has a completely different semantic
3934 # ./install, which can be erroneously created by make from ./install.sh.
3935 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3936 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3937 if test -z "$INSTALL"; then
3938 if test "${ac_cv_path_install+set}" = set; then
3939   echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3943 do
3944   IFS=$as_save_IFS
3945   test -z "$as_dir" && as_dir=.
3946   # Account for people who put trailing slashes in PATH elements.
3947 case $as_dir/ in
3948   ./ | .// | /cC/* | \
3949   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3950   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3951   /usr/ucb/* ) ;;
3952   *)
3953     # OSF1 and SCO ODT 3.0 have their own names for install.
3954     # Don't use installbsd from OSF since it installs stuff as root
3955     # by default.
3956     for ac_prog in ginstall scoinst install; do
3957       for ac_exec_ext in '' $ac_executable_extensions; do
3958         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3959           if test $ac_prog = install &&
3960             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3961             # AIX install.  It has an incompatible calling convention.
3962             :
3963           elif test $ac_prog = install &&
3964             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3965             # program-specific install script used by HP pwplus--don't use.
3966             :
3967           else
3968             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3969             break 3
3970           fi
3971         fi
3972       done
3973     done
3974     ;;
3975 esac
3976 done
3977 IFS=$as_save_IFS
3978
3979
3980 fi
3981   if test "${ac_cv_path_install+set}" = set; then
3982     INSTALL=$ac_cv_path_install
3983   else
3984     # As a last resort, use the slow shell script.  Don't cache a
3985     # value for INSTALL within a source directory, because that will
3986     # break other packages using the cache if that directory is
3987     # removed, or if the value is a relative name.
3988     INSTALL=$ac_install_sh
3989   fi
3990 fi
3991 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3992 echo "${ECHO_T}$INSTALL" >&6; }
3993
3994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3995 # It thinks the first close brace ends the variable substitution.
3996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3997
3998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3999
4000 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4001
4002 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4003 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4004 LN_S=$as_ln_s
4005 if test "$LN_S" = "ln -s"; then
4006   { echo "$as_me:$LINENO: result: yes" >&5
4007 echo "${ECHO_T}yes" >&6; }
4008 else
4009   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4010 echo "${ECHO_T}no, using $LN_S" >&6; }
4011 fi
4012
4013 # Check whether --enable-static was given.
4014 if test "${enable_static+set}" = set; then
4015   enableval=$enable_static; p=${PACKAGE-default}
4016     case $enableval in
4017     yes) enable_static=yes ;;
4018     no) enable_static=no ;;
4019     *)
4020      enable_static=no
4021       # Look at the argument we got.  We use all the common list separators.
4022       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4023       for pkg in $enableval; do
4024         IFS="$lt_save_ifs"
4025         if test "X$pkg" = "X$p"; then
4026           enable_static=yes
4027         fi
4028       done
4029       IFS="$lt_save_ifs"
4030       ;;
4031     esac
4032 else
4033   enable_static=no
4034 fi
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044 enable_dlopen=yes
4045
4046
4047
4048 case `pwd` in
4049   *\ * | *\     *)
4050     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4051 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4052 esac
4053
4054
4055
4056 macro_version='2.2.6'
4057 macro_revision='1.3012'
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071 ltmain="$ac_aux_dir/ltmain.sh"
4072
4073 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4074 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4075 if test "${ac_cv_path_SED+set}" = set; then
4076   echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4079      for ac_i in 1 2 3 4 5 6 7; do
4080        ac_script="$ac_script$as_nl$ac_script"
4081      done
4082      echo "$ac_script" | sed 99q >conftest.sed
4083      $as_unset ac_script || ac_script=
4084      # Extract the first word of "sed gsed" to use in msg output
4085 if test -z "$SED"; then
4086 set dummy sed gsed; ac_prog_name=$2
4087 if test "${ac_cv_path_SED+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   ac_path_SED_found=false
4091 # Loop through the user's path and test for each of PROGNAME-LIST
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095   IFS=$as_save_IFS
4096   test -z "$as_dir" && as_dir=.
4097   for ac_prog in sed gsed; do
4098   for ac_exec_ext in '' $ac_executable_extensions; do
4099     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4100     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4101     # Check for GNU ac_path_SED and select it if it is found.
4102   # Check for GNU $ac_path_SED
4103 case `"$ac_path_SED" --version 2>&1` in
4104 *GNU*)
4105   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4106 *)
4107   ac_count=0
4108   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4109   while :
4110   do
4111     cat "conftest.in" "conftest.in" >"conftest.tmp"
4112     mv "conftest.tmp" "conftest.in"
4113     cp "conftest.in" "conftest.nl"
4114     echo '' >> "conftest.nl"
4115     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4116     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4117     ac_count=`expr $ac_count + 1`
4118     if test $ac_count -gt ${ac_path_SED_max-0}; then
4119       # Best one so far, save it but keep looking for a better one
4120       ac_cv_path_SED="$ac_path_SED"
4121       ac_path_SED_max=$ac_count
4122     fi
4123     # 10*(2^10) chars as input seems more than enough
4124     test $ac_count -gt 10 && break
4125   done
4126   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4127 esac
4128
4129
4130     $ac_path_SED_found && break 3
4131   done
4132 done
4133
4134 done
4135 IFS=$as_save_IFS
4136
4137
4138 fi
4139
4140 SED="$ac_cv_path_SED"
4141 if test -z "$SED"; then
4142   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4143 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4144    { (exit 1); exit 1; }; }
4145 fi
4146
4147 else
4148   ac_cv_path_SED=$SED
4149 fi
4150
4151 fi
4152 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4153 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4154  SED="$ac_cv_path_SED"
4155   rm -f conftest.sed
4156
4157 test -z "$SED" && SED=sed
4158 Xsed="$SED -e 1s/^X//"
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4171 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4172 if test "${ac_cv_path_GREP+set}" = set; then
4173   echo $ECHO_N "(cached) $ECHO_C" >&6
4174 else
4175   # Extract the first word of "grep ggrep" to use in msg output
4176 if test -z "$GREP"; then
4177 set dummy grep ggrep; ac_prog_name=$2
4178 if test "${ac_cv_path_GREP+set}" = set; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181   ac_path_GREP_found=false
4182 # Loop through the user's path and test for each of PROGNAME-LIST
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4185 do
4186   IFS=$as_save_IFS
4187   test -z "$as_dir" && as_dir=.
4188   for ac_prog in grep ggrep; do
4189   for ac_exec_ext in '' $ac_executable_extensions; do
4190     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4191     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4192     # Check for GNU ac_path_GREP and select it if it is found.
4193   # Check for GNU $ac_path_GREP
4194 case `"$ac_path_GREP" --version 2>&1` in
4195 *GNU*)
4196   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4197 *)
4198   ac_count=0
4199   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4200   while :
4201   do
4202     cat "conftest.in" "conftest.in" >"conftest.tmp"
4203     mv "conftest.tmp" "conftest.in"
4204     cp "conftest.in" "conftest.nl"
4205     echo 'GREP' >> "conftest.nl"
4206     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4207     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208     ac_count=`expr $ac_count + 1`
4209     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4210       # Best one so far, save it but keep looking for a better one
4211       ac_cv_path_GREP="$ac_path_GREP"
4212       ac_path_GREP_max=$ac_count
4213     fi
4214     # 10*(2^10) chars as input seems more than enough
4215     test $ac_count -gt 10 && break
4216   done
4217   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218 esac
4219
4220
4221     $ac_path_GREP_found && break 3
4222   done
4223 done
4224
4225 done
4226 IFS=$as_save_IFS
4227
4228
4229 fi
4230
4231 GREP="$ac_cv_path_GREP"
4232 if test -z "$GREP"; then
4233   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4234 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4235    { (exit 1); exit 1; }; }
4236 fi
4237
4238 else
4239   ac_cv_path_GREP=$GREP
4240 fi
4241
4242
4243 fi
4244 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4245 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4246  GREP="$ac_cv_path_GREP"
4247
4248
4249 { echo "$as_me:$LINENO: checking for egrep" >&5
4250 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4251 if test "${ac_cv_path_EGREP+set}" = set; then
4252   echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4255    then ac_cv_path_EGREP="$GREP -E"
4256    else
4257      # Extract the first word of "egrep" to use in msg output
4258 if test -z "$EGREP"; then
4259 set dummy egrep; ac_prog_name=$2
4260 if test "${ac_cv_path_EGREP+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   ac_path_EGREP_found=false
4264 # Loop through the user's path and test for each of PROGNAME-LIST
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4267 do
4268   IFS=$as_save_IFS
4269   test -z "$as_dir" && as_dir=.
4270   for ac_prog in egrep; do
4271   for ac_exec_ext in '' $ac_executable_extensions; do
4272     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4273     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4274     # Check for GNU ac_path_EGREP and select it if it is found.
4275   # Check for GNU $ac_path_EGREP
4276 case `"$ac_path_EGREP" --version 2>&1` in
4277 *GNU*)
4278   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4279 *)
4280   ac_count=0
4281   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4282   while :
4283   do
4284     cat "conftest.in" "conftest.in" >"conftest.tmp"
4285     mv "conftest.tmp" "conftest.in"
4286     cp "conftest.in" "conftest.nl"
4287     echo 'EGREP' >> "conftest.nl"
4288     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4289     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4290     ac_count=`expr $ac_count + 1`
4291     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4292       # Best one so far, save it but keep looking for a better one
4293       ac_cv_path_EGREP="$ac_path_EGREP"
4294       ac_path_EGREP_max=$ac_count
4295     fi
4296     # 10*(2^10) chars as input seems more than enough
4297     test $ac_count -gt 10 && break
4298   done
4299   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4300 esac
4301
4302
4303     $ac_path_EGREP_found && break 3
4304   done
4305 done
4306
4307 done
4308 IFS=$as_save_IFS
4309
4310
4311 fi
4312
4313 EGREP="$ac_cv_path_EGREP"
4314 if test -z "$EGREP"; then
4315   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4316 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4317    { (exit 1); exit 1; }; }
4318 fi
4319
4320 else
4321   ac_cv_path_EGREP=$EGREP
4322 fi
4323
4324
4325    fi
4326 fi
4327 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4328 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4329  EGREP="$ac_cv_path_EGREP"
4330
4331
4332 { echo "$as_me:$LINENO: checking for fgrep" >&5
4333 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4334 if test "${ac_cv_path_FGREP+set}" = set; then
4335   echo $ECHO_N "(cached) $ECHO_C" >&6
4336 else
4337   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4338    then ac_cv_path_FGREP="$GREP -F"
4339    else
4340      # Extract the first word of "fgrep" to use in msg output
4341 if test -z "$FGREP"; then
4342 set dummy fgrep; ac_prog_name=$2
4343 if test "${ac_cv_path_FGREP+set}" = set; then
4344   echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346   ac_path_FGREP_found=false
4347 # Loop through the user's path and test for each of PROGNAME-LIST
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4350 do
4351   IFS=$as_save_IFS
4352   test -z "$as_dir" && as_dir=.
4353   for ac_prog in fgrep; do
4354   for ac_exec_ext in '' $ac_executable_extensions; do
4355     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4356     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4357     # Check for GNU ac_path_FGREP and select it if it is found.
4358   # Check for GNU $ac_path_FGREP
4359 case `"$ac_path_FGREP" --version 2>&1` in
4360 *GNU*)
4361   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4362 *)
4363   ac_count=0
4364   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4365   while :
4366   do
4367     cat "conftest.in" "conftest.in" >"conftest.tmp"
4368     mv "conftest.tmp" "conftest.in"
4369     cp "conftest.in" "conftest.nl"
4370     echo 'FGREP' >> "conftest.nl"
4371     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4372     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4373     ac_count=`expr $ac_count + 1`
4374     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4375       # Best one so far, save it but keep looking for a better one
4376       ac_cv_path_FGREP="$ac_path_FGREP"
4377       ac_path_FGREP_max=$ac_count
4378     fi
4379     # 10*(2^10) chars as input seems more than enough
4380     test $ac_count -gt 10 && break
4381   done
4382   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4383 esac
4384
4385
4386     $ac_path_FGREP_found && break 3
4387   done
4388 done
4389
4390 done
4391 IFS=$as_save_IFS
4392
4393
4394 fi
4395
4396 FGREP="$ac_cv_path_FGREP"
4397 if test -z "$FGREP"; then
4398   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4399 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4400    { (exit 1); exit 1; }; }
4401 fi
4402
4403 else
4404   ac_cv_path_FGREP=$FGREP
4405 fi
4406
4407
4408    fi
4409 fi
4410 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4411 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4412  FGREP="$ac_cv_path_FGREP"
4413
4414
4415 test -z "$GREP" && GREP=grep
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435 # Check whether --with-gnu-ld was given.
4436 if test "${with_gnu_ld+set}" = set; then
4437   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4438 else
4439   with_gnu_ld=no
4440 fi
4441
4442 ac_prog=ld
4443 if test "$GCC" = yes; then
4444   # Check if gcc -print-prog-name=ld gives a path.
4445   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4446 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4447   case $host in
4448   *-*-mingw*)
4449     # gcc leaves a trailing carriage return which upsets mingw
4450     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4451   *)
4452     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4453   esac
4454   case $ac_prog in
4455     # Accept absolute paths.
4456     [\\/]* | ?:[\\/]*)
4457       re_direlt='/[^/][^/]*/\.\./'
4458       # Canonicalize the pathname of ld
4459       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4460       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4461         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4462       done
4463       test -z "$LD" && LD="$ac_prog"
4464       ;;
4465   "")
4466     # If it fails, then pretend we aren't using GCC.
4467     ac_prog=ld
4468     ;;
4469   *)
4470     # If it is relative, then search for the first ld in PATH.
4471     with_gnu_ld=unknown
4472     ;;
4473   esac
4474 elif test "$with_gnu_ld" = yes; then
4475   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4476 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4477 else
4478   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4479 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4480 fi
4481 if test "${lt_cv_path_LD+set}" = set; then
4482   echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484   if test -z "$LD"; then
4485   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4486   for ac_dir in $PATH; do
4487     IFS="$lt_save_ifs"
4488     test -z "$ac_dir" && ac_dir=.
4489     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4490       lt_cv_path_LD="$ac_dir/$ac_prog"
4491       # Check to see if the program is GNU ld.  I'd rather use --version,
4492       # but apparently some variants of GNU ld only accept -v.
4493       # Break only if it was the GNU/non-GNU ld that we prefer.
4494       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4495       *GNU* | *'with BFD'*)
4496         test "$with_gnu_ld" != no && break
4497         ;;
4498       *)
4499         test "$with_gnu_ld" != yes && break
4500         ;;
4501       esac
4502     fi
4503   done
4504   IFS="$lt_save_ifs"
4505 else
4506   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4507 fi
4508 fi
4509
4510 LD="$lt_cv_path_LD"
4511 if test -n "$LD"; then
4512   { echo "$as_me:$LINENO: result: $LD" >&5
4513 echo "${ECHO_T}$LD" >&6; }
4514 else
4515   { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4517 fi
4518 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4519 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4520    { (exit 1); exit 1; }; }
4521 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4522 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4523 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4524   echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4527 case `$LD -v 2>&1 </dev/null` in
4528 *GNU* | *'with BFD'*)
4529   lt_cv_prog_gnu_ld=yes
4530   ;;
4531 *)
4532   lt_cv_prog_gnu_ld=no
4533   ;;
4534 esac
4535 fi
4536 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4537 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4538 with_gnu_ld=$lt_cv_prog_gnu_ld
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4549 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4550 if test "${lt_cv_path_NM+set}" = set; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553   if test -n "$NM"; then
4554   # Let the user override the test.
4555   lt_cv_path_NM="$NM"
4556 else
4557   lt_nm_to_check="${ac_tool_prefix}nm"
4558   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4559     lt_nm_to_check="$lt_nm_to_check nm"
4560   fi
4561   for lt_tmp_nm in $lt_nm_to_check; do
4562     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4563     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4564       IFS="$lt_save_ifs"
4565       test -z "$ac_dir" && ac_dir=.
4566       tmp_nm="$ac_dir/$lt_tmp_nm"
4567       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4568         # Check to see if the nm accepts a BSD-compat flag.
4569         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4570         #   nm: unknown option "B" ignored
4571         # Tru64's nm complains that /dev/null is an invalid object file
4572         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4573         */dev/null* | *'Invalid file or object type'*)
4574           lt_cv_path_NM="$tmp_nm -B"
4575           break
4576           ;;
4577         *)
4578           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4579           */dev/null*)
4580             lt_cv_path_NM="$tmp_nm -p"
4581             break
4582             ;;
4583           *)
4584             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4585             continue # so that we can try to find one that supports BSD flags
4586             ;;
4587           esac
4588           ;;
4589         esac
4590       fi
4591     done
4592     IFS="$lt_save_ifs"
4593   done
4594   : ${lt_cv_path_NM=no}
4595 fi
4596 fi
4597 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4598 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4599 if test "$lt_cv_path_NM" != "no"; then
4600   NM="$lt_cv_path_NM"
4601 else
4602   # Didn't find any BSD compatible name lister, look for dumpbin.
4603   if test -n "$ac_tool_prefix"; then
4604   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4605   do
4606     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4610 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4611   echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613   if test -n "$DUMPBIN"; then
4614   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4615 else
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619   IFS=$as_save_IFS
4620   test -z "$as_dir" && as_dir=.
4621   for ac_exec_ext in '' $ac_executable_extensions; do
4622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625     break 2
4626   fi
4627 done
4628 done
4629 IFS=$as_save_IFS
4630
4631 fi
4632 fi
4633 DUMPBIN=$ac_cv_prog_DUMPBIN
4634 if test -n "$DUMPBIN"; then
4635   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4636 echo "${ECHO_T}$DUMPBIN" >&6; }
4637 else
4638   { echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6; }
4640 fi
4641
4642
4643     test -n "$DUMPBIN" && break
4644   done
4645 fi
4646 if test -z "$DUMPBIN"; then
4647   ac_ct_DUMPBIN=$DUMPBIN
4648   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4649 do
4650   # Extract the first word of "$ac_prog", so it can be a program name with args.
4651 set dummy $ac_prog; ac_word=$2
4652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4655   echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657   if test -n "$ac_ct_DUMPBIN"; then
4658   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4659 else
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665   for ac_exec_ext in '' $ac_executable_extensions; do
4666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669     break 2
4670   fi
4671 done
4672 done
4673 IFS=$as_save_IFS
4674
4675 fi
4676 fi
4677 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4678 if test -n "$ac_ct_DUMPBIN"; then
4679   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4680 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4681 else
4682   { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4684 fi
4685
4686
4687   test -n "$ac_ct_DUMPBIN" && break
4688 done
4689
4690   if test "x$ac_ct_DUMPBIN" = x; then
4691     DUMPBIN=":"
4692   else
4693     case $cross_compiling:$ac_tool_warned in
4694 yes:)
4695 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4696 whose name does not start with the host triplet.  If you think this
4697 configuration is useful to you, please write to autoconf@gnu.org." >&5
4698 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4699 whose name does not start with the host triplet.  If you think this
4700 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4701 ac_tool_warned=yes ;;
4702 esac
4703     DUMPBIN=$ac_ct_DUMPBIN
4704   fi
4705 fi
4706
4707
4708   if test "$DUMPBIN" != ":"; then
4709     NM="$DUMPBIN"
4710   fi
4711 fi
4712 test -z "$NM" && NM=nm
4713
4714
4715
4716
4717
4718
4719 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4720 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4721 if test "${lt_cv_nm_interface+set}" = set; then
4722   echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724   lt_cv_nm_interface="BSD nm"
4725   echo "int some_variable = 0;" > conftest.$ac_ext
4726   (eval echo "\"\$as_me:4726: $ac_compile\"" >&5)
4727   (eval "$ac_compile" 2>conftest.err)
4728   cat conftest.err >&5
4729   (eval echo "\"\$as_me:4729: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4730   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4731   cat conftest.err >&5
4732   (eval echo "\"\$as_me:4732: output\"" >&5)
4733   cat conftest.out >&5
4734   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4735     lt_cv_nm_interface="MS dumpbin"
4736   fi
4737   rm -f conftest*
4738 fi
4739 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4740 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4741
4742 # find the maximum length of command line arguments
4743 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4744 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4745 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4746   echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748     i=0
4749   teststring="ABCD"
4750
4751   case $build_os in
4752   msdosdjgpp*)
4753     # On DJGPP, this test can blow up pretty badly due to problems in libc
4754     # (any single argument exceeding 2000 bytes causes a buffer overrun
4755     # during glob expansion).  Even if it were fixed, the result of this
4756     # check would be larger than it should be.
4757     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4758     ;;
4759
4760   gnu*)
4761     # Under GNU Hurd, this test is not required because there is
4762     # no limit to the length of command line arguments.
4763     # Libtool will interpret -1 as no limit whatsoever
4764     lt_cv_sys_max_cmd_len=-1;
4765     ;;
4766
4767   cygwin* | mingw* | cegcc*)
4768     # On Win9x/ME, this test blows up -- it succeeds, but takes
4769     # about 5 minutes as the teststring grows exponentially.
4770     # Worse, since 9x/ME are not pre-emptively multitasking,
4771     # you end up with a "frozen" computer, even though with patience
4772     # the test eventually succeeds (with a max line length of 256k).
4773     # Instead, let's just punt: use the minimum linelength reported by
4774     # all of the supported platforms: 8192 (on NT/2K/XP).
4775     lt_cv_sys_max_cmd_len=8192;
4776     ;;
4777
4778   amigaos*)
4779     # On AmigaOS with pdksh, this test takes hours, literally.
4780     # So we just punt and use a minimum line length of 8192.
4781     lt_cv_sys_max_cmd_len=8192;
4782     ;;
4783
4784   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4785     # This has been around since 386BSD, at least.  Likely further.
4786     if test -x /sbin/sysctl; then
4787       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4788     elif test -x /usr/sbin/sysctl; then
4789       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4790     else
4791       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4792     fi
4793     # And add a safety zone
4794     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4795     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4796     ;;
4797
4798   interix*)
4799     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4800     lt_cv_sys_max_cmd_len=196608
4801     ;;
4802
4803   osf*)
4804     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4805     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4806     # nice to cause kernel panics so lets avoid the loop below.
4807     # First set a reasonable default.
4808     lt_cv_sys_max_cmd_len=16384
4809     #
4810     if test -x /sbin/sysconfig; then
4811       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4812         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4813       esac
4814     fi
4815     ;;
4816   sco3.2v5*)
4817     lt_cv_sys_max_cmd_len=102400
4818     ;;
4819   sysv5* | sco5v6* | sysv4.2uw2*)
4820     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4821     if test -n "$kargmax"; then
4822       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4823     else
4824       lt_cv_sys_max_cmd_len=32768
4825     fi
4826     ;;
4827   *)
4828     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4829     if test -n "$lt_cv_sys_max_cmd_len"; then
4830       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4831       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4832     else
4833       # Make teststring a little bigger before we do anything with it.
4834       # a 1K string should be a reasonable start.
4835       for i in 1 2 3 4 5 6 7 8 ; do
4836         teststring=$teststring$teststring
4837       done
4838       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4839       # If test is not a shell built-in, we'll probably end up computing a
4840       # maximum length that is only half of the actual maximum length, but
4841       # we can't tell.
4842       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4843                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4844               test $i != 17 # 1/2 MB should be enough
4845       do
4846         i=`expr $i + 1`
4847         teststring=$teststring$teststring
4848       done
4849       # Only check the string length outside the loop.
4850       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4851       teststring=
4852       # Add a significant safety factor because C++ compilers can tack on
4853       # massive amounts of additional arguments before passing them to the
4854       # linker.  It appears as though 1/2 is a usable value.
4855       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4856     fi
4857     ;;
4858   esac
4859
4860 fi
4861
4862 if test -n $lt_cv_sys_max_cmd_len ; then
4863   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4864 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4865 else
4866   { echo "$as_me:$LINENO: result: none" >&5
4867 echo "${ECHO_T}none" >&6; }
4868 fi
4869 max_cmd_len=$lt_cv_sys_max_cmd_len
4870
4871
4872
4873
4874
4875
4876 : ${CP="cp -f"}
4877 : ${MV="mv -f"}
4878 : ${RM="rm -f"}
4879
4880 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4881 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4882 # Try some XSI features
4883 xsi_shell=no
4884 ( _lt_dummy="a/b/c"
4885   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4886       = c,a/b,, \
4887     && eval 'test $(( 1 + 1 )) -eq 2 \
4888     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4889   && xsi_shell=yes
4890 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4891 echo "${ECHO_T}$xsi_shell" >&6; }
4892
4893
4894 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4895 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4896 lt_shell_append=no
4897 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4898     >/dev/null 2>&1 \
4899   && lt_shell_append=yes
4900 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4901 echo "${ECHO_T}$lt_shell_append" >&6; }
4902
4903
4904 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4905   lt_unset=unset
4906 else
4907   lt_unset=false
4908 fi
4909
4910
4911
4912
4913
4914 # test EBCDIC or ASCII
4915 case `echo X|tr X '\101'` in
4916  A) # ASCII based system
4917     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4918   lt_SP2NL='tr \040 \012'
4919   lt_NL2SP='tr \015\012 \040\040'
4920   ;;
4921  *) # EBCDIC based system
4922   lt_SP2NL='tr \100 \n'
4923   lt_NL2SP='tr \r\n \100\100'
4924   ;;
4925 esac
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4936 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4937 if test "${lt_cv_ld_reload_flag+set}" = set; then
4938   echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940   lt_cv_ld_reload_flag='-r'
4941 fi
4942 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4943 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4944 reload_flag=$lt_cv_ld_reload_flag
4945 case $reload_flag in
4946 "" | " "*) ;;
4947 *) reload_flag=" $reload_flag" ;;
4948 esac
4949 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4950 case $host_os in
4951   darwin*)
4952     if test "$GCC" = yes; then
4953       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4954     else
4955       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4956     fi
4957     ;;
4958 esac
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968 if test -n "$ac_tool_prefix"; then
4969   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4970 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4973 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4974   echo $ECHO_N "(cached) $ECHO_C" >&6
4975 else
4976   if test -n "$OBJDUMP"; then
4977   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4981 do
4982   IFS=$as_save_IFS
4983   test -z "$as_dir" && as_dir=.
4984   for ac_exec_ext in '' $ac_executable_extensions; do
4985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988     break 2
4989   fi
4990 done
4991 done
4992 IFS=$as_save_IFS
4993
4994 fi
4995 fi
4996 OBJDUMP=$ac_cv_prog_OBJDUMP
4997 if test -n "$OBJDUMP"; then
4998   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4999 echo "${ECHO_T}$OBJDUMP" >&6; }
5000 else
5001   { echo "$as_me:$LINENO: result: no" >&5
5002 echo "${ECHO_T}no" >&6; }
5003 fi
5004
5005
5006 fi
5007 if test -z "$ac_cv_prog_OBJDUMP"; then
5008   ac_ct_OBJDUMP=$OBJDUMP
5009   # Extract the first word of "objdump", so it can be a program name with args.
5010 set dummy objdump; ac_word=$2
5011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5013 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016   if test -n "$ac_ct_OBJDUMP"; then
5017   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022   IFS=$as_save_IFS
5023   test -z "$as_dir" && as_dir=.
5024   for ac_exec_ext in '' $ac_executable_extensions; do
5025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5026     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028     break 2
5029   fi
5030 done
5031 done
5032 IFS=$as_save_IFS
5033
5034 fi
5035 fi
5036 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5037 if test -n "$ac_ct_OBJDUMP"; then
5038   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5039 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5040 else
5041   { echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6; }
5043 fi
5044
5045   if test "x$ac_ct_OBJDUMP" = x; then
5046     OBJDUMP="false"
5047   else
5048     case $cross_compiling:$ac_tool_warned in
5049 yes:)
5050 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5051 whose name does not start with the host triplet.  If you think this
5052 configuration is useful to you, please write to autoconf@gnu.org." >&5
5053 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5054 whose name does not start with the host triplet.  If you think this
5055 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5056 ac_tool_warned=yes ;;
5057 esac
5058     OBJDUMP=$ac_ct_OBJDUMP
5059   fi
5060 else
5061   OBJDUMP="$ac_cv_prog_OBJDUMP"
5062 fi
5063
5064 test -z "$OBJDUMP" && OBJDUMP=objdump
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5075 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5076 if test "${lt_cv_deplibs_check_method+set}" = set; then
5077   echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5079   lt_cv_file_magic_cmd='$MAGIC_CMD'
5080 lt_cv_file_magic_test_file=
5081 lt_cv_deplibs_check_method='unknown'
5082 # Need to set the preceding variable on all platforms that support
5083 # interlibrary dependencies.
5084 # 'none' -- dependencies not supported.
5085 # `unknown' -- same as none, but documents that we really don't know.
5086 # 'pass_all' -- all dependencies passed with no checks.
5087 # 'test_compile' -- check by making test program.
5088 # 'file_magic [[regex]]' -- check by looking for files in library path
5089 # which responds to the $file_magic_cmd with a given extended regex.
5090 # If you have `file' or equivalent on your system and you're not sure
5091 # whether `pass_all' will *always* work, you probably want this one.
5092
5093 case $host_os in
5094 aix[4-9]*)
5095   lt_cv_deplibs_check_method=pass_all
5096   ;;
5097
5098 beos*)
5099   lt_cv_deplibs_check_method=pass_all
5100   ;;
5101
5102 bsdi[45]*)
5103   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5104   lt_cv_file_magic_cmd='/usr/bin/file -L'
5105   lt_cv_file_magic_test_file=/shlib/libc.so
5106   ;;
5107
5108 cygwin*)
5109   # func_win32_libid is a shell function defined in ltmain.sh
5110   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5111   lt_cv_file_magic_cmd='func_win32_libid'
5112   ;;
5113
5114 mingw* | pw32*)
5115   # Base MSYS/MinGW do not provide the 'file' command needed by
5116   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5117   # unless we find 'file', for example because we are cross-compiling.
5118   if ( file / ) >/dev/null 2>&1; then
5119     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5120     lt_cv_file_magic_cmd='func_win32_libid'
5121   else
5122     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5123     lt_cv_file_magic_cmd='$OBJDUMP -f'
5124   fi
5125   ;;
5126
5127 cegcc)
5128   # use the weaker test based on 'objdump'. See mingw*.
5129   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5130   lt_cv_file_magic_cmd='$OBJDUMP -f'
5131   ;;
5132
5133 darwin* | rhapsody*)
5134   lt_cv_deplibs_check_method=pass_all
5135   ;;
5136
5137 freebsd* | dragonfly*)
5138   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5139     case $host_cpu in
5140     i*86 )
5141       # Not sure whether the presence of OpenBSD here was a mistake.
5142       # Let's accept both of them until this is cleared up.
5143       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5144       lt_cv_file_magic_cmd=/usr/bin/file
5145       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5146       ;;
5147     esac
5148   else
5149     lt_cv_deplibs_check_method=pass_all
5150   fi
5151   ;;
5152
5153 gnu*)
5154   lt_cv_deplibs_check_method=pass_all
5155   ;;
5156
5157 hpux10.20* | hpux11*)
5158   lt_cv_file_magic_cmd=/usr/bin/file
5159   case $host_cpu in
5160   ia64*)
5161     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5162     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5163     ;;
5164   hppa*64*)
5165     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]'
5166     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5167     ;;
5168   *)
5169     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5170     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5171     ;;
5172   esac
5173   ;;
5174
5175 interix[3-9]*)
5176   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5177   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5178   ;;
5179
5180 irix5* | irix6* | nonstopux*)
5181   case $LD in
5182   *-32|*"-32 ") libmagic=32-bit;;
5183   *-n32|*"-n32 ") libmagic=N32;;
5184   *-64|*"-64 ") libmagic=64-bit;;
5185   *) libmagic=never-match;;
5186   esac
5187   lt_cv_deplibs_check_method=pass_all
5188   ;;
5189
5190 # This must be Linux ELF.
5191 linux* | k*bsd*-gnu)
5192   lt_cv_deplibs_check_method=pass_all
5193   ;;
5194
5195 netbsd* | netbsdelf*-gnu)
5196   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5197     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5198   else
5199     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5200   fi
5201   ;;
5202
5203 newos6*)
5204   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5205   lt_cv_file_magic_cmd=/usr/bin/file
5206   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5207   ;;
5208
5209 *nto* | *qnx*)
5210   lt_cv_deplibs_check_method=pass_all
5211   ;;
5212
5213 openbsd*)
5214   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5215     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5216   else
5217     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5218   fi
5219   ;;
5220
5221 osf3* | osf4* | osf5*)
5222   lt_cv_deplibs_check_method=pass_all
5223   ;;
5224
5225 rdos*)
5226   lt_cv_deplibs_check_method=pass_all
5227   ;;
5228
5229 solaris*)
5230   lt_cv_deplibs_check_method=pass_all
5231   ;;
5232
5233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5234   lt_cv_deplibs_check_method=pass_all
5235   ;;
5236
5237 sysv4 | sysv4.3*)
5238   case $host_vendor in
5239   motorola)
5240     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]'
5241     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5242     ;;
5243   ncr)
5244     lt_cv_deplibs_check_method=pass_all
5245     ;;
5246   sequent)
5247     lt_cv_file_magic_cmd='/bin/file'
5248     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5249     ;;
5250   sni)
5251     lt_cv_file_magic_cmd='/bin/file'
5252     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5253     lt_cv_file_magic_test_file=/lib/libc.so
5254     ;;
5255   siemens)
5256     lt_cv_deplibs_check_method=pass_all
5257     ;;
5258   pc)
5259     lt_cv_deplibs_check_method=pass_all
5260     ;;
5261   esac
5262   ;;
5263
5264 tpf*)
5265   lt_cv_deplibs_check_method=pass_all
5266   ;;
5267 esac
5268
5269 fi
5270 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5271 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5272 file_magic_cmd=$lt_cv_file_magic_cmd
5273 deplibs_check_method=$lt_cv_deplibs_check_method
5274 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287 if test -n "$ac_tool_prefix"; then
5288   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5289 set dummy ${ac_tool_prefix}ar; ac_word=$2
5290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5292 if test "${ac_cv_prog_AR+set}" = set; then
5293   echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295   if test -n "$AR"; then
5296   ac_cv_prog_AR="$AR" # Let the user override the test.
5297 else
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5300 do
5301   IFS=$as_save_IFS
5302   test -z "$as_dir" && as_dir=.
5303   for ac_exec_ext in '' $ac_executable_extensions; do
5304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305     ac_cv_prog_AR="${ac_tool_prefix}ar"
5306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307     break 2
5308   fi
5309 done
5310 done
5311 IFS=$as_save_IFS
5312
5313 fi
5314 fi
5315 AR=$ac_cv_prog_AR
5316 if test -n "$AR"; then
5317   { echo "$as_me:$LINENO: result: $AR" >&5
5318 echo "${ECHO_T}$AR" >&6; }
5319 else
5320   { echo "$as_me:$LINENO: result: no" >&5
5321 echo "${ECHO_T}no" >&6; }
5322 fi
5323
5324
5325 fi
5326 if test -z "$ac_cv_prog_AR"; then
5327   ac_ct_AR=$AR
5328   # Extract the first word of "ar", so it can be a program name with args.
5329 set dummy ar; ac_word=$2
5330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5332 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5333   echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335   if test -n "$ac_ct_AR"; then
5336   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5337 else
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5340 do
5341   IFS=$as_save_IFS
5342   test -z "$as_dir" && as_dir=.
5343   for ac_exec_ext in '' $ac_executable_extensions; do
5344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5345     ac_cv_prog_ac_ct_AR="ar"
5346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347     break 2
5348   fi
5349 done
5350 done
5351 IFS=$as_save_IFS
5352
5353 fi
5354 fi
5355 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5356 if test -n "$ac_ct_AR"; then
5357   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5358 echo "${ECHO_T}$ac_ct_AR" >&6; }
5359 else
5360   { echo "$as_me:$LINENO: result: no" >&5
5361 echo "${ECHO_T}no" >&6; }
5362 fi
5363
5364   if test "x$ac_ct_AR" = x; then
5365     AR="false"
5366   else
5367     case $cross_compiling:$ac_tool_warned in
5368 yes:)
5369 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5370 whose name does not start with the host triplet.  If you think this
5371 configuration is useful to you, please write to autoconf@gnu.org." >&5
5372 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5373 whose name does not start with the host triplet.  If you think this
5374 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5375 ac_tool_warned=yes ;;
5376 esac
5377     AR=$ac_ct_AR
5378   fi
5379 else
5380   AR="$ac_cv_prog_AR"
5381 fi
5382
5383 test -z "$AR" && AR=ar
5384 test -z "$AR_FLAGS" && AR_FLAGS=cru
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396 if test -n "$ac_tool_prefix"; then
5397   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5398 set dummy ${ac_tool_prefix}strip; ac_word=$2
5399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5401 if test "${ac_cv_prog_STRIP+set}" = set; then
5402   echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404   if test -n "$STRIP"; then
5405   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5406 else
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410   IFS=$as_save_IFS
5411   test -z "$as_dir" && as_dir=.
5412   for ac_exec_ext in '' $ac_executable_extensions; do
5413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416     break 2
5417   fi
5418 done
5419 done
5420 IFS=$as_save_IFS
5421
5422 fi
5423 fi
5424 STRIP=$ac_cv_prog_STRIP
5425 if test -n "$STRIP"; then
5426   { echo "$as_me:$LINENO: result: $STRIP" >&5
5427 echo "${ECHO_T}$STRIP" >&6; }
5428 else
5429   { echo "$as_me:$LINENO: result: no" >&5
5430 echo "${ECHO_T}no" >&6; }
5431 fi
5432
5433
5434 fi
5435 if test -z "$ac_cv_prog_STRIP"; then
5436   ac_ct_STRIP=$STRIP
5437   # Extract the first word of "strip", so it can be a program name with args.
5438 set dummy strip; ac_word=$2
5439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5441 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5442   echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444   if test -n "$ac_ct_STRIP"; then
5445   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5446 else
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5449 do
5450   IFS=$as_save_IFS
5451   test -z "$as_dir" && as_dir=.
5452   for ac_exec_ext in '' $ac_executable_extensions; do
5453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5454     ac_cv_prog_ac_ct_STRIP="strip"
5455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5456     break 2
5457   fi
5458 done
5459 done
5460 IFS=$as_save_IFS
5461
5462 fi
5463 fi
5464 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5465 if test -n "$ac_ct_STRIP"; then
5466   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5467 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5468 else
5469   { echo "$as_me:$LINENO: result: no" >&5
5470 echo "${ECHO_T}no" >&6; }
5471 fi
5472
5473   if test "x$ac_ct_STRIP" = x; then
5474     STRIP=":"
5475   else
5476     case $cross_compiling:$ac_tool_warned in
5477 yes:)
5478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5479 whose name does not start with the host triplet.  If you think this
5480 configuration is useful to you, please write to autoconf@gnu.org." >&5
5481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5482 whose name does not start with the host triplet.  If you think this
5483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5484 ac_tool_warned=yes ;;
5485 esac
5486     STRIP=$ac_ct_STRIP
5487   fi
5488 else
5489   STRIP="$ac_cv_prog_STRIP"
5490 fi
5491
5492 test -z "$STRIP" && STRIP=:
5493
5494
5495
5496
5497
5498
5499 if test -n "$ac_tool_prefix"; then
5500   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5501 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5504 if test "${ac_cv_prog_RANLIB+set}" = set; then
5505   echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507   if test -n "$RANLIB"; then
5508   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5512 do
5513   IFS=$as_save_IFS
5514   test -z "$as_dir" && as_dir=.
5515   for ac_exec_ext in '' $ac_executable_extensions; do
5516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5519     break 2
5520   fi
5521 done
5522 done
5523 IFS=$as_save_IFS
5524
5525 fi
5526 fi
5527 RANLIB=$ac_cv_prog_RANLIB
5528 if test -n "$RANLIB"; then
5529   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5530 echo "${ECHO_T}$RANLIB" >&6; }
5531 else
5532   { echo "$as_me:$LINENO: result: no" >&5
5533 echo "${ECHO_T}no" >&6; }
5534 fi
5535
5536
5537 fi
5538 if test -z "$ac_cv_prog_RANLIB"; then
5539   ac_ct_RANLIB=$RANLIB
5540   # Extract the first word of "ranlib", so it can be a program name with args.
5541 set dummy ranlib; ac_word=$2
5542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5544 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5545   echo $ECHO_N "(cached) $ECHO_C" >&6
5546 else
5547   if test -n "$ac_ct_RANLIB"; then
5548   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5549 else
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5552 do
5553   IFS=$as_save_IFS
5554   test -z "$as_dir" && as_dir=.
5555   for ac_exec_ext in '' $ac_executable_extensions; do
5556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5557     ac_cv_prog_ac_ct_RANLIB="ranlib"
5558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5559     break 2
5560   fi
5561 done
5562 done
5563 IFS=$as_save_IFS
5564
5565 fi
5566 fi
5567 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5568 if test -n "$ac_ct_RANLIB"; then
5569   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5570 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5571 else
5572   { echo "$as_me:$LINENO: result: no" >&5
5573 echo "${ECHO_T}no" >&6; }
5574 fi
5575
5576   if test "x$ac_ct_RANLIB" = x; then
5577     RANLIB=":"
5578   else
5579     case $cross_compiling:$ac_tool_warned in
5580 yes:)
5581 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5582 whose name does not start with the host triplet.  If you think this
5583 configuration is useful to you, please write to autoconf@gnu.org." >&5
5584 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5585 whose name does not start with the host triplet.  If you think this
5586 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5587 ac_tool_warned=yes ;;
5588 esac
5589     RANLIB=$ac_ct_RANLIB
5590   fi
5591 else
5592   RANLIB="$ac_cv_prog_RANLIB"
5593 fi
5594
5595 test -z "$RANLIB" && RANLIB=:
5596
5597
5598
5599
5600
5601
5602 # Determine commands to create old-style static archives.
5603 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5604 old_postinstall_cmds='chmod 644 $oldlib'
5605 old_postuninstall_cmds=
5606
5607 if test -n "$RANLIB"; then
5608   case $host_os in
5609   openbsd*)
5610     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5611     ;;
5612   *)
5613     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5614     ;;
5615   esac
5616   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5617 fi
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652 # If no C compiler was specified, use CC.
5653 LTCC=${LTCC-"$CC"}
5654
5655 # If no C compiler flags were specified, use CFLAGS.
5656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5657
5658 # Allow CC to be a program name with arguments.
5659 compiler=$CC
5660
5661
5662 # Check for command to grab the raw symbol name followed by C symbol from nm.
5663 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5664 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5665 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5666   echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668
5669 # These are sane defaults that work on at least a few old systems.
5670 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5671
5672 # Character class describing NM global symbol codes.
5673 symcode='[BCDEGRST]'
5674
5675 # Regexp to match symbols that can be accessed directly from C.
5676 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5677
5678 # Define system-specific variables.
5679 case $host_os in
5680 aix*)
5681   symcode='[BCDT]'
5682   ;;
5683 cygwin* | mingw* | pw32* | cegcc*)
5684   symcode='[ABCDGISTW]'
5685   ;;
5686 hpux*)
5687   if test "$host_cpu" = ia64; then
5688     symcode='[ABCDEGRST]'
5689   fi
5690   ;;
5691 irix* | nonstopux*)
5692   symcode='[BCDEGRST]'
5693   ;;
5694 osf*)
5695   symcode='[BCDEGQRST]'
5696   ;;
5697 solaris*)
5698   symcode='[BDRT]'
5699   ;;
5700 sco3.2v5*)
5701   symcode='[DT]'
5702   ;;
5703 sysv4.2uw2*)
5704   symcode='[DT]'
5705   ;;
5706 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5707   symcode='[ABDT]'
5708   ;;
5709 sysv4)
5710   symcode='[DFNSTU]'
5711   ;;
5712 esac
5713
5714 # If we're using GNU nm, then use its standard symbol codes.
5715 case `$NM -V 2>&1` in
5716 *GNU* | *'with BFD'*)
5717   symcode='[ABCDGIRSTW]' ;;
5718 esac
5719
5720 # Transform an extracted symbol line into a proper C declaration.
5721 # Some systems (esp. on ia64) link data and code symbols differently,
5722 # so use this general approach.
5723 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5724
5725 # Transform an extracted symbol line into symbol name and symbol address
5726 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5727 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'"
5728
5729 # Handle CRLF in mingw tool chain
5730 opt_cr=
5731 case $build_os in
5732 mingw*)
5733   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5734   ;;
5735 esac
5736
5737 # Try without a prefix underscore, then with it.
5738 for ac_symprfx in "" "_"; do
5739
5740   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5741   symxfrm="\\1 $ac_symprfx\\2 \\2"
5742
5743   # Write the raw and C identifiers.
5744   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5745     # Fake it for dumpbin and say T for any non-static function
5746     # and D for any global variable.
5747     # Also find C++ and __fastcall symbols from MSVC++,
5748     # which start with @ or ?.
5749     lt_cv_sys_global_symbol_pipe="$AWK '"\
5750 "     {last_section=section; section=\$ 3};"\
5751 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5752 "     \$ 0!~/External *\|/{next};"\
5753 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5754 "     {if(hide[section]) next};"\
5755 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5756 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5757 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5758 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5759 "     ' prfx=^$ac_symprfx"
5760   else
5761     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5762   fi
5763
5764   # Check to see that the pipe works correctly.
5765   pipe_works=no
5766
5767   rm -f conftest*
5768   cat > conftest.$ac_ext <<_LT_EOF
5769 #ifdef __cplusplus
5770 extern "C" {
5771 #endif
5772 char nm_test_var;
5773 void nm_test_func(void);
5774 void nm_test_func(void){}
5775 #ifdef __cplusplus
5776 }
5777 #endif
5778 int main(){nm_test_var='a';nm_test_func();return(0);}
5779 _LT_EOF
5780
5781   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5782   (eval $ac_compile) 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); }; then
5786     # Now try to grab the symbols.
5787     nlist=conftest.nm
5788     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5789   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5790   ac_status=$?
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); } && test -s "$nlist"; then
5793       # Try sorting and uniquifying the output.
5794       if sort "$nlist" | uniq > "$nlist"T; then
5795         mv -f "$nlist"T "$nlist"
5796       else
5797         rm -f "$nlist"T
5798       fi
5799
5800       # Make sure that we snagged all the symbols we need.
5801       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5802         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5803           cat <<_LT_EOF > conftest.$ac_ext
5804 #ifdef __cplusplus
5805 extern "C" {
5806 #endif
5807
5808 _LT_EOF
5809           # Now generate the symbol file.
5810           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5811
5812           cat <<_LT_EOF >> conftest.$ac_ext
5813
5814 /* The mapping between symbol names and symbols.  */
5815 const struct {
5816   const char *name;
5817   void       *address;
5818 }
5819 lt__PROGRAM__LTX_preloaded_symbols[] =
5820 {
5821   { "@PROGRAM@", (void *) 0 },
5822 _LT_EOF
5823           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5824           cat <<\_LT_EOF >> conftest.$ac_ext
5825   {0, (void *) 0}
5826 };
5827
5828 /* This works around a problem in FreeBSD linker */
5829 #ifdef FREEBSD_WORKAROUND
5830 static const void *lt_preloaded_setup() {
5831   return lt__PROGRAM__LTX_preloaded_symbols;
5832 }
5833 #endif
5834
5835 #ifdef __cplusplus
5836 }
5837 #endif
5838 _LT_EOF
5839           # Now try linking the two files.
5840           mv conftest.$ac_objext conftstm.$ac_objext
5841           lt_save_LIBS="$LIBS"
5842           lt_save_CFLAGS="$CFLAGS"
5843           LIBS="conftstm.$ac_objext"
5844           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5845           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5846   (eval $ac_link) 2>&5
5847   ac_status=$?
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5850             pipe_works=yes
5851           fi
5852           LIBS="$lt_save_LIBS"
5853           CFLAGS="$lt_save_CFLAGS"
5854         else
5855           echo "cannot find nm_test_func in $nlist" >&5
5856         fi
5857       else
5858         echo "cannot find nm_test_var in $nlist" >&5
5859       fi
5860     else
5861       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5862     fi
5863   else
5864     echo "$progname: failed program was:" >&5
5865     cat conftest.$ac_ext >&5
5866   fi
5867   rm -rf conftest* conftst*
5868
5869   # Do not use the global_symbol_pipe unless it works.
5870   if test "$pipe_works" = yes; then
5871     break
5872   else
5873     lt_cv_sys_global_symbol_pipe=
5874   fi
5875 done
5876
5877 fi
5878
5879 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5880   lt_cv_sys_global_symbol_to_cdecl=
5881 fi
5882 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5883   { echo "$as_me:$LINENO: result: failed" >&5
5884 echo "${ECHO_T}failed" >&6; }
5885 else
5886   { echo "$as_me:$LINENO: result: ok" >&5
5887 echo "${ECHO_T}ok" >&6; }
5888 fi
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912 # Check whether --enable-libtool-lock was given.
5913 if test "${enable_libtool_lock+set}" = set; then
5914   enableval=$enable_libtool_lock;
5915 fi
5916
5917 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5918
5919 # Some flags need to be propagated to the compiler or linker for good
5920 # libtool support.
5921 case $host in
5922 ia64-*-hpux*)
5923   # Find out which ABI we are using.
5924   echo 'int i;' > conftest.$ac_ext
5925   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926   (eval $ac_compile) 2>&5
5927   ac_status=$?
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); }; then
5930     case `/usr/bin/file conftest.$ac_objext` in
5931       *ELF-32*)
5932         HPUX_IA64_MODE="32"
5933         ;;
5934       *ELF-64*)
5935         HPUX_IA64_MODE="64"
5936         ;;
5937     esac
5938   fi
5939   rm -rf conftest*
5940   ;;
5941 *-*-irix6*)
5942   # Find out which ABI we are using.
5943   echo '#line 5943 "configure"' > conftest.$ac_ext
5944   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5945   (eval $ac_compile) 2>&5
5946   ac_status=$?
5947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948   (exit $ac_status); }; then
5949     if test "$lt_cv_prog_gnu_ld" = yes; then
5950       case `/usr/bin/file conftest.$ac_objext` in
5951         *32-bit*)
5952           LD="${LD-ld} -melf32bsmip"
5953           ;;
5954         *N32*)
5955           LD="${LD-ld} -melf32bmipn32"
5956           ;;
5957         *64-bit*)
5958           LD="${LD-ld} -melf64bmip"
5959         ;;
5960       esac
5961     else
5962       case `/usr/bin/file conftest.$ac_objext` in
5963         *32-bit*)
5964           LD="${LD-ld} -32"
5965           ;;
5966         *N32*)
5967           LD="${LD-ld} -n32"
5968           ;;
5969         *64-bit*)
5970           LD="${LD-ld} -64"
5971           ;;
5972       esac
5973     fi
5974   fi
5975   rm -rf conftest*
5976   ;;
5977
5978 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5979 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5980   # Find out which ABI we are using.
5981   echo 'int i;' > conftest.$ac_ext
5982   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983   (eval $ac_compile) 2>&5
5984   ac_status=$?
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); }; then
5987     case `/usr/bin/file conftest.o` in
5988       *32-bit*)
5989         case $host in
5990           x86_64-*kfreebsd*-gnu)
5991             LD="${LD-ld} -m elf_i386_fbsd"
5992             ;;
5993           x86_64-*linux*)
5994             LD="${LD-ld} -m elf_i386"
5995             ;;
5996           ppc64-*linux*|powerpc64-*linux*)
5997             LD="${LD-ld} -m elf32ppclinux"
5998             ;;
5999           s390x-*linux*)
6000             LD="${LD-ld} -m elf_s390"
6001             ;;
6002           sparc64-*linux*)
6003             LD="${LD-ld} -m elf32_sparc"
6004             ;;
6005         esac
6006         ;;
6007       *64-bit*)
6008         case $host in
6009           x86_64-*kfreebsd*-gnu)
6010             LD="${LD-ld} -m elf_x86_64_fbsd"
6011             ;;
6012           x86_64-*linux*)
6013             LD="${LD-ld} -m elf_x86_64"
6014             ;;
6015           ppc*-*linux*|powerpc*-*linux*)
6016             LD="${LD-ld} -m elf64ppc"
6017             ;;
6018           s390*-*linux*|s390*-*tpf*)
6019             LD="${LD-ld} -m elf64_s390"
6020             ;;
6021           sparc*-*linux*)
6022             LD="${LD-ld} -m elf64_sparc"
6023             ;;
6024         esac
6025         ;;
6026     esac
6027   fi
6028   rm -rf conftest*
6029   ;;
6030
6031 *-*-sco3.2v5*)
6032   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6033   SAVE_CFLAGS="$CFLAGS"
6034   CFLAGS="$CFLAGS -belf"
6035   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6036 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6037 if test "${lt_cv_cc_needs_belf+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   ac_ext=c
6041 ac_cpp='$CPP $CPPFLAGS'
6042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6045
6046      cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h.  */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h.  */
6052
6053 int
6054 main ()
6055 {
6056
6057   ;
6058   return 0;
6059 }
6060 _ACEOF
6061 rm -f conftest.$ac_objext conftest$ac_exeext
6062 if { (ac_try="$ac_link"
6063 case "(($ac_try" in
6064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065   *) ac_try_echo=$ac_try;;
6066 esac
6067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068   (eval "$ac_link") 2>conftest.er1
6069   ac_status=$?
6070   grep -v '^ *+' conftest.er1 >conftest.err
6071   rm -f conftest.er1
6072   cat conftest.err >&5
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); } && {
6075          test -z "$ac_c_werror_flag" ||
6076          test ! -s conftest.err
6077        } && test -s conftest$ac_exeext &&
6078        $as_test_x conftest$ac_exeext; then
6079   lt_cv_cc_needs_belf=yes
6080 else
6081   echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6083
6084         lt_cv_cc_needs_belf=no
6085 fi
6086
6087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6088       conftest$ac_exeext conftest.$ac_ext
6089      ac_ext=c
6090 ac_cpp='$CPP $CPPFLAGS'
6091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6094
6095 fi
6096 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6097 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6098   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6099     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6100     CFLAGS="$SAVE_CFLAGS"
6101   fi
6102   ;;
6103 sparc*-*solaris*)
6104   # Find out which ABI we are using.
6105   echo 'int i;' > conftest.$ac_ext
6106   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107   (eval $ac_compile) 2>&5
6108   ac_status=$?
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); }; then
6111     case `/usr/bin/file conftest.o` in
6112     *64-bit*)
6113       case $lt_cv_prog_gnu_ld in
6114       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6115       *)
6116         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6117           LD="${LD-ld} -64"
6118         fi
6119         ;;
6120       esac
6121       ;;
6122     esac
6123   fi
6124   rm -rf conftest*
6125   ;;
6126 esac
6127
6128 need_locks="$enable_libtool_lock"
6129
6130
6131   case $host_os in
6132     rhapsody* | darwin*)
6133     if test -n "$ac_tool_prefix"; then
6134   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6135 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6139   echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141   if test -n "$DSYMUTIL"; then
6142   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6143 else
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH
6146 do
6147   IFS=$as_save_IFS
6148   test -z "$as_dir" && as_dir=.
6149   for ac_exec_ext in '' $ac_executable_extensions; do
6150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153     break 2
6154   fi
6155 done
6156 done
6157 IFS=$as_save_IFS
6158
6159 fi
6160 fi
6161 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6162 if test -n "$DSYMUTIL"; then
6163   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6164 echo "${ECHO_T}$DSYMUTIL" >&6; }
6165 else
6166   { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6168 fi
6169
6170
6171 fi
6172 if test -z "$ac_cv_prog_DSYMUTIL"; then
6173   ac_ct_DSYMUTIL=$DSYMUTIL
6174   # Extract the first word of "dsymutil", so it can be a program name with args.
6175 set dummy dsymutil; ac_word=$2
6176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6179   echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181   if test -n "$ac_ct_DSYMUTIL"; then
6182   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6183 else
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6186 do
6187   IFS=$as_save_IFS
6188   test -z "$as_dir" && as_dir=.
6189   for ac_exec_ext in '' $ac_executable_extensions; do
6190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6191     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193     break 2
6194   fi
6195 done
6196 done
6197 IFS=$as_save_IFS
6198
6199 fi
6200 fi
6201 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6202 if test -n "$ac_ct_DSYMUTIL"; then
6203   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6204 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6205 else
6206   { echo "$as_me:$LINENO: result: no" >&5
6207 echo "${ECHO_T}no" >&6; }
6208 fi
6209
6210   if test "x$ac_ct_DSYMUTIL" = x; then
6211     DSYMUTIL=":"
6212   else
6213     case $cross_compiling:$ac_tool_warned in
6214 yes:)
6215 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6216 whose name does not start with the host triplet.  If you think this
6217 configuration is useful to you, please write to autoconf@gnu.org." >&5
6218 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6219 whose name does not start with the host triplet.  If you think this
6220 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6221 ac_tool_warned=yes ;;
6222 esac
6223     DSYMUTIL=$ac_ct_DSYMUTIL
6224   fi
6225 else
6226   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6227 fi
6228
6229     if test -n "$ac_tool_prefix"; then
6230   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6231 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   if test -n "$NMEDIT"; then
6238   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245   for ac_exec_ext in '' $ac_executable_extensions; do
6246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252 done
6253 IFS=$as_save_IFS
6254
6255 fi
6256 fi
6257 NMEDIT=$ac_cv_prog_NMEDIT
6258 if test -n "$NMEDIT"; then
6259   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6260 echo "${ECHO_T}$NMEDIT" >&6; }
6261 else
6262   { echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6; }
6264 fi
6265
6266
6267 fi
6268 if test -z "$ac_cv_prog_NMEDIT"; then
6269   ac_ct_NMEDIT=$NMEDIT
6270   # Extract the first word of "nmedit", so it can be a program name with args.
6271 set dummy nmedit; ac_word=$2
6272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6275   echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277   if test -n "$ac_ct_NMEDIT"; then
6278   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283   IFS=$as_save_IFS
6284   test -z "$as_dir" && as_dir=.
6285   for ac_exec_ext in '' $ac_executable_extensions; do
6286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289     break 2
6290   fi
6291 done
6292 done
6293 IFS=$as_save_IFS
6294
6295 fi
6296 fi
6297 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6298 if test -n "$ac_ct_NMEDIT"; then
6299   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6300 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6301 else
6302   { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6304 fi
6305
6306   if test "x$ac_ct_NMEDIT" = x; then
6307     NMEDIT=":"
6308   else
6309     case $cross_compiling:$ac_tool_warned in
6310 yes:)
6311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6312 whose name does not start with the host triplet.  If you think this
6313 configuration is useful to you, please write to autoconf@gnu.org." >&5
6314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6315 whose name does not start with the host triplet.  If you think this
6316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6317 ac_tool_warned=yes ;;
6318 esac
6319     NMEDIT=$ac_ct_NMEDIT
6320   fi
6321 else
6322   NMEDIT="$ac_cv_prog_NMEDIT"
6323 fi
6324
6325     if test -n "$ac_tool_prefix"; then
6326   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6327 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6330 if test "${ac_cv_prog_LIPO+set}" = set; then
6331   echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
6333   if test -n "$LIPO"; then
6334   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6335 else
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 for as_dir in $PATH
6338 do
6339   IFS=$as_save_IFS
6340   test -z "$as_dir" && as_dir=.
6341   for ac_exec_ext in '' $ac_executable_extensions; do
6342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6343     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6345     break 2
6346   fi
6347 done
6348 done
6349 IFS=$as_save_IFS
6350
6351 fi
6352 fi
6353 LIPO=$ac_cv_prog_LIPO
6354 if test -n "$LIPO"; then
6355   { echo "$as_me:$LINENO: result: $LIPO" >&5
6356 echo "${ECHO_T}$LIPO" >&6; }
6357 else
6358   { echo "$as_me:$LINENO: result: no" >&5
6359 echo "${ECHO_T}no" >&6; }
6360 fi
6361
6362
6363 fi
6364 if test -z "$ac_cv_prog_LIPO"; then
6365   ac_ct_LIPO=$LIPO
6366   # Extract the first word of "lipo", so it can be a program name with args.
6367 set dummy lipo; ac_word=$2
6368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6370 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6371   echo $ECHO_N "(cached) $ECHO_C" >&6
6372 else
6373   if test -n "$ac_ct_LIPO"; then
6374   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6375 else
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6378 do
6379   IFS=$as_save_IFS
6380   test -z "$as_dir" && as_dir=.
6381   for ac_exec_ext in '' $ac_executable_extensions; do
6382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6383     ac_cv_prog_ac_ct_LIPO="lipo"
6384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6385     break 2
6386   fi
6387 done
6388 done
6389 IFS=$as_save_IFS
6390
6391 fi
6392 fi
6393 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6394 if test -n "$ac_ct_LIPO"; then
6395   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6396 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6397 else
6398   { echo "$as_me:$LINENO: result: no" >&5
6399 echo "${ECHO_T}no" >&6; }
6400 fi
6401
6402   if test "x$ac_ct_LIPO" = x; then
6403     LIPO=":"
6404   else
6405     case $cross_compiling:$ac_tool_warned in
6406 yes:)
6407 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6408 whose name does not start with the host triplet.  If you think this
6409 configuration is useful to you, please write to autoconf@gnu.org." >&5
6410 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6411 whose name does not start with the host triplet.  If you think this
6412 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6413 ac_tool_warned=yes ;;
6414 esac
6415     LIPO=$ac_ct_LIPO
6416   fi
6417 else
6418   LIPO="$ac_cv_prog_LIPO"
6419 fi
6420
6421     if test -n "$ac_tool_prefix"; then
6422   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6423 set dummy ${ac_tool_prefix}otool; ac_word=$2
6424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6426 if test "${ac_cv_prog_OTOOL+set}" = set; then
6427   echo $ECHO_N "(cached) $ECHO_C" >&6
6428 else
6429   if test -n "$OTOOL"; then
6430   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6431 else
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 for as_dir in $PATH
6434 do
6435   IFS=$as_save_IFS
6436   test -z "$as_dir" && as_dir=.
6437   for ac_exec_ext in '' $ac_executable_extensions; do
6438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6439     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6441     break 2
6442   fi
6443 done
6444 done
6445 IFS=$as_save_IFS
6446
6447 fi
6448 fi
6449 OTOOL=$ac_cv_prog_OTOOL
6450 if test -n "$OTOOL"; then
6451   { echo "$as_me:$LINENO: result: $OTOOL" >&5
6452 echo "${ECHO_T}$OTOOL" >&6; }
6453 else
6454   { echo "$as_me:$LINENO: result: no" >&5
6455 echo "${ECHO_T}no" >&6; }
6456 fi
6457
6458
6459 fi
6460 if test -z "$ac_cv_prog_OTOOL"; then
6461   ac_ct_OTOOL=$OTOOL
6462   # Extract the first word of "otool", so it can be a program name with args.
6463 set dummy otool; ac_word=$2
6464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6466 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6467   echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469   if test -n "$ac_ct_OTOOL"; then
6470   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6471 else
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6474 do
6475   IFS=$as_save_IFS
6476   test -z "$as_dir" && as_dir=.
6477   for ac_exec_ext in '' $ac_executable_extensions; do
6478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6479     ac_cv_prog_ac_ct_OTOOL="otool"
6480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481     break 2
6482   fi
6483 done
6484 done
6485 IFS=$as_save_IFS
6486
6487 fi
6488 fi
6489 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6490 if test -n "$ac_ct_OTOOL"; then
6491   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6492 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6493 else
6494   { echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6; }
6496 fi
6497
6498   if test "x$ac_ct_OTOOL" = x; then
6499     OTOOL=":"
6500   else
6501     case $cross_compiling:$ac_tool_warned in
6502 yes:)
6503 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6504 whose name does not start with the host triplet.  If you think this
6505 configuration is useful to you, please write to autoconf@gnu.org." >&5
6506 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6507 whose name does not start with the host triplet.  If you think this
6508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6509 ac_tool_warned=yes ;;
6510 esac
6511     OTOOL=$ac_ct_OTOOL
6512   fi
6513 else
6514   OTOOL="$ac_cv_prog_OTOOL"
6515 fi
6516
6517     if test -n "$ac_tool_prefix"; then
6518   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6519 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6522 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6523   echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525   if test -n "$OTOOL64"; then
6526   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6527 else
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531   IFS=$as_save_IFS
6532   test -z "$as_dir" && as_dir=.
6533   for ac_exec_ext in '' $ac_executable_extensions; do
6534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6535     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537     break 2
6538   fi
6539 done
6540 done
6541 IFS=$as_save_IFS
6542
6543 fi
6544 fi
6545 OTOOL64=$ac_cv_prog_OTOOL64
6546 if test -n "$OTOOL64"; then
6547   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6548 echo "${ECHO_T}$OTOOL64" >&6; }
6549 else
6550   { echo "$as_me:$LINENO: result: no" >&5
6551 echo "${ECHO_T}no" >&6; }
6552 fi
6553
6554
6555 fi
6556 if test -z "$ac_cv_prog_OTOOL64"; then
6557   ac_ct_OTOOL64=$OTOOL64
6558   # Extract the first word of "otool64", so it can be a program name with args.
6559 set dummy otool64; ac_word=$2
6560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6562 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6563   echo $ECHO_N "(cached) $ECHO_C" >&6
6564 else
6565   if test -n "$ac_ct_OTOOL64"; then
6566   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6567 else
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6570 do
6571   IFS=$as_save_IFS
6572   test -z "$as_dir" && as_dir=.
6573   for ac_exec_ext in '' $ac_executable_extensions; do
6574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6575     ac_cv_prog_ac_ct_OTOOL64="otool64"
6576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577     break 2
6578   fi
6579 done
6580 done
6581 IFS=$as_save_IFS
6582
6583 fi
6584 fi
6585 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6586 if test -n "$ac_ct_OTOOL64"; then
6587   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6588 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6589 else
6590   { echo "$as_me:$LINENO: result: no" >&5
6591 echo "${ECHO_T}no" >&6; }
6592 fi
6593
6594   if test "x$ac_ct_OTOOL64" = x; then
6595     OTOOL64=":"
6596   else
6597     case $cross_compiling:$ac_tool_warned in
6598 yes:)
6599 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6600 whose name does not start with the host triplet.  If you think this
6601 configuration is useful to you, please write to autoconf@gnu.org." >&5
6602 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6603 whose name does not start with the host triplet.  If you think this
6604 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6605 ac_tool_warned=yes ;;
6606 esac
6607     OTOOL64=$ac_ct_OTOOL64
6608   fi
6609 else
6610   OTOOL64="$ac_cv_prog_OTOOL64"
6611 fi
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6640 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6641 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6642   echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644   lt_cv_apple_cc_single_mod=no
6645       if test -z "${LT_MULTI_MODULE}"; then
6646         # By default we will add the -single_module flag. You can override
6647         # by either setting the environment variable LT_MULTI_MODULE
6648         # non-empty at configure time, or by adding -multi_module to the
6649         # link flags.
6650         rm -rf libconftest.dylib*
6651         echo "int foo(void){return 1;}" > conftest.c
6652         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6653 -dynamiclib -Wl,-single_module conftest.c" >&5
6654         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6655           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6656         _lt_result=$?
6657         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6658           lt_cv_apple_cc_single_mod=yes
6659         else
6660           cat conftest.err >&5
6661         fi
6662         rm -rf libconftest.dylib*
6663         rm -f conftest.*
6664       fi
6665 fi
6666 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6667 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6668     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6669 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6670 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6671   echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673   lt_cv_ld_exported_symbols_list=no
6674       save_LDFLAGS=$LDFLAGS
6675       echo "_main" > conftest.sym
6676       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6677       cat >conftest.$ac_ext <<_ACEOF
6678 /* confdefs.h.  */
6679 _ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h.  */
6683
6684 int
6685 main ()
6686 {
6687
6688   ;
6689   return 0;
6690 }
6691 _ACEOF
6692 rm -f conftest.$ac_objext conftest$ac_exeext
6693 if { (ac_try="$ac_link"
6694 case "(($ac_try" in
6695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696   *) ac_try_echo=$ac_try;;
6697 esac
6698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699   (eval "$ac_link") 2>conftest.er1
6700   ac_status=$?
6701   grep -v '^ *+' conftest.er1 >conftest.err
6702   rm -f conftest.er1
6703   cat conftest.err >&5
6704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705   (exit $ac_status); } && {
6706          test -z "$ac_c_werror_flag" ||
6707          test ! -s conftest.err
6708        } && test -s conftest$ac_exeext &&
6709        $as_test_x conftest$ac_exeext; then
6710   lt_cv_ld_exported_symbols_list=yes
6711 else
6712   echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6714
6715         lt_cv_ld_exported_symbols_list=no
6716 fi
6717
6718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6719       conftest$ac_exeext conftest.$ac_ext
6720         LDFLAGS="$save_LDFLAGS"
6721
6722 fi
6723 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6724 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6725     case $host_os in
6726     rhapsody* | darwin1.[012])
6727       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6728     darwin1.*)
6729       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6730     darwin*) # darwin 5.x on
6731       # if running on 10.5 or later, the deployment target defaults
6732       # to the OS version, if on x86, and 10.4, the deployment
6733       # target defaults to 10.4. Don't you love it?
6734       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6735         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6736           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6737         10.[012]*)
6738           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6739         10.*)
6740           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6741       esac
6742     ;;
6743   esac
6744     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6745       _lt_dar_single_mod='$single_module'
6746     fi
6747     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6748       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6749     else
6750       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6751     fi
6752     if test "$DSYMUTIL" != ":"; then
6753       _lt_dsymutil='~$DSYMUTIL $lib || :'
6754     else
6755       _lt_dsymutil=
6756     fi
6757     ;;
6758   esac
6759
6760
6761 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6762 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6763 if test "${ac_cv_header_stdc+set}" = set; then
6764   echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766   cat >conftest.$ac_ext <<_ACEOF
6767 /* confdefs.h.  */
6768 _ACEOF
6769 cat confdefs.h >>conftest.$ac_ext
6770 cat >>conftest.$ac_ext <<_ACEOF
6771 /* end confdefs.h.  */
6772 #include <stdlib.h>
6773 #include <stdarg.h>
6774 #include <string.h>
6775 #include <float.h>
6776
6777 int
6778 main ()
6779 {
6780
6781   ;
6782   return 0;
6783 }
6784 _ACEOF
6785 rm -f conftest.$ac_objext
6786 if { (ac_try="$ac_compile"
6787 case "(($ac_try" in
6788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6789   *) ac_try_echo=$ac_try;;
6790 esac
6791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6792   (eval "$ac_compile") 2>conftest.er1
6793   ac_status=$?
6794   grep -v '^ *+' conftest.er1 >conftest.err
6795   rm -f conftest.er1
6796   cat conftest.err >&5
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); } && {
6799          test -z "$ac_c_werror_flag" ||
6800          test ! -s conftest.err
6801        } && test -s conftest.$ac_objext; then
6802   ac_cv_header_stdc=yes
6803 else
6804   echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.$ac_ext >&5
6806
6807         ac_cv_header_stdc=no
6808 fi
6809
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811
6812 if test $ac_cv_header_stdc = yes; then
6813   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6814   cat >conftest.$ac_ext <<_ACEOF
6815 /* confdefs.h.  */
6816 _ACEOF
6817 cat confdefs.h >>conftest.$ac_ext
6818 cat >>conftest.$ac_ext <<_ACEOF
6819 /* end confdefs.h.  */
6820 #include <string.h>
6821
6822 _ACEOF
6823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6824   $EGREP "memchr" >/dev/null 2>&1; then
6825   :
6826 else
6827   ac_cv_header_stdc=no
6828 fi
6829 rm -f conftest*
6830
6831 fi
6832
6833 if test $ac_cv_header_stdc = yes; then
6834   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6835   cat >conftest.$ac_ext <<_ACEOF
6836 /* confdefs.h.  */
6837 _ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h.  */
6841 #include <stdlib.h>
6842
6843 _ACEOF
6844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6845   $EGREP "free" >/dev/null 2>&1; then
6846   :
6847 else
6848   ac_cv_header_stdc=no
6849 fi
6850 rm -f conftest*
6851
6852 fi
6853
6854 if test $ac_cv_header_stdc = yes; then
6855   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6856   if test "$cross_compiling" = yes; then
6857   :
6858 else
6859   cat >conftest.$ac_ext <<_ACEOF
6860 /* confdefs.h.  */
6861 _ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h.  */
6865 #include <ctype.h>
6866 #include <stdlib.h>
6867 #if ((' ' & 0x0FF) == 0x020)
6868 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6869 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6870 #else
6871 # define ISLOWER(c) \
6872                    (('a' <= (c) && (c) <= 'i') \
6873                      || ('j' <= (c) && (c) <= 'r') \
6874                      || ('s' <= (c) && (c) <= 'z'))
6875 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6876 #endif
6877
6878 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6879 int
6880 main ()
6881 {
6882   int i;
6883   for (i = 0; i < 256; i++)
6884     if (XOR (islower (i), ISLOWER (i))
6885         || toupper (i) != TOUPPER (i))
6886       return 2;
6887   return 0;
6888 }
6889 _ACEOF
6890 rm -f conftest$ac_exeext
6891 if { (ac_try="$ac_link"
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_link") 2>&5
6898   ac_status=$?
6899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6901   { (case "(($ac_try" in
6902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903   *) ac_try_echo=$ac_try;;
6904 esac
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906   (eval "$ac_try") 2>&5
6907   ac_status=$?
6908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909   (exit $ac_status); }; }; then
6910   :
6911 else
6912   echo "$as_me: program exited with status $ac_status" >&5
6913 echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6915
6916 ( exit $ac_status )
6917 ac_cv_header_stdc=no
6918 fi
6919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6920 fi
6921
6922
6923 fi
6924 fi
6925 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6926 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6927 if test $ac_cv_header_stdc = yes; then
6928
6929 cat >>confdefs.h <<\_ACEOF
6930 #define STDC_HEADERS 1
6931 _ACEOF
6932
6933 fi
6934
6935 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6946                   inttypes.h stdint.h unistd.h
6947 do
6948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6952   echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954   cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h.  */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h.  */
6960 $ac_includes_default
6961
6962 #include <$ac_header>
6963 _ACEOF
6964 rm -f conftest.$ac_objext
6965 if { (ac_try="$ac_compile"
6966 case "(($ac_try" in
6967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6968   *) ac_try_echo=$ac_try;;
6969 esac
6970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6971   (eval "$ac_compile") 2>conftest.er1
6972   ac_status=$?
6973   grep -v '^ *+' conftest.er1 >conftest.err
6974   rm -f conftest.er1
6975   cat conftest.err >&5
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); } && {
6978          test -z "$ac_c_werror_flag" ||
6979          test ! -s conftest.err
6980        } && test -s conftest.$ac_objext; then
6981   eval "$as_ac_Header=yes"
6982 else
6983   echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.$ac_ext >&5
6985
6986         eval "$as_ac_Header=no"
6987 fi
6988
6989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6990 fi
6991 ac_res=`eval echo '${'$as_ac_Header'}'`
6992                { echo "$as_me:$LINENO: result: $ac_res" >&5
6993 echo "${ECHO_T}$ac_res" >&6; }
6994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6995   cat >>confdefs.h <<_ACEOF
6996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6997 _ACEOF
6998
6999 fi
7000
7001 done
7002
7003
7004
7005 for ac_header in dlfcn.h
7006 do
7007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7011   echo $ECHO_N "(cached) $ECHO_C" >&6
7012 else
7013   cat >conftest.$ac_ext <<_ACEOF
7014 /* confdefs.h.  */
7015 _ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h.  */
7019 $ac_includes_default
7020
7021 #include <$ac_header>
7022 _ACEOF
7023 rm -f conftest.$ac_objext
7024 if { (ac_try="$ac_compile"
7025 case "(($ac_try" in
7026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7027   *) ac_try_echo=$ac_try;;
7028 esac
7029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7030   (eval "$ac_compile") 2>conftest.er1
7031   ac_status=$?
7032   grep -v '^ *+' conftest.er1 >conftest.err
7033   rm -f conftest.er1
7034   cat conftest.err >&5
7035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036   (exit $ac_status); } && {
7037          test -z "$ac_c_werror_flag" ||
7038          test ! -s conftest.err
7039        } && test -s conftest.$ac_objext; then
7040   eval "$as_ac_Header=yes"
7041 else
7042   echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7044
7045         eval "$as_ac_Header=no"
7046 fi
7047
7048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 fi
7050 ac_res=`eval echo '${'$as_ac_Header'}'`
7051                { echo "$as_me:$LINENO: result: $ac_res" >&5
7052 echo "${ECHO_T}$ac_res" >&6; }
7053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7054   cat >>confdefs.h <<_ACEOF
7055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7056 _ACEOF
7057
7058 fi
7059
7060 done
7061
7062
7063
7064 # Set options
7065
7066
7067
7068
7069   enable_win32_dll=no
7070
7071
7072             # Check whether --enable-shared was given.
7073 if test "${enable_shared+set}" = set; then
7074   enableval=$enable_shared; p=${PACKAGE-default}
7075     case $enableval in
7076     yes) enable_shared=yes ;;
7077     no) enable_shared=no ;;
7078     *)
7079       enable_shared=no
7080       # Look at the argument we got.  We use all the common list separators.
7081       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7082       for pkg in $enableval; do
7083         IFS="$lt_save_ifs"
7084         if test "X$pkg" = "X$p"; then
7085           enable_shared=yes
7086         fi
7087       done
7088       IFS="$lt_save_ifs"
7089       ;;
7090     esac
7091 else
7092   enable_shared=yes
7093 fi
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105 # Check whether --with-pic was given.
7106 if test "${with_pic+set}" = set; then
7107   withval=$with_pic; pic_mode="$withval"
7108 else
7109   pic_mode=default
7110 fi
7111
7112
7113 test -z "$pic_mode" && pic_mode=default
7114
7115
7116
7117
7118
7119
7120
7121   # Check whether --enable-fast-install was given.
7122 if test "${enable_fast_install+set}" = set; then
7123   enableval=$enable_fast_install; p=${PACKAGE-default}
7124     case $enableval in
7125     yes) enable_fast_install=yes ;;
7126     no) enable_fast_install=no ;;
7127     *)
7128       enable_fast_install=no
7129       # Look at the argument we got.  We use all the common list separators.
7130       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7131       for pkg in $enableval; do
7132         IFS="$lt_save_ifs"
7133         if test "X$pkg" = "X$p"; then
7134           enable_fast_install=yes
7135         fi
7136       done
7137       IFS="$lt_save_ifs"
7138       ;;
7139     esac
7140 else
7141   enable_fast_install=yes
7142 fi
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154 # This can be used to rebuild libtool when needed
7155 LIBTOOL_DEPS="$ltmain"
7156
7157 # Always use our own libtool.
7158 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184 test -z "$LN_S" && LN_S="ln -s"
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199 if test -n "${ZSH_VERSION+set}" ; then
7200    setopt NO_GLOB_SUBST
7201 fi
7202
7203 { echo "$as_me:$LINENO: checking for objdir" >&5
7204 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7205 if test "${lt_cv_objdir+set}" = set; then
7206   echo $ECHO_N "(cached) $ECHO_C" >&6
7207 else
7208   rm -f .libs 2>/dev/null
7209 mkdir .libs 2>/dev/null
7210 if test -d .libs; then
7211   lt_cv_objdir=.libs
7212 else
7213   # MS-DOS does not allow filenames that begin with a dot.
7214   lt_cv_objdir=_libs
7215 fi
7216 rmdir .libs 2>/dev/null
7217 fi
7218 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7219 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7220 objdir=$lt_cv_objdir
7221
7222
7223
7224
7225
7226 cat >>confdefs.h <<_ACEOF
7227 #define LT_OBJDIR "$lt_cv_objdir/"
7228 _ACEOF
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246 case $host_os in
7247 aix3*)
7248   # AIX sometimes has problems with the GCC collect2 program.  For some
7249   # reason, if we set the COLLECT_NAMES environment variable, the problems
7250   # vanish in a puff of smoke.
7251   if test "X${COLLECT_NAMES+set}" != Xset; then
7252     COLLECT_NAMES=
7253     export COLLECT_NAMES
7254   fi
7255   ;;
7256 esac
7257
7258 # Sed substitution that helps us do robust quoting.  It backslashifies
7259 # metacharacters that are still active within double-quoted strings.
7260 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7261
7262 # Same as above, but do not quote variable references.
7263 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7264
7265 # Sed substitution to delay expansion of an escaped shell variable in a
7266 # double_quote_subst'ed string.
7267 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7268
7269 # Sed substitution to delay expansion of an escaped single quote.
7270 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7271
7272 # Sed substitution to avoid accidental globbing in evaled expressions
7273 no_glob_subst='s/\*/\\\*/g'
7274
7275 # Global variables:
7276 ofile=libtool
7277 can_build_shared=yes
7278
7279 # All known linkers require a `.a' archive for static linking (except MSVC,
7280 # which needs '.lib').
7281 libext=a
7282
7283 with_gnu_ld="$lt_cv_prog_gnu_ld"
7284
7285 old_CC="$CC"
7286 old_CFLAGS="$CFLAGS"
7287
7288 # Set sane defaults for various variables
7289 test -z "$CC" && CC=cc
7290 test -z "$LTCC" && LTCC=$CC
7291 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7292 test -z "$LD" && LD=ld
7293 test -z "$ac_objext" && ac_objext=o
7294
7295 for cc_temp in $compiler""; do
7296   case $cc_temp in
7297     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7298     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7299     \-*) ;;
7300     *) break;;
7301   esac
7302 done
7303 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7304
7305
7306 # Only perform the check for file, if the check method requires it
7307 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7308 case $deplibs_check_method in
7309 file_magic*)
7310   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7311     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7312 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7313 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7314   echo $ECHO_N "(cached) $ECHO_C" >&6
7315 else
7316   case $MAGIC_CMD in
7317 [\\/*] |  ?:[\\/]*)
7318   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7319   ;;
7320 *)
7321   lt_save_MAGIC_CMD="$MAGIC_CMD"
7322   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7323   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7324   for ac_dir in $ac_dummy; do
7325     IFS="$lt_save_ifs"
7326     test -z "$ac_dir" && ac_dir=.
7327     if test -f $ac_dir/${ac_tool_prefix}file; then
7328       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7329       if test -n "$file_magic_test_file"; then
7330         case $deplibs_check_method in
7331         "file_magic "*)
7332           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7333           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7334           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7335             $EGREP "$file_magic_regex" > /dev/null; then
7336             :
7337           else
7338             cat <<_LT_EOF 1>&2
7339
7340 *** Warning: the command libtool uses to detect shared libraries,
7341 *** $file_magic_cmd, produces output that libtool cannot recognize.
7342 *** The result is that libtool may fail to recognize shared libraries
7343 *** as such.  This will affect the creation of libtool libraries that
7344 *** depend on shared libraries, but programs linked with such libtool
7345 *** libraries will work regardless of this problem.  Nevertheless, you
7346 *** may want to report the problem to your system manager and/or to
7347 *** bug-libtool@gnu.org
7348
7349 _LT_EOF
7350           fi ;;
7351         esac
7352       fi
7353       break
7354     fi
7355   done
7356   IFS="$lt_save_ifs"
7357   MAGIC_CMD="$lt_save_MAGIC_CMD"
7358   ;;
7359 esac
7360 fi
7361
7362 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7363 if test -n "$MAGIC_CMD"; then
7364   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7365 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7366 else
7367   { echo "$as_me:$LINENO: result: no" >&5
7368 echo "${ECHO_T}no" >&6; }
7369 fi
7370
7371
7372
7373
7374
7375 if test -z "$lt_cv_path_MAGIC_CMD"; then
7376   if test -n "$ac_tool_prefix"; then
7377     { echo "$as_me:$LINENO: checking for file" >&5
7378 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7379 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7380   echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382   case $MAGIC_CMD in
7383 [\\/*] |  ?:[\\/]*)
7384   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7385   ;;
7386 *)
7387   lt_save_MAGIC_CMD="$MAGIC_CMD"
7388   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7389   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7390   for ac_dir in $ac_dummy; do
7391     IFS="$lt_save_ifs"
7392     test -z "$ac_dir" && ac_dir=.
7393     if test -f $ac_dir/file; then
7394       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7395       if test -n "$file_magic_test_file"; then
7396         case $deplibs_check_method in
7397         "file_magic "*)
7398           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7399           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7400           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7401             $EGREP "$file_magic_regex" > /dev/null; then
7402             :
7403           else
7404             cat <<_LT_EOF 1>&2
7405
7406 *** Warning: the command libtool uses to detect shared libraries,
7407 *** $file_magic_cmd, produces output that libtool cannot recognize.
7408 *** The result is that libtool may fail to recognize shared libraries
7409 *** as such.  This will affect the creation of libtool libraries that
7410 *** depend on shared libraries, but programs linked with such libtool
7411 *** libraries will work regardless of this problem.  Nevertheless, you
7412 *** may want to report the problem to your system manager and/or to
7413 *** bug-libtool@gnu.org
7414
7415 _LT_EOF
7416           fi ;;
7417         esac
7418       fi
7419       break
7420     fi
7421   done
7422   IFS="$lt_save_ifs"
7423   MAGIC_CMD="$lt_save_MAGIC_CMD"
7424   ;;
7425 esac
7426 fi
7427
7428 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7429 if test -n "$MAGIC_CMD"; then
7430   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7431 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7432 else
7433   { echo "$as_me:$LINENO: result: no" >&5
7434 echo "${ECHO_T}no" >&6; }
7435 fi
7436
7437
7438   else
7439     MAGIC_CMD=:
7440   fi
7441 fi
7442
7443   fi
7444   ;;
7445 esac
7446
7447 # Use C for the default configuration in the libtool script
7448
7449 lt_save_CC="$CC"
7450 ac_ext=c
7451 ac_cpp='$CPP $CPPFLAGS'
7452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7455
7456
7457 # Source file extension for C test sources.
7458 ac_ext=c
7459
7460 # Object file extension for compiled C test sources.
7461 objext=o
7462 objext=$objext
7463
7464 # Code to be used in simple compile tests
7465 lt_simple_compile_test_code="int some_variable = 0;"
7466
7467 # Code to be used in simple link tests
7468 lt_simple_link_test_code='int main(){return(0);}'
7469
7470
7471
7472
7473
7474
7475
7476 # If no C compiler was specified, use CC.
7477 LTCC=${LTCC-"$CC"}
7478
7479 # If no C compiler flags were specified, use CFLAGS.
7480 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7481
7482 # Allow CC to be a program name with arguments.
7483 compiler=$CC
7484
7485 # Save the default compiler, since it gets overwritten when the other
7486 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7487 compiler_DEFAULT=$CC
7488
7489 # save warnings/boilerplate of simple test code
7490 ac_outfile=conftest.$ac_objext
7491 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7492 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7493 _lt_compiler_boilerplate=`cat conftest.err`
7494 $RM conftest*
7495
7496 ac_outfile=conftest.$ac_objext
7497 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7498 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7499 _lt_linker_boilerplate=`cat conftest.err`
7500 $RM -r conftest*
7501
7502
7503 if test -n "$compiler"; then
7504
7505 lt_prog_compiler_no_builtin_flag=
7506
7507 if test "$GCC" = yes; then
7508   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7509
7510   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7511 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7512 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7513   echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515   lt_cv_prog_compiler_rtti_exceptions=no
7516    ac_outfile=conftest.$ac_objext
7517    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7518    lt_compiler_flag="-fno-rtti -fno-exceptions"
7519    # Insert the option either (1) after the last *FLAGS variable, or
7520    # (2) before a word containing "conftest.", or (3) at the end.
7521    # Note that $ac_compile itself does not contain backslashes and begins
7522    # with a dollar sign (not a hyphen), so the echo should work correctly.
7523    # The option is referenced via a variable to avoid confusing sed.
7524    lt_compile=`echo "$ac_compile" | $SED \
7525    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7526    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7527    -e 's:$: $lt_compiler_flag:'`
7528    (eval echo "\"\$as_me:7528: $lt_compile\"" >&5)
7529    (eval "$lt_compile" 2>conftest.err)
7530    ac_status=$?
7531    cat conftest.err >&5
7532    echo "$as_me:7532: \$? = $ac_status" >&5
7533    if (exit $ac_status) && test -s "$ac_outfile"; then
7534      # The compiler can only warn and ignore the option if not recognized
7535      # So say no if there are warnings other than the usual output.
7536      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7537      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7538      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7539        lt_cv_prog_compiler_rtti_exceptions=yes
7540      fi
7541    fi
7542    $RM conftest*
7543
7544 fi
7545 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7546 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7547
7548 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7549     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7550 else
7551     :
7552 fi
7553
7554 fi
7555
7556
7557
7558
7559
7560
7561   lt_prog_compiler_wl=
7562 lt_prog_compiler_pic=
7563 lt_prog_compiler_static=
7564
7565 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7566 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7567
7568   if test "$GCC" = yes; then
7569     lt_prog_compiler_wl='-Wl,'
7570     lt_prog_compiler_static='-static'
7571
7572     case $host_os in
7573       aix*)
7574       # All AIX code is PIC.
7575       if test "$host_cpu" = ia64; then
7576         # AIX 5 now supports IA64 processor
7577         lt_prog_compiler_static='-Bstatic'
7578       fi
7579       ;;
7580
7581     amigaos*)
7582       case $host_cpu in
7583       powerpc)
7584             # see comment about AmigaOS4 .so support
7585             lt_prog_compiler_pic='-fPIC'
7586         ;;
7587       m68k)
7588             # FIXME: we need at least 68020 code to build shared libraries, but
7589             # adding the `-m68020' flag to GCC prevents building anything better,
7590             # like `-m68040'.
7591             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7592         ;;
7593       esac
7594       ;;
7595
7596     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7597       # PIC is the default for these OSes.
7598       ;;
7599
7600     mingw* | cygwin* | pw32* | os2* | cegcc*)
7601       # This hack is so that the source file can tell whether it is being
7602       # built for inclusion in a dll (and should export symbols for example).
7603       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7604       # (--disable-auto-import) libraries
7605       lt_prog_compiler_pic='-DDLL_EXPORT'
7606       ;;
7607
7608     darwin* | rhapsody*)
7609       # PIC is the default on this platform
7610       # Common symbols not allowed in MH_DYLIB files
7611       lt_prog_compiler_pic='-fno-common'
7612       ;;
7613
7614     hpux*)
7615       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7616       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7617       # sets the default TLS model and affects inlining.
7618       case $host_cpu in
7619       hppa*64*)
7620         # +Z the default
7621         ;;
7622       *)
7623         lt_prog_compiler_pic='-fPIC'
7624         ;;
7625       esac
7626       ;;
7627
7628     interix[3-9]*)
7629       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7630       # Instead, we relocate shared libraries at runtime.
7631       ;;
7632
7633     msdosdjgpp*)
7634       # Just because we use GCC doesn't mean we suddenly get shared libraries
7635       # on systems that don't support them.
7636       lt_prog_compiler_can_build_shared=no
7637       enable_shared=no
7638       ;;
7639
7640     *nto* | *qnx*)
7641       # QNX uses GNU C++, but need to define -shared option too, otherwise
7642       # it will coredump.
7643       lt_prog_compiler_pic='-fPIC -shared'
7644       ;;
7645
7646     sysv4*MP*)
7647       if test -d /usr/nec; then
7648         lt_prog_compiler_pic=-Kconform_pic
7649       fi
7650       ;;
7651
7652     *)
7653       lt_prog_compiler_pic='-fPIC'
7654       ;;
7655     esac
7656   else
7657     # PORTME Check for flag to pass linker flags through the system compiler.
7658     case $host_os in
7659     aix*)
7660       lt_prog_compiler_wl='-Wl,'
7661       if test "$host_cpu" = ia64; then
7662         # AIX 5 now supports IA64 processor
7663         lt_prog_compiler_static='-Bstatic'
7664       else
7665         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7666       fi
7667       ;;
7668
7669     mingw* | cygwin* | pw32* | os2* | cegcc*)
7670       # This hack is so that the source file can tell whether it is being
7671       # built for inclusion in a dll (and should export symbols for example).
7672       lt_prog_compiler_pic='-DDLL_EXPORT'
7673       ;;
7674
7675     hpux9* | hpux10* | hpux11*)
7676       lt_prog_compiler_wl='-Wl,'
7677       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7678       # not for PA HP-UX.
7679       case $host_cpu in
7680       hppa*64*|ia64*)
7681         # +Z the default
7682         ;;
7683       *)
7684         lt_prog_compiler_pic='+Z'
7685         ;;
7686       esac
7687       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7688       lt_prog_compiler_static='${wl}-a ${wl}archive'
7689       ;;
7690
7691     irix5* | irix6* | nonstopux*)
7692       lt_prog_compiler_wl='-Wl,'
7693       # PIC (with -KPIC) is the default.
7694       lt_prog_compiler_static='-non_shared'
7695       ;;
7696
7697     linux* | k*bsd*-gnu)
7698       case $cc_basename in
7699       # old Intel for x86_64 which still supported -KPIC.
7700       ecc*)
7701         lt_prog_compiler_wl='-Wl,'
7702         lt_prog_compiler_pic='-KPIC'
7703         lt_prog_compiler_static='-static'
7704         ;;
7705       # icc used to be incompatible with GCC.
7706       # ICC 10 doesn't accept -KPIC any more.
7707       icc* | ifort*)
7708         lt_prog_compiler_wl='-Wl,'
7709         lt_prog_compiler_pic='-fPIC'
7710         lt_prog_compiler_static='-static'
7711         ;;
7712       # Lahey Fortran 8.1.
7713       lf95*)
7714         lt_prog_compiler_wl='-Wl,'
7715         lt_prog_compiler_pic='--shared'
7716         lt_prog_compiler_static='--static'
7717         ;;
7718       pgcc* | pgf77* | pgf90* | pgf95*)
7719         # Portland Group compilers (*not* the Pentium gcc compiler,
7720         # which looks to be a dead project)
7721         lt_prog_compiler_wl='-Wl,'
7722         lt_prog_compiler_pic='-fpic'
7723         lt_prog_compiler_static='-Bstatic'
7724         ;;
7725       ccc*)
7726         lt_prog_compiler_wl='-Wl,'
7727         # All Alpha code is PIC.
7728         lt_prog_compiler_static='-non_shared'
7729         ;;
7730       xl*)
7731         # IBM XL C 8.0/Fortran 10.1 on PPC
7732         lt_prog_compiler_wl='-Wl,'
7733         lt_prog_compiler_pic='-qpic'
7734         lt_prog_compiler_static='-qstaticlink'
7735         ;;
7736       *)
7737         case `$CC -V 2>&1 | sed 5q` in
7738         *Sun\ C*)
7739           # Sun C 5.9
7740           lt_prog_compiler_pic='-KPIC'
7741           lt_prog_compiler_static='-Bstatic'
7742           lt_prog_compiler_wl='-Wl,'
7743           ;;
7744         *Sun\ F*)
7745           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7746           lt_prog_compiler_pic='-KPIC'
7747           lt_prog_compiler_static='-Bstatic'
7748           lt_prog_compiler_wl=''
7749           ;;
7750         esac
7751         ;;
7752       esac
7753       ;;
7754
7755     newsos6)
7756       lt_prog_compiler_pic='-KPIC'
7757       lt_prog_compiler_static='-Bstatic'
7758       ;;
7759
7760     *nto* | *qnx*)
7761       # QNX uses GNU C++, but need to define -shared option too, otherwise
7762       # it will coredump.
7763       lt_prog_compiler_pic='-fPIC -shared'
7764       ;;
7765
7766     osf3* | osf4* | osf5*)
7767       lt_prog_compiler_wl='-Wl,'
7768       # All OSF/1 code is PIC.
7769       lt_prog_compiler_static='-non_shared'
7770       ;;
7771
7772     rdos*)
7773       lt_prog_compiler_static='-non_shared'
7774       ;;
7775
7776     solaris*)
7777       lt_prog_compiler_pic='-KPIC'
7778       lt_prog_compiler_static='-Bstatic'
7779       case $cc_basename in
7780       f77* | f90* | f95*)
7781         lt_prog_compiler_wl='-Qoption ld ';;
7782       *)
7783         lt_prog_compiler_wl='-Wl,';;
7784       esac
7785       ;;
7786
7787     sunos4*)
7788       lt_prog_compiler_wl='-Qoption ld '
7789       lt_prog_compiler_pic='-PIC'
7790       lt_prog_compiler_static='-Bstatic'
7791       ;;
7792
7793     sysv4 | sysv4.2uw2* | sysv4.3*)
7794       lt_prog_compiler_wl='-Wl,'
7795       lt_prog_compiler_pic='-KPIC'
7796       lt_prog_compiler_static='-Bstatic'
7797       ;;
7798
7799     sysv4*MP*)
7800       if test -d /usr/nec ;then
7801         lt_prog_compiler_pic='-Kconform_pic'
7802         lt_prog_compiler_static='-Bstatic'
7803       fi
7804       ;;
7805
7806     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7807       lt_prog_compiler_wl='-Wl,'
7808       lt_prog_compiler_pic='-KPIC'
7809       lt_prog_compiler_static='-Bstatic'
7810       ;;
7811
7812     unicos*)
7813       lt_prog_compiler_wl='-Wl,'
7814       lt_prog_compiler_can_build_shared=no
7815       ;;
7816
7817     uts4*)
7818       lt_prog_compiler_pic='-pic'
7819       lt_prog_compiler_static='-Bstatic'
7820       ;;
7821
7822     *)
7823       lt_prog_compiler_can_build_shared=no
7824       ;;
7825     esac
7826   fi
7827
7828 case $host_os in
7829   # For platforms which do not support PIC, -DPIC is meaningless:
7830   *djgpp*)
7831     lt_prog_compiler_pic=
7832     ;;
7833   *)
7834     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7835     ;;
7836 esac
7837 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7838 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7839
7840
7841
7842
7843
7844
7845 #
7846 # Check to make sure the PIC flag actually works.
7847 #
7848 if test -n "$lt_prog_compiler_pic"; then
7849   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7850 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7851 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7852   echo $ECHO_N "(cached) $ECHO_C" >&6
7853 else
7854   lt_cv_prog_compiler_pic_works=no
7855    ac_outfile=conftest.$ac_objext
7856    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7857    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7858    # Insert the option either (1) after the last *FLAGS variable, or
7859    # (2) before a word containing "conftest.", or (3) at the end.
7860    # Note that $ac_compile itself does not contain backslashes and begins
7861    # with a dollar sign (not a hyphen), so the echo should work correctly.
7862    # The option is referenced via a variable to avoid confusing sed.
7863    lt_compile=`echo "$ac_compile" | $SED \
7864    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7865    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7866    -e 's:$: $lt_compiler_flag:'`
7867    (eval echo "\"\$as_me:7867: $lt_compile\"" >&5)
7868    (eval "$lt_compile" 2>conftest.err)
7869    ac_status=$?
7870    cat conftest.err >&5
7871    echo "$as_me:7871: \$? = $ac_status" >&5
7872    if (exit $ac_status) && test -s "$ac_outfile"; then
7873      # The compiler can only warn and ignore the option if not recognized
7874      # So say no if there are warnings other than the usual output.
7875      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7876      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7877      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7878        lt_cv_prog_compiler_pic_works=yes
7879      fi
7880    fi
7881    $RM conftest*
7882
7883 fi
7884 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7885 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7886
7887 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7888     case $lt_prog_compiler_pic in
7889      "" | " "*) ;;
7890      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7891      esac
7892 else
7893     lt_prog_compiler_pic=
7894      lt_prog_compiler_can_build_shared=no
7895 fi
7896
7897 fi
7898
7899
7900
7901
7902
7903
7904 #
7905 # Check to make sure the static flag actually works.
7906 #
7907 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7908 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7909 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7910 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7911   echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913   lt_cv_prog_compiler_static_works=no
7914    save_LDFLAGS="$LDFLAGS"
7915    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7916    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7917    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7918      # The linker can only warn and ignore the option if not recognized
7919      # So say no if there are warnings
7920      if test -s conftest.err; then
7921        # Append any errors to the config.log.
7922        cat conftest.err 1>&5
7923        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7924        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7925        if diff conftest.exp conftest.er2 >/dev/null; then
7926          lt_cv_prog_compiler_static_works=yes
7927        fi
7928      else
7929        lt_cv_prog_compiler_static_works=yes
7930      fi
7931    fi
7932    $RM -r conftest*
7933    LDFLAGS="$save_LDFLAGS"
7934
7935 fi
7936 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7937 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7938
7939 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7940     :
7941 else
7942     lt_prog_compiler_static=
7943 fi
7944
7945
7946
7947
7948
7949
7950
7951   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7952 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7953 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7954   echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956   lt_cv_prog_compiler_c_o=no
7957    $RM -r conftest 2>/dev/null
7958    mkdir conftest
7959    cd conftest
7960    mkdir out
7961    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7962
7963    lt_compiler_flag="-o out/conftest2.$ac_objext"
7964    # Insert the option either (1) after the last *FLAGS variable, or
7965    # (2) before a word containing "conftest.", or (3) at the end.
7966    # Note that $ac_compile itself does not contain backslashes and begins
7967    # with a dollar sign (not a hyphen), so the echo should work correctly.
7968    lt_compile=`echo "$ac_compile" | $SED \
7969    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7970    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7971    -e 's:$: $lt_compiler_flag:'`
7972    (eval echo "\"\$as_me:7972: $lt_compile\"" >&5)
7973    (eval "$lt_compile" 2>out/conftest.err)
7974    ac_status=$?
7975    cat out/conftest.err >&5
7976    echo "$as_me:7976: \$? = $ac_status" >&5
7977    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7978    then
7979      # The compiler can only warn and ignore the option if not recognized
7980      # So say no if there are warnings
7981      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7982      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7983      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7984        lt_cv_prog_compiler_c_o=yes
7985      fi
7986    fi
7987    chmod u+w . 2>&5
7988    $RM conftest*
7989    # SGI C++ compiler will create directory out/ii_files/ for
7990    # template instantiation
7991    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7992    $RM out/* && rmdir out
7993    cd ..
7994    $RM -r conftest
7995    $RM conftest*
7996
7997 fi
7998 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7999 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8000
8001
8002
8003
8004
8005
8006   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8007 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8008 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8009   echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011   lt_cv_prog_compiler_c_o=no
8012    $RM -r conftest 2>/dev/null
8013    mkdir conftest
8014    cd conftest
8015    mkdir out
8016    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8017
8018    lt_compiler_flag="-o out/conftest2.$ac_objext"
8019    # Insert the option either (1) after the last *FLAGS variable, or
8020    # (2) before a word containing "conftest.", or (3) at the end.
8021    # Note that $ac_compile itself does not contain backslashes and begins
8022    # with a dollar sign (not a hyphen), so the echo should work correctly.
8023    lt_compile=`echo "$ac_compile" | $SED \
8024    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8025    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8026    -e 's:$: $lt_compiler_flag:'`
8027    (eval echo "\"\$as_me:8027: $lt_compile\"" >&5)
8028    (eval "$lt_compile" 2>out/conftest.err)
8029    ac_status=$?
8030    cat out/conftest.err >&5
8031    echo "$as_me:8031: \$? = $ac_status" >&5
8032    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8033    then
8034      # The compiler can only warn and ignore the option if not recognized
8035      # So say no if there are warnings
8036      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8037      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8038      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8039        lt_cv_prog_compiler_c_o=yes
8040      fi
8041    fi
8042    chmod u+w . 2>&5
8043    $RM conftest*
8044    # SGI C++ compiler will create directory out/ii_files/ for
8045    # template instantiation
8046    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8047    $RM out/* && rmdir out
8048    cd ..
8049    $RM -r conftest
8050    $RM conftest*
8051
8052 fi
8053 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8054 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8055
8056
8057
8058
8059 hard_links="nottested"
8060 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8061   # do not overwrite the value of need_locks provided by the user
8062   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8063 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8064   hard_links=yes
8065   $RM conftest*
8066   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8067   touch conftest.a
8068   ln conftest.a conftest.b 2>&5 || hard_links=no
8069   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8070   { echo "$as_me:$LINENO: result: $hard_links" >&5
8071 echo "${ECHO_T}$hard_links" >&6; }
8072   if test "$hard_links" = no; then
8073     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8074 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8075     need_locks=warn
8076   fi
8077 else
8078   need_locks=no
8079 fi
8080
8081
8082
8083
8084
8085
8086   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8087 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8088
8089   runpath_var=
8090   allow_undefined_flag=
8091   always_export_symbols=no
8092   archive_cmds=
8093   archive_expsym_cmds=
8094   compiler_needs_object=no
8095   enable_shared_with_static_runtimes=no
8096   export_dynamic_flag_spec=
8097   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8098   hardcode_automatic=no
8099   hardcode_direct=no
8100   hardcode_direct_absolute=no
8101   hardcode_libdir_flag_spec=
8102   hardcode_libdir_flag_spec_ld=
8103   hardcode_libdir_separator=
8104   hardcode_minus_L=no
8105   hardcode_shlibpath_var=unsupported
8106   inherit_rpath=no
8107   link_all_deplibs=unknown
8108   module_cmds=
8109   module_expsym_cmds=
8110   old_archive_from_new_cmds=
8111   old_archive_from_expsyms_cmds=
8112   thread_safe_flag_spec=
8113   whole_archive_flag_spec=
8114   # include_expsyms should be a list of space-separated symbols to be *always*
8115   # included in the symbol list
8116   include_expsyms=
8117   # exclude_expsyms can be an extended regexp of symbols to exclude
8118   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8119   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8120   # as well as any symbol that contains `d'.
8121   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8122   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8123   # platforms (ab)use it in PIC code, but their linkers get confused if
8124   # the symbol is explicitly referenced.  Since portable code cannot
8125   # rely on this symbol name, it's probably fine to never include it in
8126   # preloaded symbol tables.
8127   # Exclude shared library initialization/finalization symbols.
8128   extract_expsyms_cmds=
8129
8130   case $host_os in
8131   cygwin* | mingw* | pw32* | cegcc*)
8132     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8133     # When not using gcc, we currently assume that we are using
8134     # Microsoft Visual C++.
8135     if test "$GCC" != yes; then
8136       with_gnu_ld=no
8137     fi
8138     ;;
8139   interix*)
8140     # we just hope/assume this is gcc and not c89 (= MSVC++)
8141     with_gnu_ld=yes
8142     ;;
8143   openbsd*)
8144     with_gnu_ld=no
8145     ;;
8146   esac
8147
8148   ld_shlibs=yes
8149   if test "$with_gnu_ld" = yes; then
8150     # If archive_cmds runs LD, not CC, wlarc should be empty
8151     wlarc='${wl}'
8152
8153     # Set some defaults for GNU ld with shared library support. These
8154     # are reset later if shared libraries are not supported. Putting them
8155     # here allows them to be overridden if necessary.
8156     runpath_var=LD_RUN_PATH
8157     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8158     export_dynamic_flag_spec='${wl}--export-dynamic'
8159     # ancient GNU ld didn't support --whole-archive et. al.
8160     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8161       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8162     else
8163       whole_archive_flag_spec=
8164     fi
8165     supports_anon_versioning=no
8166     case `$LD -v 2>&1` in
8167       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8168       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8169       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8170       *\ 2.11.*) ;; # other 2.11 versions
8171       *) supports_anon_versioning=yes ;;
8172     esac
8173
8174     # See if GNU ld supports shared libraries.
8175     case $host_os in
8176     aix[3-9]*)
8177       # On AIX/PPC, the GNU linker is very broken
8178       if test "$host_cpu" != ia64; then
8179         ld_shlibs=no
8180         cat <<_LT_EOF 1>&2
8181
8182 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8183 *** to be unable to reliably create shared libraries on AIX.
8184 *** Therefore, libtool is disabling shared libraries support.  If you
8185 *** really care for shared libraries, you may want to modify your PATH
8186 *** so that a non-GNU linker is found, and then restart.
8187
8188 _LT_EOF
8189       fi
8190       ;;
8191
8192     amigaos*)
8193       case $host_cpu in
8194       powerpc)
8195             # see comment about AmigaOS4 .so support
8196             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8197             archive_expsym_cmds=''
8198         ;;
8199       m68k)
8200             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)'
8201             hardcode_libdir_flag_spec='-L$libdir'
8202             hardcode_minus_L=yes
8203         ;;
8204       esac
8205       ;;
8206
8207     beos*)
8208       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8209         allow_undefined_flag=unsupported
8210         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8211         # support --undefined.  This deserves some investigation.  FIXME
8212         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8213       else
8214         ld_shlibs=no
8215       fi
8216       ;;
8217
8218     cygwin* | mingw* | pw32* | cegcc*)
8219       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8220       # as there is no search path for DLLs.
8221       hardcode_libdir_flag_spec='-L$libdir'
8222       allow_undefined_flag=unsupported
8223       always_export_symbols=no
8224       enable_shared_with_static_runtimes=yes
8225       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8226
8227       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8228         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8229         # If the export-symbols file already is a .def file (1st line
8230         # is EXPORTS), use it as is; otherwise, prepend...
8231         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8232           cp $export_symbols $output_objdir/$soname.def;
8233         else
8234           echo EXPORTS > $output_objdir/$soname.def;
8235           cat $export_symbols >> $output_objdir/$soname.def;
8236         fi~
8237         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8238       else
8239         ld_shlibs=no
8240       fi
8241       ;;
8242
8243     interix[3-9]*)
8244       hardcode_direct=no
8245       hardcode_shlibpath_var=no
8246       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8247       export_dynamic_flag_spec='${wl}-E'
8248       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8249       # Instead, shared libraries are loaded at an image base (0x10000000 by
8250       # default) and relocated if they conflict, which is a slow very memory
8251       # consuming and fragmenting process.  To avoid this, we pick a random,
8252       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8253       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8254       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8255       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'
8256       ;;
8257
8258     gnu* | linux* | tpf* | k*bsd*-gnu)
8259       tmp_diet=no
8260       if test "$host_os" = linux-dietlibc; then
8261         case $cc_basename in
8262           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8263         esac
8264       fi
8265       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8266          && test "$tmp_diet" = no
8267       then
8268         tmp_addflag=
8269         tmp_sharedflag='-shared'
8270         case $cc_basename,$host_cpu in
8271         pgcc*)                          # Portland Group C compiler
8272           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'
8273           tmp_addflag=' $pic_flag'
8274           ;;
8275         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8276           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'
8277           tmp_addflag=' $pic_flag -Mnomain' ;;
8278         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8279           tmp_addflag=' -i_dynamic' ;;
8280         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8281           tmp_addflag=' -i_dynamic -nofor_main' ;;
8282         ifc* | ifort*)                  # Intel Fortran compiler
8283           tmp_addflag=' -nofor_main' ;;
8284         lf95*)                          # Lahey Fortran 8.1
8285           whole_archive_flag_spec=
8286           tmp_sharedflag='--shared' ;;
8287         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8288           tmp_sharedflag='-qmkshrobj'
8289           tmp_addflag= ;;
8290         esac
8291         case `$CC -V 2>&1 | sed 5q` in
8292         *Sun\ C*)                       # Sun C 5.9
8293           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'
8294           compiler_needs_object=yes
8295           tmp_sharedflag='-G' ;;
8296         *Sun\ F*)                       # Sun Fortran 8.3
8297           tmp_sharedflag='-G' ;;
8298         esac
8299         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8300
8301         if test "x$supports_anon_versioning" = xyes; then
8302           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8303             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8304             echo "local: *; };" >> $output_objdir/$libname.ver~
8305             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8306         fi
8307
8308         case $cc_basename in
8309         xlf*)
8310           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8311           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8312           hardcode_libdir_flag_spec=
8313           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8314           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8315           if test "x$supports_anon_versioning" = xyes; then
8316             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8317               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8318               echo "local: *; };" >> $output_objdir/$libname.ver~
8319               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8320           fi
8321           ;;
8322         esac
8323       else
8324         ld_shlibs=no
8325       fi
8326       ;;
8327
8328     netbsd* | netbsdelf*-gnu)
8329       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8330         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8331         wlarc=
8332       else
8333         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8334         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8335       fi
8336       ;;
8337
8338     solaris*)
8339       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8340         ld_shlibs=no
8341         cat <<_LT_EOF 1>&2
8342
8343 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8344 *** create shared libraries on Solaris systems.  Therefore, libtool
8345 *** is disabling shared libraries support.  We urge you to upgrade GNU
8346 *** binutils to release 2.9.1 or newer.  Another option is to modify
8347 *** your PATH or compiler configuration so that the native linker is
8348 *** used, and then restart.
8349
8350 _LT_EOF
8351       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8352         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8353         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8354       else
8355         ld_shlibs=no
8356       fi
8357       ;;
8358
8359     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8360       case `$LD -v 2>&1` in
8361         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8362         ld_shlibs=no
8363         cat <<_LT_EOF 1>&2
8364
8365 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8366 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8367 *** is disabling shared libraries support.  We urge you to upgrade GNU
8368 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8369 *** your PATH or compiler configuration so that the native linker is
8370 *** used, and then restart.
8371
8372 _LT_EOF
8373         ;;
8374         *)
8375           # For security reasons, it is highly recommended that you always
8376           # use absolute paths for naming shared libraries, and exclude the
8377           # DT_RUNPATH tag from executables and libraries.  But doing so
8378           # requires that you compile everything twice, which is a pain.
8379           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8380             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8381             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8382             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8383           else
8384             ld_shlibs=no
8385           fi
8386         ;;
8387       esac
8388       ;;
8389
8390     sunos4*)
8391       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8392       wlarc=
8393       hardcode_direct=yes
8394       hardcode_shlibpath_var=no
8395       ;;
8396
8397     *)
8398       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8399         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8400         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8401       else
8402         ld_shlibs=no
8403       fi
8404       ;;
8405     esac
8406
8407     if test "$ld_shlibs" = no; then
8408       runpath_var=
8409       hardcode_libdir_flag_spec=
8410       export_dynamic_flag_spec=
8411       whole_archive_flag_spec=
8412     fi
8413   else
8414     # PORTME fill in a description of your system's linker (not GNU ld)
8415     case $host_os in
8416     aix3*)
8417       allow_undefined_flag=unsupported
8418       always_export_symbols=yes
8419       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'
8420       # Note: this linker hardcodes the directories in LIBPATH if there
8421       # are no directories specified by -L.
8422       hardcode_minus_L=yes
8423       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8424         # Neither direct hardcoding nor static linking is supported with a
8425         # broken collect2.
8426         hardcode_direct=unsupported
8427       fi
8428       ;;
8429
8430     aix[4-9]*)
8431       if test "$host_cpu" = ia64; then
8432         # On IA64, the linker does run time linking by default, so we don't
8433         # have to do anything special.
8434         aix_use_runtimelinking=no
8435         exp_sym_flag='-Bexport'
8436         no_entry_flag=""
8437       else
8438         # If we're using GNU nm, then we don't want the "-C" option.
8439         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8440         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8441           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'
8442         else
8443           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'
8444         fi
8445         aix_use_runtimelinking=no
8446
8447         # Test if we are trying to use run time linking or normal
8448         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8449         # need to do runtime linking.
8450         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8451           for ld_flag in $LDFLAGS; do
8452           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8453             aix_use_runtimelinking=yes
8454             break
8455           fi
8456           done
8457           ;;
8458         esac
8459
8460         exp_sym_flag='-bexport'
8461         no_entry_flag='-bnoentry'
8462       fi
8463
8464       # When large executables or shared objects are built, AIX ld can
8465       # have problems creating the table of contents.  If linking a library
8466       # or program results in "error TOC overflow" add -mminimal-toc to
8467       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8468       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8469
8470       archive_cmds=''
8471       hardcode_direct=yes
8472       hardcode_direct_absolute=yes
8473       hardcode_libdir_separator=':'
8474       link_all_deplibs=yes
8475       file_list_spec='${wl}-f,'
8476
8477       if test "$GCC" = yes; then
8478         case $host_os in aix4.[012]|aix4.[012].*)
8479         # We only want to do this on AIX 4.2 and lower, the check
8480         # below for broken collect2 doesn't work under 4.3+
8481           collect2name=`${CC} -print-prog-name=collect2`
8482           if test -f "$collect2name" &&
8483            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8484           then
8485           # We have reworked collect2
8486           :
8487           else
8488           # We have old collect2
8489           hardcode_direct=unsupported
8490           # It fails to find uninstalled libraries when the uninstalled
8491           # path is not listed in the libpath.  Setting hardcode_minus_L
8492           # to unsupported forces relinking
8493           hardcode_minus_L=yes
8494           hardcode_libdir_flag_spec='-L$libdir'
8495           hardcode_libdir_separator=
8496           fi
8497           ;;
8498         esac
8499         shared_flag='-shared'
8500         if test "$aix_use_runtimelinking" = yes; then
8501           shared_flag="$shared_flag "'${wl}-G'
8502         fi
8503         link_all_deplibs=no
8504       else
8505         # not using gcc
8506         if test "$host_cpu" = ia64; then
8507         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8508         # chokes on -Wl,-G. The following line is correct:
8509           shared_flag='-G'
8510         else
8511           if test "$aix_use_runtimelinking" = yes; then
8512             shared_flag='${wl}-G'
8513           else
8514             shared_flag='${wl}-bM:SRE'
8515           fi
8516         fi
8517       fi
8518
8519       export_dynamic_flag_spec='${wl}-bexpall'
8520       # It seems that -bexpall does not export symbols beginning with
8521       # underscore (_), so it is better to generate a list of symbols to export.
8522       always_export_symbols=yes
8523       if test "$aix_use_runtimelinking" = yes; then
8524         # Warning - without using the other runtime loading flags (-brtl),
8525         # -berok will link without error, but may produce a broken library.
8526         allow_undefined_flag='-berok'
8527         # Determine the default libpath from the value encoded in an
8528         # empty executable.
8529         cat >conftest.$ac_ext <<_ACEOF
8530 /* confdefs.h.  */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h.  */
8535
8536 int
8537 main ()
8538 {
8539
8540   ;
8541   return 0;
8542 }
8543 _ACEOF
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (ac_try="$ac_link"
8546 case "(($ac_try" in
8547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548   *) ac_try_echo=$ac_try;;
8549 esac
8550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8551   (eval "$ac_link") 2>conftest.er1
8552   ac_status=$?
8553   grep -v '^ *+' conftest.er1 >conftest.err
8554   rm -f conftest.er1
8555   cat conftest.err >&5
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); } && {
8558          test -z "$ac_c_werror_flag" ||
8559          test ! -s conftest.err
8560        } && test -s conftest$ac_exeext &&
8561        $as_test_x conftest$ac_exeext; then
8562
8563 lt_aix_libpath_sed='
8564     /Import File Strings/,/^$/ {
8565         /^0/ {
8566             s/^0  *\(.*\)$/\1/
8567             p
8568         }
8569     }'
8570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8571 # Check for a 64-bit object if we didn't find anything.
8572 if test -z "$aix_libpath"; then
8573   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8574 fi
8575 else
8576   echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.$ac_ext >&5
8578
8579
8580 fi
8581
8582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8583       conftest$ac_exeext conftest.$ac_ext
8584 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8585
8586         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8587         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"
8588       else
8589         if test "$host_cpu" = ia64; then
8590           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8591           allow_undefined_flag="-z nodefs"
8592           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"
8593         else
8594          # Determine the default libpath from the value encoded in an
8595          # empty executable.
8596          cat >conftest.$ac_ext <<_ACEOF
8597 /* confdefs.h.  */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h.  */
8602
8603 int
8604 main ()
8605 {
8606
8607   ;
8608   return 0;
8609 }
8610 _ACEOF
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (ac_try="$ac_link"
8613 case "(($ac_try" in
8614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615   *) ac_try_echo=$ac_try;;
8616 esac
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618   (eval "$ac_link") 2>conftest.er1
8619   ac_status=$?
8620   grep -v '^ *+' conftest.er1 >conftest.err
8621   rm -f conftest.er1
8622   cat conftest.err >&5
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); } && {
8625          test -z "$ac_c_werror_flag" ||
8626          test ! -s conftest.err
8627        } && test -s conftest$ac_exeext &&
8628        $as_test_x conftest$ac_exeext; then
8629
8630 lt_aix_libpath_sed='
8631     /Import File Strings/,/^$/ {
8632         /^0/ {
8633             s/^0  *\(.*\)$/\1/
8634             p
8635         }
8636     }'
8637 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8638 # Check for a 64-bit object if we didn't find anything.
8639 if test -z "$aix_libpath"; then
8640   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8641 fi
8642 else
8643   echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8645
8646
8647 fi
8648
8649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8650       conftest$ac_exeext conftest.$ac_ext
8651 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8652
8653          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8654           # Warning - without using the other run time loading flags,
8655           # -berok will link without error, but may produce a broken library.
8656           no_undefined_flag=' ${wl}-bernotok'
8657           allow_undefined_flag=' ${wl}-berok'
8658           # Exported symbols can be pulled into shared objects from archives
8659           whole_archive_flag_spec='$convenience'
8660           archive_cmds_need_lc=yes
8661           # This is similar to how AIX traditionally builds its shared libraries.
8662           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'
8663         fi
8664       fi
8665       ;;
8666
8667     amigaos*)
8668       case $host_cpu in
8669       powerpc)
8670             # see comment about AmigaOS4 .so support
8671             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8672             archive_expsym_cmds=''
8673         ;;
8674       m68k)
8675             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)'
8676             hardcode_libdir_flag_spec='-L$libdir'
8677             hardcode_minus_L=yes
8678         ;;
8679       esac
8680       ;;
8681
8682     bsdi[45]*)
8683       export_dynamic_flag_spec=-rdynamic
8684       ;;
8685
8686     cygwin* | mingw* | pw32* | cegcc*)
8687       # When not using gcc, we currently assume that we are using
8688       # Microsoft Visual C++.
8689       # hardcode_libdir_flag_spec is actually meaningless, as there is
8690       # no search path for DLLs.
8691       hardcode_libdir_flag_spec=' '
8692       allow_undefined_flag=unsupported
8693       # Tell ltmain to make .lib files, not .a files.
8694       libext=lib
8695       # Tell ltmain to make .dll files, not .so files.
8696       shrext_cmds=".dll"
8697       # FIXME: Setting linknames here is a bad hack.
8698       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8699       # The linker will automatically build a .lib file if we build a DLL.
8700       old_archive_from_new_cmds='true'
8701       # FIXME: Should let the user specify the lib program.
8702       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8703       fix_srcfile_path='`cygpath -w "$srcfile"`'
8704       enable_shared_with_static_runtimes=yes
8705       ;;
8706
8707     darwin* | rhapsody*)
8708
8709
8710   archive_cmds_need_lc=no
8711   hardcode_direct=no
8712   hardcode_automatic=yes
8713   hardcode_shlibpath_var=unsupported
8714   whole_archive_flag_spec=''
8715   link_all_deplibs=yes
8716   allow_undefined_flag="$_lt_dar_allow_undefined"
8717   case $cc_basename in
8718      ifort*) _lt_dar_can_shared=yes ;;
8719      *) _lt_dar_can_shared=$GCC ;;
8720   esac
8721   if test "$_lt_dar_can_shared" = "yes"; then
8722     output_verbose_link_cmd=echo
8723     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8724     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8725     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}"
8726     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}"
8727
8728   else
8729   ld_shlibs=no
8730   fi
8731
8732       ;;
8733
8734     dgux*)
8735       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8736       hardcode_libdir_flag_spec='-L$libdir'
8737       hardcode_shlibpath_var=no
8738       ;;
8739
8740     freebsd1*)
8741       ld_shlibs=no
8742       ;;
8743
8744     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8745     # support.  Future versions do this automatically, but an explicit c++rt0.o
8746     # does not break anything, and helps significantly (at the cost of a little
8747     # extra space).
8748     freebsd2.2*)
8749       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8750       hardcode_libdir_flag_spec='-R$libdir'
8751       hardcode_direct=yes
8752       hardcode_shlibpath_var=no
8753       ;;
8754
8755     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8756     freebsd2*)
8757       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8758       hardcode_direct=yes
8759       hardcode_minus_L=yes
8760       hardcode_shlibpath_var=no
8761       ;;
8762
8763     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8764     freebsd* | dragonfly*)
8765       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8766       hardcode_libdir_flag_spec='-R$libdir'
8767       hardcode_direct=yes
8768       hardcode_shlibpath_var=no
8769       ;;
8770
8771     hpux9*)
8772       if test "$GCC" = yes; then
8773         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'
8774       else
8775         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'
8776       fi
8777       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8778       hardcode_libdir_separator=:
8779       hardcode_direct=yes
8780
8781       # hardcode_minus_L: Not really in the search PATH,
8782       # but as the default location of the library.
8783       hardcode_minus_L=yes
8784       export_dynamic_flag_spec='${wl}-E'
8785       ;;
8786
8787     hpux10*)
8788       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8789         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8790       else
8791         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8792       fi
8793       if test "$with_gnu_ld" = no; then
8794         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8795         hardcode_libdir_flag_spec_ld='+b $libdir'
8796         hardcode_libdir_separator=:
8797         hardcode_direct=yes
8798         hardcode_direct_absolute=yes
8799         export_dynamic_flag_spec='${wl}-E'
8800         # hardcode_minus_L: Not really in the search PATH,
8801         # but as the default location of the library.
8802         hardcode_minus_L=yes
8803       fi
8804       ;;
8805
8806     hpux11*)
8807       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8808         case $host_cpu in
8809         hppa*64*)
8810           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8811           ;;
8812         ia64*)
8813           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8814           ;;
8815         *)
8816           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8817           ;;
8818         esac
8819       else
8820         case $host_cpu in
8821         hppa*64*)
8822           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8823           ;;
8824         ia64*)
8825           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8826           ;;
8827         *)
8828           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8829           ;;
8830         esac
8831       fi
8832       if test "$with_gnu_ld" = no; then
8833         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8834         hardcode_libdir_separator=:
8835
8836         case $host_cpu in
8837         hppa*64*|ia64*)
8838           hardcode_direct=no
8839           hardcode_shlibpath_var=no
8840           ;;
8841         *)
8842           hardcode_direct=yes
8843           hardcode_direct_absolute=yes
8844           export_dynamic_flag_spec='${wl}-E'
8845
8846           # hardcode_minus_L: Not really in the search PATH,
8847           # but as the default location of the library.
8848           hardcode_minus_L=yes
8849           ;;
8850         esac
8851       fi
8852       ;;
8853
8854     irix5* | irix6* | nonstopux*)
8855       if test "$GCC" = yes; then
8856         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'
8857         # Try to use the -exported_symbol ld option, if it does not
8858         # work, assume that -exports_file does not work either and
8859         # implicitly export all symbols.
8860         save_LDFLAGS="$LDFLAGS"
8861         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8862         cat >conftest.$ac_ext <<_ACEOF
8863 int foo(void) {}
8864 _ACEOF
8865 rm -f conftest.$ac_objext conftest$ac_exeext
8866 if { (ac_try="$ac_link"
8867 case "(($ac_try" in
8868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869   *) ac_try_echo=$ac_try;;
8870 esac
8871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872   (eval "$ac_link") 2>conftest.er1
8873   ac_status=$?
8874   grep -v '^ *+' conftest.er1 >conftest.err
8875   rm -f conftest.er1
8876   cat conftest.err >&5
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); } && {
8879          test -z "$ac_c_werror_flag" ||
8880          test ! -s conftest.err
8881        } && test -s conftest$ac_exeext &&
8882        $as_test_x conftest$ac_exeext; then
8883   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'
8884
8885 else
8886   echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8888
8889
8890 fi
8891
8892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8893       conftest$ac_exeext conftest.$ac_ext
8894         LDFLAGS="$save_LDFLAGS"
8895       else
8896         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'
8897         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'
8898       fi
8899       archive_cmds_need_lc='no'
8900       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8901       hardcode_libdir_separator=:
8902       inherit_rpath=yes
8903       link_all_deplibs=yes
8904       ;;
8905
8906     netbsd* | netbsdelf*-gnu)
8907       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8908         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8909       else
8910         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8911       fi
8912       hardcode_libdir_flag_spec='-R$libdir'
8913       hardcode_direct=yes
8914       hardcode_shlibpath_var=no
8915       ;;
8916
8917     newsos6)
8918       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8919       hardcode_direct=yes
8920       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8921       hardcode_libdir_separator=:
8922       hardcode_shlibpath_var=no
8923       ;;
8924
8925     *nto* | *qnx*)
8926       ;;
8927
8928     openbsd*)
8929       if test -f /usr/libexec/ld.so; then
8930         hardcode_direct=yes
8931         hardcode_shlibpath_var=no
8932         hardcode_direct_absolute=yes
8933         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8934           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8935           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8936           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8937           export_dynamic_flag_spec='${wl}-E'
8938         else
8939           case $host_os in
8940            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8941              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8942              hardcode_libdir_flag_spec='-R$libdir'
8943              ;;
8944            *)
8945              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8946              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8947              ;;
8948           esac
8949         fi
8950       else
8951         ld_shlibs=no
8952       fi
8953       ;;
8954
8955     os2*)
8956       hardcode_libdir_flag_spec='-L$libdir'
8957       hardcode_minus_L=yes
8958       allow_undefined_flag=unsupported
8959       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'
8960       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8961       ;;
8962
8963     osf3*)
8964       if test "$GCC" = yes; then
8965         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8966         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'
8967       else
8968         allow_undefined_flag=' -expect_unresolved \*'
8969         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'
8970       fi
8971       archive_cmds_need_lc='no'
8972       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8973       hardcode_libdir_separator=:
8974       ;;
8975
8976     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8977       if test "$GCC" = yes; then
8978         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8979         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'
8980         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8981       else
8982         allow_undefined_flag=' -expect_unresolved \*'
8983         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'
8984         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~
8985         $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'
8986
8987         # Both c and cxx compiler support -rpath directly
8988         hardcode_libdir_flag_spec='-rpath $libdir'
8989       fi
8990       archive_cmds_need_lc='no'
8991       hardcode_libdir_separator=:
8992       ;;
8993
8994     solaris*)
8995       no_undefined_flag=' -z defs'
8996       if test "$GCC" = yes; then
8997         wlarc='${wl}'
8998         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8999         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9000           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9001       else
9002         case `$CC -V 2>&1` in
9003         *"Compilers 5.0"*)
9004           wlarc=''
9005           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9006           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9007           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9008           ;;
9009         *)
9010           wlarc='${wl}'
9011           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9012           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9013           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9014           ;;
9015         esac
9016       fi
9017       hardcode_libdir_flag_spec='-R$libdir'
9018       hardcode_shlibpath_var=no
9019       case $host_os in
9020       solaris2.[0-5] | solaris2.[0-5].*) ;;
9021       *)
9022         # The compiler driver will combine and reorder linker options,
9023         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9024         # but is careful enough not to reorder.
9025         # Supported since Solaris 2.6 (maybe 2.5.1?)
9026         if test "$GCC" = yes; then
9027           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9028         else
9029           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9030         fi
9031         ;;
9032       esac
9033       link_all_deplibs=yes
9034       ;;
9035
9036     sunos4*)
9037       if test "x$host_vendor" = xsequent; then
9038         # Use $CC to link under sequent, because it throws in some extra .o
9039         # files that make .init and .fini sections work.
9040         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9041       else
9042         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9043       fi
9044       hardcode_libdir_flag_spec='-L$libdir'
9045       hardcode_direct=yes
9046       hardcode_minus_L=yes
9047       hardcode_shlibpath_var=no
9048       ;;
9049
9050     sysv4)
9051       case $host_vendor in
9052         sni)
9053           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9054           hardcode_direct=yes # is this really true???
9055         ;;
9056         siemens)
9057           ## LD is ld it makes a PLAMLIB
9058           ## CC just makes a GrossModule.
9059           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9060           reload_cmds='$CC -r -o $output$reload_objs'
9061           hardcode_direct=no
9062         ;;
9063         motorola)
9064           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9065           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9066         ;;
9067       esac
9068       runpath_var='LD_RUN_PATH'
9069       hardcode_shlibpath_var=no
9070       ;;
9071
9072     sysv4.3*)
9073       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9074       hardcode_shlibpath_var=no
9075       export_dynamic_flag_spec='-Bexport'
9076       ;;
9077
9078     sysv4*MP*)
9079       if test -d /usr/nec; then
9080         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9081         hardcode_shlibpath_var=no
9082         runpath_var=LD_RUN_PATH
9083         hardcode_runpath_var=yes
9084         ld_shlibs=yes
9085       fi
9086       ;;
9087
9088     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9089       no_undefined_flag='${wl}-z,text'
9090       archive_cmds_need_lc=no
9091       hardcode_shlibpath_var=no
9092       runpath_var='LD_RUN_PATH'
9093
9094       if test "$GCC" = yes; then
9095         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9096         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9097       else
9098         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9099         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9100       fi
9101       ;;
9102
9103     sysv5* | sco3.2v5* | sco5v6*)
9104       # Note: We can NOT use -z defs as we might desire, because we do not
9105       # link with -lc, and that would cause any symbols used from libc to
9106       # always be unresolved, which means just about no library would
9107       # ever link correctly.  If we're not using GNU ld we use -z text
9108       # though, which does catch some bad symbols but isn't as heavy-handed
9109       # as -z defs.
9110       no_undefined_flag='${wl}-z,text'
9111       allow_undefined_flag='${wl}-z,nodefs'
9112       archive_cmds_need_lc=no
9113       hardcode_shlibpath_var=no
9114       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9115       hardcode_libdir_separator=':'
9116       link_all_deplibs=yes
9117       export_dynamic_flag_spec='${wl}-Bexport'
9118       runpath_var='LD_RUN_PATH'
9119
9120       if test "$GCC" = yes; then
9121         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9122         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9123       else
9124         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9125         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9126       fi
9127       ;;
9128
9129     uts4*)
9130       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9131       hardcode_libdir_flag_spec='-L$libdir'
9132       hardcode_shlibpath_var=no
9133       ;;
9134
9135     *)
9136       ld_shlibs=no
9137       ;;
9138     esac
9139
9140     if test x$host_vendor = xsni; then
9141       case $host in
9142       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9143         export_dynamic_flag_spec='${wl}-Blargedynsym'
9144         ;;
9145       esac
9146     fi
9147   fi
9148
9149 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9150 echo "${ECHO_T}$ld_shlibs" >&6; }
9151 test "$ld_shlibs" = no && can_build_shared=no
9152
9153 with_gnu_ld=$with_gnu_ld
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169 #
9170 # Do we need to explicitly link libc?
9171 #
9172 case "x$archive_cmds_need_lc" in
9173 x|xyes)
9174   # Assume -lc should be added
9175   archive_cmds_need_lc=yes
9176
9177   if test "$enable_shared" = yes && test "$GCC" = yes; then
9178     case $archive_cmds in
9179     *'~'*)
9180       # FIXME: we may have to deal with multi-command sequences.
9181       ;;
9182     '$CC '*)
9183       # Test whether the compiler implicitly links with -lc since on some
9184       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9185       # to ld, don't add -lc before -lgcc.
9186       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9187 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9188       $RM conftest*
9189       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9190
9191       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9192   (eval $ac_compile) 2>&5
9193   ac_status=$?
9194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); } 2>conftest.err; then
9196         soname=conftest
9197         lib=conftest
9198         libobjs=conftest.$ac_objext
9199         deplibs=
9200         wl=$lt_prog_compiler_wl
9201         pic_flag=$lt_prog_compiler_pic
9202         compiler_flags=-v
9203         linker_flags=-v
9204         verstring=
9205         output_objdir=.
9206         libname=conftest
9207         lt_save_allow_undefined_flag=$allow_undefined_flag
9208         allow_undefined_flag=
9209         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9210   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9211   ac_status=$?
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); }
9214         then
9215           archive_cmds_need_lc=no
9216         else
9217           archive_cmds_need_lc=yes
9218         fi
9219         allow_undefined_flag=$lt_save_allow_undefined_flag
9220       else
9221         cat conftest.err 1>&5
9222       fi
9223       $RM conftest*
9224       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9225 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9226       ;;
9227     esac
9228   fi
9229   ;;
9230 esac
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
9388   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9389 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9390
9391 if test "$GCC" = yes; then
9392   case $host_os in
9393     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9394     *) lt_awk_arg="/^libraries:/" ;;
9395   esac
9396   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9397   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9398     # if the path contains ";" then we assume it to be the separator
9399     # otherwise default to the standard path separator (i.e. ":") - it is
9400     # assumed that no part of a normal pathname contains ";" but that should
9401     # okay in the real world where ";" in dirpaths is itself problematic.
9402     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9403   else
9404     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9405   fi
9406   # Ok, now we have the path, separated by spaces, we can step through it
9407   # and add multilib dir if necessary.
9408   lt_tmp_lt_search_path_spec=
9409   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9410   for lt_sys_path in $lt_search_path_spec; do
9411     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9412       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9413     else
9414       test -d "$lt_sys_path" && \
9415         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9416     fi
9417   done
9418   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9419 BEGIN {RS=" "; FS="/|\n";} {
9420   lt_foo="";
9421   lt_count=0;
9422   for (lt_i = NF; lt_i > 0; lt_i--) {
9423     if ($lt_i != "" && $lt_i != ".") {
9424       if ($lt_i == "..") {
9425         lt_count++;
9426       } else {
9427         if (lt_count == 0) {
9428           lt_foo="/" $lt_i lt_foo;
9429         } else {
9430           lt_count--;
9431         }
9432       }
9433     }
9434   }
9435   if (lt_foo != "") { lt_freq[lt_foo]++; }
9436   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9437 }'`
9438   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9439 else
9440   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9441 fi
9442 library_names_spec=
9443 libname_spec='lib$name'
9444 soname_spec=
9445 shrext_cmds=".so"
9446 postinstall_cmds=
9447 postuninstall_cmds=
9448 finish_cmds=
9449 finish_eval=
9450 shlibpath_var=
9451 shlibpath_overrides_runpath=unknown
9452 version_type=none
9453 dynamic_linker="$host_os ld.so"
9454 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9455 need_lib_prefix=unknown
9456 hardcode_into_libs=no
9457
9458 # when you set need_version to no, make sure it does not cause -set_version
9459 # flags to be left without arguments
9460 need_version=unknown
9461
9462 case $host_os in
9463 aix3*)
9464   version_type=linux
9465   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9466   shlibpath_var=LIBPATH
9467
9468   # AIX 3 has no versioning support, so we append a major version to the name.
9469   soname_spec='${libname}${release}${shared_ext}$major'
9470   ;;
9471
9472 aix[4-9]*)
9473   version_type=linux
9474   need_lib_prefix=no
9475   need_version=no
9476   hardcode_into_libs=yes
9477   if test "$host_cpu" = ia64; then
9478     # AIX 5 supports IA64
9479     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9480     shlibpath_var=LD_LIBRARY_PATH
9481   else
9482     # With GCC up to 2.95.x, collect2 would create an import file
9483     # for dependence libraries.  The import file would start with
9484     # the line `#! .'.  This would cause the generated library to
9485     # depend on `.', always an invalid library.  This was fixed in
9486     # development snapshots of GCC prior to 3.0.
9487     case $host_os in
9488       aix4 | aix4.[01] | aix4.[01].*)
9489       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9490            echo ' yes '
9491            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9492         :
9493       else
9494         can_build_shared=no
9495       fi
9496       ;;
9497     esac
9498     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9499     # soname into executable. Probably we can add versioning support to
9500     # collect2, so additional links can be useful in future.
9501     if test "$aix_use_runtimelinking" = yes; then
9502       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9503       # instead of lib<name>.a to let people know that these are not
9504       # typical AIX shared libraries.
9505       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9506     else
9507       # We preserve .a as extension for shared libraries through AIX4.2
9508       # and later when we are not doing run time linking.
9509       library_names_spec='${libname}${release}.a $libname.a'
9510       soname_spec='${libname}${release}${shared_ext}$major'
9511     fi
9512     shlibpath_var=LIBPATH
9513   fi
9514   ;;
9515
9516 amigaos*)
9517   case $host_cpu in
9518   powerpc)
9519     # Since July 2007 AmigaOS4 officially supports .so libraries.
9520     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9521     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9522     ;;
9523   m68k)
9524     library_names_spec='$libname.ixlibrary $libname.a'
9525     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9526     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'
9527     ;;
9528   esac
9529   ;;
9530
9531 beos*)
9532   library_names_spec='${libname}${shared_ext}'
9533   dynamic_linker="$host_os ld.so"
9534   shlibpath_var=LIBRARY_PATH
9535   ;;
9536
9537 bsdi[45]*)
9538   version_type=linux
9539   need_version=no
9540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541   soname_spec='${libname}${release}${shared_ext}$major'
9542   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9543   shlibpath_var=LD_LIBRARY_PATH
9544   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9545   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9546   # the default ld.so.conf also contains /usr/contrib/lib and
9547   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9548   # libtool to hard-code these into programs
9549   ;;
9550
9551 cygwin* | mingw* | pw32* | cegcc*)
9552   version_type=windows
9553   shrext_cmds=".dll"
9554   need_version=no
9555   need_lib_prefix=no
9556
9557   case $GCC,$host_os in
9558   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9559     library_names_spec='$libname.dll.a'
9560     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9561     postinstall_cmds='base_file=`basename \${file}`~
9562       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9563       dldir=$destdir/`dirname \$dlpath`~
9564       test -d \$dldir || mkdir -p \$dldir~
9565       $install_prog $dir/$dlname \$dldir/$dlname~
9566       chmod a+x \$dldir/$dlname~
9567       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9568         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9569       fi'
9570     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9571       dlpath=$dir/\$dldll~
9572        $RM \$dlpath'
9573     shlibpath_overrides_runpath=yes
9574
9575     case $host_os in
9576     cygwin*)
9577       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9578       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9579       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9580       ;;
9581     mingw* | cegcc*)
9582       # MinGW DLLs use traditional 'lib' prefix
9583       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9584       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9585       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9586         # It is most probably a Windows format PATH printed by
9587         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9588         # path with ; separators, and with drive letters. We can handle the
9589         # drive letters (cygwin fileutils understands them), so leave them,
9590         # especially as we might pass files found there to a mingw objdump,
9591         # which wouldn't understand a cygwinified path. Ahh.
9592         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9593       else
9594         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9595       fi
9596       ;;
9597     pw32*)
9598       # pw32 DLLs use 'pw' prefix rather than 'lib'
9599       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9600       ;;
9601     esac
9602     ;;
9603
9604   *)
9605     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9606     ;;
9607   esac
9608   dynamic_linker='Win32 ld.exe'
9609   # FIXME: first we should search . and the directory the executable is in
9610   shlibpath_var=PATH
9611   ;;
9612
9613 darwin* | rhapsody*)
9614   dynamic_linker="$host_os dyld"
9615   version_type=darwin
9616   need_lib_prefix=no
9617   need_version=no
9618   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9619   soname_spec='${libname}${release}${major}$shared_ext'
9620   shlibpath_overrides_runpath=yes
9621   shlibpath_var=DYLD_LIBRARY_PATH
9622   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9623
9624   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9625   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9626   ;;
9627
9628 dgux*)
9629   version_type=linux
9630   need_lib_prefix=no
9631   need_version=no
9632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9633   soname_spec='${libname}${release}${shared_ext}$major'
9634   shlibpath_var=LD_LIBRARY_PATH
9635   ;;
9636
9637 freebsd1*)
9638   dynamic_linker=no
9639   ;;
9640
9641 freebsd* | dragonfly*)
9642   # DragonFly does not have aout.  When/if they implement a new
9643   # versioning mechanism, adjust this.
9644   if test -x /usr/bin/objformat; then
9645     objformat=`/usr/bin/objformat`
9646   else
9647     case $host_os in
9648     freebsd[123]*) objformat=aout ;;
9649     *) objformat=elf ;;
9650     esac
9651   fi
9652   version_type=freebsd-$objformat
9653   case $version_type in
9654     freebsd-elf*)
9655       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9656       need_version=no
9657       need_lib_prefix=no
9658       ;;
9659     freebsd-*)
9660       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9661       need_version=yes
9662       ;;
9663   esac
9664   shlibpath_var=LD_LIBRARY_PATH
9665   case $host_os in
9666   freebsd2*)
9667     shlibpath_overrides_runpath=yes
9668     ;;
9669   freebsd3.[01]* | freebsdelf3.[01]*)
9670     shlibpath_overrides_runpath=yes
9671     hardcode_into_libs=yes
9672     ;;
9673   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9674   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9675     shlibpath_overrides_runpath=no
9676     hardcode_into_libs=yes
9677     ;;
9678   *) # from 4.6 on, and DragonFly
9679     shlibpath_overrides_runpath=yes
9680     hardcode_into_libs=yes
9681     ;;
9682   esac
9683   ;;
9684
9685 gnu*)
9686   version_type=linux
9687   need_lib_prefix=no
9688   need_version=no
9689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9690   soname_spec='${libname}${release}${shared_ext}$major'
9691   shlibpath_var=LD_LIBRARY_PATH
9692   hardcode_into_libs=yes
9693   ;;
9694
9695 hpux9* | hpux10* | hpux11*)
9696   # Give a soname corresponding to the major version so that dld.sl refuses to
9697   # link against other versions.
9698   version_type=sunos
9699   need_lib_prefix=no
9700   need_version=no
9701   case $host_cpu in
9702   ia64*)
9703     shrext_cmds='.so'
9704     hardcode_into_libs=yes
9705     dynamic_linker="$host_os dld.so"
9706     shlibpath_var=LD_LIBRARY_PATH
9707     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9708     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9709     soname_spec='${libname}${release}${shared_ext}$major'
9710     if test "X$HPUX_IA64_MODE" = X32; then
9711       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9712     else
9713       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9714     fi
9715     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9716     ;;
9717   hppa*64*)
9718     shrext_cmds='.sl'
9719     hardcode_into_libs=yes
9720     dynamic_linker="$host_os dld.sl"
9721     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9722     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9723     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724     soname_spec='${libname}${release}${shared_ext}$major'
9725     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9726     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9727     ;;
9728   *)
9729     shrext_cmds='.sl'
9730     dynamic_linker="$host_os dld.sl"
9731     shlibpath_var=SHLIB_PATH
9732     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9733     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9734     soname_spec='${libname}${release}${shared_ext}$major'
9735     ;;
9736   esac
9737   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9738   postinstall_cmds='chmod 555 $lib'
9739   ;;
9740
9741 interix[3-9]*)
9742   version_type=linux
9743   need_lib_prefix=no
9744   need_version=no
9745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9746   soname_spec='${libname}${release}${shared_ext}$major'
9747   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9748   shlibpath_var=LD_LIBRARY_PATH
9749   shlibpath_overrides_runpath=no
9750   hardcode_into_libs=yes
9751   ;;
9752
9753 irix5* | irix6* | nonstopux*)
9754   case $host_os in
9755     nonstopux*) version_type=nonstopux ;;
9756     *)
9757         if test "$lt_cv_prog_gnu_ld" = yes; then
9758                 version_type=linux
9759         else
9760                 version_type=irix
9761         fi ;;
9762   esac
9763   need_lib_prefix=no
9764   need_version=no
9765   soname_spec='${libname}${release}${shared_ext}$major'
9766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9767   case $host_os in
9768   irix5* | nonstopux*)
9769     libsuff= shlibsuff=
9770     ;;
9771   *)
9772     case $LD in # libtool.m4 will add one of these switches to LD
9773     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9774       libsuff= shlibsuff= libmagic=32-bit;;
9775     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9776       libsuff=32 shlibsuff=N32 libmagic=N32;;
9777     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9778       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9779     *) libsuff= shlibsuff= libmagic=never-match;;
9780     esac
9781     ;;
9782   esac
9783   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9784   shlibpath_overrides_runpath=no
9785   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9786   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9787   hardcode_into_libs=yes
9788   ;;
9789
9790 # No shared lib support for Linux oldld, aout, or coff.
9791 linux*oldld* | linux*aout* | linux*coff*)
9792   dynamic_linker=no
9793   ;;
9794
9795 # This must be Linux ELF.
9796 linux* | k*bsd*-gnu)
9797   version_type=linux
9798   need_lib_prefix=no
9799   need_version=no
9800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801   soname_spec='${libname}${release}${shared_ext}$major'
9802   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9803   shlibpath_var=LD_LIBRARY_PATH
9804   shlibpath_overrides_runpath=no
9805   # Some binutils ld are patched to set DT_RUNPATH
9806   save_LDFLAGS=$LDFLAGS
9807   save_libdir=$libdir
9808   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9809        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9810   cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h.  */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h.  */
9816
9817 int
9818 main ()
9819 {
9820
9821   ;
9822   return 0;
9823 }
9824 _ACEOF
9825 rm -f conftest.$ac_objext conftest$ac_exeext
9826 if { (ac_try="$ac_link"
9827 case "(($ac_try" in
9828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829   *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832   (eval "$ac_link") 2>conftest.er1
9833   ac_status=$?
9834   grep -v '^ *+' conftest.er1 >conftest.err
9835   rm -f conftest.er1
9836   cat conftest.err >&5
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); } && {
9839          test -z "$ac_c_werror_flag" ||
9840          test ! -s conftest.err
9841        } && test -s conftest$ac_exeext &&
9842        $as_test_x conftest$ac_exeext; then
9843   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9844   shlibpath_overrides_runpath=yes
9845 fi
9846
9847 else
9848   echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9850
9851
9852 fi
9853
9854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9855       conftest$ac_exeext conftest.$ac_ext
9856   LDFLAGS=$save_LDFLAGS
9857   libdir=$save_libdir
9858
9859   # This implies no fast_install, which is unacceptable.
9860   # Some rework will be needed to allow for fast_install
9861   # before this can be enabled.
9862   hardcode_into_libs=yes
9863
9864   # Append ld.so.conf contents to the search path
9865   if test -f /etc/ld.so.conf; then
9866     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' ' '`
9867     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9868   fi
9869
9870   # We used to test for /lib/ld.so.1 and disable shared libraries on
9871   # powerpc, because MkLinux only supported shared libraries with the
9872   # GNU dynamic linker.  Since this was broken with cross compilers,
9873   # most powerpc-linux boxes support dynamic linking these days and
9874   # people can always --disable-shared, the test was removed, and we
9875   # assume the GNU/Linux dynamic linker is in use.
9876   dynamic_linker='GNU/Linux ld.so'
9877   ;;
9878
9879 netbsdelf*-gnu)
9880   version_type=linux
9881   need_lib_prefix=no
9882   need_version=no
9883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9884   soname_spec='${libname}${release}${shared_ext}$major'
9885   shlibpath_var=LD_LIBRARY_PATH
9886   shlibpath_overrides_runpath=no
9887   hardcode_into_libs=yes
9888   dynamic_linker='NetBSD ld.elf_so'
9889   ;;
9890
9891 netbsd*)
9892   version_type=sunos
9893   need_lib_prefix=no
9894   need_version=no
9895   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9896     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9897     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9898     dynamic_linker='NetBSD (a.out) ld.so'
9899   else
9900     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9901     soname_spec='${libname}${release}${shared_ext}$major'
9902     dynamic_linker='NetBSD ld.elf_so'
9903   fi
9904   shlibpath_var=LD_LIBRARY_PATH
9905   shlibpath_overrides_runpath=yes
9906   hardcode_into_libs=yes
9907   ;;
9908
9909 newsos6)
9910   version_type=linux
9911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912   shlibpath_var=LD_LIBRARY_PATH
9913   shlibpath_overrides_runpath=yes
9914   ;;
9915
9916 *nto* | *qnx*)
9917   version_type=qnx
9918   need_lib_prefix=no
9919   need_version=no
9920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921   soname_spec='${libname}${release}${shared_ext}$major'
9922   shlibpath_var=LD_LIBRARY_PATH
9923   shlibpath_overrides_runpath=no
9924   hardcode_into_libs=yes
9925   dynamic_linker='ldqnx.so'
9926   ;;
9927
9928 openbsd*)
9929   version_type=sunos
9930   sys_lib_dlsearch_path_spec="/usr/lib"
9931   need_lib_prefix=no
9932   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9933   case $host_os in
9934     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9935     *)                          need_version=no  ;;
9936   esac
9937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9938   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9939   shlibpath_var=LD_LIBRARY_PATH
9940   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9941     case $host_os in
9942       openbsd2.[89] | openbsd2.[89].*)
9943         shlibpath_overrides_runpath=no
9944         ;;
9945       *)
9946         shlibpath_overrides_runpath=yes
9947         ;;
9948       esac
9949   else
9950     shlibpath_overrides_runpath=yes
9951   fi
9952   ;;
9953
9954 os2*)
9955   libname_spec='$name'
9956   shrext_cmds=".dll"
9957   need_lib_prefix=no
9958   library_names_spec='$libname${shared_ext} $libname.a'
9959   dynamic_linker='OS/2 ld.exe'
9960   shlibpath_var=LIBPATH
9961   ;;
9962
9963 osf3* | osf4* | osf5*)
9964   version_type=osf
9965   need_lib_prefix=no
9966   need_version=no
9967   soname_spec='${libname}${release}${shared_ext}$major'
9968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969   shlibpath_var=LD_LIBRARY_PATH
9970   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9971   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9972   ;;
9973
9974 rdos*)
9975   dynamic_linker=no
9976   ;;
9977
9978 solaris*)
9979   version_type=linux
9980   need_lib_prefix=no
9981   need_version=no
9982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983   soname_spec='${libname}${release}${shared_ext}$major'
9984   shlibpath_var=LD_LIBRARY_PATH
9985   shlibpath_overrides_runpath=yes
9986   hardcode_into_libs=yes
9987   # ldd complains unless libraries are executable
9988   postinstall_cmds='chmod +x $lib'
9989   ;;
9990
9991 sunos4*)
9992   version_type=sunos
9993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9994   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9995   shlibpath_var=LD_LIBRARY_PATH
9996   shlibpath_overrides_runpath=yes
9997   if test "$with_gnu_ld" = yes; then
9998     need_lib_prefix=no
9999   fi
10000   need_version=yes
10001   ;;
10002
10003 sysv4 | sysv4.3*)
10004   version_type=linux
10005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006   soname_spec='${libname}${release}${shared_ext}$major'
10007   shlibpath_var=LD_LIBRARY_PATH
10008   case $host_vendor in
10009     sni)
10010       shlibpath_overrides_runpath=no
10011       need_lib_prefix=no
10012       runpath_var=LD_RUN_PATH
10013       ;;
10014     siemens)
10015       need_lib_prefix=no
10016       ;;
10017     motorola)
10018       need_lib_prefix=no
10019       need_version=no
10020       shlibpath_overrides_runpath=no
10021       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10022       ;;
10023   esac
10024   ;;
10025
10026 sysv4*MP*)
10027   if test -d /usr/nec ;then
10028     version_type=linux
10029     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10030     soname_spec='$libname${shared_ext}.$major'
10031     shlibpath_var=LD_LIBRARY_PATH
10032   fi
10033   ;;
10034
10035 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10036   version_type=freebsd-elf
10037   need_lib_prefix=no
10038   need_version=no
10039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10040   soname_spec='${libname}${release}${shared_ext}$major'
10041   shlibpath_var=LD_LIBRARY_PATH
10042   shlibpath_overrides_runpath=yes
10043   hardcode_into_libs=yes
10044   if test "$with_gnu_ld" = yes; then
10045     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10046   else
10047     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10048     case $host_os in
10049       sco3.2v5*)
10050         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10051         ;;
10052     esac
10053   fi
10054   sys_lib_dlsearch_path_spec='/usr/lib'
10055   ;;
10056
10057 tpf*)
10058   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10059   version_type=linux
10060   need_lib_prefix=no
10061   need_version=no
10062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10063   shlibpath_var=LD_LIBRARY_PATH
10064   shlibpath_overrides_runpath=no
10065   hardcode_into_libs=yes
10066   ;;
10067
10068 uts4*)
10069   version_type=linux
10070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10071   soname_spec='${libname}${release}${shared_ext}$major'
10072   shlibpath_var=LD_LIBRARY_PATH
10073   ;;
10074
10075 *)
10076   dynamic_linker=no
10077   ;;
10078 esac
10079 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10080 echo "${ECHO_T}$dynamic_linker" >&6; }
10081 test "$dynamic_linker" = no && can_build_shared=no
10082
10083 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10084 if test "$GCC" = yes; then
10085   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10086 fi
10087
10088 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10089   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10090 fi
10091 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10092   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10093 fi
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
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10182 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10183 hardcode_action=
10184 if test -n "$hardcode_libdir_flag_spec" ||
10185    test -n "$runpath_var" ||
10186    test "X$hardcode_automatic" = "Xyes" ; then
10187
10188   # We can hardcode non-existent directories.
10189   if test "$hardcode_direct" != no &&
10190      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10191      # have to relink, otherwise we might link with an installed library
10192      # when we should be linking with a yet-to-be-installed one
10193      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10194      test "$hardcode_minus_L" != no; then
10195     # Linking always hardcodes the temporary library directory.
10196     hardcode_action=relink
10197   else
10198     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10199     hardcode_action=immediate
10200   fi
10201 else
10202   # We cannot hardcode anything, or else we can only hardcode existing
10203   # directories.
10204   hardcode_action=unsupported
10205 fi
10206 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10207 echo "${ECHO_T}$hardcode_action" >&6; }
10208
10209 if test "$hardcode_action" = relink ||
10210    test "$inherit_rpath" = yes; then
10211   # Fast installation is not supported
10212   enable_fast_install=no
10213 elif test "$shlibpath_overrides_runpath" = yes ||
10214      test "$enable_shared" = no; then
10215   # Fast installation is not necessary
10216   enable_fast_install=needless
10217 fi
10218
10219
10220
10221
10222
10223
10224   if test "x$enable_dlopen" != xyes; then
10225   enable_dlopen=unknown
10226   enable_dlopen_self=unknown
10227   enable_dlopen_self_static=unknown
10228 else
10229   lt_cv_dlopen=no
10230   lt_cv_dlopen_libs=
10231
10232   case $host_os in
10233   beos*)
10234     lt_cv_dlopen="load_add_on"
10235     lt_cv_dlopen_libs=
10236     lt_cv_dlopen_self=yes
10237     ;;
10238
10239   mingw* | pw32* | cegcc*)
10240     lt_cv_dlopen="LoadLibrary"
10241     lt_cv_dlopen_libs=
10242     ;;
10243
10244   cygwin*)
10245     lt_cv_dlopen="dlopen"
10246     lt_cv_dlopen_libs=
10247     ;;
10248
10249   darwin*)
10250   # if libdl is installed we need to link against it
10251     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10252 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10253 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10254   echo $ECHO_N "(cached) $ECHO_C" >&6
10255 else
10256   ac_check_lib_save_LIBS=$LIBS
10257 LIBS="-ldl  $LIBS"
10258 cat >conftest.$ac_ext <<_ACEOF
10259 /* confdefs.h.  */
10260 _ACEOF
10261 cat confdefs.h >>conftest.$ac_ext
10262 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h.  */
10264
10265 /* Override any GCC internal prototype to avoid an error.
10266    Use char because int might match the return type of a GCC
10267    builtin and then its argument prototype would still apply.  */
10268 #ifdef __cplusplus
10269 extern "C"
10270 #endif
10271 char dlopen ();
10272 int
10273 main ()
10274 {
10275 return dlopen ();
10276   ;
10277   return 0;
10278 }
10279 _ACEOF
10280 rm -f conftest.$ac_objext conftest$ac_exeext
10281 if { (ac_try="$ac_link"
10282 case "(($ac_try" in
10283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284   *) ac_try_echo=$ac_try;;
10285 esac
10286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287   (eval "$ac_link") 2>conftest.er1
10288   ac_status=$?
10289   grep -v '^ *+' conftest.er1 >conftest.err
10290   rm -f conftest.er1
10291   cat conftest.err >&5
10292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293   (exit $ac_status); } && {
10294          test -z "$ac_c_werror_flag" ||
10295          test ! -s conftest.err
10296        } && test -s conftest$ac_exeext &&
10297        $as_test_x conftest$ac_exeext; then
10298   ac_cv_lib_dl_dlopen=yes
10299 else
10300   echo "$as_me: failed program was:" >&5
10301 sed 's/^/| /' conftest.$ac_ext >&5
10302
10303         ac_cv_lib_dl_dlopen=no
10304 fi
10305
10306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10307       conftest$ac_exeext conftest.$ac_ext
10308 LIBS=$ac_check_lib_save_LIBS
10309 fi
10310 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10311 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10312 if test $ac_cv_lib_dl_dlopen = yes; then
10313   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10314 else
10315
10316     lt_cv_dlopen="dyld"
10317     lt_cv_dlopen_libs=
10318     lt_cv_dlopen_self=yes
10319
10320 fi
10321
10322     ;;
10323
10324   *)
10325     { echo "$as_me:$LINENO: checking for shl_load" >&5
10326 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10327 if test "${ac_cv_func_shl_load+set}" = set; then
10328   echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330   cat >conftest.$ac_ext <<_ACEOF
10331 /* confdefs.h.  */
10332 _ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h.  */
10336 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10338 #define shl_load innocuous_shl_load
10339
10340 /* System header to define __stub macros and hopefully few prototypes,
10341     which can conflict with char shl_load (); below.
10342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10343     <limits.h> exists even on freestanding compilers.  */
10344
10345 #ifdef __STDC__
10346 # include <limits.h>
10347 #else
10348 # include <assert.h>
10349 #endif
10350
10351 #undef shl_load
10352
10353 /* Override any GCC internal prototype to avoid an error.
10354    Use char because int might match the return type of a GCC
10355    builtin and then its argument prototype would still apply.  */
10356 #ifdef __cplusplus
10357 extern "C"
10358 #endif
10359 char shl_load ();
10360 /* The GNU C library defines this for functions which it implements
10361     to always fail with ENOSYS.  Some functions are actually named
10362     something starting with __ and the normal name is an alias.  */
10363 #if defined __stub_shl_load || defined __stub___shl_load
10364 choke me
10365 #endif
10366
10367 int
10368 main ()
10369 {
10370 return shl_load ();
10371   ;
10372   return 0;
10373 }
10374 _ACEOF
10375 rm -f conftest.$ac_objext conftest$ac_exeext
10376 if { (ac_try="$ac_link"
10377 case "(($ac_try" in
10378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379   *) ac_try_echo=$ac_try;;
10380 esac
10381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382   (eval "$ac_link") 2>conftest.er1
10383   ac_status=$?
10384   grep -v '^ *+' conftest.er1 >conftest.err
10385   rm -f conftest.er1
10386   cat conftest.err >&5
10387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388   (exit $ac_status); } && {
10389          test -z "$ac_c_werror_flag" ||
10390          test ! -s conftest.err
10391        } && test -s conftest$ac_exeext &&
10392        $as_test_x conftest$ac_exeext; then
10393   ac_cv_func_shl_load=yes
10394 else
10395   echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10397
10398         ac_cv_func_shl_load=no
10399 fi
10400
10401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10402       conftest$ac_exeext conftest.$ac_ext
10403 fi
10404 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10405 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10406 if test $ac_cv_func_shl_load = yes; then
10407   lt_cv_dlopen="shl_load"
10408 else
10409   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10410 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10411 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10412   echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414   ac_check_lib_save_LIBS=$LIBS
10415 LIBS="-ldld  $LIBS"
10416 cat >conftest.$ac_ext <<_ACEOF
10417 /* confdefs.h.  */
10418 _ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h.  */
10422
10423 /* Override any GCC internal prototype to avoid an error.
10424    Use char because int might match the return type of a GCC
10425    builtin and then its argument prototype would still apply.  */
10426 #ifdef __cplusplus
10427 extern "C"
10428 #endif
10429 char shl_load ();
10430 int
10431 main ()
10432 {
10433 return shl_load ();
10434   ;
10435   return 0;
10436 }
10437 _ACEOF
10438 rm -f conftest.$ac_objext conftest$ac_exeext
10439 if { (ac_try="$ac_link"
10440 case "(($ac_try" in
10441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442   *) ac_try_echo=$ac_try;;
10443 esac
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445   (eval "$ac_link") 2>conftest.er1
10446   ac_status=$?
10447   grep -v '^ *+' conftest.er1 >conftest.err
10448   rm -f conftest.er1
10449   cat conftest.err >&5
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); } && {
10452          test -z "$ac_c_werror_flag" ||
10453          test ! -s conftest.err
10454        } && test -s conftest$ac_exeext &&
10455        $as_test_x conftest$ac_exeext; then
10456   ac_cv_lib_dld_shl_load=yes
10457 else
10458   echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10460
10461         ac_cv_lib_dld_shl_load=no
10462 fi
10463
10464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10465       conftest$ac_exeext conftest.$ac_ext
10466 LIBS=$ac_check_lib_save_LIBS
10467 fi
10468 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10469 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10470 if test $ac_cv_lib_dld_shl_load = yes; then
10471   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10472 else
10473   { echo "$as_me:$LINENO: checking for dlopen" >&5
10474 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10475 if test "${ac_cv_func_dlopen+set}" = set; then
10476   echo $ECHO_N "(cached) $ECHO_C" >&6
10477 else
10478   cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h.  */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h.  */
10484 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10486 #define dlopen innocuous_dlopen
10487
10488 /* System header to define __stub macros and hopefully few prototypes,
10489     which can conflict with char dlopen (); below.
10490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10491     <limits.h> exists even on freestanding compilers.  */
10492
10493 #ifdef __STDC__
10494 # include <limits.h>
10495 #else
10496 # include <assert.h>
10497 #endif
10498
10499 #undef dlopen
10500
10501 /* Override any GCC internal prototype to avoid an error.
10502    Use char because int might match the return type of a GCC
10503    builtin and then its argument prototype would still apply.  */
10504 #ifdef __cplusplus
10505 extern "C"
10506 #endif
10507 char dlopen ();
10508 /* The GNU C library defines this for functions which it implements
10509     to always fail with ENOSYS.  Some functions are actually named
10510     something starting with __ and the normal name is an alias.  */
10511 #if defined __stub_dlopen || defined __stub___dlopen
10512 choke me
10513 #endif
10514
10515 int
10516 main ()
10517 {
10518 return dlopen ();
10519   ;
10520   return 0;
10521 }
10522 _ACEOF
10523 rm -f conftest.$ac_objext conftest$ac_exeext
10524 if { (ac_try="$ac_link"
10525 case "(($ac_try" in
10526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527   *) ac_try_echo=$ac_try;;
10528 esac
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530   (eval "$ac_link") 2>conftest.er1
10531   ac_status=$?
10532   grep -v '^ *+' conftest.er1 >conftest.err
10533   rm -f conftest.er1
10534   cat conftest.err >&5
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); } && {
10537          test -z "$ac_c_werror_flag" ||
10538          test ! -s conftest.err
10539        } && test -s conftest$ac_exeext &&
10540        $as_test_x conftest$ac_exeext; then
10541   ac_cv_func_dlopen=yes
10542 else
10543   echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10545
10546         ac_cv_func_dlopen=no
10547 fi
10548
10549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10550       conftest$ac_exeext conftest.$ac_ext
10551 fi
10552 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10553 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10554 if test $ac_cv_func_dlopen = yes; then
10555   lt_cv_dlopen="dlopen"
10556 else
10557   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10558 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10559 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10560   echo $ECHO_N "(cached) $ECHO_C" >&6
10561 else
10562   ac_check_lib_save_LIBS=$LIBS
10563 LIBS="-ldl  $LIBS"
10564 cat >conftest.$ac_ext <<_ACEOF
10565 /* confdefs.h.  */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h.  */
10570
10571 /* Override any GCC internal prototype to avoid an error.
10572    Use char because int might match the return type of a GCC
10573    builtin and then its argument prototype would still apply.  */
10574 #ifdef __cplusplus
10575 extern "C"
10576 #endif
10577 char dlopen ();
10578 int
10579 main ()
10580 {
10581 return dlopen ();
10582   ;
10583   return 0;
10584 }
10585 _ACEOF
10586 rm -f conftest.$ac_objext conftest$ac_exeext
10587 if { (ac_try="$ac_link"
10588 case "(($ac_try" in
10589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590   *) ac_try_echo=$ac_try;;
10591 esac
10592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10593   (eval "$ac_link") 2>conftest.er1
10594   ac_status=$?
10595   grep -v '^ *+' conftest.er1 >conftest.err
10596   rm -f conftest.er1
10597   cat conftest.err >&5
10598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599   (exit $ac_status); } && {
10600          test -z "$ac_c_werror_flag" ||
10601          test ! -s conftest.err
10602        } && test -s conftest$ac_exeext &&
10603        $as_test_x conftest$ac_exeext; then
10604   ac_cv_lib_dl_dlopen=yes
10605 else
10606   echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10608
10609         ac_cv_lib_dl_dlopen=no
10610 fi
10611
10612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10613       conftest$ac_exeext conftest.$ac_ext
10614 LIBS=$ac_check_lib_save_LIBS
10615 fi
10616 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10617 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10618 if test $ac_cv_lib_dl_dlopen = yes; then
10619   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10620 else
10621   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10622 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10623 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10624   echo $ECHO_N "(cached) $ECHO_C" >&6
10625 else
10626   ac_check_lib_save_LIBS=$LIBS
10627 LIBS="-lsvld  $LIBS"
10628 cat >conftest.$ac_ext <<_ACEOF
10629 /* confdefs.h.  */
10630 _ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h.  */
10634
10635 /* Override any GCC internal prototype to avoid an error.
10636    Use char because int might match the return type of a GCC
10637    builtin and then its argument prototype would still apply.  */
10638 #ifdef __cplusplus
10639 extern "C"
10640 #endif
10641 char dlopen ();
10642 int
10643 main ()
10644 {
10645 return dlopen ();
10646   ;
10647   return 0;
10648 }
10649 _ACEOF
10650 rm -f conftest.$ac_objext conftest$ac_exeext
10651 if { (ac_try="$ac_link"
10652 case "(($ac_try" in
10653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654   *) ac_try_echo=$ac_try;;
10655 esac
10656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10657   (eval "$ac_link") 2>conftest.er1
10658   ac_status=$?
10659   grep -v '^ *+' conftest.er1 >conftest.err
10660   rm -f conftest.er1
10661   cat conftest.err >&5
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); } && {
10664          test -z "$ac_c_werror_flag" ||
10665          test ! -s conftest.err
10666        } && test -s conftest$ac_exeext &&
10667        $as_test_x conftest$ac_exeext; then
10668   ac_cv_lib_svld_dlopen=yes
10669 else
10670   echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673         ac_cv_lib_svld_dlopen=no
10674 fi
10675
10676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10677       conftest$ac_exeext conftest.$ac_ext
10678 LIBS=$ac_check_lib_save_LIBS
10679 fi
10680 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10681 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10682 if test $ac_cv_lib_svld_dlopen = yes; then
10683   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10684 else
10685   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10686 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10687 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10688   echo $ECHO_N "(cached) $ECHO_C" >&6
10689 else
10690   ac_check_lib_save_LIBS=$LIBS
10691 LIBS="-ldld  $LIBS"
10692 cat >conftest.$ac_ext <<_ACEOF
10693 /* confdefs.h.  */
10694 _ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h.  */
10698
10699 /* Override any GCC internal prototype to avoid an error.
10700    Use char because int might match the return type of a GCC
10701    builtin and then its argument prototype would still apply.  */
10702 #ifdef __cplusplus
10703 extern "C"
10704 #endif
10705 char dld_link ();
10706 int
10707 main ()
10708 {
10709 return dld_link ();
10710   ;
10711   return 0;
10712 }
10713 _ACEOF
10714 rm -f conftest.$ac_objext conftest$ac_exeext
10715 if { (ac_try="$ac_link"
10716 case "(($ac_try" in
10717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718   *) ac_try_echo=$ac_try;;
10719 esac
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721   (eval "$ac_link") 2>conftest.er1
10722   ac_status=$?
10723   grep -v '^ *+' conftest.er1 >conftest.err
10724   rm -f conftest.er1
10725   cat conftest.err >&5
10726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727   (exit $ac_status); } && {
10728          test -z "$ac_c_werror_flag" ||
10729          test ! -s conftest.err
10730        } && test -s conftest$ac_exeext &&
10731        $as_test_x conftest$ac_exeext; then
10732   ac_cv_lib_dld_dld_link=yes
10733 else
10734   echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10736
10737         ac_cv_lib_dld_dld_link=no
10738 fi
10739
10740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10741       conftest$ac_exeext conftest.$ac_ext
10742 LIBS=$ac_check_lib_save_LIBS
10743 fi
10744 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10745 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10746 if test $ac_cv_lib_dld_dld_link = yes; then
10747   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10748 fi
10749
10750
10751 fi
10752
10753
10754 fi
10755
10756
10757 fi
10758
10759
10760 fi
10761
10762
10763 fi
10764
10765     ;;
10766   esac
10767
10768   if test "x$lt_cv_dlopen" != xno; then
10769     enable_dlopen=yes
10770   else
10771     enable_dlopen=no
10772   fi
10773
10774   case $lt_cv_dlopen in
10775   dlopen)
10776     save_CPPFLAGS="$CPPFLAGS"
10777     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10778
10779     save_LDFLAGS="$LDFLAGS"
10780     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10781
10782     save_LIBS="$LIBS"
10783     LIBS="$lt_cv_dlopen_libs $LIBS"
10784
10785     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10786 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10787 if test "${lt_cv_dlopen_self+set}" = set; then
10788   echo $ECHO_N "(cached) $ECHO_C" >&6
10789 else
10790           if test "$cross_compiling" = yes; then :
10791   lt_cv_dlopen_self=cross
10792 else
10793   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10794   lt_status=$lt_dlunknown
10795   cat > conftest.$ac_ext <<_LT_EOF
10796 #line 10796 "configure"
10797 #include "confdefs.h"
10798
10799 #if HAVE_DLFCN_H
10800 #include <dlfcn.h>
10801 #endif
10802
10803 #include <stdio.h>
10804
10805 #ifdef RTLD_GLOBAL
10806 #  define LT_DLGLOBAL           RTLD_GLOBAL
10807 #else
10808 #  ifdef DL_GLOBAL
10809 #    define LT_DLGLOBAL         DL_GLOBAL
10810 #  else
10811 #    define LT_DLGLOBAL         0
10812 #  endif
10813 #endif
10814
10815 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10816    find out it does not work in some platform. */
10817 #ifndef LT_DLLAZY_OR_NOW
10818 #  ifdef RTLD_LAZY
10819 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10820 #  else
10821 #    ifdef DL_LAZY
10822 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10823 #    else
10824 #      ifdef RTLD_NOW
10825 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10826 #      else
10827 #        ifdef DL_NOW
10828 #          define LT_DLLAZY_OR_NOW      DL_NOW
10829 #        else
10830 #          define LT_DLLAZY_OR_NOW      0
10831 #        endif
10832 #      endif
10833 #    endif
10834 #  endif
10835 #endif
10836
10837 void fnord() { int i=42;}
10838 int main ()
10839 {
10840   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10841   int status = $lt_dlunknown;
10842
10843   if (self)
10844     {
10845       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10846       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10847       /* dlclose (self); */
10848     }
10849   else
10850     puts (dlerror ());
10851
10852   return status;
10853 }
10854 _LT_EOF
10855   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10856   (eval $ac_link) 2>&5
10857   ac_status=$?
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10860     (./conftest; exit; ) >&5 2>/dev/null
10861     lt_status=$?
10862     case x$lt_status in
10863       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10864       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10865       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10866     esac
10867   else :
10868     # compilation failed
10869     lt_cv_dlopen_self=no
10870   fi
10871 fi
10872 rm -fr conftest*
10873
10874
10875 fi
10876 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10877 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10878
10879     if test "x$lt_cv_dlopen_self" = xyes; then
10880       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10881       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10882 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10883 if test "${lt_cv_dlopen_self_static+set}" = set; then
10884   echo $ECHO_N "(cached) $ECHO_C" >&6
10885 else
10886           if test "$cross_compiling" = yes; then :
10887   lt_cv_dlopen_self_static=cross
10888 else
10889   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10890   lt_status=$lt_dlunknown
10891   cat > conftest.$ac_ext <<_LT_EOF
10892 #line 10892 "configure"
10893 #include "confdefs.h"
10894
10895 #if HAVE_DLFCN_H
10896 #include <dlfcn.h>
10897 #endif
10898
10899 #include <stdio.h>
10900
10901 #ifdef RTLD_GLOBAL
10902 #  define LT_DLGLOBAL           RTLD_GLOBAL
10903 #else
10904 #  ifdef DL_GLOBAL
10905 #    define LT_DLGLOBAL         DL_GLOBAL
10906 #  else
10907 #    define LT_DLGLOBAL         0
10908 #  endif
10909 #endif
10910
10911 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10912    find out it does not work in some platform. */
10913 #ifndef LT_DLLAZY_OR_NOW
10914 #  ifdef RTLD_LAZY
10915 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10916 #  else
10917 #    ifdef DL_LAZY
10918 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10919 #    else
10920 #      ifdef RTLD_NOW
10921 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10922 #      else
10923 #        ifdef DL_NOW
10924 #          define LT_DLLAZY_OR_NOW      DL_NOW
10925 #        else
10926 #          define LT_DLLAZY_OR_NOW      0
10927 #        endif
10928 #      endif
10929 #    endif
10930 #  endif
10931 #endif
10932
10933 void fnord() { int i=42;}
10934 int main ()
10935 {
10936   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10937   int status = $lt_dlunknown;
10938
10939   if (self)
10940     {
10941       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10942       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10943       /* dlclose (self); */
10944     }
10945   else
10946     puts (dlerror ());
10947
10948   return status;
10949 }
10950 _LT_EOF
10951   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10952   (eval $ac_link) 2>&5
10953   ac_status=$?
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10956     (./conftest; exit; ) >&5 2>/dev/null
10957     lt_status=$?
10958     case x$lt_status in
10959       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10960       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10961       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10962     esac
10963   else :
10964     # compilation failed
10965     lt_cv_dlopen_self_static=no
10966   fi
10967 fi
10968 rm -fr conftest*
10969
10970
10971 fi
10972 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10973 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10974     fi
10975
10976     CPPFLAGS="$save_CPPFLAGS"
10977     LDFLAGS="$save_LDFLAGS"
10978     LIBS="$save_LIBS"
10979     ;;
10980   esac
10981
10982   case $lt_cv_dlopen_self in
10983   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10984   *) enable_dlopen_self=unknown ;;
10985   esac
10986
10987   case $lt_cv_dlopen_self_static in
10988   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10989   *) enable_dlopen_self_static=unknown ;;
10990   esac
10991 fi
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009 striplib=
11010 old_striplib=
11011 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11012 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11013 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11014   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11015   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11016   { echo "$as_me:$LINENO: result: yes" >&5
11017 echo "${ECHO_T}yes" >&6; }
11018 else
11019 # FIXME - insert some real tests, host_os isn't really good enough
11020   case $host_os in
11021   darwin*)
11022     if test -n "$STRIP" ; then
11023       striplib="$STRIP -x"
11024       old_striplib="$STRIP -S"
11025       { echo "$as_me:$LINENO: result: yes" >&5
11026 echo "${ECHO_T}yes" >&6; }
11027     else
11028       { echo "$as_me:$LINENO: result: no" >&5
11029 echo "${ECHO_T}no" >&6; }
11030     fi
11031     ;;
11032   *)
11033     { echo "$as_me:$LINENO: result: no" >&5
11034 echo "${ECHO_T}no" >&6; }
11035     ;;
11036   esac
11037 fi
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050   # Report which library types will actually be built
11051   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11052 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11053   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11054 echo "${ECHO_T}$can_build_shared" >&6; }
11055
11056   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11057 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11058   test "$can_build_shared" = "no" && enable_shared=no
11059
11060   # On AIX, shared libraries and static libraries use the same namespace, and
11061   # are all built from PIC.
11062   case $host_os in
11063   aix3*)
11064     test "$enable_shared" = yes && enable_static=no
11065     if test -n "$RANLIB"; then
11066       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11067       postinstall_cmds='$RANLIB $lib'
11068     fi
11069     ;;
11070
11071   aix[4-9]*)
11072     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11073       test "$enable_shared" = yes && enable_static=no
11074     fi
11075     ;;
11076   esac
11077   { echo "$as_me:$LINENO: result: $enable_shared" >&5
11078 echo "${ECHO_T}$enable_shared" >&6; }
11079
11080   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11081 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11082   # Make sure either enable_shared or enable_static is yes.
11083   test "$enable_shared" = yes || enable_static=yes
11084   { echo "$as_me:$LINENO: result: $enable_static" >&5
11085 echo "${ECHO_T}$enable_static" >&6; }
11086
11087
11088
11089
11090 fi
11091 ac_ext=c
11092 ac_cpp='$CPP $CPPFLAGS'
11093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11096
11097 CC="$lt_save_CC"
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111         ac_config_commands="$ac_config_commands libtool"
11112
11113
11114
11115
11116 # Only expand once:
11117
11118
11119
11120 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11121 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
11122 if test "${ac_cv_header_stdc+set}" = set; then
11123   echo $ECHO_N "(cached) $ECHO_C" >&6
11124 else
11125   cat >conftest.$ac_ext <<_ACEOF
11126 /* confdefs.h.  */
11127 _ACEOF
11128 cat confdefs.h >>conftest.$ac_ext
11129 cat >>conftest.$ac_ext <<_ACEOF
11130 /* end confdefs.h.  */
11131 #include <stdlib.h>
11132 #include <stdarg.h>
11133 #include <string.h>
11134 #include <float.h>
11135
11136 int
11137 main ()
11138 {
11139
11140   ;
11141   return 0;
11142 }
11143 _ACEOF
11144 rm -f conftest.$ac_objext
11145 if { (ac_try="$ac_compile"
11146 case "(($ac_try" in
11147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148   *) ac_try_echo=$ac_try;;
11149 esac
11150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151   (eval "$ac_compile") 2>conftest.er1
11152   ac_status=$?
11153   grep -v '^ *+' conftest.er1 >conftest.err
11154   rm -f conftest.er1
11155   cat conftest.err >&5
11156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157   (exit $ac_status); } && {
11158          test -z "$ac_c_werror_flag" ||
11159          test ! -s conftest.err
11160        } && test -s conftest.$ac_objext; then
11161   ac_cv_header_stdc=yes
11162 else
11163   echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11165
11166         ac_cv_header_stdc=no
11167 fi
11168
11169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11170
11171 if test $ac_cv_header_stdc = yes; then
11172   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11173   cat >conftest.$ac_ext <<_ACEOF
11174 /* confdefs.h.  */
11175 _ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h.  */
11179 #include <string.h>
11180
11181 _ACEOF
11182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11183   $EGREP "memchr" >/dev/null 2>&1; then
11184   :
11185 else
11186   ac_cv_header_stdc=no
11187 fi
11188 rm -f conftest*
11189
11190 fi
11191
11192 if test $ac_cv_header_stdc = yes; then
11193   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11194   cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h.  */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h.  */
11200 #include <stdlib.h>
11201
11202 _ACEOF
11203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11204   $EGREP "free" >/dev/null 2>&1; then
11205   :
11206 else
11207   ac_cv_header_stdc=no
11208 fi
11209 rm -f conftest*
11210
11211 fi
11212
11213 if test $ac_cv_header_stdc = yes; then
11214   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11215   if test "$cross_compiling" = yes; then
11216   :
11217 else
11218   cat >conftest.$ac_ext <<_ACEOF
11219 /* confdefs.h.  */
11220 _ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h.  */
11224 #include <ctype.h>
11225 #include <stdlib.h>
11226 #if ((' ' & 0x0FF) == 0x020)
11227 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11228 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11229 #else
11230 # define ISLOWER(c) \
11231                    (('a' <= (c) && (c) <= 'i') \
11232                      || ('j' <= (c) && (c) <= 'r') \
11233                      || ('s' <= (c) && (c) <= 'z'))
11234 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11235 #endif
11236
11237 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11238 int
11239 main ()
11240 {
11241   int i;
11242   for (i = 0; i < 256; i++)
11243     if (XOR (islower (i), ISLOWER (i))
11244         || toupper (i) != TOUPPER (i))
11245       return 2;
11246   return 0;
11247 }
11248 _ACEOF
11249 rm -f conftest$ac_exeext
11250 if { (ac_try="$ac_link"
11251 case "(($ac_try" in
11252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253   *) ac_try_echo=$ac_try;;
11254 esac
11255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256   (eval "$ac_link") 2>&5
11257   ac_status=$?
11258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11260   { (case "(($ac_try" in
11261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262   *) ac_try_echo=$ac_try;;
11263 esac
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265   (eval "$ac_try") 2>&5
11266   ac_status=$?
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); }; }; then
11269   :
11270 else
11271   echo "$as_me: program exited with status $ac_status" >&5
11272 echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11274
11275 ( exit $ac_status )
11276 ac_cv_header_stdc=no
11277 fi
11278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11279 fi
11280
11281
11282 fi
11283 fi
11284 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11285 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
11286 if test $ac_cv_header_stdc = yes; then
11287
11288 cat >>confdefs.h <<\_ACEOF
11289 #define STDC_HEADERS 1
11290 _ACEOF
11291
11292 fi
11293
11294 ac_config_headers="$ac_config_headers include/config.h"
11295
11296
11297 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11298 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11299 if test "${ac_cv_c_const+set}" = set; then
11300   echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302   cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h.  */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h.  */
11308
11309 int
11310 main ()
11311 {
11312 /* FIXME: Include the comments suggested by Paul. */
11313 #ifndef __cplusplus
11314   /* Ultrix mips cc rejects this.  */
11315   typedef int charset[2];
11316   const charset cs;
11317   /* SunOS 4.1.1 cc rejects this.  */
11318   char const *const *pcpcc;
11319   char **ppc;
11320   /* NEC SVR4.0.2 mips cc rejects this.  */
11321   struct point {int x, y;};
11322   static struct point const zero = {0,0};
11323   /* AIX XL C 1.02.0.0 rejects this.
11324      It does not let you subtract one const X* pointer from another in
11325      an arm of an if-expression whose if-part is not a constant
11326      expression */
11327   const char *g = "string";
11328   pcpcc = &g + (g ? g-g : 0);
11329   /* HPUX 7.0 cc rejects these. */
11330   ++pcpcc;
11331   ppc = (char**) pcpcc;
11332   pcpcc = (char const *const *) ppc;
11333   { /* SCO 3.2v4 cc rejects this.  */
11334     char *t;
11335     char const *s = 0 ? (char *) 0 : (char const *) 0;
11336
11337     *t++ = 0;
11338     if (s) return 0;
11339   }
11340   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11341     int x[] = {25, 17};
11342     const int *foo = &x[0];
11343     ++foo;
11344   }
11345   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11346     typedef const int *iptr;
11347     iptr p = 0;
11348     ++p;
11349   }
11350   { /* AIX XL C 1.02.0.0 rejects this saying
11351        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11352     struct s { int j; const int *ap[3]; };
11353     struct s *b; b->j = 5;
11354   }
11355   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11356     const int foo = 10;
11357     if (!foo) return 0;
11358   }
11359   return !cs[0] && !zero.x;
11360 #endif
11361
11362   ;
11363   return 0;
11364 }
11365 _ACEOF
11366 rm -f conftest.$ac_objext
11367 if { (ac_try="$ac_compile"
11368 case "(($ac_try" in
11369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370   *) ac_try_echo=$ac_try;;
11371 esac
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373   (eval "$ac_compile") 2>conftest.er1
11374   ac_status=$?
11375   grep -v '^ *+' conftest.er1 >conftest.err
11376   rm -f conftest.er1
11377   cat conftest.err >&5
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); } && {
11380          test -z "$ac_c_werror_flag" ||
11381          test ! -s conftest.err
11382        } && test -s conftest.$ac_objext; then
11383   ac_cv_c_const=yes
11384 else
11385   echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11387
11388         ac_cv_c_const=no
11389 fi
11390
11391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11392 fi
11393 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11394 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11395 if test $ac_cv_c_const = no; then
11396
11397 cat >>confdefs.h <<\_ACEOF
11398 #define const
11399 _ACEOF
11400
11401 fi
11402
11403 { echo "$as_me:$LINENO: checking for inline" >&5
11404 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
11405 if test "${ac_cv_c_inline+set}" = set; then
11406   echo $ECHO_N "(cached) $ECHO_C" >&6
11407 else
11408   ac_cv_c_inline=no
11409 for ac_kw in inline __inline__ __inline; do
11410   cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h.  */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h.  */
11416 #ifndef __cplusplus
11417 typedef int foo_t;
11418 static $ac_kw foo_t static_foo () {return 0; }
11419 $ac_kw foo_t foo () {return 0; }
11420 #endif
11421
11422 _ACEOF
11423 rm -f conftest.$ac_objext
11424 if { (ac_try="$ac_compile"
11425 case "(($ac_try" in
11426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427   *) ac_try_echo=$ac_try;;
11428 esac
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430   (eval "$ac_compile") 2>conftest.er1
11431   ac_status=$?
11432   grep -v '^ *+' conftest.er1 >conftest.err
11433   rm -f conftest.er1
11434   cat conftest.err >&5
11435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436   (exit $ac_status); } && {
11437          test -z "$ac_c_werror_flag" ||
11438          test ! -s conftest.err
11439        } && test -s conftest.$ac_objext; then
11440   ac_cv_c_inline=$ac_kw
11441 else
11442   echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11444
11445
11446 fi
11447
11448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11449   test "$ac_cv_c_inline" != no && break
11450 done
11451
11452 fi
11453 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11454 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
11455
11456
11457 case $ac_cv_c_inline in
11458   inline | yes) ;;
11459   *)
11460     case $ac_cv_c_inline in
11461       no) ac_val=;;
11462       *) ac_val=$ac_cv_c_inline;;
11463     esac
11464     cat >>confdefs.h <<_ACEOF
11465 #ifndef __cplusplus
11466 #define inline $ac_val
11467 #endif
11468 _ACEOF
11469     ;;
11470 esac
11471
11472 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11473 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11474 if test "${ac_cv_header_time+set}" = set; then
11475   echo $ECHO_N "(cached) $ECHO_C" >&6
11476 else
11477   cat >conftest.$ac_ext <<_ACEOF
11478 /* confdefs.h.  */
11479 _ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h.  */
11483 #include <sys/types.h>
11484 #include <sys/time.h>
11485 #include <time.h>
11486
11487 int
11488 main ()
11489 {
11490 if ((struct tm *) 0)
11491 return 0;
11492   ;
11493   return 0;
11494 }
11495 _ACEOF
11496 rm -f conftest.$ac_objext
11497 if { (ac_try="$ac_compile"
11498 case "(($ac_try" in
11499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500   *) ac_try_echo=$ac_try;;
11501 esac
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503   (eval "$ac_compile") 2>conftest.er1
11504   ac_status=$?
11505   grep -v '^ *+' conftest.er1 >conftest.err
11506   rm -f conftest.er1
11507   cat conftest.err >&5
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); } && {
11510          test -z "$ac_c_werror_flag" ||
11511          test ! -s conftest.err
11512        } && test -s conftest.$ac_objext; then
11513   ac_cv_header_time=yes
11514 else
11515   echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.$ac_ext >&5
11517
11518         ac_cv_header_time=no
11519 fi
11520
11521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11522 fi
11523 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11524 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11525 if test $ac_cv_header_time = yes; then
11526
11527 cat >>confdefs.h <<\_ACEOF
11528 #define TIME_WITH_SYS_TIME 1
11529 _ACEOF
11530
11531 fi
11532
11533
11534 SAVE_LIBRARY_VERSION
11535
11536
11537 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11538
11539
11540
11541 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11542         if test -n "$ac_tool_prefix"; then
11543   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11544 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11547 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11548   echo $ECHO_N "(cached) $ECHO_C" >&6
11549 else
11550   case $PKG_CONFIG in
11551   [\\/]* | ?:[\\/]*)
11552   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11553   ;;
11554   *)
11555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11557 do
11558   IFS=$as_save_IFS
11559   test -z "$as_dir" && as_dir=.
11560   for ac_exec_ext in '' $ac_executable_extensions; do
11561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11562     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11564     break 2
11565   fi
11566 done
11567 done
11568 IFS=$as_save_IFS
11569
11570   ;;
11571 esac
11572 fi
11573 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11574 if test -n "$PKG_CONFIG"; then
11575   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11576 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11577 else
11578   { echo "$as_me:$LINENO: result: no" >&5
11579 echo "${ECHO_T}no" >&6; }
11580 fi
11581
11582
11583 fi
11584 if test -z "$ac_cv_path_PKG_CONFIG"; then
11585   ac_pt_PKG_CONFIG=$PKG_CONFIG
11586   # Extract the first word of "pkg-config", so it can be a program name with args.
11587 set dummy pkg-config; ac_word=$2
11588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11590 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11591   echo $ECHO_N "(cached) $ECHO_C" >&6
11592 else
11593   case $ac_pt_PKG_CONFIG in
11594   [\\/]* | ?:[\\/]*)
11595   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11596   ;;
11597   *)
11598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11599 for as_dir in $PATH
11600 do
11601   IFS=$as_save_IFS
11602   test -z "$as_dir" && as_dir=.
11603   for ac_exec_ext in '' $ac_executable_extensions; do
11604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11605     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11607     break 2
11608   fi
11609 done
11610 done
11611 IFS=$as_save_IFS
11612
11613   ;;
11614 esac
11615 fi
11616 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11617 if test -n "$ac_pt_PKG_CONFIG"; then
11618   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11619 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
11620 else
11621   { echo "$as_me:$LINENO: result: no" >&5
11622 echo "${ECHO_T}no" >&6; }
11623 fi
11624
11625   if test "x$ac_pt_PKG_CONFIG" = x; then
11626     PKG_CONFIG=""
11627   else
11628     case $cross_compiling:$ac_tool_warned in
11629 yes:)
11630 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11631 whose name does not start with the host triplet.  If you think this
11632 configuration is useful to you, please write to autoconf@gnu.org." >&5
11633 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11634 whose name does not start with the host triplet.  If you think this
11635 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11636 ac_tool_warned=yes ;;
11637 esac
11638     PKG_CONFIG=$ac_pt_PKG_CONFIG
11639   fi
11640 else
11641   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11642 fi
11643
11644 fi
11645 if test -n "$PKG_CONFIG"; then
11646         _pkg_min_version=0.9.0
11647         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11648 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
11649         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11650                 { echo "$as_me:$LINENO: result: yes" >&5
11651 echo "${ECHO_T}yes" >&6; }
11652         else
11653                 { echo "$as_me:$LINENO: result: no" >&5
11654 echo "${ECHO_T}no" >&6; }
11655                 PKG_CONFIG=""
11656         fi
11657
11658 fi
11659
11660 pkg_failed=no
11661 { echo "$as_me:$LINENO: checking for ALSA" >&5
11662 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
11663
11664 if test -n "$PKG_CONFIG"; then
11665     if test -n "$ALSA_CFLAGS"; then
11666         pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
11667     else
11668         if test -n "$PKG_CONFIG" && \
11669     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
11670   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
11671   ac_status=$?
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); }; then
11674   pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
11675 else
11676   pkg_failed=yes
11677 fi
11678     fi
11679 else
11680         pkg_failed=untried
11681 fi
11682 if test -n "$PKG_CONFIG"; then
11683     if test -n "$ALSA_LIBS"; then
11684         pkg_cv_ALSA_LIBS="$ALSA_LIBS"
11685     else
11686         if test -n "$PKG_CONFIG" && \
11687     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
11688   ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
11689   ac_status=$?
11690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691   (exit $ac_status); }; then
11692   pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
11693 else
11694   pkg_failed=yes
11695 fi
11696     fi
11697 else
11698         pkg_failed=untried
11699 fi
11700
11701
11702
11703 if test $pkg_failed = yes; then
11704
11705 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11706         _pkg_short_errors_supported=yes
11707 else
11708         _pkg_short_errors_supported=no
11709 fi
11710         if test $_pkg_short_errors_supported = yes; then
11711                 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
11712         else
11713                 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
11714         fi
11715         # Put the nasty error message in config.log where it belongs
11716         echo "$ALSA_PKG_ERRORS" >&5
11717
11718         { { echo "$as_me:$LINENO: error: Package requirements (alsa) were not met:
11719
11720 $ALSA_PKG_ERRORS
11721
11722 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11723 installed software in a non-standard prefix.
11724
11725 Alternatively, you may set the environment variables ALSA_CFLAGS
11726 and ALSA_LIBS to avoid the need to call pkg-config.
11727 See the pkg-config man page for more details.
11728 " >&5
11729 echo "$as_me: error: Package requirements (alsa) were not met:
11730
11731 $ALSA_PKG_ERRORS
11732
11733 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11734 installed software in a non-standard prefix.
11735
11736 Alternatively, you may set the environment variables ALSA_CFLAGS
11737 and ALSA_LIBS to avoid the need to call pkg-config.
11738 See the pkg-config man page for more details.
11739 " >&2;}
11740    { (exit 1); exit 1; }; }
11741 elif test $pkg_failed = untried; then
11742         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
11743 is in your PATH or set the PKG_CONFIG environment variable to the full
11744 path to pkg-config.
11745
11746 Alternatively, you may set the environment variables ALSA_CFLAGS
11747 and ALSA_LIBS to avoid the need to call pkg-config.
11748 See the pkg-config man page for more details.
11749
11750 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11751 See \`config.log' for more details." >&5
11752 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
11753 is in your PATH or set the PKG_CONFIG environment variable to the full
11754 path to pkg-config.
11755
11756 Alternatively, you may set the environment variables ALSA_CFLAGS
11757 and ALSA_LIBS to avoid the need to call pkg-config.
11758 See the pkg-config man page for more details.
11759
11760 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11761 See \`config.log' for more details." >&2;}
11762    { (exit 1); exit 1; }; }
11763 else
11764         ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
11765         ALSA_LIBS=$pkg_cv_ALSA_LIBS
11766         { echo "$as_me:$LINENO: result: yes" >&5
11767 echo "${ECHO_T}yes" >&6; }
11768         :
11769 fi
11770
11771
11772 # Check whether --with-configdir was given.
11773 if test "${with_configdir+set}" = set; then
11774   withval=$with_configdir; confdir="$withval"
11775 else
11776   confdir=""
11777 fi
11778
11779 if test -z "$confdir"; then
11780     eval dir="$datadir"
11781     case "$dir" in
11782     /*) ;;
11783     *) dir="$prefix/share"
11784     esac
11785     confdir="$dir/alsa"
11786 fi
11787 ALSA_CONFIG_DIR="$confdir"
11788
11789 cat >>confdefs.h <<_ACEOF
11790 #define ALSA_CONFIG_DIR "$confdir"
11791 _ACEOF
11792
11793
11794
11795 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
11796
11797
11798 # Check whether --with-plugindir was given.
11799 if test "${with_plugindir+set}" = set; then
11800   withval=$with_plugindir; plugindir="$withval"
11801 else
11802   plugindir=""
11803 fi
11804
11805 if test -z "$plugindir"; then
11806     eval dir="$libdir"
11807     case "$dir" in
11808     /*) ;;
11809     *) dir="$dir"
11810     esac
11811     plugindir="$dir/$PACKAGE"
11812 fi
11813
11814 cat >>confdefs.h <<_ACEOF
11815 #define ALSA_PLUGIN_DIR "$plugindir"
11816 _ACEOF
11817
11818 ALSA_PLUGIN_DIR="$plugindir"
11819
11820
11821 { echo "$as_me:$LINENO: checking for versioned symbols" >&5
11822 echo $ECHO_N "checking for versioned symbols... $ECHO_C" >&6; }
11823
11824 # Check whether --with-versioned was given.
11825 if test "${with_versioned+set}" = set; then
11826   withval=$with_versioned; versioned="$withval"
11827 else
11828   versioned="yes"
11829 fi
11830
11831 if test "$versioned" = "yes"; then
11832   # it seems that GNU ld versions since 2.10 are not broken
11833   xres=`grep '^VERSION=' libtool | cut -d = -f 2 | cut -d \" -f 2`
11834   major=`echo $xres | cut -d . -f 1`
11835   minor=`echo $xres | cut -d . -f 2`
11836   pass=0
11837   if test $major -eq 1 -a $minor -gt 3; then
11838     pass=1
11839   else
11840     if test $major -gt 1; then
11841       pass=1
11842     fi
11843   fi
11844   if test $pass -eq 1; then
11845
11846 cat >>confdefs.h <<\_ACEOF
11847 #define VERSIONED_SYMBOLS
11848 _ACEOF
11849
11850     { echo "$as_me:$LINENO: result: yes" >&5
11851 echo "${ECHO_T}yes" >&6; }
11852   else
11853     { echo "$as_me:$LINENO: result: broken libtool - use libtool v1.4+; no versions" >&5
11854 echo "${ECHO_T}broken libtool - use libtool v1.4+; no versions" >&6; }
11855   fi
11856 else
11857   { echo "$as_me:$LINENO: result: no" >&5
11858 echo "${ECHO_T}no" >&6; }
11859 fi
11860  if test x$versioned = xyes; then
11861   VERSIONED_SYMBOLS_TRUE=
11862   VERSIONED_SYMBOLS_FALSE='#'
11863 else
11864   VERSIONED_SYMBOLS_TRUE='#'
11865   VERSIONED_SYMBOLS_FALSE=
11866 fi
11867
11868
11869 { echo "$as_me:$LINENO: checking for symbolic-functions" >&5
11870 echo $ECHO_N "checking for symbolic-functions... $ECHO_C" >&6; }
11871 # Check whether --enable-symbolic-functions was given.
11872 if test "${enable_symbolic_functions+set}" = set; then
11873   enableval=$enable_symbolic_functions; symfuncs="$enableval"
11874 else
11875   symfuncs="no"
11876 fi
11877
11878 if test "$symfuncs" = "yes"; then
11879   if ld --help | grep -q -- '-Bsymbolic-functions'; then
11880     { echo "$as_me:$LINENO: result: yes" >&5
11881 echo "${ECHO_T}yes" >&6; }
11882   else
11883     { echo "$as_me:$LINENO: result: not supported by ld" >&5
11884 echo "${ECHO_T}not supported by ld" >&6; }
11885     symfuncs="no"
11886   fi
11887 else
11888   { echo "$as_me:$LINENO: result: no" >&5
11889 echo "${ECHO_T}no" >&6; }
11890 fi
11891  if test x"$symfuncs" = xyes; then
11892   SYMBOLIC_FUNCTIONS_TRUE=
11893   SYMBOLIC_FUNCTIONS_FALSE='#'
11894 else
11895   SYMBOLIC_FUNCTIONS_TRUE='#'
11896   SYMBOLIC_FUNCTIONS_FALSE=
11897 fi
11898
11899
11900 { echo "$as_me:$LINENO: checking for custom symbol prefixes" >&5
11901 echo $ECHO_N "checking for custom symbol prefixes... $ECHO_C" >&6; }
11902 SYMBOL_PREFIX=` \
11903         echo "PREFIX=__USER_LABEL_PREFIX__" \
11904                 | ${CPP-${CC-gcc} -E} - 2>&1 \
11905                 | ${EGREP-grep} "^PREFIX=" \
11906                 | ${SED-sed} "s:^PREFIX=::"`
11907
11908 cat >>confdefs.h <<_ACEOF
11909 #define __SYMBOL_PREFIX "$SYMBOL_PREFIX"
11910 _ACEOF
11911
11912
11913 { echo "$as_me:$LINENO: result: $SYMBOL_PREFIX" >&5
11914 echo "${ECHO_T}$SYMBOL_PREFIX" >&6; }
11915
11916 { echo "$as_me:$LINENO: checking for debug" >&5
11917 echo $ECHO_N "checking for debug... $ECHO_C" >&6; }
11918
11919 # Check whether --with-debug was given.
11920 if test "${with_debug+set}" = set; then
11921   withval=$with_debug; debug="$withval"
11922 else
11923   debug="yes"
11924 fi
11925
11926 if test "$debug" = "yes"; then
11927   { echo "$as_me:$LINENO: result: yes" >&5
11928 echo "${ECHO_T}yes" >&6; }
11929 else
11930
11931 cat >>confdefs.h <<\_ACEOF
11932 #define NDEBUG
11933 _ACEOF
11934
11935   { echo "$as_me:$LINENO: result: no" >&5
11936 echo "${ECHO_T}no" >&6; }
11937 fi
11938
11939 if test "$debug" = "yes"; then
11940   { echo "$as_me:$LINENO: checking for debug assert" >&5
11941 echo $ECHO_N "checking for debug assert... $ECHO_C" >&6; }
11942   # Check whether --enable-debug-assert was given.
11943 if test "${enable_debug_assert+set}" = set; then
11944   enableval=$enable_debug_assert; debug_assert="$enableval"
11945 else
11946   debug_assert="no"
11947 fi
11948
11949   if test "$debug_assert" = "yes"; then
11950     { echo "$as_me:$LINENO: result: yes" >&5
11951 echo "${ECHO_T}yes" >&6; }
11952
11953 cat >>confdefs.h <<\_ACEOF
11954 #define ALSA_DEBUG_ASSERT
11955 _ACEOF
11956
11957   else
11958     { echo "$as_me:$LINENO: result: no" >&5
11959 echo "${ECHO_T}no" >&6; }
11960   fi
11961 fi
11962
11963
11964
11965 { echo "$as_me:$LINENO: checking for architecture" >&5
11966 echo $ECHO_N "checking for architecture... $ECHO_C" >&6; }
11967 case "$target" in
11968 i?86*)
11969   { echo "$as_me:$LINENO: result: x86" >&5
11970 echo "${ECHO_T}x86" >&6; }
11971   ;;
11972 x86_64*)
11973   { echo "$as_me:$LINENO: result: x86" >&5
11974 echo "${ECHO_T}x86" >&6; }
11975   ;;
11976 alpha*)
11977   { echo "$as_me:$LINENO: result: alpha" >&5
11978 echo "${ECHO_T}alpha" >&6; }
11979   ;;
11980 powerpc*|ppc*)
11981   { echo "$as_me:$LINENO: result: ppc" >&5
11982 echo "${ECHO_T}ppc" >&6; }
11983   CPPFLAGS="$CPPFLAGS -D__ppc__"
11984   ;;
11985 ia64*)
11986   { echo "$as_me:$LINENO: result: ia64" >&5
11987 echo "${ECHO_T}ia64" >&6; }
11988   CPPFLAGS="$CPPFLAGS -D__ia64__"
11989   ;;
11990 mips*)
11991   { echo "$as_me:$LINENO: result: mips" >&5
11992 echo "${ECHO_T}mips" >&6; }
11993   CPPFLAGS="$CPPFLAGS -D__mips__"
11994   ;;
11995 arm*)
11996   { echo "$as_me:$LINENO: result: arm" >&5
11997 echo "${ECHO_T}arm" >&6; }
11998   CPPFLAGS="$CPPFLAGS -D__arm__"
11999   ;;
12000 *)
12001   { echo "$as_me:$LINENO: result: $host_cpu" >&5
12002 echo "${ECHO_T}$host_cpu" >&6; }
12003   echo "No atomic operations supported.."
12004   ;;
12005 esac
12006
12007
12008 for ac_header in wordexp.h
12009 do
12010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12012   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12015   echo $ECHO_N "(cached) $ECHO_C" >&6
12016 fi
12017 ac_res=`eval echo '${'$as_ac_Header'}'`
12018                { echo "$as_me:$LINENO: result: $ac_res" >&5
12019 echo "${ECHO_T}$ac_res" >&6; }
12020 else
12021   # Is the header compilable?
12022 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 #include <$ac_header>
12032 _ACEOF
12033 rm -f conftest.$ac_objext
12034 if { (ac_try="$ac_compile"
12035 case "(($ac_try" in
12036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037   *) ac_try_echo=$ac_try;;
12038 esac
12039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040   (eval "$ac_compile") 2>conftest.er1
12041   ac_status=$?
12042   grep -v '^ *+' conftest.er1 >conftest.err
12043   rm -f conftest.er1
12044   cat conftest.err >&5
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); } && {
12047          test -z "$ac_c_werror_flag" ||
12048          test ! -s conftest.err
12049        } && test -s conftest.$ac_objext; then
12050   ac_header_compiler=yes
12051 else
12052   echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12054
12055         ac_header_compiler=no
12056 fi
12057
12058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12060 echo "${ECHO_T}$ac_header_compiler" >&6; }
12061
12062 # Is the header present?
12063 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12065 cat >conftest.$ac_ext <<_ACEOF
12066 /* confdefs.h.  */
12067 _ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h.  */
12071 #include <$ac_header>
12072 _ACEOF
12073 if { (ac_try="$ac_cpp conftest.$ac_ext"
12074 case "(($ac_try" in
12075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076   *) ac_try_echo=$ac_try;;
12077 esac
12078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12079   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12080   ac_status=$?
12081   grep -v '^ *+' conftest.er1 >conftest.err
12082   rm -f conftest.er1
12083   cat conftest.err >&5
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); } >/dev/null && {
12086          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12087          test ! -s conftest.err
12088        }; then
12089   ac_header_preproc=yes
12090 else
12091   echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12093
12094   ac_header_preproc=no
12095 fi
12096
12097 rm -f conftest.err conftest.$ac_ext
12098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12099 echo "${ECHO_T}$ac_header_preproc" >&6; }
12100
12101 # So?  What about this header?
12102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12103   yes:no: )
12104     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12107 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12108     ac_header_preproc=yes
12109     ;;
12110   no:yes:* )
12111     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12113     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12114 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12115     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12116 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12117     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12118 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12121     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12122 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12123
12124     ;;
12125 esac
12126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12129   echo $ECHO_N "(cached) $ECHO_C" >&6
12130 else
12131   eval "$as_ac_Header=\$ac_header_preproc"
12132 fi
12133 ac_res=`eval echo '${'$as_ac_Header'}'`
12134                { echo "$as_me:$LINENO: result: $ac_res" >&5
12135 echo "${ECHO_T}$ac_res" >&6; }
12136
12137 fi
12138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12139   cat >>confdefs.h <<_ACEOF
12140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12141 _ACEOF
12142
12143 fi
12144
12145 done
12146
12147
12148 #if test ! -L "$srcdir"/include/alsa ; then
12149 #  echo "Making a symlink include/alsa"
12150 #  rm -f "$srcdir"/include/alsa
12151 #  ln -sf . "$srcdir"/include/alsa
12152 #fi
12153
12154 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile examples/Makefile pkgconfig/Makefile pkgconfig/libascenario.pc"
12155
12156 cat >confcache <<\_ACEOF
12157 # This file is a shell script that caches the results of configure
12158 # tests run on this system so they can be shared between configure
12159 # scripts and configure runs, see configure's option --config-cache.
12160 # It is not useful on other systems.  If it contains results you don't
12161 # want to keep, you may remove or edit it.
12162 #
12163 # config.status only pays attention to the cache file if you give it
12164 # the --recheck option to rerun configure.
12165 #
12166 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12167 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12168 # following values.
12169
12170 _ACEOF
12171
12172 # The following way of writing the cache mishandles newlines in values,
12173 # but we know of no workaround that is simple, portable, and efficient.
12174 # So, we kill variables containing newlines.
12175 # Ultrix sh set writes to stderr and can't be redirected directly,
12176 # and sets the high bit in the cache file unless we assign to the vars.
12177 (
12178   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12179     eval ac_val=\$$ac_var
12180     case $ac_val in #(
12181     *${as_nl}*)
12182       case $ac_var in #(
12183       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12184 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12185       esac
12186       case $ac_var in #(
12187       _ | IFS | as_nl) ;; #(
12188       *) $as_unset $ac_var ;;
12189       esac ;;
12190     esac
12191   done
12192
12193   (set) 2>&1 |
12194     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12195     *${as_nl}ac_space=\ *)
12196       # `set' does not quote correctly, so add quotes (double-quote
12197       # substitution turns \\\\ into \\, and sed turns \\ into \).
12198       sed -n \
12199         "s/'/'\\\\''/g;
12200           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12201       ;; #(
12202     *)
12203       # `set' quotes correctly as required by POSIX, so do not add quotes.
12204       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12205       ;;
12206     esac |
12207     sort
12208 ) |
12209   sed '
12210      /^ac_cv_env_/b end
12211      t clear
12212      :clear
12213      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12214      t end
12215      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12216      :end' >>confcache
12217 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12218   if test -w "$cache_file"; then
12219     test "x$cache_file" != "x/dev/null" &&
12220       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12221 echo "$as_me: updating cache $cache_file" >&6;}
12222     cat confcache >$cache_file
12223   else
12224     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12225 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12226   fi
12227 fi
12228 rm -f confcache
12229
12230 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12231 # Let make expand exec_prefix.
12232 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12233
12234 DEFS=-DHAVE_CONFIG_H
12235
12236 ac_libobjs=
12237 ac_ltlibobjs=
12238 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12239   # 1. Remove the extension, and $U if already installed.
12240   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12241   ac_i=`echo "$ac_i" | sed "$ac_script"`
12242   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12243   #    will be set to the directory where LIBOBJS objects are built.
12244   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12245   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12246 done
12247 LIBOBJS=$ac_libobjs
12248
12249 LTLIBOBJS=$ac_ltlibobjs
12250
12251
12252 if test -z "${INSTALL_M4_TRUE}" && test -z "${INSTALL_M4_FALSE}"; then
12253   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_M4\" was never defined.
12254 Usually this means the macro was only invoked conditionally." >&5
12255 echo "$as_me: error: conditional \"INSTALL_M4\" was never defined.
12256 Usually this means the macro was only invoked conditionally." >&2;}
12257    { (exit 1); exit 1; }; }
12258 fi
12259 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12260   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12261 Usually this means the macro was only invoked conditionally." >&5
12262 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12263 Usually this means the macro was only invoked conditionally." >&2;}
12264    { (exit 1); exit 1; }; }
12265 fi
12266 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12267   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12268 Usually this means the macro was only invoked conditionally." >&5
12269 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12270 Usually this means the macro was only invoked conditionally." >&2;}
12271    { (exit 1); exit 1; }; }
12272 fi
12273 if test -z "${VERSIONED_SYMBOLS_TRUE}" && test -z "${VERSIONED_SYMBOLS_FALSE}"; then
12274   { { echo "$as_me:$LINENO: error: conditional \"VERSIONED_SYMBOLS\" was never defined.
12275 Usually this means the macro was only invoked conditionally." >&5
12276 echo "$as_me: error: conditional \"VERSIONED_SYMBOLS\" was never defined.
12277 Usually this means the macro was only invoked conditionally." >&2;}
12278    { (exit 1); exit 1; }; }
12279 fi
12280 if test -z "${SYMBOLIC_FUNCTIONS_TRUE}" && test -z "${SYMBOLIC_FUNCTIONS_FALSE}"; then
12281   { { echo "$as_me:$LINENO: error: conditional \"SYMBOLIC_FUNCTIONS\" was never defined.
12282 Usually this means the macro was only invoked conditionally." >&5
12283 echo "$as_me: error: conditional \"SYMBOLIC_FUNCTIONS\" was never defined.
12284 Usually this means the macro was only invoked conditionally." >&2;}
12285    { (exit 1); exit 1; }; }
12286 fi
12287
12288 : ${CONFIG_STATUS=./config.status}
12289 ac_clean_files_save=$ac_clean_files
12290 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12291 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12292 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12293 cat >$CONFIG_STATUS <<_ACEOF
12294 #! $SHELL
12295 # Generated by $as_me.
12296 # Run this file to recreate the current configuration.
12297 # Compiler output produced by configure, useful for debugging
12298 # configure, is in config.log if it exists.
12299
12300 debug=false
12301 ac_cs_recheck=false
12302 ac_cs_silent=false
12303 SHELL=\${CONFIG_SHELL-$SHELL}
12304 _ACEOF
12305
12306 cat >>$CONFIG_STATUS <<\_ACEOF
12307 ## --------------------- ##
12308 ## M4sh Initialization.  ##
12309 ## --------------------- ##
12310
12311 # Be more Bourne compatible
12312 DUALCASE=1; export DUALCASE # for MKS sh
12313 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12314   emulate sh
12315   NULLCMD=:
12316   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12317   # is contrary to our usage.  Disable this feature.
12318   alias -g '${1+"$@"}'='"$@"'
12319   setopt NO_GLOB_SUBST
12320 else
12321   case `(set -o) 2>/dev/null` in
12322   *posix*) set -o posix ;;
12323 esac
12324
12325 fi
12326
12327
12328
12329
12330 # PATH needs CR
12331 # Avoid depending upon Character Ranges.
12332 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12333 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12334 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12335 as_cr_digits='0123456789'
12336 as_cr_alnum=$as_cr_Letters$as_cr_digits
12337
12338 # The user is always right.
12339 if test "${PATH_SEPARATOR+set}" != set; then
12340   echo "#! /bin/sh" >conf$$.sh
12341   echo  "exit 0"   >>conf$$.sh
12342   chmod +x conf$$.sh
12343   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12344     PATH_SEPARATOR=';'
12345   else
12346     PATH_SEPARATOR=:
12347   fi
12348   rm -f conf$$.sh
12349 fi
12350
12351 # Support unset when possible.
12352 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12353   as_unset=unset
12354 else
12355   as_unset=false
12356 fi
12357
12358
12359 # IFS
12360 # We need space, tab and new line, in precisely that order.  Quoting is
12361 # there to prevent editors from complaining about space-tab.
12362 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12363 # splitting by setting IFS to empty value.)
12364 as_nl='
12365 '
12366 IFS=" ""        $as_nl"
12367
12368 # Find who we are.  Look in the path if we contain no directory separator.
12369 case $0 in
12370   *[\\/]* ) as_myself=$0 ;;
12371   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372 for as_dir in $PATH
12373 do
12374   IFS=$as_save_IFS
12375   test -z "$as_dir" && as_dir=.
12376   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12377 done
12378 IFS=$as_save_IFS
12379
12380      ;;
12381 esac
12382 # We did not find ourselves, most probably we were run as `sh COMMAND'
12383 # in which case we are not to be found in the path.
12384 if test "x$as_myself" = x; then
12385   as_myself=$0
12386 fi
12387 if test ! -f "$as_myself"; then
12388   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12389   { (exit 1); exit 1; }
12390 fi
12391
12392 # Work around bugs in pre-3.0 UWIN ksh.
12393 for as_var in ENV MAIL MAILPATH
12394 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12395 done
12396 PS1='$ '
12397 PS2='> '
12398 PS4='+ '
12399
12400 # NLS nuisances.
12401 for as_var in \
12402   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12403   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12404   LC_TELEPHONE LC_TIME
12405 do
12406   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12407     eval $as_var=C; export $as_var
12408   else
12409     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12410   fi
12411 done
12412
12413 # Required to use basename.
12414 if expr a : '\(a\)' >/dev/null 2>&1 &&
12415    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12416   as_expr=expr
12417 else
12418   as_expr=false
12419 fi
12420
12421 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12422   as_basename=basename
12423 else
12424   as_basename=false
12425 fi
12426
12427
12428 # Name of the executable.
12429 as_me=`$as_basename -- "$0" ||
12430 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12431          X"$0" : 'X\(//\)$' \| \
12432          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12433 echo X/"$0" |
12434     sed '/^.*\/\([^/][^/]*\)\/*$/{
12435             s//\1/
12436             q
12437           }
12438           /^X\/\(\/\/\)$/{
12439             s//\1/
12440             q
12441           }
12442           /^X\/\(\/\).*/{
12443             s//\1/
12444             q
12445           }
12446           s/.*/./; q'`
12447
12448 # CDPATH.
12449 $as_unset CDPATH
12450
12451
12452
12453   as_lineno_1=$LINENO
12454   as_lineno_2=$LINENO
12455   test "x$as_lineno_1" != "x$as_lineno_2" &&
12456   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12457
12458   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12459   # uniformly replaced by the line number.  The first 'sed' inserts a
12460   # line-number line after each line using $LINENO; the second 'sed'
12461   # does the real work.  The second script uses 'N' to pair each
12462   # line-number line with the line containing $LINENO, and appends
12463   # trailing '-' during substitution so that $LINENO is not a special
12464   # case at line end.
12465   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12466   # scripts with optimization help from Paolo Bonzini.  Blame Lee
12467   # E. McMahon (1931-1989) for sed's syntax.  :-)
12468   sed -n '
12469     p
12470     /[$]LINENO/=
12471   ' <$as_myself |
12472     sed '
12473       s/[$]LINENO.*/&-/
12474       t lineno
12475       b
12476       :lineno
12477       N
12478       :loop
12479       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12480       t loop
12481       s/-\n.*//
12482     ' >$as_me.lineno &&
12483   chmod +x "$as_me.lineno" ||
12484     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12485    { (exit 1); exit 1; }; }
12486
12487   # Don't try to exec as it changes $[0], causing all sort of problems
12488   # (the dirname of $[0] is not the place where we might find the
12489   # original and so on.  Autoconf is especially sensitive to this).
12490   . "./$as_me.lineno"
12491   # Exit status is that of the last command.
12492   exit
12493 }
12494
12495
12496 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12497   as_dirname=dirname
12498 else
12499   as_dirname=false
12500 fi
12501
12502 ECHO_C= ECHO_N= ECHO_T=
12503 case `echo -n x` in
12504 -n*)
12505   case `echo 'x\c'` in
12506   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12507   *)   ECHO_C='\c';;
12508   esac;;
12509 *)
12510   ECHO_N='-n';;
12511 esac
12512
12513 if expr a : '\(a\)' >/dev/null 2>&1 &&
12514    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12515   as_expr=expr
12516 else
12517   as_expr=false
12518 fi
12519
12520 rm -f conf$$ conf$$.exe conf$$.file
12521 if test -d conf$$.dir; then
12522   rm -f conf$$.dir/conf$$.file
12523 else
12524   rm -f conf$$.dir
12525   mkdir conf$$.dir
12526 fi
12527 echo >conf$$.file
12528 if ln -s conf$$.file conf$$ 2>/dev/null; then
12529   as_ln_s='ln -s'
12530   # ... but there are two gotchas:
12531   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12532   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12533   # In both cases, we have to default to `cp -p'.
12534   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12535     as_ln_s='cp -p'
12536 elif ln conf$$.file conf$$ 2>/dev/null; then
12537   as_ln_s=ln
12538 else
12539   as_ln_s='cp -p'
12540 fi
12541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12542 rmdir conf$$.dir 2>/dev/null
12543
12544 if mkdir -p . 2>/dev/null; then
12545   as_mkdir_p=:
12546 else
12547   test -d ./-p && rmdir ./-p
12548   as_mkdir_p=false
12549 fi
12550
12551 if test -x / >/dev/null 2>&1; then
12552   as_test_x='test -x'
12553 else
12554   if ls -dL / >/dev/null 2>&1; then
12555     as_ls_L_option=L
12556   else
12557     as_ls_L_option=
12558   fi
12559   as_test_x='
12560     eval sh -c '\''
12561       if test -d "$1"; then
12562         test -d "$1/.";
12563       else
12564         case $1 in
12565         -*)set "./$1";;
12566         esac;
12567         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12568         ???[sx]*):;;*)false;;esac;fi
12569     '\'' sh
12570   '
12571 fi
12572 as_executable_p=$as_test_x
12573
12574 # Sed expression to map a string onto a valid CPP name.
12575 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12576
12577 # Sed expression to map a string onto a valid variable name.
12578 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12579
12580
12581 exec 6>&1
12582
12583 # Save the log message, to keep $[0] and so on meaningful, and to
12584 # report actual input values of CONFIG_FILES etc. instead of their
12585 # values after options handling.
12586 ac_log="
12587 This file was extended by $as_me, which was
12588 generated by GNU Autoconf 2.61.  Invocation command line was
12589
12590   CONFIG_FILES    = $CONFIG_FILES
12591   CONFIG_HEADERS  = $CONFIG_HEADERS
12592   CONFIG_LINKS    = $CONFIG_LINKS
12593   CONFIG_COMMANDS = $CONFIG_COMMANDS
12594   $ $0 $@
12595
12596 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12597 "
12598
12599 _ACEOF
12600
12601 cat >>$CONFIG_STATUS <<_ACEOF
12602 # Files that config.status was made for.
12603 config_files="$ac_config_files"
12604 config_headers="$ac_config_headers"
12605 config_commands="$ac_config_commands"
12606
12607 _ACEOF
12608
12609 cat >>$CONFIG_STATUS <<\_ACEOF
12610 ac_cs_usage="\
12611 \`$as_me' instantiates files from templates according to the
12612 current configuration.
12613
12614 Usage: $0 [OPTIONS] [FILE]...
12615
12616   -h, --help       print this help, then exit
12617   -V, --version    print version number and configuration settings, then exit
12618   -q, --quiet      do not print progress messages
12619   -d, --debug      don't remove temporary files
12620       --recheck    update $as_me by reconfiguring in the same conditions
12621   --file=FILE[:TEMPLATE]
12622                    instantiate the configuration file FILE
12623   --header=FILE[:TEMPLATE]
12624                    instantiate the configuration header FILE
12625
12626 Configuration files:
12627 $config_files
12628
12629 Configuration headers:
12630 $config_headers
12631
12632 Configuration commands:
12633 $config_commands
12634
12635 Report bugs to <bug-autoconf@gnu.org>."
12636
12637 _ACEOF
12638 cat >>$CONFIG_STATUS <<_ACEOF
12639 ac_cs_version="\\
12640 config.status
12641 configured by $0, generated by GNU Autoconf 2.61,
12642   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12643
12644 Copyright (C) 2006 Free Software Foundation, Inc.
12645 This config.status script is free software; the Free Software Foundation
12646 gives unlimited permission to copy, distribute and modify it."
12647
12648 ac_pwd='$ac_pwd'
12649 srcdir='$srcdir'
12650 INSTALL='$INSTALL'
12651 MKDIR_P='$MKDIR_P'
12652 _ACEOF
12653
12654 cat >>$CONFIG_STATUS <<\_ACEOF
12655 # If no file are specified by the user, then we need to provide default
12656 # value.  By we need to know if files were specified by the user.
12657 ac_need_defaults=:
12658 while test $# != 0
12659 do
12660   case $1 in
12661   --*=*)
12662     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12663     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12664     ac_shift=:
12665     ;;
12666   *)
12667     ac_option=$1
12668     ac_optarg=$2
12669     ac_shift=shift
12670     ;;
12671   esac
12672
12673   case $ac_option in
12674   # Handling of the options.
12675   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12676     ac_cs_recheck=: ;;
12677   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12678     echo "$ac_cs_version"; exit ;;
12679   --debug | --debu | --deb | --de | --d | -d )
12680     debug=: ;;
12681   --file | --fil | --fi | --f )
12682     $ac_shift
12683     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12684     ac_need_defaults=false;;
12685   --header | --heade | --head | --hea )
12686     $ac_shift
12687     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12688     ac_need_defaults=false;;
12689   --he | --h)
12690     # Conflict between --help and --header
12691     { echo "$as_me: error: ambiguous option: $1
12692 Try \`$0 --help' for more information." >&2
12693    { (exit 1); exit 1; }; };;
12694   --help | --hel | -h )
12695     echo "$ac_cs_usage"; exit ;;
12696   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12697   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12698     ac_cs_silent=: ;;
12699
12700   # This is an error.
12701   -*) { echo "$as_me: error: unrecognized option: $1
12702 Try \`$0 --help' for more information." >&2
12703    { (exit 1); exit 1; }; } ;;
12704
12705   *) ac_config_targets="$ac_config_targets $1"
12706      ac_need_defaults=false ;;
12707
12708   esac
12709   shift
12710 done
12711
12712 ac_configure_extra_args=
12713
12714 if $ac_cs_silent; then
12715   exec 6>/dev/null
12716   ac_configure_extra_args="$ac_configure_extra_args --silent"
12717 fi
12718
12719 _ACEOF
12720 cat >>$CONFIG_STATUS <<_ACEOF
12721 if \$ac_cs_recheck; then
12722   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12723   CONFIG_SHELL=$SHELL
12724   export CONFIG_SHELL
12725   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12726 fi
12727
12728 _ACEOF
12729 cat >>$CONFIG_STATUS <<\_ACEOF
12730 exec 5>>config.log
12731 {
12732   echo
12733   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12734 ## Running $as_me. ##
12735 _ASBOX
12736   echo "$ac_log"
12737 } >&5
12738
12739 _ACEOF
12740 cat >>$CONFIG_STATUS <<_ACEOF
12741 #
12742 # INIT-COMMANDS
12743 #
12744 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12745
12746
12747 # The HP-UX ksh and POSIX shell print the target directory to stdout
12748 # if CDPATH is set.
12749 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12750
12751 sed_quote_subst='$sed_quote_subst'
12752 double_quote_subst='$double_quote_subst'
12753 delay_variable_subst='$delay_variable_subst'
12754 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12755 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12756 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12757 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12758 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12759 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12760 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12761 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12762 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12763 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12764 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12765 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12766 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12767 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12768 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12769 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12770 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12771 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12772 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12773 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12774 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12775 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12776 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12777 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12778 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12779 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12780 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12781 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12782 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12783 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12784 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12785 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12786 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12787 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12788 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12789 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12790 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12791 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12792 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12793 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12794 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12795 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12796 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12797 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12798 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"`'
12799 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"`'
12800 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12801 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12802 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12803 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12804 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12805 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12806 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12807 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12808 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12809 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12810 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12811 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12812 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12813 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12814 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12815 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12816 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12817 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12818 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12819 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12820 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12821 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12822 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12823 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12824 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12825 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12826 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12827 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12828 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12829 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12830 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12831 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12832 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12833 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12834 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12835 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12836 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12837 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12838 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12839 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12840 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12841 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12842 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12843 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12844 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12845 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12846 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12847 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12848 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12849 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12850 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12851 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12852 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12853 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12854 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12855 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12856 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12857 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12858 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12859 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12860 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12861 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12862 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12863 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12864 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12865 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12866 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12867 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12868 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12869 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12870 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12871 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12872
12873 LTCC='$LTCC'
12874 LTCFLAGS='$LTCFLAGS'
12875 compiler='$compiler_DEFAULT'
12876
12877 # Quote evaled strings.
12878 for var in SED \
12879 GREP \
12880 EGREP \
12881 FGREP \
12882 LD \
12883 NM \
12884 LN_S \
12885 lt_SP2NL \
12886 lt_NL2SP \
12887 reload_flag \
12888 OBJDUMP \
12889 deplibs_check_method \
12890 file_magic_cmd \
12891 AR \
12892 AR_FLAGS \
12893 STRIP \
12894 RANLIB \
12895 CC \
12896 CFLAGS \
12897 compiler \
12898 lt_cv_sys_global_symbol_pipe \
12899 lt_cv_sys_global_symbol_to_cdecl \
12900 lt_cv_sys_global_symbol_to_c_name_address \
12901 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12902 SHELL \
12903 ECHO \
12904 lt_prog_compiler_no_builtin_flag \
12905 lt_prog_compiler_wl \
12906 lt_prog_compiler_pic \
12907 lt_prog_compiler_static \
12908 lt_cv_prog_compiler_c_o \
12909 need_locks \
12910 DSYMUTIL \
12911 NMEDIT \
12912 LIPO \
12913 OTOOL \
12914 OTOOL64 \
12915 shrext_cmds \
12916 export_dynamic_flag_spec \
12917 whole_archive_flag_spec \
12918 compiler_needs_object \
12919 with_gnu_ld \
12920 allow_undefined_flag \
12921 no_undefined_flag \
12922 hardcode_libdir_flag_spec \
12923 hardcode_libdir_flag_spec_ld \
12924 hardcode_libdir_separator \
12925 fix_srcfile_path \
12926 exclude_expsyms \
12927 include_expsyms \
12928 file_list_spec \
12929 variables_saved_for_relink \
12930 libname_spec \
12931 library_names_spec \
12932 soname_spec \
12933 finish_eval \
12934 old_striplib \
12935 striplib; do
12936     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12937     *[\\\\\\\`\\"\\\$]*)
12938       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12939       ;;
12940     *)
12941       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12942       ;;
12943     esac
12944 done
12945
12946 # Double-quote double-evaled strings.
12947 for var in reload_cmds \
12948 old_postinstall_cmds \
12949 old_postuninstall_cmds \
12950 old_archive_cmds \
12951 extract_expsyms_cmds \
12952 old_archive_from_new_cmds \
12953 old_archive_from_expsyms_cmds \
12954 archive_cmds \
12955 archive_expsym_cmds \
12956 module_cmds \
12957 module_expsym_cmds \
12958 export_symbols_cmds \
12959 prelink_cmds \
12960 postinstall_cmds \
12961 postuninstall_cmds \
12962 finish_cmds \
12963 sys_lib_search_path_spec \
12964 sys_lib_dlsearch_path_spec; do
12965     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12966     *[\\\\\\\`\\"\\\$]*)
12967       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12968       ;;
12969     *)
12970       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12971       ;;
12972     esac
12973 done
12974
12975 # Fix-up fallback echo if it was mangled by the above quoting rules.
12976 case \$lt_ECHO in
12977 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12978   ;;
12979 esac
12980
12981 ac_aux_dir='$ac_aux_dir'
12982 xsi_shell='$xsi_shell'
12983 lt_shell_append='$lt_shell_append'
12984
12985 # See if we are running on zsh, and set the options which allow our
12986 # commands through without removal of \ escapes INIT.
12987 if test -n "\${ZSH_VERSION+set}" ; then
12988    setopt NO_GLOB_SUBST
12989 fi
12990
12991
12992     PACKAGE='$PACKAGE'
12993     VERSION='$VERSION'
12994     TIMESTAMP='$TIMESTAMP'
12995     RM='$RM'
12996     ofile='$ofile'
12997
12998
12999
13000
13001 _ACEOF
13002
13003 cat >>$CONFIG_STATUS <<\_ACEOF
13004
13005 # Handling of arguments.
13006 for ac_config_target in $ac_config_targets
13007 do
13008   case $ac_config_target in
13009     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13010     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13011     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13012     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13013     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13014     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13015     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13016     "pkgconfig/Makefile") CONFIG_FILES="$CONFIG_FILES pkgconfig/Makefile" ;;
13017     "pkgconfig/libascenario.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libascenario.pc" ;;
13018
13019   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13020 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13021    { (exit 1); exit 1; }; };;
13022   esac
13023 done
13024
13025
13026 # If the user did not use the arguments to specify the items to instantiate,
13027 # then the envvar interface is used.  Set only those that are not.
13028 # We use the long form for the default assignment because of an extremely
13029 # bizarre bug on SunOS 4.1.3.
13030 if $ac_need_defaults; then
13031   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13032   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13033   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13034 fi
13035
13036 # Have a temporary directory for convenience.  Make it in the build tree
13037 # simply because there is no reason against having it here, and in addition,
13038 # creating and moving files from /tmp can sometimes cause problems.
13039 # Hook for its removal unless debugging.
13040 # Note that there is a small window in which the directory will not be cleaned:
13041 # after its creation but before its name has been assigned to `$tmp'.
13042 $debug ||
13043 {
13044   tmp=
13045   trap 'exit_status=$?
13046   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13047 ' 0
13048   trap '{ (exit 1); exit 1; }' 1 2 13 15
13049 }
13050 # Create a (secure) tmp directory for tmp files.
13051
13052 {
13053   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13054   test -n "$tmp" && test -d "$tmp"
13055 }  ||
13056 {
13057   tmp=./conf$$-$RANDOM
13058   (umask 077 && mkdir "$tmp")
13059 } ||
13060 {
13061    echo "$me: cannot create a temporary directory in ." >&2
13062    { (exit 1); exit 1; }
13063 }
13064
13065 #
13066 # Set up the sed scripts for CONFIG_FILES section.
13067 #
13068
13069 # No need to generate the scripts if there are no CONFIG_FILES.
13070 # This happens for instance when ./config.status config.h
13071 if test -n "$CONFIG_FILES"; then
13072
13073 _ACEOF
13074
13075
13076
13077 ac_delim='%!_!# '
13078 for ac_last_try in false false false false false :; do
13079   cat >conf$$subs.sed <<_ACEOF
13080 SHELL!$SHELL$ac_delim
13081 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13082 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13083 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13084 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13085 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13086 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13087 exec_prefix!$exec_prefix$ac_delim
13088 prefix!$prefix$ac_delim
13089 program_transform_name!$program_transform_name$ac_delim
13090 bindir!$bindir$ac_delim
13091 sbindir!$sbindir$ac_delim
13092 libexecdir!$libexecdir$ac_delim
13093 datarootdir!$datarootdir$ac_delim
13094 datadir!$datadir$ac_delim
13095 sysconfdir!$sysconfdir$ac_delim
13096 sharedstatedir!$sharedstatedir$ac_delim
13097 localstatedir!$localstatedir$ac_delim
13098 includedir!$includedir$ac_delim
13099 oldincludedir!$oldincludedir$ac_delim
13100 docdir!$docdir$ac_delim
13101 infodir!$infodir$ac_delim
13102 htmldir!$htmldir$ac_delim
13103 dvidir!$dvidir$ac_delim
13104 pdfdir!$pdfdir$ac_delim
13105 psdir!$psdir$ac_delim
13106 libdir!$libdir$ac_delim
13107 localedir!$localedir$ac_delim
13108 mandir!$mandir$ac_delim
13109 DEFS!$DEFS$ac_delim
13110 ECHO_C!$ECHO_C$ac_delim
13111 ECHO_N!$ECHO_N$ac_delim
13112 ECHO_T!$ECHO_T$ac_delim
13113 LIBS!$LIBS$ac_delim
13114 build_alias!$build_alias$ac_delim
13115 host_alias!$host_alias$ac_delim
13116 target_alias!$target_alias$ac_delim
13117 ASCENARIO_MAJOR_VERSION!$ASCENARIO_MAJOR_VERSION$ac_delim
13118 ASCENARIO_MINOR_VERSION!$ASCENARIO_MINOR_VERSION$ac_delim
13119 ASCENARIO_MICRO_VERSION!$ASCENARIO_MICRO_VERSION$ac_delim
13120 ASCENARIO_VERSION!$ASCENARIO_VERSION$ac_delim
13121 LT_VERSION!$LT_VERSION$ac_delim
13122 LT_RELEASE!$LT_RELEASE$ac_delim
13123 build!$build$ac_delim
13124 build_cpu!$build_cpu$ac_delim
13125 build_vendor!$build_vendor$ac_delim
13126 build_os!$build_os$ac_delim
13127 host!$host$ac_delim
13128 host_cpu!$host_cpu$ac_delim
13129 host_vendor!$host_vendor$ac_delim
13130 host_os!$host_os$ac_delim
13131 target!$target$ac_delim
13132 target_cpu!$target_cpu$ac_delim
13133 target_vendor!$target_vendor$ac_delim
13134 target_os!$target_os$ac_delim
13135 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13136 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13137 INSTALL_DATA!$INSTALL_DATA$ac_delim
13138 am__isrc!$am__isrc$ac_delim
13139 CYGPATH_W!$CYGPATH_W$ac_delim
13140 PACKAGE!$PACKAGE$ac_delim
13141 VERSION!$VERSION$ac_delim
13142 ACLOCAL!$ACLOCAL$ac_delim
13143 AUTOCONF!$AUTOCONF$ac_delim
13144 AUTOMAKE!$AUTOMAKE$ac_delim
13145 AUTOHEADER!$AUTOHEADER$ac_delim
13146 MAKEINFO!$MAKEINFO$ac_delim
13147 install_sh!$install_sh$ac_delim
13148 STRIP!$STRIP$ac_delim
13149 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13150 mkdir_p!$mkdir_p$ac_delim
13151 AWK!$AWK$ac_delim
13152 SET_MAKE!$SET_MAKE$ac_delim
13153 am__leading_dot!$am__leading_dot$ac_delim
13154 AMTAR!$AMTAR$ac_delim
13155 am__tar!$am__tar$ac_delim
13156 am__untar!$am__untar$ac_delim
13157 INSTALL_M4_TRUE!$INSTALL_M4_TRUE$ac_delim
13158 INSTALL_M4_FALSE!$INSTALL_M4_FALSE$ac_delim
13159 CC!$CC$ac_delim
13160 CFLAGS!$CFLAGS$ac_delim
13161 LDFLAGS!$LDFLAGS$ac_delim
13162 CPPFLAGS!$CPPFLAGS$ac_delim
13163 ac_ct_CC!$ac_ct_CC$ac_delim
13164 EXEEXT!$EXEEXT$ac_delim
13165 OBJEXT!$OBJEXT$ac_delim
13166 DEPDIR!$DEPDIR$ac_delim
13167 am__include!$am__include$ac_delim
13168 am__quote!$am__quote$ac_delim
13169 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
13170 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
13171 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
13172 CCDEPMODE!$CCDEPMODE$ac_delim
13173 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13174 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
13175 CPP!$CPP$ac_delim
13176 LN_S!$LN_S$ac_delim
13177 _ACEOF
13178
13179   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13180     break
13181   elif $ac_last_try; then
13182     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13183 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13184    { (exit 1); exit 1; }; }
13185   else
13186     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13187   fi
13188 done
13189
13190 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13191 if test -n "$ac_eof"; then
13192   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13193   ac_eof=`expr $ac_eof + 1`
13194 fi
13195
13196 cat >>$CONFIG_STATUS <<_ACEOF
13197 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13198 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13199 _ACEOF
13200 sed '
13201 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13202 s/^/s,@/; s/!/@,|#_!!_#|/
13203 :n
13204 t n
13205 s/'"$ac_delim"'$/,g/; t
13206 s/$/\\/; p
13207 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13208 ' >>$CONFIG_STATUS <conf$$subs.sed
13209 rm -f conf$$subs.sed
13210 cat >>$CONFIG_STATUS <<_ACEOF
13211 CEOF$ac_eof
13212 _ACEOF
13213
13214
13215 ac_delim='%!_!# '
13216 for ac_last_try in false false false false false :; do
13217   cat >conf$$subs.sed <<_ACEOF
13218 LIBTOOL!$LIBTOOL$ac_delim
13219 SED!$SED$ac_delim
13220 GREP!$GREP$ac_delim
13221 EGREP!$EGREP$ac_delim
13222 FGREP!$FGREP$ac_delim
13223 LD!$LD$ac_delim
13224 DUMPBIN!$DUMPBIN$ac_delim
13225 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
13226 NM!$NM$ac_delim
13227 OBJDUMP!$OBJDUMP$ac_delim
13228 AR!$AR$ac_delim
13229 RANLIB!$RANLIB$ac_delim
13230 lt_ECHO!$lt_ECHO$ac_delim
13231 DSYMUTIL!$DSYMUTIL$ac_delim
13232 NMEDIT!$NMEDIT$ac_delim
13233 LIPO!$LIPO$ac_delim
13234 OTOOL!$OTOOL$ac_delim
13235 OTOOL64!$OTOOL64$ac_delim
13236 LIBTOOL_VERSION_INFO!$LIBTOOL_VERSION_INFO$ac_delim
13237 PKG_CONFIG!$PKG_CONFIG$ac_delim
13238 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
13239 ALSA_LIBS!$ALSA_LIBS$ac_delim
13240 ALSA_CONFIG_DIR!$ALSA_CONFIG_DIR$ac_delim
13241 ALSA_PLUGIN_DIR!$ALSA_PLUGIN_DIR$ac_delim
13242 VERSIONED_SYMBOLS_TRUE!$VERSIONED_SYMBOLS_TRUE$ac_delim
13243 VERSIONED_SYMBOLS_FALSE!$VERSIONED_SYMBOLS_FALSE$ac_delim
13244 SYMBOLIC_FUNCTIONS_TRUE!$SYMBOLIC_FUNCTIONS_TRUE$ac_delim
13245 SYMBOLIC_FUNCTIONS_FALSE!$SYMBOLIC_FUNCTIONS_FALSE$ac_delim
13246 SYMBOL_PREFIX!$SYMBOL_PREFIX$ac_delim
13247 ALSA_DEPLIBS!$ALSA_DEPLIBS$ac_delim
13248 LIBOBJS!$LIBOBJS$ac_delim
13249 LTLIBOBJS!$LTLIBOBJS$ac_delim
13250 _ACEOF
13251
13252   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 32; then
13253     break
13254   elif $ac_last_try; then
13255     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13256 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13257    { (exit 1); exit 1; }; }
13258   else
13259     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13260   fi
13261 done
13262
13263 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13264 if test -n "$ac_eof"; then
13265   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13266   ac_eof=`expr $ac_eof + 1`
13267 fi
13268
13269 cat >>$CONFIG_STATUS <<_ACEOF
13270 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13271 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13272 _ACEOF
13273 sed '
13274 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13275 s/^/s,@/; s/!/@,|#_!!_#|/
13276 :n
13277 t n
13278 s/'"$ac_delim"'$/,g/; t
13279 s/$/\\/; p
13280 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13281 ' >>$CONFIG_STATUS <conf$$subs.sed
13282 rm -f conf$$subs.sed
13283 cat >>$CONFIG_STATUS <<_ACEOF
13284 :end
13285 s/|#_!!_#|//g
13286 CEOF$ac_eof
13287 _ACEOF
13288
13289
13290 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13291 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13292 # trailing colons and then remove the whole line if VPATH becomes empty
13293 # (actually we leave an empty line to preserve line numbers).
13294 if test "x$srcdir" = x.; then
13295   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13296 s/:*\$(srcdir):*/:/
13297 s/:*\${srcdir}:*/:/
13298 s/:*@srcdir@:*/:/
13299 s/^\([^=]*=[     ]*\):*/\1/
13300 s/:*$//
13301 s/^[^=]*=[       ]*$//
13302 }'
13303 fi
13304
13305 cat >>$CONFIG_STATUS <<\_ACEOF
13306 fi # test -n "$CONFIG_FILES"
13307
13308
13309 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
13310 do
13311   case $ac_tag in
13312   :[FHLC]) ac_mode=$ac_tag; continue;;
13313   esac
13314   case $ac_mode$ac_tag in
13315   :[FHL]*:*);;
13316   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13317 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13318    { (exit 1); exit 1; }; };;
13319   :[FH]-) ac_tag=-:-;;
13320   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13321   esac
13322   ac_save_IFS=$IFS
13323   IFS=:
13324   set x $ac_tag
13325   IFS=$ac_save_IFS
13326   shift
13327   ac_file=$1
13328   shift
13329
13330   case $ac_mode in
13331   :L) ac_source=$1;;
13332   :[FH])
13333     ac_file_inputs=
13334     for ac_f
13335     do
13336       case $ac_f in
13337       -) ac_f="$tmp/stdin";;
13338       *) # Look for the file first in the build tree, then in the source tree
13339          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13340          # because $ac_f cannot contain `:'.
13341          test -f "$ac_f" ||
13342            case $ac_f in
13343            [\\/$]*) false;;
13344            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13345            esac ||
13346            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13347 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13348    { (exit 1); exit 1; }; };;
13349       esac
13350       ac_file_inputs="$ac_file_inputs $ac_f"
13351     done
13352
13353     # Let's still pretend it is `configure' which instantiates (i.e., don't
13354     # use $as_me), people would be surprised to read:
13355     #    /* config.h.  Generated by config.status.  */
13356     configure_input="Generated from "`IFS=:
13357           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13358     if test x"$ac_file" != x-; then
13359       configure_input="$ac_file.  $configure_input"
13360       { echo "$as_me:$LINENO: creating $ac_file" >&5
13361 echo "$as_me: creating $ac_file" >&6;}
13362     fi
13363
13364     case $ac_tag in
13365     *:-:* | *:-) cat >"$tmp/stdin";;
13366     esac
13367     ;;
13368   esac
13369
13370   ac_dir=`$as_dirname -- "$ac_file" ||
13371 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13372          X"$ac_file" : 'X\(//\)[^/]' \| \
13373          X"$ac_file" : 'X\(//\)$' \| \
13374          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13375 echo X"$ac_file" |
13376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13377             s//\1/
13378             q
13379           }
13380           /^X\(\/\/\)[^/].*/{
13381             s//\1/
13382             q
13383           }
13384           /^X\(\/\/\)$/{
13385             s//\1/
13386             q
13387           }
13388           /^X\(\/\).*/{
13389             s//\1/
13390             q
13391           }
13392           s/.*/./; q'`
13393   { as_dir="$ac_dir"
13394   case $as_dir in #(
13395   -*) as_dir=./$as_dir;;
13396   esac
13397   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13398     as_dirs=
13399     while :; do
13400       case $as_dir in #(
13401       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13402       *) as_qdir=$as_dir;;
13403       esac
13404       as_dirs="'$as_qdir' $as_dirs"
13405       as_dir=`$as_dirname -- "$as_dir" ||
13406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13407          X"$as_dir" : 'X\(//\)[^/]' \| \
13408          X"$as_dir" : 'X\(//\)$' \| \
13409          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13410 echo X"$as_dir" |
13411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13412             s//\1/
13413             q
13414           }
13415           /^X\(\/\/\)[^/].*/{
13416             s//\1/
13417             q
13418           }
13419           /^X\(\/\/\)$/{
13420             s//\1/
13421             q
13422           }
13423           /^X\(\/\).*/{
13424             s//\1/
13425             q
13426           }
13427           s/.*/./; q'`
13428       test -d "$as_dir" && break
13429     done
13430     test -z "$as_dirs" || eval "mkdir $as_dirs"
13431   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13432 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13433    { (exit 1); exit 1; }; }; }
13434   ac_builddir=.
13435
13436 case "$ac_dir" in
13437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13438 *)
13439   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13440   # A ".." for each directory in $ac_dir_suffix.
13441   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13442   case $ac_top_builddir_sub in
13443   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13444   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13445   esac ;;
13446 esac
13447 ac_abs_top_builddir=$ac_pwd
13448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13449 # for backward compatibility:
13450 ac_top_builddir=$ac_top_build_prefix
13451
13452 case $srcdir in
13453   .)  # We are building in place.
13454     ac_srcdir=.
13455     ac_top_srcdir=$ac_top_builddir_sub
13456     ac_abs_top_srcdir=$ac_pwd ;;
13457   [\\/]* | ?:[\\/]* )  # Absolute name.
13458     ac_srcdir=$srcdir$ac_dir_suffix;
13459     ac_top_srcdir=$srcdir
13460     ac_abs_top_srcdir=$srcdir ;;
13461   *) # Relative name.
13462     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13463     ac_top_srcdir=$ac_top_build_prefix$srcdir
13464     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13465 esac
13466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13467
13468
13469   case $ac_mode in
13470   :F)
13471   #
13472   # CONFIG_FILE
13473   #
13474
13475   case $INSTALL in
13476   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13477   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13478   esac
13479   ac_MKDIR_P=$MKDIR_P
13480   case $MKDIR_P in
13481   [\\/$]* | ?:[\\/]* ) ;;
13482   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13483   esac
13484 _ACEOF
13485
13486 cat >>$CONFIG_STATUS <<\_ACEOF
13487 # If the template does not know about datarootdir, expand it.
13488 # FIXME: This hack should be removed a few years after 2.60.
13489 ac_datarootdir_hack=; ac_datarootdir_seen=
13490
13491 case `sed -n '/datarootdir/ {
13492   p
13493   q
13494 }
13495 /@datadir@/p
13496 /@docdir@/p
13497 /@infodir@/p
13498 /@localedir@/p
13499 /@mandir@/p
13500 ' $ac_file_inputs` in
13501 *datarootdir*) ac_datarootdir_seen=yes;;
13502 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13503   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13504 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13505 _ACEOF
13506 cat >>$CONFIG_STATUS <<_ACEOF
13507   ac_datarootdir_hack='
13508   s&@datadir@&$datadir&g
13509   s&@docdir@&$docdir&g
13510   s&@infodir@&$infodir&g
13511   s&@localedir@&$localedir&g
13512   s&@mandir@&$mandir&g
13513     s&\\\${datarootdir}&$datarootdir&g' ;;
13514 esac
13515 _ACEOF
13516
13517 # Neutralize VPATH when `$srcdir' = `.'.
13518 # Shell code in configure.ac might set extrasub.
13519 # FIXME: do we really want to maintain this feature?
13520 cat >>$CONFIG_STATUS <<_ACEOF
13521   sed "$ac_vpsub
13522 $extrasub
13523 _ACEOF
13524 cat >>$CONFIG_STATUS <<\_ACEOF
13525 :t
13526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13527 s&@configure_input@&$configure_input&;t t
13528 s&@top_builddir@&$ac_top_builddir_sub&;t t
13529 s&@srcdir@&$ac_srcdir&;t t
13530 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13531 s&@top_srcdir@&$ac_top_srcdir&;t t
13532 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13533 s&@builddir@&$ac_builddir&;t t
13534 s&@abs_builddir@&$ac_abs_builddir&;t t
13535 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13536 s&@INSTALL@&$ac_INSTALL&;t t
13537 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13538 $ac_datarootdir_hack
13539 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13540
13541 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13542   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13543   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13544   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13545 which seems to be undefined.  Please make sure it is defined." >&5
13546 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13547 which seems to be undefined.  Please make sure it is defined." >&2;}
13548
13549   rm -f "$tmp/stdin"
13550   case $ac_file in
13551   -) cat "$tmp/out"; rm -f "$tmp/out";;
13552   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13553   esac
13554  ;;
13555   :H)
13556   #
13557   # CONFIG_HEADER
13558   #
13559 _ACEOF
13560
13561 # Transform confdefs.h into a sed script `conftest.defines', that
13562 # substitutes the proper values into config.h.in to produce config.h.
13563 rm -f conftest.defines conftest.tail
13564 # First, append a space to every undef/define line, to ease matching.
13565 echo 's/$/ /' >conftest.defines
13566 # Then, protect against being on the right side of a sed subst, or in
13567 # an unquoted here document, in config.status.  If some macros were
13568 # called several times there might be several #defines for the same
13569 # symbol, which is useless.  But do not sort them, since the last
13570 # AC_DEFINE must be honored.
13571 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13572 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13573 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13574 # PARAMS is the parameter list in the macro definition--in most cases, it's
13575 # just an empty string.
13576 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
13577 ac_dB='\\)[      (].*,\\1define\\2'
13578 ac_dC=' '
13579 ac_dD=' ,'
13580
13581 uniq confdefs.h |
13582   sed -n '
13583         t rset
13584         :rset
13585         s/^[     ]*#[    ]*define[       ][      ]*//
13586         t ok
13587         d
13588         :ok
13589         s/[\\&,]/\\&/g
13590         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13591         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13592   ' >>conftest.defines
13593
13594 # Remove the space that was appended to ease matching.
13595 # Then replace #undef with comments.  This is necessary, for
13596 # example, in the case of _POSIX_SOURCE, which is predefined and required
13597 # on some systems where configure will not decide to define it.
13598 # (The regexp can be short, since the line contains either #define or #undef.)
13599 echo 's/ $//
13600 s,^[     #]*u.*,/* & */,' >>conftest.defines
13601
13602 # Break up conftest.defines:
13603 ac_max_sed_lines=50
13604
13605 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13606 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13607 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13608 # et cetera.
13609 ac_in='$ac_file_inputs'
13610 ac_out='"$tmp/out1"'
13611 ac_nxt='"$tmp/out2"'
13612
13613 while :
13614 do
13615   # Write a here document:
13616     cat >>$CONFIG_STATUS <<_ACEOF
13617     # First, check the format of the line:
13618     cat >"\$tmp/defines.sed" <<\\CEOF
13619 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
13620 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
13621 b
13622 :def
13623 _ACEOF
13624   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13625   echo 'CEOF
13626     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13627   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13628   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13629   grep . conftest.tail >/dev/null || break
13630   rm -f conftest.defines
13631   mv conftest.tail conftest.defines
13632 done
13633 rm -f conftest.defines conftest.tail
13634
13635 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13636 cat >>$CONFIG_STATUS <<\_ACEOF
13637   if test x"$ac_file" != x-; then
13638     echo "/* $configure_input  */" >"$tmp/config.h"
13639     cat "$ac_result" >>"$tmp/config.h"
13640     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13641       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13642 echo "$as_me: $ac_file is unchanged" >&6;}
13643     else
13644       rm -f $ac_file
13645       mv "$tmp/config.h" $ac_file
13646     fi
13647   else
13648     echo "/* $configure_input  */"
13649     cat "$ac_result"
13650   fi
13651   rm -f "$tmp/out12"
13652 # Compute $ac_file's index in $config_headers.
13653 _am_arg=$ac_file
13654 _am_stamp_count=1
13655 for _am_header in $config_headers :; do
13656   case $_am_header in
13657     $_am_arg | $_am_arg:* )
13658       break ;;
13659     * )
13660       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13661   esac
13662 done
13663 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13664 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13665          X"$_am_arg" : 'X\(//\)[^/]' \| \
13666          X"$_am_arg" : 'X\(//\)$' \| \
13667          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13668 echo X"$_am_arg" |
13669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13670             s//\1/
13671             q
13672           }
13673           /^X\(\/\/\)[^/].*/{
13674             s//\1/
13675             q
13676           }
13677           /^X\(\/\/\)$/{
13678             s//\1/
13679             q
13680           }
13681           /^X\(\/\).*/{
13682             s//\1/
13683             q
13684           }
13685           s/.*/./; q'`/stamp-h$_am_stamp_count
13686  ;;
13687
13688   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13689 echo "$as_me: executing $ac_file commands" >&6;}
13690  ;;
13691   esac
13692
13693
13694   case $ac_file$ac_mode in
13695     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13696   # Autoconf 2.62 quotes --file arguments for eval, but not when files
13697   # are listed without --file.  Let's play safe and only enable the eval
13698   # if we detect the quoting.
13699   case $CONFIG_FILES in
13700   *\'*) eval set x "$CONFIG_FILES" ;;
13701   *)   set x $CONFIG_FILES ;;
13702   esac
13703   shift
13704   for mf
13705   do
13706     # Strip MF so we end up with the name of the file.
13707     mf=`echo "$mf" | sed -e 's/:.*$//'`
13708     # Check whether this is an Automake generated Makefile or not.
13709     # We used to match only the files named `Makefile.in', but
13710     # some people rename them; so instead we look at the file content.
13711     # Grep'ing the first line is not enough: some people post-process
13712     # each Makefile.in and add a new line on top of each file to say so.
13713     # Grep'ing the whole file is not good either: AIX grep has a line
13714     # limit of 2048, but all sed's we know have understand at least 4000.
13715     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13716       dirpart=`$as_dirname -- "$mf" ||
13717 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13718          X"$mf" : 'X\(//\)[^/]' \| \
13719          X"$mf" : 'X\(//\)$' \| \
13720          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13721 echo X"$mf" |
13722     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13723             s//\1/
13724             q
13725           }
13726           /^X\(\/\/\)[^/].*/{
13727             s//\1/
13728             q
13729           }
13730           /^X\(\/\/\)$/{
13731             s//\1/
13732             q
13733           }
13734           /^X\(\/\).*/{
13735             s//\1/
13736             q
13737           }
13738           s/.*/./; q'`
13739     else
13740       continue
13741     fi
13742     # Extract the definition of DEPDIR, am__include, and am__quote
13743     # from the Makefile without running `make'.
13744     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13745     test -z "$DEPDIR" && continue
13746     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13747     test -z "am__include" && continue
13748     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13749     # When using ansi2knr, U may be empty or an underscore; expand it
13750     U=`sed -n 's/^U = //p' < "$mf"`
13751     # Find all dependency output files, they are included files with
13752     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13753     # simplest approach to changing $(DEPDIR) to its actual value in the
13754     # expansion.
13755     for file in `sed -n "
13756       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13757          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13758       # Make sure the directory exists.
13759       test -f "$dirpart/$file" && continue
13760       fdir=`$as_dirname -- "$file" ||
13761 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13762          X"$file" : 'X\(//\)[^/]' \| \
13763          X"$file" : 'X\(//\)$' \| \
13764          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13765 echo X"$file" |
13766     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13767             s//\1/
13768             q
13769           }
13770           /^X\(\/\/\)[^/].*/{
13771             s//\1/
13772             q
13773           }
13774           /^X\(\/\/\)$/{
13775             s//\1/
13776             q
13777           }
13778           /^X\(\/\).*/{
13779             s//\1/
13780             q
13781           }
13782           s/.*/./; q'`
13783       { as_dir=$dirpart/$fdir
13784   case $as_dir in #(
13785   -*) as_dir=./$as_dir;;
13786   esac
13787   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13788     as_dirs=
13789     while :; do
13790       case $as_dir in #(
13791       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13792       *) as_qdir=$as_dir;;
13793       esac
13794       as_dirs="'$as_qdir' $as_dirs"
13795       as_dir=`$as_dirname -- "$as_dir" ||
13796 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13797          X"$as_dir" : 'X\(//\)[^/]' \| \
13798          X"$as_dir" : 'X\(//\)$' \| \
13799          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13800 echo X"$as_dir" |
13801     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13802             s//\1/
13803             q
13804           }
13805           /^X\(\/\/\)[^/].*/{
13806             s//\1/
13807             q
13808           }
13809           /^X\(\/\/\)$/{
13810             s//\1/
13811             q
13812           }
13813           /^X\(\/\).*/{
13814             s//\1/
13815             q
13816           }
13817           s/.*/./; q'`
13818       test -d "$as_dir" && break
13819     done
13820     test -z "$as_dirs" || eval "mkdir $as_dirs"
13821   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13822 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13823    { (exit 1); exit 1; }; }; }
13824       # echo "creating $dirpart/$file"
13825       echo '# dummy' > "$dirpart/$file"
13826     done
13827   done
13828 }
13829  ;;
13830     "libtool":C)
13831
13832     # See if we are running on zsh, and set the options which allow our
13833     # commands through without removal of \ escapes.
13834     if test -n "${ZSH_VERSION+set}" ; then
13835       setopt NO_GLOB_SUBST
13836     fi
13837
13838     cfgfile="${ofile}T"
13839     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13840     $RM "$cfgfile"
13841
13842     cat <<_LT_EOF >> "$cfgfile"
13843 #! $SHELL
13844
13845 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13846 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13847 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13848 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13849 #
13850 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13851 #                 2006, 2007, 2008 Free Software Foundation, Inc.
13852 #   Written by Gordon Matzigkeit, 1996
13853 #
13854 #   This file is part of GNU Libtool.
13855 #
13856 # GNU Libtool is free software; you can redistribute it and/or
13857 # modify it under the terms of the GNU General Public License as
13858 # published by the Free Software Foundation; either version 2 of
13859 # the License, or (at your option) any later version.
13860 #
13861 # As a special exception to the GNU General Public License,
13862 # if you distribute this file as part of a program or library that
13863 # is built using GNU Libtool, you may include this file under the
13864 # same distribution terms that you use for the rest of that program.
13865 #
13866 # GNU Libtool is distributed in the hope that it will be useful,
13867 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13868 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13869 # GNU General Public License for more details.
13870 #
13871 # You should have received a copy of the GNU General Public License
13872 # along with GNU Libtool; see the file COPYING.  If not, a copy
13873 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13874 # obtained by writing to the Free Software Foundation, Inc.,
13875 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13876
13877
13878 # The names of the tagged configurations supported by this script.
13879 available_tags=""
13880
13881 # ### BEGIN LIBTOOL CONFIG
13882
13883 # Whether or not to build static libraries.
13884 build_old_libs=$enable_static
13885
13886 # Which release of libtool.m4 was used?
13887 macro_version=$macro_version
13888 macro_revision=$macro_revision
13889
13890 # Whether or not to build shared libraries.
13891 build_libtool_libs=$enable_shared
13892
13893 # What type of objects to build.
13894 pic_mode=$pic_mode
13895
13896 # Whether or not to optimize for fast installation.
13897 fast_install=$enable_fast_install
13898
13899 # The host system.
13900 host_alias=$host_alias
13901 host=$host
13902 host_os=$host_os
13903
13904 # The build system.
13905 build_alias=$build_alias
13906 build=$build
13907 build_os=$build_os
13908
13909 # A sed program that does not truncate output.
13910 SED=$lt_SED
13911
13912 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13913 Xsed="\$SED -e 1s/^X//"
13914
13915 # A grep program that handles long lines.
13916 GREP=$lt_GREP
13917
13918 # An ERE matcher.
13919 EGREP=$lt_EGREP
13920
13921 # A literal string matcher.
13922 FGREP=$lt_FGREP
13923
13924 # A BSD- or MS-compatible name lister.
13925 NM=$lt_NM
13926
13927 # Whether we need soft or hard links.
13928 LN_S=$lt_LN_S
13929
13930 # What is the maximum length of a command?
13931 max_cmd_len=$max_cmd_len
13932
13933 # Object file suffix (normally "o").
13934 objext=$ac_objext
13935
13936 # Executable file suffix (normally "").
13937 exeext=$exeext
13938
13939 # whether the shell understands "unset".
13940 lt_unset=$lt_unset
13941
13942 # turn spaces into newlines.
13943 SP2NL=$lt_lt_SP2NL
13944
13945 # turn newlines into spaces.
13946 NL2SP=$lt_lt_NL2SP
13947
13948 # How to create reloadable object files.
13949 reload_flag=$lt_reload_flag
13950 reload_cmds=$lt_reload_cmds
13951
13952 # An object symbol dumper.
13953 OBJDUMP=$lt_OBJDUMP
13954
13955 # Method to check whether dependent libraries are shared objects.
13956 deplibs_check_method=$lt_deplibs_check_method
13957
13958 # Command to use when deplibs_check_method == "file_magic".
13959 file_magic_cmd=$lt_file_magic_cmd
13960
13961 # The archiver.
13962 AR=$lt_AR
13963 AR_FLAGS=$lt_AR_FLAGS
13964
13965 # A symbol stripping program.
13966 STRIP=$lt_STRIP
13967
13968 # Commands used to install an old-style archive.
13969 RANLIB=$lt_RANLIB
13970 old_postinstall_cmds=$lt_old_postinstall_cmds
13971 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13972
13973 # A C compiler.
13974 LTCC=$lt_CC
13975
13976 # LTCC compiler flags.
13977 LTCFLAGS=$lt_CFLAGS
13978
13979 # Take the output of nm and produce a listing of raw symbols and C names.
13980 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13981
13982 # Transform the output of nm in a proper C declaration.
13983 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13984
13985 # Transform the output of nm in a C name address pair.
13986 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13987
13988 # Transform the output of nm in a C name address pair when lib prefix is needed.
13989 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13990
13991 # The name of the directory that contains temporary libtool files.
13992 objdir=$objdir
13993
13994 # Shell to use when invoking shell scripts.
13995 SHELL=$lt_SHELL
13996
13997 # An echo program that does not interpret backslashes.
13998 ECHO=$lt_ECHO
13999
14000 # Used to examine libraries when file_magic_cmd begins with "file".
14001 MAGIC_CMD=$MAGIC_CMD
14002
14003 # Must we lock files when doing compilation?
14004 need_locks=$lt_need_locks
14005
14006 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14007 DSYMUTIL=$lt_DSYMUTIL
14008
14009 # Tool to change global to local symbols on Mac OS X.
14010 NMEDIT=$lt_NMEDIT
14011
14012 # Tool to manipulate fat objects and archives on Mac OS X.
14013 LIPO=$lt_LIPO
14014
14015 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14016 OTOOL=$lt_OTOOL
14017
14018 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14019 OTOOL64=$lt_OTOOL64
14020
14021 # Old archive suffix (normally "a").
14022 libext=$libext
14023
14024 # Shared library suffix (normally ".so").
14025 shrext_cmds=$lt_shrext_cmds
14026
14027 # The commands to extract the exported symbol list from a shared archive.
14028 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14029
14030 # Variables whose values should be saved in libtool wrapper scripts and
14031 # restored at link time.
14032 variables_saved_for_relink=$lt_variables_saved_for_relink
14033
14034 # Do we need the "lib" prefix for modules?
14035 need_lib_prefix=$need_lib_prefix
14036
14037 # Do we need a version for libraries?
14038 need_version=$need_version
14039
14040 # Library versioning type.
14041 version_type=$version_type
14042
14043 # Shared library runtime path variable.
14044 runpath_var=$runpath_var
14045
14046 # Shared library path variable.
14047 shlibpath_var=$shlibpath_var
14048
14049 # Is shlibpath searched before the hard-coded library search path?
14050 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14051
14052 # Format of library name prefix.
14053 libname_spec=$lt_libname_spec
14054
14055 # List of archive names.  First name is the real one, the rest are links.
14056 # The last name is the one that the linker finds with -lNAME
14057 library_names_spec=$lt_library_names_spec
14058
14059 # The coded name of the library, if different from the real name.
14060 soname_spec=$lt_soname_spec
14061
14062 # Command to use after installation of a shared archive.
14063 postinstall_cmds=$lt_postinstall_cmds
14064
14065 # Command to use after uninstallation of a shared archive.
14066 postuninstall_cmds=$lt_postuninstall_cmds
14067
14068 # Commands used to finish a libtool library installation in a directory.
14069 finish_cmds=$lt_finish_cmds
14070
14071 # As "finish_cmds", except a single script fragment to be evaled but
14072 # not shown.
14073 finish_eval=$lt_finish_eval
14074
14075 # Whether we should hardcode library paths into libraries.
14076 hardcode_into_libs=$hardcode_into_libs
14077
14078 # Compile-time system search path for libraries.
14079 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14080
14081 # Run-time system search path for libraries.
14082 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14083
14084 # Whether dlopen is supported.
14085 dlopen_support=$enable_dlopen
14086
14087 # Whether dlopen of programs is supported.
14088 dlopen_self=$enable_dlopen_self
14089
14090 # Whether dlopen of statically linked programs is supported.
14091 dlopen_self_static=$enable_dlopen_self_static
14092
14093 # Commands to strip libraries.
14094 old_striplib=$lt_old_striplib
14095 striplib=$lt_striplib
14096
14097
14098 # The linker used to build libraries.
14099 LD=$lt_LD
14100
14101 # Commands used to build an old-style archive.
14102 old_archive_cmds=$lt_old_archive_cmds
14103
14104 # A language specific compiler.
14105 CC=$lt_compiler
14106
14107 # Is the compiler the GNU compiler?
14108 with_gcc=$GCC
14109
14110 # Compiler flag to turn off builtin functions.
14111 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14112
14113 # How to pass a linker flag through the compiler.
14114 wl=$lt_lt_prog_compiler_wl
14115
14116 # Additional compiler flags for building library objects.
14117 pic_flag=$lt_lt_prog_compiler_pic
14118
14119 # Compiler flag to prevent dynamic linking.
14120 link_static_flag=$lt_lt_prog_compiler_static
14121
14122 # Does compiler simultaneously support -c and -o options?
14123 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14124
14125 # Whether or not to add -lc for building shared libraries.
14126 build_libtool_need_lc=$archive_cmds_need_lc
14127
14128 # Whether or not to disallow shared libs when runtime libs are static.
14129 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14130
14131 # Compiler flag to allow reflexive dlopens.
14132 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14133
14134 # Compiler flag to generate shared objects directly from archives.
14135 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14136
14137 # Whether the compiler copes with passing no objects directly.
14138 compiler_needs_object=$lt_compiler_needs_object
14139
14140 # Create an old-style archive from a shared archive.
14141 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14142
14143 # Create a temporary old-style archive to link instead of a shared archive.
14144 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14145
14146 # Commands used to build a shared archive.
14147 archive_cmds=$lt_archive_cmds
14148 archive_expsym_cmds=$lt_archive_expsym_cmds
14149
14150 # Commands used to build a loadable module if different from building
14151 # a shared archive.
14152 module_cmds=$lt_module_cmds
14153 module_expsym_cmds=$lt_module_expsym_cmds
14154
14155 # Whether we are building with GNU ld or not.
14156 with_gnu_ld=$lt_with_gnu_ld
14157
14158 # Flag that allows shared libraries with undefined symbols to be built.
14159 allow_undefined_flag=$lt_allow_undefined_flag
14160
14161 # Flag that enforces no undefined symbols.
14162 no_undefined_flag=$lt_no_undefined_flag
14163
14164 # Flag to hardcode \$libdir into a binary during linking.
14165 # This must work even if \$libdir does not exist
14166 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14167
14168 # If ld is used when linking, flag to hardcode \$libdir into a binary
14169 # during linking.  This must work even if \$libdir does not exist.
14170 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14171
14172 # Whether we need a single "-rpath" flag with a separated argument.
14173 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14174
14175 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14176 # DIR into the resulting binary.
14177 hardcode_direct=$hardcode_direct
14178
14179 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14180 # DIR into the resulting binary and the resulting library dependency is
14181 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14182 # library is relocated.
14183 hardcode_direct_absolute=$hardcode_direct_absolute
14184
14185 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14186 # into the resulting binary.
14187 hardcode_minus_L=$hardcode_minus_L
14188
14189 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14190 # into the resulting binary.
14191 hardcode_shlibpath_var=$hardcode_shlibpath_var
14192
14193 # Set to "yes" if building a shared library automatically hardcodes DIR
14194 # into the library and all subsequent libraries and executables linked
14195 # against it.
14196 hardcode_automatic=$hardcode_automatic
14197
14198 # Set to yes if linker adds runtime paths of dependent libraries
14199 # to runtime path list.
14200 inherit_rpath=$inherit_rpath
14201
14202 # Whether libtool must link a program against all its dependency libraries.
14203 link_all_deplibs=$link_all_deplibs
14204
14205 # Fix the shell variable \$srcfile for the compiler.
14206 fix_srcfile_path=$lt_fix_srcfile_path
14207
14208 # Set to "yes" if exported symbols are required.
14209 always_export_symbols=$always_export_symbols
14210
14211 # The commands to list exported symbols.
14212 export_symbols_cmds=$lt_export_symbols_cmds
14213
14214 # Symbols that should not be listed in the preloaded symbols.
14215 exclude_expsyms=$lt_exclude_expsyms
14216
14217 # Symbols that must always be exported.
14218 include_expsyms=$lt_include_expsyms
14219
14220 # Commands necessary for linking programs (against libraries) with templates.
14221 prelink_cmds=$lt_prelink_cmds
14222
14223 # Specify filename containing input files.
14224 file_list_spec=$lt_file_list_spec
14225
14226 # How to hardcode a shared library path into an executable.
14227 hardcode_action=$hardcode_action
14228
14229 # ### END LIBTOOL CONFIG
14230
14231 _LT_EOF
14232
14233   case $host_os in
14234   aix3*)
14235     cat <<\_LT_EOF >> "$cfgfile"
14236 # AIX sometimes has problems with the GCC collect2 program.  For some
14237 # reason, if we set the COLLECT_NAMES environment variable, the problems
14238 # vanish in a puff of smoke.
14239 if test "X${COLLECT_NAMES+set}" != Xset; then
14240   COLLECT_NAMES=
14241   export COLLECT_NAMES
14242 fi
14243 _LT_EOF
14244     ;;
14245   esac
14246
14247
14248 ltmain="$ac_aux_dir/ltmain.sh"
14249
14250
14251   # We use sed instead of cat because bash on DJGPP gets confused if
14252   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14253   # text mode, it properly converts lines to CR/LF.  This bash problem
14254   # is reportedly fixed, but why not run on old versions too?
14255   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14256     || (rm -f "$cfgfile"; exit 1)
14257
14258   case $xsi_shell in
14259   yes)
14260     cat << \_LT_EOF >> "$cfgfile"
14261
14262 # func_dirname file append nondir_replacement
14263 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14264 # otherwise set result to NONDIR_REPLACEMENT.
14265 func_dirname ()
14266 {
14267   case ${1} in
14268     */*) func_dirname_result="${1%/*}${2}" ;;
14269     *  ) func_dirname_result="${3}" ;;
14270   esac
14271 }
14272
14273 # func_basename file
14274 func_basename ()
14275 {
14276   func_basename_result="${1##*/}"
14277 }
14278
14279 # func_dirname_and_basename file append nondir_replacement
14280 # perform func_basename and func_dirname in a single function
14281 # call:
14282 #   dirname:  Compute the dirname of FILE.  If nonempty,
14283 #             add APPEND to the result, otherwise set result
14284 #             to NONDIR_REPLACEMENT.
14285 #             value returned in "$func_dirname_result"
14286 #   basename: Compute filename of FILE.
14287 #             value retuned in "$func_basename_result"
14288 # Implementation must be kept synchronized with func_dirname
14289 # and func_basename. For efficiency, we do not delegate to
14290 # those functions but instead duplicate the functionality here.
14291 func_dirname_and_basename ()
14292 {
14293   case ${1} in
14294     */*) func_dirname_result="${1%/*}${2}" ;;
14295     *  ) func_dirname_result="${3}" ;;
14296   esac
14297   func_basename_result="${1##*/}"
14298 }
14299
14300 # func_stripname prefix suffix name
14301 # strip PREFIX and SUFFIX off of NAME.
14302 # PREFIX and SUFFIX must not contain globbing or regex special
14303 # characters, hashes, percent signs, but SUFFIX may contain a leading
14304 # dot (in which case that matches only a dot).
14305 func_stripname ()
14306 {
14307   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14308   # positional parameters, so assign one to ordinary parameter first.
14309   func_stripname_result=${3}
14310   func_stripname_result=${func_stripname_result#"${1}"}
14311   func_stripname_result=${func_stripname_result%"${2}"}
14312 }
14313
14314 # func_opt_split
14315 func_opt_split ()
14316 {
14317   func_opt_split_opt=${1%%=*}
14318   func_opt_split_arg=${1#*=}
14319 }
14320
14321 # func_lo2o object
14322 func_lo2o ()
14323 {
14324   case ${1} in
14325     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14326     *)    func_lo2o_result=${1} ;;
14327   esac
14328 }
14329
14330 # func_xform libobj-or-source
14331 func_xform ()
14332 {
14333   func_xform_result=${1%.*}.lo
14334 }
14335
14336 # func_arith arithmetic-term...
14337 func_arith ()
14338 {
14339   func_arith_result=$(( $* ))
14340 }
14341
14342 # func_len string
14343 # STRING may not start with a hyphen.
14344 func_len ()
14345 {
14346   func_len_result=${#1}
14347 }
14348
14349 _LT_EOF
14350     ;;
14351   *) # Bourne compatible functions.
14352     cat << \_LT_EOF >> "$cfgfile"
14353
14354 # func_dirname file append nondir_replacement
14355 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14356 # otherwise set result to NONDIR_REPLACEMENT.
14357 func_dirname ()
14358 {
14359   # Extract subdirectory from the argument.
14360   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14361   if test "X$func_dirname_result" = "X${1}"; then
14362     func_dirname_result="${3}"
14363   else
14364     func_dirname_result="$func_dirname_result${2}"
14365   fi
14366 }
14367
14368 # func_basename file
14369 func_basename ()
14370 {
14371   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14372 }
14373
14374
14375 # func_stripname prefix suffix name
14376 # strip PREFIX and SUFFIX off of NAME.
14377 # PREFIX and SUFFIX must not contain globbing or regex special
14378 # characters, hashes, percent signs, but SUFFIX may contain a leading
14379 # dot (in which case that matches only a dot).
14380 # func_strip_suffix prefix name
14381 func_stripname ()
14382 {
14383   case ${2} in
14384     .*) func_stripname_result=`$ECHO "X${3}" \
14385            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14386     *)  func_stripname_result=`$ECHO "X${3}" \
14387            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14388   esac
14389 }
14390
14391 # sed scripts:
14392 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14393 my_sed_long_arg='1s/^-[^=]*=//'
14394
14395 # func_opt_split
14396 func_opt_split ()
14397 {
14398   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14399   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14400 }
14401
14402 # func_lo2o object
14403 func_lo2o ()
14404 {
14405   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14406 }
14407
14408 # func_xform libobj-or-source
14409 func_xform ()
14410 {
14411   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14412 }
14413
14414 # func_arith arithmetic-term...
14415 func_arith ()
14416 {
14417   func_arith_result=`expr "$@"`
14418 }
14419
14420 # func_len string
14421 # STRING may not start with a hyphen.
14422 func_len ()
14423 {
14424   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14425 }
14426
14427 _LT_EOF
14428 esac
14429
14430 case $lt_shell_append in
14431   yes)
14432     cat << \_LT_EOF >> "$cfgfile"
14433
14434 # func_append var value
14435 # Append VALUE to the end of shell variable VAR.
14436 func_append ()
14437 {
14438   eval "$1+=\$2"
14439 }
14440 _LT_EOF
14441     ;;
14442   *)
14443     cat << \_LT_EOF >> "$cfgfile"
14444
14445 # func_append var value
14446 # Append VALUE to the end of shell variable VAR.
14447 func_append ()
14448 {
14449   eval "$1=\$$1\$2"
14450 }
14451
14452 _LT_EOF
14453     ;;
14454   esac
14455
14456
14457   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14458     || (rm -f "$cfgfile"; exit 1)
14459
14460   mv -f "$cfgfile" "$ofile" ||
14461     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14462   chmod +x "$ofile"
14463
14464  ;;
14465
14466   esac
14467 done # for ac_tag
14468
14469
14470 { (exit 0); exit 0; }
14471 _ACEOF
14472 chmod +x $CONFIG_STATUS
14473 ac_clean_files=$ac_clean_files_save
14474
14475
14476 # configure is writing to config.log, and then calls config.status.
14477 # config.status does its own redirection, appending to config.log.
14478 # Unfortunately, on DOS this fails, as config.log is still kept open
14479 # by configure, so config.status won't be able to write to it; its
14480 # output is simply discarded.  So we exec the FD to /dev/null,
14481 # effectively closing config.log, so it can be properly (re)opened and
14482 # appended to by config.status.  When coming back to configure, we
14483 # need to make the FD available again.
14484 if test "$no_create" != yes; then
14485   ac_cs_success=:
14486   ac_config_status_args=
14487   test "$silent" = yes &&
14488     ac_config_status_args="$ac_config_status_args --quiet"
14489   exec 5>/dev/null
14490   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14491   exec 5>>config.log
14492   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14493   # would make configure fail if this is the last instruction.
14494   $ac_cs_success || { (exit 1); exit 1; }
14495 fi
14496