Clean spec file for yocto compliance.
[platform/core/multimedia/libmm-ta.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libmm-ta 0.1.
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='libmm-ta'
723 PACKAGE_TARNAME='libmm-ta'
724 PACKAGE_VERSION='0.1'
725 PACKAGE_STRING='libmm-ta 0.1'
726 PACKAGE_BUGREPORT=''
727
728 ac_unique_file="src/mm_ta.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 INSTALL_PROGRAM
803 INSTALL_SCRIPT
804 INSTALL_DATA
805 am__isrc
806 CYGPATH_W
807 PACKAGE
808 VERSION
809 ACLOCAL
810 AUTOCONF
811 AUTOMAKE
812 AUTOHEADER
813 MAKEINFO
814 install_sh
815 STRIP
816 INSTALL_STRIP_PROGRAM
817 mkdir_p
818 AWK
819 SET_MAKE
820 am__leading_dot
821 AMTAR
822 am__tar
823 am__untar
824 CXX
825 CXXFLAGS
826 LDFLAGS
827 CPPFLAGS
828 ac_ct_CXX
829 EXEEXT
830 OBJEXT
831 DEPDIR
832 am__include
833 am__quote
834 AMDEP_TRUE
835 AMDEP_FALSE
836 AMDEPBACKSLASH
837 CXXDEPMODE
838 am__fastdepCXX_TRUE
839 am__fastdepCXX_FALSE
840 CC
841 CFLAGS
842 ac_ct_CC
843 CCDEPMODE
844 am__fastdepCC_TRUE
845 am__fastdepCC_FALSE
846 CPP
847 LN_S
848 LIBTOOL
849 build
850 build_cpu
851 build_vendor
852 build_os
853 host
854 host_cpu
855 host_vendor
856 host_os
857 SED
858 GREP
859 EGREP
860 FGREP
861 LD
862 DUMPBIN
863 ac_ct_DUMPBIN
864 NM
865 AR
866 RANLIB
867 lt_ECHO
868 DSYMUTIL
869 NMEDIT
870 LIPO
871 OTOOL
872 OTOOL64
873 CXXCPP
874 LIBOBJS
875 LTLIBOBJS'
876 ac_subst_files=''
877       ac_precious_vars='build_alias
878 host_alias
879 target_alias
880 CXX
881 CXXFLAGS
882 LDFLAGS
883 LIBS
884 CPPFLAGS
885 CCC
886 CC
887 CFLAGS
888 CPP
889 CXXCPP'
890
891
892 # Initialize some variables set by options.
893 ac_init_help=
894 ac_init_version=false
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
897 cache_file=/dev/null
898 exec_prefix=NONE
899 no_create=
900 no_recursion=
901 prefix=NONE
902 program_prefix=NONE
903 program_suffix=NONE
904 program_transform_name=s,x,x,
905 silent=
906 site=
907 srcdir=
908 verbose=
909 x_includes=NONE
910 x_libraries=NONE
911
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
929 infodir='${datarootdir}/info'
930 htmldir='${docdir}'
931 dvidir='${docdir}'
932 pdfdir='${docdir}'
933 psdir='${docdir}'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
937
938 ac_prev=
939 ac_dashdash=
940 for ac_option
941 do
942   # If the previous option needs an argument, assign it.
943   if test -n "$ac_prev"; then
944     eval $ac_prev=\$ac_option
945     ac_prev=
946     continue
947   fi
948
949   case $ac_option in
950   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951   *)    ac_optarg=yes ;;
952   esac
953
954   # Accept the important Cygnus configure options, so we can diagnose typos.
955
956   case $ac_dashdash$ac_option in
957   --)
958     ac_dashdash=yes ;;
959
960   -bindir | --bindir | --bindi | --bind | --bin | --bi)
961     ac_prev=bindir ;;
962   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963     bindir=$ac_optarg ;;
964
965   -build | --build | --buil | --bui | --bu)
966     ac_prev=build_alias ;;
967   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968     build_alias=$ac_optarg ;;
969
970   -cache-file | --cache-file | --cache-fil | --cache-fi \
971   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972     ac_prev=cache_file ;;
973   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975     cache_file=$ac_optarg ;;
976
977   --config-cache | -C)
978     cache_file=config.cache ;;
979
980   -datadir | --datadir | --datadi | --datad)
981     ac_prev=datadir ;;
982   -datadir=* | --datadir=* | --datadi=* | --datad=*)
983     datadir=$ac_optarg ;;
984
985   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986   | --dataroo | --dataro | --datar)
987     ac_prev=datarootdir ;;
988   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990     datarootdir=$ac_optarg ;;
991
992   -disable-* | --disable-*)
993     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994     # Reject names that are not valid shell variable names.
995     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
996       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
997    { (exit 1); exit 1; }; }
998     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
999     eval enable_$ac_feature=no ;;
1000
1001   -docdir | --docdir | --docdi | --doc | --do)
1002     ac_prev=docdir ;;
1003   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004     docdir=$ac_optarg ;;
1005
1006   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007     ac_prev=dvidir ;;
1008   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009     dvidir=$ac_optarg ;;
1010
1011   -enable-* | --enable-*)
1012     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013     # Reject names that are not valid shell variable names.
1014     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016    { (exit 1); exit 1; }; }
1017     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1018     eval enable_$ac_feature=\$ac_optarg ;;
1019
1020   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022   | --exec | --exe | --ex)
1023     ac_prev=exec_prefix ;;
1024   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026   | --exec=* | --exe=* | --ex=*)
1027     exec_prefix=$ac_optarg ;;
1028
1029   -gas | --gas | --ga | --g)
1030     # Obsolete; use --with-gas.
1031     with_gas=yes ;;
1032
1033   -help | --help | --hel | --he | -h)
1034     ac_init_help=long ;;
1035   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036     ac_init_help=recursive ;;
1037   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038     ac_init_help=short ;;
1039
1040   -host | --host | --hos | --ho)
1041     ac_prev=host_alias ;;
1042   -host=* | --host=* | --hos=* | --ho=*)
1043     host_alias=$ac_optarg ;;
1044
1045   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046     ac_prev=htmldir ;;
1047   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048   | --ht=*)
1049     htmldir=$ac_optarg ;;
1050
1051   -includedir | --includedir | --includedi | --included | --include \
1052   | --includ | --inclu | --incl | --inc)
1053     ac_prev=includedir ;;
1054   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055   | --includ=* | --inclu=* | --incl=* | --inc=*)
1056     includedir=$ac_optarg ;;
1057
1058   -infodir | --infodir | --infodi | --infod | --info | --inf)
1059     ac_prev=infodir ;;
1060   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061     infodir=$ac_optarg ;;
1062
1063   -libdir | --libdir | --libdi | --libd)
1064     ac_prev=libdir ;;
1065   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066     libdir=$ac_optarg ;;
1067
1068   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069   | --libexe | --libex | --libe)
1070     ac_prev=libexecdir ;;
1071   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072   | --libexe=* | --libex=* | --libe=*)
1073     libexecdir=$ac_optarg ;;
1074
1075   -localedir | --localedir | --localedi | --localed | --locale)
1076     ac_prev=localedir ;;
1077   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078     localedir=$ac_optarg ;;
1079
1080   -localstatedir | --localstatedir | --localstatedi | --localstated \
1081   | --localstate | --localstat | --localsta | --localst | --locals)
1082     ac_prev=localstatedir ;;
1083   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085     localstatedir=$ac_optarg ;;
1086
1087   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088     ac_prev=mandir ;;
1089   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090     mandir=$ac_optarg ;;
1091
1092   -nfp | --nfp | --nf)
1093     # Obsolete; use --without-fp.
1094     with_fp=no ;;
1095
1096   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097   | --no-cr | --no-c | -n)
1098     no_create=yes ;;
1099
1100   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102     no_recursion=yes ;;
1103
1104   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106   | --oldin | --oldi | --old | --ol | --o)
1107     ac_prev=oldincludedir ;;
1108   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111     oldincludedir=$ac_optarg ;;
1112
1113   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114     ac_prev=prefix ;;
1115   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116     prefix=$ac_optarg ;;
1117
1118   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119   | --program-pre | --program-pr | --program-p)
1120     ac_prev=program_prefix ;;
1121   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123     program_prefix=$ac_optarg ;;
1124
1125   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126   | --program-suf | --program-su | --program-s)
1127     ac_prev=program_suffix ;;
1128   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130     program_suffix=$ac_optarg ;;
1131
1132   -program-transform-name | --program-transform-name \
1133   | --program-transform-nam | --program-transform-na \
1134   | --program-transform-n | --program-transform- \
1135   | --program-transform | --program-transfor \
1136   | --program-transfo | --program-transf \
1137   | --program-trans | --program-tran \
1138   | --progr-tra | --program-tr | --program-t)
1139     ac_prev=program_transform_name ;;
1140   -program-transform-name=* | --program-transform-name=* \
1141   | --program-transform-nam=* | --program-transform-na=* \
1142   | --program-transform-n=* | --program-transform-=* \
1143   | --program-transform=* | --program-transfor=* \
1144   | --program-transfo=* | --program-transf=* \
1145   | --program-trans=* | --program-tran=* \
1146   | --progr-tra=* | --program-tr=* | --program-t=*)
1147     program_transform_name=$ac_optarg ;;
1148
1149   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150     ac_prev=pdfdir ;;
1151   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152     pdfdir=$ac_optarg ;;
1153
1154   -psdir | --psdir | --psdi | --psd | --ps)
1155     ac_prev=psdir ;;
1156   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157     psdir=$ac_optarg ;;
1158
1159   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160   | -silent | --silent | --silen | --sile | --sil)
1161     silent=yes ;;
1162
1163   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164     ac_prev=sbindir ;;
1165   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166   | --sbi=* | --sb=*)
1167     sbindir=$ac_optarg ;;
1168
1169   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171   | --sharedst | --shareds | --shared | --share | --shar \
1172   | --sha | --sh)
1173     ac_prev=sharedstatedir ;;
1174   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177   | --sha=* | --sh=*)
1178     sharedstatedir=$ac_optarg ;;
1179
1180   -site | --site | --sit)
1181     ac_prev=site ;;
1182   -site=* | --site=* | --sit=*)
1183     site=$ac_optarg ;;
1184
1185   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186     ac_prev=srcdir ;;
1187   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188     srcdir=$ac_optarg ;;
1189
1190   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191   | --syscon | --sysco | --sysc | --sys | --sy)
1192     ac_prev=sysconfdir ;;
1193   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195     sysconfdir=$ac_optarg ;;
1196
1197   -target | --target | --targe | --targ | --tar | --ta | --t)
1198     ac_prev=target_alias ;;
1199   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200     target_alias=$ac_optarg ;;
1201
1202   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203     verbose=yes ;;
1204
1205   -version | --version | --versio | --versi | --vers | -V)
1206     ac_init_version=: ;;
1207
1208   -with-* | --with-*)
1209     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212       { echo "$as_me: error: invalid package name: $ac_package" >&2
1213    { (exit 1); exit 1; }; }
1214     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1215     eval with_$ac_package=\$ac_optarg ;;
1216
1217   -without-* | --without-*)
1218     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219     # Reject names that are not valid shell variable names.
1220     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221       { echo "$as_me: error: invalid package name: $ac_package" >&2
1222    { (exit 1); exit 1; }; }
1223     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1224     eval with_$ac_package=no ;;
1225
1226   --x)
1227     # Obsolete; use --with-x.
1228     with_x=yes ;;
1229
1230   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231   | --x-incl | --x-inc | --x-in | --x-i)
1232     ac_prev=x_includes ;;
1233   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235     x_includes=$ac_optarg ;;
1236
1237   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239     ac_prev=x_libraries ;;
1240   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242     x_libraries=$ac_optarg ;;
1243
1244   -*) { echo "$as_me: error: unrecognized option: $ac_option
1245 Try \`$0 --help' for more information." >&2
1246    { (exit 1); exit 1; }; }
1247     ;;
1248
1249   *=*)
1250     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251     # Reject names that are not valid shell variable names.
1252     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1253       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1254    { (exit 1); exit 1; }; }
1255     eval $ac_envvar=\$ac_optarg
1256     export $ac_envvar ;;
1257
1258   *)
1259     # FIXME: should be removed in autoconf 3.0.
1260     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1263     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1264     ;;
1265
1266   esac
1267 done
1268
1269 if test -n "$ac_prev"; then
1270   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271   { echo "$as_me: error: missing argument to $ac_option" >&2
1272    { (exit 1); exit 1; }; }
1273 fi
1274
1275 # Be sure to have absolute directory names.
1276 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277                 datadir sysconfdir sharedstatedir localstatedir includedir \
1278                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279                 libdir localedir mandir
1280 do
1281   eval ac_val=\$$ac_var
1282   case $ac_val in
1283     [\\/$]* | ?:[\\/]* )  continue;;
1284     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285   esac
1286   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1287    { (exit 1); exit 1; }; }
1288 done
1289
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1296
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299   if test "x$build_alias" = x; then
1300     cross_compiling=maybe
1301     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302     If a cross compiler is detected then cross compile mode will be used." >&2
1303   elif test "x$build_alias" != "x$host_alias"; then
1304     cross_compiling=yes
1305   fi
1306 fi
1307
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311 test "$silent" = yes && exec 6>/dev/null
1312
1313
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317   { echo "$as_me: error: Working directory cannot be determined" >&2
1318    { (exit 1); exit 1; }; }
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320   { echo "$as_me: error: pwd does not report name of working directory" >&2
1321    { (exit 1); exit 1; }; }
1322
1323
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326   ac_srcdir_defaulted=yes
1327   # Try the directory containing this script, then the parent directory.
1328   ac_confdir=`$as_dirname -- "$0" ||
1329 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330          X"$0" : 'X\(//\)[^/]' \| \
1331          X"$0" : 'X\(//\)$' \| \
1332          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1333 echo X"$0" |
1334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335             s//\1/
1336             q
1337           }
1338           /^X\(\/\/\)[^/].*/{
1339             s//\1/
1340             q
1341           }
1342           /^X\(\/\/\)$/{
1343             s//\1/
1344             q
1345           }
1346           /^X\(\/\).*/{
1347             s//\1/
1348             q
1349           }
1350           s/.*/./; q'`
1351   srcdir=$ac_confdir
1352   if test ! -r "$srcdir/$ac_unique_file"; then
1353     srcdir=..
1354   fi
1355 else
1356   ac_srcdir_defaulted=no
1357 fi
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1361    { (exit 1); exit 1; }; }
1362 fi
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 ac_abs_confdir=`(
1365         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1366    { (exit 1); exit 1; }; }
1367         pwd)`
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370   srcdir=.
1371 fi
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1375 case $srcdir in
1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 esac
1378 for ac_var in $ac_precious_vars; do
1379   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380   eval ac_env_${ac_var}_value=\$${ac_var}
1381   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1384
1385 #
1386 # Report the --help message.
1387 #
1388 if test "$ac_init_help" = "long"; then
1389   # Omit some internal or obsolete options to make the list less imposing.
1390   # This message is too long to be a string in the A/UX 3.1 sh.
1391   cat <<_ACEOF
1392 \`configure' configures libmm-ta 0.1 to adapt to many kinds of systems.
1393
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE.  See below for descriptions of some of the useful variables.
1398
1399 Defaults for the options are specified in brackets.
1400
1401 Configuration:
1402   -h, --help              display this help and exit
1403       --help=short        display options specific to this package
1404       --help=recursive    display the short help of all the included packages
1405   -V, --version           display version information and exit
1406   -q, --quiet, --silent   do not print \`checking...' messages
1407       --cache-file=FILE   cache test results in FILE [disabled]
1408   -C, --config-cache      alias for \`--cache-file=config.cache'
1409   -n, --no-create         do not create output files
1410       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1411
1412 Installation directories:
1413   --prefix=PREFIX         install architecture-independent files in PREFIX
1414                           [$ac_default_prefix]
1415   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1416                           [PREFIX]
1417
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1422
1423 For better control, use the options below.
1424
1425 Fine tuning of the installation directories:
1426   --bindir=DIR           user executables [EPREFIX/bin]
1427   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1428   --libexecdir=DIR       program executables [EPREFIX/libexec]
1429   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1430   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1431   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1432   --libdir=DIR           object code libraries [EPREFIX/lib]
1433   --includedir=DIR       C header files [PREFIX/include]
1434   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1435   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1436   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1437   --infodir=DIR          info documentation [DATAROOTDIR/info]
1438   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1439   --mandir=DIR           man documentation [DATAROOTDIR/man]
1440   --docdir=DIR           documentation root [DATAROOTDIR/doc/libmm-ta]
1441   --htmldir=DIR          html documentation [DOCDIR]
1442   --dvidir=DIR           dvi documentation [DOCDIR]
1443   --pdfdir=DIR           pdf documentation [DOCDIR]
1444   --psdir=DIR            ps documentation [DOCDIR]
1445 _ACEOF
1446
1447   cat <<\_ACEOF
1448
1449 Program names:
1450   --program-prefix=PREFIX            prepend PREFIX to installed program names
1451   --program-suffix=SUFFIX            append SUFFIX to installed program names
1452   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1453
1454 System types:
1455   --build=BUILD     configure for building on BUILD [guessed]
1456   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457 _ACEOF
1458 fi
1459
1460 if test -n "$ac_init_help"; then
1461   case $ac_init_help in
1462      short | recursive ) echo "Configuration of libmm-ta 0.1:";;
1463    esac
1464   cat <<\_ACEOF
1465
1466 Optional Features:
1467   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469   --disable-dependency-tracking  speeds up one-time build
1470   --enable-dependency-tracking   do not reject slow dependency extractors
1471   --enable-shared[=PKGS]  build shared libraries [default=yes]
1472   --enable-static[=PKGS]  build static libraries [default=yes]
1473   --enable-fast-install[=PKGS]
1474                           optimize for fast installation [default=yes]
1475   --disable-libtool-lock  avoid locking (might break parallel builds)
1476
1477 Optional Packages:
1478   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1479   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1480   --with-pic              try to use only PIC/non-PIC objects [default=use
1481                           both]
1482   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1483
1484 Some influential environment variables:
1485   CXX         C++ compiler command
1486   CXXFLAGS    C++ compiler flags
1487   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1488               nonstandard directory <lib dir>
1489   LIBS        libraries to pass to the linker, e.g. -l<library>
1490   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1491               you have headers in a nonstandard directory <include dir>
1492   CC          C compiler command
1493   CFLAGS      C compiler flags
1494   CPP         C preprocessor
1495   CXXCPP      C++ preprocessor
1496
1497 Use these variables to override the choices made by `configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1499
1500 _ACEOF
1501 ac_status=$?
1502 fi
1503
1504 if test "$ac_init_help" = "recursive"; then
1505   # If there are subdirs, report their specific --help.
1506   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507     test -d "$ac_dir" || continue
1508     ac_builddir=.
1509
1510 case "$ac_dir" in
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *)
1513   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1514   # A ".." for each directory in $ac_dir_suffix.
1515   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1516   case $ac_top_builddir_sub in
1517   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519   esac ;;
1520 esac
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1525
1526 case $srcdir in
1527   .)  # We are building in place.
1528     ac_srcdir=.
1529     ac_top_srcdir=$ac_top_builddir_sub
1530     ac_abs_top_srcdir=$ac_pwd ;;
1531   [\\/]* | ?:[\\/]* )  # Absolute name.
1532     ac_srcdir=$srcdir$ac_dir_suffix;
1533     ac_top_srcdir=$srcdir
1534     ac_abs_top_srcdir=$srcdir ;;
1535   *) # Relative name.
1536     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537     ac_top_srcdir=$ac_top_build_prefix$srcdir
1538     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 esac
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542     cd "$ac_dir" || { ac_status=$?; continue; }
1543     # Check for guested configure.
1544     if test -f "$ac_srcdir/configure.gnu"; then
1545       echo &&
1546       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547     elif test -f "$ac_srcdir/configure"; then
1548       echo &&
1549       $SHELL "$ac_srcdir/configure" --help=recursive
1550     else
1551       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552     fi || ac_status=$?
1553     cd "$ac_pwd" || { ac_status=$?; break; }
1554   done
1555 fi
1556
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1559   cat <<\_ACEOF
1560 libmm-ta configure 0.1
1561 generated by GNU Autoconf 2.61
1562
1563 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1564 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1567 _ACEOF
1568   exit
1569 fi
1570 cat >config.log <<_ACEOF
1571 This file contains any messages produced by compilers while
1572 running configure, to aid debugging if configure makes a mistake.
1573
1574 It was created by libmm-ta $as_me 0.1, which was
1575 generated by GNU Autoconf 2.61.  Invocation command line was
1576
1577   $ $0 $@
1578
1579 _ACEOF
1580 exec 5>>config.log
1581 {
1582 cat <<_ASUNAME
1583 ## --------- ##
1584 ## Platform. ##
1585 ## --------- ##
1586
1587 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1592
1593 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1595
1596 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1597 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1598 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1599 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1600 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1601 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1602 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1603
1604 _ASUNAME
1605
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   echo "PATH: $as_dir"
1612 done
1613 IFS=$as_save_IFS
1614
1615 } >&5
1616
1617 cat >&5 <<_ACEOF
1618
1619
1620 ## ----------- ##
1621 ## Core tests. ##
1622 ## ----------- ##
1623
1624 _ACEOF
1625
1626
1627 # Keep a trace of the command line.
1628 # Strip out --no-create and --no-recursion so they do not pile up.
1629 # Strip out --silent because we don't want to record it for future runs.
1630 # Also quote any args containing shell meta-characters.
1631 # Make two passes to allow for proper duplicate-argument suppression.
1632 ac_configure_args=
1633 ac_configure_args0=
1634 ac_configure_args1=
1635 ac_must_keep_next=false
1636 for ac_pass in 1 2
1637 do
1638   for ac_arg
1639   do
1640     case $ac_arg in
1641     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643     | -silent | --silent | --silen | --sile | --sil)
1644       continue ;;
1645     *\'*)
1646       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647     esac
1648     case $ac_pass in
1649     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1650     2)
1651       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1652       if test $ac_must_keep_next = true; then
1653         ac_must_keep_next=false # Got value, back to normal.
1654       else
1655         case $ac_arg in
1656           *=* | --config-cache | -C | -disable-* | --disable-* \
1657           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659           | -with-* | --with-* | -without-* | --without-* | --x)
1660             case "$ac_configure_args0 " in
1661               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662             esac
1663             ;;
1664           -* ) ac_must_keep_next=true ;;
1665         esac
1666       fi
1667       ac_configure_args="$ac_configure_args '$ac_arg'"
1668       ;;
1669     esac
1670   done
1671 done
1672 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1674
1675 # When interrupted or exit'd, cleanup temporary files, and complete
1676 # config.log.  We remove comments because anyway the quotes in there
1677 # would cause problems or look ugly.
1678 # WARNING: Use '\'' to represent an apostrophe within the trap.
1679 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1680 trap 'exit_status=$?
1681   # Save into config.log some information that might help in debugging.
1682   {
1683     echo
1684
1685     cat <<\_ASBOX
1686 ## ---------------- ##
1687 ## Cache variables. ##
1688 ## ---------------- ##
1689 _ASBOX
1690     echo
1691     # The following way of writing the cache mishandles newlines in values,
1692 (
1693   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694     eval ac_val=\$$ac_var
1695     case $ac_val in #(
1696     *${as_nl}*)
1697       case $ac_var in #(
1698       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700       esac
1701       case $ac_var in #(
1702       _ | IFS | as_nl) ;; #(
1703       *) $as_unset $ac_var ;;
1704       esac ;;
1705     esac
1706   done
1707   (set) 2>&1 |
1708     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709     *${as_nl}ac_space=\ *)
1710       sed -n \
1711         "s/'\''/'\''\\\\'\'''\''/g;
1712           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713       ;; #(
1714     *)
1715       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1716       ;;
1717     esac |
1718     sort
1719 )
1720     echo
1721
1722     cat <<\_ASBOX
1723 ## ----------------- ##
1724 ## Output variables. ##
1725 ## ----------------- ##
1726 _ASBOX
1727     echo
1728     for ac_var in $ac_subst_vars
1729     do
1730       eval ac_val=\$$ac_var
1731       case $ac_val in
1732       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733       esac
1734       echo "$ac_var='\''$ac_val'\''"
1735     done | sort
1736     echo
1737
1738     if test -n "$ac_subst_files"; then
1739       cat <<\_ASBOX
1740 ## ------------------- ##
1741 ## File substitutions. ##
1742 ## ------------------- ##
1743 _ASBOX
1744       echo
1745       for ac_var in $ac_subst_files
1746       do
1747         eval ac_val=\$$ac_var
1748         case $ac_val in
1749         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750         esac
1751         echo "$ac_var='\''$ac_val'\''"
1752       done | sort
1753       echo
1754     fi
1755
1756     if test -s confdefs.h; then
1757       cat <<\_ASBOX
1758 ## ----------- ##
1759 ## confdefs.h. ##
1760 ## ----------- ##
1761 _ASBOX
1762       echo
1763       cat confdefs.h
1764       echo
1765     fi
1766     test "$ac_signal" != 0 &&
1767       echo "$as_me: caught signal $ac_signal"
1768     echo "$as_me: exit $exit_status"
1769   } >&5
1770   rm -f core *.core core.conftest.* &&
1771     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772     exit $exit_status
1773 ' 0
1774 for ac_signal in 1 2 13 15; do
1775   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1776 done
1777 ac_signal=0
1778
1779 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1780 rm -f -r conftest* confdefs.h
1781
1782 # Predefined preprocessor variables.
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_NAME "$PACKAGE_NAME"
1786 _ACEOF
1787
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_STRING "$PACKAGE_STRING"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806 _ACEOF
1807
1808
1809 # Let the site file select an alternate cache file if it wants to.
1810 # Prefer explicitly selected file to automatically selected ones.
1811 if test -n "$CONFIG_SITE"; then
1812   set x "$CONFIG_SITE"
1813 elif test "x$prefix" != xNONE; then
1814   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1815 else
1816   set x "$ac_default_prefix/share/config.site" \
1817         "$ac_default_prefix/etc/config.site"
1818 fi
1819 shift
1820 for ac_site_file
1821 do
1822   if test -r "$ac_site_file"; then
1823     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824 echo "$as_me: loading site script $ac_site_file" >&6;}
1825     sed 's/^/| /' "$ac_site_file" >&5
1826     . "$ac_site_file"
1827   fi
1828 done
1829
1830 if test -r "$cache_file"; then
1831   # Some versions of bash will fail to source /dev/null (special
1832   # files actually), so we avoid doing that.
1833   if test -f "$cache_file"; then
1834     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835 echo "$as_me: loading cache $cache_file" >&6;}
1836     case $cache_file in
1837       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838       *)                      . "./$cache_file";;
1839     esac
1840   fi
1841 else
1842   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843 echo "$as_me: creating cache $cache_file" >&6;}
1844   >$cache_file
1845 fi
1846
1847 # Check that the precious variables saved in the cache have kept the same
1848 # value.
1849 ac_cache_corrupted=false
1850 for ac_var in $ac_precious_vars; do
1851   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852   eval ac_new_set=\$ac_env_${ac_var}_set
1853   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854   eval ac_new_val=\$ac_env_${ac_var}_value
1855   case $ac_old_set,$ac_new_set in
1856     set,)
1857       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1859       ac_cache_corrupted=: ;;
1860     ,set)
1861       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1863       ac_cache_corrupted=: ;;
1864     ,);;
1865     *)
1866       if test "x$ac_old_val" != "x$ac_new_val"; then
1867         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1870 echo "$as_me:   former value:  $ac_old_val" >&2;}
1871         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1872 echo "$as_me:   current value: $ac_new_val" >&2;}
1873         ac_cache_corrupted=:
1874       fi;;
1875   esac
1876   # Pass precious variables to config.status.
1877   if test "$ac_new_set" = set; then
1878     case $ac_new_val in
1879     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1880     *) ac_arg=$ac_var=$ac_new_val ;;
1881     esac
1882     case " $ac_configure_args " in
1883       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1884       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1885     esac
1886   fi
1887 done
1888 if $ac_cache_corrupted; then
1889   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893    { (exit 1); exit 1; }; }
1894 fi
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920 ac_ext=c
1921 ac_cpp='$CPP $CPPFLAGS'
1922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925
1926
1927 am__api_version='1.10'
1928
1929 ac_aux_dir=
1930 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1931   if test -f "$ac_dir/install-sh"; then
1932     ac_aux_dir=$ac_dir
1933     ac_install_sh="$ac_aux_dir/install-sh -c"
1934     break
1935   elif test -f "$ac_dir/install.sh"; then
1936     ac_aux_dir=$ac_dir
1937     ac_install_sh="$ac_aux_dir/install.sh -c"
1938     break
1939   elif test -f "$ac_dir/shtool"; then
1940     ac_aux_dir=$ac_dir
1941     ac_install_sh="$ac_aux_dir/shtool install -c"
1942     break
1943   fi
1944 done
1945 if test -z "$ac_aux_dir"; then
1946   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1947 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1948    { (exit 1); exit 1; }; }
1949 fi
1950
1951 # These three variables are undocumented and unsupported,
1952 # and are intended to be withdrawn in a future Autoconf release.
1953 # They can cause serious problems if a builder's source tree is in a directory
1954 # whose full name contains unusual characters.
1955 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1956 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1957 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1958
1959
1960 # Find a good install program.  We prefer a C program (faster),
1961 # so one script is as good as another.  But avoid the broken or
1962 # incompatible versions:
1963 # SysV /etc/install, /usr/sbin/install
1964 # SunOS /usr/etc/install
1965 # IRIX /sbin/install
1966 # AIX /bin/install
1967 # AmigaOS /C/install, which installs bootblocks on floppy discs
1968 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1969 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1970 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1971 # OS/2's system install, which has a completely different semantic
1972 # ./install, which can be erroneously created by make from ./install.sh.
1973 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1974 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1975 if test -z "$INSTALL"; then
1976 if test "${ac_cv_path_install+set}" = set; then
1977   echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH
1981 do
1982   IFS=$as_save_IFS
1983   test -z "$as_dir" && as_dir=.
1984   # Account for people who put trailing slashes in PATH elements.
1985 case $as_dir/ in
1986   ./ | .// | /cC/* | \
1987   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1988   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1989   /usr/ucb/* ) ;;
1990   *)
1991     # OSF1 and SCO ODT 3.0 have their own names for install.
1992     # Don't use installbsd from OSF since it installs stuff as root
1993     # by default.
1994     for ac_prog in ginstall scoinst install; do
1995       for ac_exec_ext in '' $ac_executable_extensions; do
1996         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1997           if test $ac_prog = install &&
1998             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1999             # AIX install.  It has an incompatible calling convention.
2000             :
2001           elif test $ac_prog = install &&
2002             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2003             # program-specific install script used by HP pwplus--don't use.
2004             :
2005           else
2006             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2007             break 3
2008           fi
2009         fi
2010       done
2011     done
2012     ;;
2013 esac
2014 done
2015 IFS=$as_save_IFS
2016
2017
2018 fi
2019   if test "${ac_cv_path_install+set}" = set; then
2020     INSTALL=$ac_cv_path_install
2021   else
2022     # As a last resort, use the slow shell script.  Don't cache a
2023     # value for INSTALL within a source directory, because that will
2024     # break other packages using the cache if that directory is
2025     # removed, or if the value is a relative name.
2026     INSTALL=$ac_install_sh
2027   fi
2028 fi
2029 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2030 echo "${ECHO_T}$INSTALL" >&6; }
2031
2032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2033 # It thinks the first close brace ends the variable substitution.
2034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2035
2036 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2037
2038 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2039
2040 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2041 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2042 # Just in case
2043 sleep 1
2044 echo timestamp > conftest.file
2045 # Do `set' in a subshell so we don't clobber the current shell's
2046 # arguments.  Must try -L first in case configure is actually a
2047 # symlink; some systems play weird games with the mod time of symlinks
2048 # (eg FreeBSD returns the mod time of the symlink's containing
2049 # directory).
2050 if (
2051    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2052    if test "$*" = "X"; then
2053       # -L didn't work.
2054       set X `ls -t $srcdir/configure conftest.file`
2055    fi
2056    rm -f conftest.file
2057    if test "$*" != "X $srcdir/configure conftest.file" \
2058       && test "$*" != "X conftest.file $srcdir/configure"; then
2059
2060       # If neither matched, then we have a broken ls.  This can happen
2061       # if, for instance, CONFIG_SHELL is bash and it inherits a
2062       # broken ls alias from the environment.  This has actually
2063       # happened.  Such a system could not be considered "sane".
2064       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2065 alias in your environment" >&5
2066 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2067 alias in your environment" >&2;}
2068    { (exit 1); exit 1; }; }
2069    fi
2070
2071    test "$2" = conftest.file
2072    )
2073 then
2074    # Ok.
2075    :
2076 else
2077    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2078 Check your system clock" >&5
2079 echo "$as_me: error: newly created file is older than distributed files!
2080 Check your system clock" >&2;}
2081    { (exit 1); exit 1; }; }
2082 fi
2083 { echo "$as_me:$LINENO: result: yes" >&5
2084 echo "${ECHO_T}yes" >&6; }
2085 test "$program_prefix" != NONE &&
2086   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2087 # Use a double $ so make ignores it.
2088 test "$program_suffix" != NONE &&
2089   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2090 # Double any \ or $.  echo might interpret backslashes.
2091 # By default was `s,x,x', remove it if useless.
2092 cat <<\_ACEOF >conftest.sed
2093 s/[\\$]/&&/g;s/;s,x,x,$//
2094 _ACEOF
2095 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2096 rm -f conftest.sed
2097
2098 # expand $ac_aux_dir to an absolute path
2099 am_aux_dir=`cd $ac_aux_dir && pwd`
2100
2101 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2102 # Use eval to expand $SHELL
2103 if eval "$MISSING --run true"; then
2104   am_missing_run="$MISSING --run "
2105 else
2106   am_missing_run=
2107   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2108 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2109 fi
2110
2111 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2112 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2113 if test -z "$MKDIR_P"; then
2114   if test "${ac_cv_path_mkdir+set}" = set; then
2115   echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2119 do
2120   IFS=$as_save_IFS
2121   test -z "$as_dir" && as_dir=.
2122   for ac_prog in mkdir gmkdir; do
2123          for ac_exec_ext in '' $ac_executable_extensions; do
2124            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2125            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2126              'mkdir (GNU coreutils) '* | \
2127              'mkdir (coreutils) '* | \
2128              'mkdir (fileutils) '4.1*)
2129                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2130                break 3;;
2131            esac
2132          done
2133        done
2134 done
2135 IFS=$as_save_IFS
2136
2137 fi
2138
2139   if test "${ac_cv_path_mkdir+set}" = set; then
2140     MKDIR_P="$ac_cv_path_mkdir -p"
2141   else
2142     # As a last resort, use the slow shell script.  Don't cache a
2143     # value for MKDIR_P within a source directory, because that will
2144     # break other packages using the cache if that directory is
2145     # removed, or if the value is a relative name.
2146     test -d ./--version && rmdir ./--version
2147     MKDIR_P="$ac_install_sh -d"
2148   fi
2149 fi
2150 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2151 echo "${ECHO_T}$MKDIR_P" >&6; }
2152
2153 mkdir_p="$MKDIR_P"
2154 case $mkdir_p in
2155   [\\/$]* | ?:[\\/]*) ;;
2156   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2157 esac
2158
2159 for ac_prog in gawk mawk nawk awk
2160 do
2161   # Extract the first word of "$ac_prog", so it can be a program name with args.
2162 set dummy $ac_prog; ac_word=$2
2163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2165 if test "${ac_cv_prog_AWK+set}" = set; then
2166   echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168   if test -n "$AWK"; then
2169   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2170 else
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2173 do
2174   IFS=$as_save_IFS
2175   test -z "$as_dir" && as_dir=.
2176   for ac_exec_ext in '' $ac_executable_extensions; do
2177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2178     ac_cv_prog_AWK="$ac_prog"
2179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180     break 2
2181   fi
2182 done
2183 done
2184 IFS=$as_save_IFS
2185
2186 fi
2187 fi
2188 AWK=$ac_cv_prog_AWK
2189 if test -n "$AWK"; then
2190   { echo "$as_me:$LINENO: result: $AWK" >&5
2191 echo "${ECHO_T}$AWK" >&6; }
2192 else
2193   { echo "$as_me:$LINENO: result: no" >&5
2194 echo "${ECHO_T}no" >&6; }
2195 fi
2196
2197
2198   test -n "$AWK" && break
2199 done
2200
2201 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2202 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2203 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2204 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2205   echo $ECHO_N "(cached) $ECHO_C" >&6
2206 else
2207   cat >conftest.make <<\_ACEOF
2208 SHELL = /bin/sh
2209 all:
2210         @echo '@@@%%%=$(MAKE)=@@@%%%'
2211 _ACEOF
2212 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2213 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2214   *@@@%%%=?*=@@@%%%*)
2215     eval ac_cv_prog_make_${ac_make}_set=yes;;
2216   *)
2217     eval ac_cv_prog_make_${ac_make}_set=no;;
2218 esac
2219 rm -f conftest.make
2220 fi
2221 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2222   { echo "$as_me:$LINENO: result: yes" >&5
2223 echo "${ECHO_T}yes" >&6; }
2224   SET_MAKE=
2225 else
2226   { echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6; }
2228   SET_MAKE="MAKE=${MAKE-make}"
2229 fi
2230
2231 rm -rf .tst 2>/dev/null
2232 mkdir .tst 2>/dev/null
2233 if test -d .tst; then
2234   am__leading_dot=.
2235 else
2236   am__leading_dot=_
2237 fi
2238 rmdir .tst 2>/dev/null
2239
2240 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2241   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2242   # is not polluted with repeated "-I."
2243   am__isrc=' -I$(srcdir)'
2244   # test to see if srcdir already configured
2245   if test -f $srcdir/config.status; then
2246     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2247 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2248    { (exit 1); exit 1; }; }
2249   fi
2250 fi
2251
2252 # test whether we have cygpath
2253 if test -z "$CYGPATH_W"; then
2254   if (cygpath --version) >/dev/null 2>/dev/null; then
2255     CYGPATH_W='cygpath -w'
2256   else
2257     CYGPATH_W=echo
2258   fi
2259 fi
2260
2261
2262 # Define the identity of the package.
2263  PACKAGE='libmm-ta'
2264  VERSION='0.1'
2265
2266
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE "$PACKAGE"
2269 _ACEOF
2270
2271
2272 cat >>confdefs.h <<_ACEOF
2273 #define VERSION "$VERSION"
2274 _ACEOF
2275
2276 # Some tools Automake needs.
2277
2278 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2279
2280
2281 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2282
2283
2284 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2285
2286
2287 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2288
2289
2290 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2291
2292 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2293
2294 # Installed binaries are usually stripped using `strip' when the user
2295 # run `make install-strip'.  However `strip' might not be the right
2296 # tool to use in cross-compilation environments, therefore Automake
2297 # will honor the `STRIP' environment variable to overrule this program.
2298 if test "$cross_compiling" != no; then
2299   if test -n "$ac_tool_prefix"; then
2300   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2301 set dummy ${ac_tool_prefix}strip; ac_word=$2
2302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2304 if test "${ac_cv_prog_STRIP+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   if test -n "$STRIP"; then
2308   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2309 else
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 for as_dir in $PATH
2312 do
2313   IFS=$as_save_IFS
2314   test -z "$as_dir" && as_dir=.
2315   for ac_exec_ext in '' $ac_executable_extensions; do
2316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2317     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319     break 2
2320   fi
2321 done
2322 done
2323 IFS=$as_save_IFS
2324
2325 fi
2326 fi
2327 STRIP=$ac_cv_prog_STRIP
2328 if test -n "$STRIP"; then
2329   { echo "$as_me:$LINENO: result: $STRIP" >&5
2330 echo "${ECHO_T}$STRIP" >&6; }
2331 else
2332   { echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6; }
2334 fi
2335
2336
2337 fi
2338 if test -z "$ac_cv_prog_STRIP"; then
2339   ac_ct_STRIP=$STRIP
2340   # Extract the first word of "strip", so it can be a program name with args.
2341 set dummy strip; ac_word=$2
2342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2344 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2345   echo $ECHO_N "(cached) $ECHO_C" >&6
2346 else
2347   if test -n "$ac_ct_STRIP"; then
2348   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2349 else
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 for as_dir in $PATH
2352 do
2353   IFS=$as_save_IFS
2354   test -z "$as_dir" && as_dir=.
2355   for ac_exec_ext in '' $ac_executable_extensions; do
2356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2357     ac_cv_prog_ac_ct_STRIP="strip"
2358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2359     break 2
2360   fi
2361 done
2362 done
2363 IFS=$as_save_IFS
2364
2365 fi
2366 fi
2367 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2368 if test -n "$ac_ct_STRIP"; then
2369   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2370 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2371 else
2372   { echo "$as_me:$LINENO: result: no" >&5
2373 echo "${ECHO_T}no" >&6; }
2374 fi
2375
2376   if test "x$ac_ct_STRIP" = x; then
2377     STRIP=":"
2378   else
2379     case $cross_compiling:$ac_tool_warned in
2380 yes:)
2381 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2382 whose name does not start with the host triplet.  If you think this
2383 configuration is useful to you, please write to autoconf@gnu.org." >&5
2384 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2385 whose name does not start with the host triplet.  If you think this
2386 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2387 ac_tool_warned=yes ;;
2388 esac
2389     STRIP=$ac_ct_STRIP
2390   fi
2391 else
2392   STRIP="$ac_cv_prog_STRIP"
2393 fi
2394
2395 fi
2396 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2397
2398 # We need awk for the "check" target.  The system "awk" is bad on
2399 # some platforms.
2400 # Always define AMTAR for backward compatibility.
2401
2402 AMTAR=${AMTAR-"${am_missing_run}tar"}
2403
2404 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2405
2406
2407
2408
2409
2410
2411 ac_config_headers="$ac_config_headers config.h"
2412
2413
2414
2415
2416 # Checks for programs.
2417 ac_ext=cpp
2418 ac_cpp='$CXXCPP $CPPFLAGS'
2419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2422 if test -z "$CXX"; then
2423   if test -n "$CCC"; then
2424     CXX=$CCC
2425   else
2426     if test -n "$ac_tool_prefix"; then
2427   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2428   do
2429     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2433 if test "${ac_cv_prog_CXX+set}" = set; then
2434   echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436   if test -n "$CXX"; then
2437   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2441 do
2442   IFS=$as_save_IFS
2443   test -z "$as_dir" && as_dir=.
2444   for ac_exec_ext in '' $ac_executable_extensions; do
2445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448     break 2
2449   fi
2450 done
2451 done
2452 IFS=$as_save_IFS
2453
2454 fi
2455 fi
2456 CXX=$ac_cv_prog_CXX
2457 if test -n "$CXX"; then
2458   { echo "$as_me:$LINENO: result: $CXX" >&5
2459 echo "${ECHO_T}$CXX" >&6; }
2460 else
2461   { echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6; }
2463 fi
2464
2465
2466     test -n "$CXX" && break
2467   done
2468 fi
2469 if test -z "$CXX"; then
2470   ac_ct_CXX=$CXX
2471   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2472 do
2473   # Extract the first word of "$ac_prog", so it can be a program name with args.
2474 set dummy $ac_prog; ac_word=$2
2475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2478   echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480   if test -n "$ac_ct_CXX"; then
2481   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486   IFS=$as_save_IFS
2487   test -z "$as_dir" && as_dir=.
2488   for ac_exec_ext in '' $ac_executable_extensions; do
2489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490     ac_cv_prog_ac_ct_CXX="$ac_prog"
2491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492     break 2
2493   fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498 fi
2499 fi
2500 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2501 if test -n "$ac_ct_CXX"; then
2502   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2503 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2504 else
2505   { echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6; }
2507 fi
2508
2509
2510   test -n "$ac_ct_CXX" && break
2511 done
2512
2513   if test "x$ac_ct_CXX" = x; then
2514     CXX="g++"
2515   else
2516     case $cross_compiling:$ac_tool_warned in
2517 yes:)
2518 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2519 whose name does not start with the host triplet.  If you think this
2520 configuration is useful to you, please write to autoconf@gnu.org." >&5
2521 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2522 whose name does not start with the host triplet.  If you think this
2523 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2524 ac_tool_warned=yes ;;
2525 esac
2526     CXX=$ac_ct_CXX
2527   fi
2528 fi
2529
2530   fi
2531 fi
2532 # Provide some information about the compiler.
2533 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2534 ac_compiler=`set X $ac_compile; echo $2`
2535 { (ac_try="$ac_compiler --version >&5"
2536 case "(($ac_try" in
2537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538   *) ac_try_echo=$ac_try;;
2539 esac
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541   (eval "$ac_compiler --version >&5") 2>&5
2542   ac_status=$?
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); }
2545 { (ac_try="$ac_compiler -v >&5"
2546 case "(($ac_try" in
2547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548   *) ac_try_echo=$ac_try;;
2549 esac
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551   (eval "$ac_compiler -v >&5") 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }
2555 { (ac_try="$ac_compiler -V >&5"
2556 case "(($ac_try" in
2557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558   *) ac_try_echo=$ac_try;;
2559 esac
2560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2561   (eval "$ac_compiler -V >&5") 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }
2565
2566 cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h.  */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h.  */
2572
2573 int
2574 main ()
2575 {
2576
2577   ;
2578   return 0;
2579 }
2580 _ACEOF
2581 ac_clean_files_save=$ac_clean_files
2582 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2583 # Try to create an executable without -o first, disregard a.out.
2584 # It will help us diagnose broken compilers, and finding out an intuition
2585 # of exeext.
2586 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2587 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2588 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2589 #
2590 # List of possible output files, starting from the most likely.
2591 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2592 # only as a last resort.  b.out is created by i960 compilers.
2593 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2594 #
2595 # The IRIX 6 linker writes into existing files which may not be
2596 # executable, retaining their permissions.  Remove them first so a
2597 # subsequent execution test works.
2598 ac_rmfiles=
2599 for ac_file in $ac_files
2600 do
2601   case $ac_file in
2602     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2603     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2604   esac
2605 done
2606 rm -f $ac_rmfiles
2607
2608 if { (ac_try="$ac_link_default"
2609 case "(($ac_try" in
2610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611   *) ac_try_echo=$ac_try;;
2612 esac
2613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2614   (eval "$ac_link_default") 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; then
2618   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2619 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2620 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2621 # so that the user can short-circuit this test for compilers unknown to
2622 # Autoconf.
2623 for ac_file in $ac_files ''
2624 do
2625   test -f "$ac_file" || continue
2626   case $ac_file in
2627     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2628         ;;
2629     [ab].out )
2630         # We found the default executable, but exeext='' is most
2631         # certainly right.
2632         break;;
2633     *.* )
2634         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2635         then :; else
2636            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2637         fi
2638         # We set ac_cv_exeext here because the later test for it is not
2639         # safe: cross compilers may not add the suffix if given an `-o'
2640         # argument, so we may need to know it at that point already.
2641         # Even if this section looks crufty: it has the advantage of
2642         # actually working.
2643         break;;
2644     * )
2645         break;;
2646   esac
2647 done
2648 test "$ac_cv_exeext" = no && ac_cv_exeext=
2649
2650 else
2651   ac_file=''
2652 fi
2653
2654 { echo "$as_me:$LINENO: result: $ac_file" >&5
2655 echo "${ECHO_T}$ac_file" >&6; }
2656 if test -z "$ac_file"; then
2657   echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2659
2660 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2661 See \`config.log' for more details." >&5
2662 echo "$as_me: error: C++ compiler cannot create executables
2663 See \`config.log' for more details." >&2;}
2664    { (exit 77); exit 77; }; }
2665 fi
2666
2667 ac_exeext=$ac_cv_exeext
2668
2669 # Check that the compiler produces executables we can run.  If not, either
2670 # the compiler is broken, or we cross compile.
2671 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2672 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2673 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2674 # If not cross compiling, check that we can run a simple program.
2675 if test "$cross_compiling" != yes; then
2676   if { ac_try='./$ac_file'
2677   { (case "(($ac_try" in
2678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679   *) ac_try_echo=$ac_try;;
2680 esac
2681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682   (eval "$ac_try") 2>&5
2683   ac_status=$?
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); }; }; then
2686     cross_compiling=no
2687   else
2688     if test "$cross_compiling" = maybe; then
2689         cross_compiling=yes
2690     else
2691         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2692 If you meant to cross compile, use \`--host'.
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: cannot run C++ compiled programs.
2695 If you meant to cross compile, use \`--host'.
2696 See \`config.log' for more details." >&2;}
2697    { (exit 1); exit 1; }; }
2698     fi
2699   fi
2700 fi
2701 { echo "$as_me:$LINENO: result: yes" >&5
2702 echo "${ECHO_T}yes" >&6; }
2703
2704 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2705 ac_clean_files=$ac_clean_files_save
2706 # Check that the compiler produces executables we can run.  If not, either
2707 # the compiler is broken, or we cross compile.
2708 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2709 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2710 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2711 echo "${ECHO_T}$cross_compiling" >&6; }
2712
2713 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2714 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2715 if { (ac_try="$ac_link"
2716 case "(($ac_try" in
2717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718   *) ac_try_echo=$ac_try;;
2719 esac
2720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721   (eval "$ac_link") 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }; then
2725   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2726 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2727 # work properly (i.e., refer to `conftest.exe'), while it won't with
2728 # `rm'.
2729 for ac_file in conftest.exe conftest conftest.*; do
2730   test -f "$ac_file" || continue
2731   case $ac_file in
2732     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2733     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2734           break;;
2735     * ) break;;
2736   esac
2737 done
2738 else
2739   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2740 See \`config.log' for more details." >&5
2741 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2742 See \`config.log' for more details." >&2;}
2743    { (exit 1); exit 1; }; }
2744 fi
2745
2746 rm -f conftest$ac_cv_exeext
2747 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2748 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2749
2750 rm -f conftest.$ac_ext
2751 EXEEXT=$ac_cv_exeext
2752 ac_exeext=$EXEEXT
2753 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2754 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2755 if test "${ac_cv_objext+set}" = set; then
2756   echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758   cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h.  */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h.  */
2764
2765 int
2766 main ()
2767 {
2768
2769   ;
2770   return 0;
2771 }
2772 _ACEOF
2773 rm -f conftest.o conftest.obj
2774 if { (ac_try="$ac_compile"
2775 case "(($ac_try" in
2776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777   *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780   (eval "$ac_compile") 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); }; then
2784   for ac_file in conftest.o conftest.obj conftest.*; do
2785   test -f "$ac_file" || continue;
2786   case $ac_file in
2787     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2788     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2789        break;;
2790   esac
2791 done
2792 else
2793   echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2795
2796 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2797 See \`config.log' for more details." >&5
2798 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2799 See \`config.log' for more details." >&2;}
2800    { (exit 1); exit 1; }; }
2801 fi
2802
2803 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2804 fi
2805 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2806 echo "${ECHO_T}$ac_cv_objext" >&6; }
2807 OBJEXT=$ac_cv_objext
2808 ac_objext=$OBJEXT
2809 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2810 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2811 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2812   echo $ECHO_N "(cached) $ECHO_C" >&6
2813 else
2814   cat >conftest.$ac_ext <<_ACEOF
2815 /* confdefs.h.  */
2816 _ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h.  */
2820
2821 int
2822 main ()
2823 {
2824 #ifndef __GNUC__
2825        choke me
2826 #endif
2827
2828   ;
2829   return 0;
2830 }
2831 _ACEOF
2832 rm -f conftest.$ac_objext
2833 if { (ac_try="$ac_compile"
2834 case "(($ac_try" in
2835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836   *) ac_try_echo=$ac_try;;
2837 esac
2838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839   (eval "$ac_compile") 2>conftest.er1
2840   ac_status=$?
2841   grep -v '^ *+' conftest.er1 >conftest.err
2842   rm -f conftest.er1
2843   cat conftest.err >&5
2844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845   (exit $ac_status); } && {
2846          test -z "$ac_cxx_werror_flag" ||
2847          test ! -s conftest.err
2848        } && test -s conftest.$ac_objext; then
2849   ac_compiler_gnu=yes
2850 else
2851   echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854         ac_compiler_gnu=no
2855 fi
2856
2857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2858 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2859
2860 fi
2861 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2862 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2863 GXX=`test $ac_compiler_gnu = yes && echo yes`
2864 ac_test_CXXFLAGS=${CXXFLAGS+set}
2865 ac_save_CXXFLAGS=$CXXFLAGS
2866 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2867 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2868 if test "${ac_cv_prog_cxx_g+set}" = set; then
2869   echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2872    ac_cxx_werror_flag=yes
2873    ac_cv_prog_cxx_g=no
2874    CXXFLAGS="-g"
2875    cat >conftest.$ac_ext <<_ACEOF
2876 /* confdefs.h.  */
2877 _ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h.  */
2881
2882 int
2883 main ()
2884 {
2885
2886   ;
2887   return 0;
2888 }
2889 _ACEOF
2890 rm -f conftest.$ac_objext
2891 if { (ac_try="$ac_compile"
2892 case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897   (eval "$ac_compile") 2>conftest.er1
2898   ac_status=$?
2899   grep -v '^ *+' conftest.er1 >conftest.err
2900   rm -f conftest.er1
2901   cat conftest.err >&5
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); } && {
2904          test -z "$ac_cxx_werror_flag" ||
2905          test ! -s conftest.err
2906        } && test -s conftest.$ac_objext; then
2907   ac_cv_prog_cxx_g=yes
2908 else
2909   echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912         CXXFLAGS=""
2913       cat >conftest.$ac_ext <<_ACEOF
2914 /* confdefs.h.  */
2915 _ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h.  */
2919
2920 int
2921 main ()
2922 {
2923
2924   ;
2925   return 0;
2926 }
2927 _ACEOF
2928 rm -f conftest.$ac_objext
2929 if { (ac_try="$ac_compile"
2930 case "(($ac_try" in
2931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932   *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935   (eval "$ac_compile") 2>conftest.er1
2936   ac_status=$?
2937   grep -v '^ *+' conftest.er1 >conftest.err
2938   rm -f conftest.er1
2939   cat conftest.err >&5
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); } && {
2942          test -z "$ac_cxx_werror_flag" ||
2943          test ! -s conftest.err
2944        } && test -s conftest.$ac_objext; then
2945   :
2946 else
2947   echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2949
2950         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2951          CXXFLAGS="-g"
2952          cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h.  */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h.  */
2958
2959 int
2960 main ()
2961 {
2962
2963   ;
2964   return 0;
2965 }
2966 _ACEOF
2967 rm -f conftest.$ac_objext
2968 if { (ac_try="$ac_compile"
2969 case "(($ac_try" in
2970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971   *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974   (eval "$ac_compile") 2>conftest.er1
2975   ac_status=$?
2976   grep -v '^ *+' conftest.er1 >conftest.err
2977   rm -f conftest.er1
2978   cat conftest.err >&5
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); } && {
2981          test -z "$ac_cxx_werror_flag" ||
2982          test ! -s conftest.err
2983        } && test -s conftest.$ac_objext; then
2984   ac_cv_prog_cxx_g=yes
2985 else
2986   echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2988
2989
2990 fi
2991
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 fi
2994
2995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2996 fi
2997
2998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2999    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3000 fi
3001 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3002 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3003 if test "$ac_test_CXXFLAGS" = set; then
3004   CXXFLAGS=$ac_save_CXXFLAGS
3005 elif test $ac_cv_prog_cxx_g = yes; then
3006   if test "$GXX" = yes; then
3007     CXXFLAGS="-g -O2"
3008   else
3009     CXXFLAGS="-g"
3010   fi
3011 else
3012   if test "$GXX" = yes; then
3013     CXXFLAGS="-O2"
3014   else
3015     CXXFLAGS=
3016   fi
3017 fi
3018 ac_ext=c
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 DEPDIR="${am__leading_dot}deps"
3024
3025 ac_config_commands="$ac_config_commands depfiles"
3026
3027
3028 am_make=${MAKE-make}
3029 cat > confinc << 'END'
3030 am__doit:
3031         @echo done
3032 .PHONY: am__doit
3033 END
3034 # If we don't find an include directive, just comment out the code.
3035 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3036 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3037 am__include="#"
3038 am__quote=
3039 _am_result=none
3040 # First try GNU make style include.
3041 echo "include confinc" > confmf
3042 # We grep out `Entering directory' and `Leaving directory'
3043 # messages which can occur if `w' ends up in MAKEFLAGS.
3044 # In particular we don't look at `^make:' because GNU make might
3045 # be invoked under some other name (usually "gmake"), in which
3046 # case it prints its new name instead of `make'.
3047 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3048    am__include=include
3049    am__quote=
3050    _am_result=GNU
3051 fi
3052 # Now try BSD make style include.
3053 if test "$am__include" = "#"; then
3054    echo '.include "confinc"' > confmf
3055    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3056       am__include=.include
3057       am__quote="\""
3058       _am_result=BSD
3059    fi
3060 fi
3061
3062
3063 { echo "$as_me:$LINENO: result: $_am_result" >&5
3064 echo "${ECHO_T}$_am_result" >&6; }
3065 rm -f confinc confmf
3066
3067 # Check whether --enable-dependency-tracking was given.
3068 if test "${enable_dependency_tracking+set}" = set; then
3069   enableval=$enable_dependency_tracking;
3070 fi
3071
3072 if test "x$enable_dependency_tracking" != xno; then
3073   am_depcomp="$ac_aux_dir/depcomp"
3074   AMDEPBACKSLASH='\'
3075 fi
3076  if test "x$enable_dependency_tracking" != xno; then
3077   AMDEP_TRUE=
3078   AMDEP_FALSE='#'
3079 else
3080   AMDEP_TRUE='#'
3081   AMDEP_FALSE=
3082 fi
3083
3084
3085
3086 depcc="$CXX"  am_compiler_list=
3087
3088 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3089 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3090 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3091   echo $ECHO_N "(cached) $ECHO_C" >&6
3092 else
3093   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3094   # We make a subdir and do the tests there.  Otherwise we can end up
3095   # making bogus files that we don't know about and never remove.  For
3096   # instance it was reported that on HP-UX the gcc test will end up
3097   # making a dummy file named `D' -- because `-MD' means `put the output
3098   # in D'.
3099   mkdir conftest.dir
3100   # Copy depcomp to subdir because otherwise we won't find it if we're
3101   # using a relative directory.
3102   cp "$am_depcomp" conftest.dir
3103   cd conftest.dir
3104   # We will build objects and dependencies in a subdirectory because
3105   # it helps to detect inapplicable dependency modes.  For instance
3106   # both Tru64's cc and ICC support -MD to output dependencies as a
3107   # side effect of compilation, but ICC will put the dependencies in
3108   # the current directory while Tru64 will put them in the object
3109   # directory.
3110   mkdir sub
3111
3112   am_cv_CXX_dependencies_compiler_type=none
3113   if test "$am_compiler_list" = ""; then
3114      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3115   fi
3116   for depmode in $am_compiler_list; do
3117     # Setup a source with many dependencies, because some compilers
3118     # like to wrap large dependency lists on column 80 (with \), and
3119     # we should not choose a depcomp mode which is confused by this.
3120     #
3121     # We need to recreate these files for each test, as the compiler may
3122     # overwrite some of them when testing with obscure command lines.
3123     # This happens at least with the AIX C compiler.
3124     : > sub/conftest.c
3125     for i in 1 2 3 4 5 6; do
3126       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3127       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3128       # Solaris 8's {/usr,}/bin/sh.
3129       touch sub/conftst$i.h
3130     done
3131     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3132
3133     case $depmode in
3134     nosideeffect)
3135       # after this tag, mechanisms are not by side-effect, so they'll
3136       # only be used when explicitly requested
3137       if test "x$enable_dependency_tracking" = xyes; then
3138         continue
3139       else
3140         break
3141       fi
3142       ;;
3143     none) break ;;
3144     esac
3145     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3146     # mode.  It turns out that the SunPro C++ compiler does not properly
3147     # handle `-M -o', and we need to detect this.
3148     if depmode=$depmode \
3149        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3150        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3151        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3152          >/dev/null 2>conftest.err &&
3153        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3154        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3155        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3156        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3157       # icc doesn't choke on unknown options, it will just issue warnings
3158       # or remarks (even with -Werror).  So we grep stderr for any message
3159       # that says an option was ignored or not supported.
3160       # When given -MP, icc 7.0 and 7.1 complain thusly:
3161       #   icc: Command line warning: ignoring option '-M'; no argument required
3162       # The diagnosis changed in icc 8.0:
3163       #   icc: Command line remark: option '-MP' not supported
3164       if (grep 'ignoring option' conftest.err ||
3165           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3166         am_cv_CXX_dependencies_compiler_type=$depmode
3167         break
3168       fi
3169     fi
3170   done
3171
3172   cd ..
3173   rm -rf conftest.dir
3174 else
3175   am_cv_CXX_dependencies_compiler_type=none
3176 fi
3177
3178 fi
3179 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3180 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3181 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3182
3183  if
3184   test "x$enable_dependency_tracking" != xno \
3185   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3186   am__fastdepCXX_TRUE=
3187   am__fastdepCXX_FALSE='#'
3188 else
3189   am__fastdepCXX_TRUE='#'
3190   am__fastdepCXX_FALSE=
3191 fi
3192
3193
3194 for ac_prog in gawk mawk nawk awk
3195 do
3196   # Extract the first word of "$ac_prog", so it can be a program name with args.
3197 set dummy $ac_prog; ac_word=$2
3198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3200 if test "${ac_cv_prog_AWK+set}" = set; then
3201   echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203   if test -n "$AWK"; then
3204   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209   IFS=$as_save_IFS
3210   test -z "$as_dir" && as_dir=.
3211   for ac_exec_ext in '' $ac_executable_extensions; do
3212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213     ac_cv_prog_AWK="$ac_prog"
3214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215     break 2
3216   fi
3217 done
3218 done
3219 IFS=$as_save_IFS
3220
3221 fi
3222 fi
3223 AWK=$ac_cv_prog_AWK
3224 if test -n "$AWK"; then
3225   { echo "$as_me:$LINENO: result: $AWK" >&5
3226 echo "${ECHO_T}$AWK" >&6; }
3227 else
3228   { echo "$as_me:$LINENO: result: no" >&5
3229 echo "${ECHO_T}no" >&6; }
3230 fi
3231
3232
3233   test -n "$AWK" && break
3234 done
3235
3236 ac_ext=c
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 if test -n "$ac_tool_prefix"; then
3242   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3243 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3246 if test "${ac_cv_prog_CC+set}" = set; then
3247   echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249   if test -n "$CC"; then
3250   ac_cv_prog_CC="$CC" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255   IFS=$as_save_IFS
3256   test -z "$as_dir" && as_dir=.
3257   for ac_exec_ext in '' $ac_executable_extensions; do
3258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3261     break 2
3262   fi
3263 done
3264 done
3265 IFS=$as_save_IFS
3266
3267 fi
3268 fi
3269 CC=$ac_cv_prog_CC
3270 if test -n "$CC"; then
3271   { echo "$as_me:$LINENO: result: $CC" >&5
3272 echo "${ECHO_T}$CC" >&6; }
3273 else
3274   { echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6; }
3276 fi
3277
3278
3279 fi
3280 if test -z "$ac_cv_prog_CC"; then
3281   ac_ct_CC=$CC
3282   # Extract the first word of "gcc", so it can be a program name with args.
3283 set dummy gcc; ac_word=$2
3284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   if test -n "$ac_ct_CC"; then
3290   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295   IFS=$as_save_IFS
3296   test -z "$as_dir" && as_dir=.
3297   for ac_exec_ext in '' $ac_executable_extensions; do
3298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299     ac_cv_prog_ac_ct_CC="gcc"
3300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301     break 2
3302   fi
3303 done
3304 done
3305 IFS=$as_save_IFS
3306
3307 fi
3308 fi
3309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3310 if test -n "$ac_ct_CC"; then
3311   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3312 echo "${ECHO_T}$ac_ct_CC" >&6; }
3313 else
3314   { echo "$as_me:$LINENO: result: no" >&5
3315 echo "${ECHO_T}no" >&6; }
3316 fi
3317
3318   if test "x$ac_ct_CC" = x; then
3319     CC=""
3320   else
3321     case $cross_compiling:$ac_tool_warned in
3322 yes:)
3323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3324 whose name does not start with the host triplet.  If you think this
3325 configuration is useful to you, please write to autoconf@gnu.org." >&5
3326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3327 whose name does not start with the host triplet.  If you think this
3328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3329 ac_tool_warned=yes ;;
3330 esac
3331     CC=$ac_ct_CC
3332   fi
3333 else
3334   CC="$ac_cv_prog_CC"
3335 fi
3336
3337 if test -z "$CC"; then
3338           if test -n "$ac_tool_prefix"; then
3339     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3340 set dummy ${ac_tool_prefix}cc; ac_word=$2
3341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3343 if test "${ac_cv_prog_CC+set}" = set; then
3344   echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346   if test -n "$CC"; then
3347   ac_cv_prog_CC="$CC" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352   IFS=$as_save_IFS
3353   test -z "$as_dir" && as_dir=.
3354   for ac_exec_ext in '' $ac_executable_extensions; do
3355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3356     ac_cv_prog_CC="${ac_tool_prefix}cc"
3357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358     break 2
3359   fi
3360 done
3361 done
3362 IFS=$as_save_IFS
3363
3364 fi
3365 fi
3366 CC=$ac_cv_prog_CC
3367 if test -n "$CC"; then
3368   { echo "$as_me:$LINENO: result: $CC" >&5
3369 echo "${ECHO_T}$CC" >&6; }
3370 else
3371   { echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6; }
3373 fi
3374
3375
3376   fi
3377 fi
3378 if test -z "$CC"; then
3379   # Extract the first word of "cc", so it can be a program name with args.
3380 set dummy cc; ac_word=$2
3381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3383 if test "${ac_cv_prog_CC+set}" = set; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386   if test -n "$CC"; then
3387   ac_cv_prog_CC="$CC" # Let the user override the test.
3388 else
3389   ac_prog_rejected=no
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395   for ac_exec_ext in '' $ac_executable_extensions; do
3396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3398        ac_prog_rejected=yes
3399        continue
3400      fi
3401     ac_cv_prog_CC="cc"
3402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3403     break 2
3404   fi
3405 done
3406 done
3407 IFS=$as_save_IFS
3408
3409 if test $ac_prog_rejected = yes; then
3410   # We found a bogon in the path, so make sure we never use it.
3411   set dummy $ac_cv_prog_CC
3412   shift
3413   if test $# != 0; then
3414     # We chose a different compiler from the bogus one.
3415     # However, it has the same basename, so the bogon will be chosen
3416     # first if we set CC to just the basename; use the full file name.
3417     shift
3418     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3419   fi
3420 fi
3421 fi
3422 fi
3423 CC=$ac_cv_prog_CC
3424 if test -n "$CC"; then
3425   { echo "$as_me:$LINENO: result: $CC" >&5
3426 echo "${ECHO_T}$CC" >&6; }
3427 else
3428   { echo "$as_me:$LINENO: result: no" >&5
3429 echo "${ECHO_T}no" >&6; }
3430 fi
3431
3432
3433 fi
3434 if test -z "$CC"; then
3435   if test -n "$ac_tool_prefix"; then
3436   for ac_prog in cl.exe
3437   do
3438     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3439 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3442 if test "${ac_cv_prog_CC+set}" = set; then
3443   echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445   if test -n "$CC"; then
3446   ac_cv_prog_CC="$CC" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3450 do
3451   IFS=$as_save_IFS
3452   test -z "$as_dir" && as_dir=.
3453   for ac_exec_ext in '' $ac_executable_extensions; do
3454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457     break 2
3458   fi
3459 done
3460 done
3461 IFS=$as_save_IFS
3462
3463 fi
3464 fi
3465 CC=$ac_cv_prog_CC
3466 if test -n "$CC"; then
3467   { echo "$as_me:$LINENO: result: $CC" >&5
3468 echo "${ECHO_T}$CC" >&6; }
3469 else
3470   { echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6; }
3472 fi
3473
3474
3475     test -n "$CC" && break
3476   done
3477 fi
3478 if test -z "$CC"; then
3479   ac_ct_CC=$CC
3480   for ac_prog in cl.exe
3481 do
3482   # Extract the first word of "$ac_prog", so it can be a program name with args.
3483 set dummy $ac_prog; ac_word=$2
3484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3486 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3487   echo $ECHO_N "(cached) $ECHO_C" >&6
3488 else
3489   if test -n "$ac_ct_CC"; then
3490   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3491 else
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3494 do
3495   IFS=$as_save_IFS
3496   test -z "$as_dir" && as_dir=.
3497   for ac_exec_ext in '' $ac_executable_extensions; do
3498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3499     ac_cv_prog_ac_ct_CC="$ac_prog"
3500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3501     break 2
3502   fi
3503 done
3504 done
3505 IFS=$as_save_IFS
3506
3507 fi
3508 fi
3509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3510 if test -n "$ac_ct_CC"; then
3511   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3512 echo "${ECHO_T}$ac_ct_CC" >&6; }
3513 else
3514   { echo "$as_me:$LINENO: result: no" >&5
3515 echo "${ECHO_T}no" >&6; }
3516 fi
3517
3518
3519   test -n "$ac_ct_CC" && break
3520 done
3521
3522   if test "x$ac_ct_CC" = x; then
3523     CC=""
3524   else
3525     case $cross_compiling:$ac_tool_warned in
3526 yes:)
3527 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3528 whose name does not start with the host triplet.  If you think this
3529 configuration is useful to you, please write to autoconf@gnu.org." >&5
3530 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3531 whose name does not start with the host triplet.  If you think this
3532 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3533 ac_tool_warned=yes ;;
3534 esac
3535     CC=$ac_ct_CC
3536   fi
3537 fi
3538
3539 fi
3540
3541
3542 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3543 See \`config.log' for more details." >&5
3544 echo "$as_me: error: no acceptable C compiler found in \$PATH
3545 See \`config.log' for more details." >&2;}
3546    { (exit 1); exit 1; }; }
3547
3548 # Provide some information about the compiler.
3549 echo "$as_me:$LINENO: checking for C compiler version" >&5
3550 ac_compiler=`set X $ac_compile; echo $2`
3551 { (ac_try="$ac_compiler --version >&5"
3552 case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557   (eval "$ac_compiler --version >&5") 2>&5
3558   ac_status=$?
3559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560   (exit $ac_status); }
3561 { (ac_try="$ac_compiler -v >&5"
3562 case "(($ac_try" in
3563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564   *) ac_try_echo=$ac_try;;
3565 esac
3566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567   (eval "$ac_compiler -v >&5") 2>&5
3568   ac_status=$?
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); }
3571 { (ac_try="$ac_compiler -V >&5"
3572 case "(($ac_try" in
3573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574   *) ac_try_echo=$ac_try;;
3575 esac
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577   (eval "$ac_compiler -V >&5") 2>&5
3578   ac_status=$?
3579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); }
3581
3582 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3583 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3584 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3585   echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587   cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h.  */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h.  */
3593
3594 int
3595 main ()
3596 {
3597 #ifndef __GNUC__
3598        choke me
3599 #endif
3600
3601   ;
3602   return 0;
3603 }
3604 _ACEOF
3605 rm -f conftest.$ac_objext
3606 if { (ac_try="$ac_compile"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612   (eval "$ac_compile") 2>conftest.er1
3613   ac_status=$?
3614   grep -v '^ *+' conftest.er1 >conftest.err
3615   rm -f conftest.er1
3616   cat conftest.err >&5
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); } && {
3619          test -z "$ac_c_werror_flag" ||
3620          test ! -s conftest.err
3621        } && test -s conftest.$ac_objext; then
3622   ac_compiler_gnu=yes
3623 else
3624   echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3626
3627         ac_compiler_gnu=no
3628 fi
3629
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3632
3633 fi
3634 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3635 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3636 GCC=`test $ac_compiler_gnu = yes && echo yes`
3637 ac_test_CFLAGS=${CFLAGS+set}
3638 ac_save_CFLAGS=$CFLAGS
3639 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3640 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3641 if test "${ac_cv_prog_cc_g+set}" = set; then
3642   echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644   ac_save_c_werror_flag=$ac_c_werror_flag
3645    ac_c_werror_flag=yes
3646    ac_cv_prog_cc_g=no
3647    CFLAGS="-g"
3648    cat >conftest.$ac_ext <<_ACEOF
3649 /* confdefs.h.  */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h.  */
3654
3655 int
3656 main ()
3657 {
3658
3659   ;
3660   return 0;
3661 }
3662 _ACEOF
3663 rm -f conftest.$ac_objext
3664 if { (ac_try="$ac_compile"
3665 case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670   (eval "$ac_compile") 2>conftest.er1
3671   ac_status=$?
3672   grep -v '^ *+' conftest.er1 >conftest.err
3673   rm -f conftest.er1
3674   cat conftest.err >&5
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); } && {
3677          test -z "$ac_c_werror_flag" ||
3678          test ! -s conftest.err
3679        } && test -s conftest.$ac_objext; then
3680   ac_cv_prog_cc_g=yes
3681 else
3682   echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685         CFLAGS=""
3686       cat >conftest.$ac_ext <<_ACEOF
3687 /* confdefs.h.  */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h.  */
3692
3693 int
3694 main ()
3695 {
3696
3697   ;
3698   return 0;
3699 }
3700 _ACEOF
3701 rm -f conftest.$ac_objext
3702 if { (ac_try="$ac_compile"
3703 case "(($ac_try" in
3704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705   *) ac_try_echo=$ac_try;;
3706 esac
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708   (eval "$ac_compile") 2>conftest.er1
3709   ac_status=$?
3710   grep -v '^ *+' conftest.er1 >conftest.err
3711   rm -f conftest.er1
3712   cat conftest.err >&5
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); } && {
3715          test -z "$ac_c_werror_flag" ||
3716          test ! -s conftest.err
3717        } && test -s conftest.$ac_objext; then
3718   :
3719 else
3720   echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723         ac_c_werror_flag=$ac_save_c_werror_flag
3724          CFLAGS="-g"
3725          cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h.  */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h.  */
3731
3732 int
3733 main ()
3734 {
3735
3736   ;
3737   return 0;
3738 }
3739 _ACEOF
3740 rm -f conftest.$ac_objext
3741 if { (ac_try="$ac_compile"
3742 case "(($ac_try" in
3743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744   *) ac_try_echo=$ac_try;;
3745 esac
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747   (eval "$ac_compile") 2>conftest.er1
3748   ac_status=$?
3749   grep -v '^ *+' conftest.er1 >conftest.err
3750   rm -f conftest.er1
3751   cat conftest.err >&5
3752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753   (exit $ac_status); } && {
3754          test -z "$ac_c_werror_flag" ||
3755          test ! -s conftest.err
3756        } && test -s conftest.$ac_objext; then
3757   ac_cv_prog_cc_g=yes
3758 else
3759   echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3761
3762
3763 fi
3764
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 fi
3767
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 fi
3770
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772    ac_c_werror_flag=$ac_save_c_werror_flag
3773 fi
3774 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3775 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3776 if test "$ac_test_CFLAGS" = set; then
3777   CFLAGS=$ac_save_CFLAGS
3778 elif test $ac_cv_prog_cc_g = yes; then
3779   if test "$GCC" = yes; then
3780     CFLAGS="-g -O2"
3781   else
3782     CFLAGS="-g"
3783   fi
3784 else
3785   if test "$GCC" = yes; then
3786     CFLAGS="-O2"
3787   else
3788     CFLAGS=
3789   fi
3790 fi
3791 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3792 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3793 if test "${ac_cv_prog_cc_c89+set}" = set; then
3794   echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796   ac_cv_prog_cc_c89=no
3797 ac_save_CC=$CC
3798 cat >conftest.$ac_ext <<_ACEOF
3799 /* confdefs.h.  */
3800 _ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h.  */
3804 #include <stdarg.h>
3805 #include <stdio.h>
3806 #include <sys/types.h>
3807 #include <sys/stat.h>
3808 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3809 struct buf { int x; };
3810 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3811 static char *e (p, i)
3812      char **p;
3813      int i;
3814 {
3815   return p[i];
3816 }
3817 static char *f (char * (*g) (char **, int), char **p, ...)
3818 {
3819   char *s;
3820   va_list v;
3821   va_start (v,p);
3822   s = g (p, va_arg (v,int));
3823   va_end (v);
3824   return s;
3825 }
3826
3827 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3828    function prototypes and stuff, but not '\xHH' hex character constants.
3829    These don't provoke an error unfortunately, instead are silently treated
3830    as 'x'.  The following induces an error, until -std is added to get
3831    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3832    array size at least.  It's necessary to write '\x00'==0 to get something
3833    that's true only with -std.  */
3834 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3835
3836 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3837    inside strings and character constants.  */
3838 #define FOO(x) 'x'
3839 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3840
3841 int test (int i, double x);
3842 struct s1 {int (*f) (int a);};
3843 struct s2 {int (*f) (double a);};
3844 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3845 int argc;
3846 char **argv;
3847 int
3848 main ()
3849 {
3850 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3851   ;
3852   return 0;
3853 }
3854 _ACEOF
3855 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3856         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3857 do
3858   CC="$ac_save_CC $ac_arg"
3859   rm -f conftest.$ac_objext
3860 if { (ac_try="$ac_compile"
3861 case "(($ac_try" in
3862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863   *) ac_try_echo=$ac_try;;
3864 esac
3865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866   (eval "$ac_compile") 2>conftest.er1
3867   ac_status=$?
3868   grep -v '^ *+' conftest.er1 >conftest.err
3869   rm -f conftest.er1
3870   cat conftest.err >&5
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); } && {
3873          test -z "$ac_c_werror_flag" ||
3874          test ! -s conftest.err
3875        } && test -s conftest.$ac_objext; then
3876   ac_cv_prog_cc_c89=$ac_arg
3877 else
3878   echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3880
3881
3882 fi
3883
3884 rm -f core conftest.err conftest.$ac_objext
3885   test "x$ac_cv_prog_cc_c89" != "xno" && break
3886 done
3887 rm -f conftest.$ac_ext
3888 CC=$ac_save_CC
3889
3890 fi
3891 # AC_CACHE_VAL
3892 case "x$ac_cv_prog_cc_c89" in
3893   x)
3894     { echo "$as_me:$LINENO: result: none needed" >&5
3895 echo "${ECHO_T}none needed" >&6; } ;;
3896   xno)
3897     { echo "$as_me:$LINENO: result: unsupported" >&5
3898 echo "${ECHO_T}unsupported" >&6; } ;;
3899   *)
3900     CC="$CC $ac_cv_prog_cc_c89"
3901     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3902 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3903 esac
3904
3905
3906 ac_ext=c
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3911
3912 depcc="$CC"   am_compiler_list=
3913
3914 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3915 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3916 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3917   echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3920   # We make a subdir and do the tests there.  Otherwise we can end up
3921   # making bogus files that we don't know about and never remove.  For
3922   # instance it was reported that on HP-UX the gcc test will end up
3923   # making a dummy file named `D' -- because `-MD' means `put the output
3924   # in D'.
3925   mkdir conftest.dir
3926   # Copy depcomp to subdir because otherwise we won't find it if we're
3927   # using a relative directory.
3928   cp "$am_depcomp" conftest.dir
3929   cd conftest.dir
3930   # We will build objects and dependencies in a subdirectory because
3931   # it helps to detect inapplicable dependency modes.  For instance
3932   # both Tru64's cc and ICC support -MD to output dependencies as a
3933   # side effect of compilation, but ICC will put the dependencies in
3934   # the current directory while Tru64 will put them in the object
3935   # directory.
3936   mkdir sub
3937
3938   am_cv_CC_dependencies_compiler_type=none
3939   if test "$am_compiler_list" = ""; then
3940      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3941   fi
3942   for depmode in $am_compiler_list; do
3943     # Setup a source with many dependencies, because some compilers
3944     # like to wrap large dependency lists on column 80 (with \), and
3945     # we should not choose a depcomp mode which is confused by this.
3946     #
3947     # We need to recreate these files for each test, as the compiler may
3948     # overwrite some of them when testing with obscure command lines.
3949     # This happens at least with the AIX C compiler.
3950     : > sub/conftest.c
3951     for i in 1 2 3 4 5 6; do
3952       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3953       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3954       # Solaris 8's {/usr,}/bin/sh.
3955       touch sub/conftst$i.h
3956     done
3957     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3958
3959     case $depmode in
3960     nosideeffect)
3961       # after this tag, mechanisms are not by side-effect, so they'll
3962       # only be used when explicitly requested
3963       if test "x$enable_dependency_tracking" = xyes; then
3964         continue
3965       else
3966         break
3967       fi
3968       ;;
3969     none) break ;;
3970     esac
3971     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3972     # mode.  It turns out that the SunPro C++ compiler does not properly
3973     # handle `-M -o', and we need to detect this.
3974     if depmode=$depmode \
3975        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3976        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3977        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3978          >/dev/null 2>conftest.err &&
3979        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3980        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3981        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3982        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3983       # icc doesn't choke on unknown options, it will just issue warnings
3984       # or remarks (even with -Werror).  So we grep stderr for any message
3985       # that says an option was ignored or not supported.
3986       # When given -MP, icc 7.0 and 7.1 complain thusly:
3987       #   icc: Command line warning: ignoring option '-M'; no argument required
3988       # The diagnosis changed in icc 8.0:
3989       #   icc: Command line remark: option '-MP' not supported
3990       if (grep 'ignoring option' conftest.err ||
3991           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3992         am_cv_CC_dependencies_compiler_type=$depmode
3993         break
3994       fi
3995     fi
3996   done
3997
3998   cd ..
3999   rm -rf conftest.dir
4000 else
4001   am_cv_CC_dependencies_compiler_type=none
4002 fi
4003
4004 fi
4005 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4006 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4007 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4008
4009  if
4010   test "x$enable_dependency_tracking" != xno \
4011   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4012   am__fastdepCC_TRUE=
4013   am__fastdepCC_FALSE='#'
4014 else
4015   am__fastdepCC_TRUE='#'
4016   am__fastdepCC_FALSE=
4017 fi
4018
4019
4020 ac_ext=c
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4026 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4027 # On Suns, sometimes $CPP names a directory.
4028 if test -n "$CPP" && test -d "$CPP"; then
4029   CPP=
4030 fi
4031 if test -z "$CPP"; then
4032   if test "${ac_cv_prog_CPP+set}" = set; then
4033   echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035       # Double quotes because CPP needs to be expanded
4036     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4037     do
4038       ac_preproc_ok=false
4039 for ac_c_preproc_warn_flag in '' yes
4040 do
4041   # Use a header file that comes with gcc, so configuring glibc
4042   # with a fresh cross-compiler works.
4043   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4044   # <limits.h> exists even on freestanding compilers.
4045   # On the NeXT, cc -E runs the code through the compiler's parser,
4046   # not just through cpp. "Syntax error" is here to catch this case.
4047   cat >conftest.$ac_ext <<_ACEOF
4048 /* confdefs.h.  */
4049 _ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h.  */
4053 #ifdef __STDC__
4054 # include <limits.h>
4055 #else
4056 # include <assert.h>
4057 #endif
4058                      Syntax error
4059 _ACEOF
4060 if { (ac_try="$ac_cpp conftest.$ac_ext"
4061 case "(($ac_try" in
4062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063   *) ac_try_echo=$ac_try;;
4064 esac
4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4067   ac_status=$?
4068   grep -v '^ *+' conftest.er1 >conftest.err
4069   rm -f conftest.er1
4070   cat conftest.err >&5
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); } >/dev/null && {
4073          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4074          test ! -s conftest.err
4075        }; then
4076   :
4077 else
4078   echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4080
4081   # Broken: fails on valid input.
4082 continue
4083 fi
4084
4085 rm -f conftest.err conftest.$ac_ext
4086
4087   # OK, works on sane cases.  Now check whether nonexistent headers
4088   # can be detected and how.
4089   cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h.  */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h.  */
4095 #include <ac_nonexistent.h>
4096 _ACEOF
4097 if { (ac_try="$ac_cpp conftest.$ac_ext"
4098 case "(($ac_try" in
4099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100   *) ac_try_echo=$ac_try;;
4101 esac
4102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4104   ac_status=$?
4105   grep -v '^ *+' conftest.er1 >conftest.err
4106   rm -f conftest.er1
4107   cat conftest.err >&5
4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109   (exit $ac_status); } >/dev/null && {
4110          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4111          test ! -s conftest.err
4112        }; then
4113   # Broken: success on invalid input.
4114 continue
4115 else
4116   echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4118
4119   # Passes both tests.
4120 ac_preproc_ok=:
4121 break
4122 fi
4123
4124 rm -f conftest.err conftest.$ac_ext
4125
4126 done
4127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4128 rm -f conftest.err conftest.$ac_ext
4129 if $ac_preproc_ok; then
4130   break
4131 fi
4132
4133     done
4134     ac_cv_prog_CPP=$CPP
4135
4136 fi
4137   CPP=$ac_cv_prog_CPP
4138 else
4139   ac_cv_prog_CPP=$CPP
4140 fi
4141 { echo "$as_me:$LINENO: result: $CPP" >&5
4142 echo "${ECHO_T}$CPP" >&6; }
4143 ac_preproc_ok=false
4144 for ac_c_preproc_warn_flag in '' yes
4145 do
4146   # Use a header file that comes with gcc, so configuring glibc
4147   # with a fresh cross-compiler works.
4148   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4149   # <limits.h> exists even on freestanding compilers.
4150   # On the NeXT, cc -E runs the code through the compiler's parser,
4151   # not just through cpp. "Syntax error" is here to catch this case.
4152   cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h.  */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h.  */
4158 #ifdef __STDC__
4159 # include <limits.h>
4160 #else
4161 # include <assert.h>
4162 #endif
4163                      Syntax error
4164 _ACEOF
4165 if { (ac_try="$ac_cpp conftest.$ac_ext"
4166 case "(($ac_try" in
4167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168   *) ac_try_echo=$ac_try;;
4169 esac
4170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4172   ac_status=$?
4173   grep -v '^ *+' conftest.er1 >conftest.err
4174   rm -f conftest.er1
4175   cat conftest.err >&5
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); } >/dev/null && {
4178          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4179          test ! -s conftest.err
4180        }; then
4181   :
4182 else
4183   echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4185
4186   # Broken: fails on valid input.
4187 continue
4188 fi
4189
4190 rm -f conftest.err conftest.$ac_ext
4191
4192   # OK, works on sane cases.  Now check whether nonexistent headers
4193   # can be detected and how.
4194   cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h.  */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h.  */
4200 #include <ac_nonexistent.h>
4201 _ACEOF
4202 if { (ac_try="$ac_cpp conftest.$ac_ext"
4203 case "(($ac_try" in
4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205   *) ac_try_echo=$ac_try;;
4206 esac
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4209   ac_status=$?
4210   grep -v '^ *+' conftest.er1 >conftest.err
4211   rm -f conftest.er1
4212   cat conftest.err >&5
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); } >/dev/null && {
4215          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4216          test ! -s conftest.err
4217        }; then
4218   # Broken: success on invalid input.
4219 continue
4220 else
4221   echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4223
4224   # Passes both tests.
4225 ac_preproc_ok=:
4226 break
4227 fi
4228
4229 rm -f conftest.err conftest.$ac_ext
4230
4231 done
4232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4233 rm -f conftest.err conftest.$ac_ext
4234 if $ac_preproc_ok; then
4235   :
4236 else
4237   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4238 See \`config.log' for more details." >&5
4239 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4240 See \`config.log' for more details." >&2;}
4241    { (exit 1); exit 1; }; }
4242 fi
4243
4244 ac_ext=c
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249
4250 # Find a good install program.  We prefer a C program (faster),
4251 # so one script is as good as another.  But avoid the broken or
4252 # incompatible versions:
4253 # SysV /etc/install, /usr/sbin/install
4254 # SunOS /usr/etc/install
4255 # IRIX /sbin/install
4256 # AIX /bin/install
4257 # AmigaOS /C/install, which installs bootblocks on floppy discs
4258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4261 # OS/2's system install, which has a completely different semantic
4262 # ./install, which can be erroneously created by make from ./install.sh.
4263 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4264 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4265 if test -z "$INSTALL"; then
4266 if test "${ac_cv_path_install+set}" = set; then
4267   echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4271 do
4272   IFS=$as_save_IFS
4273   test -z "$as_dir" && as_dir=.
4274   # Account for people who put trailing slashes in PATH elements.
4275 case $as_dir/ in
4276   ./ | .// | /cC/* | \
4277   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4278   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4279   /usr/ucb/* ) ;;
4280   *)
4281     # OSF1 and SCO ODT 3.0 have their own names for install.
4282     # Don't use installbsd from OSF since it installs stuff as root
4283     # by default.
4284     for ac_prog in ginstall scoinst install; do
4285       for ac_exec_ext in '' $ac_executable_extensions; do
4286         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4287           if test $ac_prog = install &&
4288             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4289             # AIX install.  It has an incompatible calling convention.
4290             :
4291           elif test $ac_prog = install &&
4292             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4293             # program-specific install script used by HP pwplus--don't use.
4294             :
4295           else
4296             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4297             break 3
4298           fi
4299         fi
4300       done
4301     done
4302     ;;
4303 esac
4304 done
4305 IFS=$as_save_IFS
4306
4307
4308 fi
4309   if test "${ac_cv_path_install+set}" = set; then
4310     INSTALL=$ac_cv_path_install
4311   else
4312     # As a last resort, use the slow shell script.  Don't cache a
4313     # value for INSTALL within a source directory, because that will
4314     # break other packages using the cache if that directory is
4315     # removed, or if the value is a relative name.
4316     INSTALL=$ac_install_sh
4317   fi
4318 fi
4319 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4320 echo "${ECHO_T}$INSTALL" >&6; }
4321
4322 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4323 # It thinks the first close brace ends the variable substitution.
4324 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4325
4326 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4327
4328 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4329
4330 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4331 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4332 LN_S=$as_ln_s
4333 if test "$LN_S" = "ln -s"; then
4334   { echo "$as_me:$LINENO: result: yes" >&5
4335 echo "${ECHO_T}yes" >&6; }
4336 else
4337   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4338 echo "${ECHO_T}no, using $LN_S" >&6; }
4339 fi
4340
4341 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4342 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4343 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4344 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4345   echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347   cat >conftest.make <<\_ACEOF
4348 SHELL = /bin/sh
4349 all:
4350         @echo '@@@%%%=$(MAKE)=@@@%%%'
4351 _ACEOF
4352 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4353 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4354   *@@@%%%=?*=@@@%%%*)
4355     eval ac_cv_prog_make_${ac_make}_set=yes;;
4356   *)
4357     eval ac_cv_prog_make_${ac_make}_set=no;;
4358 esac
4359 rm -f conftest.make
4360 fi
4361 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4362   { echo "$as_me:$LINENO: result: yes" >&5
4363 echo "${ECHO_T}yes" >&6; }
4364   SET_MAKE=
4365 else
4366   { echo "$as_me:$LINENO: result: no" >&5
4367 echo "${ECHO_T}no" >&6; }
4368   SET_MAKE="MAKE=${MAKE-make}"
4369 fi
4370
4371 case `pwd` in
4372   *\ * | *\     *)
4373     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4374 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4375 esac
4376
4377
4378
4379 macro_version='2.2.4'
4380 macro_revision='1.2976'
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394 ltmain="$ac_aux_dir/ltmain.sh"
4395
4396 # Make sure we can run config.sub.
4397 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4398   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4399 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4400    { (exit 1); exit 1; }; }
4401
4402 { echo "$as_me:$LINENO: checking build system type" >&5
4403 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4404 if test "${ac_cv_build+set}" = set; then
4405   echo $ECHO_N "(cached) $ECHO_C" >&6
4406 else
4407   ac_build_alias=$build_alias
4408 test "x$ac_build_alias" = x &&
4409   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4410 test "x$ac_build_alias" = x &&
4411   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4412 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4413    { (exit 1); exit 1; }; }
4414 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4415   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4416 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4417    { (exit 1); exit 1; }; }
4418
4419 fi
4420 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4421 echo "${ECHO_T}$ac_cv_build" >&6; }
4422 case $ac_cv_build in
4423 *-*-*) ;;
4424 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4425 echo "$as_me: error: invalid value of canonical build" >&2;}
4426    { (exit 1); exit 1; }; };;
4427 esac
4428 build=$ac_cv_build
4429 ac_save_IFS=$IFS; IFS='-'
4430 set x $ac_cv_build
4431 shift
4432 build_cpu=$1
4433 build_vendor=$2
4434 shift; shift
4435 # Remember, the first character of IFS is used to create $*,
4436 # except with old shells:
4437 build_os=$*
4438 IFS=$ac_save_IFS
4439 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4440
4441
4442 { echo "$as_me:$LINENO: checking host system type" >&5
4443 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4444 if test "${ac_cv_host+set}" = set; then
4445   echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447   if test "x$host_alias" = x; then
4448   ac_cv_host=$ac_cv_build
4449 else
4450   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4451     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4452 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4453    { (exit 1); exit 1; }; }
4454 fi
4455
4456 fi
4457 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4458 echo "${ECHO_T}$ac_cv_host" >&6; }
4459 case $ac_cv_host in
4460 *-*-*) ;;
4461 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4462 echo "$as_me: error: invalid value of canonical host" >&2;}
4463    { (exit 1); exit 1; }; };;
4464 esac
4465 host=$ac_cv_host
4466 ac_save_IFS=$IFS; IFS='-'
4467 set x $ac_cv_host
4468 shift
4469 host_cpu=$1
4470 host_vendor=$2
4471 shift; shift
4472 # Remember, the first character of IFS is used to create $*,
4473 # except with old shells:
4474 host_os=$*
4475 IFS=$ac_save_IFS
4476 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4477
4478
4479 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4480 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4481 if test "${ac_cv_path_SED+set}" = set; then
4482   echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4485      for ac_i in 1 2 3 4 5 6 7; do
4486        ac_script="$ac_script$as_nl$ac_script"
4487      done
4488      echo "$ac_script" | sed 99q >conftest.sed
4489      $as_unset ac_script || ac_script=
4490      # Extract the first word of "sed gsed" to use in msg output
4491 if test -z "$SED"; then
4492 set dummy sed gsed; ac_prog_name=$2
4493 if test "${ac_cv_path_SED+set}" = set; then
4494   echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496   ac_path_SED_found=false
4497 # Loop through the user's path and test for each of PROGNAME-LIST
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4500 do
4501   IFS=$as_save_IFS
4502   test -z "$as_dir" && as_dir=.
4503   for ac_prog in sed gsed; do
4504   for ac_exec_ext in '' $ac_executable_extensions; do
4505     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4506     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4507     # Check for GNU ac_path_SED and select it if it is found.
4508   # Check for GNU $ac_path_SED
4509 case `"$ac_path_SED" --version 2>&1` in
4510 *GNU*)
4511   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4512 *)
4513   ac_count=0
4514   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4515   while :
4516   do
4517     cat "conftest.in" "conftest.in" >"conftest.tmp"
4518     mv "conftest.tmp" "conftest.in"
4519     cp "conftest.in" "conftest.nl"
4520     echo '' >> "conftest.nl"
4521     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4522     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4523     ac_count=`expr $ac_count + 1`
4524     if test $ac_count -gt ${ac_path_SED_max-0}; then
4525       # Best one so far, save it but keep looking for a better one
4526       ac_cv_path_SED="$ac_path_SED"
4527       ac_path_SED_max=$ac_count
4528     fi
4529     # 10*(2^10) chars as input seems more than enough
4530     test $ac_count -gt 10 && break
4531   done
4532   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4533 esac
4534
4535
4536     $ac_path_SED_found && break 3
4537   done
4538 done
4539
4540 done
4541 IFS=$as_save_IFS
4542
4543
4544 fi
4545
4546 SED="$ac_cv_path_SED"
4547 if test -z "$SED"; then
4548   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4549 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4550    { (exit 1); exit 1; }; }
4551 fi
4552
4553 else
4554   ac_cv_path_SED=$SED
4555 fi
4556
4557 fi
4558 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4559 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4560  SED="$ac_cv_path_SED"
4561   rm -f conftest.sed
4562
4563 test -z "$SED" && SED=sed
4564 Xsed="$SED -e 1s/^X//"
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4577 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4578 if test "${ac_cv_path_GREP+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   # Extract the first word of "grep ggrep" to use in msg output
4582 if test -z "$GREP"; then
4583 set dummy grep ggrep; ac_prog_name=$2
4584 if test "${ac_cv_path_GREP+set}" = set; then
4585   echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587   ac_path_GREP_found=false
4588 # Loop through the user's path and test for each of PROGNAME-LIST
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4591 do
4592   IFS=$as_save_IFS
4593   test -z "$as_dir" && as_dir=.
4594   for ac_prog in grep ggrep; do
4595   for ac_exec_ext in '' $ac_executable_extensions; do
4596     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4597     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4598     # Check for GNU ac_path_GREP and select it if it is found.
4599   # Check for GNU $ac_path_GREP
4600 case `"$ac_path_GREP" --version 2>&1` in
4601 *GNU*)
4602   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4603 *)
4604   ac_count=0
4605   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4606   while :
4607   do
4608     cat "conftest.in" "conftest.in" >"conftest.tmp"
4609     mv "conftest.tmp" "conftest.in"
4610     cp "conftest.in" "conftest.nl"
4611     echo 'GREP' >> "conftest.nl"
4612     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4613     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4614     ac_count=`expr $ac_count + 1`
4615     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4616       # Best one so far, save it but keep looking for a better one
4617       ac_cv_path_GREP="$ac_path_GREP"
4618       ac_path_GREP_max=$ac_count
4619     fi
4620     # 10*(2^10) chars as input seems more than enough
4621     test $ac_count -gt 10 && break
4622   done
4623   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4624 esac
4625
4626
4627     $ac_path_GREP_found && break 3
4628   done
4629 done
4630
4631 done
4632 IFS=$as_save_IFS
4633
4634
4635 fi
4636
4637 GREP="$ac_cv_path_GREP"
4638 if test -z "$GREP"; then
4639   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4640 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4641    { (exit 1); exit 1; }; }
4642 fi
4643
4644 else
4645   ac_cv_path_GREP=$GREP
4646 fi
4647
4648
4649 fi
4650 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4651 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4652  GREP="$ac_cv_path_GREP"
4653
4654
4655 { echo "$as_me:$LINENO: checking for egrep" >&5
4656 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4657 if test "${ac_cv_path_EGREP+set}" = set; then
4658   echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4661    then ac_cv_path_EGREP="$GREP -E"
4662    else
4663      # Extract the first word of "egrep" to use in msg output
4664 if test -z "$EGREP"; then
4665 set dummy egrep; ac_prog_name=$2
4666 if test "${ac_cv_path_EGREP+set}" = set; then
4667   echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669   ac_path_EGREP_found=false
4670 # Loop through the user's path and test for each of PROGNAME-LIST
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4673 do
4674   IFS=$as_save_IFS
4675   test -z "$as_dir" && as_dir=.
4676   for ac_prog in egrep; do
4677   for ac_exec_ext in '' $ac_executable_extensions; do
4678     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4679     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4680     # Check for GNU ac_path_EGREP and select it if it is found.
4681   # Check for GNU $ac_path_EGREP
4682 case `"$ac_path_EGREP" --version 2>&1` in
4683 *GNU*)
4684   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4685 *)
4686   ac_count=0
4687   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4688   while :
4689   do
4690     cat "conftest.in" "conftest.in" >"conftest.tmp"
4691     mv "conftest.tmp" "conftest.in"
4692     cp "conftest.in" "conftest.nl"
4693     echo 'EGREP' >> "conftest.nl"
4694     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4695     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4696     ac_count=`expr $ac_count + 1`
4697     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4698       # Best one so far, save it but keep looking for a better one
4699       ac_cv_path_EGREP="$ac_path_EGREP"
4700       ac_path_EGREP_max=$ac_count
4701     fi
4702     # 10*(2^10) chars as input seems more than enough
4703     test $ac_count -gt 10 && break
4704   done
4705   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4706 esac
4707
4708
4709     $ac_path_EGREP_found && break 3
4710   done
4711 done
4712
4713 done
4714 IFS=$as_save_IFS
4715
4716
4717 fi
4718
4719 EGREP="$ac_cv_path_EGREP"
4720 if test -z "$EGREP"; then
4721   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4722 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4723    { (exit 1); exit 1; }; }
4724 fi
4725
4726 else
4727   ac_cv_path_EGREP=$EGREP
4728 fi
4729
4730
4731    fi
4732 fi
4733 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4734 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4735  EGREP="$ac_cv_path_EGREP"
4736
4737
4738 { echo "$as_me:$LINENO: checking for fgrep" >&5
4739 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4740 if test "${ac_cv_path_FGREP+set}" = set; then
4741   echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4744    then ac_cv_path_FGREP="$GREP -F"
4745    else
4746      # Extract the first word of "fgrep" to use in msg output
4747 if test -z "$FGREP"; then
4748 set dummy fgrep; ac_prog_name=$2
4749 if test "${ac_cv_path_FGREP+set}" = set; then
4750   echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752   ac_path_FGREP_found=false
4753 # Loop through the user's path and test for each of PROGNAME-LIST
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4756 do
4757   IFS=$as_save_IFS
4758   test -z "$as_dir" && as_dir=.
4759   for ac_prog in fgrep; do
4760   for ac_exec_ext in '' $ac_executable_extensions; do
4761     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4762     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4763     # Check for GNU ac_path_FGREP and select it if it is found.
4764   # Check for GNU $ac_path_FGREP
4765 case `"$ac_path_FGREP" --version 2>&1` in
4766 *GNU*)
4767   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4768 *)
4769   ac_count=0
4770   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4771   while :
4772   do
4773     cat "conftest.in" "conftest.in" >"conftest.tmp"
4774     mv "conftest.tmp" "conftest.in"
4775     cp "conftest.in" "conftest.nl"
4776     echo 'FGREP' >> "conftest.nl"
4777     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4778     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4779     ac_count=`expr $ac_count + 1`
4780     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4781       # Best one so far, save it but keep looking for a better one
4782       ac_cv_path_FGREP="$ac_path_FGREP"
4783       ac_path_FGREP_max=$ac_count
4784     fi
4785     # 10*(2^10) chars as input seems more than enough
4786     test $ac_count -gt 10 && break
4787   done
4788   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4789 esac
4790
4791
4792     $ac_path_FGREP_found && break 3
4793   done
4794 done
4795
4796 done
4797 IFS=$as_save_IFS
4798
4799
4800 fi
4801
4802 FGREP="$ac_cv_path_FGREP"
4803 if test -z "$FGREP"; then
4804   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4805 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4806    { (exit 1); exit 1; }; }
4807 fi
4808
4809 else
4810   ac_cv_path_FGREP=$FGREP
4811 fi
4812
4813
4814    fi
4815 fi
4816 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4817 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4818  FGREP="$ac_cv_path_FGREP"
4819
4820
4821 test -z "$GREP" && GREP=grep
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841 # Check whether --with-gnu-ld was given.
4842 if test "${with_gnu_ld+set}" = set; then
4843   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4844 else
4845   with_gnu_ld=no
4846 fi
4847
4848 ac_prog=ld
4849 if test "$GCC" = yes; then
4850   # Check if gcc -print-prog-name=ld gives a path.
4851   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4852 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4853   case $host in
4854   *-*-mingw*)
4855     # gcc leaves a trailing carriage return which upsets mingw
4856     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4857   *)
4858     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4859   esac
4860   case $ac_prog in
4861     # Accept absolute paths.
4862     [\\/]* | ?:[\\/]*)
4863       re_direlt='/[^/][^/]*/\.\./'
4864       # Canonicalize the pathname of ld
4865       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4866       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4867         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4868       done
4869       test -z "$LD" && LD="$ac_prog"
4870       ;;
4871   "")
4872     # If it fails, then pretend we aren't using GCC.
4873     ac_prog=ld
4874     ;;
4875   *)
4876     # If it is relative, then search for the first ld in PATH.
4877     with_gnu_ld=unknown
4878     ;;
4879   esac
4880 elif test "$with_gnu_ld" = yes; then
4881   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4882 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4883 else
4884   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4885 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4886 fi
4887 if test "${lt_cv_path_LD+set}" = set; then
4888   echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890   if test -z "$LD"; then
4891   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4892   for ac_dir in $PATH; do
4893     IFS="$lt_save_ifs"
4894     test -z "$ac_dir" && ac_dir=.
4895     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4896       lt_cv_path_LD="$ac_dir/$ac_prog"
4897       # Check to see if the program is GNU ld.  I'd rather use --version,
4898       # but apparently some variants of GNU ld only accept -v.
4899       # Break only if it was the GNU/non-GNU ld that we prefer.
4900       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4901       *GNU* | *'with BFD'*)
4902         test "$with_gnu_ld" != no && break
4903         ;;
4904       *)
4905         test "$with_gnu_ld" != yes && break
4906         ;;
4907       esac
4908     fi
4909   done
4910   IFS="$lt_save_ifs"
4911 else
4912   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4913 fi
4914 fi
4915
4916 LD="$lt_cv_path_LD"
4917 if test -n "$LD"; then
4918   { echo "$as_me:$LINENO: result: $LD" >&5
4919 echo "${ECHO_T}$LD" >&6; }
4920 else
4921   { echo "$as_me:$LINENO: result: no" >&5
4922 echo "${ECHO_T}no" >&6; }
4923 fi
4924 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4925 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4926    { (exit 1); exit 1; }; }
4927 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4928 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4929 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4930   echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4933 case `$LD -v 2>&1 </dev/null` in
4934 *GNU* | *'with BFD'*)
4935   lt_cv_prog_gnu_ld=yes
4936   ;;
4937 *)
4938   lt_cv_prog_gnu_ld=no
4939   ;;
4940 esac
4941 fi
4942 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4943 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4944 with_gnu_ld=$lt_cv_prog_gnu_ld
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4955 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4956 if test "${lt_cv_path_NM+set}" = set; then
4957   echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959   if test -n "$NM"; then
4960   # Let the user override the test.
4961   lt_cv_path_NM="$NM"
4962 else
4963   lt_nm_to_check="${ac_tool_prefix}nm"
4964   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4965     lt_nm_to_check="$lt_nm_to_check nm"
4966   fi
4967   for lt_tmp_nm in $lt_nm_to_check; do
4968     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4969     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4970       IFS="$lt_save_ifs"
4971       test -z "$ac_dir" && ac_dir=.
4972       tmp_nm="$ac_dir/$lt_tmp_nm"
4973       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4974         # Check to see if the nm accepts a BSD-compat flag.
4975         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4976         #   nm: unknown option "B" ignored
4977         # Tru64's nm complains that /dev/null is an invalid object file
4978         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4979         */dev/null* | *'Invalid file or object type'*)
4980           lt_cv_path_NM="$tmp_nm -B"
4981           break
4982           ;;
4983         *)
4984           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4985           */dev/null*)
4986             lt_cv_path_NM="$tmp_nm -p"
4987             break
4988             ;;
4989           *)
4990             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4991             continue # so that we can try to find one that supports BSD flags
4992             ;;
4993           esac
4994           ;;
4995         esac
4996       fi
4997     done
4998     IFS="$lt_save_ifs"
4999   done
5000   : ${lt_cv_path_NM=no}
5001 fi
5002 fi
5003 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5004 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5005 if test "$lt_cv_path_NM" != "no"; then
5006   NM="$lt_cv_path_NM"
5007 else
5008   # Didn't find any BSD compatible name lister, look for dumpbin.
5009   if test -n "$ac_tool_prefix"; then
5010   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5011   do
5012     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5016 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5017   echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019   if test -n "$DUMPBIN"; then
5020   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5024 do
5025   IFS=$as_save_IFS
5026   test -z "$as_dir" && as_dir=.
5027   for ac_exec_ext in '' $ac_executable_extensions; do
5028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5031     break 2
5032   fi
5033 done
5034 done
5035 IFS=$as_save_IFS
5036
5037 fi
5038 fi
5039 DUMPBIN=$ac_cv_prog_DUMPBIN
5040 if test -n "$DUMPBIN"; then
5041   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5042 echo "${ECHO_T}$DUMPBIN" >&6; }
5043 else
5044   { echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6; }
5046 fi
5047
5048
5049     test -n "$DUMPBIN" && break
5050   done
5051 fi
5052 if test -z "$DUMPBIN"; then
5053   ac_ct_DUMPBIN=$DUMPBIN
5054   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5055 do
5056   # Extract the first word of "$ac_prog", so it can be a program name with args.
5057 set dummy $ac_prog; ac_word=$2
5058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5060 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5061   echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063   if test -n "$ac_ct_DUMPBIN"; then
5064   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5068 do
5069   IFS=$as_save_IFS
5070   test -z "$as_dir" && as_dir=.
5071   for ac_exec_ext in '' $ac_executable_extensions; do
5072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075     break 2
5076   fi
5077 done
5078 done
5079 IFS=$as_save_IFS
5080
5081 fi
5082 fi
5083 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5084 if test -n "$ac_ct_DUMPBIN"; then
5085   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5086 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5087 else
5088   { echo "$as_me:$LINENO: result: no" >&5
5089 echo "${ECHO_T}no" >&6; }
5090 fi
5091
5092
5093   test -n "$ac_ct_DUMPBIN" && break
5094 done
5095
5096   if test "x$ac_ct_DUMPBIN" = x; then
5097     DUMPBIN=":"
5098   else
5099     case $cross_compiling:$ac_tool_warned in
5100 yes:)
5101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5102 whose name does not start with the host triplet.  If you think this
5103 configuration is useful to you, please write to autoconf@gnu.org." >&5
5104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5105 whose name does not start with the host triplet.  If you think this
5106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5107 ac_tool_warned=yes ;;
5108 esac
5109     DUMPBIN=$ac_ct_DUMPBIN
5110   fi
5111 fi
5112
5113
5114   if test "$DUMPBIN" != ":"; then
5115     NM="$DUMPBIN"
5116   fi
5117 fi
5118 test -z "$NM" && NM=nm
5119
5120
5121
5122
5123
5124
5125 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5126 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5127 if test "${lt_cv_nm_interface+set}" = set; then
5128   echo $ECHO_N "(cached) $ECHO_C" >&6
5129 else
5130   lt_cv_nm_interface="BSD nm"
5131   echo "int some_variable = 0;" > conftest.$ac_ext
5132   (eval echo "\"\$as_me:5132: $ac_compile\"" >&5)
5133   (eval "$ac_compile" 2>conftest.err)
5134   cat conftest.err >&5
5135   (eval echo "\"\$as_me:5135: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5136   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5137   cat conftest.err >&5
5138   (eval echo "\"\$as_me:5138: output\"" >&5)
5139   cat conftest.out >&5
5140   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5141     lt_cv_nm_interface="MS dumpbin"
5142   fi
5143   rm -f conftest*
5144 fi
5145 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5146 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5147
5148 # find the maximum length of command line arguments
5149 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5150 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5151 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5152   echo $ECHO_N "(cached) $ECHO_C" >&6
5153 else
5154     i=0
5155   teststring="ABCD"
5156
5157   case $build_os in
5158   msdosdjgpp*)
5159     # On DJGPP, this test can blow up pretty badly due to problems in libc
5160     # (any single argument exceeding 2000 bytes causes a buffer overrun
5161     # during glob expansion).  Even if it were fixed, the result of this
5162     # check would be larger than it should be.
5163     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5164     ;;
5165
5166   gnu*)
5167     # Under GNU Hurd, this test is not required because there is
5168     # no limit to the length of command line arguments.
5169     # Libtool will interpret -1 as no limit whatsoever
5170     lt_cv_sys_max_cmd_len=-1;
5171     ;;
5172
5173   cygwin* | mingw*)
5174     # On Win9x/ME, this test blows up -- it succeeds, but takes
5175     # about 5 minutes as the teststring grows exponentially.
5176     # Worse, since 9x/ME are not pre-emptively multitasking,
5177     # you end up with a "frozen" computer, even though with patience
5178     # the test eventually succeeds (with a max line length of 256k).
5179     # Instead, let's just punt: use the minimum linelength reported by
5180     # all of the supported platforms: 8192 (on NT/2K/XP).
5181     lt_cv_sys_max_cmd_len=8192;
5182     ;;
5183
5184   amigaos*)
5185     # On AmigaOS with pdksh, this test takes hours, literally.
5186     # So we just punt and use a minimum line length of 8192.
5187     lt_cv_sys_max_cmd_len=8192;
5188     ;;
5189
5190   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5191     # This has been around since 386BSD, at least.  Likely further.
5192     if test -x /sbin/sysctl; then
5193       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5194     elif test -x /usr/sbin/sysctl; then
5195       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5196     else
5197       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5198     fi
5199     # And add a safety zone
5200     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5201     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5202     ;;
5203
5204   interix*)
5205     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5206     lt_cv_sys_max_cmd_len=196608
5207     ;;
5208
5209   osf*)
5210     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5211     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5212     # nice to cause kernel panics so lets avoid the loop below.
5213     # First set a reasonable default.
5214     lt_cv_sys_max_cmd_len=16384
5215     #
5216     if test -x /sbin/sysconfig; then
5217       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5218         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5219       esac
5220     fi
5221     ;;
5222   sco3.2v5*)
5223     lt_cv_sys_max_cmd_len=102400
5224     ;;
5225   sysv5* | sco5v6* | sysv4.2uw2*)
5226     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5227     if test -n "$kargmax"; then
5228       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5229     else
5230       lt_cv_sys_max_cmd_len=32768
5231     fi
5232     ;;
5233   *)
5234     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5235     if test -n "$lt_cv_sys_max_cmd_len"; then
5236       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5237       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5238     else
5239       # Make teststring a little bigger before we do anything with it.
5240       # a 1K string should be a reasonable start.
5241       for i in 1 2 3 4 5 6 7 8 ; do
5242         teststring=$teststring$teststring
5243       done
5244       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5245       # If test is not a shell built-in, we'll probably end up computing a
5246       # maximum length that is only half of the actual maximum length, but
5247       # we can't tell.
5248       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5249                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5250               test $i != 17 # 1/2 MB should be enough
5251       do
5252         i=`expr $i + 1`
5253         teststring=$teststring$teststring
5254       done
5255       # Only check the string length outside the loop.
5256       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5257       teststring=
5258       # Add a significant safety factor because C++ compilers can tack on
5259       # massive amounts of additional arguments before passing them to the
5260       # linker.  It appears as though 1/2 is a usable value.
5261       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5262     fi
5263     ;;
5264   esac
5265
5266 fi
5267
5268 if test -n $lt_cv_sys_max_cmd_len ; then
5269   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5270 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5271 else
5272   { echo "$as_me:$LINENO: result: none" >&5
5273 echo "${ECHO_T}none" >&6; }
5274 fi
5275 max_cmd_len=$lt_cv_sys_max_cmd_len
5276
5277
5278
5279
5280
5281
5282 : ${CP="cp -f"}
5283 : ${MV="mv -f"}
5284 : ${RM="rm -f"}
5285
5286 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5287 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
5288 # Try some XSI features
5289 xsi_shell=no
5290 ( _lt_dummy="a/b/c"
5291   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5292       = c,a/b,, \
5293     && eval 'test $(( 1 + 1 )) -eq 2 \
5294     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5295   && xsi_shell=yes
5296 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
5297 echo "${ECHO_T}$xsi_shell" >&6; }
5298
5299
5300 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5301 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
5302 lt_shell_append=no
5303 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5304     >/dev/null 2>&1 \
5305   && lt_shell_append=yes
5306 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5307 echo "${ECHO_T}$lt_shell_append" >&6; }
5308
5309
5310 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5311   lt_unset=unset
5312 else
5313   lt_unset=false
5314 fi
5315
5316
5317
5318
5319
5320 # test EBCDIC or ASCII
5321 case `echo X|tr X '\101'` in
5322  A) # ASCII based system
5323     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5324   lt_SP2NL='tr \040 \012'
5325   lt_NL2SP='tr \015\012 \040\040'
5326   ;;
5327  *) # EBCDIC based system
5328   lt_SP2NL='tr \100 \n'
5329   lt_NL2SP='tr \r\n \100\100'
5330   ;;
5331 esac
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5342 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5343 if test "${lt_cv_ld_reload_flag+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   lt_cv_ld_reload_flag='-r'
5347 fi
5348 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5349 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5350 reload_flag=$lt_cv_ld_reload_flag
5351 case $reload_flag in
5352 "" | " "*) ;;
5353 *) reload_flag=" $reload_flag" ;;
5354 esac
5355 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5356 case $host_os in
5357   darwin*)
5358     if test "$GCC" = yes; then
5359       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5360     else
5361       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5362     fi
5363     ;;
5364 esac
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5376 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5377 if test "${lt_cv_deplibs_check_method+set}" = set; then
5378   echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380   lt_cv_file_magic_cmd='$MAGIC_CMD'
5381 lt_cv_file_magic_test_file=
5382 lt_cv_deplibs_check_method='unknown'
5383 # Need to set the preceding variable on all platforms that support
5384 # interlibrary dependencies.
5385 # 'none' -- dependencies not supported.
5386 # `unknown' -- same as none, but documents that we really don't know.
5387 # 'pass_all' -- all dependencies passed with no checks.
5388 # 'test_compile' -- check by making test program.
5389 # 'file_magic [[regex]]' -- check by looking for files in library path
5390 # which responds to the $file_magic_cmd with a given extended regex.
5391 # If you have `file' or equivalent on your system and you're not sure
5392 # whether `pass_all' will *always* work, you probably want this one.
5393
5394 case $host_os in
5395 aix[4-9]*)
5396   lt_cv_deplibs_check_method=pass_all
5397   ;;
5398
5399 beos*)
5400   lt_cv_deplibs_check_method=pass_all
5401   ;;
5402
5403 bsdi[45]*)
5404   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5405   lt_cv_file_magic_cmd='/usr/bin/file -L'
5406   lt_cv_file_magic_test_file=/shlib/libc.so
5407   ;;
5408
5409 cygwin*)
5410   # func_win32_libid is a shell function defined in ltmain.sh
5411   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5412   lt_cv_file_magic_cmd='func_win32_libid'
5413   ;;
5414
5415 mingw* | pw32*)
5416   # Base MSYS/MinGW do not provide the 'file' command needed by
5417   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5418   # unless we find 'file', for example because we are cross-compiling.
5419   if ( file / ) >/dev/null 2>&1; then
5420     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5421     lt_cv_file_magic_cmd='func_win32_libid'
5422   else
5423     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5424     lt_cv_file_magic_cmd='$OBJDUMP -f'
5425   fi
5426   ;;
5427
5428 darwin* | rhapsody*)
5429   lt_cv_deplibs_check_method=pass_all
5430   ;;
5431
5432 freebsd* | dragonfly*)
5433   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5434     case $host_cpu in
5435     i*86 )
5436       # Not sure whether the presence of OpenBSD here was a mistake.
5437       # Let's accept both of them until this is cleared up.
5438       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5439       lt_cv_file_magic_cmd=/usr/bin/file
5440       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5441       ;;
5442     esac
5443   else
5444     lt_cv_deplibs_check_method=pass_all
5445   fi
5446   ;;
5447
5448 gnu*)
5449   lt_cv_deplibs_check_method=pass_all
5450   ;;
5451
5452 hpux10.20* | hpux11*)
5453   lt_cv_file_magic_cmd=/usr/bin/file
5454   case $host_cpu in
5455   ia64*)
5456     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5457     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5458     ;;
5459   hppa*64*)
5460     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]'
5461     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5462     ;;
5463   *)
5464     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5465     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5466     ;;
5467   esac
5468   ;;
5469
5470 interix[3-9]*)
5471   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5472   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5473   ;;
5474
5475 irix5* | irix6* | nonstopux*)
5476   case $LD in
5477   *-32|*"-32 ") libmagic=32-bit;;
5478   *-n32|*"-n32 ") libmagic=N32;;
5479   *-64|*"-64 ") libmagic=64-bit;;
5480   *) libmagic=never-match;;
5481   esac
5482   lt_cv_deplibs_check_method=pass_all
5483   ;;
5484
5485 # This must be Linux ELF.
5486 linux* | k*bsd*-gnu)
5487   lt_cv_deplibs_check_method=pass_all
5488   ;;
5489
5490 netbsd*)
5491   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5492     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5493   else
5494     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5495   fi
5496   ;;
5497
5498 newos6*)
5499   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5500   lt_cv_file_magic_cmd=/usr/bin/file
5501   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5502   ;;
5503
5504 *nto* | *qnx*)
5505   lt_cv_deplibs_check_method=pass_all
5506   ;;
5507
5508 openbsd*)
5509   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5510     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5511   else
5512     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5513   fi
5514   ;;
5515
5516 osf3* | osf4* | osf5*)
5517   lt_cv_deplibs_check_method=pass_all
5518   ;;
5519
5520 rdos*)
5521   lt_cv_deplibs_check_method=pass_all
5522   ;;
5523
5524 solaris*)
5525   lt_cv_deplibs_check_method=pass_all
5526   ;;
5527
5528 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5529   lt_cv_deplibs_check_method=pass_all
5530   ;;
5531
5532 sysv4 | sysv4.3*)
5533   case $host_vendor in
5534   motorola)
5535     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]'
5536     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5537     ;;
5538   ncr)
5539     lt_cv_deplibs_check_method=pass_all
5540     ;;
5541   sequent)
5542     lt_cv_file_magic_cmd='/bin/file'
5543     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5544     ;;
5545   sni)
5546     lt_cv_file_magic_cmd='/bin/file'
5547     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5548     lt_cv_file_magic_test_file=/lib/libc.so
5549     ;;
5550   siemens)
5551     lt_cv_deplibs_check_method=pass_all
5552     ;;
5553   pc)
5554     lt_cv_deplibs_check_method=pass_all
5555     ;;
5556   esac
5557   ;;
5558
5559 tpf*)
5560   lt_cv_deplibs_check_method=pass_all
5561   ;;
5562 esac
5563
5564 fi
5565 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5566 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5567 file_magic_cmd=$lt_cv_file_magic_cmd
5568 deplibs_check_method=$lt_cv_deplibs_check_method
5569 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582 if test -n "$ac_tool_prefix"; then
5583   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5584 set dummy ${ac_tool_prefix}ar; ac_word=$2
5585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5587 if test "${ac_cv_prog_AR+set}" = set; then
5588   echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590   if test -n "$AR"; then
5591   ac_cv_prog_AR="$AR" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5595 do
5596   IFS=$as_save_IFS
5597   test -z "$as_dir" && as_dir=.
5598   for ac_exec_ext in '' $ac_executable_extensions; do
5599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5600     ac_cv_prog_AR="${ac_tool_prefix}ar"
5601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602     break 2
5603   fi
5604 done
5605 done
5606 IFS=$as_save_IFS
5607
5608 fi
5609 fi
5610 AR=$ac_cv_prog_AR
5611 if test -n "$AR"; then
5612   { echo "$as_me:$LINENO: result: $AR" >&5
5613 echo "${ECHO_T}$AR" >&6; }
5614 else
5615   { echo "$as_me:$LINENO: result: no" >&5
5616 echo "${ECHO_T}no" >&6; }
5617 fi
5618
5619
5620 fi
5621 if test -z "$ac_cv_prog_AR"; then
5622   ac_ct_AR=$AR
5623   # Extract the first word of "ar", so it can be a program name with args.
5624 set dummy ar; ac_word=$2
5625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5627 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5628   echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630   if test -n "$ac_ct_AR"; then
5631   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5635 do
5636   IFS=$as_save_IFS
5637   test -z "$as_dir" && as_dir=.
5638   for ac_exec_ext in '' $ac_executable_extensions; do
5639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640     ac_cv_prog_ac_ct_AR="ar"
5641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642     break 2
5643   fi
5644 done
5645 done
5646 IFS=$as_save_IFS
5647
5648 fi
5649 fi
5650 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5651 if test -n "$ac_ct_AR"; then
5652   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5653 echo "${ECHO_T}$ac_ct_AR" >&6; }
5654 else
5655   { echo "$as_me:$LINENO: result: no" >&5
5656 echo "${ECHO_T}no" >&6; }
5657 fi
5658
5659   if test "x$ac_ct_AR" = x; then
5660     AR="false"
5661   else
5662     case $cross_compiling:$ac_tool_warned in
5663 yes:)
5664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5665 whose name does not start with the host triplet.  If you think this
5666 configuration is useful to you, please write to autoconf@gnu.org." >&5
5667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5668 whose name does not start with the host triplet.  If you think this
5669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5670 ac_tool_warned=yes ;;
5671 esac
5672     AR=$ac_ct_AR
5673   fi
5674 else
5675   AR="$ac_cv_prog_AR"
5676 fi
5677
5678 test -z "$AR" && AR=ar
5679 test -z "$AR_FLAGS" && AR_FLAGS=cru
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691 if test -n "$ac_tool_prefix"; then
5692   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5693 set dummy ${ac_tool_prefix}strip; ac_word=$2
5694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5696 if test "${ac_cv_prog_STRIP+set}" = set; then
5697   echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5699   if test -n "$STRIP"; then
5700   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5701 else
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 for as_dir in $PATH
5704 do
5705   IFS=$as_save_IFS
5706   test -z "$as_dir" && as_dir=.
5707   for ac_exec_ext in '' $ac_executable_extensions; do
5708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5709     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5711     break 2
5712   fi
5713 done
5714 done
5715 IFS=$as_save_IFS
5716
5717 fi
5718 fi
5719 STRIP=$ac_cv_prog_STRIP
5720 if test -n "$STRIP"; then
5721   { echo "$as_me:$LINENO: result: $STRIP" >&5
5722 echo "${ECHO_T}$STRIP" >&6; }
5723 else
5724   { echo "$as_me:$LINENO: result: no" >&5
5725 echo "${ECHO_T}no" >&6; }
5726 fi
5727
5728
5729 fi
5730 if test -z "$ac_cv_prog_STRIP"; then
5731   ac_ct_STRIP=$STRIP
5732   # Extract the first word of "strip", so it can be a program name with args.
5733 set dummy strip; ac_word=$2
5734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5736 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5737   echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739   if test -n "$ac_ct_STRIP"; then
5740   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5741 else
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745   IFS=$as_save_IFS
5746   test -z "$as_dir" && as_dir=.
5747   for ac_exec_ext in '' $ac_executable_extensions; do
5748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5749     ac_cv_prog_ac_ct_STRIP="strip"
5750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5751     break 2
5752   fi
5753 done
5754 done
5755 IFS=$as_save_IFS
5756
5757 fi
5758 fi
5759 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5760 if test -n "$ac_ct_STRIP"; then
5761   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5762 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5763 else
5764   { echo "$as_me:$LINENO: result: no" >&5
5765 echo "${ECHO_T}no" >&6; }
5766 fi
5767
5768   if test "x$ac_ct_STRIP" = x; then
5769     STRIP=":"
5770   else
5771     case $cross_compiling:$ac_tool_warned in
5772 yes:)
5773 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5774 whose name does not start with the host triplet.  If you think this
5775 configuration is useful to you, please write to autoconf@gnu.org." >&5
5776 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5777 whose name does not start with the host triplet.  If you think this
5778 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5779 ac_tool_warned=yes ;;
5780 esac
5781     STRIP=$ac_ct_STRIP
5782   fi
5783 else
5784   STRIP="$ac_cv_prog_STRIP"
5785 fi
5786
5787 test -z "$STRIP" && STRIP=:
5788
5789
5790
5791
5792
5793
5794 if test -n "$ac_tool_prefix"; then
5795   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5796 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5799 if test "${ac_cv_prog_RANLIB+set}" = set; then
5800   echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802   if test -n "$RANLIB"; then
5803   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808   IFS=$as_save_IFS
5809   test -z "$as_dir" && as_dir=.
5810   for ac_exec_ext in '' $ac_executable_extensions; do
5811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814     break 2
5815   fi
5816 done
5817 done
5818 IFS=$as_save_IFS
5819
5820 fi
5821 fi
5822 RANLIB=$ac_cv_prog_RANLIB
5823 if test -n "$RANLIB"; then
5824   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5825 echo "${ECHO_T}$RANLIB" >&6; }
5826 else
5827   { echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6; }
5829 fi
5830
5831
5832 fi
5833 if test -z "$ac_cv_prog_RANLIB"; then
5834   ac_ct_RANLIB=$RANLIB
5835   # Extract the first word of "ranlib", so it can be a program name with args.
5836 set dummy ranlib; ac_word=$2
5837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5839 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5840   echo $ECHO_N "(cached) $ECHO_C" >&6
5841 else
5842   if test -n "$ac_ct_RANLIB"; then
5843   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5844 else
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848   IFS=$as_save_IFS
5849   test -z "$as_dir" && as_dir=.
5850   for ac_exec_ext in '' $ac_executable_extensions; do
5851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5852     ac_cv_prog_ac_ct_RANLIB="ranlib"
5853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854     break 2
5855   fi
5856 done
5857 done
5858 IFS=$as_save_IFS
5859
5860 fi
5861 fi
5862 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5863 if test -n "$ac_ct_RANLIB"; then
5864   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5865 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5866 else
5867   { echo "$as_me:$LINENO: result: no" >&5
5868 echo "${ECHO_T}no" >&6; }
5869 fi
5870
5871   if test "x$ac_ct_RANLIB" = x; then
5872     RANLIB=":"
5873   else
5874     case $cross_compiling:$ac_tool_warned in
5875 yes:)
5876 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5877 whose name does not start with the host triplet.  If you think this
5878 configuration is useful to you, please write to autoconf@gnu.org." >&5
5879 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5880 whose name does not start with the host triplet.  If you think this
5881 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5882 ac_tool_warned=yes ;;
5883 esac
5884     RANLIB=$ac_ct_RANLIB
5885   fi
5886 else
5887   RANLIB="$ac_cv_prog_RANLIB"
5888 fi
5889
5890 test -z "$RANLIB" && RANLIB=:
5891
5892
5893
5894
5895
5896
5897 # Determine commands to create old-style static archives.
5898 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5899 old_postinstall_cmds='chmod 644 $oldlib'
5900 old_postuninstall_cmds=
5901
5902 if test -n "$RANLIB"; then
5903   case $host_os in
5904   openbsd*)
5905     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5906     ;;
5907   *)
5908     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5909     ;;
5910   esac
5911   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5912 fi
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947 # If no C compiler was specified, use CC.
5948 LTCC=${LTCC-"$CC"}
5949
5950 # If no C compiler flags were specified, use CFLAGS.
5951 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5952
5953 # Allow CC to be a program name with arguments.
5954 compiler=$CC
5955
5956
5957 # Check for command to grab the raw symbol name followed by C symbol from nm.
5958 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5959 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5960 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5961   echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963
5964 # These are sane defaults that work on at least a few old systems.
5965 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5966
5967 # Character class describing NM global symbol codes.
5968 symcode='[BCDEGRST]'
5969
5970 # Regexp to match symbols that can be accessed directly from C.
5971 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5972
5973 # Define system-specific variables.
5974 case $host_os in
5975 aix*)
5976   symcode='[BCDT]'
5977   ;;
5978 cygwin* | mingw* | pw32*)
5979   symcode='[ABCDGISTW]'
5980   ;;
5981 hpux*)
5982   if test "$host_cpu" = ia64; then
5983     symcode='[ABCDEGRST]'
5984   fi
5985   ;;
5986 irix* | nonstopux*)
5987   symcode='[BCDEGRST]'
5988   ;;
5989 osf*)
5990   symcode='[BCDEGQRST]'
5991   ;;
5992 solaris*)
5993   symcode='[BDRT]'
5994   ;;
5995 sco3.2v5*)
5996   symcode='[DT]'
5997   ;;
5998 sysv4.2uw2*)
5999   symcode='[DT]'
6000   ;;
6001 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6002   symcode='[ABDT]'
6003   ;;
6004 sysv4)
6005   symcode='[DFNSTU]'
6006   ;;
6007 esac
6008
6009 # If we're using GNU nm, then use its standard symbol codes.
6010 case `$NM -V 2>&1` in
6011 *GNU* | *'with BFD'*)
6012   symcode='[ABCDGIRSTW]' ;;
6013 esac
6014
6015 # Transform an extracted symbol line into a proper C declaration.
6016 # Some systems (esp. on ia64) link data and code symbols differently,
6017 # so use this general approach.
6018 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6019
6020 # Transform an extracted symbol line into symbol name and symbol address
6021 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6022 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'"
6023
6024 # Handle CRLF in mingw tool chain
6025 opt_cr=
6026 case $build_os in
6027 mingw*)
6028   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6029   ;;
6030 esac
6031
6032 # Try without a prefix underscore, then with it.
6033 for ac_symprfx in "" "_"; do
6034
6035   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6036   symxfrm="\\1 $ac_symprfx\\2 \\2"
6037
6038   # Write the raw and C identifiers.
6039   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6040     # Fake it for dumpbin and say T for any non-static function
6041     # and D for any global variable.
6042     # Also find C++ and __fastcall symbols from MSVC++,
6043     # which start with @ or ?.
6044     lt_cv_sys_global_symbol_pipe="$AWK '"\
6045 "     {last_section=section; section=\$ 3};"\
6046 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6047 "     \$ 0!~/External *\|/{next};"\
6048 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6049 "     {if(hide[section]) next};"\
6050 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6051 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6052 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6053 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6054 "     ' prfx=^$ac_symprfx"
6055   else
6056     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6057   fi
6058
6059   # Check to see that the pipe works correctly.
6060   pipe_works=no
6061
6062   rm -f conftest*
6063   cat > conftest.$ac_ext <<_LT_EOF
6064 #ifdef __cplusplus
6065 extern "C" {
6066 #endif
6067 char nm_test_var;
6068 void nm_test_func(void);
6069 void nm_test_func(void){}
6070 #ifdef __cplusplus
6071 }
6072 #endif
6073 int main(){nm_test_var='a';nm_test_func();return(0);}
6074 _LT_EOF
6075
6076   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077   (eval $ac_compile) 2>&5
6078   ac_status=$?
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); }; then
6081     # Now try to grab the symbols.
6082     nlist=conftest.nm
6083     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6084   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6085   ac_status=$?
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); } && test -s "$nlist"; then
6088       # Try sorting and uniquifying the output.
6089       if sort "$nlist" | uniq > "$nlist"T; then
6090         mv -f "$nlist"T "$nlist"
6091       else
6092         rm -f "$nlist"T
6093       fi
6094
6095       # Make sure that we snagged all the symbols we need.
6096       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6097         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6098           cat <<_LT_EOF > conftest.$ac_ext
6099 #ifdef __cplusplus
6100 extern "C" {
6101 #endif
6102
6103 _LT_EOF
6104           # Now generate the symbol file.
6105           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6106
6107           cat <<_LT_EOF >> conftest.$ac_ext
6108
6109 /* The mapping between symbol names and symbols.  */
6110 const struct {
6111   const char *name;
6112   void       *address;
6113 }
6114 lt__PROGRAM__LTX_preloaded_symbols[] =
6115 {
6116   { "@PROGRAM@", (void *) 0 },
6117 _LT_EOF
6118           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6119           cat <<\_LT_EOF >> conftest.$ac_ext
6120   {0, (void *) 0}
6121 };
6122
6123 /* This works around a problem in FreeBSD linker */
6124 #ifdef FREEBSD_WORKAROUND
6125 static const void *lt_preloaded_setup() {
6126   return lt__PROGRAM__LTX_preloaded_symbols;
6127 }
6128 #endif
6129
6130 #ifdef __cplusplus
6131 }
6132 #endif
6133 _LT_EOF
6134           # Now try linking the two files.
6135           mv conftest.$ac_objext conftstm.$ac_objext
6136           lt_save_LIBS="$LIBS"
6137           lt_save_CFLAGS="$CFLAGS"
6138           LIBS="conftstm.$ac_objext"
6139           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6140           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6141   (eval $ac_link) 2>&5
6142   ac_status=$?
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6145             pipe_works=yes
6146           fi
6147           LIBS="$lt_save_LIBS"
6148           CFLAGS="$lt_save_CFLAGS"
6149         else
6150           echo "cannot find nm_test_func in $nlist" >&5
6151         fi
6152       else
6153         echo "cannot find nm_test_var in $nlist" >&5
6154       fi
6155     else
6156       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6157     fi
6158   else
6159     echo "$progname: failed program was:" >&5
6160     cat conftest.$ac_ext >&5
6161   fi
6162   rm -rf conftest* conftst*
6163
6164   # Do not use the global_symbol_pipe unless it works.
6165   if test "$pipe_works" = yes; then
6166     break
6167   else
6168     lt_cv_sys_global_symbol_pipe=
6169   fi
6170 done
6171
6172 fi
6173
6174 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6175   lt_cv_sys_global_symbol_to_cdecl=
6176 fi
6177 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6178   { echo "$as_me:$LINENO: result: failed" >&5
6179 echo "${ECHO_T}failed" >&6; }
6180 else
6181   { echo "$as_me:$LINENO: result: ok" >&5
6182 echo "${ECHO_T}ok" >&6; }
6183 fi
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207 # Check whether --enable-libtool-lock was given.
6208 if test "${enable_libtool_lock+set}" = set; then
6209   enableval=$enable_libtool_lock;
6210 fi
6211
6212 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6213
6214 # Some flags need to be propagated to the compiler or linker for good
6215 # libtool support.
6216 case $host in
6217 ia64-*-hpux*)
6218   # Find out which ABI we are using.
6219   echo 'int i;' > conftest.$ac_ext
6220   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6221   (eval $ac_compile) 2>&5
6222   ac_status=$?
6223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224   (exit $ac_status); }; then
6225     case `/usr/bin/file conftest.$ac_objext` in
6226       *ELF-32*)
6227         HPUX_IA64_MODE="32"
6228         ;;
6229       *ELF-64*)
6230         HPUX_IA64_MODE="64"
6231         ;;
6232     esac
6233   fi
6234   rm -rf conftest*
6235   ;;
6236 *-*-irix6*)
6237   # Find out which ABI we are using.
6238   echo '#line 6238 "configure"' > conftest.$ac_ext
6239   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6240   (eval $ac_compile) 2>&5
6241   ac_status=$?
6242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243   (exit $ac_status); }; then
6244     if test "$lt_cv_prog_gnu_ld" = yes; then
6245       case `/usr/bin/file conftest.$ac_objext` in
6246         *32-bit*)
6247           LD="${LD-ld} -melf32bsmip"
6248           ;;
6249         *N32*)
6250           LD="${LD-ld} -melf32bmipn32"
6251           ;;
6252         *64-bit*)
6253           LD="${LD-ld} -melf64bmip"
6254         ;;
6255       esac
6256     else
6257       case `/usr/bin/file conftest.$ac_objext` in
6258         *32-bit*)
6259           LD="${LD-ld} -32"
6260           ;;
6261         *N32*)
6262           LD="${LD-ld} -n32"
6263           ;;
6264         *64-bit*)
6265           LD="${LD-ld} -64"
6266           ;;
6267       esac
6268     fi
6269   fi
6270   rm -rf conftest*
6271   ;;
6272
6273 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6274 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6275   # Find out which ABI we are using.
6276   echo 'int i;' > conftest.$ac_ext
6277   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6278   (eval $ac_compile) 2>&5
6279   ac_status=$?
6280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281   (exit $ac_status); }; then
6282     case `/usr/bin/file conftest.o` in
6283       *32-bit*)
6284         case $host in
6285           x86_64-*kfreebsd*-gnu)
6286             LD="${LD-ld} -m elf_i386_fbsd"
6287             ;;
6288           x86_64-*linux*)
6289             LD="${LD-ld} -m elf_i386"
6290             ;;
6291           ppc64-*linux*|powerpc64-*linux*)
6292             LD="${LD-ld} -m elf32ppclinux"
6293             ;;
6294           s390x-*linux*)
6295             LD="${LD-ld} -m elf_s390"
6296             ;;
6297           sparc64-*linux*)
6298             LD="${LD-ld} -m elf32_sparc"
6299             ;;
6300         esac
6301         ;;
6302       *64-bit*)
6303         case $host in
6304           x86_64-*kfreebsd*-gnu)
6305             LD="${LD-ld} -m elf_x86_64_fbsd"
6306             ;;
6307           x86_64-*linux*)
6308             LD="${LD-ld} -m elf_x86_64"
6309             ;;
6310           ppc*-*linux*|powerpc*-*linux*)
6311             LD="${LD-ld} -m elf64ppc"
6312             ;;
6313           s390*-*linux*|s390*-*tpf*)
6314             LD="${LD-ld} -m elf64_s390"
6315             ;;
6316           sparc*-*linux*)
6317             LD="${LD-ld} -m elf64_sparc"
6318             ;;
6319         esac
6320         ;;
6321     esac
6322   fi
6323   rm -rf conftest*
6324   ;;
6325
6326 *-*-sco3.2v5*)
6327   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6328   SAVE_CFLAGS="$CFLAGS"
6329   CFLAGS="$CFLAGS -belf"
6330   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6331 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6332 if test "${lt_cv_cc_needs_belf+set}" = set; then
6333   echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335   ac_ext=c
6336 ac_cpp='$CPP $CPPFLAGS'
6337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6340
6341      cat >conftest.$ac_ext <<_ACEOF
6342 /* confdefs.h.  */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h.  */
6347
6348 int
6349 main ()
6350 {
6351
6352   ;
6353   return 0;
6354 }
6355 _ACEOF
6356 rm -f conftest.$ac_objext conftest$ac_exeext
6357 if { (ac_try="$ac_link"
6358 case "(($ac_try" in
6359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360   *) ac_try_echo=$ac_try;;
6361 esac
6362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363   (eval "$ac_link") 2>conftest.er1
6364   ac_status=$?
6365   grep -v '^ *+' conftest.er1 >conftest.err
6366   rm -f conftest.er1
6367   cat conftest.err >&5
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); } && {
6370          test -z "$ac_c_werror_flag" ||
6371          test ! -s conftest.err
6372        } && test -s conftest$ac_exeext &&
6373        $as_test_x conftest$ac_exeext; then
6374   lt_cv_cc_needs_belf=yes
6375 else
6376   echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6378
6379         lt_cv_cc_needs_belf=no
6380 fi
6381
6382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6383       conftest$ac_exeext conftest.$ac_ext
6384      ac_ext=c
6385 ac_cpp='$CPP $CPPFLAGS'
6386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6389
6390 fi
6391 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6392 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6393   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6394     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6395     CFLAGS="$SAVE_CFLAGS"
6396   fi
6397   ;;
6398 sparc*-*solaris*)
6399   # Find out which ABI we are using.
6400   echo 'int i;' > conftest.$ac_ext
6401   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402   (eval $ac_compile) 2>&5
6403   ac_status=$?
6404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405   (exit $ac_status); }; then
6406     case `/usr/bin/file conftest.o` in
6407     *64-bit*)
6408       case $lt_cv_prog_gnu_ld in
6409       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6410       *)
6411         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6412           LD="${LD-ld} -64"
6413         fi
6414         ;;
6415       esac
6416       ;;
6417     esac
6418   fi
6419   rm -rf conftest*
6420   ;;
6421 esac
6422
6423 need_locks="$enable_libtool_lock"
6424
6425
6426   case $host_os in
6427     rhapsody* | darwin*)
6428     if test -n "$ac_tool_prefix"; then
6429   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6430 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6433 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6434   echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436   if test -n "$DSYMUTIL"; then
6437   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6441 do
6442   IFS=$as_save_IFS
6443   test -z "$as_dir" && as_dir=.
6444   for ac_exec_ext in '' $ac_executable_extensions; do
6445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6448     break 2
6449   fi
6450 done
6451 done
6452 IFS=$as_save_IFS
6453
6454 fi
6455 fi
6456 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6457 if test -n "$DSYMUTIL"; then
6458   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6459 echo "${ECHO_T}$DSYMUTIL" >&6; }
6460 else
6461   { echo "$as_me:$LINENO: result: no" >&5
6462 echo "${ECHO_T}no" >&6; }
6463 fi
6464
6465
6466 fi
6467 if test -z "$ac_cv_prog_DSYMUTIL"; then
6468   ac_ct_DSYMUTIL=$DSYMUTIL
6469   # Extract the first word of "dsymutil", so it can be a program name with args.
6470 set dummy dsymutil; ac_word=$2
6471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6473 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6474   echo $ECHO_N "(cached) $ECHO_C" >&6
6475 else
6476   if test -n "$ac_ct_DSYMUTIL"; then
6477   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482   IFS=$as_save_IFS
6483   test -z "$as_dir" && as_dir=.
6484   for ac_exec_ext in '' $ac_executable_extensions; do
6485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488     break 2
6489   fi
6490 done
6491 done
6492 IFS=$as_save_IFS
6493
6494 fi
6495 fi
6496 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6497 if test -n "$ac_ct_DSYMUTIL"; then
6498   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6499 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6500 else
6501   { echo "$as_me:$LINENO: result: no" >&5
6502 echo "${ECHO_T}no" >&6; }
6503 fi
6504
6505   if test "x$ac_ct_DSYMUTIL" = x; then
6506     DSYMUTIL=":"
6507   else
6508     case $cross_compiling:$ac_tool_warned in
6509 yes:)
6510 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6511 whose name does not start with the host triplet.  If you think this
6512 configuration is useful to you, please write to autoconf@gnu.org." >&5
6513 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6514 whose name does not start with the host triplet.  If you think this
6515 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6516 ac_tool_warned=yes ;;
6517 esac
6518     DSYMUTIL=$ac_ct_DSYMUTIL
6519   fi
6520 else
6521   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6522 fi
6523
6524     if test -n "$ac_tool_prefix"; then
6525   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6526 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6529 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532   if test -n "$NMEDIT"; then
6533   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6534 else
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538   IFS=$as_save_IFS
6539   test -z "$as_dir" && as_dir=.
6540   for ac_exec_ext in '' $ac_executable_extensions; do
6541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544     break 2
6545   fi
6546 done
6547 done
6548 IFS=$as_save_IFS
6549
6550 fi
6551 fi
6552 NMEDIT=$ac_cv_prog_NMEDIT
6553 if test -n "$NMEDIT"; then
6554   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6555 echo "${ECHO_T}$NMEDIT" >&6; }
6556 else
6557   { echo "$as_me:$LINENO: result: no" >&5
6558 echo "${ECHO_T}no" >&6; }
6559 fi
6560
6561
6562 fi
6563 if test -z "$ac_cv_prog_NMEDIT"; then
6564   ac_ct_NMEDIT=$NMEDIT
6565   # Extract the first word of "nmedit", so it can be a program name with args.
6566 set dummy nmedit; ac_word=$2
6567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6569 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6570   echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572   if test -n "$ac_ct_NMEDIT"; then
6573   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6574 else
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578   IFS=$as_save_IFS
6579   test -z "$as_dir" && as_dir=.
6580   for ac_exec_ext in '' $ac_executable_extensions; do
6581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584     break 2
6585   fi
6586 done
6587 done
6588 IFS=$as_save_IFS
6589
6590 fi
6591 fi
6592 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6593 if test -n "$ac_ct_NMEDIT"; then
6594   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6595 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6596 else
6597   { echo "$as_me:$LINENO: result: no" >&5
6598 echo "${ECHO_T}no" >&6; }
6599 fi
6600
6601   if test "x$ac_ct_NMEDIT" = x; then
6602     NMEDIT=":"
6603   else
6604     case $cross_compiling:$ac_tool_warned in
6605 yes:)
6606 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6607 whose name does not start with the host triplet.  If you think this
6608 configuration is useful to you, please write to autoconf@gnu.org." >&5
6609 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6610 whose name does not start with the host triplet.  If you think this
6611 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6612 ac_tool_warned=yes ;;
6613 esac
6614     NMEDIT=$ac_ct_NMEDIT
6615   fi
6616 else
6617   NMEDIT="$ac_cv_prog_NMEDIT"
6618 fi
6619
6620     if test -n "$ac_tool_prefix"; then
6621   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6622 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625 if test "${ac_cv_prog_LIPO+set}" = set; then
6626   echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628   if test -n "$LIPO"; then
6629   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6630 else
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6633 do
6634   IFS=$as_save_IFS
6635   test -z "$as_dir" && as_dir=.
6636   for ac_exec_ext in '' $ac_executable_extensions; do
6637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6638     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640     break 2
6641   fi
6642 done
6643 done
6644 IFS=$as_save_IFS
6645
6646 fi
6647 fi
6648 LIPO=$ac_cv_prog_LIPO
6649 if test -n "$LIPO"; then
6650   { echo "$as_me:$LINENO: result: $LIPO" >&5
6651 echo "${ECHO_T}$LIPO" >&6; }
6652 else
6653   { echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6; }
6655 fi
6656
6657
6658 fi
6659 if test -z "$ac_cv_prog_LIPO"; then
6660   ac_ct_LIPO=$LIPO
6661   # Extract the first word of "lipo", so it can be a program name with args.
6662 set dummy lipo; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   if test -n "$ac_ct_LIPO"; then
6669   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674   IFS=$as_save_IFS
6675   test -z "$as_dir" && as_dir=.
6676   for ac_exec_ext in '' $ac_executable_extensions; do
6677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678     ac_cv_prog_ac_ct_LIPO="lipo"
6679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680     break 2
6681   fi
6682 done
6683 done
6684 IFS=$as_save_IFS
6685
6686 fi
6687 fi
6688 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6689 if test -n "$ac_ct_LIPO"; then
6690   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6691 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6692 else
6693   { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6695 fi
6696
6697   if test "x$ac_ct_LIPO" = x; then
6698     LIPO=":"
6699   else
6700     case $cross_compiling:$ac_tool_warned in
6701 yes:)
6702 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6703 whose name does not start with the host triplet.  If you think this
6704 configuration is useful to you, please write to autoconf@gnu.org." >&5
6705 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6706 whose name does not start with the host triplet.  If you think this
6707 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6708 ac_tool_warned=yes ;;
6709 esac
6710     LIPO=$ac_ct_LIPO
6711   fi
6712 else
6713   LIPO="$ac_cv_prog_LIPO"
6714 fi
6715
6716     if test -n "$ac_tool_prefix"; then
6717   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6718 set dummy ${ac_tool_prefix}otool; ac_word=$2
6719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6721 if test "${ac_cv_prog_OTOOL+set}" = set; then
6722   echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724   if test -n "$OTOOL"; then
6725   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730   IFS=$as_save_IFS
6731   test -z "$as_dir" && as_dir=.
6732   for ac_exec_ext in '' $ac_executable_extensions; do
6733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736     break 2
6737   fi
6738 done
6739 done
6740 IFS=$as_save_IFS
6741
6742 fi
6743 fi
6744 OTOOL=$ac_cv_prog_OTOOL
6745 if test -n "$OTOOL"; then
6746   { echo "$as_me:$LINENO: result: $OTOOL" >&5
6747 echo "${ECHO_T}$OTOOL" >&6; }
6748 else
6749   { echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6; }
6751 fi
6752
6753
6754 fi
6755 if test -z "$ac_cv_prog_OTOOL"; then
6756   ac_ct_OTOOL=$OTOOL
6757   # Extract the first word of "otool", so it can be a program name with args.
6758 set dummy otool; ac_word=$2
6759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6762   echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764   if test -n "$ac_ct_OTOOL"; then
6765   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6769 do
6770   IFS=$as_save_IFS
6771   test -z "$as_dir" && as_dir=.
6772   for ac_exec_ext in '' $ac_executable_extensions; do
6773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774     ac_cv_prog_ac_ct_OTOOL="otool"
6775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6776     break 2
6777   fi
6778 done
6779 done
6780 IFS=$as_save_IFS
6781
6782 fi
6783 fi
6784 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6785 if test -n "$ac_ct_OTOOL"; then
6786   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6787 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6788 else
6789   { echo "$as_me:$LINENO: result: no" >&5
6790 echo "${ECHO_T}no" >&6; }
6791 fi
6792
6793   if test "x$ac_ct_OTOOL" = x; then
6794     OTOOL=":"
6795   else
6796     case $cross_compiling:$ac_tool_warned in
6797 yes:)
6798 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6799 whose name does not start with the host triplet.  If you think this
6800 configuration is useful to you, please write to autoconf@gnu.org." >&5
6801 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6802 whose name does not start with the host triplet.  If you think this
6803 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6804 ac_tool_warned=yes ;;
6805 esac
6806     OTOOL=$ac_ct_OTOOL
6807   fi
6808 else
6809   OTOOL="$ac_cv_prog_OTOOL"
6810 fi
6811
6812     if test -n "$ac_tool_prefix"; then
6813   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6814 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6818   echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820   if test -n "$OTOOL64"; then
6821   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826   IFS=$as_save_IFS
6827   test -z "$as_dir" && as_dir=.
6828   for ac_exec_ext in '' $ac_executable_extensions; do
6829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6830     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832     break 2
6833   fi
6834 done
6835 done
6836 IFS=$as_save_IFS
6837
6838 fi
6839 fi
6840 OTOOL64=$ac_cv_prog_OTOOL64
6841 if test -n "$OTOOL64"; then
6842   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6843 echo "${ECHO_T}$OTOOL64" >&6; }
6844 else
6845   { echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6; }
6847 fi
6848
6849
6850 fi
6851 if test -z "$ac_cv_prog_OTOOL64"; then
6852   ac_ct_OTOOL64=$OTOOL64
6853   # Extract the first word of "otool64", so it can be a program name with args.
6854 set dummy otool64; ac_word=$2
6855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6857 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6858   echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860   if test -n "$ac_ct_OTOOL64"; then
6861   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6862 else
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6865 do
6866   IFS=$as_save_IFS
6867   test -z "$as_dir" && as_dir=.
6868   for ac_exec_ext in '' $ac_executable_extensions; do
6869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6870     ac_cv_prog_ac_ct_OTOOL64="otool64"
6871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872     break 2
6873   fi
6874 done
6875 done
6876 IFS=$as_save_IFS
6877
6878 fi
6879 fi
6880 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6881 if test -n "$ac_ct_OTOOL64"; then
6882   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6883 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6884 else
6885   { echo "$as_me:$LINENO: result: no" >&5
6886 echo "${ECHO_T}no" >&6; }
6887 fi
6888
6889   if test "x$ac_ct_OTOOL64" = x; then
6890     OTOOL64=":"
6891   else
6892     case $cross_compiling:$ac_tool_warned in
6893 yes:)
6894 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6895 whose name does not start with the host triplet.  If you think this
6896 configuration is useful to you, please write to autoconf@gnu.org." >&5
6897 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6898 whose name does not start with the host triplet.  If you think this
6899 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6900 ac_tool_warned=yes ;;
6901 esac
6902     OTOOL64=$ac_ct_OTOOL64
6903   fi
6904 else
6905   OTOOL64="$ac_cv_prog_OTOOL64"
6906 fi
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6935 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6936 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6937   echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939   lt_cv_apple_cc_single_mod=no
6940       if test -z "${LT_MULTI_MODULE}"; then
6941         # By default we will add the -single_module flag. You can override
6942         # by either setting the environment variable LT_MULTI_MODULE
6943         # non-empty at configure time, or by adding -multi_module to the
6944         # link flags.
6945         rm -rf libconftest.dylib*
6946         echo "int foo(void){return 1;}" > conftest.c
6947         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6948 -dynamiclib -Wl,-single_module conftest.c" >&5
6949         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6950           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6951         _lt_result=$?
6952         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6953           lt_cv_apple_cc_single_mod=yes
6954         else
6955           cat conftest.err >&5
6956         fi
6957         rm -rf libconftest.dylib*
6958         rm -f conftest.*
6959       fi
6960 fi
6961 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6962 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6963     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6964 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6965 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6966   echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968   lt_cv_ld_exported_symbols_list=no
6969       save_LDFLAGS=$LDFLAGS
6970       echo "_main" > conftest.sym
6971       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6972       cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h.  */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h.  */
6978
6979 int
6980 main ()
6981 {
6982
6983   ;
6984   return 0;
6985 }
6986 _ACEOF
6987 rm -f conftest.$ac_objext conftest$ac_exeext
6988 if { (ac_try="$ac_link"
6989 case "(($ac_try" in
6990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991   *) ac_try_echo=$ac_try;;
6992 esac
6993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994   (eval "$ac_link") 2>conftest.er1
6995   ac_status=$?
6996   grep -v '^ *+' conftest.er1 >conftest.err
6997   rm -f conftest.er1
6998   cat conftest.err >&5
6999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); } && {
7001          test -z "$ac_c_werror_flag" ||
7002          test ! -s conftest.err
7003        } && test -s conftest$ac_exeext &&
7004        $as_test_x conftest$ac_exeext; then
7005   lt_cv_ld_exported_symbols_list=yes
7006 else
7007   echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7009
7010         lt_cv_ld_exported_symbols_list=no
7011 fi
7012
7013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7014       conftest$ac_exeext conftest.$ac_ext
7015         LDFLAGS="$save_LDFLAGS"
7016
7017 fi
7018 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7019 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7020     case $host_os in
7021     rhapsody* | darwin1.[012])
7022       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7023     darwin1.*)
7024       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7025     darwin*) # darwin 5.x on
7026       # if running on 10.5 or later, the deployment target defaults
7027       # to the OS version, if on x86, and 10.4, the deployment
7028       # target defaults to 10.4. Don't you love it?
7029       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7030         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7031           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7032         10.[012]*)
7033           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7034         10.*)
7035           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7036       esac
7037     ;;
7038   esac
7039     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7040       _lt_dar_single_mod='$single_module'
7041     fi
7042     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7043       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7044     else
7045       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7046     fi
7047     if test "$DSYMUTIL" != ":"; then
7048       _lt_dsymutil='~$DSYMUTIL $lib || :'
7049     else
7050       _lt_dsymutil=
7051     fi
7052     ;;
7053   esac
7054
7055
7056 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7057 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7058 if test "${ac_cv_header_stdc+set}" = set; then
7059   echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061   cat >conftest.$ac_ext <<_ACEOF
7062 /* confdefs.h.  */
7063 _ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h.  */
7067 #include <stdlib.h>
7068 #include <stdarg.h>
7069 #include <string.h>
7070 #include <float.h>
7071
7072 int
7073 main ()
7074 {
7075
7076   ;
7077   return 0;
7078 }
7079 _ACEOF
7080 rm -f conftest.$ac_objext
7081 if { (ac_try="$ac_compile"
7082 case "(($ac_try" in
7083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084   *) ac_try_echo=$ac_try;;
7085 esac
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087   (eval "$ac_compile") 2>conftest.er1
7088   ac_status=$?
7089   grep -v '^ *+' conftest.er1 >conftest.err
7090   rm -f conftest.er1
7091   cat conftest.err >&5
7092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093   (exit $ac_status); } && {
7094          test -z "$ac_c_werror_flag" ||
7095          test ! -s conftest.err
7096        } && test -s conftest.$ac_objext; then
7097   ac_cv_header_stdc=yes
7098 else
7099   echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7101
7102         ac_cv_header_stdc=no
7103 fi
7104
7105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106
7107 if test $ac_cv_header_stdc = yes; then
7108   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7109   cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h.  */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h.  */
7115 #include <string.h>
7116
7117 _ACEOF
7118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7119   $EGREP "memchr" >/dev/null 2>&1; then
7120   :
7121 else
7122   ac_cv_header_stdc=no
7123 fi
7124 rm -f conftest*
7125
7126 fi
7127
7128 if test $ac_cv_header_stdc = yes; then
7129   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7130   cat >conftest.$ac_ext <<_ACEOF
7131 /* confdefs.h.  */
7132 _ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h.  */
7136 #include <stdlib.h>
7137
7138 _ACEOF
7139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7140   $EGREP "free" >/dev/null 2>&1; then
7141   :
7142 else
7143   ac_cv_header_stdc=no
7144 fi
7145 rm -f conftest*
7146
7147 fi
7148
7149 if test $ac_cv_header_stdc = yes; then
7150   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7151   if test "$cross_compiling" = yes; then
7152   :
7153 else
7154   cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h.  */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h.  */
7160 #include <ctype.h>
7161 #include <stdlib.h>
7162 #if ((' ' & 0x0FF) == 0x020)
7163 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7164 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7165 #else
7166 # define ISLOWER(c) \
7167                    (('a' <= (c) && (c) <= 'i') \
7168                      || ('j' <= (c) && (c) <= 'r') \
7169                      || ('s' <= (c) && (c) <= 'z'))
7170 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7171 #endif
7172
7173 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7174 int
7175 main ()
7176 {
7177   int i;
7178   for (i = 0; i < 256; i++)
7179     if (XOR (islower (i), ISLOWER (i))
7180         || toupper (i) != TOUPPER (i))
7181       return 2;
7182   return 0;
7183 }
7184 _ACEOF
7185 rm -f conftest$ac_exeext
7186 if { (ac_try="$ac_link"
7187 case "(($ac_try" in
7188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189   *) ac_try_echo=$ac_try;;
7190 esac
7191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7192   (eval "$ac_link") 2>&5
7193   ac_status=$?
7194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7196   { (case "(($ac_try" in
7197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7198   *) ac_try_echo=$ac_try;;
7199 esac
7200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7201   (eval "$ac_try") 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); }; }; then
7205   :
7206 else
7207   echo "$as_me: program exited with status $ac_status" >&5
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7210
7211 ( exit $ac_status )
7212 ac_cv_header_stdc=no
7213 fi
7214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7215 fi
7216
7217
7218 fi
7219 fi
7220 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7221 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7222 if test $ac_cv_header_stdc = yes; then
7223
7224 cat >>confdefs.h <<\_ACEOF
7225 #define STDC_HEADERS 1
7226 _ACEOF
7227
7228 fi
7229
7230 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7241                   inttypes.h stdint.h unistd.h
7242 do
7243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7247   echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249   cat >conftest.$ac_ext <<_ACEOF
7250 /* confdefs.h.  */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h.  */
7255 $ac_includes_default
7256
7257 #include <$ac_header>
7258 _ACEOF
7259 rm -f conftest.$ac_objext
7260 if { (ac_try="$ac_compile"
7261 case "(($ac_try" in
7262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263   *) ac_try_echo=$ac_try;;
7264 esac
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266   (eval "$ac_compile") 2>conftest.er1
7267   ac_status=$?
7268   grep -v '^ *+' conftest.er1 >conftest.err
7269   rm -f conftest.er1
7270   cat conftest.err >&5
7271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272   (exit $ac_status); } && {
7273          test -z "$ac_c_werror_flag" ||
7274          test ! -s conftest.err
7275        } && test -s conftest.$ac_objext; then
7276   eval "$as_ac_Header=yes"
7277 else
7278   echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7280
7281         eval "$as_ac_Header=no"
7282 fi
7283
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285 fi
7286 ac_res=`eval echo '${'$as_ac_Header'}'`
7287                { echo "$as_me:$LINENO: result: $ac_res" >&5
7288 echo "${ECHO_T}$ac_res" >&6; }
7289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7290   cat >>confdefs.h <<_ACEOF
7291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7292 _ACEOF
7293
7294 fi
7295
7296 done
7297
7298
7299
7300 for ac_header in dlfcn.h
7301 do
7302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7306   echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308   cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h.  */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h.  */
7314 $ac_includes_default
7315
7316 #include <$ac_header>
7317 _ACEOF
7318 rm -f conftest.$ac_objext
7319 if { (ac_try="$ac_compile"
7320 case "(($ac_try" in
7321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322   *) ac_try_echo=$ac_try;;
7323 esac
7324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325   (eval "$ac_compile") 2>conftest.er1
7326   ac_status=$?
7327   grep -v '^ *+' conftest.er1 >conftest.err
7328   rm -f conftest.er1
7329   cat conftest.err >&5
7330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331   (exit $ac_status); } && {
7332          test -z "$ac_c_werror_flag" ||
7333          test ! -s conftest.err
7334        } && test -s conftest.$ac_objext; then
7335   eval "$as_ac_Header=yes"
7336 else
7337   echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7339
7340         eval "$as_ac_Header=no"
7341 fi
7342
7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 fi
7345 ac_res=`eval echo '${'$as_ac_Header'}'`
7346                { echo "$as_me:$LINENO: result: $ac_res" >&5
7347 echo "${ECHO_T}$ac_res" >&6; }
7348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7349   cat >>confdefs.h <<_ACEOF
7350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7351 _ACEOF
7352
7353 fi
7354
7355 done
7356
7357
7358
7359 ac_ext=cpp
7360 ac_cpp='$CXXCPP $CPPFLAGS'
7361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7364 if test -z "$CXX"; then
7365   if test -n "$CCC"; then
7366     CXX=$CCC
7367   else
7368     if test -n "$ac_tool_prefix"; then
7369   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7370   do
7371     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7372 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375 if test "${ac_cv_prog_CXX+set}" = set; then
7376   echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378   if test -n "$CXX"; then
7379   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7380 else
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 for as_dir in $PATH
7383 do
7384   IFS=$as_save_IFS
7385   test -z "$as_dir" && as_dir=.
7386   for ac_exec_ext in '' $ac_executable_extensions; do
7387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7388     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7390     break 2
7391   fi
7392 done
7393 done
7394 IFS=$as_save_IFS
7395
7396 fi
7397 fi
7398 CXX=$ac_cv_prog_CXX
7399 if test -n "$CXX"; then
7400   { echo "$as_me:$LINENO: result: $CXX" >&5
7401 echo "${ECHO_T}$CXX" >&6; }
7402 else
7403   { echo "$as_me:$LINENO: result: no" >&5
7404 echo "${ECHO_T}no" >&6; }
7405 fi
7406
7407
7408     test -n "$CXX" && break
7409   done
7410 fi
7411 if test -z "$CXX"; then
7412   ac_ct_CXX=$CXX
7413   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7414 do
7415   # Extract the first word of "$ac_prog", so it can be a program name with args.
7416 set dummy $ac_prog; ac_word=$2
7417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7419 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7420   echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422   if test -n "$ac_ct_CXX"; then
7423   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7424 else
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 for as_dir in $PATH
7427 do
7428   IFS=$as_save_IFS
7429   test -z "$as_dir" && as_dir=.
7430   for ac_exec_ext in '' $ac_executable_extensions; do
7431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7432     ac_cv_prog_ac_ct_CXX="$ac_prog"
7433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434     break 2
7435   fi
7436 done
7437 done
7438 IFS=$as_save_IFS
7439
7440 fi
7441 fi
7442 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7443 if test -n "$ac_ct_CXX"; then
7444   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7445 echo "${ECHO_T}$ac_ct_CXX" >&6; }
7446 else
7447   { echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6; }
7449 fi
7450
7451
7452   test -n "$ac_ct_CXX" && break
7453 done
7454
7455   if test "x$ac_ct_CXX" = x; then
7456     CXX="g++"
7457   else
7458     case $cross_compiling:$ac_tool_warned in
7459 yes:)
7460 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7461 whose name does not start with the host triplet.  If you think this
7462 configuration is useful to you, please write to autoconf@gnu.org." >&5
7463 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7464 whose name does not start with the host triplet.  If you think this
7465 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7466 ac_tool_warned=yes ;;
7467 esac
7468     CXX=$ac_ct_CXX
7469   fi
7470 fi
7471
7472   fi
7473 fi
7474 # Provide some information about the compiler.
7475 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
7476 ac_compiler=`set X $ac_compile; echo $2`
7477 { (ac_try="$ac_compiler --version >&5"
7478 case "(($ac_try" in
7479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7480   *) ac_try_echo=$ac_try;;
7481 esac
7482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7483   (eval "$ac_compiler --version >&5") 2>&5
7484   ac_status=$?
7485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486   (exit $ac_status); }
7487 { (ac_try="$ac_compiler -v >&5"
7488 case "(($ac_try" in
7489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490   *) ac_try_echo=$ac_try;;
7491 esac
7492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7493   (eval "$ac_compiler -v >&5") 2>&5
7494   ac_status=$?
7495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496   (exit $ac_status); }
7497 { (ac_try="$ac_compiler -V >&5"
7498 case "(($ac_try" in
7499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500   *) ac_try_echo=$ac_try;;
7501 esac
7502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7503   (eval "$ac_compiler -V >&5") 2>&5
7504   ac_status=$?
7505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506   (exit $ac_status); }
7507
7508 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7509 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
7510 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7511   echo $ECHO_N "(cached) $ECHO_C" >&6
7512 else
7513   cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h.  */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h.  */
7519
7520 int
7521 main ()
7522 {
7523 #ifndef __GNUC__
7524        choke me
7525 #endif
7526
7527   ;
7528   return 0;
7529 }
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (ac_try="$ac_compile"
7533 case "(($ac_try" in
7534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535   *) ac_try_echo=$ac_try;;
7536 esac
7537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538   (eval "$ac_compile") 2>conftest.er1
7539   ac_status=$?
7540   grep -v '^ *+' conftest.er1 >conftest.err
7541   rm -f conftest.er1
7542   cat conftest.err >&5
7543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544   (exit $ac_status); } && {
7545          test -z "$ac_cxx_werror_flag" ||
7546          test ! -s conftest.err
7547        } && test -s conftest.$ac_objext; then
7548   ac_compiler_gnu=yes
7549 else
7550   echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7552
7553         ac_compiler_gnu=no
7554 fi
7555
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7558
7559 fi
7560 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7561 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
7562 GXX=`test $ac_compiler_gnu = yes && echo yes`
7563 ac_test_CXXFLAGS=${CXXFLAGS+set}
7564 ac_save_CXXFLAGS=$CXXFLAGS
7565 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7566 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
7567 if test "${ac_cv_prog_cxx_g+set}" = set; then
7568   echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7571    ac_cxx_werror_flag=yes
7572    ac_cv_prog_cxx_g=no
7573    CXXFLAGS="-g"
7574    cat >conftest.$ac_ext <<_ACEOF
7575 /* confdefs.h.  */
7576 _ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h.  */
7580
7581 int
7582 main ()
7583 {
7584
7585   ;
7586   return 0;
7587 }
7588 _ACEOF
7589 rm -f conftest.$ac_objext
7590 if { (ac_try="$ac_compile"
7591 case "(($ac_try" in
7592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593   *) ac_try_echo=$ac_try;;
7594 esac
7595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7596   (eval "$ac_compile") 2>conftest.er1
7597   ac_status=$?
7598   grep -v '^ *+' conftest.er1 >conftest.err
7599   rm -f conftest.er1
7600   cat conftest.err >&5
7601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602   (exit $ac_status); } && {
7603          test -z "$ac_cxx_werror_flag" ||
7604          test ! -s conftest.err
7605        } && test -s conftest.$ac_objext; then
7606   ac_cv_prog_cxx_g=yes
7607 else
7608   echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7610
7611         CXXFLAGS=""
7612       cat >conftest.$ac_ext <<_ACEOF
7613 /* confdefs.h.  */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h.  */
7618
7619 int
7620 main ()
7621 {
7622
7623   ;
7624   return 0;
7625 }
7626 _ACEOF
7627 rm -f conftest.$ac_objext
7628 if { (ac_try="$ac_compile"
7629 case "(($ac_try" in
7630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7631   *) ac_try_echo=$ac_try;;
7632 esac
7633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7634   (eval "$ac_compile") 2>conftest.er1
7635   ac_status=$?
7636   grep -v '^ *+' conftest.er1 >conftest.err
7637   rm -f conftest.er1
7638   cat conftest.err >&5
7639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640   (exit $ac_status); } && {
7641          test -z "$ac_cxx_werror_flag" ||
7642          test ! -s conftest.err
7643        } && test -s conftest.$ac_objext; then
7644   :
7645 else
7646   echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7648
7649         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7650          CXXFLAGS="-g"
7651          cat >conftest.$ac_ext <<_ACEOF
7652 /* confdefs.h.  */
7653 _ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h.  */
7657
7658 int
7659 main ()
7660 {
7661
7662   ;
7663   return 0;
7664 }
7665 _ACEOF
7666 rm -f conftest.$ac_objext
7667 if { (ac_try="$ac_compile"
7668 case "(($ac_try" in
7669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7670   *) ac_try_echo=$ac_try;;
7671 esac
7672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7673   (eval "$ac_compile") 2>conftest.er1
7674   ac_status=$?
7675   grep -v '^ *+' conftest.er1 >conftest.err
7676   rm -f conftest.er1
7677   cat conftest.err >&5
7678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679   (exit $ac_status); } && {
7680          test -z "$ac_cxx_werror_flag" ||
7681          test ! -s conftest.err
7682        } && test -s conftest.$ac_objext; then
7683   ac_cv_prog_cxx_g=yes
7684 else
7685   echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7687
7688
7689 fi
7690
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 fi
7693
7694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 fi
7696
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7699 fi
7700 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7701 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
7702 if test "$ac_test_CXXFLAGS" = set; then
7703   CXXFLAGS=$ac_save_CXXFLAGS
7704 elif test $ac_cv_prog_cxx_g = yes; then
7705   if test "$GXX" = yes; then
7706     CXXFLAGS="-g -O2"
7707   else
7708     CXXFLAGS="-g"
7709   fi
7710 else
7711   if test "$GXX" = yes; then
7712     CXXFLAGS="-O2"
7713   else
7714     CXXFLAGS=
7715   fi
7716 fi
7717 ac_ext=c
7718 ac_cpp='$CPP $CPPFLAGS'
7719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7722
7723 depcc="$CXX"  am_compiler_list=
7724
7725 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7726 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
7727 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7728   echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7731   # We make a subdir and do the tests there.  Otherwise we can end up
7732   # making bogus files that we don't know about and never remove.  For
7733   # instance it was reported that on HP-UX the gcc test will end up
7734   # making a dummy file named `D' -- because `-MD' means `put the output
7735   # in D'.
7736   mkdir conftest.dir
7737   # Copy depcomp to subdir because otherwise we won't find it if we're
7738   # using a relative directory.
7739   cp "$am_depcomp" conftest.dir
7740   cd conftest.dir
7741   # We will build objects and dependencies in a subdirectory because
7742   # it helps to detect inapplicable dependency modes.  For instance
7743   # both Tru64's cc and ICC support -MD to output dependencies as a
7744   # side effect of compilation, but ICC will put the dependencies in
7745   # the current directory while Tru64 will put them in the object
7746   # directory.
7747   mkdir sub
7748
7749   am_cv_CXX_dependencies_compiler_type=none
7750   if test "$am_compiler_list" = ""; then
7751      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7752   fi
7753   for depmode in $am_compiler_list; do
7754     # Setup a source with many dependencies, because some compilers
7755     # like to wrap large dependency lists on column 80 (with \), and
7756     # we should not choose a depcomp mode which is confused by this.
7757     #
7758     # We need to recreate these files for each test, as the compiler may
7759     # overwrite some of them when testing with obscure command lines.
7760     # This happens at least with the AIX C compiler.
7761     : > sub/conftest.c
7762     for i in 1 2 3 4 5 6; do
7763       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7764       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7765       # Solaris 8's {/usr,}/bin/sh.
7766       touch sub/conftst$i.h
7767     done
7768     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7769
7770     case $depmode in
7771     nosideeffect)
7772       # after this tag, mechanisms are not by side-effect, so they'll
7773       # only be used when explicitly requested
7774       if test "x$enable_dependency_tracking" = xyes; then
7775         continue
7776       else
7777         break
7778       fi
7779       ;;
7780     none) break ;;
7781     esac
7782     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7783     # mode.  It turns out that the SunPro C++ compiler does not properly
7784     # handle `-M -o', and we need to detect this.
7785     if depmode=$depmode \
7786        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7787        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7788        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7789          >/dev/null 2>conftest.err &&
7790        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7791        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7792        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7793        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7794       # icc doesn't choke on unknown options, it will just issue warnings
7795       # or remarks (even with -Werror).  So we grep stderr for any message
7796       # that says an option was ignored or not supported.
7797       # When given -MP, icc 7.0 and 7.1 complain thusly:
7798       #   icc: Command line warning: ignoring option '-M'; no argument required
7799       # The diagnosis changed in icc 8.0:
7800       #   icc: Command line remark: option '-MP' not supported
7801       if (grep 'ignoring option' conftest.err ||
7802           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7803         am_cv_CXX_dependencies_compiler_type=$depmode
7804         break
7805       fi
7806     fi
7807   done
7808
7809   cd ..
7810   rm -rf conftest.dir
7811 else
7812   am_cv_CXX_dependencies_compiler_type=none
7813 fi
7814
7815 fi
7816 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7817 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
7818 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7819
7820  if
7821   test "x$enable_dependency_tracking" != xno \
7822   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7823   am__fastdepCXX_TRUE=
7824   am__fastdepCXX_FALSE='#'
7825 else
7826   am__fastdepCXX_TRUE='#'
7827   am__fastdepCXX_FALSE=
7828 fi
7829
7830
7831 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7832     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7833     (test "X$CXX" != "Xg++"))) ; then
7834   ac_ext=cpp
7835 ac_cpp='$CXXCPP $CPPFLAGS'
7836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7839 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7840 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7841 if test -z "$CXXCPP"; then
7842   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7843   echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845       # Double quotes because CXXCPP needs to be expanded
7846     for CXXCPP in "$CXX -E" "/lib/cpp"
7847     do
7848       ac_preproc_ok=false
7849 for ac_cxx_preproc_warn_flag in '' yes
7850 do
7851   # Use a header file that comes with gcc, so configuring glibc
7852   # with a fresh cross-compiler works.
7853   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7854   # <limits.h> exists even on freestanding compilers.
7855   # On the NeXT, cc -E runs the code through the compiler's parser,
7856   # not just through cpp. "Syntax error" is here to catch this case.
7857   cat >conftest.$ac_ext <<_ACEOF
7858 /* confdefs.h.  */
7859 _ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h.  */
7863 #ifdef __STDC__
7864 # include <limits.h>
7865 #else
7866 # include <assert.h>
7867 #endif
7868                      Syntax error
7869 _ACEOF
7870 if { (ac_try="$ac_cpp conftest.$ac_ext"
7871 case "(($ac_try" in
7872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873   *) ac_try_echo=$ac_try;;
7874 esac
7875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7877   ac_status=$?
7878   grep -v '^ *+' conftest.er1 >conftest.err
7879   rm -f conftest.er1
7880   cat conftest.err >&5
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); } >/dev/null && {
7883          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7884          test ! -s conftest.err
7885        }; then
7886   :
7887 else
7888   echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7890
7891   # Broken: fails on valid input.
7892 continue
7893 fi
7894
7895 rm -f conftest.err conftest.$ac_ext
7896
7897   # OK, works on sane cases.  Now check whether nonexistent headers
7898   # can be detected and how.
7899   cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h.  */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h.  */
7905 #include <ac_nonexistent.h>
7906 _ACEOF
7907 if { (ac_try="$ac_cpp conftest.$ac_ext"
7908 case "(($ac_try" in
7909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910   *) ac_try_echo=$ac_try;;
7911 esac
7912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7914   ac_status=$?
7915   grep -v '^ *+' conftest.er1 >conftest.err
7916   rm -f conftest.er1
7917   cat conftest.err >&5
7918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   (exit $ac_status); } >/dev/null && {
7920          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7921          test ! -s conftest.err
7922        }; then
7923   # Broken: success on invalid input.
7924 continue
7925 else
7926   echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7928
7929   # Passes both tests.
7930 ac_preproc_ok=:
7931 break
7932 fi
7933
7934 rm -f conftest.err conftest.$ac_ext
7935
7936 done
7937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7938 rm -f conftest.err conftest.$ac_ext
7939 if $ac_preproc_ok; then
7940   break
7941 fi
7942
7943     done
7944     ac_cv_prog_CXXCPP=$CXXCPP
7945
7946 fi
7947   CXXCPP=$ac_cv_prog_CXXCPP
7948 else
7949   ac_cv_prog_CXXCPP=$CXXCPP
7950 fi
7951 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7952 echo "${ECHO_T}$CXXCPP" >&6; }
7953 ac_preproc_ok=false
7954 for ac_cxx_preproc_warn_flag in '' yes
7955 do
7956   # Use a header file that comes with gcc, so configuring glibc
7957   # with a fresh cross-compiler works.
7958   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7959   # <limits.h> exists even on freestanding compilers.
7960   # On the NeXT, cc -E runs the code through the compiler's parser,
7961   # not just through cpp. "Syntax error" is here to catch this case.
7962   cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h.  */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h.  */
7968 #ifdef __STDC__
7969 # include <limits.h>
7970 #else
7971 # include <assert.h>
7972 #endif
7973                      Syntax error
7974 _ACEOF
7975 if { (ac_try="$ac_cpp conftest.$ac_ext"
7976 case "(($ac_try" in
7977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978   *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7982   ac_status=$?
7983   grep -v '^ *+' conftest.er1 >conftest.err
7984   rm -f conftest.er1
7985   cat conftest.err >&5
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); } >/dev/null && {
7988          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7989          test ! -s conftest.err
7990        }; then
7991   :
7992 else
7993   echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7995
7996   # Broken: fails on valid input.
7997 continue
7998 fi
7999
8000 rm -f conftest.err conftest.$ac_ext
8001
8002   # OK, works on sane cases.  Now check whether nonexistent headers
8003   # can be detected and how.
8004   cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h.  */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h.  */
8010 #include <ac_nonexistent.h>
8011 _ACEOF
8012 if { (ac_try="$ac_cpp conftest.$ac_ext"
8013 case "(($ac_try" in
8014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8015   *) ac_try_echo=$ac_try;;
8016 esac
8017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8018   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8019   ac_status=$?
8020   grep -v '^ *+' conftest.er1 >conftest.err
8021   rm -f conftest.er1
8022   cat conftest.err >&5
8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); } >/dev/null && {
8025          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8026          test ! -s conftest.err
8027        }; then
8028   # Broken: success on invalid input.
8029 continue
8030 else
8031   echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8033
8034   # Passes both tests.
8035 ac_preproc_ok=:
8036 break
8037 fi
8038
8039 rm -f conftest.err conftest.$ac_ext
8040
8041 done
8042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8043 rm -f conftest.err conftest.$ac_ext
8044 if $ac_preproc_ok; then
8045   :
8046 else
8047   _lt_caught_CXX_error=yes
8048 fi
8049
8050 ac_ext=c
8051 ac_cpp='$CPP $CPPFLAGS'
8052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8055
8056 else
8057   _lt_caught_CXX_error=yes
8058 fi
8059
8060
8061
8062
8063
8064 # Set options
8065
8066
8067
8068         enable_dlopen=no
8069
8070
8071   enable_win32_dll=no
8072
8073
8074             # Check whether --enable-shared was given.
8075 if test "${enable_shared+set}" = set; then
8076   enableval=$enable_shared; p=${PACKAGE-default}
8077     case $enableval in
8078     yes) enable_shared=yes ;;
8079     no) enable_shared=no ;;
8080     *)
8081       enable_shared=no
8082       # Look at the argument we got.  We use all the common list separators.
8083       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8084       for pkg in $enableval; do
8085         IFS="$lt_save_ifs"
8086         if test "X$pkg" = "X$p"; then
8087           enable_shared=yes
8088         fi
8089       done
8090       IFS="$lt_save_ifs"
8091       ;;
8092     esac
8093 else
8094   enable_shared=yes
8095 fi
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105   # Check whether --enable-static was given.
8106 if test "${enable_static+set}" = set; then
8107   enableval=$enable_static; p=${PACKAGE-default}
8108     case $enableval in
8109     yes) enable_static=yes ;;
8110     no) enable_static=no ;;
8111     *)
8112      enable_static=no
8113       # Look at the argument we got.  We use all the common list separators.
8114       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8115       for pkg in $enableval; do
8116         IFS="$lt_save_ifs"
8117         if test "X$pkg" = "X$p"; then
8118           enable_static=yes
8119         fi
8120       done
8121       IFS="$lt_save_ifs"
8122       ;;
8123     esac
8124 else
8125   enable_static=yes
8126 fi
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137 # Check whether --with-pic was given.
8138 if test "${with_pic+set}" = set; then
8139   withval=$with_pic; pic_mode="$withval"
8140 else
8141   pic_mode=default
8142 fi
8143
8144
8145 test -z "$pic_mode" && pic_mode=default
8146
8147
8148
8149
8150
8151
8152
8153   # Check whether --enable-fast-install was given.
8154 if test "${enable_fast_install+set}" = set; then
8155   enableval=$enable_fast_install; p=${PACKAGE-default}
8156     case $enableval in
8157     yes) enable_fast_install=yes ;;
8158     no) enable_fast_install=no ;;
8159     *)
8160       enable_fast_install=no
8161       # Look at the argument we got.  We use all the common list separators.
8162       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8163       for pkg in $enableval; do
8164         IFS="$lt_save_ifs"
8165         if test "X$pkg" = "X$p"; then
8166           enable_fast_install=yes
8167         fi
8168       done
8169       IFS="$lt_save_ifs"
8170       ;;
8171     esac
8172 else
8173   enable_fast_install=yes
8174 fi
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186 # This can be used to rebuild libtool when needed
8187 LIBTOOL_DEPS="$ltmain"
8188
8189 # Always use our own libtool.
8190 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216 test -z "$LN_S" && LN_S="ln -s"
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231 if test -n "${ZSH_VERSION+set}" ; then
8232    setopt NO_GLOB_SUBST
8233 fi
8234
8235 { echo "$as_me:$LINENO: checking for objdir" >&5
8236 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8237 if test "${lt_cv_objdir+set}" = set; then
8238   echo $ECHO_N "(cached) $ECHO_C" >&6
8239 else
8240   rm -f .libs 2>/dev/null
8241 mkdir .libs 2>/dev/null
8242 if test -d .libs; then
8243   lt_cv_objdir=.libs
8244 else
8245   # MS-DOS does not allow filenames that begin with a dot.
8246   lt_cv_objdir=_libs
8247 fi
8248 rmdir .libs 2>/dev/null
8249 fi
8250 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8251 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8252 objdir=$lt_cv_objdir
8253
8254
8255
8256
8257
8258 cat >>confdefs.h <<_ACEOF
8259 #define LT_OBJDIR "$lt_cv_objdir/"
8260 _ACEOF
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278 case $host_os in
8279 aix3*)
8280   # AIX sometimes has problems with the GCC collect2 program.  For some
8281   # reason, if we set the COLLECT_NAMES environment variable, the problems
8282   # vanish in a puff of smoke.
8283   if test "X${COLLECT_NAMES+set}" != Xset; then
8284     COLLECT_NAMES=
8285     export COLLECT_NAMES
8286   fi
8287   ;;
8288 esac
8289
8290 # Sed substitution that helps us do robust quoting.  It backslashifies
8291 # metacharacters that are still active within double-quoted strings.
8292 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8293
8294 # Same as above, but do not quote variable references.
8295 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8296
8297 # Sed substitution to delay expansion of an escaped shell variable in a
8298 # double_quote_subst'ed string.
8299 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8300
8301 # Sed substitution to delay expansion of an escaped single quote.
8302 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8303
8304 # Sed substitution to avoid accidental globbing in evaled expressions
8305 no_glob_subst='s/\*/\\\*/g'
8306
8307 # Global variables:
8308 ofile=libtool
8309 can_build_shared=yes
8310
8311 # All known linkers require a `.a' archive for static linking (except MSVC,
8312 # which needs '.lib').
8313 libext=a
8314
8315 with_gnu_ld="$lt_cv_prog_gnu_ld"
8316
8317 old_CC="$CC"
8318 old_CFLAGS="$CFLAGS"
8319
8320 # Set sane defaults for various variables
8321 test -z "$CC" && CC=cc
8322 test -z "$LTCC" && LTCC=$CC
8323 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8324 test -z "$LD" && LD=ld
8325 test -z "$ac_objext" && ac_objext=o
8326
8327 for cc_temp in $compiler""; do
8328   case $cc_temp in
8329     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8330     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8331     \-*) ;;
8332     *) break;;
8333   esac
8334 done
8335 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8336
8337
8338 # Only perform the check for file, if the check method requires it
8339 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8340 case $deplibs_check_method in
8341 file_magic*)
8342   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8343     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8344 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8345 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348   case $MAGIC_CMD in
8349 [\\/*] |  ?:[\\/]*)
8350   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8351   ;;
8352 *)
8353   lt_save_MAGIC_CMD="$MAGIC_CMD"
8354   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8355   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8356   for ac_dir in $ac_dummy; do
8357     IFS="$lt_save_ifs"
8358     test -z "$ac_dir" && ac_dir=.
8359     if test -f $ac_dir/${ac_tool_prefix}file; then
8360       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8361       if test -n "$file_magic_test_file"; then
8362         case $deplibs_check_method in
8363         "file_magic "*)
8364           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8365           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8366           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8367             $EGREP "$file_magic_regex" > /dev/null; then
8368             :
8369           else
8370             cat <<_LT_EOF 1>&2
8371
8372 *** Warning: the command libtool uses to detect shared libraries,
8373 *** $file_magic_cmd, produces output that libtool cannot recognize.
8374 *** The result is that libtool may fail to recognize shared libraries
8375 *** as such.  This will affect the creation of libtool libraries that
8376 *** depend on shared libraries, but programs linked with such libtool
8377 *** libraries will work regardless of this problem.  Nevertheless, you
8378 *** may want to report the problem to your system manager and/or to
8379 *** bug-libtool@gnu.org
8380
8381 _LT_EOF
8382           fi ;;
8383         esac
8384       fi
8385       break
8386     fi
8387   done
8388   IFS="$lt_save_ifs"
8389   MAGIC_CMD="$lt_save_MAGIC_CMD"
8390   ;;
8391 esac
8392 fi
8393
8394 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8395 if test -n "$MAGIC_CMD"; then
8396   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8397 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8398 else
8399   { echo "$as_me:$LINENO: result: no" >&5
8400 echo "${ECHO_T}no" >&6; }
8401 fi
8402
8403
8404
8405
8406
8407 if test -z "$lt_cv_path_MAGIC_CMD"; then
8408   if test -n "$ac_tool_prefix"; then
8409     { echo "$as_me:$LINENO: checking for file" >&5
8410 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8411 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8412   echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414   case $MAGIC_CMD in
8415 [\\/*] |  ?:[\\/]*)
8416   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8417   ;;
8418 *)
8419   lt_save_MAGIC_CMD="$MAGIC_CMD"
8420   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8421   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8422   for ac_dir in $ac_dummy; do
8423     IFS="$lt_save_ifs"
8424     test -z "$ac_dir" && ac_dir=.
8425     if test -f $ac_dir/file; then
8426       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8427       if test -n "$file_magic_test_file"; then
8428         case $deplibs_check_method in
8429         "file_magic "*)
8430           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8431           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8432           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8433             $EGREP "$file_magic_regex" > /dev/null; then
8434             :
8435           else
8436             cat <<_LT_EOF 1>&2
8437
8438 *** Warning: the command libtool uses to detect shared libraries,
8439 *** $file_magic_cmd, produces output that libtool cannot recognize.
8440 *** The result is that libtool may fail to recognize shared libraries
8441 *** as such.  This will affect the creation of libtool libraries that
8442 *** depend on shared libraries, but programs linked with such libtool
8443 *** libraries will work regardless of this problem.  Nevertheless, you
8444 *** may want to report the problem to your system manager and/or to
8445 *** bug-libtool@gnu.org
8446
8447 _LT_EOF
8448           fi ;;
8449         esac
8450       fi
8451       break
8452     fi
8453   done
8454   IFS="$lt_save_ifs"
8455   MAGIC_CMD="$lt_save_MAGIC_CMD"
8456   ;;
8457 esac
8458 fi
8459
8460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8461 if test -n "$MAGIC_CMD"; then
8462   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8463 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8464 else
8465   { echo "$as_me:$LINENO: result: no" >&5
8466 echo "${ECHO_T}no" >&6; }
8467 fi
8468
8469
8470   else
8471     MAGIC_CMD=:
8472   fi
8473 fi
8474
8475   fi
8476   ;;
8477 esac
8478
8479 # Use C for the default configuration in the libtool script
8480
8481 lt_save_CC="$CC"
8482 ac_ext=c
8483 ac_cpp='$CPP $CPPFLAGS'
8484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8487
8488
8489 # Source file extension for C test sources.
8490 ac_ext=c
8491
8492 # Object file extension for compiled C test sources.
8493 objext=o
8494 objext=$objext
8495
8496 # Code to be used in simple compile tests
8497 lt_simple_compile_test_code="int some_variable = 0;"
8498
8499 # Code to be used in simple link tests
8500 lt_simple_link_test_code='int main(){return(0);}'
8501
8502
8503
8504
8505
8506
8507
8508 # If no C compiler was specified, use CC.
8509 LTCC=${LTCC-"$CC"}
8510
8511 # If no C compiler flags were specified, use CFLAGS.
8512 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8513
8514 # Allow CC to be a program name with arguments.
8515 compiler=$CC
8516
8517 # Save the default compiler, since it gets overwritten when the other
8518 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8519 compiler_DEFAULT=$CC
8520
8521 # save warnings/boilerplate of simple test code
8522 ac_outfile=conftest.$ac_objext
8523 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8524 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8525 _lt_compiler_boilerplate=`cat conftest.err`
8526 $RM conftest*
8527
8528 ac_outfile=conftest.$ac_objext
8529 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8530 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8531 _lt_linker_boilerplate=`cat conftest.err`
8532 $RM -r conftest*
8533
8534
8535 if test -n "$compiler"; then
8536
8537 lt_prog_compiler_no_builtin_flag=
8538
8539 if test "$GCC" = yes; then
8540   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8541
8542   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8543 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8544 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8545   echo $ECHO_N "(cached) $ECHO_C" >&6
8546 else
8547   lt_cv_prog_compiler_rtti_exceptions=no
8548    ac_outfile=conftest.$ac_objext
8549    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8550    lt_compiler_flag="-fno-rtti -fno-exceptions"
8551    # Insert the option either (1) after the last *FLAGS variable, or
8552    # (2) before a word containing "conftest.", or (3) at the end.
8553    # Note that $ac_compile itself does not contain backslashes and begins
8554    # with a dollar sign (not a hyphen), so the echo should work correctly.
8555    # The option is referenced via a variable to avoid confusing sed.
8556    lt_compile=`echo "$ac_compile" | $SED \
8557    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8558    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8559    -e 's:$: $lt_compiler_flag:'`
8560    (eval echo "\"\$as_me:8560: $lt_compile\"" >&5)
8561    (eval "$lt_compile" 2>conftest.err)
8562    ac_status=$?
8563    cat conftest.err >&5
8564    echo "$as_me:8564: \$? = $ac_status" >&5
8565    if (exit $ac_status) && test -s "$ac_outfile"; then
8566      # The compiler can only warn and ignore the option if not recognized
8567      # So say no if there are warnings other than the usual output.
8568      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8569      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8570      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8571        lt_cv_prog_compiler_rtti_exceptions=yes
8572      fi
8573    fi
8574    $RM conftest*
8575
8576 fi
8577 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8578 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8579
8580 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8581     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8582 else
8583     :
8584 fi
8585
8586 fi
8587
8588
8589
8590
8591
8592
8593   lt_prog_compiler_wl=
8594 lt_prog_compiler_pic=
8595 lt_prog_compiler_static=
8596
8597 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8598 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8599
8600   if test "$GCC" = yes; then
8601     lt_prog_compiler_wl='-Wl,'
8602     lt_prog_compiler_static='-static'
8603
8604     case $host_os in
8605       aix*)
8606       # All AIX code is PIC.
8607       if test "$host_cpu" = ia64; then
8608         # AIX 5 now supports IA64 processor
8609         lt_prog_compiler_static='-Bstatic'
8610       fi
8611       ;;
8612
8613     amigaos*)
8614       case $host_cpu in
8615       powerpc)
8616             # see comment about AmigaOS4 .so support
8617             lt_prog_compiler_pic='-fPIC'
8618         ;;
8619       m68k)
8620             # FIXME: we need at least 68020 code to build shared libraries, but
8621             # adding the `-m68020' flag to GCC prevents building anything better,
8622             # like `-m68040'.
8623             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8624         ;;
8625       esac
8626       ;;
8627
8628     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8629       # PIC is the default for these OSes.
8630       ;;
8631
8632     mingw* | cygwin* | pw32* | os2*)
8633       # This hack is so that the source file can tell whether it is being
8634       # built for inclusion in a dll (and should export symbols for example).
8635       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8636       # (--disable-auto-import) libraries
8637       lt_prog_compiler_pic='-DDLL_EXPORT'
8638       ;;
8639
8640     darwin* | rhapsody*)
8641       # PIC is the default on this platform
8642       # Common symbols not allowed in MH_DYLIB files
8643       lt_prog_compiler_pic='-fno-common'
8644       ;;
8645
8646     hpux*)
8647       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8648       # not for PA HP-UX.
8649       case $host_cpu in
8650       hppa*64*|ia64*)
8651         # +Z the default
8652         ;;
8653       *)
8654         lt_prog_compiler_pic='-fPIC'
8655         ;;
8656       esac
8657       ;;
8658
8659     interix[3-9]*)
8660       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8661       # Instead, we relocate shared libraries at runtime.
8662       ;;
8663
8664     msdosdjgpp*)
8665       # Just because we use GCC doesn't mean we suddenly get shared libraries
8666       # on systems that don't support them.
8667       lt_prog_compiler_can_build_shared=no
8668       enable_shared=no
8669       ;;
8670
8671     *nto* | *qnx*)
8672       # QNX uses GNU C++, but need to define -shared option too, otherwise
8673       # it will coredump.
8674       lt_prog_compiler_pic='-fPIC -shared'
8675       ;;
8676
8677     sysv4*MP*)
8678       if test -d /usr/nec; then
8679         lt_prog_compiler_pic=-Kconform_pic
8680       fi
8681       ;;
8682
8683     *)
8684       lt_prog_compiler_pic='-fPIC'
8685       ;;
8686     esac
8687   else
8688     # PORTME Check for flag to pass linker flags through the system compiler.
8689     case $host_os in
8690     aix*)
8691       lt_prog_compiler_wl='-Wl,'
8692       if test "$host_cpu" = ia64; then
8693         # AIX 5 now supports IA64 processor
8694         lt_prog_compiler_static='-Bstatic'
8695       else
8696         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8697       fi
8698       ;;
8699
8700     mingw* | cygwin* | pw32* | os2*)
8701       # This hack is so that the source file can tell whether it is being
8702       # built for inclusion in a dll (and should export symbols for example).
8703       lt_prog_compiler_pic='-DDLL_EXPORT'
8704       ;;
8705
8706     hpux9* | hpux10* | hpux11*)
8707       lt_prog_compiler_wl='-Wl,'
8708       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8709       # not for PA HP-UX.
8710       case $host_cpu in
8711       hppa*64*|ia64*)
8712         # +Z the default
8713         ;;
8714       *)
8715         lt_prog_compiler_pic='+Z'
8716         ;;
8717       esac
8718       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8719       lt_prog_compiler_static='${wl}-a ${wl}archive'
8720       ;;
8721
8722     irix5* | irix6* | nonstopux*)
8723       lt_prog_compiler_wl='-Wl,'
8724       # PIC (with -KPIC) is the default.
8725       lt_prog_compiler_static='-non_shared'
8726       ;;
8727
8728     linux* | k*bsd*-gnu)
8729       case $cc_basename in
8730       icc* | ecc* | ifort*)
8731         lt_prog_compiler_wl='-Wl,'
8732         lt_prog_compiler_pic='-KPIC'
8733         lt_prog_compiler_static='-static'
8734         ;;
8735       pgcc* | pgf77* | pgf90* | pgf95*)
8736         # Portland Group compilers (*not* the Pentium gcc compiler,
8737         # which looks to be a dead project)
8738         lt_prog_compiler_wl='-Wl,'
8739         lt_prog_compiler_pic='-fpic'
8740         lt_prog_compiler_static='-Bstatic'
8741         ;;
8742       ccc*)
8743         lt_prog_compiler_wl='-Wl,'
8744         # All Alpha code is PIC.
8745         lt_prog_compiler_static='-non_shared'
8746         ;;
8747       xl*)
8748         # IBM XL C 8.0/Fortran 10.1 on PPC
8749         lt_prog_compiler_wl='-Wl,'
8750         lt_prog_compiler_pic='-qpic'
8751         lt_prog_compiler_static='-qstaticlink'
8752         ;;
8753       *)
8754         case `$CC -V 2>&1 | sed 5q` in
8755         *Sun\ C*)
8756           # Sun C 5.9
8757           lt_prog_compiler_pic='-KPIC'
8758           lt_prog_compiler_static='-Bstatic'
8759           lt_prog_compiler_wl='-Wl,'
8760           ;;
8761         *Sun\ F*)
8762           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8763           lt_prog_compiler_pic='-KPIC'
8764           lt_prog_compiler_static='-Bstatic'
8765           lt_prog_compiler_wl=''
8766           ;;
8767         esac
8768         ;;
8769       esac
8770       ;;
8771
8772     newsos6)
8773       lt_prog_compiler_pic='-KPIC'
8774       lt_prog_compiler_static='-Bstatic'
8775       ;;
8776
8777     *nto* | *qnx*)
8778       # QNX uses GNU C++, but need to define -shared option too, otherwise
8779       # it will coredump.
8780       lt_prog_compiler_pic='-fPIC -shared'
8781       ;;
8782
8783     osf3* | osf4* | osf5*)
8784       lt_prog_compiler_wl='-Wl,'
8785       # All OSF/1 code is PIC.
8786       lt_prog_compiler_static='-non_shared'
8787       ;;
8788
8789     rdos*)
8790       lt_prog_compiler_static='-non_shared'
8791       ;;
8792
8793     solaris*)
8794       lt_prog_compiler_pic='-KPIC'
8795       lt_prog_compiler_static='-Bstatic'
8796       case $cc_basename in
8797       f77* | f90* | f95*)
8798         lt_prog_compiler_wl='-Qoption ld ';;
8799       *)
8800         lt_prog_compiler_wl='-Wl,';;
8801       esac
8802       ;;
8803
8804     sunos4*)
8805       lt_prog_compiler_wl='-Qoption ld '
8806       lt_prog_compiler_pic='-PIC'
8807       lt_prog_compiler_static='-Bstatic'
8808       ;;
8809
8810     sysv4 | sysv4.2uw2* | sysv4.3*)
8811       lt_prog_compiler_wl='-Wl,'
8812       lt_prog_compiler_pic='-KPIC'
8813       lt_prog_compiler_static='-Bstatic'
8814       ;;
8815
8816     sysv4*MP*)
8817       if test -d /usr/nec ;then
8818         lt_prog_compiler_pic='-Kconform_pic'
8819         lt_prog_compiler_static='-Bstatic'
8820       fi
8821       ;;
8822
8823     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8824       lt_prog_compiler_wl='-Wl,'
8825       lt_prog_compiler_pic='-KPIC'
8826       lt_prog_compiler_static='-Bstatic'
8827       ;;
8828
8829     unicos*)
8830       lt_prog_compiler_wl='-Wl,'
8831       lt_prog_compiler_can_build_shared=no
8832       ;;
8833
8834     uts4*)
8835       lt_prog_compiler_pic='-pic'
8836       lt_prog_compiler_static='-Bstatic'
8837       ;;
8838
8839     *)
8840       lt_prog_compiler_can_build_shared=no
8841       ;;
8842     esac
8843   fi
8844
8845 case $host_os in
8846   # For platforms which do not support PIC, -DPIC is meaningless:
8847   *djgpp*)
8848     lt_prog_compiler_pic=
8849     ;;
8850   *)
8851     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8852     ;;
8853 esac
8854 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8855 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8856
8857
8858
8859
8860
8861
8862 #
8863 # Check to make sure the PIC flag actually works.
8864 #
8865 if test -n "$lt_prog_compiler_pic"; then
8866   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8867 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8868 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8869   echo $ECHO_N "(cached) $ECHO_C" >&6
8870 else
8871   lt_cv_prog_compiler_pic_works=no
8872    ac_outfile=conftest.$ac_objext
8873    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8874    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8875    # Insert the option either (1) after the last *FLAGS variable, or
8876    # (2) before a word containing "conftest.", or (3) at the end.
8877    # Note that $ac_compile itself does not contain backslashes and begins
8878    # with a dollar sign (not a hyphen), so the echo should work correctly.
8879    # The option is referenced via a variable to avoid confusing sed.
8880    lt_compile=`echo "$ac_compile" | $SED \
8881    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8882    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8883    -e 's:$: $lt_compiler_flag:'`
8884    (eval echo "\"\$as_me:8884: $lt_compile\"" >&5)
8885    (eval "$lt_compile" 2>conftest.err)
8886    ac_status=$?
8887    cat conftest.err >&5
8888    echo "$as_me:8888: \$? = $ac_status" >&5
8889    if (exit $ac_status) && test -s "$ac_outfile"; then
8890      # The compiler can only warn and ignore the option if not recognized
8891      # So say no if there are warnings other than the usual output.
8892      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8893      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8894      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8895        lt_cv_prog_compiler_pic_works=yes
8896      fi
8897    fi
8898    $RM conftest*
8899
8900 fi
8901 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8902 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8903
8904 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8905     case $lt_prog_compiler_pic in
8906      "" | " "*) ;;
8907      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8908      esac
8909 else
8910     lt_prog_compiler_pic=
8911      lt_prog_compiler_can_build_shared=no
8912 fi
8913
8914 fi
8915
8916
8917
8918
8919
8920
8921 #
8922 # Check to make sure the static flag actually works.
8923 #
8924 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8925 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8926 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8927 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8928   echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930   lt_cv_prog_compiler_static_works=no
8931    save_LDFLAGS="$LDFLAGS"
8932    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8933    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8934    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8935      # The linker can only warn and ignore the option if not recognized
8936      # So say no if there are warnings
8937      if test -s conftest.err; then
8938        # Append any errors to the config.log.
8939        cat conftest.err 1>&5
8940        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8941        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8942        if diff conftest.exp conftest.er2 >/dev/null; then
8943          lt_cv_prog_compiler_static_works=yes
8944        fi
8945      else
8946        lt_cv_prog_compiler_static_works=yes
8947      fi
8948    fi
8949    $RM -r conftest*
8950    LDFLAGS="$save_LDFLAGS"
8951
8952 fi
8953 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8954 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8955
8956 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8957     :
8958 else
8959     lt_prog_compiler_static=
8960 fi
8961
8962
8963
8964
8965
8966
8967
8968   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8969 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8970 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8971   echo $ECHO_N "(cached) $ECHO_C" >&6
8972 else
8973   lt_cv_prog_compiler_c_o=no
8974    $RM -r conftest 2>/dev/null
8975    mkdir conftest
8976    cd conftest
8977    mkdir out
8978    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8979
8980    lt_compiler_flag="-o out/conftest2.$ac_objext"
8981    # Insert the option either (1) after the last *FLAGS variable, or
8982    # (2) before a word containing "conftest.", or (3) at the end.
8983    # Note that $ac_compile itself does not contain backslashes and begins
8984    # with a dollar sign (not a hyphen), so the echo should work correctly.
8985    lt_compile=`echo "$ac_compile" | $SED \
8986    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8987    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8988    -e 's:$: $lt_compiler_flag:'`
8989    (eval echo "\"\$as_me:8989: $lt_compile\"" >&5)
8990    (eval "$lt_compile" 2>out/conftest.err)
8991    ac_status=$?
8992    cat out/conftest.err >&5
8993    echo "$as_me:8993: \$? = $ac_status" >&5
8994    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8995    then
8996      # The compiler can only warn and ignore the option if not recognized
8997      # So say no if there are warnings
8998      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8999      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9000      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9001        lt_cv_prog_compiler_c_o=yes
9002      fi
9003    fi
9004    chmod u+w . 2>&5
9005    $RM conftest*
9006    # SGI C++ compiler will create directory out/ii_files/ for
9007    # template instantiation
9008    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9009    $RM out/* && rmdir out
9010    cd ..
9011    $RM -r conftest
9012    $RM conftest*
9013
9014 fi
9015 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9016 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9017
9018
9019
9020
9021
9022
9023   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9024 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9025 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9026   echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028   lt_cv_prog_compiler_c_o=no
9029    $RM -r conftest 2>/dev/null
9030    mkdir conftest
9031    cd conftest
9032    mkdir out
9033    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9034
9035    lt_compiler_flag="-o out/conftest2.$ac_objext"
9036    # Insert the option either (1) after the last *FLAGS variable, or
9037    # (2) before a word containing "conftest.", or (3) at the end.
9038    # Note that $ac_compile itself does not contain backslashes and begins
9039    # with a dollar sign (not a hyphen), so the echo should work correctly.
9040    lt_compile=`echo "$ac_compile" | $SED \
9041    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9042    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9043    -e 's:$: $lt_compiler_flag:'`
9044    (eval echo "\"\$as_me:9044: $lt_compile\"" >&5)
9045    (eval "$lt_compile" 2>out/conftest.err)
9046    ac_status=$?
9047    cat out/conftest.err >&5
9048    echo "$as_me:9048: \$? = $ac_status" >&5
9049    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9050    then
9051      # The compiler can only warn and ignore the option if not recognized
9052      # So say no if there are warnings
9053      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9054      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9055      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9056        lt_cv_prog_compiler_c_o=yes
9057      fi
9058    fi
9059    chmod u+w . 2>&5
9060    $RM conftest*
9061    # SGI C++ compiler will create directory out/ii_files/ for
9062    # template instantiation
9063    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9064    $RM out/* && rmdir out
9065    cd ..
9066    $RM -r conftest
9067    $RM conftest*
9068
9069 fi
9070 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9071 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9072
9073
9074
9075
9076 hard_links="nottested"
9077 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9078   # do not overwrite the value of need_locks provided by the user
9079   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9080 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9081   hard_links=yes
9082   $RM conftest*
9083   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9084   touch conftest.a
9085   ln conftest.a conftest.b 2>&5 || hard_links=no
9086   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9087   { echo "$as_me:$LINENO: result: $hard_links" >&5
9088 echo "${ECHO_T}$hard_links" >&6; }
9089   if test "$hard_links" = no; then
9090     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9091 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9092     need_locks=warn
9093   fi
9094 else
9095   need_locks=no
9096 fi
9097
9098
9099
9100
9101
9102
9103   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9104 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9105
9106   runpath_var=
9107   allow_undefined_flag=
9108   always_export_symbols=no
9109   archive_cmds=
9110   archive_expsym_cmds=
9111   compiler_needs_object=no
9112   enable_shared_with_static_runtimes=no
9113   export_dynamic_flag_spec=
9114   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9115   hardcode_automatic=no
9116   hardcode_direct=no
9117   hardcode_direct_absolute=no
9118   hardcode_libdir_flag_spec=
9119   hardcode_libdir_flag_spec_ld=
9120   hardcode_libdir_separator=
9121   hardcode_minus_L=no
9122   hardcode_shlibpath_var=unsupported
9123   inherit_rpath=no
9124   link_all_deplibs=unknown
9125   module_cmds=
9126   module_expsym_cmds=
9127   old_archive_from_new_cmds=
9128   old_archive_from_expsyms_cmds=
9129   thread_safe_flag_spec=
9130   whole_archive_flag_spec=
9131   # include_expsyms should be a list of space-separated symbols to be *always*
9132   # included in the symbol list
9133   include_expsyms=
9134   # exclude_expsyms can be an extended regexp of symbols to exclude
9135   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9136   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9137   # as well as any symbol that contains `d'.
9138   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9139   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9140   # platforms (ab)use it in PIC code, but their linkers get confused if
9141   # the symbol is explicitly referenced.  Since portable code cannot
9142   # rely on this symbol name, it's probably fine to never include it in
9143   # preloaded symbol tables.
9144   # Exclude shared library initialization/finalization symbols.
9145   extract_expsyms_cmds=
9146
9147   case $host_os in
9148   cygwin* | mingw* | pw32*)
9149     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9150     # When not using gcc, we currently assume that we are using
9151     # Microsoft Visual C++.
9152     if test "$GCC" != yes; then
9153       with_gnu_ld=no
9154     fi
9155     ;;
9156   interix*)
9157     # we just hope/assume this is gcc and not c89 (= MSVC++)
9158     with_gnu_ld=yes
9159     ;;
9160   openbsd*)
9161     with_gnu_ld=no
9162     ;;
9163   esac
9164
9165   ld_shlibs=yes
9166   if test "$with_gnu_ld" = yes; then
9167     # If archive_cmds runs LD, not CC, wlarc should be empty
9168     wlarc='${wl}'
9169
9170     # Set some defaults for GNU ld with shared library support. These
9171     # are reset later if shared libraries are not supported. Putting them
9172     # here allows them to be overridden if necessary.
9173     runpath_var=LD_RUN_PATH
9174     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9175     export_dynamic_flag_spec='${wl}--export-dynamic'
9176     # ancient GNU ld didn't support --whole-archive et. al.
9177     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9178       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9179     else
9180       whole_archive_flag_spec=
9181     fi
9182     supports_anon_versioning=no
9183     case `$LD -v 2>&1` in
9184       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9185       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9186       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9187       *\ 2.11.*) ;; # other 2.11 versions
9188       *) supports_anon_versioning=yes ;;
9189     esac
9190
9191     # See if GNU ld supports shared libraries.
9192     case $host_os in
9193     aix[3-9]*)
9194       # On AIX/PPC, the GNU linker is very broken
9195       if test "$host_cpu" != ia64; then
9196         ld_shlibs=no
9197         cat <<_LT_EOF 1>&2
9198
9199 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9200 *** to be unable to reliably create shared libraries on AIX.
9201 *** Therefore, libtool is disabling shared libraries support.  If you
9202 *** really care for shared libraries, you may want to modify your PATH
9203 *** so that a non-GNU linker is found, and then restart.
9204
9205 _LT_EOF
9206       fi
9207       ;;
9208
9209     amigaos*)
9210       case $host_cpu in
9211       powerpc)
9212             # see comment about AmigaOS4 .so support
9213             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214             archive_expsym_cmds=''
9215         ;;
9216       m68k)
9217             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)'
9218             hardcode_libdir_flag_spec='-L$libdir'
9219             hardcode_minus_L=yes
9220         ;;
9221       esac
9222       ;;
9223
9224     beos*)
9225       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9226         allow_undefined_flag=unsupported
9227         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9228         # support --undefined.  This deserves some investigation.  FIXME
9229         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9230       else
9231         ld_shlibs=no
9232       fi
9233       ;;
9234
9235     cygwin* | mingw* | pw32*)
9236       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9237       # as there is no search path for DLLs.
9238       hardcode_libdir_flag_spec='-L$libdir'
9239       allow_undefined_flag=unsupported
9240       always_export_symbols=no
9241       enable_shared_with_static_runtimes=yes
9242       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9243
9244       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9245         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9246         # If the export-symbols file already is a .def file (1st line
9247         # is EXPORTS), use it as is; otherwise, prepend...
9248         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9249           cp $export_symbols $output_objdir/$soname.def;
9250         else
9251           echo EXPORTS > $output_objdir/$soname.def;
9252           cat $export_symbols >> $output_objdir/$soname.def;
9253         fi~
9254         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9255       else
9256         ld_shlibs=no
9257       fi
9258       ;;
9259
9260     interix[3-9]*)
9261       hardcode_direct=no
9262       hardcode_shlibpath_var=no
9263       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9264       export_dynamic_flag_spec='${wl}-E'
9265       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9266       # Instead, shared libraries are loaded at an image base (0x10000000 by
9267       # default) and relocated if they conflict, which is a slow very memory
9268       # consuming and fragmenting process.  To avoid this, we pick a random,
9269       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9270       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9271       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9272       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'
9273       ;;
9274
9275     gnu* | linux* | tpf* | k*bsd*-gnu)
9276       tmp_diet=no
9277       if test "$host_os" = linux-dietlibc; then
9278         case $cc_basename in
9279           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9280         esac
9281       fi
9282       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9283          && test "$tmp_diet" = no
9284       then
9285         tmp_addflag=
9286         tmp_sharedflag='-shared'
9287         case $cc_basename,$host_cpu in
9288         pgcc*)                          # Portland Group C compiler
9289           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'
9290           tmp_addflag=' $pic_flag'
9291           ;;
9292         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9293           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'
9294           tmp_addflag=' $pic_flag -Mnomain' ;;
9295         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9296           tmp_addflag=' -i_dynamic' ;;
9297         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9298           tmp_addflag=' -i_dynamic -nofor_main' ;;
9299         ifc* | ifort*)                  # Intel Fortran compiler
9300           tmp_addflag=' -nofor_main' ;;
9301         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9302           tmp_sharedflag='-qmkshrobj'
9303           tmp_addflag= ;;
9304         esac
9305         case `$CC -V 2>&1 | sed 5q` in
9306         *Sun\ C*)                       # Sun C 5.9
9307           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'
9308           compiler_needs_object=yes
9309           tmp_sharedflag='-G' ;;
9310         *Sun\ F*)                       # Sun Fortran 8.3
9311           tmp_sharedflag='-G' ;;
9312         esac
9313         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9314
9315         if test "x$supports_anon_versioning" = xyes; then
9316           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9317             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9318             echo "local: *; };" >> $output_objdir/$libname.ver~
9319             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9320         fi
9321
9322         case $cc_basename in
9323         xlf*)
9324           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9325           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9326           hardcode_libdir_flag_spec=
9327           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9328           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9329           if test "x$supports_anon_versioning" = xyes; then
9330             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9331               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9332               echo "local: *; };" >> $output_objdir/$libname.ver~
9333               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9334           fi
9335           ;;
9336         esac
9337       else
9338         ld_shlibs=no
9339       fi
9340       ;;
9341
9342     netbsd*)
9343       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9344         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9345         wlarc=
9346       else
9347         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9348         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9349       fi
9350       ;;
9351
9352     solaris*)
9353       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9354         ld_shlibs=no
9355         cat <<_LT_EOF 1>&2
9356
9357 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9358 *** create shared libraries on Solaris systems.  Therefore, libtool
9359 *** is disabling shared libraries support.  We urge you to upgrade GNU
9360 *** binutils to release 2.9.1 or newer.  Another option is to modify
9361 *** your PATH or compiler configuration so that the native linker is
9362 *** used, and then restart.
9363
9364 _LT_EOF
9365       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9366         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9367         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9368       else
9369         ld_shlibs=no
9370       fi
9371       ;;
9372
9373     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9374       case `$LD -v 2>&1` in
9375         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9376         ld_shlibs=no
9377         cat <<_LT_EOF 1>&2
9378
9379 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9380 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9381 *** is disabling shared libraries support.  We urge you to upgrade GNU
9382 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9383 *** your PATH or compiler configuration so that the native linker is
9384 *** used, and then restart.
9385
9386 _LT_EOF
9387         ;;
9388         *)
9389           # For security reasons, it is highly recommended that you always
9390           # use absolute paths for naming shared libraries, and exclude the
9391           # DT_RUNPATH tag from executables and libraries.  But doing so
9392           # requires that you compile everything twice, which is a pain.
9393           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9394             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9395             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9396             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9397           else
9398             ld_shlibs=no
9399           fi
9400         ;;
9401       esac
9402       ;;
9403
9404     sunos4*)
9405       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9406       wlarc=
9407       hardcode_direct=yes
9408       hardcode_shlibpath_var=no
9409       ;;
9410
9411     *)
9412       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9413         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9414         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9415       else
9416         ld_shlibs=no
9417       fi
9418       ;;
9419     esac
9420
9421     if test "$ld_shlibs" = no; then
9422       runpath_var=
9423       hardcode_libdir_flag_spec=
9424       export_dynamic_flag_spec=
9425       whole_archive_flag_spec=
9426     fi
9427   else
9428     # PORTME fill in a description of your system's linker (not GNU ld)
9429     case $host_os in
9430     aix3*)
9431       allow_undefined_flag=unsupported
9432       always_export_symbols=yes
9433       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'
9434       # Note: this linker hardcodes the directories in LIBPATH if there
9435       # are no directories specified by -L.
9436       hardcode_minus_L=yes
9437       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9438         # Neither direct hardcoding nor static linking is supported with a
9439         # broken collect2.
9440         hardcode_direct=unsupported
9441       fi
9442       ;;
9443
9444     aix[4-9]*)
9445       if test "$host_cpu" = ia64; then
9446         # On IA64, the linker does run time linking by default, so we don't
9447         # have to do anything special.
9448         aix_use_runtimelinking=no
9449         exp_sym_flag='-Bexport'
9450         no_entry_flag=""
9451       else
9452         # If we're using GNU nm, then we don't want the "-C" option.
9453         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9454         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9455           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'
9456         else
9457           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'
9458         fi
9459         aix_use_runtimelinking=no
9460
9461         # Test if we are trying to use run time linking or normal
9462         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9463         # need to do runtime linking.
9464         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9465           for ld_flag in $LDFLAGS; do
9466           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9467             aix_use_runtimelinking=yes
9468             break
9469           fi
9470           done
9471           ;;
9472         esac
9473
9474         exp_sym_flag='-bexport'
9475         no_entry_flag='-bnoentry'
9476       fi
9477
9478       # When large executables or shared objects are built, AIX ld can
9479       # have problems creating the table of contents.  If linking a library
9480       # or program results in "error TOC overflow" add -mminimal-toc to
9481       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9482       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9483
9484       archive_cmds=''
9485       hardcode_direct=yes
9486       hardcode_direct_absolute=yes
9487       hardcode_libdir_separator=':'
9488       link_all_deplibs=yes
9489       file_list_spec='${wl}-f,'
9490
9491       if test "$GCC" = yes; then
9492         case $host_os in aix4.[012]|aix4.[012].*)
9493         # We only want to do this on AIX 4.2 and lower, the check
9494         # below for broken collect2 doesn't work under 4.3+
9495           collect2name=`${CC} -print-prog-name=collect2`
9496           if test -f "$collect2name" &&
9497            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9498           then
9499           # We have reworked collect2
9500           :
9501           else
9502           # We have old collect2
9503           hardcode_direct=unsupported
9504           # It fails to find uninstalled libraries when the uninstalled
9505           # path is not listed in the libpath.  Setting hardcode_minus_L
9506           # to unsupported forces relinking
9507           hardcode_minus_L=yes
9508           hardcode_libdir_flag_spec='-L$libdir'
9509           hardcode_libdir_separator=
9510           fi
9511           ;;
9512         esac
9513         shared_flag='-shared'
9514         if test "$aix_use_runtimelinking" = yes; then
9515           shared_flag="$shared_flag "'${wl}-G'
9516         fi
9517       else
9518         # not using gcc
9519         if test "$host_cpu" = ia64; then
9520         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9521         # chokes on -Wl,-G. The following line is correct:
9522           shared_flag='-G'
9523         else
9524           if test "$aix_use_runtimelinking" = yes; then
9525             shared_flag='${wl}-G'
9526           else
9527             shared_flag='${wl}-bM:SRE'
9528           fi
9529         fi
9530       fi
9531
9532       # It seems that -bexpall does not export symbols beginning with
9533       # underscore (_), so it is better to generate a list of symbols to export.
9534       always_export_symbols=yes
9535       if test "$aix_use_runtimelinking" = yes; then
9536         # Warning - without using the other runtime loading flags (-brtl),
9537         # -berok will link without error, but may produce a broken library.
9538         allow_undefined_flag='-berok'
9539         # Determine the default libpath from the value encoded in an
9540         # empty executable.
9541         cat >conftest.$ac_ext <<_ACEOF
9542 /* confdefs.h.  */
9543 _ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h.  */
9547
9548 int
9549 main ()
9550 {
9551
9552   ;
9553   return 0;
9554 }
9555 _ACEOF
9556 rm -f conftest.$ac_objext conftest$ac_exeext
9557 if { (ac_try="$ac_link"
9558 case "(($ac_try" in
9559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560   *) ac_try_echo=$ac_try;;
9561 esac
9562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563   (eval "$ac_link") 2>conftest.er1
9564   ac_status=$?
9565   grep -v '^ *+' conftest.er1 >conftest.err
9566   rm -f conftest.er1
9567   cat conftest.err >&5
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); } && {
9570          test -z "$ac_c_werror_flag" ||
9571          test ! -s conftest.err
9572        } && test -s conftest$ac_exeext &&
9573        $as_test_x conftest$ac_exeext; then
9574
9575 lt_aix_libpath_sed='
9576     /Import File Strings/,/^$/ {
9577         /^0/ {
9578             s/^0  *\(.*\)$/\1/
9579             p
9580         }
9581     }'
9582 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9583 # Check for a 64-bit object if we didn't find anything.
9584 if test -z "$aix_libpath"; then
9585   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9586 fi
9587 else
9588   echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9590
9591
9592 fi
9593
9594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9595       conftest$ac_exeext conftest.$ac_ext
9596 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9597
9598         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9599         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"
9600       else
9601         if test "$host_cpu" = ia64; then
9602           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9603           allow_undefined_flag="-z nodefs"
9604           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"
9605         else
9606          # Determine the default libpath from the value encoded in an
9607          # empty executable.
9608          cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h.  */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h.  */
9614
9615 int
9616 main ()
9617 {
9618
9619   ;
9620   return 0;
9621 }
9622 _ACEOF
9623 rm -f conftest.$ac_objext conftest$ac_exeext
9624 if { (ac_try="$ac_link"
9625 case "(($ac_try" in
9626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627   *) ac_try_echo=$ac_try;;
9628 esac
9629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9630   (eval "$ac_link") 2>conftest.er1
9631   ac_status=$?
9632   grep -v '^ *+' conftest.er1 >conftest.err
9633   rm -f conftest.er1
9634   cat conftest.err >&5
9635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636   (exit $ac_status); } && {
9637          test -z "$ac_c_werror_flag" ||
9638          test ! -s conftest.err
9639        } && test -s conftest$ac_exeext &&
9640        $as_test_x conftest$ac_exeext; then
9641
9642 lt_aix_libpath_sed='
9643     /Import File Strings/,/^$/ {
9644         /^0/ {
9645             s/^0  *\(.*\)$/\1/
9646             p
9647         }
9648     }'
9649 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9650 # Check for a 64-bit object if we didn't find anything.
9651 if test -z "$aix_libpath"; then
9652   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9653 fi
9654 else
9655   echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9657
9658
9659 fi
9660
9661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9662       conftest$ac_exeext conftest.$ac_ext
9663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9664
9665          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9666           # Warning - without using the other run time loading flags,
9667           # -berok will link without error, but may produce a broken library.
9668           no_undefined_flag=' ${wl}-bernotok'
9669           allow_undefined_flag=' ${wl}-berok'
9670           # Exported symbols can be pulled into shared objects from archives
9671           whole_archive_flag_spec='$convenience'
9672           archive_cmds_need_lc=yes
9673           # This is similar to how AIX traditionally builds its shared libraries.
9674           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'
9675         fi
9676       fi
9677       ;;
9678
9679     amigaos*)
9680       case $host_cpu in
9681       powerpc)
9682             # see comment about AmigaOS4 .so support
9683             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9684             archive_expsym_cmds=''
9685         ;;
9686       m68k)
9687             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)'
9688             hardcode_libdir_flag_spec='-L$libdir'
9689             hardcode_minus_L=yes
9690         ;;
9691       esac
9692       ;;
9693
9694     bsdi[45]*)
9695       export_dynamic_flag_spec=-rdynamic
9696       ;;
9697
9698     cygwin* | mingw* | pw32*)
9699       # When not using gcc, we currently assume that we are using
9700       # Microsoft Visual C++.
9701       # hardcode_libdir_flag_spec is actually meaningless, as there is
9702       # no search path for DLLs.
9703       hardcode_libdir_flag_spec=' '
9704       allow_undefined_flag=unsupported
9705       # Tell ltmain to make .lib files, not .a files.
9706       libext=lib
9707       # Tell ltmain to make .dll files, not .so files.
9708       shrext_cmds=".dll"
9709       # FIXME: Setting linknames here is a bad hack.
9710       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9711       # The linker will automatically build a .lib file if we build a DLL.
9712       old_archive_from_new_cmds='true'
9713       # FIXME: Should let the user specify the lib program.
9714       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9715       fix_srcfile_path='`cygpath -w "$srcfile"`'
9716       enable_shared_with_static_runtimes=yes
9717       ;;
9718
9719     darwin* | rhapsody*)
9720
9721
9722   archive_cmds_need_lc=no
9723   hardcode_direct=no
9724   hardcode_automatic=yes
9725   hardcode_shlibpath_var=unsupported
9726   whole_archive_flag_spec=''
9727   link_all_deplibs=yes
9728   allow_undefined_flag="$_lt_dar_allow_undefined"
9729   if test "$GCC" = "yes"; then
9730     output_verbose_link_cmd=echo
9731     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9732     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9733     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}"
9734     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}"
9735
9736   else
9737   ld_shlibs=no
9738   fi
9739
9740       ;;
9741
9742     dgux*)
9743       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744       hardcode_libdir_flag_spec='-L$libdir'
9745       hardcode_shlibpath_var=no
9746       ;;
9747
9748     freebsd1*)
9749       ld_shlibs=no
9750       ;;
9751
9752     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9753     # support.  Future versions do this automatically, but an explicit c++rt0.o
9754     # does not break anything, and helps significantly (at the cost of a little
9755     # extra space).
9756     freebsd2.2*)
9757       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9758       hardcode_libdir_flag_spec='-R$libdir'
9759       hardcode_direct=yes
9760       hardcode_shlibpath_var=no
9761       ;;
9762
9763     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9764     freebsd2*)
9765       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9766       hardcode_direct=yes
9767       hardcode_minus_L=yes
9768       hardcode_shlibpath_var=no
9769       ;;
9770
9771     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9772     freebsd* | dragonfly*)
9773       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9774       hardcode_libdir_flag_spec='-R$libdir'
9775       hardcode_direct=yes
9776       hardcode_shlibpath_var=no
9777       ;;
9778
9779     hpux9*)
9780       if test "$GCC" = yes; then
9781         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'
9782       else
9783         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'
9784       fi
9785       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9786       hardcode_libdir_separator=:
9787       hardcode_direct=yes
9788
9789       # hardcode_minus_L: Not really in the search PATH,
9790       # but as the default location of the library.
9791       hardcode_minus_L=yes
9792       export_dynamic_flag_spec='${wl}-E'
9793       ;;
9794
9795     hpux10*)
9796       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9797         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9798       else
9799         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9800       fi
9801       if test "$with_gnu_ld" = no; then
9802         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9803         hardcode_libdir_flag_spec_ld='+b $libdir'
9804         hardcode_libdir_separator=:
9805         hardcode_direct=yes
9806         hardcode_direct_absolute=yes
9807         export_dynamic_flag_spec='${wl}-E'
9808         # hardcode_minus_L: Not really in the search PATH,
9809         # but as the default location of the library.
9810         hardcode_minus_L=yes
9811       fi
9812       ;;
9813
9814     hpux11*)
9815       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9816         case $host_cpu in
9817         hppa*64*)
9818           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9819           ;;
9820         ia64*)
9821           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9822           ;;
9823         *)
9824           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9825           ;;
9826         esac
9827       else
9828         case $host_cpu in
9829         hppa*64*)
9830           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9831           ;;
9832         ia64*)
9833           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9834           ;;
9835         *)
9836           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9837           ;;
9838         esac
9839       fi
9840       if test "$with_gnu_ld" = no; then
9841         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9842         hardcode_libdir_separator=:
9843
9844         case $host_cpu in
9845         hppa*64*|ia64*)
9846           hardcode_direct=no
9847           hardcode_shlibpath_var=no
9848           ;;
9849         *)
9850           hardcode_direct=yes
9851           hardcode_direct_absolute=yes
9852           export_dynamic_flag_spec='${wl}-E'
9853
9854           # hardcode_minus_L: Not really in the search PATH,
9855           # but as the default location of the library.
9856           hardcode_minus_L=yes
9857           ;;
9858         esac
9859       fi
9860       ;;
9861
9862     irix5* | irix6* | nonstopux*)
9863       if test "$GCC" = yes; then
9864         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'
9865         # Try to use the -exported_symbol ld option, if it does not
9866         # work, assume that -exports_file does not work either and
9867         # implicitly export all symbols.
9868         save_LDFLAGS="$LDFLAGS"
9869         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9870         cat >conftest.$ac_ext <<_ACEOF
9871 int foo(void) {}
9872 _ACEOF
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (ac_try="$ac_link"
9875 case "(($ac_try" in
9876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877   *) ac_try_echo=$ac_try;;
9878 esac
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880   (eval "$ac_link") 2>conftest.er1
9881   ac_status=$?
9882   grep -v '^ *+' conftest.er1 >conftest.err
9883   rm -f conftest.er1
9884   cat conftest.err >&5
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); } && {
9887          test -z "$ac_c_werror_flag" ||
9888          test ! -s conftest.err
9889        } && test -s conftest$ac_exeext &&
9890        $as_test_x conftest$ac_exeext; then
9891   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'
9892
9893 else
9894   echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9896
9897
9898 fi
9899
9900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9901       conftest$ac_exeext conftest.$ac_ext
9902         LDFLAGS="$save_LDFLAGS"
9903       else
9904         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'
9905         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'
9906       fi
9907       archive_cmds_need_lc='no'
9908       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9909       hardcode_libdir_separator=:
9910       inherit_rpath=yes
9911       link_all_deplibs=yes
9912       ;;
9913
9914     netbsd*)
9915       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9916         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9917       else
9918         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9919       fi
9920       hardcode_libdir_flag_spec='-R$libdir'
9921       hardcode_direct=yes
9922       hardcode_shlibpath_var=no
9923       ;;
9924
9925     newsos6)
9926       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9927       hardcode_direct=yes
9928       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9929       hardcode_libdir_separator=:
9930       hardcode_shlibpath_var=no
9931       ;;
9932
9933     *nto* | *qnx*)
9934       ;;
9935
9936     openbsd*)
9937       if test -f /usr/libexec/ld.so; then
9938         hardcode_direct=yes
9939         hardcode_shlibpath_var=no
9940         hardcode_direct_absolute=yes
9941         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9942           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9943           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9944           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9945           export_dynamic_flag_spec='${wl}-E'
9946         else
9947           case $host_os in
9948            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9949              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9950              hardcode_libdir_flag_spec='-R$libdir'
9951              ;;
9952            *)
9953              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9954              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9955              ;;
9956           esac
9957         fi
9958       else
9959         ld_shlibs=no
9960       fi
9961       ;;
9962
9963     os2*)
9964       hardcode_libdir_flag_spec='-L$libdir'
9965       hardcode_minus_L=yes
9966       allow_undefined_flag=unsupported
9967       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'
9968       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9969       ;;
9970
9971     osf3*)
9972       if test "$GCC" = yes; then
9973         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9974         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'
9975       else
9976         allow_undefined_flag=' -expect_unresolved \*'
9977         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'
9978       fi
9979       archive_cmds_need_lc='no'
9980       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9981       hardcode_libdir_separator=:
9982       ;;
9983
9984     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9985       if test "$GCC" = yes; then
9986         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9987         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'
9988         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9989       else
9990         allow_undefined_flag=' -expect_unresolved \*'
9991         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'
9992         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~
9993         $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'
9994
9995         # Both c and cxx compiler support -rpath directly
9996         hardcode_libdir_flag_spec='-rpath $libdir'
9997       fi
9998       archive_cmds_need_lc='no'
9999       hardcode_libdir_separator=:
10000       ;;
10001
10002     solaris*)
10003       no_undefined_flag=' -z defs'
10004       if test "$GCC" = yes; then
10005         wlarc='${wl}'
10006         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10007         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10008           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10009       else
10010         case `$CC -V 2>&1` in
10011         *"Compilers 5.0"*)
10012           wlarc=''
10013           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10014           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10015           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10016           ;;
10017         *)
10018           wlarc='${wl}'
10019           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10020           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10021           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10022           ;;
10023         esac
10024       fi
10025       hardcode_libdir_flag_spec='-R$libdir'
10026       hardcode_shlibpath_var=no
10027       case $host_os in
10028       solaris2.[0-5] | solaris2.[0-5].*) ;;
10029       *)
10030         # The compiler driver will combine and reorder linker options,
10031         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10032         # but is careful enough not to reorder.
10033         # Supported since Solaris 2.6 (maybe 2.5.1?)
10034         if test "$GCC" = yes; then
10035           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10036         else
10037           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10038         fi
10039         ;;
10040       esac
10041       link_all_deplibs=yes
10042       ;;
10043
10044     sunos4*)
10045       if test "x$host_vendor" = xsequent; then
10046         # Use $CC to link under sequent, because it throws in some extra .o
10047         # files that make .init and .fini sections work.
10048         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10049       else
10050         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10051       fi
10052       hardcode_libdir_flag_spec='-L$libdir'
10053       hardcode_direct=yes
10054       hardcode_minus_L=yes
10055       hardcode_shlibpath_var=no
10056       ;;
10057
10058     sysv4)
10059       case $host_vendor in
10060         sni)
10061           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10062           hardcode_direct=yes # is this really true???
10063         ;;
10064         siemens)
10065           ## LD is ld it makes a PLAMLIB
10066           ## CC just makes a GrossModule.
10067           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10068           reload_cmds='$CC -r -o $output$reload_objs'
10069           hardcode_direct=no
10070         ;;
10071         motorola)
10072           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10073           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10074         ;;
10075       esac
10076       runpath_var='LD_RUN_PATH'
10077       hardcode_shlibpath_var=no
10078       ;;
10079
10080     sysv4.3*)
10081       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10082       hardcode_shlibpath_var=no
10083       export_dynamic_flag_spec='-Bexport'
10084       ;;
10085
10086     sysv4*MP*)
10087       if test -d /usr/nec; then
10088         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10089         hardcode_shlibpath_var=no
10090         runpath_var=LD_RUN_PATH
10091         hardcode_runpath_var=yes
10092         ld_shlibs=yes
10093       fi
10094       ;;
10095
10096     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10097       no_undefined_flag='${wl}-z,text'
10098       archive_cmds_need_lc=no
10099       hardcode_shlibpath_var=no
10100       runpath_var='LD_RUN_PATH'
10101
10102       if test "$GCC" = yes; then
10103         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10104         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10105       else
10106         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10108       fi
10109       ;;
10110
10111     sysv5* | sco3.2v5* | sco5v6*)
10112       # Note: We can NOT use -z defs as we might desire, because we do not
10113       # link with -lc, and that would cause any symbols used from libc to
10114       # always be unresolved, which means just about no library would
10115       # ever link correctly.  If we're not using GNU ld we use -z text
10116       # though, which does catch some bad symbols but isn't as heavy-handed
10117       # as -z defs.
10118       no_undefined_flag='${wl}-z,text'
10119       allow_undefined_flag='${wl}-z,nodefs'
10120       archive_cmds_need_lc=no
10121       hardcode_shlibpath_var=no
10122       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10123       hardcode_libdir_separator=':'
10124       link_all_deplibs=yes
10125       export_dynamic_flag_spec='${wl}-Bexport'
10126       runpath_var='LD_RUN_PATH'
10127
10128       if test "$GCC" = yes; then
10129         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10130         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10131       else
10132         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10133         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10134       fi
10135       ;;
10136
10137     uts4*)
10138       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10139       hardcode_libdir_flag_spec='-L$libdir'
10140       hardcode_shlibpath_var=no
10141       ;;
10142
10143     *)
10144       ld_shlibs=no
10145       ;;
10146     esac
10147
10148     if test x$host_vendor = xsni; then
10149       case $host in
10150       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10151         export_dynamic_flag_spec='${wl}-Blargedynsym'
10152         ;;
10153       esac
10154     fi
10155   fi
10156
10157 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10158 echo "${ECHO_T}$ld_shlibs" >&6; }
10159 test "$ld_shlibs" = no && can_build_shared=no
10160
10161 with_gnu_ld=$with_gnu_ld
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177 #
10178 # Do we need to explicitly link libc?
10179 #
10180 case "x$archive_cmds_need_lc" in
10181 x|xyes)
10182   # Assume -lc should be added
10183   archive_cmds_need_lc=yes
10184
10185   if test "$enable_shared" = yes && test "$GCC" = yes; then
10186     case $archive_cmds in
10187     *'~'*)
10188       # FIXME: we may have to deal with multi-command sequences.
10189       ;;
10190     '$CC '*)
10191       # Test whether the compiler implicitly links with -lc since on some
10192       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10193       # to ld, don't add -lc before -lgcc.
10194       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10195 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10196       $RM conftest*
10197       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10198
10199       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10200   (eval $ac_compile) 2>&5
10201   ac_status=$?
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); } 2>conftest.err; then
10204         soname=conftest
10205         lib=conftest
10206         libobjs=conftest.$ac_objext
10207         deplibs=
10208         wl=$lt_prog_compiler_wl
10209         pic_flag=$lt_prog_compiler_pic
10210         compiler_flags=-v
10211         linker_flags=-v
10212         verstring=
10213         output_objdir=.
10214         libname=conftest
10215         lt_save_allow_undefined_flag=$allow_undefined_flag
10216         allow_undefined_flag=
10217         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10218   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); }
10222         then
10223           archive_cmds_need_lc=no
10224         else
10225           archive_cmds_need_lc=yes
10226         fi
10227         allow_undefined_flag=$lt_save_allow_undefined_flag
10228       else
10229         cat conftest.err 1>&5
10230       fi
10231       $RM conftest*
10232       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10233 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10234       ;;
10235     esac
10236   fi
10237   ;;
10238 esac
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10397 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10398
10399 if test "$GCC" = yes; then
10400   case $host_os in
10401     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10402     *) lt_awk_arg="/^libraries:/" ;;
10403   esac
10404   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10405   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10406     # if the path contains ";" then we assume it to be the separator
10407     # otherwise default to the standard path separator (i.e. ":") - it is
10408     # assumed that no part of a normal pathname contains ";" but that should
10409     # okay in the real world where ";" in dirpaths is itself problematic.
10410     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10411   else
10412     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10413   fi
10414   # Ok, now we have the path, separated by spaces, we can step through it
10415   # and add multilib dir if necessary.
10416   lt_tmp_lt_search_path_spec=
10417   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10418   for lt_sys_path in $lt_search_path_spec; do
10419     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10420       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10421     else
10422       test -d "$lt_sys_path" && \
10423         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10424     fi
10425   done
10426   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10427 BEGIN {RS=" "; FS="/|\n";} {
10428   lt_foo="";
10429   lt_count=0;
10430   for (lt_i = NF; lt_i > 0; lt_i--) {
10431     if ($lt_i != "" && $lt_i != ".") {
10432       if ($lt_i == "..") {
10433         lt_count++;
10434       } else {
10435         if (lt_count == 0) {
10436           lt_foo="/" $lt_i lt_foo;
10437         } else {
10438           lt_count--;
10439         }
10440       }
10441     }
10442   }
10443   if (lt_foo != "") { lt_freq[lt_foo]++; }
10444   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10445 }'`
10446   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10447 else
10448   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10449 fi
10450 library_names_spec=
10451 libname_spec='lib$name'
10452 soname_spec=
10453 shrext_cmds=".so"
10454 postinstall_cmds=
10455 postuninstall_cmds=
10456 finish_cmds=
10457 finish_eval=
10458 shlibpath_var=
10459 shlibpath_overrides_runpath=unknown
10460 version_type=none
10461 dynamic_linker="$host_os ld.so"
10462 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10463 need_lib_prefix=unknown
10464 hardcode_into_libs=no
10465
10466 # when you set need_version to no, make sure it does not cause -set_version
10467 # flags to be left without arguments
10468 need_version=unknown
10469
10470 case $host_os in
10471 aix3*)
10472   version_type=linux
10473   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10474   shlibpath_var=LIBPATH
10475
10476   # AIX 3 has no versioning support, so we append a major version to the name.
10477   soname_spec='${libname}${release}${shared_ext}$major'
10478   ;;
10479
10480 aix[4-9]*)
10481   version_type=linux
10482   need_lib_prefix=no
10483   need_version=no
10484   hardcode_into_libs=yes
10485   if test "$host_cpu" = ia64; then
10486     # AIX 5 supports IA64
10487     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10488     shlibpath_var=LD_LIBRARY_PATH
10489   else
10490     # With GCC up to 2.95.x, collect2 would create an import file
10491     # for dependence libraries.  The import file would start with
10492     # the line `#! .'.  This would cause the generated library to
10493     # depend on `.', always an invalid library.  This was fixed in
10494     # development snapshots of GCC prior to 3.0.
10495     case $host_os in
10496       aix4 | aix4.[01] | aix4.[01].*)
10497       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10498            echo ' yes '
10499            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10500         :
10501       else
10502         can_build_shared=no
10503       fi
10504       ;;
10505     esac
10506     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10507     # soname into executable. Probably we can add versioning support to
10508     # collect2, so additional links can be useful in future.
10509     if test "$aix_use_runtimelinking" = yes; then
10510       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10511       # instead of lib<name>.a to let people know that these are not
10512       # typical AIX shared libraries.
10513       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514     else
10515       # We preserve .a as extension for shared libraries through AIX4.2
10516       # and later when we are not doing run time linking.
10517       library_names_spec='${libname}${release}.a $libname.a'
10518       soname_spec='${libname}${release}${shared_ext}$major'
10519     fi
10520     shlibpath_var=LIBPATH
10521   fi
10522   ;;
10523
10524 amigaos*)
10525   case $host_cpu in
10526   powerpc)
10527     # Since July 2007 AmigaOS4 officially supports .so libraries.
10528     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10529     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10530     ;;
10531   m68k)
10532     library_names_spec='$libname.ixlibrary $libname.a'
10533     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10534     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'
10535     ;;
10536   esac
10537   ;;
10538
10539 beos*)
10540   library_names_spec='${libname}${shared_ext}'
10541   dynamic_linker="$host_os ld.so"
10542   shlibpath_var=LIBRARY_PATH
10543   ;;
10544
10545 bsdi[45]*)
10546   version_type=linux
10547   need_version=no
10548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10549   soname_spec='${libname}${release}${shared_ext}$major'
10550   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10551   shlibpath_var=LD_LIBRARY_PATH
10552   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10553   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10554   # the default ld.so.conf also contains /usr/contrib/lib and
10555   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10556   # libtool to hard-code these into programs
10557   ;;
10558
10559 cygwin* | mingw* | pw32*)
10560   version_type=windows
10561   shrext_cmds=".dll"
10562   need_version=no
10563   need_lib_prefix=no
10564
10565   case $GCC,$host_os in
10566   yes,cygwin* | yes,mingw* | yes,pw32*)
10567     library_names_spec='$libname.dll.a'
10568     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10569     postinstall_cmds='base_file=`basename \${file}`~
10570       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10571       dldir=$destdir/`dirname \$dlpath`~
10572       test -d \$dldir || mkdir -p \$dldir~
10573       $install_prog $dir/$dlname \$dldir/$dlname~
10574       chmod a+x \$dldir/$dlname~
10575       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10576         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10577       fi'
10578     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10579       dlpath=$dir/\$dldll~
10580        $RM \$dlpath'
10581     shlibpath_overrides_runpath=yes
10582
10583     case $host_os in
10584     cygwin*)
10585       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10586       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10587       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10588       ;;
10589     mingw*)
10590       # MinGW DLLs use traditional 'lib' prefix
10591       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10592       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10593       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10594         # It is most probably a Windows format PATH printed by
10595         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10596         # path with ; separators, and with drive letters. We can handle the
10597         # drive letters (cygwin fileutils understands them), so leave them,
10598         # especially as we might pass files found there to a mingw objdump,
10599         # which wouldn't understand a cygwinified path. Ahh.
10600         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10601       else
10602         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10603       fi
10604       ;;
10605     pw32*)
10606       # pw32 DLLs use 'pw' prefix rather than 'lib'
10607       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10608       ;;
10609     esac
10610     ;;
10611
10612   *)
10613     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10614     ;;
10615   esac
10616   dynamic_linker='Win32 ld.exe'
10617   # FIXME: first we should search . and the directory the executable is in
10618   shlibpath_var=PATH
10619   ;;
10620
10621 darwin* | rhapsody*)
10622   dynamic_linker="$host_os dyld"
10623   version_type=darwin
10624   need_lib_prefix=no
10625   need_version=no
10626   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10627   soname_spec='${libname}${release}${major}$shared_ext'
10628   shlibpath_overrides_runpath=yes
10629   shlibpath_var=DYLD_LIBRARY_PATH
10630   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10631
10632   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10633   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10634   ;;
10635
10636 dgux*)
10637   version_type=linux
10638   need_lib_prefix=no
10639   need_version=no
10640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10641   soname_spec='${libname}${release}${shared_ext}$major'
10642   shlibpath_var=LD_LIBRARY_PATH
10643   ;;
10644
10645 freebsd1*)
10646   dynamic_linker=no
10647   ;;
10648
10649 freebsd* | dragonfly*)
10650   # DragonFly does not have aout.  When/if they implement a new
10651   # versioning mechanism, adjust this.
10652   if test -x /usr/bin/objformat; then
10653     objformat=`/usr/bin/objformat`
10654   else
10655     case $host_os in
10656     freebsd[123]*) objformat=aout ;;
10657     *) objformat=elf ;;
10658     esac
10659   fi
10660   version_type=freebsd-$objformat
10661   case $version_type in
10662     freebsd-elf*)
10663       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10664       need_version=no
10665       need_lib_prefix=no
10666       ;;
10667     freebsd-*)
10668       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10669       need_version=yes
10670       ;;
10671   esac
10672   shlibpath_var=LD_LIBRARY_PATH
10673   case $host_os in
10674   freebsd2*)
10675     shlibpath_overrides_runpath=yes
10676     ;;
10677   freebsd3.[01]* | freebsdelf3.[01]*)
10678     shlibpath_overrides_runpath=yes
10679     hardcode_into_libs=yes
10680     ;;
10681   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10682   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10683     shlibpath_overrides_runpath=no
10684     hardcode_into_libs=yes
10685     ;;
10686   *) # from 4.6 on, and DragonFly
10687     shlibpath_overrides_runpath=yes
10688     hardcode_into_libs=yes
10689     ;;
10690   esac
10691   ;;
10692
10693 gnu*)
10694   version_type=linux
10695   need_lib_prefix=no
10696   need_version=no
10697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10698   soname_spec='${libname}${release}${shared_ext}$major'
10699   shlibpath_var=LD_LIBRARY_PATH
10700   hardcode_into_libs=yes
10701   ;;
10702
10703 hpux9* | hpux10* | hpux11*)
10704   # Give a soname corresponding to the major version so that dld.sl refuses to
10705   # link against other versions.
10706   version_type=sunos
10707   need_lib_prefix=no
10708   need_version=no
10709   case $host_cpu in
10710   ia64*)
10711     shrext_cmds='.so'
10712     hardcode_into_libs=yes
10713     dynamic_linker="$host_os dld.so"
10714     shlibpath_var=LD_LIBRARY_PATH
10715     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10716     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717     soname_spec='${libname}${release}${shared_ext}$major'
10718     if test "X$HPUX_IA64_MODE" = X32; then
10719       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10720     else
10721       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10722     fi
10723     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10724     ;;
10725   hppa*64*)
10726     shrext_cmds='.sl'
10727     hardcode_into_libs=yes
10728     dynamic_linker="$host_os dld.sl"
10729     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10730     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732     soname_spec='${libname}${release}${shared_ext}$major'
10733     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10734     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10735     ;;
10736   *)
10737     shrext_cmds='.sl'
10738     dynamic_linker="$host_os dld.sl"
10739     shlibpath_var=SHLIB_PATH
10740     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10741     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10742     soname_spec='${libname}${release}${shared_ext}$major'
10743     ;;
10744   esac
10745   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10746   postinstall_cmds='chmod 555 $lib'
10747   ;;
10748
10749 interix[3-9]*)
10750   version_type=linux
10751   need_lib_prefix=no
10752   need_version=no
10753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10754   soname_spec='${libname}${release}${shared_ext}$major'
10755   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10756   shlibpath_var=LD_LIBRARY_PATH
10757   shlibpath_overrides_runpath=no
10758   hardcode_into_libs=yes
10759   ;;
10760
10761 irix5* | irix6* | nonstopux*)
10762   case $host_os in
10763     nonstopux*) version_type=nonstopux ;;
10764     *)
10765         if test "$lt_cv_prog_gnu_ld" = yes; then
10766                 version_type=linux
10767         else
10768                 version_type=irix
10769         fi ;;
10770   esac
10771   need_lib_prefix=no
10772   need_version=no
10773   soname_spec='${libname}${release}${shared_ext}$major'
10774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10775   case $host_os in
10776   irix5* | nonstopux*)
10777     libsuff= shlibsuff=
10778     ;;
10779   *)
10780     case $LD in # libtool.m4 will add one of these switches to LD
10781     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10782       libsuff= shlibsuff= libmagic=32-bit;;
10783     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10784       libsuff=32 shlibsuff=N32 libmagic=N32;;
10785     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10786       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10787     *) libsuff= shlibsuff= libmagic=never-match;;
10788     esac
10789     ;;
10790   esac
10791   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10792   shlibpath_overrides_runpath=no
10793   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10794   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10795   hardcode_into_libs=yes
10796   ;;
10797
10798 # No shared lib support for Linux oldld, aout, or coff.
10799 linux*oldld* | linux*aout* | linux*coff*)
10800   dynamic_linker=no
10801   ;;
10802
10803 # This must be Linux ELF.
10804 linux* | k*bsd*-gnu)
10805   version_type=linux
10806   need_lib_prefix=no
10807   need_version=no
10808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10809   soname_spec='${libname}${release}${shared_ext}$major'
10810   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10811   shlibpath_var=LD_LIBRARY_PATH
10812   shlibpath_overrides_runpath=no
10813   # Some binutils ld are patched to set DT_RUNPATH
10814   save_LDFLAGS=$LDFLAGS
10815   save_libdir=$libdir
10816   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10817        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10818   cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h.  */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h.  */
10824
10825 int
10826 main ()
10827 {
10828
10829   ;
10830   return 0;
10831 }
10832 _ACEOF
10833 rm -f conftest.$ac_objext conftest$ac_exeext
10834 if { (ac_try="$ac_link"
10835 case "(($ac_try" in
10836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837   *) ac_try_echo=$ac_try;;
10838 esac
10839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10840   (eval "$ac_link") 2>conftest.er1
10841   ac_status=$?
10842   grep -v '^ *+' conftest.er1 >conftest.err
10843   rm -f conftest.er1
10844   cat conftest.err >&5
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); } && {
10847          test -z "$ac_c_werror_flag" ||
10848          test ! -s conftest.err
10849        } && test -s conftest$ac_exeext &&
10850        $as_test_x conftest$ac_exeext; then
10851   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10852   shlibpath_overrides_runpath=yes
10853 fi
10854
10855 else
10856   echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10858
10859
10860 fi
10861
10862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10863       conftest$ac_exeext conftest.$ac_ext
10864   LDFLAGS=$save_LDFLAGS
10865   libdir=$save_libdir
10866
10867   # This implies no fast_install, which is unacceptable.
10868   # Some rework will be needed to allow for fast_install
10869   # before this can be enabled.
10870   hardcode_into_libs=yes
10871
10872   # Append ld.so.conf contents to the search path
10873   if test -f /etc/ld.so.conf; then
10874     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' ' '`
10875     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10876   fi
10877
10878   # We used to test for /lib/ld.so.1 and disable shared libraries on
10879   # powerpc, because MkLinux only supported shared libraries with the
10880   # GNU dynamic linker.  Since this was broken with cross compilers,
10881   # most powerpc-linux boxes support dynamic linking these days and
10882   # people can always --disable-shared, the test was removed, and we
10883   # assume the GNU/Linux dynamic linker is in use.
10884   dynamic_linker='GNU/Linux ld.so'
10885   ;;
10886
10887 netbsd*)
10888   version_type=sunos
10889   need_lib_prefix=no
10890   need_version=no
10891   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10892     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10893     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10894     dynamic_linker='NetBSD (a.out) ld.so'
10895   else
10896     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10897     soname_spec='${libname}${release}${shared_ext}$major'
10898     dynamic_linker='NetBSD ld.elf_so'
10899   fi
10900   shlibpath_var=LD_LIBRARY_PATH
10901   shlibpath_overrides_runpath=yes
10902   hardcode_into_libs=yes
10903   ;;
10904
10905 newsos6)
10906   version_type=linux
10907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10908   shlibpath_var=LD_LIBRARY_PATH
10909   shlibpath_overrides_runpath=yes
10910   ;;
10911
10912 *nto* | *qnx*)
10913   version_type=qnx
10914   need_lib_prefix=no
10915   need_version=no
10916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917   soname_spec='${libname}${release}${shared_ext}$major'
10918   shlibpath_var=LD_LIBRARY_PATH
10919   shlibpath_overrides_runpath=no
10920   hardcode_into_libs=yes
10921   dynamic_linker='ldqnx.so'
10922   ;;
10923
10924 openbsd*)
10925   version_type=sunos
10926   sys_lib_dlsearch_path_spec="/usr/lib"
10927   need_lib_prefix=no
10928   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10929   case $host_os in
10930     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10931     *)                          need_version=no  ;;
10932   esac
10933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10934   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10935   shlibpath_var=LD_LIBRARY_PATH
10936   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10937     case $host_os in
10938       openbsd2.[89] | openbsd2.[89].*)
10939         shlibpath_overrides_runpath=no
10940         ;;
10941       *)
10942         shlibpath_overrides_runpath=yes
10943         ;;
10944       esac
10945   else
10946     shlibpath_overrides_runpath=yes
10947   fi
10948   ;;
10949
10950 os2*)
10951   libname_spec='$name'
10952   shrext_cmds=".dll"
10953   need_lib_prefix=no
10954   library_names_spec='$libname${shared_ext} $libname.a'
10955   dynamic_linker='OS/2 ld.exe'
10956   shlibpath_var=LIBPATH
10957   ;;
10958
10959 osf3* | osf4* | osf5*)
10960   version_type=osf
10961   need_lib_prefix=no
10962   need_version=no
10963   soname_spec='${libname}${release}${shared_ext}$major'
10964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10965   shlibpath_var=LD_LIBRARY_PATH
10966   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10967   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10968   ;;
10969
10970 rdos*)
10971   dynamic_linker=no
10972   ;;
10973
10974 solaris*)
10975   version_type=linux
10976   need_lib_prefix=no
10977   need_version=no
10978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979   soname_spec='${libname}${release}${shared_ext}$major'
10980   shlibpath_var=LD_LIBRARY_PATH
10981   shlibpath_overrides_runpath=yes
10982   hardcode_into_libs=yes
10983   # ldd complains unless libraries are executable
10984   postinstall_cmds='chmod +x $lib'
10985   ;;
10986
10987 sunos4*)
10988   version_type=sunos
10989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10990   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10991   shlibpath_var=LD_LIBRARY_PATH
10992   shlibpath_overrides_runpath=yes
10993   if test "$with_gnu_ld" = yes; then
10994     need_lib_prefix=no
10995   fi
10996   need_version=yes
10997   ;;
10998
10999 sysv4 | sysv4.3*)
11000   version_type=linux
11001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002   soname_spec='${libname}${release}${shared_ext}$major'
11003   shlibpath_var=LD_LIBRARY_PATH
11004   case $host_vendor in
11005     sni)
11006       shlibpath_overrides_runpath=no
11007       need_lib_prefix=no
11008       runpath_var=LD_RUN_PATH
11009       ;;
11010     siemens)
11011       need_lib_prefix=no
11012       ;;
11013     motorola)
11014       need_lib_prefix=no
11015       need_version=no
11016       shlibpath_overrides_runpath=no
11017       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11018       ;;
11019   esac
11020   ;;
11021
11022 sysv4*MP*)
11023   if test -d /usr/nec ;then
11024     version_type=linux
11025     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11026     soname_spec='$libname${shared_ext}.$major'
11027     shlibpath_var=LD_LIBRARY_PATH
11028   fi
11029   ;;
11030
11031 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11032   version_type=freebsd-elf
11033   need_lib_prefix=no
11034   need_version=no
11035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11036   soname_spec='${libname}${release}${shared_ext}$major'
11037   shlibpath_var=LD_LIBRARY_PATH
11038   shlibpath_overrides_runpath=yes
11039   hardcode_into_libs=yes
11040   if test "$with_gnu_ld" = yes; then
11041     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11042   else
11043     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11044     case $host_os in
11045       sco3.2v5*)
11046         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11047         ;;
11048     esac
11049   fi
11050   sys_lib_dlsearch_path_spec='/usr/lib'
11051   ;;
11052
11053 tpf*)
11054   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11055   version_type=linux
11056   need_lib_prefix=no
11057   need_version=no
11058   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11059   shlibpath_var=LD_LIBRARY_PATH
11060   shlibpath_overrides_runpath=no
11061   hardcode_into_libs=yes
11062   ;;
11063
11064 uts4*)
11065   version_type=linux
11066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11067   soname_spec='${libname}${release}${shared_ext}$major'
11068   shlibpath_var=LD_LIBRARY_PATH
11069   ;;
11070
11071 *)
11072   dynamic_linker=no
11073   ;;
11074 esac
11075 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11076 echo "${ECHO_T}$dynamic_linker" >&6; }
11077 test "$dynamic_linker" = no && can_build_shared=no
11078
11079 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11080 if test "$GCC" = yes; then
11081   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11082 fi
11083
11084 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11085   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11086 fi
11087 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11088   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11089 fi
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11178 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11179 hardcode_action=
11180 if test -n "$hardcode_libdir_flag_spec" ||
11181    test -n "$runpath_var" ||
11182    test "X$hardcode_automatic" = "Xyes" ; then
11183
11184   # We can hardcode non-existent directories.
11185   if test "$hardcode_direct" != no &&
11186      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11187      # have to relink, otherwise we might link with an installed library
11188      # when we should be linking with a yet-to-be-installed one
11189      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11190      test "$hardcode_minus_L" != no; then
11191     # Linking always hardcodes the temporary library directory.
11192     hardcode_action=relink
11193   else
11194     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11195     hardcode_action=immediate
11196   fi
11197 else
11198   # We cannot hardcode anything, or else we can only hardcode existing
11199   # directories.
11200   hardcode_action=unsupported
11201 fi
11202 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11203 echo "${ECHO_T}$hardcode_action" >&6; }
11204
11205 if test "$hardcode_action" = relink ||
11206    test "$inherit_rpath" = yes; then
11207   # Fast installation is not supported
11208   enable_fast_install=no
11209 elif test "$shlibpath_overrides_runpath" = yes ||
11210      test "$enable_shared" = no; then
11211   # Fast installation is not necessary
11212   enable_fast_install=needless
11213 fi
11214
11215
11216
11217
11218
11219
11220   if test "x$enable_dlopen" != xyes; then
11221   enable_dlopen=unknown
11222   enable_dlopen_self=unknown
11223   enable_dlopen_self_static=unknown
11224 else
11225   lt_cv_dlopen=no
11226   lt_cv_dlopen_libs=
11227
11228   case $host_os in
11229   beos*)
11230     lt_cv_dlopen="load_add_on"
11231     lt_cv_dlopen_libs=
11232     lt_cv_dlopen_self=yes
11233     ;;
11234
11235   mingw* | pw32*)
11236     lt_cv_dlopen="LoadLibrary"
11237     lt_cv_dlopen_libs=
11238     ;;
11239
11240   cygwin*)
11241     lt_cv_dlopen="dlopen"
11242     lt_cv_dlopen_libs=
11243     ;;
11244
11245   darwin*)
11246   # if libdl is installed we need to link against it
11247     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11248 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11249 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11250   echo $ECHO_N "(cached) $ECHO_C" >&6
11251 else
11252   ac_check_lib_save_LIBS=$LIBS
11253 LIBS="-ldl  $LIBS"
11254 cat >conftest.$ac_ext <<_ACEOF
11255 /* confdefs.h.  */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h.  */
11260
11261 /* Override any GCC internal prototype to avoid an error.
11262    Use char because int might match the return type of a GCC
11263    builtin and then its argument prototype would still apply.  */
11264 #ifdef __cplusplus
11265 extern "C"
11266 #endif
11267 char dlopen ();
11268 int
11269 main ()
11270 {
11271 return dlopen ();
11272   ;
11273   return 0;
11274 }
11275 _ACEOF
11276 rm -f conftest.$ac_objext conftest$ac_exeext
11277 if { (ac_try="$ac_link"
11278 case "(($ac_try" in
11279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11280   *) ac_try_echo=$ac_try;;
11281 esac
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283   (eval "$ac_link") 2>conftest.er1
11284   ac_status=$?
11285   grep -v '^ *+' conftest.er1 >conftest.err
11286   rm -f conftest.er1
11287   cat conftest.err >&5
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); } && {
11290          test -z "$ac_c_werror_flag" ||
11291          test ! -s conftest.err
11292        } && test -s conftest$ac_exeext &&
11293        $as_test_x conftest$ac_exeext; then
11294   ac_cv_lib_dl_dlopen=yes
11295 else
11296   echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11298
11299         ac_cv_lib_dl_dlopen=no
11300 fi
11301
11302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11303       conftest$ac_exeext conftest.$ac_ext
11304 LIBS=$ac_check_lib_save_LIBS
11305 fi
11306 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11307 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11308 if test $ac_cv_lib_dl_dlopen = yes; then
11309   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11310 else
11311
11312     lt_cv_dlopen="dyld"
11313     lt_cv_dlopen_libs=
11314     lt_cv_dlopen_self=yes
11315
11316 fi
11317
11318     ;;
11319
11320   *)
11321     { echo "$as_me:$LINENO: checking for shl_load" >&5
11322 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11323 if test "${ac_cv_func_shl_load+set}" = set; then
11324   echo $ECHO_N "(cached) $ECHO_C" >&6
11325 else
11326   cat >conftest.$ac_ext <<_ACEOF
11327 /* confdefs.h.  */
11328 _ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h.  */
11332 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11334 #define shl_load innocuous_shl_load
11335
11336 /* System header to define __stub macros and hopefully few prototypes,
11337     which can conflict with char shl_load (); below.
11338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11339     <limits.h> exists even on freestanding compilers.  */
11340
11341 #ifdef __STDC__
11342 # include <limits.h>
11343 #else
11344 # include <assert.h>
11345 #endif
11346
11347 #undef shl_load
11348
11349 /* Override any GCC internal prototype to avoid an error.
11350    Use char because int might match the return type of a GCC
11351    builtin and then its argument prototype would still apply.  */
11352 #ifdef __cplusplus
11353 extern "C"
11354 #endif
11355 char shl_load ();
11356 /* The GNU C library defines this for functions which it implements
11357     to always fail with ENOSYS.  Some functions are actually named
11358     something starting with __ and the normal name is an alias.  */
11359 #if defined __stub_shl_load || defined __stub___shl_load
11360 choke me
11361 #endif
11362
11363 int
11364 main ()
11365 {
11366 return shl_load ();
11367   ;
11368   return 0;
11369 }
11370 _ACEOF
11371 rm -f conftest.$ac_objext conftest$ac_exeext
11372 if { (ac_try="$ac_link"
11373 case "(($ac_try" in
11374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375   *) ac_try_echo=$ac_try;;
11376 esac
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378   (eval "$ac_link") 2>conftest.er1
11379   ac_status=$?
11380   grep -v '^ *+' conftest.er1 >conftest.err
11381   rm -f conftest.er1
11382   cat conftest.err >&5
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); } && {
11385          test -z "$ac_c_werror_flag" ||
11386          test ! -s conftest.err
11387        } && test -s conftest$ac_exeext &&
11388        $as_test_x conftest$ac_exeext; then
11389   ac_cv_func_shl_load=yes
11390 else
11391   echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11393
11394         ac_cv_func_shl_load=no
11395 fi
11396
11397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11398       conftest$ac_exeext conftest.$ac_ext
11399 fi
11400 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11401 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11402 if test $ac_cv_func_shl_load = yes; then
11403   lt_cv_dlopen="shl_load"
11404 else
11405   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11406 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11407 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11408   echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410   ac_check_lib_save_LIBS=$LIBS
11411 LIBS="-ldld  $LIBS"
11412 cat >conftest.$ac_ext <<_ACEOF
11413 /* confdefs.h.  */
11414 _ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h.  */
11418
11419 /* Override any GCC internal prototype to avoid an error.
11420    Use char because int might match the return type of a GCC
11421    builtin and then its argument prototype would still apply.  */
11422 #ifdef __cplusplus
11423 extern "C"
11424 #endif
11425 char shl_load ();
11426 int
11427 main ()
11428 {
11429 return shl_load ();
11430   ;
11431   return 0;
11432 }
11433 _ACEOF
11434 rm -f conftest.$ac_objext conftest$ac_exeext
11435 if { (ac_try="$ac_link"
11436 case "(($ac_try" in
11437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438   *) ac_try_echo=$ac_try;;
11439 esac
11440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441   (eval "$ac_link") 2>conftest.er1
11442   ac_status=$?
11443   grep -v '^ *+' conftest.er1 >conftest.err
11444   rm -f conftest.er1
11445   cat conftest.err >&5
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); } && {
11448          test -z "$ac_c_werror_flag" ||
11449          test ! -s conftest.err
11450        } && test -s conftest$ac_exeext &&
11451        $as_test_x conftest$ac_exeext; then
11452   ac_cv_lib_dld_shl_load=yes
11453 else
11454   echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11456
11457         ac_cv_lib_dld_shl_load=no
11458 fi
11459
11460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11461       conftest$ac_exeext conftest.$ac_ext
11462 LIBS=$ac_check_lib_save_LIBS
11463 fi
11464 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11465 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11466 if test $ac_cv_lib_dld_shl_load = yes; then
11467   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11468 else
11469   { echo "$as_me:$LINENO: checking for dlopen" >&5
11470 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11471 if test "${ac_cv_func_dlopen+set}" = set; then
11472   echo $ECHO_N "(cached) $ECHO_C" >&6
11473 else
11474   cat >conftest.$ac_ext <<_ACEOF
11475 /* confdefs.h.  */
11476 _ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h.  */
11480 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11482 #define dlopen innocuous_dlopen
11483
11484 /* System header to define __stub macros and hopefully few prototypes,
11485     which can conflict with char dlopen (); below.
11486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11487     <limits.h> exists even on freestanding compilers.  */
11488
11489 #ifdef __STDC__
11490 # include <limits.h>
11491 #else
11492 # include <assert.h>
11493 #endif
11494
11495 #undef dlopen
11496
11497 /* Override any GCC internal prototype to avoid an error.
11498    Use char because int might match the return type of a GCC
11499    builtin and then its argument prototype would still apply.  */
11500 #ifdef __cplusplus
11501 extern "C"
11502 #endif
11503 char dlopen ();
11504 /* The GNU C library defines this for functions which it implements
11505     to always fail with ENOSYS.  Some functions are actually named
11506     something starting with __ and the normal name is an alias.  */
11507 #if defined __stub_dlopen || defined __stub___dlopen
11508 choke me
11509 #endif
11510
11511 int
11512 main ()
11513 {
11514 return dlopen ();
11515   ;
11516   return 0;
11517 }
11518 _ACEOF
11519 rm -f conftest.$ac_objext conftest$ac_exeext
11520 if { (ac_try="$ac_link"
11521 case "(($ac_try" in
11522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523   *) ac_try_echo=$ac_try;;
11524 esac
11525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526   (eval "$ac_link") 2>conftest.er1
11527   ac_status=$?
11528   grep -v '^ *+' conftest.er1 >conftest.err
11529   rm -f conftest.er1
11530   cat conftest.err >&5
11531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532   (exit $ac_status); } && {
11533          test -z "$ac_c_werror_flag" ||
11534          test ! -s conftest.err
11535        } && test -s conftest$ac_exeext &&
11536        $as_test_x conftest$ac_exeext; then
11537   ac_cv_func_dlopen=yes
11538 else
11539   echo "$as_me: failed program was:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11541
11542         ac_cv_func_dlopen=no
11543 fi
11544
11545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11546       conftest$ac_exeext conftest.$ac_ext
11547 fi
11548 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11549 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11550 if test $ac_cv_func_dlopen = yes; then
11551   lt_cv_dlopen="dlopen"
11552 else
11553   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11554 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11555 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11556   echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558   ac_check_lib_save_LIBS=$LIBS
11559 LIBS="-ldl  $LIBS"
11560 cat >conftest.$ac_ext <<_ACEOF
11561 /* confdefs.h.  */
11562 _ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h.  */
11566
11567 /* Override any GCC internal prototype to avoid an error.
11568    Use char because int might match the return type of a GCC
11569    builtin and then its argument prototype would still apply.  */
11570 #ifdef __cplusplus
11571 extern "C"
11572 #endif
11573 char dlopen ();
11574 int
11575 main ()
11576 {
11577 return dlopen ();
11578   ;
11579   return 0;
11580 }
11581 _ACEOF
11582 rm -f conftest.$ac_objext conftest$ac_exeext
11583 if { (ac_try="$ac_link"
11584 case "(($ac_try" in
11585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586   *) ac_try_echo=$ac_try;;
11587 esac
11588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589   (eval "$ac_link") 2>conftest.er1
11590   ac_status=$?
11591   grep -v '^ *+' conftest.er1 >conftest.err
11592   rm -f conftest.er1
11593   cat conftest.err >&5
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); } && {
11596          test -z "$ac_c_werror_flag" ||
11597          test ! -s conftest.err
11598        } && test -s conftest$ac_exeext &&
11599        $as_test_x conftest$ac_exeext; then
11600   ac_cv_lib_dl_dlopen=yes
11601 else
11602   echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11604
11605         ac_cv_lib_dl_dlopen=no
11606 fi
11607
11608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11609       conftest$ac_exeext conftest.$ac_ext
11610 LIBS=$ac_check_lib_save_LIBS
11611 fi
11612 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11613 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11614 if test $ac_cv_lib_dl_dlopen = yes; then
11615   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11616 else
11617   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11618 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11619 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11620   echo $ECHO_N "(cached) $ECHO_C" >&6
11621 else
11622   ac_check_lib_save_LIBS=$LIBS
11623 LIBS="-lsvld  $LIBS"
11624 cat >conftest.$ac_ext <<_ACEOF
11625 /* confdefs.h.  */
11626 _ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h.  */
11630
11631 /* Override any GCC internal prototype to avoid an error.
11632    Use char because int might match the return type of a GCC
11633    builtin and then its argument prototype would still apply.  */
11634 #ifdef __cplusplus
11635 extern "C"
11636 #endif
11637 char dlopen ();
11638 int
11639 main ()
11640 {
11641 return dlopen ();
11642   ;
11643   return 0;
11644 }
11645 _ACEOF
11646 rm -f conftest.$ac_objext conftest$ac_exeext
11647 if { (ac_try="$ac_link"
11648 case "(($ac_try" in
11649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650   *) ac_try_echo=$ac_try;;
11651 esac
11652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653   (eval "$ac_link") 2>conftest.er1
11654   ac_status=$?
11655   grep -v '^ *+' conftest.er1 >conftest.err
11656   rm -f conftest.er1
11657   cat conftest.err >&5
11658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659   (exit $ac_status); } && {
11660          test -z "$ac_c_werror_flag" ||
11661          test ! -s conftest.err
11662        } && test -s conftest$ac_exeext &&
11663        $as_test_x conftest$ac_exeext; then
11664   ac_cv_lib_svld_dlopen=yes
11665 else
11666   echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11668
11669         ac_cv_lib_svld_dlopen=no
11670 fi
11671
11672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11673       conftest$ac_exeext conftest.$ac_ext
11674 LIBS=$ac_check_lib_save_LIBS
11675 fi
11676 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11677 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11678 if test $ac_cv_lib_svld_dlopen = yes; then
11679   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11680 else
11681   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11682 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11683 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11684   echo $ECHO_N "(cached) $ECHO_C" >&6
11685 else
11686   ac_check_lib_save_LIBS=$LIBS
11687 LIBS="-ldld  $LIBS"
11688 cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h.  */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h.  */
11694
11695 /* Override any GCC internal prototype to avoid an error.
11696    Use char because int might match the return type of a GCC
11697    builtin and then its argument prototype would still apply.  */
11698 #ifdef __cplusplus
11699 extern "C"
11700 #endif
11701 char dld_link ();
11702 int
11703 main ()
11704 {
11705 return dld_link ();
11706   ;
11707   return 0;
11708 }
11709 _ACEOF
11710 rm -f conftest.$ac_objext conftest$ac_exeext
11711 if { (ac_try="$ac_link"
11712 case "(($ac_try" in
11713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714   *) ac_try_echo=$ac_try;;
11715 esac
11716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717   (eval "$ac_link") 2>conftest.er1
11718   ac_status=$?
11719   grep -v '^ *+' conftest.er1 >conftest.err
11720   rm -f conftest.er1
11721   cat conftest.err >&5
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); } && {
11724          test -z "$ac_c_werror_flag" ||
11725          test ! -s conftest.err
11726        } && test -s conftest$ac_exeext &&
11727        $as_test_x conftest$ac_exeext; then
11728   ac_cv_lib_dld_dld_link=yes
11729 else
11730   echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11732
11733         ac_cv_lib_dld_dld_link=no
11734 fi
11735
11736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11737       conftest$ac_exeext conftest.$ac_ext
11738 LIBS=$ac_check_lib_save_LIBS
11739 fi
11740 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11741 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11742 if test $ac_cv_lib_dld_dld_link = yes; then
11743   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11744 fi
11745
11746
11747 fi
11748
11749
11750 fi
11751
11752
11753 fi
11754
11755
11756 fi
11757
11758
11759 fi
11760
11761     ;;
11762   esac
11763
11764   if test "x$lt_cv_dlopen" != xno; then
11765     enable_dlopen=yes
11766   else
11767     enable_dlopen=no
11768   fi
11769
11770   case $lt_cv_dlopen in
11771   dlopen)
11772     save_CPPFLAGS="$CPPFLAGS"
11773     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11774
11775     save_LDFLAGS="$LDFLAGS"
11776     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11777
11778     save_LIBS="$LIBS"
11779     LIBS="$lt_cv_dlopen_libs $LIBS"
11780
11781     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11782 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11783 if test "${lt_cv_dlopen_self+set}" = set; then
11784   echo $ECHO_N "(cached) $ECHO_C" >&6
11785 else
11786           if test "$cross_compiling" = yes; then :
11787   lt_cv_dlopen_self=cross
11788 else
11789   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11790   lt_status=$lt_dlunknown
11791   cat > conftest.$ac_ext <<_LT_EOF
11792 #line 11792 "configure"
11793 #include "confdefs.h"
11794
11795 #if HAVE_DLFCN_H
11796 #include <dlfcn.h>
11797 #endif
11798
11799 #include <stdio.h>
11800
11801 #ifdef RTLD_GLOBAL
11802 #  define LT_DLGLOBAL           RTLD_GLOBAL
11803 #else
11804 #  ifdef DL_GLOBAL
11805 #    define LT_DLGLOBAL         DL_GLOBAL
11806 #  else
11807 #    define LT_DLGLOBAL         0
11808 #  endif
11809 #endif
11810
11811 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11812    find out it does not work in some platform. */
11813 #ifndef LT_DLLAZY_OR_NOW
11814 #  ifdef RTLD_LAZY
11815 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11816 #  else
11817 #    ifdef DL_LAZY
11818 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11819 #    else
11820 #      ifdef RTLD_NOW
11821 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11822 #      else
11823 #        ifdef DL_NOW
11824 #          define LT_DLLAZY_OR_NOW      DL_NOW
11825 #        else
11826 #          define LT_DLLAZY_OR_NOW      0
11827 #        endif
11828 #      endif
11829 #    endif
11830 #  endif
11831 #endif
11832
11833 #ifdef __cplusplus
11834 extern "C" void exit (int);
11835 #endif
11836
11837 void fnord() { int i=42;}
11838 int main ()
11839 {
11840   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11841   int status = $lt_dlunknown;
11842
11843   if (self)
11844     {
11845       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11846       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11847       /* dlclose (self); */
11848     }
11849   else
11850     puts (dlerror ());
11851
11852     exit (status);
11853 }
11854 _LT_EOF
11855   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11856   (eval $ac_link) 2>&5
11857   ac_status=$?
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11860     (./conftest; exit; ) >&5 2>/dev/null
11861     lt_status=$?
11862     case x$lt_status in
11863       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11864       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11865       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11866     esac
11867   else :
11868     # compilation failed
11869     lt_cv_dlopen_self=no
11870   fi
11871 fi
11872 rm -fr conftest*
11873
11874
11875 fi
11876 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11877 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11878
11879     if test "x$lt_cv_dlopen_self" = xyes; then
11880       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11881       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11882 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11883 if test "${lt_cv_dlopen_self_static+set}" = set; then
11884   echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886           if test "$cross_compiling" = yes; then :
11887   lt_cv_dlopen_self_static=cross
11888 else
11889   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11890   lt_status=$lt_dlunknown
11891   cat > conftest.$ac_ext <<_LT_EOF
11892 #line 11892 "configure"
11893 #include "confdefs.h"
11894
11895 #if HAVE_DLFCN_H
11896 #include <dlfcn.h>
11897 #endif
11898
11899 #include <stdio.h>
11900
11901 #ifdef RTLD_GLOBAL
11902 #  define LT_DLGLOBAL           RTLD_GLOBAL
11903 #else
11904 #  ifdef DL_GLOBAL
11905 #    define LT_DLGLOBAL         DL_GLOBAL
11906 #  else
11907 #    define LT_DLGLOBAL         0
11908 #  endif
11909 #endif
11910
11911 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11912    find out it does not work in some platform. */
11913 #ifndef LT_DLLAZY_OR_NOW
11914 #  ifdef RTLD_LAZY
11915 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11916 #  else
11917 #    ifdef DL_LAZY
11918 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11919 #    else
11920 #      ifdef RTLD_NOW
11921 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11922 #      else
11923 #        ifdef DL_NOW
11924 #          define LT_DLLAZY_OR_NOW      DL_NOW
11925 #        else
11926 #          define LT_DLLAZY_OR_NOW      0
11927 #        endif
11928 #      endif
11929 #    endif
11930 #  endif
11931 #endif
11932
11933 #ifdef __cplusplus
11934 extern "C" void exit (int);
11935 #endif
11936
11937 void fnord() { int i=42;}
11938 int main ()
11939 {
11940   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11941   int status = $lt_dlunknown;
11942
11943   if (self)
11944     {
11945       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11946       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11947       /* dlclose (self); */
11948     }
11949   else
11950     puts (dlerror ());
11951
11952     exit (status);
11953 }
11954 _LT_EOF
11955   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11956   (eval $ac_link) 2>&5
11957   ac_status=$?
11958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11960     (./conftest; exit; ) >&5 2>/dev/null
11961     lt_status=$?
11962     case x$lt_status in
11963       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11964       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11965       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11966     esac
11967   else :
11968     # compilation failed
11969     lt_cv_dlopen_self_static=no
11970   fi
11971 fi
11972 rm -fr conftest*
11973
11974
11975 fi
11976 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11977 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11978     fi
11979
11980     CPPFLAGS="$save_CPPFLAGS"
11981     LDFLAGS="$save_LDFLAGS"
11982     LIBS="$save_LIBS"
11983     ;;
11984   esac
11985
11986   case $lt_cv_dlopen_self in
11987   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11988   *) enable_dlopen_self=unknown ;;
11989   esac
11990
11991   case $lt_cv_dlopen_self_static in
11992   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11993   *) enable_dlopen_self_static=unknown ;;
11994   esac
11995 fi
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013 striplib=
12014 old_striplib=
12015 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12016 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12017 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12018   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12019   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12020   { echo "$as_me:$LINENO: result: yes" >&5
12021 echo "${ECHO_T}yes" >&6; }
12022 else
12023 # FIXME - insert some real tests, host_os isn't really good enough
12024   case $host_os in
12025   darwin*)
12026     if test -n "$STRIP" ; then
12027       striplib="$STRIP -x"
12028       old_striplib="$STRIP -S"
12029       { echo "$as_me:$LINENO: result: yes" >&5
12030 echo "${ECHO_T}yes" >&6; }
12031     else
12032       { echo "$as_me:$LINENO: result: no" >&5
12033 echo "${ECHO_T}no" >&6; }
12034     fi
12035     ;;
12036   *)
12037     { echo "$as_me:$LINENO: result: no" >&5
12038 echo "${ECHO_T}no" >&6; }
12039     ;;
12040   esac
12041 fi
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054   # Report which library types will actually be built
12055   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12056 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12057   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12058 echo "${ECHO_T}$can_build_shared" >&6; }
12059
12060   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12061 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12062   test "$can_build_shared" = "no" && enable_shared=no
12063
12064   # On AIX, shared libraries and static libraries use the same namespace, and
12065   # are all built from PIC.
12066   case $host_os in
12067   aix3*)
12068     test "$enable_shared" = yes && enable_static=no
12069     if test -n "$RANLIB"; then
12070       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12071       postinstall_cmds='$RANLIB $lib'
12072     fi
12073     ;;
12074
12075   aix[4-9]*)
12076     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12077       test "$enable_shared" = yes && enable_static=no
12078     fi
12079     ;;
12080   esac
12081   { echo "$as_me:$LINENO: result: $enable_shared" >&5
12082 echo "${ECHO_T}$enable_shared" >&6; }
12083
12084   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12085 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12086   # Make sure either enable_shared or enable_static is yes.
12087   test "$enable_shared" = yes || enable_static=yes
12088   { echo "$as_me:$LINENO: result: $enable_static" >&5
12089 echo "${ECHO_T}$enable_static" >&6; }
12090
12091
12092
12093
12094 fi
12095 ac_ext=c
12096 ac_cpp='$CPP $CPPFLAGS'
12097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12100
12101 CC="$lt_save_CC"
12102
12103
12104 ac_ext=cpp
12105 ac_cpp='$CXXCPP $CPPFLAGS'
12106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12109
12110 archive_cmds_need_lc_CXX=no
12111 allow_undefined_flag_CXX=
12112 always_export_symbols_CXX=no
12113 archive_expsym_cmds_CXX=
12114 compiler_needs_object_CXX=no
12115 export_dynamic_flag_spec_CXX=
12116 hardcode_direct_CXX=no
12117 hardcode_direct_absolute_CXX=no
12118 hardcode_libdir_flag_spec_CXX=
12119 hardcode_libdir_flag_spec_ld_CXX=
12120 hardcode_libdir_separator_CXX=
12121 hardcode_minus_L_CXX=no
12122 hardcode_shlibpath_var_CXX=unsupported
12123 hardcode_automatic_CXX=no
12124 inherit_rpath_CXX=no
12125 module_cmds_CXX=
12126 module_expsym_cmds_CXX=
12127 link_all_deplibs_CXX=unknown
12128 old_archive_cmds_CXX=$old_archive_cmds
12129 no_undefined_flag_CXX=
12130 whole_archive_flag_spec_CXX=
12131 enable_shared_with_static_runtimes_CXX=no
12132
12133 # Source file extension for C++ test sources.
12134 ac_ext=cpp
12135
12136 # Object file extension for compiled C++ test sources.
12137 objext=o
12138 objext_CXX=$objext
12139
12140 # No sense in running all these tests if we already determined that
12141 # the CXX compiler isn't working.  Some variables (like enable_shared)
12142 # are currently assumed to apply to all compilers on this platform,
12143 # and will be corrupted by setting them based on a non-working compiler.
12144 if test "$_lt_caught_CXX_error" != yes; then
12145   # Code to be used in simple compile tests
12146   lt_simple_compile_test_code="int some_variable = 0;"
12147
12148   # Code to be used in simple link tests
12149   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12150
12151   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12152
12153
12154
12155
12156
12157
12158 # If no C compiler was specified, use CC.
12159 LTCC=${LTCC-"$CC"}
12160
12161 # If no C compiler flags were specified, use CFLAGS.
12162 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12163
12164 # Allow CC to be a program name with arguments.
12165 compiler=$CC
12166
12167
12168   # save warnings/boilerplate of simple test code
12169   ac_outfile=conftest.$ac_objext
12170 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12171 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12172 _lt_compiler_boilerplate=`cat conftest.err`
12173 $RM conftest*
12174
12175   ac_outfile=conftest.$ac_objext
12176 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12177 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12178 _lt_linker_boilerplate=`cat conftest.err`
12179 $RM -r conftest*
12180
12181
12182   # Allow CC to be a program name with arguments.
12183   lt_save_CC=$CC
12184   lt_save_LD=$LD
12185   lt_save_GCC=$GCC
12186   GCC=$GXX
12187   lt_save_with_gnu_ld=$with_gnu_ld
12188   lt_save_path_LD=$lt_cv_path_LD
12189   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12190     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12191   else
12192     $as_unset lt_cv_prog_gnu_ld
12193   fi
12194   if test -n "${lt_cv_path_LDCXX+set}"; then
12195     lt_cv_path_LD=$lt_cv_path_LDCXX
12196   else
12197     $as_unset lt_cv_path_LD
12198   fi
12199   test -z "${LDCXX+set}" || LD=$LDCXX
12200   CC=${CXX-"c++"}
12201   compiler=$CC
12202   compiler_CXX=$CC
12203   for cc_temp in $compiler""; do
12204   case $cc_temp in
12205     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12206     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12207     \-*) ;;
12208     *) break;;
12209   esac
12210 done
12211 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12212
12213
12214   if test -n "$compiler"; then
12215     # We don't want -fno-exception when compiling C++ code, so set the
12216     # no_builtin_flag separately
12217     if test "$GXX" = yes; then
12218       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12219     else
12220       lt_prog_compiler_no_builtin_flag_CXX=
12221     fi
12222
12223     if test "$GXX" = yes; then
12224       # Set up default GNU C++ configuration
12225
12226
12227
12228 # Check whether --with-gnu-ld was given.
12229 if test "${with_gnu_ld+set}" = set; then
12230   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12231 else
12232   with_gnu_ld=no
12233 fi
12234
12235 ac_prog=ld
12236 if test "$GCC" = yes; then
12237   # Check if gcc -print-prog-name=ld gives a path.
12238   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12239 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12240   case $host in
12241   *-*-mingw*)
12242     # gcc leaves a trailing carriage return which upsets mingw
12243     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12244   *)
12245     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12246   esac
12247   case $ac_prog in
12248     # Accept absolute paths.
12249     [\\/]* | ?:[\\/]*)
12250       re_direlt='/[^/][^/]*/\.\./'
12251       # Canonicalize the pathname of ld
12252       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12253       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12254         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12255       done
12256       test -z "$LD" && LD="$ac_prog"
12257       ;;
12258   "")
12259     # If it fails, then pretend we aren't using GCC.
12260     ac_prog=ld
12261     ;;
12262   *)
12263     # If it is relative, then search for the first ld in PATH.
12264     with_gnu_ld=unknown
12265     ;;
12266   esac
12267 elif test "$with_gnu_ld" = yes; then
12268   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12269 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12270 else
12271   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12272 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12273 fi
12274 if test "${lt_cv_path_LD+set}" = set; then
12275   echo $ECHO_N "(cached) $ECHO_C" >&6
12276 else
12277   if test -z "$LD"; then
12278   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12279   for ac_dir in $PATH; do
12280     IFS="$lt_save_ifs"
12281     test -z "$ac_dir" && ac_dir=.
12282     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12283       lt_cv_path_LD="$ac_dir/$ac_prog"
12284       # Check to see if the program is GNU ld.  I'd rather use --version,
12285       # but apparently some variants of GNU ld only accept -v.
12286       # Break only if it was the GNU/non-GNU ld that we prefer.
12287       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12288       *GNU* | *'with BFD'*)
12289         test "$with_gnu_ld" != no && break
12290         ;;
12291       *)
12292         test "$with_gnu_ld" != yes && break
12293         ;;
12294       esac
12295     fi
12296   done
12297   IFS="$lt_save_ifs"
12298 else
12299   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12300 fi
12301 fi
12302
12303 LD="$lt_cv_path_LD"
12304 if test -n "$LD"; then
12305   { echo "$as_me:$LINENO: result: $LD" >&5
12306 echo "${ECHO_T}$LD" >&6; }
12307 else
12308   { echo "$as_me:$LINENO: result: no" >&5
12309 echo "${ECHO_T}no" >&6; }
12310 fi
12311 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12312 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12313    { (exit 1); exit 1; }; }
12314 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12315 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12316 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12317   echo $ECHO_N "(cached) $ECHO_C" >&6
12318 else
12319   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12320 case `$LD -v 2>&1 </dev/null` in
12321 *GNU* | *'with BFD'*)
12322   lt_cv_prog_gnu_ld=yes
12323   ;;
12324 *)
12325   lt_cv_prog_gnu_ld=no
12326   ;;
12327 esac
12328 fi
12329 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12330 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12331 with_gnu_ld=$lt_cv_prog_gnu_ld
12332
12333
12334
12335
12336
12337
12338
12339       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12340       # archiving commands below assume that GNU ld is being used.
12341       if test "$with_gnu_ld" = yes; then
12342         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12343         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12344
12345         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12346         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12347
12348         # If archive_cmds runs LD, not CC, wlarc should be empty
12349         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12350         #     investigate it a little bit more. (MM)
12351         wlarc='${wl}'
12352
12353         # ancient GNU ld didn't support --whole-archive et. al.
12354         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12355           $GREP 'no-whole-archive' > /dev/null; then
12356           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12357         else
12358           whole_archive_flag_spec_CXX=
12359         fi
12360       else
12361         with_gnu_ld=no
12362         wlarc=
12363
12364         # A generic and very simple default shared library creation
12365         # command for GNU C++ for the case where it uses the native
12366         # linker, instead of GNU ld.  If possible, this setting should
12367         # overridden to take advantage of the native linker features on
12368         # the platform it is being used on.
12369         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12370       fi
12371
12372       # Commands to make compiler produce verbose output that lists
12373       # what "hidden" libraries, object files and flags are used when
12374       # linking a shared library.
12375       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12376
12377     else
12378       GXX=no
12379       with_gnu_ld=no
12380       wlarc=
12381     fi
12382
12383     # PORTME: fill in a description of your system's C++ link characteristics
12384     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12385 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12386     ld_shlibs_CXX=yes
12387     case $host_os in
12388       aix3*)
12389         # FIXME: insert proper C++ library support
12390         ld_shlibs_CXX=no
12391         ;;
12392       aix[4-9]*)
12393         if test "$host_cpu" = ia64; then
12394           # On IA64, the linker does run time linking by default, so we don't
12395           # have to do anything special.
12396           aix_use_runtimelinking=no
12397           exp_sym_flag='-Bexport'
12398           no_entry_flag=""
12399         else
12400           aix_use_runtimelinking=no
12401
12402           # Test if we are trying to use run time linking or normal
12403           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12404           # need to do runtime linking.
12405           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12406             for ld_flag in $LDFLAGS; do
12407               case $ld_flag in
12408               *-brtl*)
12409                 aix_use_runtimelinking=yes
12410                 break
12411                 ;;
12412               esac
12413             done
12414             ;;
12415           esac
12416
12417           exp_sym_flag='-bexport'
12418           no_entry_flag='-bnoentry'
12419         fi
12420
12421         # When large executables or shared objects are built, AIX ld can
12422         # have problems creating the table of contents.  If linking a library
12423         # or program results in "error TOC overflow" add -mminimal-toc to
12424         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12425         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12426
12427         archive_cmds_CXX=''
12428         hardcode_direct_CXX=yes
12429         hardcode_direct_absolute_CXX=yes
12430         hardcode_libdir_separator_CXX=':'
12431         link_all_deplibs_CXX=yes
12432         file_list_spec_CXX='${wl}-f,'
12433
12434         if test "$GXX" = yes; then
12435           case $host_os in aix4.[012]|aix4.[012].*)
12436           # We only want to do this on AIX 4.2 and lower, the check
12437           # below for broken collect2 doesn't work under 4.3+
12438           collect2name=`${CC} -print-prog-name=collect2`
12439           if test -f "$collect2name" &&
12440              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12441           then
12442             # We have reworked collect2
12443             :
12444           else
12445             # We have old collect2
12446             hardcode_direct_CXX=unsupported
12447             # It fails to find uninstalled libraries when the uninstalled
12448             # path is not listed in the libpath.  Setting hardcode_minus_L
12449             # to unsupported forces relinking
12450             hardcode_minus_L_CXX=yes
12451             hardcode_libdir_flag_spec_CXX='-L$libdir'
12452             hardcode_libdir_separator_CXX=
12453           fi
12454           esac
12455           shared_flag='-shared'
12456           if test "$aix_use_runtimelinking" = yes; then
12457             shared_flag="$shared_flag "'${wl}-G'
12458           fi
12459         else
12460           # not using gcc
12461           if test "$host_cpu" = ia64; then
12462           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12463           # chokes on -Wl,-G. The following line is correct:
12464           shared_flag='-G'
12465           else
12466             if test "$aix_use_runtimelinking" = yes; then
12467               shared_flag='${wl}-G'
12468             else
12469               shared_flag='${wl}-bM:SRE'
12470             fi
12471           fi
12472         fi
12473
12474         # It seems that -bexpall does not export symbols beginning with
12475         # underscore (_), so it is better to generate a list of symbols to
12476         # export.
12477         always_export_symbols_CXX=yes
12478         if test "$aix_use_runtimelinking" = yes; then
12479           # Warning - without using the other runtime loading flags (-brtl),
12480           # -berok will link without error, but may produce a broken library.
12481           allow_undefined_flag_CXX='-berok'
12482           # Determine the default libpath from the value encoded in an empty
12483           # executable.
12484           cat >conftest.$ac_ext <<_ACEOF
12485 /* confdefs.h.  */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h.  */
12490
12491 int
12492 main ()
12493 {
12494
12495   ;
12496   return 0;
12497 }
12498 _ACEOF
12499 rm -f conftest.$ac_objext conftest$ac_exeext
12500 if { (ac_try="$ac_link"
12501 case "(($ac_try" in
12502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503   *) ac_try_echo=$ac_try;;
12504 esac
12505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506   (eval "$ac_link") 2>conftest.er1
12507   ac_status=$?
12508   grep -v '^ *+' conftest.er1 >conftest.err
12509   rm -f conftest.er1
12510   cat conftest.err >&5
12511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512   (exit $ac_status); } && {
12513          test -z "$ac_cxx_werror_flag" ||
12514          test ! -s conftest.err
12515        } && test -s conftest$ac_exeext &&
12516        $as_test_x conftest$ac_exeext; then
12517
12518 lt_aix_libpath_sed='
12519     /Import File Strings/,/^$/ {
12520         /^0/ {
12521             s/^0  *\(.*\)$/\1/
12522             p
12523         }
12524     }'
12525 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12526 # Check for a 64-bit object if we didn't find anything.
12527 if test -z "$aix_libpath"; then
12528   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12529 fi
12530 else
12531   echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12533
12534
12535 fi
12536
12537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12538       conftest$ac_exeext conftest.$ac_ext
12539 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12540
12541           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12542
12543           archive_expsym_cmds_CXX='$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"
12544         else
12545           if test "$host_cpu" = ia64; then
12546             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12547             allow_undefined_flag_CXX="-z nodefs"
12548             archive_expsym_cmds_CXX="\$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"
12549           else
12550             # Determine the default libpath from the value encoded in an
12551             # empty executable.
12552             cat >conftest.$ac_ext <<_ACEOF
12553 /* confdefs.h.  */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h.  */
12558
12559 int
12560 main ()
12561 {
12562
12563   ;
12564   return 0;
12565 }
12566 _ACEOF
12567 rm -f conftest.$ac_objext conftest$ac_exeext
12568 if { (ac_try="$ac_link"
12569 case "(($ac_try" in
12570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571   *) ac_try_echo=$ac_try;;
12572 esac
12573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574   (eval "$ac_link") 2>conftest.er1
12575   ac_status=$?
12576   grep -v '^ *+' conftest.er1 >conftest.err
12577   rm -f conftest.er1
12578   cat conftest.err >&5
12579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580   (exit $ac_status); } && {
12581          test -z "$ac_cxx_werror_flag" ||
12582          test ! -s conftest.err
12583        } && test -s conftest$ac_exeext &&
12584        $as_test_x conftest$ac_exeext; then
12585
12586 lt_aix_libpath_sed='
12587     /Import File Strings/,/^$/ {
12588         /^0/ {
12589             s/^0  *\(.*\)$/\1/
12590             p
12591         }
12592     }'
12593 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12594 # Check for a 64-bit object if we didn't find anything.
12595 if test -z "$aix_libpath"; then
12596   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12597 fi
12598 else
12599   echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12601
12602
12603 fi
12604
12605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12606       conftest$ac_exeext conftest.$ac_ext
12607 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12608
12609             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12610             # Warning - without using the other run time loading flags,
12611             # -berok will link without error, but may produce a broken library.
12612             no_undefined_flag_CXX=' ${wl}-bernotok'
12613             allow_undefined_flag_CXX=' ${wl}-berok'
12614             # Exported symbols can be pulled into shared objects from archives
12615             whole_archive_flag_spec_CXX='$convenience'
12616             archive_cmds_need_lc_CXX=yes
12617             # This is similar to how AIX traditionally builds its shared
12618             # libraries.
12619             archive_expsym_cmds_CXX="\$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'
12620           fi
12621         fi
12622         ;;
12623
12624       beos*)
12625         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12626           allow_undefined_flag_CXX=unsupported
12627           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12628           # support --undefined.  This deserves some investigation.  FIXME
12629           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12630         else
12631           ld_shlibs_CXX=no
12632         fi
12633         ;;
12634
12635       chorus*)
12636         case $cc_basename in
12637           *)
12638           # FIXME: insert proper C++ library support
12639           ld_shlibs_CXX=no
12640           ;;
12641         esac
12642         ;;
12643
12644       cygwin* | mingw* | pw32*)
12645         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12646         # as there is no search path for DLLs.
12647         hardcode_libdir_flag_spec_CXX='-L$libdir'
12648         allow_undefined_flag_CXX=unsupported
12649         always_export_symbols_CXX=no
12650         enable_shared_with_static_runtimes_CXX=yes
12651
12652         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12653           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12654           # If the export-symbols file already is a .def file (1st line
12655           # is EXPORTS), use it as is; otherwise, prepend...
12656           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12657             cp $export_symbols $output_objdir/$soname.def;
12658           else
12659             echo EXPORTS > $output_objdir/$soname.def;
12660             cat $export_symbols >> $output_objdir/$soname.def;
12661           fi~
12662           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12663         else
12664           ld_shlibs_CXX=no
12665         fi
12666         ;;
12667       darwin* | rhapsody*)
12668
12669
12670   archive_cmds_need_lc_CXX=no
12671   hardcode_direct_CXX=no
12672   hardcode_automatic_CXX=yes
12673   hardcode_shlibpath_var_CXX=unsupported
12674   whole_archive_flag_spec_CXX=''
12675   link_all_deplibs_CXX=yes
12676   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12677   if test "$GCC" = "yes"; then
12678     output_verbose_link_cmd=echo
12679     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12680     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12681     archive_expsym_cmds_CXX="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}"
12682     module_expsym_cmds_CXX="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}"
12683        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12684       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12685       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12686     fi
12687
12688   else
12689   ld_shlibs_CXX=no
12690   fi
12691
12692         ;;
12693
12694       dgux*)
12695         case $cc_basename in
12696           ec++*)
12697             # FIXME: insert proper C++ library support
12698             ld_shlibs_CXX=no
12699             ;;
12700           ghcx*)
12701             # Green Hills C++ Compiler
12702             # FIXME: insert proper C++ library support
12703             ld_shlibs_CXX=no
12704             ;;
12705           *)
12706             # FIXME: insert proper C++ library support
12707             ld_shlibs_CXX=no
12708             ;;
12709         esac
12710         ;;
12711
12712       freebsd[12]*)
12713         # C++ shared libraries reported to be fairly broken before
12714         # switch to ELF
12715         ld_shlibs_CXX=no
12716         ;;
12717
12718       freebsd-elf*)
12719         archive_cmds_need_lc_CXX=no
12720         ;;
12721
12722       freebsd* | dragonfly*)
12723         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12724         # conventions
12725         ld_shlibs_CXX=yes
12726         ;;
12727
12728       gnu*)
12729         ;;
12730
12731       hpux9*)
12732         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12733         hardcode_libdir_separator_CXX=:
12734         export_dynamic_flag_spec_CXX='${wl}-E'
12735         hardcode_direct_CXX=yes
12736         hardcode_minus_L_CXX=yes # Not in the search PATH,
12737                                              # but as the default
12738                                              # location of the library.
12739
12740         case $cc_basename in
12741           CC*)
12742             # FIXME: insert proper C++ library support
12743             ld_shlibs_CXX=no
12744             ;;
12745           aCC*)
12746             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12747             # Commands to make compiler produce verbose output that lists
12748             # what "hidden" libraries, object files and flags are used when
12749             # linking a shared library.
12750             #
12751             # There doesn't appear to be a way to prevent this compiler from
12752             # explicitly linking system object files so we need to strip them
12753             # from the output so that they don't get included in the library
12754             # dependencies.
12755             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12756             ;;
12757           *)
12758             if test "$GXX" = yes; then
12759               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12760             else
12761               # FIXME: insert proper C++ library support
12762               ld_shlibs_CXX=no
12763             fi
12764             ;;
12765         esac
12766         ;;
12767
12768       hpux10*|hpux11*)
12769         if test $with_gnu_ld = no; then
12770           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12771           hardcode_libdir_separator_CXX=:
12772
12773           case $host_cpu in
12774             hppa*64*|ia64*)
12775               ;;
12776             *)
12777               export_dynamic_flag_spec_CXX='${wl}-E'
12778               ;;
12779           esac
12780         fi
12781         case $host_cpu in
12782           hppa*64*|ia64*)
12783             hardcode_direct_CXX=no
12784             hardcode_shlibpath_var_CXX=no
12785             ;;
12786           *)
12787             hardcode_direct_CXX=yes
12788             hardcode_direct_absolute_CXX=yes
12789             hardcode_minus_L_CXX=yes # Not in the search PATH,
12790                                                  # but as the default
12791                                                  # location of the library.
12792             ;;
12793         esac
12794
12795         case $cc_basename in
12796           CC*)
12797             # FIXME: insert proper C++ library support
12798             ld_shlibs_CXX=no
12799             ;;
12800           aCC*)
12801             case $host_cpu in
12802               hppa*64*)
12803                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12804                 ;;
12805               ia64*)
12806                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12807                 ;;
12808               *)
12809                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12810                 ;;
12811             esac
12812             # Commands to make compiler produce verbose output that lists
12813             # what "hidden" libraries, object files and flags are used when
12814             # linking a shared library.
12815             #
12816             # There doesn't appear to be a way to prevent this compiler from
12817             # explicitly linking system object files so we need to strip them
12818             # from the output so that they don't get included in the library
12819             # dependencies.
12820             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12821             ;;
12822           *)
12823             if test "$GXX" = yes; then
12824               if test $with_gnu_ld = no; then
12825                 case $host_cpu in
12826                   hppa*64*)
12827                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12828                     ;;
12829                   ia64*)
12830                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12831                     ;;
12832                   *)
12833                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12834                     ;;
12835                 esac
12836               fi
12837             else
12838               # FIXME: insert proper C++ library support
12839               ld_shlibs_CXX=no
12840             fi
12841             ;;
12842         esac
12843         ;;
12844
12845       interix[3-9]*)
12846         hardcode_direct_CXX=no
12847         hardcode_shlibpath_var_CXX=no
12848         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12849         export_dynamic_flag_spec_CXX='${wl}-E'
12850         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12851         # Instead, shared libraries are loaded at an image base (0x10000000 by
12852         # default) and relocated if they conflict, which is a slow very memory
12853         # consuming and fragmenting process.  To avoid this, we pick a random,
12854         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12855         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12856         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12857         archive_expsym_cmds_CXX='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'
12858         ;;
12859       irix5* | irix6*)
12860         case $cc_basename in
12861           CC*)
12862             # SGI C++
12863             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12864
12865             # Archives containing C++ object files must be created using
12866             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12867             # necessary to make sure instantiated templates are included
12868             # in the archive.
12869             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12870             ;;
12871           *)
12872             if test "$GXX" = yes; then
12873               if test "$with_gnu_ld" = no; then
12874                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12875               else
12876                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12877               fi
12878             fi
12879             link_all_deplibs_CXX=yes
12880             ;;
12881         esac
12882         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12883         hardcode_libdir_separator_CXX=:
12884         inherit_rpath_CXX=yes
12885         ;;
12886
12887       linux* | k*bsd*-gnu)
12888         case $cc_basename in
12889           KCC*)
12890             # Kuck and Associates, Inc. (KAI) C++ Compiler
12891
12892             # KCC will only create a shared library if the output file
12893             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12894             # to its proper name (with version) after linking.
12895             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12896             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12897             # Commands to make compiler produce verbose output that lists
12898             # what "hidden" libraries, object files and flags are used when
12899             # linking a shared library.
12900             #
12901             # There doesn't appear to be a way to prevent this compiler from
12902             # explicitly linking system object files so we need to strip them
12903             # from the output so that they don't get included in the library
12904             # dependencies.
12905             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12906
12907             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12908             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12909
12910             # Archives containing C++ object files must be created using
12911             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12912             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12913             ;;
12914           icpc* | ecpc* )
12915             # Intel C++
12916             with_gnu_ld=yes
12917             # version 8.0 and above of icpc choke on multiply defined symbols
12918             # if we add $predep_objects and $postdep_objects, however 7.1 and
12919             # earlier do not add the objects themselves.
12920             case `$CC -V 2>&1` in
12921               *"Version 7."*)
12922                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12923                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12924                 ;;
12925               *)  # Version 8.0 or newer
12926                 tmp_idyn=
12927                 case $host_cpu in
12928                   ia64*) tmp_idyn=' -i_dynamic';;
12929                 esac
12930                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12931                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12932                 ;;
12933             esac
12934             archive_cmds_need_lc_CXX=no
12935             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12936             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12937             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12938             ;;
12939           pgCC* | pgcpp*)
12940             # Portland Group C++ compiler
12941             case `$CC -V` in
12942             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12943               prelink_cmds_CXX='tpldir=Template.dir~
12944                 rm -rf $tpldir~
12945                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12946                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12947               old_archive_cmds_CXX='tpldir=Template.dir~
12948                 rm -rf $tpldir~
12949                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12950                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12951                 $RANLIB $oldlib'
12952               archive_cmds_CXX='tpldir=Template.dir~
12953                 rm -rf $tpldir~
12954                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12955                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12956               archive_expsym_cmds_CXX='tpldir=Template.dir~
12957                 rm -rf $tpldir~
12958                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12959                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12960               ;;
12961             *) # Version 6 will use weak symbols
12962               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12963               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12964               ;;
12965             esac
12966
12967             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12968             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12969             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12970             ;;
12971           cxx*)
12972             # Compaq C++
12973             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12974             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12975
12976             runpath_var=LD_RUN_PATH
12977             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12978             hardcode_libdir_separator_CXX=:
12979
12980             # Commands to make compiler produce verbose output that lists
12981             # what "hidden" libraries, object files and flags are used when
12982             # linking a shared library.
12983             #
12984             # There doesn't appear to be a way to prevent this compiler from
12985             # explicitly linking system object files so we need to strip them
12986             # from the output so that they don't get included in the library
12987             # dependencies.
12988             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12989             ;;
12990           xl*)
12991             # IBM XL 8.0 on PPC, with GNU ld
12992             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12993             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12994             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12995             if test "x$supports_anon_versioning" = xyes; then
12996               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12997                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12998                 echo "local: *; };" >> $output_objdir/$libname.ver~
12999                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13000             fi
13001             ;;
13002           *)
13003             case `$CC -V 2>&1 | sed 5q` in
13004             *Sun\ C*)
13005               # Sun C++ 5.9
13006               no_undefined_flag_CXX=' -zdefs'
13007               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13008               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13009               hardcode_libdir_flag_spec_CXX='-R$libdir'
13010               whole_archive_flag_spec_CXX='${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'
13011               compiler_needs_object_CXX=yes
13012
13013               # Not sure whether something based on
13014               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13015               # would be better.
13016               output_verbose_link_cmd='echo'
13017
13018               # Archives containing C++ object files must be created using
13019               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13020               # necessary to make sure instantiated templates are included
13021               # in the archive.
13022               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13023               ;;
13024             esac
13025             ;;
13026         esac
13027         ;;
13028
13029       lynxos*)
13030         # FIXME: insert proper C++ library support
13031         ld_shlibs_CXX=no
13032         ;;
13033
13034       m88k*)
13035         # FIXME: insert proper C++ library support
13036         ld_shlibs_CXX=no
13037         ;;
13038
13039       mvs*)
13040         case $cc_basename in
13041           cxx*)
13042             # FIXME: insert proper C++ library support
13043             ld_shlibs_CXX=no
13044             ;;
13045           *)
13046             # FIXME: insert proper C++ library support
13047             ld_shlibs_CXX=no
13048             ;;
13049         esac
13050         ;;
13051
13052       netbsd*)
13053         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13054           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13055           wlarc=
13056           hardcode_libdir_flag_spec_CXX='-R$libdir'
13057           hardcode_direct_CXX=yes
13058           hardcode_shlibpath_var_CXX=no
13059         fi
13060         # Workaround some broken pre-1.5 toolchains
13061         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13062         ;;
13063
13064       *nto* | *qnx*)
13065         ld_shlibs_CXX=yes
13066         ;;
13067
13068       openbsd2*)
13069         # C++ shared libraries are fairly broken
13070         ld_shlibs_CXX=no
13071         ;;
13072
13073       openbsd*)
13074         if test -f /usr/libexec/ld.so; then
13075           hardcode_direct_CXX=yes
13076           hardcode_shlibpath_var_CXX=no
13077           hardcode_direct_absolute_CXX=yes
13078           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13079           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13080           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13081             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13082             export_dynamic_flag_spec_CXX='${wl}-E'
13083             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13084           fi
13085           output_verbose_link_cmd=echo
13086         else
13087           ld_shlibs_CXX=no
13088         fi
13089         ;;
13090
13091       osf3* | osf4* | osf5*)
13092         case $cc_basename in
13093           KCC*)
13094             # Kuck and Associates, Inc. (KAI) C++ Compiler
13095
13096             # KCC will only create a shared library if the output file
13097             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13098             # to its proper name (with version) after linking.
13099             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13100
13101             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13102             hardcode_libdir_separator_CXX=:
13103
13104             # Archives containing C++ object files must be created using
13105             # the KAI C++ compiler.
13106             case $host in
13107               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13108               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13109             esac
13110             ;;
13111           RCC*)
13112             # Rational C++ 2.4.1
13113             # FIXME: insert proper C++ library support
13114             ld_shlibs_CXX=no
13115             ;;
13116           cxx*)
13117             case $host in
13118               osf3*)
13119                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13120                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13121                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13122                 ;;
13123               *)
13124                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13125                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13126                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13127                   echo "-hidden">> $lib.exp~
13128                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13129                   $RM $lib.exp'
13130                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13131                 ;;
13132             esac
13133
13134             hardcode_libdir_separator_CXX=:
13135
13136             # Commands to make compiler produce verbose output that lists
13137             # what "hidden" libraries, object files and flags are used when
13138             # linking a shared library.
13139             #
13140             # There doesn't appear to be a way to prevent this compiler from
13141             # explicitly linking system object files so we need to strip them
13142             # from the output so that they don't get included in the library
13143             # dependencies.
13144             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13145             ;;
13146           *)
13147             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13148               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13149               case $host in
13150                 osf3*)
13151                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13152                   ;;
13153                 *)
13154                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13155                   ;;
13156               esac
13157
13158               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13159               hardcode_libdir_separator_CXX=:
13160
13161               # Commands to make compiler produce verbose output that lists
13162               # what "hidden" libraries, object files and flags are used when
13163               # linking a shared library.
13164               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13165
13166             else
13167               # FIXME: insert proper C++ library support
13168               ld_shlibs_CXX=no
13169             fi
13170             ;;
13171         esac
13172         ;;
13173
13174       psos*)
13175         # FIXME: insert proper C++ library support
13176         ld_shlibs_CXX=no
13177         ;;
13178
13179       sunos4*)
13180         case $cc_basename in
13181           CC*)
13182             # Sun C++ 4.x
13183             # FIXME: insert proper C++ library support
13184             ld_shlibs_CXX=no
13185             ;;
13186           lcc*)
13187             # Lucid
13188             # FIXME: insert proper C++ library support
13189             ld_shlibs_CXX=no
13190             ;;
13191           *)
13192             # FIXME: insert proper C++ library support
13193             ld_shlibs_CXX=no
13194             ;;
13195         esac
13196         ;;
13197
13198       solaris*)
13199         case $cc_basename in
13200           CC*)
13201             # Sun C++ 4.2, 5.x and Centerline C++
13202             archive_cmds_need_lc_CXX=yes
13203             no_undefined_flag_CXX=' -zdefs'
13204             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13205             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13206               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13207
13208             hardcode_libdir_flag_spec_CXX='-R$libdir'
13209             hardcode_shlibpath_var_CXX=no
13210             case $host_os in
13211               solaris2.[0-5] | solaris2.[0-5].*) ;;
13212               *)
13213                 # The compiler driver will combine and reorder linker options,
13214                 # but understands `-z linker_flag'.
13215                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13216                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13217                 ;;
13218             esac
13219             link_all_deplibs_CXX=yes
13220
13221             output_verbose_link_cmd='echo'
13222
13223             # Archives containing C++ object files must be created using
13224             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13225             # necessary to make sure instantiated templates are included
13226             # in the archive.
13227             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13228             ;;
13229           gcx*)
13230             # Green Hills C++ Compiler
13231             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13232
13233             # The C++ compiler must be used to create the archive.
13234             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13235             ;;
13236           *)
13237             # GNU C++ compiler with Solaris linker
13238             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13239               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13240               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13241                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13242                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13243                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13244
13245                 # Commands to make compiler produce verbose output that lists
13246                 # what "hidden" libraries, object files and flags are used when
13247                 # linking a shared library.
13248                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13249               else
13250                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13251                 # platform.
13252                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13253                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13254                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13255
13256                 # Commands to make compiler produce verbose output that lists
13257                 # what "hidden" libraries, object files and flags are used when
13258                 # linking a shared library.
13259                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13260               fi
13261
13262               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13263               case $host_os in
13264                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13265                 *)
13266                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13267                   ;;
13268               esac
13269             fi
13270             ;;
13271         esac
13272         ;;
13273
13274     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13275       no_undefined_flag_CXX='${wl}-z,text'
13276       archive_cmds_need_lc_CXX=no
13277       hardcode_shlibpath_var_CXX=no
13278       runpath_var='LD_RUN_PATH'
13279
13280       case $cc_basename in
13281         CC*)
13282           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13283           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13284           ;;
13285         *)
13286           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13287           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13288           ;;
13289       esac
13290       ;;
13291
13292       sysv5* | sco3.2v5* | sco5v6*)
13293         # Note: We can NOT use -z defs as we might desire, because we do not
13294         # link with -lc, and that would cause any symbols used from libc to
13295         # always be unresolved, which means just about no library would
13296         # ever link correctly.  If we're not using GNU ld we use -z text
13297         # though, which does catch some bad symbols but isn't as heavy-handed
13298         # as -z defs.
13299         no_undefined_flag_CXX='${wl}-z,text'
13300         allow_undefined_flag_CXX='${wl}-z,nodefs'
13301         archive_cmds_need_lc_CXX=no
13302         hardcode_shlibpath_var_CXX=no
13303         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13304         hardcode_libdir_separator_CXX=':'
13305         link_all_deplibs_CXX=yes
13306         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13307         runpath_var='LD_RUN_PATH'
13308
13309         case $cc_basename in
13310           CC*)
13311             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13312             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13313             ;;
13314           *)
13315             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13316             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13317             ;;
13318         esac
13319       ;;
13320
13321       tandem*)
13322         case $cc_basename in
13323           NCC*)
13324             # NonStop-UX NCC 3.20
13325             # FIXME: insert proper C++ library support
13326             ld_shlibs_CXX=no
13327             ;;
13328           *)
13329             # FIXME: insert proper C++ library support
13330             ld_shlibs_CXX=no
13331             ;;
13332         esac
13333         ;;
13334
13335       vxworks*)
13336         # FIXME: insert proper C++ library support
13337         ld_shlibs_CXX=no
13338         ;;
13339
13340       *)
13341         # FIXME: insert proper C++ library support
13342         ld_shlibs_CXX=no
13343         ;;
13344     esac
13345
13346     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13347 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13348     test "$ld_shlibs_CXX" = no && can_build_shared=no
13349
13350     GCC_CXX="$GXX"
13351     LD_CXX="$LD"
13352
13353     ## CAVEAT EMPTOR:
13354     ## There is no encapsulation within the following macros, do not change
13355     ## the running order or otherwise move them around unless you know exactly
13356     ## what you are doing...
13357     # Dependencies to place before and after the object being linked:
13358 predep_objects_CXX=
13359 postdep_objects_CXX=
13360 predeps_CXX=
13361 postdeps_CXX=
13362 compiler_lib_search_path_CXX=
13363
13364 cat > conftest.$ac_ext <<_LT_EOF
13365 class Foo
13366 {
13367 public:
13368   Foo (void) { a = 0; }
13369 private:
13370   int a;
13371 };
13372 _LT_EOF
13373
13374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13375   (eval $ac_compile) 2>&5
13376   ac_status=$?
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); }; then
13379   # Parse the compiler output and extract the necessary
13380   # objects, libraries and library flags.
13381
13382   # Sentinel used to keep track of whether or not we are before
13383   # the conftest object file.
13384   pre_test_object_deps_done=no
13385
13386   for p in `eval "$output_verbose_link_cmd"`; do
13387     case $p in
13388
13389     -L* | -R* | -l*)
13390        # Some compilers place space between "-{L,R}" and the path.
13391        # Remove the space.
13392        if test $p = "-L" ||
13393           test $p = "-R"; then
13394          prev=$p
13395          continue
13396        else
13397          prev=
13398        fi
13399
13400        if test "$pre_test_object_deps_done" = no; then
13401          case $p in
13402          -L* | -R*)
13403            # Internal compiler library paths should come after those
13404            # provided the user.  The postdeps already come after the
13405            # user supplied libs so there is no need to process them.
13406            if test -z "$compiler_lib_search_path_CXX"; then
13407              compiler_lib_search_path_CXX="${prev}${p}"
13408            else
13409              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13410            fi
13411            ;;
13412          # The "-l" case would never come before the object being
13413          # linked, so don't bother handling this case.
13414          esac
13415        else
13416          if test -z "$postdeps_CXX"; then
13417            postdeps_CXX="${prev}${p}"
13418          else
13419            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13420          fi
13421        fi
13422        ;;
13423
13424     *.$objext)
13425        # This assumes that the test object file only shows up
13426        # once in the compiler output.
13427        if test "$p" = "conftest.$objext"; then
13428          pre_test_object_deps_done=yes
13429          continue
13430        fi
13431
13432        if test "$pre_test_object_deps_done" = no; then
13433          if test -z "$predep_objects_CXX"; then
13434            predep_objects_CXX="$p"
13435          else
13436            predep_objects_CXX="$predep_objects_CXX $p"
13437          fi
13438        else
13439          if test -z "$postdep_objects_CXX"; then
13440            postdep_objects_CXX="$p"
13441          else
13442            postdep_objects_CXX="$postdep_objects_CXX $p"
13443          fi
13444        fi
13445        ;;
13446
13447     *) ;; # Ignore the rest.
13448
13449     esac
13450   done
13451
13452   # Clean up.
13453   rm -f a.out a.exe
13454 else
13455   echo "libtool.m4: error: problem compiling CXX test program"
13456 fi
13457
13458 $RM -f confest.$objext
13459
13460 # PORTME: override above test on systems where it is broken
13461 case $host_os in
13462 interix[3-9]*)
13463   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13464   # hack all around it, let's just trust "g++" to DTRT.
13465   predep_objects_CXX=
13466   postdep_objects_CXX=
13467   postdeps_CXX=
13468   ;;
13469
13470 linux*)
13471   case `$CC -V 2>&1 | sed 5q` in
13472   *Sun\ C*)
13473     # Sun C++ 5.9
13474
13475     # The more standards-conforming stlport4 library is
13476     # incompatible with the Cstd library. Avoid specifying
13477     # it if it's in CXXFLAGS. Ignore libCrun as
13478     # -library=stlport4 depends on it.
13479     case " $CXX $CXXFLAGS " in
13480     *" -library=stlport4 "*)
13481       solaris_use_stlport4=yes
13482       ;;
13483     esac
13484
13485     if test "$solaris_use_stlport4" != yes; then
13486       postdeps_CXX='-library=Cstd -library=Crun'
13487     fi
13488     ;;
13489   esac
13490   ;;
13491
13492 solaris*)
13493   case $cc_basename in
13494   CC*)
13495     # The more standards-conforming stlport4 library is
13496     # incompatible with the Cstd library. Avoid specifying
13497     # it if it's in CXXFLAGS. Ignore libCrun as
13498     # -library=stlport4 depends on it.
13499     case " $CXX $CXXFLAGS " in
13500     *" -library=stlport4 "*)
13501       solaris_use_stlport4=yes
13502       ;;
13503     esac
13504
13505     # Adding this requires a known-good setup of shared libraries for
13506     # Sun compiler versions before 5.6, else PIC objects from an old
13507     # archive will be linked into the output, leading to subtle bugs.
13508     if test "$solaris_use_stlport4" != yes; then
13509       postdeps_CXX='-library=Cstd -library=Crun'
13510     fi
13511     ;;
13512   esac
13513   ;;
13514 esac
13515
13516
13517 case " $postdeps_CXX " in
13518 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13519 esac
13520  compiler_lib_search_dirs_CXX=
13521 if test -n "${compiler_lib_search_path_CXX}"; then
13522  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13523 fi
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555     lt_prog_compiler_wl_CXX=
13556 lt_prog_compiler_pic_CXX=
13557 lt_prog_compiler_static_CXX=
13558
13559 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13560 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13561
13562   # C++ specific cases for pic, static, wl, etc.
13563   if test "$GXX" = yes; then
13564     lt_prog_compiler_wl_CXX='-Wl,'
13565     lt_prog_compiler_static_CXX='-static'
13566
13567     case $host_os in
13568     aix*)
13569       # All AIX code is PIC.
13570       if test "$host_cpu" = ia64; then
13571         # AIX 5 now supports IA64 processor
13572         lt_prog_compiler_static_CXX='-Bstatic'
13573       fi
13574       ;;
13575
13576     amigaos*)
13577       case $host_cpu in
13578       powerpc)
13579             # see comment about AmigaOS4 .so support
13580             lt_prog_compiler_pic_CXX='-fPIC'
13581         ;;
13582       m68k)
13583             # FIXME: we need at least 68020 code to build shared libraries, but
13584             # adding the `-m68020' flag to GCC prevents building anything better,
13585             # like `-m68040'.
13586             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13587         ;;
13588       esac
13589       ;;
13590
13591     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13592       # PIC is the default for these OSes.
13593       ;;
13594     mingw* | cygwin* | os2* | pw32*)
13595       # This hack is so that the source file can tell whether it is being
13596       # built for inclusion in a dll (and should export symbols for example).
13597       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13598       # (--disable-auto-import) libraries
13599       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13600       ;;
13601     darwin* | rhapsody*)
13602       # PIC is the default on this platform
13603       # Common symbols not allowed in MH_DYLIB files
13604       lt_prog_compiler_pic_CXX='-fno-common'
13605       ;;
13606     *djgpp*)
13607       # DJGPP does not support shared libraries at all
13608       lt_prog_compiler_pic_CXX=
13609       ;;
13610     interix[3-9]*)
13611       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13612       # Instead, we relocate shared libraries at runtime.
13613       ;;
13614     sysv4*MP*)
13615       if test -d /usr/nec; then
13616         lt_prog_compiler_pic_CXX=-Kconform_pic
13617       fi
13618       ;;
13619     hpux*)
13620       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13621       # not for PA HP-UX.
13622       case $host_cpu in
13623       hppa*64*|ia64*)
13624         ;;
13625       *)
13626         lt_prog_compiler_pic_CXX='-fPIC'
13627         ;;
13628       esac
13629       ;;
13630     *qnx* | *nto*)
13631       # QNX uses GNU C++, but need to define -shared option too, otherwise
13632       # it will coredump.
13633       lt_prog_compiler_pic_CXX='-fPIC -shared'
13634       ;;
13635     *)
13636       lt_prog_compiler_pic_CXX='-fPIC'
13637       ;;
13638     esac
13639   else
13640     case $host_os in
13641       aix[4-9]*)
13642         # All AIX code is PIC.
13643         if test "$host_cpu" = ia64; then
13644           # AIX 5 now supports IA64 processor
13645           lt_prog_compiler_static_CXX='-Bstatic'
13646         else
13647           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13648         fi
13649         ;;
13650       chorus*)
13651         case $cc_basename in
13652         cxch68*)
13653           # Green Hills C++ Compiler
13654           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13655           ;;
13656         esac
13657         ;;
13658       dgux*)
13659         case $cc_basename in
13660           ec++*)
13661             lt_prog_compiler_pic_CXX='-KPIC'
13662             ;;
13663           ghcx*)
13664             # Green Hills C++ Compiler
13665             lt_prog_compiler_pic_CXX='-pic'
13666             ;;
13667           *)
13668             ;;
13669         esac
13670         ;;
13671       freebsd* | dragonfly*)
13672         # FreeBSD uses GNU C++
13673         ;;
13674       hpux9* | hpux10* | hpux11*)
13675         case $cc_basename in
13676           CC*)
13677             lt_prog_compiler_wl_CXX='-Wl,'
13678             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13679             if test "$host_cpu" != ia64; then
13680               lt_prog_compiler_pic_CXX='+Z'
13681             fi
13682             ;;
13683           aCC*)
13684             lt_prog_compiler_wl_CXX='-Wl,'
13685             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13686             case $host_cpu in
13687             hppa*64*|ia64*)
13688               # +Z the default
13689               ;;
13690             *)
13691               lt_prog_compiler_pic_CXX='+Z'
13692               ;;
13693             esac
13694             ;;
13695           *)
13696             ;;
13697         esac
13698         ;;
13699       interix*)
13700         # This is c89, which is MS Visual C++ (no shared libs)
13701         # Anyone wants to do a port?
13702         ;;
13703       irix5* | irix6* | nonstopux*)
13704         case $cc_basename in
13705           CC*)
13706             lt_prog_compiler_wl_CXX='-Wl,'
13707             lt_prog_compiler_static_CXX='-non_shared'
13708             # CC pic flag -KPIC is the default.
13709             ;;
13710           *)
13711             ;;
13712         esac
13713         ;;
13714       linux* | k*bsd*-gnu)
13715         case $cc_basename in
13716           KCC*)
13717             # KAI C++ Compiler
13718             lt_prog_compiler_wl_CXX='--backend -Wl,'
13719             lt_prog_compiler_pic_CXX='-fPIC'
13720             ;;
13721           icpc* | ecpc* )
13722             # Intel C++
13723             lt_prog_compiler_wl_CXX='-Wl,'
13724             lt_prog_compiler_pic_CXX='-KPIC'
13725             lt_prog_compiler_static_CXX='-static'
13726             ;;
13727           pgCC* | pgcpp*)
13728             # Portland Group C++ compiler
13729             lt_prog_compiler_wl_CXX='-Wl,'
13730             lt_prog_compiler_pic_CXX='-fpic'
13731             lt_prog_compiler_static_CXX='-Bstatic'
13732             ;;
13733           cxx*)
13734             # Compaq C++
13735             # Make sure the PIC flag is empty.  It appears that all Alpha
13736             # Linux and Compaq Tru64 Unix objects are PIC.
13737             lt_prog_compiler_pic_CXX=
13738             lt_prog_compiler_static_CXX='-non_shared'
13739             ;;
13740           xlc* | xlC*)
13741             # IBM XL 8.0 on PPC
13742             lt_prog_compiler_wl_CXX='-Wl,'
13743             lt_prog_compiler_pic_CXX='-qpic'
13744             lt_prog_compiler_static_CXX='-qstaticlink'
13745             ;;
13746           *)
13747             case `$CC -V 2>&1 | sed 5q` in
13748             *Sun\ C*)
13749               # Sun C++ 5.9
13750               lt_prog_compiler_pic_CXX='-KPIC'
13751               lt_prog_compiler_static_CXX='-Bstatic'
13752               lt_prog_compiler_wl_CXX='-Qoption ld '
13753               ;;
13754             esac
13755             ;;
13756         esac
13757         ;;
13758       lynxos*)
13759         ;;
13760       m88k*)
13761         ;;
13762       mvs*)
13763         case $cc_basename in
13764           cxx*)
13765             lt_prog_compiler_pic_CXX='-W c,exportall'
13766             ;;
13767           *)
13768             ;;
13769         esac
13770         ;;
13771       netbsd*)
13772         ;;
13773       *qnx* | *nto*)
13774         # QNX uses GNU C++, but need to define -shared option too, otherwise
13775         # it will coredump.
13776         lt_prog_compiler_pic_CXX='-fPIC -shared'
13777         ;;
13778       osf3* | osf4* | osf5*)
13779         case $cc_basename in
13780           KCC*)
13781             lt_prog_compiler_wl_CXX='--backend -Wl,'
13782             ;;
13783           RCC*)
13784             # Rational C++ 2.4.1
13785             lt_prog_compiler_pic_CXX='-pic'
13786             ;;
13787           cxx*)
13788             # Digital/Compaq C++
13789             lt_prog_compiler_wl_CXX='-Wl,'
13790             # Make sure the PIC flag is empty.  It appears that all Alpha
13791             # Linux and Compaq Tru64 Unix objects are PIC.
13792             lt_prog_compiler_pic_CXX=
13793             lt_prog_compiler_static_CXX='-non_shared'
13794             ;;
13795           *)
13796             ;;
13797         esac
13798         ;;
13799       psos*)
13800         ;;
13801       solaris*)
13802         case $cc_basename in
13803           CC*)
13804             # Sun C++ 4.2, 5.x and Centerline C++
13805             lt_prog_compiler_pic_CXX='-KPIC'
13806             lt_prog_compiler_static_CXX='-Bstatic'
13807             lt_prog_compiler_wl_CXX='-Qoption ld '
13808             ;;
13809           gcx*)
13810             # Green Hills C++ Compiler
13811             lt_prog_compiler_pic_CXX='-PIC'
13812             ;;
13813           *)
13814             ;;
13815         esac
13816         ;;
13817       sunos4*)
13818         case $cc_basename in
13819           CC*)
13820             # Sun C++ 4.x
13821             lt_prog_compiler_pic_CXX='-pic'
13822             lt_prog_compiler_static_CXX='-Bstatic'
13823             ;;
13824           lcc*)
13825             # Lucid
13826             lt_prog_compiler_pic_CXX='-pic'
13827             ;;
13828           *)
13829             ;;
13830         esac
13831         ;;
13832       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13833         case $cc_basename in
13834           CC*)
13835             lt_prog_compiler_wl_CXX='-Wl,'
13836             lt_prog_compiler_pic_CXX='-KPIC'
13837             lt_prog_compiler_static_CXX='-Bstatic'
13838             ;;
13839         esac
13840         ;;
13841       tandem*)
13842         case $cc_basename in
13843           NCC*)
13844             # NonStop-UX NCC 3.20
13845             lt_prog_compiler_pic_CXX='-KPIC'
13846             ;;
13847           *)
13848             ;;
13849         esac
13850         ;;
13851       vxworks*)
13852         ;;
13853       *)
13854         lt_prog_compiler_can_build_shared_CXX=no
13855         ;;
13856     esac
13857   fi
13858
13859 case $host_os in
13860   # For platforms which do not support PIC, -DPIC is meaningless:
13861   *djgpp*)
13862     lt_prog_compiler_pic_CXX=
13863     ;;
13864   *)
13865     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13866     ;;
13867 esac
13868 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13869 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13870
13871
13872
13873 #
13874 # Check to make sure the PIC flag actually works.
13875 #
13876 if test -n "$lt_prog_compiler_pic_CXX"; then
13877   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13878 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13879 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13880   echo $ECHO_N "(cached) $ECHO_C" >&6
13881 else
13882   lt_cv_prog_compiler_pic_works_CXX=no
13883    ac_outfile=conftest.$ac_objext
13884    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13885    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13886    # Insert the option either (1) after the last *FLAGS variable, or
13887    # (2) before a word containing "conftest.", or (3) at the end.
13888    # Note that $ac_compile itself does not contain backslashes and begins
13889    # with a dollar sign (not a hyphen), so the echo should work correctly.
13890    # The option is referenced via a variable to avoid confusing sed.
13891    lt_compile=`echo "$ac_compile" | $SED \
13892    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13893    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13894    -e 's:$: $lt_compiler_flag:'`
13895    (eval echo "\"\$as_me:13895: $lt_compile\"" >&5)
13896    (eval "$lt_compile" 2>conftest.err)
13897    ac_status=$?
13898    cat conftest.err >&5
13899    echo "$as_me:13899: \$? = $ac_status" >&5
13900    if (exit $ac_status) && test -s "$ac_outfile"; then
13901      # The compiler can only warn and ignore the option if not recognized
13902      # So say no if there are warnings other than the usual output.
13903      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13904      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13905      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13906        lt_cv_prog_compiler_pic_works_CXX=yes
13907      fi
13908    fi
13909    $RM conftest*
13910
13911 fi
13912 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13913 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13914
13915 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13916     case $lt_prog_compiler_pic_CXX in
13917      "" | " "*) ;;
13918      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13919      esac
13920 else
13921     lt_prog_compiler_pic_CXX=
13922      lt_prog_compiler_can_build_shared_CXX=no
13923 fi
13924
13925 fi
13926
13927
13928
13929 #
13930 # Check to make sure the static flag actually works.
13931 #
13932 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13933 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13934 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13935 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13936   echo $ECHO_N "(cached) $ECHO_C" >&6
13937 else
13938   lt_cv_prog_compiler_static_works_CXX=no
13939    save_LDFLAGS="$LDFLAGS"
13940    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13941    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13942    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13943      # The linker can only warn and ignore the option if not recognized
13944      # So say no if there are warnings
13945      if test -s conftest.err; then
13946        # Append any errors to the config.log.
13947        cat conftest.err 1>&5
13948        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13949        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13950        if diff conftest.exp conftest.er2 >/dev/null; then
13951          lt_cv_prog_compiler_static_works_CXX=yes
13952        fi
13953      else
13954        lt_cv_prog_compiler_static_works_CXX=yes
13955      fi
13956    fi
13957    $RM -r conftest*
13958    LDFLAGS="$save_LDFLAGS"
13959
13960 fi
13961 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13962 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13963
13964 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13965     :
13966 else
13967     lt_prog_compiler_static_CXX=
13968 fi
13969
13970
13971
13972
13973     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13974 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13975 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13976   echo $ECHO_N "(cached) $ECHO_C" >&6
13977 else
13978   lt_cv_prog_compiler_c_o_CXX=no
13979    $RM -r conftest 2>/dev/null
13980    mkdir conftest
13981    cd conftest
13982    mkdir out
13983    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13984
13985    lt_compiler_flag="-o out/conftest2.$ac_objext"
13986    # Insert the option either (1) after the last *FLAGS variable, or
13987    # (2) before a word containing "conftest.", or (3) at the end.
13988    # Note that $ac_compile itself does not contain backslashes and begins
13989    # with a dollar sign (not a hyphen), so the echo should work correctly.
13990    lt_compile=`echo "$ac_compile" | $SED \
13991    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13992    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13993    -e 's:$: $lt_compiler_flag:'`
13994    (eval echo "\"\$as_me:13994: $lt_compile\"" >&5)
13995    (eval "$lt_compile" 2>out/conftest.err)
13996    ac_status=$?
13997    cat out/conftest.err >&5
13998    echo "$as_me:13998: \$? = $ac_status" >&5
13999    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14000    then
14001      # The compiler can only warn and ignore the option if not recognized
14002      # So say no if there are warnings
14003      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14004      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14005      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14006        lt_cv_prog_compiler_c_o_CXX=yes
14007      fi
14008    fi
14009    chmod u+w . 2>&5
14010    $RM conftest*
14011    # SGI C++ compiler will create directory out/ii_files/ for
14012    # template instantiation
14013    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14014    $RM out/* && rmdir out
14015    cd ..
14016    $RM -r conftest
14017    $RM conftest*
14018
14019 fi
14020 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14021 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14022
14023
14024
14025     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14026 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14027 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14028   echo $ECHO_N "(cached) $ECHO_C" >&6
14029 else
14030   lt_cv_prog_compiler_c_o_CXX=no
14031    $RM -r conftest 2>/dev/null
14032    mkdir conftest
14033    cd conftest
14034    mkdir out
14035    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14036
14037    lt_compiler_flag="-o out/conftest2.$ac_objext"
14038    # Insert the option either (1) after the last *FLAGS variable, or
14039    # (2) before a word containing "conftest.", or (3) at the end.
14040    # Note that $ac_compile itself does not contain backslashes and begins
14041    # with a dollar sign (not a hyphen), so the echo should work correctly.
14042    lt_compile=`echo "$ac_compile" | $SED \
14043    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14044    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14045    -e 's:$: $lt_compiler_flag:'`
14046    (eval echo "\"\$as_me:14046: $lt_compile\"" >&5)
14047    (eval "$lt_compile" 2>out/conftest.err)
14048    ac_status=$?
14049    cat out/conftest.err >&5
14050    echo "$as_me:14050: \$? = $ac_status" >&5
14051    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14052    then
14053      # The compiler can only warn and ignore the option if not recognized
14054      # So say no if there are warnings
14055      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14056      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14057      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14058        lt_cv_prog_compiler_c_o_CXX=yes
14059      fi
14060    fi
14061    chmod u+w . 2>&5
14062    $RM conftest*
14063    # SGI C++ compiler will create directory out/ii_files/ for
14064    # template instantiation
14065    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14066    $RM out/* && rmdir out
14067    cd ..
14068    $RM -r conftest
14069    $RM conftest*
14070
14071 fi
14072 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14073 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14074
14075
14076
14077
14078 hard_links="nottested"
14079 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14080   # do not overwrite the value of need_locks provided by the user
14081   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14082 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14083   hard_links=yes
14084   $RM conftest*
14085   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14086   touch conftest.a
14087   ln conftest.a conftest.b 2>&5 || hard_links=no
14088   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14089   { echo "$as_me:$LINENO: result: $hard_links" >&5
14090 echo "${ECHO_T}$hard_links" >&6; }
14091   if test "$hard_links" = no; then
14092     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14093 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14094     need_locks=warn
14095   fi
14096 else
14097   need_locks=no
14098 fi
14099
14100
14101
14102     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14103 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14104
14105   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14106   case $host_os in
14107   aix[4-9]*)
14108     # If we're using GNU nm, then we don't want the "-C" option.
14109     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14110     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14111       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14112     else
14113       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14114     fi
14115     ;;
14116   pw32*)
14117     export_symbols_cmds_CXX="$ltdll_cmds"
14118   ;;
14119   cygwin* | mingw*)
14120     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14121   ;;
14122   *)
14123     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14124   ;;
14125   esac
14126   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14127
14128 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14129 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14130 test "$ld_shlibs_CXX" = no && can_build_shared=no
14131
14132 with_gnu_ld_CXX=$with_gnu_ld
14133
14134
14135
14136
14137
14138
14139 #
14140 # Do we need to explicitly link libc?
14141 #
14142 case "x$archive_cmds_need_lc_CXX" in
14143 x|xyes)
14144   # Assume -lc should be added
14145   archive_cmds_need_lc_CXX=yes
14146
14147   if test "$enable_shared" = yes && test "$GCC" = yes; then
14148     case $archive_cmds_CXX in
14149     *'~'*)
14150       # FIXME: we may have to deal with multi-command sequences.
14151       ;;
14152     '$CC '*)
14153       # Test whether the compiler implicitly links with -lc since on some
14154       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14155       # to ld, don't add -lc before -lgcc.
14156       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14157 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14158       $RM conftest*
14159       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14160
14161       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14162   (eval $ac_compile) 2>&5
14163   ac_status=$?
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); } 2>conftest.err; then
14166         soname=conftest
14167         lib=conftest
14168         libobjs=conftest.$ac_objext
14169         deplibs=
14170         wl=$lt_prog_compiler_wl_CXX
14171         pic_flag=$lt_prog_compiler_pic_CXX
14172         compiler_flags=-v
14173         linker_flags=-v
14174         verstring=
14175         output_objdir=.
14176         libname=conftest
14177         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14178         allow_undefined_flag_CXX=
14179         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14180   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14181   ac_status=$?
14182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183   (exit $ac_status); }
14184         then
14185           archive_cmds_need_lc_CXX=no
14186         else
14187           archive_cmds_need_lc_CXX=yes
14188         fi
14189         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14190       else
14191         cat conftest.err 1>&5
14192       fi
14193       $RM conftest*
14194       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14195 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14196       ;;
14197     esac
14198   fi
14199   ;;
14200 esac
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14266 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14267
14268 library_names_spec=
14269 libname_spec='lib$name'
14270 soname_spec=
14271 shrext_cmds=".so"
14272 postinstall_cmds=
14273 postuninstall_cmds=
14274 finish_cmds=
14275 finish_eval=
14276 shlibpath_var=
14277 shlibpath_overrides_runpath=unknown
14278 version_type=none
14279 dynamic_linker="$host_os ld.so"
14280 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14281 need_lib_prefix=unknown
14282 hardcode_into_libs=no
14283
14284 # when you set need_version to no, make sure it does not cause -set_version
14285 # flags to be left without arguments
14286 need_version=unknown
14287
14288 case $host_os in
14289 aix3*)
14290   version_type=linux
14291   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14292   shlibpath_var=LIBPATH
14293
14294   # AIX 3 has no versioning support, so we append a major version to the name.
14295   soname_spec='${libname}${release}${shared_ext}$major'
14296   ;;
14297
14298 aix[4-9]*)
14299   version_type=linux
14300   need_lib_prefix=no
14301   need_version=no
14302   hardcode_into_libs=yes
14303   if test "$host_cpu" = ia64; then
14304     # AIX 5 supports IA64
14305     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14306     shlibpath_var=LD_LIBRARY_PATH
14307   else
14308     # With GCC up to 2.95.x, collect2 would create an import file
14309     # for dependence libraries.  The import file would start with
14310     # the line `#! .'.  This would cause the generated library to
14311     # depend on `.', always an invalid library.  This was fixed in
14312     # development snapshots of GCC prior to 3.0.
14313     case $host_os in
14314       aix4 | aix4.[01] | aix4.[01].*)
14315       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14316            echo ' yes '
14317            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14318         :
14319       else
14320         can_build_shared=no
14321       fi
14322       ;;
14323     esac
14324     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14325     # soname into executable. Probably we can add versioning support to
14326     # collect2, so additional links can be useful in future.
14327     if test "$aix_use_runtimelinking" = yes; then
14328       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14329       # instead of lib<name>.a to let people know that these are not
14330       # typical AIX shared libraries.
14331       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14332     else
14333       # We preserve .a as extension for shared libraries through AIX4.2
14334       # and later when we are not doing run time linking.
14335       library_names_spec='${libname}${release}.a $libname.a'
14336       soname_spec='${libname}${release}${shared_ext}$major'
14337     fi
14338     shlibpath_var=LIBPATH
14339   fi
14340   ;;
14341
14342 amigaos*)
14343   case $host_cpu in
14344   powerpc)
14345     # Since July 2007 AmigaOS4 officially supports .so libraries.
14346     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14347     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14348     ;;
14349   m68k)
14350     library_names_spec='$libname.ixlibrary $libname.a'
14351     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14352     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'
14353     ;;
14354   esac
14355   ;;
14356
14357 beos*)
14358   library_names_spec='${libname}${shared_ext}'
14359   dynamic_linker="$host_os ld.so"
14360   shlibpath_var=LIBRARY_PATH
14361   ;;
14362
14363 bsdi[45]*)
14364   version_type=linux
14365   need_version=no
14366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14367   soname_spec='${libname}${release}${shared_ext}$major'
14368   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14369   shlibpath_var=LD_LIBRARY_PATH
14370   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14371   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14372   # the default ld.so.conf also contains /usr/contrib/lib and
14373   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14374   # libtool to hard-code these into programs
14375   ;;
14376
14377 cygwin* | mingw* | pw32*)
14378   version_type=windows
14379   shrext_cmds=".dll"
14380   need_version=no
14381   need_lib_prefix=no
14382
14383   case $GCC,$host_os in
14384   yes,cygwin* | yes,mingw* | yes,pw32*)
14385     library_names_spec='$libname.dll.a'
14386     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14387     postinstall_cmds='base_file=`basename \${file}`~
14388       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14389       dldir=$destdir/`dirname \$dlpath`~
14390       test -d \$dldir || mkdir -p \$dldir~
14391       $install_prog $dir/$dlname \$dldir/$dlname~
14392       chmod a+x \$dldir/$dlname~
14393       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14394         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14395       fi'
14396     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14397       dlpath=$dir/\$dldll~
14398        $RM \$dlpath'
14399     shlibpath_overrides_runpath=yes
14400
14401     case $host_os in
14402     cygwin*)
14403       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14404       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14405       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14406       ;;
14407     mingw*)
14408       # MinGW DLLs use traditional 'lib' prefix
14409       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14410       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14411       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14412         # It is most probably a Windows format PATH printed by
14413         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14414         # path with ; separators, and with drive letters. We can handle the
14415         # drive letters (cygwin fileutils understands them), so leave them,
14416         # especially as we might pass files found there to a mingw objdump,
14417         # which wouldn't understand a cygwinified path. Ahh.
14418         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14419       else
14420         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14421       fi
14422       ;;
14423     pw32*)
14424       # pw32 DLLs use 'pw' prefix rather than 'lib'
14425       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14426       ;;
14427     esac
14428     ;;
14429
14430   *)
14431     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14432     ;;
14433   esac
14434   dynamic_linker='Win32 ld.exe'
14435   # FIXME: first we should search . and the directory the executable is in
14436   shlibpath_var=PATH
14437   ;;
14438
14439 darwin* | rhapsody*)
14440   dynamic_linker="$host_os dyld"
14441   version_type=darwin
14442   need_lib_prefix=no
14443   need_version=no
14444   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14445   soname_spec='${libname}${release}${major}$shared_ext'
14446   shlibpath_overrides_runpath=yes
14447   shlibpath_var=DYLD_LIBRARY_PATH
14448   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14449
14450   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14451   ;;
14452
14453 dgux*)
14454   version_type=linux
14455   need_lib_prefix=no
14456   need_version=no
14457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14458   soname_spec='${libname}${release}${shared_ext}$major'
14459   shlibpath_var=LD_LIBRARY_PATH
14460   ;;
14461
14462 freebsd1*)
14463   dynamic_linker=no
14464   ;;
14465
14466 freebsd* | dragonfly*)
14467   # DragonFly does not have aout.  When/if they implement a new
14468   # versioning mechanism, adjust this.
14469   if test -x /usr/bin/objformat; then
14470     objformat=`/usr/bin/objformat`
14471   else
14472     case $host_os in
14473     freebsd[123]*) objformat=aout ;;
14474     *) objformat=elf ;;
14475     esac
14476   fi
14477   version_type=freebsd-$objformat
14478   case $version_type in
14479     freebsd-elf*)
14480       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14481       need_version=no
14482       need_lib_prefix=no
14483       ;;
14484     freebsd-*)
14485       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14486       need_version=yes
14487       ;;
14488   esac
14489   shlibpath_var=LD_LIBRARY_PATH
14490   case $host_os in
14491   freebsd2*)
14492     shlibpath_overrides_runpath=yes
14493     ;;
14494   freebsd3.[01]* | freebsdelf3.[01]*)
14495     shlibpath_overrides_runpath=yes
14496     hardcode_into_libs=yes
14497     ;;
14498   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14499   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14500     shlibpath_overrides_runpath=no
14501     hardcode_into_libs=yes
14502     ;;
14503   *) # from 4.6 on, and DragonFly
14504     shlibpath_overrides_runpath=yes
14505     hardcode_into_libs=yes
14506     ;;
14507   esac
14508   ;;
14509
14510 gnu*)
14511   version_type=linux
14512   need_lib_prefix=no
14513   need_version=no
14514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14515   soname_spec='${libname}${release}${shared_ext}$major'
14516   shlibpath_var=LD_LIBRARY_PATH
14517   hardcode_into_libs=yes
14518   ;;
14519
14520 hpux9* | hpux10* | hpux11*)
14521   # Give a soname corresponding to the major version so that dld.sl refuses to
14522   # link against other versions.
14523   version_type=sunos
14524   need_lib_prefix=no
14525   need_version=no
14526   case $host_cpu in
14527   ia64*)
14528     shrext_cmds='.so'
14529     hardcode_into_libs=yes
14530     dynamic_linker="$host_os dld.so"
14531     shlibpath_var=LD_LIBRARY_PATH
14532     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14533     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14534     soname_spec='${libname}${release}${shared_ext}$major'
14535     if test "X$HPUX_IA64_MODE" = X32; then
14536       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14537     else
14538       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14539     fi
14540     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14541     ;;
14542   hppa*64*)
14543     shrext_cmds='.sl'
14544     hardcode_into_libs=yes
14545     dynamic_linker="$host_os dld.sl"
14546     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14547     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14548     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14549     soname_spec='${libname}${release}${shared_ext}$major'
14550     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14551     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14552     ;;
14553   *)
14554     shrext_cmds='.sl'
14555     dynamic_linker="$host_os dld.sl"
14556     shlibpath_var=SHLIB_PATH
14557     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14558     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14559     soname_spec='${libname}${release}${shared_ext}$major'
14560     ;;
14561   esac
14562   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14563   postinstall_cmds='chmod 555 $lib'
14564   ;;
14565
14566 interix[3-9]*)
14567   version_type=linux
14568   need_lib_prefix=no
14569   need_version=no
14570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14571   soname_spec='${libname}${release}${shared_ext}$major'
14572   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14573   shlibpath_var=LD_LIBRARY_PATH
14574   shlibpath_overrides_runpath=no
14575   hardcode_into_libs=yes
14576   ;;
14577
14578 irix5* | irix6* | nonstopux*)
14579   case $host_os in
14580     nonstopux*) version_type=nonstopux ;;
14581     *)
14582         if test "$lt_cv_prog_gnu_ld" = yes; then
14583                 version_type=linux
14584         else
14585                 version_type=irix
14586         fi ;;
14587   esac
14588   need_lib_prefix=no
14589   need_version=no
14590   soname_spec='${libname}${release}${shared_ext}$major'
14591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14592   case $host_os in
14593   irix5* | nonstopux*)
14594     libsuff= shlibsuff=
14595     ;;
14596   *)
14597     case $LD in # libtool.m4 will add one of these switches to LD
14598     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14599       libsuff= shlibsuff= libmagic=32-bit;;
14600     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14601       libsuff=32 shlibsuff=N32 libmagic=N32;;
14602     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14603       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14604     *) libsuff= shlibsuff= libmagic=never-match;;
14605     esac
14606     ;;
14607   esac
14608   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14609   shlibpath_overrides_runpath=no
14610   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14611   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14612   hardcode_into_libs=yes
14613   ;;
14614
14615 # No shared lib support for Linux oldld, aout, or coff.
14616 linux*oldld* | linux*aout* | linux*coff*)
14617   dynamic_linker=no
14618   ;;
14619
14620 # This must be Linux ELF.
14621 linux* | k*bsd*-gnu)
14622   version_type=linux
14623   need_lib_prefix=no
14624   need_version=no
14625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626   soname_spec='${libname}${release}${shared_ext}$major'
14627   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14628   shlibpath_var=LD_LIBRARY_PATH
14629   shlibpath_overrides_runpath=no
14630   # Some binutils ld are patched to set DT_RUNPATH
14631   save_LDFLAGS=$LDFLAGS
14632   save_libdir=$libdir
14633   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14634        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14635   cat >conftest.$ac_ext <<_ACEOF
14636 /* confdefs.h.  */
14637 _ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h.  */
14641
14642 int
14643 main ()
14644 {
14645
14646   ;
14647   return 0;
14648 }
14649 _ACEOF
14650 rm -f conftest.$ac_objext conftest$ac_exeext
14651 if { (ac_try="$ac_link"
14652 case "(($ac_try" in
14653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14654   *) ac_try_echo=$ac_try;;
14655 esac
14656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14657   (eval "$ac_link") 2>conftest.er1
14658   ac_status=$?
14659   grep -v '^ *+' conftest.er1 >conftest.err
14660   rm -f conftest.er1
14661   cat conftest.err >&5
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); } && {
14664          test -z "$ac_cxx_werror_flag" ||
14665          test ! -s conftest.err
14666        } && test -s conftest$ac_exeext &&
14667        $as_test_x conftest$ac_exeext; then
14668   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14669   shlibpath_overrides_runpath=yes
14670 fi
14671
14672 else
14673   echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.$ac_ext >&5
14675
14676
14677 fi
14678
14679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14680       conftest$ac_exeext conftest.$ac_ext
14681   LDFLAGS=$save_LDFLAGS
14682   libdir=$save_libdir
14683
14684   # This implies no fast_install, which is unacceptable.
14685   # Some rework will be needed to allow for fast_install
14686   # before this can be enabled.
14687   hardcode_into_libs=yes
14688
14689   # Append ld.so.conf contents to the search path
14690   if test -f /etc/ld.so.conf; then
14691     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' ' '`
14692     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14693   fi
14694
14695   # We used to test for /lib/ld.so.1 and disable shared libraries on
14696   # powerpc, because MkLinux only supported shared libraries with the
14697   # GNU dynamic linker.  Since this was broken with cross compilers,
14698   # most powerpc-linux boxes support dynamic linking these days and
14699   # people can always --disable-shared, the test was removed, and we
14700   # assume the GNU/Linux dynamic linker is in use.
14701   dynamic_linker='GNU/Linux ld.so'
14702   ;;
14703
14704 netbsd*)
14705   version_type=sunos
14706   need_lib_prefix=no
14707   need_version=no
14708   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14709     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14710     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14711     dynamic_linker='NetBSD (a.out) ld.so'
14712   else
14713     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14714     soname_spec='${libname}${release}${shared_ext}$major'
14715     dynamic_linker='NetBSD ld.elf_so'
14716   fi
14717   shlibpath_var=LD_LIBRARY_PATH
14718   shlibpath_overrides_runpath=yes
14719   hardcode_into_libs=yes
14720   ;;
14721
14722 newsos6)
14723   version_type=linux
14724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14725   shlibpath_var=LD_LIBRARY_PATH
14726   shlibpath_overrides_runpath=yes
14727   ;;
14728
14729 *nto* | *qnx*)
14730   version_type=qnx
14731   need_lib_prefix=no
14732   need_version=no
14733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734   soname_spec='${libname}${release}${shared_ext}$major'
14735   shlibpath_var=LD_LIBRARY_PATH
14736   shlibpath_overrides_runpath=no
14737   hardcode_into_libs=yes
14738   dynamic_linker='ldqnx.so'
14739   ;;
14740
14741 openbsd*)
14742   version_type=sunos
14743   sys_lib_dlsearch_path_spec="/usr/lib"
14744   need_lib_prefix=no
14745   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14746   case $host_os in
14747     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14748     *)                          need_version=no  ;;
14749   esac
14750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14751   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14752   shlibpath_var=LD_LIBRARY_PATH
14753   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14754     case $host_os in
14755       openbsd2.[89] | openbsd2.[89].*)
14756         shlibpath_overrides_runpath=no
14757         ;;
14758       *)
14759         shlibpath_overrides_runpath=yes
14760         ;;
14761       esac
14762   else
14763     shlibpath_overrides_runpath=yes
14764   fi
14765   ;;
14766
14767 os2*)
14768   libname_spec='$name'
14769   shrext_cmds=".dll"
14770   need_lib_prefix=no
14771   library_names_spec='$libname${shared_ext} $libname.a'
14772   dynamic_linker='OS/2 ld.exe'
14773   shlibpath_var=LIBPATH
14774   ;;
14775
14776 osf3* | osf4* | osf5*)
14777   version_type=osf
14778   need_lib_prefix=no
14779   need_version=no
14780   soname_spec='${libname}${release}${shared_ext}$major'
14781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782   shlibpath_var=LD_LIBRARY_PATH
14783   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14784   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14785   ;;
14786
14787 rdos*)
14788   dynamic_linker=no
14789   ;;
14790
14791 solaris*)
14792   version_type=linux
14793   need_lib_prefix=no
14794   need_version=no
14795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14796   soname_spec='${libname}${release}${shared_ext}$major'
14797   shlibpath_var=LD_LIBRARY_PATH
14798   shlibpath_overrides_runpath=yes
14799   hardcode_into_libs=yes
14800   # ldd complains unless libraries are executable
14801   postinstall_cmds='chmod +x $lib'
14802   ;;
14803
14804 sunos4*)
14805   version_type=sunos
14806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14807   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14808   shlibpath_var=LD_LIBRARY_PATH
14809   shlibpath_overrides_runpath=yes
14810   if test "$with_gnu_ld" = yes; then
14811     need_lib_prefix=no
14812   fi
14813   need_version=yes
14814   ;;
14815
14816 sysv4 | sysv4.3*)
14817   version_type=linux
14818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819   soname_spec='${libname}${release}${shared_ext}$major'
14820   shlibpath_var=LD_LIBRARY_PATH
14821   case $host_vendor in
14822     sni)
14823       shlibpath_overrides_runpath=no
14824       need_lib_prefix=no
14825       runpath_var=LD_RUN_PATH
14826       ;;
14827     siemens)
14828       need_lib_prefix=no
14829       ;;
14830     motorola)
14831       need_lib_prefix=no
14832       need_version=no
14833       shlibpath_overrides_runpath=no
14834       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14835       ;;
14836   esac
14837   ;;
14838
14839 sysv4*MP*)
14840   if test -d /usr/nec ;then
14841     version_type=linux
14842     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14843     soname_spec='$libname${shared_ext}.$major'
14844     shlibpath_var=LD_LIBRARY_PATH
14845   fi
14846   ;;
14847
14848 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14849   version_type=freebsd-elf
14850   need_lib_prefix=no
14851   need_version=no
14852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14853   soname_spec='${libname}${release}${shared_ext}$major'
14854   shlibpath_var=LD_LIBRARY_PATH
14855   shlibpath_overrides_runpath=yes
14856   hardcode_into_libs=yes
14857   if test "$with_gnu_ld" = yes; then
14858     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14859   else
14860     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14861     case $host_os in
14862       sco3.2v5*)
14863         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14864         ;;
14865     esac
14866   fi
14867   sys_lib_dlsearch_path_spec='/usr/lib'
14868   ;;
14869
14870 tpf*)
14871   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14872   version_type=linux
14873   need_lib_prefix=no
14874   need_version=no
14875   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876   shlibpath_var=LD_LIBRARY_PATH
14877   shlibpath_overrides_runpath=no
14878   hardcode_into_libs=yes
14879   ;;
14880
14881 uts4*)
14882   version_type=linux
14883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884   soname_spec='${libname}${release}${shared_ext}$major'
14885   shlibpath_var=LD_LIBRARY_PATH
14886   ;;
14887
14888 *)
14889   dynamic_linker=no
14890   ;;
14891 esac
14892 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14893 echo "${ECHO_T}$dynamic_linker" >&6; }
14894 test "$dynamic_linker" = no && can_build_shared=no
14895
14896 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14897 if test "$GCC" = yes; then
14898   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14899 fi
14900
14901 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14902   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14903 fi
14904 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14905   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14906 fi
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14944 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14945 hardcode_action_CXX=
14946 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14947    test -n "$runpath_var_CXX" ||
14948    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14949
14950   # We can hardcode non-existent directories.
14951   if test "$hardcode_direct_CXX" != no &&
14952      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14953      # have to relink, otherwise we might link with an installed library
14954      # when we should be linking with a yet-to-be-installed one
14955      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14956      test "$hardcode_minus_L_CXX" != no; then
14957     # Linking always hardcodes the temporary library directory.
14958     hardcode_action_CXX=relink
14959   else
14960     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14961     hardcode_action_CXX=immediate
14962   fi
14963 else
14964   # We cannot hardcode anything, or else we can only hardcode existing
14965   # directories.
14966   hardcode_action_CXX=unsupported
14967 fi
14968 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14969 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14970
14971 if test "$hardcode_action_CXX" = relink ||
14972    test "$inherit_rpath_CXX" = yes; then
14973   # Fast installation is not supported
14974   enable_fast_install=no
14975 elif test "$shlibpath_overrides_runpath" = yes ||
14976      test "$enable_shared" = no; then
14977   # Fast installation is not necessary
14978   enable_fast_install=needless
14979 fi
14980
14981
14982
14983
14984
14985
14986
14987   fi # test -n "$compiler"
14988
14989   CC=$lt_save_CC
14990   LDCXX=$LD
14991   LD=$lt_save_LD
14992   GCC=$lt_save_GCC
14993   with_gnu_ld=$lt_save_with_gnu_ld
14994   lt_cv_path_LDCXX=$lt_cv_path_LD
14995   lt_cv_path_LD=$lt_save_path_LD
14996   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14997   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14998 fi # test "$_lt_caught_CXX_error" != yes
14999
15000 ac_ext=c
15001 ac_cpp='$CPP $CPPFLAGS'
15002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018         ac_config_commands="$ac_config_commands libtool"
15019
15020
15021
15022
15023 # Only expand once:
15024
15025
15026
15027 # Checks for libraries.
15028
15029 # Checks for header files.
15030 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15031 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15032 if test "${ac_cv_header_stdc+set}" = set; then
15033   echo $ECHO_N "(cached) $ECHO_C" >&6
15034 else
15035   cat >conftest.$ac_ext <<_ACEOF
15036 /* confdefs.h.  */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h.  */
15041 #include <stdlib.h>
15042 #include <stdarg.h>
15043 #include <string.h>
15044 #include <float.h>
15045
15046 int
15047 main ()
15048 {
15049
15050   ;
15051   return 0;
15052 }
15053 _ACEOF
15054 rm -f conftest.$ac_objext
15055 if { (ac_try="$ac_compile"
15056 case "(($ac_try" in
15057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058   *) ac_try_echo=$ac_try;;
15059 esac
15060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061   (eval "$ac_compile") 2>conftest.er1
15062   ac_status=$?
15063   grep -v '^ *+' conftest.er1 >conftest.err
15064   rm -f conftest.er1
15065   cat conftest.err >&5
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); } && {
15068          test -z "$ac_c_werror_flag" ||
15069          test ! -s conftest.err
15070        } && test -s conftest.$ac_objext; then
15071   ac_cv_header_stdc=yes
15072 else
15073   echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15075
15076         ac_cv_header_stdc=no
15077 fi
15078
15079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15080
15081 if test $ac_cv_header_stdc = yes; then
15082   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15083   cat >conftest.$ac_ext <<_ACEOF
15084 /* confdefs.h.  */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h.  */
15089 #include <string.h>
15090
15091 _ACEOF
15092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15093   $EGREP "memchr" >/dev/null 2>&1; then
15094   :
15095 else
15096   ac_cv_header_stdc=no
15097 fi
15098 rm -f conftest*
15099
15100 fi
15101
15102 if test $ac_cv_header_stdc = yes; then
15103   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15104   cat >conftest.$ac_ext <<_ACEOF
15105 /* confdefs.h.  */
15106 _ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h.  */
15110 #include <stdlib.h>
15111
15112 _ACEOF
15113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15114   $EGREP "free" >/dev/null 2>&1; then
15115   :
15116 else
15117   ac_cv_header_stdc=no
15118 fi
15119 rm -f conftest*
15120
15121 fi
15122
15123 if test $ac_cv_header_stdc = yes; then
15124   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15125   if test "$cross_compiling" = yes; then
15126   :
15127 else
15128   cat >conftest.$ac_ext <<_ACEOF
15129 /* confdefs.h.  */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h.  */
15134 #include <ctype.h>
15135 #include <stdlib.h>
15136 #if ((' ' & 0x0FF) == 0x020)
15137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15139 #else
15140 # define ISLOWER(c) \
15141                    (('a' <= (c) && (c) <= 'i') \
15142                      || ('j' <= (c) && (c) <= 'r') \
15143                      || ('s' <= (c) && (c) <= 'z'))
15144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15145 #endif
15146
15147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15148 int
15149 main ()
15150 {
15151   int i;
15152   for (i = 0; i < 256; i++)
15153     if (XOR (islower (i), ISLOWER (i))
15154         || toupper (i) != TOUPPER (i))
15155       return 2;
15156   return 0;
15157 }
15158 _ACEOF
15159 rm -f conftest$ac_exeext
15160 if { (ac_try="$ac_link"
15161 case "(($ac_try" in
15162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163   *) ac_try_echo=$ac_try;;
15164 esac
15165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166   (eval "$ac_link") 2>&5
15167   ac_status=$?
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15170   { (case "(($ac_try" in
15171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172   *) ac_try_echo=$ac_try;;
15173 esac
15174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175   (eval "$ac_try") 2>&5
15176   ac_status=$?
15177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); }; }; then
15179   :
15180 else
15181   echo "$as_me: program exited with status $ac_status" >&5
15182 echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.$ac_ext >&5
15184
15185 ( exit $ac_status )
15186 ac_cv_header_stdc=no
15187 fi
15188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15189 fi
15190
15191
15192 fi
15193 fi
15194 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15195 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15196 if test $ac_cv_header_stdc = yes; then
15197
15198 cat >>confdefs.h <<\_ACEOF
15199 #define STDC_HEADERS 1
15200 _ACEOF
15201
15202 fi
15203
15204
15205
15206
15207
15208 for ac_header in malloc.h string.h sys/time.h unistd.h
15209 do
15210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15212   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15215   echo $ECHO_N "(cached) $ECHO_C" >&6
15216 fi
15217 ac_res=`eval echo '${'$as_ac_Header'}'`
15218                { echo "$as_me:$LINENO: result: $ac_res" >&5
15219 echo "${ECHO_T}$ac_res" >&6; }
15220 else
15221   # Is the header compilable?
15222 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15224 cat >conftest.$ac_ext <<_ACEOF
15225 /* confdefs.h.  */
15226 _ACEOF
15227 cat confdefs.h >>conftest.$ac_ext
15228 cat >>conftest.$ac_ext <<_ACEOF
15229 /* end confdefs.h.  */
15230 $ac_includes_default
15231 #include <$ac_header>
15232 _ACEOF
15233 rm -f conftest.$ac_objext
15234 if { (ac_try="$ac_compile"
15235 case "(($ac_try" in
15236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237   *) ac_try_echo=$ac_try;;
15238 esac
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240   (eval "$ac_compile") 2>conftest.er1
15241   ac_status=$?
15242   grep -v '^ *+' conftest.er1 >conftest.err
15243   rm -f conftest.er1
15244   cat conftest.err >&5
15245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246   (exit $ac_status); } && {
15247          test -z "$ac_c_werror_flag" ||
15248          test ! -s conftest.err
15249        } && test -s conftest.$ac_objext; then
15250   ac_header_compiler=yes
15251 else
15252   echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15254
15255         ac_header_compiler=no
15256 fi
15257
15258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15260 echo "${ECHO_T}$ac_header_compiler" >&6; }
15261
15262 # Is the header present?
15263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15265 cat >conftest.$ac_ext <<_ACEOF
15266 /* confdefs.h.  */
15267 _ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h.  */
15271 #include <$ac_header>
15272 _ACEOF
15273 if { (ac_try="$ac_cpp conftest.$ac_ext"
15274 case "(($ac_try" in
15275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276   *) ac_try_echo=$ac_try;;
15277 esac
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15280   ac_status=$?
15281   grep -v '^ *+' conftest.er1 >conftest.err
15282   rm -f conftest.er1
15283   cat conftest.err >&5
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); } >/dev/null && {
15286          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15287          test ! -s conftest.err
15288        }; then
15289   ac_header_preproc=yes
15290 else
15291   echo "$as_me: failed program was:" >&5
15292 sed 's/^/| /' conftest.$ac_ext >&5
15293
15294   ac_header_preproc=no
15295 fi
15296
15297 rm -f conftest.err conftest.$ac_ext
15298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15299 echo "${ECHO_T}$ac_header_preproc" >&6; }
15300
15301 # So?  What about this header?
15302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15303   yes:no: )
15304     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15308     ac_header_preproc=yes
15309     ;;
15310   no:yes:* )
15311     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15313     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15314 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15315     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15317     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15318 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15319     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15321     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15323
15324     ;;
15325 esac
15326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15329   echo $ECHO_N "(cached) $ECHO_C" >&6
15330 else
15331   eval "$as_ac_Header=\$ac_header_preproc"
15332 fi
15333 ac_res=`eval echo '${'$as_ac_Header'}'`
15334                { echo "$as_me:$LINENO: result: $ac_res" >&5
15335 echo "${ECHO_T}$ac_res" >&6; }
15336
15337 fi
15338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15339   cat >>confdefs.h <<_ACEOF
15340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15341 _ACEOF
15342
15343 fi
15344
15345 done
15346
15347
15348 # Checks for typedefs, structures, and compiler characteristics.
15349 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15350 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
15351 if test "${ac_cv_c_const+set}" = set; then
15352   echo $ECHO_N "(cached) $ECHO_C" >&6
15353 else
15354   cat >conftest.$ac_ext <<_ACEOF
15355 /* confdefs.h.  */
15356 _ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h.  */
15360
15361 int
15362 main ()
15363 {
15364 /* FIXME: Include the comments suggested by Paul. */
15365 #ifndef __cplusplus
15366   /* Ultrix mips cc rejects this.  */
15367   typedef int charset[2];
15368   const charset cs;
15369   /* SunOS 4.1.1 cc rejects this.  */
15370   char const *const *pcpcc;
15371   char **ppc;
15372   /* NEC SVR4.0.2 mips cc rejects this.  */
15373   struct point {int x, y;};
15374   static struct point const zero = {0,0};
15375   /* AIX XL C 1.02.0.0 rejects this.
15376      It does not let you subtract one const X* pointer from another in
15377      an arm of an if-expression whose if-part is not a constant
15378      expression */
15379   const char *g = "string";
15380   pcpcc = &g + (g ? g-g : 0);
15381   /* HPUX 7.0 cc rejects these. */
15382   ++pcpcc;
15383   ppc = (char**) pcpcc;
15384   pcpcc = (char const *const *) ppc;
15385   { /* SCO 3.2v4 cc rejects this.  */
15386     char *t;
15387     char const *s = 0 ? (char *) 0 : (char const *) 0;
15388
15389     *t++ = 0;
15390     if (s) return 0;
15391   }
15392   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15393     int x[] = {25, 17};
15394     const int *foo = &x[0];
15395     ++foo;
15396   }
15397   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15398     typedef const int *iptr;
15399     iptr p = 0;
15400     ++p;
15401   }
15402   { /* AIX XL C 1.02.0.0 rejects this saying
15403        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15404     struct s { int j; const int *ap[3]; };
15405     struct s *b; b->j = 5;
15406   }
15407   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15408     const int foo = 10;
15409     if (!foo) return 0;
15410   }
15411   return !cs[0] && !zero.x;
15412 #endif
15413
15414   ;
15415   return 0;
15416 }
15417 _ACEOF
15418 rm -f conftest.$ac_objext
15419 if { (ac_try="$ac_compile"
15420 case "(($ac_try" in
15421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15422   *) ac_try_echo=$ac_try;;
15423 esac
15424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15425   (eval "$ac_compile") 2>conftest.er1
15426   ac_status=$?
15427   grep -v '^ *+' conftest.er1 >conftest.err
15428   rm -f conftest.er1
15429   cat conftest.err >&5
15430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431   (exit $ac_status); } && {
15432          test -z "$ac_c_werror_flag" ||
15433          test ! -s conftest.err
15434        } && test -s conftest.$ac_objext; then
15435   ac_cv_c_const=yes
15436 else
15437   echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15439
15440         ac_cv_c_const=no
15441 fi
15442
15443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15444 fi
15445 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15446 echo "${ECHO_T}$ac_cv_c_const" >&6; }
15447 if test $ac_cv_c_const = no; then
15448
15449 cat >>confdefs.h <<\_ACEOF
15450 #define const
15451 _ACEOF
15452
15453 fi
15454
15455 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15456 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15457 if test "${ac_cv_header_time+set}" = set; then
15458   echo $ECHO_N "(cached) $ECHO_C" >&6
15459 else
15460   cat >conftest.$ac_ext <<_ACEOF
15461 /* confdefs.h.  */
15462 _ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h.  */
15466 #include <sys/types.h>
15467 #include <sys/time.h>
15468 #include <time.h>
15469
15470 int
15471 main ()
15472 {
15473 if ((struct tm *) 0)
15474 return 0;
15475   ;
15476   return 0;
15477 }
15478 _ACEOF
15479 rm -f conftest.$ac_objext
15480 if { (ac_try="$ac_compile"
15481 case "(($ac_try" in
15482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483   *) ac_try_echo=$ac_try;;
15484 esac
15485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486   (eval "$ac_compile") 2>conftest.er1
15487   ac_status=$?
15488   grep -v '^ *+' conftest.er1 >conftest.err
15489   rm -f conftest.er1
15490   cat conftest.err >&5
15491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492   (exit $ac_status); } && {
15493          test -z "$ac_c_werror_flag" ||
15494          test ! -s conftest.err
15495        } && test -s conftest.$ac_objext; then
15496   ac_cv_header_time=yes
15497 else
15498   echo "$as_me: failed program was:" >&5
15499 sed 's/^/| /' conftest.$ac_ext >&5
15500
15501         ac_cv_header_time=no
15502 fi
15503
15504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15505 fi
15506 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15507 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15508 if test $ac_cv_header_time = yes; then
15509
15510 cat >>confdefs.h <<\_ACEOF
15511 #define TIME_WITH_SYS_TIME 1
15512 _ACEOF
15513
15514 fi
15515
15516
15517 # Checks for library functions.
15518
15519 for ac_header in stdlib.h
15520 do
15521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15523   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15526   echo $ECHO_N "(cached) $ECHO_C" >&6
15527 fi
15528 ac_res=`eval echo '${'$as_ac_Header'}'`
15529                { echo "$as_me:$LINENO: result: $ac_res" >&5
15530 echo "${ECHO_T}$ac_res" >&6; }
15531 else
15532   # Is the header compilable?
15533 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15535 cat >conftest.$ac_ext <<_ACEOF
15536 /* confdefs.h.  */
15537 _ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h.  */
15541 $ac_includes_default
15542 #include <$ac_header>
15543 _ACEOF
15544 rm -f conftest.$ac_objext
15545 if { (ac_try="$ac_compile"
15546 case "(($ac_try" in
15547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548   *) ac_try_echo=$ac_try;;
15549 esac
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551   (eval "$ac_compile") 2>conftest.er1
15552   ac_status=$?
15553   grep -v '^ *+' conftest.er1 >conftest.err
15554   rm -f conftest.er1
15555   cat conftest.err >&5
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); } && {
15558          test -z "$ac_c_werror_flag" ||
15559          test ! -s conftest.err
15560        } && test -s conftest.$ac_objext; then
15561   ac_header_compiler=yes
15562 else
15563   echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15565
15566         ac_header_compiler=no
15567 fi
15568
15569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15571 echo "${ECHO_T}$ac_header_compiler" >&6; }
15572
15573 # Is the header present?
15574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15576 cat >conftest.$ac_ext <<_ACEOF
15577 /* confdefs.h.  */
15578 _ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h.  */
15582 #include <$ac_header>
15583 _ACEOF
15584 if { (ac_try="$ac_cpp conftest.$ac_ext"
15585 case "(($ac_try" in
15586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587   *) ac_try_echo=$ac_try;;
15588 esac
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15591   ac_status=$?
15592   grep -v '^ *+' conftest.er1 >conftest.err
15593   rm -f conftest.er1
15594   cat conftest.err >&5
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); } >/dev/null && {
15597          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15598          test ! -s conftest.err
15599        }; then
15600   ac_header_preproc=yes
15601 else
15602   echo "$as_me: failed program was:" >&5
15603 sed 's/^/| /' conftest.$ac_ext >&5
15604
15605   ac_header_preproc=no
15606 fi
15607
15608 rm -f conftest.err conftest.$ac_ext
15609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15610 echo "${ECHO_T}$ac_header_preproc" >&6; }
15611
15612 # So?  What about this header?
15613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15614   yes:no: )
15615     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15619     ac_header_preproc=yes
15620     ;;
15621   no:yes:* )
15622     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15624     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15625 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15626     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15628     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15629 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15632     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15634
15635     ;;
15636 esac
15637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15640   echo $ECHO_N "(cached) $ECHO_C" >&6
15641 else
15642   eval "$as_ac_Header=\$ac_header_preproc"
15643 fi
15644 ac_res=`eval echo '${'$as_ac_Header'}'`
15645                { echo "$as_me:$LINENO: result: $ac_res" >&5
15646 echo "${ECHO_T}$ac_res" >&6; }
15647
15648 fi
15649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15650   cat >>confdefs.h <<_ACEOF
15651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15652 _ACEOF
15653
15654 fi
15655
15656 done
15657
15658 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
15659 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
15660 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
15661   echo $ECHO_N "(cached) $ECHO_C" >&6
15662 else
15663   if test "$cross_compiling" = yes; then
15664   ac_cv_func_malloc_0_nonnull=no
15665 else
15666   cat >conftest.$ac_ext <<_ACEOF
15667 /* confdefs.h.  */
15668 _ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h.  */
15672 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15673 # include <stdlib.h>
15674 #else
15675 char *malloc ();
15676 #endif
15677
15678 int
15679 main ()
15680 {
15681 return ! malloc (0);
15682   ;
15683   return 0;
15684 }
15685 _ACEOF
15686 rm -f conftest$ac_exeext
15687 if { (ac_try="$ac_link"
15688 case "(($ac_try" in
15689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690   *) ac_try_echo=$ac_try;;
15691 esac
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693   (eval "$ac_link") 2>&5
15694   ac_status=$?
15695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15697   { (case "(($ac_try" in
15698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699   *) ac_try_echo=$ac_try;;
15700 esac
15701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702   (eval "$ac_try") 2>&5
15703   ac_status=$?
15704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705   (exit $ac_status); }; }; then
15706   ac_cv_func_malloc_0_nonnull=yes
15707 else
15708   echo "$as_me: program exited with status $ac_status" >&5
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15711
15712 ( exit $ac_status )
15713 ac_cv_func_malloc_0_nonnull=no
15714 fi
15715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15716 fi
15717
15718
15719 fi
15720 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
15721 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
15722 if test $ac_cv_func_malloc_0_nonnull = yes; then
15723
15724 cat >>confdefs.h <<\_ACEOF
15725 #define HAVE_MALLOC 1
15726 _ACEOF
15727
15728 else
15729   cat >>confdefs.h <<\_ACEOF
15730 #define HAVE_MALLOC 0
15731 _ACEOF
15732
15733    case " $LIBOBJS " in
15734   *" malloc.$ac_objext "* ) ;;
15735   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15736  ;;
15737 esac
15738
15739
15740 cat >>confdefs.h <<\_ACEOF
15741 #define malloc rpl_malloc
15742 _ACEOF
15743
15744 fi
15745
15746
15747
15748
15749
15750
15751
15752 for ac_func in gethostname gettimeofday memset uname
15753 do
15754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15758   echo $ECHO_N "(cached) $ECHO_C" >&6
15759 else
15760   cat >conftest.$ac_ext <<_ACEOF
15761 /* confdefs.h.  */
15762 _ACEOF
15763 cat confdefs.h >>conftest.$ac_ext
15764 cat >>conftest.$ac_ext <<_ACEOF
15765 /* end confdefs.h.  */
15766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15768 #define $ac_func innocuous_$ac_func
15769
15770 /* System header to define __stub macros and hopefully few prototypes,
15771     which can conflict with char $ac_func (); below.
15772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15773     <limits.h> exists even on freestanding compilers.  */
15774
15775 #ifdef __STDC__
15776 # include <limits.h>
15777 #else
15778 # include <assert.h>
15779 #endif
15780
15781 #undef $ac_func
15782
15783 /* Override any GCC internal prototype to avoid an error.
15784    Use char because int might match the return type of a GCC
15785    builtin and then its argument prototype would still apply.  */
15786 #ifdef __cplusplus
15787 extern "C"
15788 #endif
15789 char $ac_func ();
15790 /* The GNU C library defines this for functions which it implements
15791     to always fail with ENOSYS.  Some functions are actually named
15792     something starting with __ and the normal name is an alias.  */
15793 #if defined __stub_$ac_func || defined __stub___$ac_func
15794 choke me
15795 #endif
15796
15797 int
15798 main ()
15799 {
15800 return $ac_func ();
15801   ;
15802   return 0;
15803 }
15804 _ACEOF
15805 rm -f conftest.$ac_objext conftest$ac_exeext
15806 if { (ac_try="$ac_link"
15807 case "(($ac_try" in
15808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15809   *) ac_try_echo=$ac_try;;
15810 esac
15811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15812   (eval "$ac_link") 2>conftest.er1
15813   ac_status=$?
15814   grep -v '^ *+' conftest.er1 >conftest.err
15815   rm -f conftest.er1
15816   cat conftest.err >&5
15817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818   (exit $ac_status); } && {
15819          test -z "$ac_c_werror_flag" ||
15820          test ! -s conftest.err
15821        } && test -s conftest$ac_exeext &&
15822        $as_test_x conftest$ac_exeext; then
15823   eval "$as_ac_var=yes"
15824 else
15825   echo "$as_me: failed program was:" >&5
15826 sed 's/^/| /' conftest.$ac_ext >&5
15827
15828         eval "$as_ac_var=no"
15829 fi
15830
15831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15832       conftest$ac_exeext conftest.$ac_ext
15833 fi
15834 ac_res=`eval echo '${'$as_ac_var'}'`
15835                { echo "$as_me:$LINENO: result: $ac_res" >&5
15836 echo "${ECHO_T}$ac_res" >&6; }
15837 if test `eval echo '${'$as_ac_var'}'` = yes; then
15838   cat >>confdefs.h <<_ACEOF
15839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15840 _ACEOF
15841
15842 fi
15843 done
15844
15845
15846 #AM_CONDITIONAL([ISPROTECTOR_VODA_SDK], [test "x$DISTRO" = "xvodafone-sdk" && test "x$MACHINE" = "xprotector"])
15847
15848 ac_config_files="$ac_config_files Makefile src/Makefile mm-ta.pc"
15849
15850 cat >confcache <<\_ACEOF
15851 # This file is a shell script that caches the results of configure
15852 # tests run on this system so they can be shared between configure
15853 # scripts and configure runs, see configure's option --config-cache.
15854 # It is not useful on other systems.  If it contains results you don't
15855 # want to keep, you may remove or edit it.
15856 #
15857 # config.status only pays attention to the cache file if you give it
15858 # the --recheck option to rerun configure.
15859 #
15860 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15861 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15862 # following values.
15863
15864 _ACEOF
15865
15866 # The following way of writing the cache mishandles newlines in values,
15867 # but we know of no workaround that is simple, portable, and efficient.
15868 # So, we kill variables containing newlines.
15869 # Ultrix sh set writes to stderr and can't be redirected directly,
15870 # and sets the high bit in the cache file unless we assign to the vars.
15871 (
15872   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15873     eval ac_val=\$$ac_var
15874     case $ac_val in #(
15875     *${as_nl}*)
15876       case $ac_var in #(
15877       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15878 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15879       esac
15880       case $ac_var in #(
15881       _ | IFS | as_nl) ;; #(
15882       *) $as_unset $ac_var ;;
15883       esac ;;
15884     esac
15885   done
15886
15887   (set) 2>&1 |
15888     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15889     *${as_nl}ac_space=\ *)
15890       # `set' does not quote correctly, so add quotes (double-quote
15891       # substitution turns \\\\ into \\, and sed turns \\ into \).
15892       sed -n \
15893         "s/'/'\\\\''/g;
15894           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15895       ;; #(
15896     *)
15897       # `set' quotes correctly as required by POSIX, so do not add quotes.
15898       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15899       ;;
15900     esac |
15901     sort
15902 ) |
15903   sed '
15904      /^ac_cv_env_/b end
15905      t clear
15906      :clear
15907      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15908      t end
15909      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15910      :end' >>confcache
15911 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15912   if test -w "$cache_file"; then
15913     test "x$cache_file" != "x/dev/null" &&
15914       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15915 echo "$as_me: updating cache $cache_file" >&6;}
15916     cat confcache >$cache_file
15917   else
15918     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15919 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15920   fi
15921 fi
15922 rm -f confcache
15923
15924 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15925 # Let make expand exec_prefix.
15926 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15927
15928 DEFS=-DHAVE_CONFIG_H
15929
15930 ac_libobjs=
15931 ac_ltlibobjs=
15932 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15933   # 1. Remove the extension, and $U if already installed.
15934   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15935   ac_i=`echo "$ac_i" | sed "$ac_script"`
15936   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15937   #    will be set to the directory where LIBOBJS objects are built.
15938   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15939   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15940 done
15941 LIBOBJS=$ac_libobjs
15942
15943 LTLIBOBJS=$ac_ltlibobjs
15944
15945
15946 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15947   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15948 Usually this means the macro was only invoked conditionally." >&5
15949 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15950 Usually this means the macro was only invoked conditionally." >&2;}
15951    { (exit 1); exit 1; }; }
15952 fi
15953 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15954   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15955 Usually this means the macro was only invoked conditionally." >&5
15956 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15957 Usually this means the macro was only invoked conditionally." >&2;}
15958    { (exit 1); exit 1; }; }
15959 fi
15960 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15961   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15962 Usually this means the macro was only invoked conditionally." >&5
15963 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15964 Usually this means the macro was only invoked conditionally." >&2;}
15965    { (exit 1); exit 1; }; }
15966 fi
15967 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15968   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15969 Usually this means the macro was only invoked conditionally." >&5
15970 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15971 Usually this means the macro was only invoked conditionally." >&2;}
15972    { (exit 1); exit 1; }; }
15973 fi
15974
15975 : ${CONFIG_STATUS=./config.status}
15976 ac_clean_files_save=$ac_clean_files
15977 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15978 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15979 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15980 cat >$CONFIG_STATUS <<_ACEOF
15981 #! $SHELL
15982 # Generated by $as_me.
15983 # Run this file to recreate the current configuration.
15984 # Compiler output produced by configure, useful for debugging
15985 # configure, is in config.log if it exists.
15986
15987 debug=false
15988 ac_cs_recheck=false
15989 ac_cs_silent=false
15990 SHELL=\${CONFIG_SHELL-$SHELL}
15991 _ACEOF
15992
15993 cat >>$CONFIG_STATUS <<\_ACEOF
15994 ## --------------------- ##
15995 ## M4sh Initialization.  ##
15996 ## --------------------- ##
15997
15998 # Be more Bourne compatible
15999 DUALCASE=1; export DUALCASE # for MKS sh
16000 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16001   emulate sh
16002   NULLCMD=:
16003   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16004   # is contrary to our usage.  Disable this feature.
16005   alias -g '${1+"$@"}'='"$@"'
16006   setopt NO_GLOB_SUBST
16007 else
16008   case `(set -o) 2>/dev/null` in
16009   *posix*) set -o posix ;;
16010 esac
16011
16012 fi
16013
16014
16015
16016
16017 # PATH needs CR
16018 # Avoid depending upon Character Ranges.
16019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16022 as_cr_digits='0123456789'
16023 as_cr_alnum=$as_cr_Letters$as_cr_digits
16024
16025 # The user is always right.
16026 if test "${PATH_SEPARATOR+set}" != set; then
16027   echo "#! /bin/sh" >conf$$.sh
16028   echo  "exit 0"   >>conf$$.sh
16029   chmod +x conf$$.sh
16030   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16031     PATH_SEPARATOR=';'
16032   else
16033     PATH_SEPARATOR=:
16034   fi
16035   rm -f conf$$.sh
16036 fi
16037
16038 # Support unset when possible.
16039 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16040   as_unset=unset
16041 else
16042   as_unset=false
16043 fi
16044
16045
16046 # IFS
16047 # We need space, tab and new line, in precisely that order.  Quoting is
16048 # there to prevent editors from complaining about space-tab.
16049 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16050 # splitting by setting IFS to empty value.)
16051 as_nl='
16052 '
16053 IFS=" ""        $as_nl"
16054
16055 # Find who we are.  Look in the path if we contain no directory separator.
16056 case $0 in
16057   *[\\/]* ) as_myself=$0 ;;
16058   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16059 for as_dir in $PATH
16060 do
16061   IFS=$as_save_IFS
16062   test -z "$as_dir" && as_dir=.
16063   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16064 done
16065 IFS=$as_save_IFS
16066
16067      ;;
16068 esac
16069 # We did not find ourselves, most probably we were run as `sh COMMAND'
16070 # in which case we are not to be found in the path.
16071 if test "x$as_myself" = x; then
16072   as_myself=$0
16073 fi
16074 if test ! -f "$as_myself"; then
16075   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16076   { (exit 1); exit 1; }
16077 fi
16078
16079 # Work around bugs in pre-3.0 UWIN ksh.
16080 for as_var in ENV MAIL MAILPATH
16081 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16082 done
16083 PS1='$ '
16084 PS2='> '
16085 PS4='+ '
16086
16087 # NLS nuisances.
16088 for as_var in \
16089   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16090   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16091   LC_TELEPHONE LC_TIME
16092 do
16093   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16094     eval $as_var=C; export $as_var
16095   else
16096     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16097   fi
16098 done
16099
16100 # Required to use basename.
16101 if expr a : '\(a\)' >/dev/null 2>&1 &&
16102    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16103   as_expr=expr
16104 else
16105   as_expr=false
16106 fi
16107
16108 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16109   as_basename=basename
16110 else
16111   as_basename=false
16112 fi
16113
16114
16115 # Name of the executable.
16116 as_me=`$as_basename -- "$0" ||
16117 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16118          X"$0" : 'X\(//\)$' \| \
16119          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16120 echo X/"$0" |
16121     sed '/^.*\/\([^/][^/]*\)\/*$/{
16122             s//\1/
16123             q
16124           }
16125           /^X\/\(\/\/\)$/{
16126             s//\1/
16127             q
16128           }
16129           /^X\/\(\/\).*/{
16130             s//\1/
16131             q
16132           }
16133           s/.*/./; q'`
16134
16135 # CDPATH.
16136 $as_unset CDPATH
16137
16138
16139
16140   as_lineno_1=$LINENO
16141   as_lineno_2=$LINENO
16142   test "x$as_lineno_1" != "x$as_lineno_2" &&
16143   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16144
16145   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16146   # uniformly replaced by the line number.  The first 'sed' inserts a
16147   # line-number line after each line using $LINENO; the second 'sed'
16148   # does the real work.  The second script uses 'N' to pair each
16149   # line-number line with the line containing $LINENO, and appends
16150   # trailing '-' during substitution so that $LINENO is not a special
16151   # case at line end.
16152   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16153   # scripts with optimization help from Paolo Bonzini.  Blame Lee
16154   # E. McMahon (1931-1989) for sed's syntax.  :-)
16155   sed -n '
16156     p
16157     /[$]LINENO/=
16158   ' <$as_myself |
16159     sed '
16160       s/[$]LINENO.*/&-/
16161       t lineno
16162       b
16163       :lineno
16164       N
16165       :loop
16166       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16167       t loop
16168       s/-\n.*//
16169     ' >$as_me.lineno &&
16170   chmod +x "$as_me.lineno" ||
16171     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16172    { (exit 1); exit 1; }; }
16173
16174   # Don't try to exec as it changes $[0], causing all sort of problems
16175   # (the dirname of $[0] is not the place where we might find the
16176   # original and so on.  Autoconf is especially sensitive to this).
16177   . "./$as_me.lineno"
16178   # Exit status is that of the last command.
16179   exit
16180 }
16181
16182
16183 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16184   as_dirname=dirname
16185 else
16186   as_dirname=false
16187 fi
16188
16189 ECHO_C= ECHO_N= ECHO_T=
16190 case `echo -n x` in
16191 -n*)
16192   case `echo 'x\c'` in
16193   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16194   *)   ECHO_C='\c';;
16195   esac;;
16196 *)
16197   ECHO_N='-n';;
16198 esac
16199
16200 if expr a : '\(a\)' >/dev/null 2>&1 &&
16201    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16202   as_expr=expr
16203 else
16204   as_expr=false
16205 fi
16206
16207 rm -f conf$$ conf$$.exe conf$$.file
16208 if test -d conf$$.dir; then
16209   rm -f conf$$.dir/conf$$.file
16210 else
16211   rm -f conf$$.dir
16212   mkdir conf$$.dir
16213 fi
16214 echo >conf$$.file
16215 if ln -s conf$$.file conf$$ 2>/dev/null; then
16216   as_ln_s='ln -s'
16217   # ... but there are two gotchas:
16218   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16219   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16220   # In both cases, we have to default to `cp -p'.
16221   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16222     as_ln_s='cp -p'
16223 elif ln conf$$.file conf$$ 2>/dev/null; then
16224   as_ln_s=ln
16225 else
16226   as_ln_s='cp -p'
16227 fi
16228 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16229 rmdir conf$$.dir 2>/dev/null
16230
16231 if mkdir -p . 2>/dev/null; then
16232   as_mkdir_p=:
16233 else
16234   test -d ./-p && rmdir ./-p
16235   as_mkdir_p=false
16236 fi
16237
16238 if test -x / >/dev/null 2>&1; then
16239   as_test_x='test -x'
16240 else
16241   if ls -dL / >/dev/null 2>&1; then
16242     as_ls_L_option=L
16243   else
16244     as_ls_L_option=
16245   fi
16246   as_test_x='
16247     eval sh -c '\''
16248       if test -d "$1"; then
16249         test -d "$1/.";
16250       else
16251         case $1 in
16252         -*)set "./$1";;
16253         esac;
16254         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16255         ???[sx]*):;;*)false;;esac;fi
16256     '\'' sh
16257   '
16258 fi
16259 as_executable_p=$as_test_x
16260
16261 # Sed expression to map a string onto a valid CPP name.
16262 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16263
16264 # Sed expression to map a string onto a valid variable name.
16265 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16266
16267
16268 exec 6>&1
16269
16270 # Save the log message, to keep $[0] and so on meaningful, and to
16271 # report actual input values of CONFIG_FILES etc. instead of their
16272 # values after options handling.
16273 ac_log="
16274 This file was extended by libmm-ta $as_me 0.1, which was
16275 generated by GNU Autoconf 2.61.  Invocation command line was
16276
16277   CONFIG_FILES    = $CONFIG_FILES
16278   CONFIG_HEADERS  = $CONFIG_HEADERS
16279   CONFIG_LINKS    = $CONFIG_LINKS
16280   CONFIG_COMMANDS = $CONFIG_COMMANDS
16281   $ $0 $@
16282
16283 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16284 "
16285
16286 _ACEOF
16287
16288 cat >>$CONFIG_STATUS <<_ACEOF
16289 # Files that config.status was made for.
16290 config_files="$ac_config_files"
16291 config_headers="$ac_config_headers"
16292 config_commands="$ac_config_commands"
16293
16294 _ACEOF
16295
16296 cat >>$CONFIG_STATUS <<\_ACEOF
16297 ac_cs_usage="\
16298 \`$as_me' instantiates files from templates according to the
16299 current configuration.
16300
16301 Usage: $0 [OPTIONS] [FILE]...
16302
16303   -h, --help       print this help, then exit
16304   -V, --version    print version number and configuration settings, then exit
16305   -q, --quiet      do not print progress messages
16306   -d, --debug      don't remove temporary files
16307       --recheck    update $as_me by reconfiguring in the same conditions
16308   --file=FILE[:TEMPLATE]
16309                    instantiate the configuration file FILE
16310   --header=FILE[:TEMPLATE]
16311                    instantiate the configuration header FILE
16312
16313 Configuration files:
16314 $config_files
16315
16316 Configuration headers:
16317 $config_headers
16318
16319 Configuration commands:
16320 $config_commands
16321
16322 Report bugs to <bug-autoconf@gnu.org>."
16323
16324 _ACEOF
16325 cat >>$CONFIG_STATUS <<_ACEOF
16326 ac_cs_version="\\
16327 libmm-ta config.status 0.1
16328 configured by $0, generated by GNU Autoconf 2.61,
16329   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16330
16331 Copyright (C) 2006 Free Software Foundation, Inc.
16332 This config.status script is free software; the Free Software Foundation
16333 gives unlimited permission to copy, distribute and modify it."
16334
16335 ac_pwd='$ac_pwd'
16336 srcdir='$srcdir'
16337 INSTALL='$INSTALL'
16338 MKDIR_P='$MKDIR_P'
16339 _ACEOF
16340
16341 cat >>$CONFIG_STATUS <<\_ACEOF
16342 # If no file are specified by the user, then we need to provide default
16343 # value.  By we need to know if files were specified by the user.
16344 ac_need_defaults=:
16345 while test $# != 0
16346 do
16347   case $1 in
16348   --*=*)
16349     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16350     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16351     ac_shift=:
16352     ;;
16353   *)
16354     ac_option=$1
16355     ac_optarg=$2
16356     ac_shift=shift
16357     ;;
16358   esac
16359
16360   case $ac_option in
16361   # Handling of the options.
16362   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16363     ac_cs_recheck=: ;;
16364   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16365     echo "$ac_cs_version"; exit ;;
16366   --debug | --debu | --deb | --de | --d | -d )
16367     debug=: ;;
16368   --file | --fil | --fi | --f )
16369     $ac_shift
16370     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16371     ac_need_defaults=false;;
16372   --header | --heade | --head | --hea )
16373     $ac_shift
16374     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16375     ac_need_defaults=false;;
16376   --he | --h)
16377     # Conflict between --help and --header
16378     { echo "$as_me: error: ambiguous option: $1
16379 Try \`$0 --help' for more information." >&2
16380    { (exit 1); exit 1; }; };;
16381   --help | --hel | -h )
16382     echo "$ac_cs_usage"; exit ;;
16383   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16384   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16385     ac_cs_silent=: ;;
16386
16387   # This is an error.
16388   -*) { echo "$as_me: error: unrecognized option: $1
16389 Try \`$0 --help' for more information." >&2
16390    { (exit 1); exit 1; }; } ;;
16391
16392   *) ac_config_targets="$ac_config_targets $1"
16393      ac_need_defaults=false ;;
16394
16395   esac
16396   shift
16397 done
16398
16399 ac_configure_extra_args=
16400
16401 if $ac_cs_silent; then
16402   exec 6>/dev/null
16403   ac_configure_extra_args="$ac_configure_extra_args --silent"
16404 fi
16405
16406 _ACEOF
16407 cat >>$CONFIG_STATUS <<_ACEOF
16408 if \$ac_cs_recheck; then
16409   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16410   CONFIG_SHELL=$SHELL
16411   export CONFIG_SHELL
16412   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16413 fi
16414
16415 _ACEOF
16416 cat >>$CONFIG_STATUS <<\_ACEOF
16417 exec 5>>config.log
16418 {
16419   echo
16420   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16421 ## Running $as_me. ##
16422 _ASBOX
16423   echo "$ac_log"
16424 } >&5
16425
16426 _ACEOF
16427 cat >>$CONFIG_STATUS <<_ACEOF
16428 #
16429 # INIT-COMMANDS
16430 #
16431 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16432
16433
16434 # The HP-UX ksh and POSIX shell print the target directory to stdout
16435 # if CDPATH is set.
16436 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16437
16438 sed_quote_subst='$sed_quote_subst'
16439 double_quote_subst='$double_quote_subst'
16440 delay_variable_subst='$delay_variable_subst'
16441 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16442 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16443 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16444 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16445 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16446 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16447 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16448 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16449 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16450 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16451 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16452 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16453 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16454 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16455 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16456 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16457 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16458 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16459 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16460 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16461 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16462 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16463 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16464 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16465 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16466 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16467 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16468 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16469 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16470 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16471 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16472 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16473 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16474 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16475 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16476 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16477 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16478 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16479 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16480 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16481 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16482 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16483 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16484 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"`'
16485 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"`'
16486 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16487 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16488 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16489 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16490 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16491 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16492 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16493 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16494 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16495 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16496 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16497 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16498 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16499 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16500 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16501 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16502 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16503 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16504 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16505 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16506 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16507 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16508 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16509 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16510 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16511 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16512 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16513 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16514 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16515 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16516 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16517 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16518 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16519 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16520 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16521 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16522 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16523 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16524 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16525 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16526 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16527 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16528 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16529 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16530 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16531 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16532 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16533 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16534 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16535 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16536 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16537 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16538 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16539 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16540 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16541 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16542 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16543 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16544 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16545 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16546 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16547 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16548 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16549 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16550 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16551 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16552 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16553 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16554 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16555 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16556 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16557 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16558 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16559 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16560 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16561 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16562 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16563 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16564 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16565 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16566 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16567 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16568 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16569 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16570 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16571 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16572 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16573 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16574 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16575 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16576 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16577 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16578 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16579 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16580 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16581 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16582 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16583 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16584 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16585 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16586 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16587 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16588 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16589 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16590 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16591 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16592 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16593 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16594 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16595 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16596 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16597 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16598 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16599 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16600 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16601 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16602 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16603 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16604 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16605 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16606 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16607 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16608 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16609 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16610 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16611
16612 LTCC='$LTCC'
16613 LTCFLAGS='$LTCFLAGS'
16614 compiler='$compiler_DEFAULT'
16615
16616 # Quote evaled strings.
16617 for var in SED \
16618 GREP \
16619 EGREP \
16620 FGREP \
16621 LD \
16622 NM \
16623 LN_S \
16624 lt_SP2NL \
16625 lt_NL2SP \
16626 reload_flag \
16627 deplibs_check_method \
16628 file_magic_cmd \
16629 AR \
16630 AR_FLAGS \
16631 STRIP \
16632 RANLIB \
16633 CC \
16634 CFLAGS \
16635 compiler \
16636 lt_cv_sys_global_symbol_pipe \
16637 lt_cv_sys_global_symbol_to_cdecl \
16638 lt_cv_sys_global_symbol_to_c_name_address \
16639 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16640 SHELL \
16641 ECHO \
16642 lt_prog_compiler_no_builtin_flag \
16643 lt_prog_compiler_wl \
16644 lt_prog_compiler_pic \
16645 lt_prog_compiler_static \
16646 lt_cv_prog_compiler_c_o \
16647 need_locks \
16648 DSYMUTIL \
16649 NMEDIT \
16650 LIPO \
16651 OTOOL \
16652 OTOOL64 \
16653 shrext_cmds \
16654 export_dynamic_flag_spec \
16655 whole_archive_flag_spec \
16656 compiler_needs_object \
16657 with_gnu_ld \
16658 allow_undefined_flag \
16659 no_undefined_flag \
16660 hardcode_libdir_flag_spec \
16661 hardcode_libdir_flag_spec_ld \
16662 hardcode_libdir_separator \
16663 fix_srcfile_path \
16664 exclude_expsyms \
16665 include_expsyms \
16666 file_list_spec \
16667 variables_saved_for_relink \
16668 libname_spec \
16669 library_names_spec \
16670 soname_spec \
16671 finish_eval \
16672 old_striplib \
16673 striplib \
16674 compiler_lib_search_dirs \
16675 predep_objects \
16676 postdep_objects \
16677 predeps \
16678 postdeps \
16679 compiler_lib_search_path \
16680 LD_CXX \
16681 compiler_CXX \
16682 lt_prog_compiler_no_builtin_flag_CXX \
16683 lt_prog_compiler_wl_CXX \
16684 lt_prog_compiler_pic_CXX \
16685 lt_prog_compiler_static_CXX \
16686 lt_cv_prog_compiler_c_o_CXX \
16687 export_dynamic_flag_spec_CXX \
16688 whole_archive_flag_spec_CXX \
16689 compiler_needs_object_CXX \
16690 with_gnu_ld_CXX \
16691 allow_undefined_flag_CXX \
16692 no_undefined_flag_CXX \
16693 hardcode_libdir_flag_spec_CXX \
16694 hardcode_libdir_flag_spec_ld_CXX \
16695 hardcode_libdir_separator_CXX \
16696 fix_srcfile_path_CXX \
16697 exclude_expsyms_CXX \
16698 include_expsyms_CXX \
16699 file_list_spec_CXX \
16700 compiler_lib_search_dirs_CXX \
16701 predep_objects_CXX \
16702 postdep_objects_CXX \
16703 predeps_CXX \
16704 postdeps_CXX \
16705 compiler_lib_search_path_CXX; do
16706     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16707     *[\\\\\\\`\\"\\\$]*)
16708       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16709       ;;
16710     *)
16711       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16712       ;;
16713     esac
16714 done
16715
16716 # Double-quote double-evaled strings.
16717 for var in reload_cmds \
16718 old_postinstall_cmds \
16719 old_postuninstall_cmds \
16720 old_archive_cmds \
16721 extract_expsyms_cmds \
16722 old_archive_from_new_cmds \
16723 old_archive_from_expsyms_cmds \
16724 archive_cmds \
16725 archive_expsym_cmds \
16726 module_cmds \
16727 module_expsym_cmds \
16728 export_symbols_cmds \
16729 prelink_cmds \
16730 postinstall_cmds \
16731 postuninstall_cmds \
16732 finish_cmds \
16733 sys_lib_search_path_spec \
16734 sys_lib_dlsearch_path_spec \
16735 old_archive_cmds_CXX \
16736 old_archive_from_new_cmds_CXX \
16737 old_archive_from_expsyms_cmds_CXX \
16738 archive_cmds_CXX \
16739 archive_expsym_cmds_CXX \
16740 module_cmds_CXX \
16741 module_expsym_cmds_CXX \
16742 export_symbols_cmds_CXX \
16743 prelink_cmds_CXX; do
16744     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16745     *[\\\\\\\`\\"\\\$]*)
16746       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16747       ;;
16748     *)
16749       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16750       ;;
16751     esac
16752 done
16753
16754 # Fix-up fallback echo if it was mangled by the above quoting rules.
16755 case \$lt_ECHO in
16756 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16757   ;;
16758 esac
16759
16760 ac_aux_dir='$ac_aux_dir'
16761 xsi_shell='$xsi_shell'
16762 lt_shell_append='$lt_shell_append'
16763
16764 # See if we are running on zsh, and set the options which allow our
16765 # commands through without removal of \ escapes INIT.
16766 if test -n "\${ZSH_VERSION+set}" ; then
16767    setopt NO_GLOB_SUBST
16768 fi
16769
16770
16771     PACKAGE='$PACKAGE'
16772     VERSION='$VERSION'
16773     TIMESTAMP='$TIMESTAMP'
16774     RM='$RM'
16775     ofile='$ofile'
16776
16777
16778
16779
16780
16781
16782 _ACEOF
16783
16784 cat >>$CONFIG_STATUS <<\_ACEOF
16785
16786 # Handling of arguments.
16787 for ac_config_target in $ac_config_targets
16788 do
16789   case $ac_config_target in
16790     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16791     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16792     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16793     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16794     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16795     "mm-ta.pc") CONFIG_FILES="$CONFIG_FILES mm-ta.pc" ;;
16796
16797   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16798 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16799    { (exit 1); exit 1; }; };;
16800   esac
16801 done
16802
16803
16804 # If the user did not use the arguments to specify the items to instantiate,
16805 # then the envvar interface is used.  Set only those that are not.
16806 # We use the long form for the default assignment because of an extremely
16807 # bizarre bug on SunOS 4.1.3.
16808 if $ac_need_defaults; then
16809   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16810   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16811   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16812 fi
16813
16814 # Have a temporary directory for convenience.  Make it in the build tree
16815 # simply because there is no reason against having it here, and in addition,
16816 # creating and moving files from /tmp can sometimes cause problems.
16817 # Hook for its removal unless debugging.
16818 # Note that there is a small window in which the directory will not be cleaned:
16819 # after its creation but before its name has been assigned to `$tmp'.
16820 $debug ||
16821 {
16822   tmp=
16823   trap 'exit_status=$?
16824   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16825 ' 0
16826   trap '{ (exit 1); exit 1; }' 1 2 13 15
16827 }
16828 # Create a (secure) tmp directory for tmp files.
16829
16830 {
16831   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16832   test -n "$tmp" && test -d "$tmp"
16833 }  ||
16834 {
16835   tmp=./conf$$-$RANDOM
16836   (umask 077 && mkdir "$tmp")
16837 } ||
16838 {
16839    echo "$me: cannot create a temporary directory in ." >&2
16840    { (exit 1); exit 1; }
16841 }
16842
16843 #
16844 # Set up the sed scripts for CONFIG_FILES section.
16845 #
16846
16847 # No need to generate the scripts if there are no CONFIG_FILES.
16848 # This happens for instance when ./config.status config.h
16849 if test -n "$CONFIG_FILES"; then
16850
16851 _ACEOF
16852
16853
16854
16855 ac_delim='%!_!# '
16856 for ac_last_try in false false false false false :; do
16857   cat >conf$$subs.sed <<_ACEOF
16858 SHELL!$SHELL$ac_delim
16859 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16860 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16861 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16862 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16863 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16864 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16865 exec_prefix!$exec_prefix$ac_delim
16866 prefix!$prefix$ac_delim
16867 program_transform_name!$program_transform_name$ac_delim
16868 bindir!$bindir$ac_delim
16869 sbindir!$sbindir$ac_delim
16870 libexecdir!$libexecdir$ac_delim
16871 datarootdir!$datarootdir$ac_delim
16872 datadir!$datadir$ac_delim
16873 sysconfdir!$sysconfdir$ac_delim
16874 sharedstatedir!$sharedstatedir$ac_delim
16875 localstatedir!$localstatedir$ac_delim
16876 includedir!$includedir$ac_delim
16877 oldincludedir!$oldincludedir$ac_delim
16878 docdir!$docdir$ac_delim
16879 infodir!$infodir$ac_delim
16880 htmldir!$htmldir$ac_delim
16881 dvidir!$dvidir$ac_delim
16882 pdfdir!$pdfdir$ac_delim
16883 psdir!$psdir$ac_delim
16884 libdir!$libdir$ac_delim
16885 localedir!$localedir$ac_delim
16886 mandir!$mandir$ac_delim
16887 DEFS!$DEFS$ac_delim
16888 ECHO_C!$ECHO_C$ac_delim
16889 ECHO_N!$ECHO_N$ac_delim
16890 ECHO_T!$ECHO_T$ac_delim
16891 LIBS!$LIBS$ac_delim
16892 build_alias!$build_alias$ac_delim
16893 host_alias!$host_alias$ac_delim
16894 target_alias!$target_alias$ac_delim
16895 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16896 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16897 INSTALL_DATA!$INSTALL_DATA$ac_delim
16898 am__isrc!$am__isrc$ac_delim
16899 CYGPATH_W!$CYGPATH_W$ac_delim
16900 PACKAGE!$PACKAGE$ac_delim
16901 VERSION!$VERSION$ac_delim
16902 ACLOCAL!$ACLOCAL$ac_delim
16903 AUTOCONF!$AUTOCONF$ac_delim
16904 AUTOMAKE!$AUTOMAKE$ac_delim
16905 AUTOHEADER!$AUTOHEADER$ac_delim
16906 MAKEINFO!$MAKEINFO$ac_delim
16907 install_sh!$install_sh$ac_delim
16908 STRIP!$STRIP$ac_delim
16909 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16910 mkdir_p!$mkdir_p$ac_delim
16911 AWK!$AWK$ac_delim
16912 SET_MAKE!$SET_MAKE$ac_delim
16913 am__leading_dot!$am__leading_dot$ac_delim
16914 AMTAR!$AMTAR$ac_delim
16915 am__tar!$am__tar$ac_delim
16916 am__untar!$am__untar$ac_delim
16917 CXX!$CXX$ac_delim
16918 CXXFLAGS!$CXXFLAGS$ac_delim
16919 LDFLAGS!$LDFLAGS$ac_delim
16920 CPPFLAGS!$CPPFLAGS$ac_delim
16921 ac_ct_CXX!$ac_ct_CXX$ac_delim
16922 EXEEXT!$EXEEXT$ac_delim
16923 OBJEXT!$OBJEXT$ac_delim
16924 DEPDIR!$DEPDIR$ac_delim
16925 am__include!$am__include$ac_delim
16926 am__quote!$am__quote$ac_delim
16927 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16928 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16929 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16930 CXXDEPMODE!$CXXDEPMODE$ac_delim
16931 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
16932 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
16933 CC!$CC$ac_delim
16934 CFLAGS!$CFLAGS$ac_delim
16935 ac_ct_CC!$ac_ct_CC$ac_delim
16936 CCDEPMODE!$CCDEPMODE$ac_delim
16937 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
16938 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
16939 CPP!$CPP$ac_delim
16940 LN_S!$LN_S$ac_delim
16941 LIBTOOL!$LIBTOOL$ac_delim
16942 build!$build$ac_delim
16943 build_cpu!$build_cpu$ac_delim
16944 build_vendor!$build_vendor$ac_delim
16945 build_os!$build_os$ac_delim
16946 host!$host$ac_delim
16947 host_cpu!$host_cpu$ac_delim
16948 host_vendor!$host_vendor$ac_delim
16949 host_os!$host_os$ac_delim
16950 SED!$SED$ac_delim
16951 GREP!$GREP$ac_delim
16952 EGREP!$EGREP$ac_delim
16953 FGREP!$FGREP$ac_delim
16954 LD!$LD$ac_delim
16955 _ACEOF
16956
16957   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16958     break
16959   elif $ac_last_try; then
16960     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16961 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16962    { (exit 1); exit 1; }; }
16963   else
16964     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16965   fi
16966 done
16967
16968 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16969 if test -n "$ac_eof"; then
16970   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16971   ac_eof=`expr $ac_eof + 1`
16972 fi
16973
16974 cat >>$CONFIG_STATUS <<_ACEOF
16975 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16976 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16977 _ACEOF
16978 sed '
16979 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16980 s/^/s,@/; s/!/@,|#_!!_#|/
16981 :n
16982 t n
16983 s/'"$ac_delim"'$/,g/; t
16984 s/$/\\/; p
16985 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16986 ' >>$CONFIG_STATUS <conf$$subs.sed
16987 rm -f conf$$subs.sed
16988 cat >>$CONFIG_STATUS <<_ACEOF
16989 CEOF$ac_eof
16990 _ACEOF
16991
16992
16993 ac_delim='%!_!# '
16994 for ac_last_try in false false false false false :; do
16995   cat >conf$$subs.sed <<_ACEOF
16996 DUMPBIN!$DUMPBIN$ac_delim
16997 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
16998 NM!$NM$ac_delim
16999 AR!$AR$ac_delim
17000 RANLIB!$RANLIB$ac_delim
17001 lt_ECHO!$lt_ECHO$ac_delim
17002 DSYMUTIL!$DSYMUTIL$ac_delim
17003 NMEDIT!$NMEDIT$ac_delim
17004 LIPO!$LIPO$ac_delim
17005 OTOOL!$OTOOL$ac_delim
17006 OTOOL64!$OTOOL64$ac_delim
17007 CXXCPP!$CXXCPP$ac_delim
17008 LIBOBJS!$LIBOBJS$ac_delim
17009 LTLIBOBJS!$LTLIBOBJS$ac_delim
17010 _ACEOF
17011
17012   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
17013     break
17014   elif $ac_last_try; then
17015     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17016 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17017    { (exit 1); exit 1; }; }
17018   else
17019     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17020   fi
17021 done
17022
17023 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17024 if test -n "$ac_eof"; then
17025   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17026   ac_eof=`expr $ac_eof + 1`
17027 fi
17028
17029 cat >>$CONFIG_STATUS <<_ACEOF
17030 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17031 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17032 _ACEOF
17033 sed '
17034 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17035 s/^/s,@/; s/!/@,|#_!!_#|/
17036 :n
17037 t n
17038 s/'"$ac_delim"'$/,g/; t
17039 s/$/\\/; p
17040 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17041 ' >>$CONFIG_STATUS <conf$$subs.sed
17042 rm -f conf$$subs.sed
17043 cat >>$CONFIG_STATUS <<_ACEOF
17044 :end
17045 s/|#_!!_#|//g
17046 CEOF$ac_eof
17047 _ACEOF
17048
17049
17050 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17051 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17052 # trailing colons and then remove the whole line if VPATH becomes empty
17053 # (actually we leave an empty line to preserve line numbers).
17054 if test "x$srcdir" = x.; then
17055   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17056 s/:*\$(srcdir):*/:/
17057 s/:*\${srcdir}:*/:/
17058 s/:*@srcdir@:*/:/
17059 s/^\([^=]*=[     ]*\):*/\1/
17060 s/:*$//
17061 s/^[^=]*=[       ]*$//
17062 }'
17063 fi
17064
17065 cat >>$CONFIG_STATUS <<\_ACEOF
17066 fi # test -n "$CONFIG_FILES"
17067
17068
17069 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
17070 do
17071   case $ac_tag in
17072   :[FHLC]) ac_mode=$ac_tag; continue;;
17073   esac
17074   case $ac_mode$ac_tag in
17075   :[FHL]*:*);;
17076   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17077 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17078    { (exit 1); exit 1; }; };;
17079   :[FH]-) ac_tag=-:-;;
17080   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17081   esac
17082   ac_save_IFS=$IFS
17083   IFS=:
17084   set x $ac_tag
17085   IFS=$ac_save_IFS
17086   shift
17087   ac_file=$1
17088   shift
17089
17090   case $ac_mode in
17091   :L) ac_source=$1;;
17092   :[FH])
17093     ac_file_inputs=
17094     for ac_f
17095     do
17096       case $ac_f in
17097       -) ac_f="$tmp/stdin";;
17098       *) # Look for the file first in the build tree, then in the source tree
17099          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17100          # because $ac_f cannot contain `:'.
17101          test -f "$ac_f" ||
17102            case $ac_f in
17103            [\\/$]*) false;;
17104            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17105            esac ||
17106            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17107 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17108    { (exit 1); exit 1; }; };;
17109       esac
17110       ac_file_inputs="$ac_file_inputs $ac_f"
17111     done
17112
17113     # Let's still pretend it is `configure' which instantiates (i.e., don't
17114     # use $as_me), people would be surprised to read:
17115     #    /* config.h.  Generated by config.status.  */
17116     configure_input="Generated from "`IFS=:
17117           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17118     if test x"$ac_file" != x-; then
17119       configure_input="$ac_file.  $configure_input"
17120       { echo "$as_me:$LINENO: creating $ac_file" >&5
17121 echo "$as_me: creating $ac_file" >&6;}
17122     fi
17123
17124     case $ac_tag in
17125     *:-:* | *:-) cat >"$tmp/stdin";;
17126     esac
17127     ;;
17128   esac
17129
17130   ac_dir=`$as_dirname -- "$ac_file" ||
17131 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17132          X"$ac_file" : 'X\(//\)[^/]' \| \
17133          X"$ac_file" : 'X\(//\)$' \| \
17134          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17135 echo X"$ac_file" |
17136     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17137             s//\1/
17138             q
17139           }
17140           /^X\(\/\/\)[^/].*/{
17141             s//\1/
17142             q
17143           }
17144           /^X\(\/\/\)$/{
17145             s//\1/
17146             q
17147           }
17148           /^X\(\/\).*/{
17149             s//\1/
17150             q
17151           }
17152           s/.*/./; q'`
17153   { as_dir="$ac_dir"
17154   case $as_dir in #(
17155   -*) as_dir=./$as_dir;;
17156   esac
17157   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17158     as_dirs=
17159     while :; do
17160       case $as_dir in #(
17161       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17162       *) as_qdir=$as_dir;;
17163       esac
17164       as_dirs="'$as_qdir' $as_dirs"
17165       as_dir=`$as_dirname -- "$as_dir" ||
17166 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17167          X"$as_dir" : 'X\(//\)[^/]' \| \
17168          X"$as_dir" : 'X\(//\)$' \| \
17169          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17170 echo X"$as_dir" |
17171     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17172             s//\1/
17173             q
17174           }
17175           /^X\(\/\/\)[^/].*/{
17176             s//\1/
17177             q
17178           }
17179           /^X\(\/\/\)$/{
17180             s//\1/
17181             q
17182           }
17183           /^X\(\/\).*/{
17184             s//\1/
17185             q
17186           }
17187           s/.*/./; q'`
17188       test -d "$as_dir" && break
17189     done
17190     test -z "$as_dirs" || eval "mkdir $as_dirs"
17191   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17192 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17193    { (exit 1); exit 1; }; }; }
17194   ac_builddir=.
17195
17196 case "$ac_dir" in
17197 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17198 *)
17199   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17200   # A ".." for each directory in $ac_dir_suffix.
17201   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17202   case $ac_top_builddir_sub in
17203   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17204   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17205   esac ;;
17206 esac
17207 ac_abs_top_builddir=$ac_pwd
17208 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17209 # for backward compatibility:
17210 ac_top_builddir=$ac_top_build_prefix
17211
17212 case $srcdir in
17213   .)  # We are building in place.
17214     ac_srcdir=.
17215     ac_top_srcdir=$ac_top_builddir_sub
17216     ac_abs_top_srcdir=$ac_pwd ;;
17217   [\\/]* | ?:[\\/]* )  # Absolute name.
17218     ac_srcdir=$srcdir$ac_dir_suffix;
17219     ac_top_srcdir=$srcdir
17220     ac_abs_top_srcdir=$srcdir ;;
17221   *) # Relative name.
17222     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17223     ac_top_srcdir=$ac_top_build_prefix$srcdir
17224     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17225 esac
17226 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17227
17228
17229   case $ac_mode in
17230   :F)
17231   #
17232   # CONFIG_FILE
17233   #
17234
17235   case $INSTALL in
17236   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17237   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17238   esac
17239   ac_MKDIR_P=$MKDIR_P
17240   case $MKDIR_P in
17241   [\\/$]* | ?:[\\/]* ) ;;
17242   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17243   esac
17244 _ACEOF
17245
17246 cat >>$CONFIG_STATUS <<\_ACEOF
17247 # If the template does not know about datarootdir, expand it.
17248 # FIXME: This hack should be removed a few years after 2.60.
17249 ac_datarootdir_hack=; ac_datarootdir_seen=
17250
17251 case `sed -n '/datarootdir/ {
17252   p
17253   q
17254 }
17255 /@datadir@/p
17256 /@docdir@/p
17257 /@infodir@/p
17258 /@localedir@/p
17259 /@mandir@/p
17260 ' $ac_file_inputs` in
17261 *datarootdir*) ac_datarootdir_seen=yes;;
17262 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17263   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17264 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17265 _ACEOF
17266 cat >>$CONFIG_STATUS <<_ACEOF
17267   ac_datarootdir_hack='
17268   s&@datadir@&$datadir&g
17269   s&@docdir@&$docdir&g
17270   s&@infodir@&$infodir&g
17271   s&@localedir@&$localedir&g
17272   s&@mandir@&$mandir&g
17273     s&\\\${datarootdir}&$datarootdir&g' ;;
17274 esac
17275 _ACEOF
17276
17277 # Neutralize VPATH when `$srcdir' = `.'.
17278 # Shell code in configure.ac might set extrasub.
17279 # FIXME: do we really want to maintain this feature?
17280 cat >>$CONFIG_STATUS <<_ACEOF
17281   sed "$ac_vpsub
17282 $extrasub
17283 _ACEOF
17284 cat >>$CONFIG_STATUS <<\_ACEOF
17285 :t
17286 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17287 s&@configure_input@&$configure_input&;t t
17288 s&@top_builddir@&$ac_top_builddir_sub&;t t
17289 s&@srcdir@&$ac_srcdir&;t t
17290 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17291 s&@top_srcdir@&$ac_top_srcdir&;t t
17292 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17293 s&@builddir@&$ac_builddir&;t t
17294 s&@abs_builddir@&$ac_abs_builddir&;t t
17295 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17296 s&@INSTALL@&$ac_INSTALL&;t t
17297 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17298 $ac_datarootdir_hack
17299 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17300
17301 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17302   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17303   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17304   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17305 which seems to be undefined.  Please make sure it is defined." >&5
17306 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17307 which seems to be undefined.  Please make sure it is defined." >&2;}
17308
17309   rm -f "$tmp/stdin"
17310   case $ac_file in
17311   -) cat "$tmp/out"; rm -f "$tmp/out";;
17312   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17313   esac
17314  ;;
17315   :H)
17316   #
17317   # CONFIG_HEADER
17318   #
17319 _ACEOF
17320
17321 # Transform confdefs.h into a sed script `conftest.defines', that
17322 # substitutes the proper values into config.h.in to produce config.h.
17323 rm -f conftest.defines conftest.tail
17324 # First, append a space to every undef/define line, to ease matching.
17325 echo 's/$/ /' >conftest.defines
17326 # Then, protect against being on the right side of a sed subst, or in
17327 # an unquoted here document, in config.status.  If some macros were
17328 # called several times there might be several #defines for the same
17329 # symbol, which is useless.  But do not sort them, since the last
17330 # AC_DEFINE must be honored.
17331 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17332 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17333 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17334 # PARAMS is the parameter list in the macro definition--in most cases, it's
17335 # just an empty string.
17336 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
17337 ac_dB='\\)[      (].*,\\1define\\2'
17338 ac_dC=' '
17339 ac_dD=' ,'
17340
17341 uniq confdefs.h |
17342   sed -n '
17343         t rset
17344         :rset
17345         s/^[     ]*#[    ]*define[       ][      ]*//
17346         t ok
17347         d
17348         :ok
17349         s/[\\&,]/\\&/g
17350         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17351         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17352   ' >>conftest.defines
17353
17354 # Remove the space that was appended to ease matching.
17355 # Then replace #undef with comments.  This is necessary, for
17356 # example, in the case of _POSIX_SOURCE, which is predefined and required
17357 # on some systems where configure will not decide to define it.
17358 # (The regexp can be short, since the line contains either #define or #undef.)
17359 echo 's/ $//
17360 s,^[     #]*u.*,/* & */,' >>conftest.defines
17361
17362 # Break up conftest.defines:
17363 ac_max_sed_lines=50
17364
17365 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17366 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17367 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17368 # et cetera.
17369 ac_in='$ac_file_inputs'
17370 ac_out='"$tmp/out1"'
17371 ac_nxt='"$tmp/out2"'
17372
17373 while :
17374 do
17375   # Write a here document:
17376     cat >>$CONFIG_STATUS <<_ACEOF
17377     # First, check the format of the line:
17378     cat >"\$tmp/defines.sed" <<\\CEOF
17379 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
17380 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
17381 b
17382 :def
17383 _ACEOF
17384   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17385   echo 'CEOF
17386     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17387   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17388   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17389   grep . conftest.tail >/dev/null || break
17390   rm -f conftest.defines
17391   mv conftest.tail conftest.defines
17392 done
17393 rm -f conftest.defines conftest.tail
17394
17395 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17396 cat >>$CONFIG_STATUS <<\_ACEOF
17397   if test x"$ac_file" != x-; then
17398     echo "/* $configure_input  */" >"$tmp/config.h"
17399     cat "$ac_result" >>"$tmp/config.h"
17400     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17401       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17402 echo "$as_me: $ac_file is unchanged" >&6;}
17403     else
17404       rm -f $ac_file
17405       mv "$tmp/config.h" $ac_file
17406     fi
17407   else
17408     echo "/* $configure_input  */"
17409     cat "$ac_result"
17410   fi
17411   rm -f "$tmp/out12"
17412 # Compute $ac_file's index in $config_headers.
17413 _am_arg=$ac_file
17414 _am_stamp_count=1
17415 for _am_header in $config_headers :; do
17416   case $_am_header in
17417     $_am_arg | $_am_arg:* )
17418       break ;;
17419     * )
17420       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17421   esac
17422 done
17423 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17424 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17425          X"$_am_arg" : 'X\(//\)[^/]' \| \
17426          X"$_am_arg" : 'X\(//\)$' \| \
17427          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17428 echo X"$_am_arg" |
17429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17430             s//\1/
17431             q
17432           }
17433           /^X\(\/\/\)[^/].*/{
17434             s//\1/
17435             q
17436           }
17437           /^X\(\/\/\)$/{
17438             s//\1/
17439             q
17440           }
17441           /^X\(\/\).*/{
17442             s//\1/
17443             q
17444           }
17445           s/.*/./; q'`/stamp-h$_am_stamp_count
17446  ;;
17447
17448   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17449 echo "$as_me: executing $ac_file commands" >&6;}
17450  ;;
17451   esac
17452
17453
17454   case $ac_file$ac_mode in
17455     "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
17456 # are listed without --file.  Let's play safe and only enable the eval
17457 # if we detect the quoting.
17458 case $CONFIG_FILES in
17459 *\'*) eval set x "$CONFIG_FILES" ;;
17460 *)   set x $CONFIG_FILES ;;
17461 esac
17462 shift
17463 for mf
17464 do
17465   # Strip MF so we end up with the name of the file.
17466   mf=`echo "$mf" | sed -e 's/:.*$//'`
17467   # Check whether this is an Automake generated Makefile or not.
17468   # We used to match only the files named `Makefile.in', but
17469   # some people rename them; so instead we look at the file content.
17470   # Grep'ing the first line is not enough: some people post-process
17471   # each Makefile.in and add a new line on top of each file to say so.
17472   # Grep'ing the whole file is not good either: AIX grep has a line
17473   # limit of 2048, but all sed's we know have understand at least 4000.
17474   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17475     dirpart=`$as_dirname -- "$mf" ||
17476 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17477          X"$mf" : 'X\(//\)[^/]' \| \
17478          X"$mf" : 'X\(//\)$' \| \
17479          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17480 echo X"$mf" |
17481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17482             s//\1/
17483             q
17484           }
17485           /^X\(\/\/\)[^/].*/{
17486             s//\1/
17487             q
17488           }
17489           /^X\(\/\/\)$/{
17490             s//\1/
17491             q
17492           }
17493           /^X\(\/\).*/{
17494             s//\1/
17495             q
17496           }
17497           s/.*/./; q'`
17498   else
17499     continue
17500   fi
17501   # Extract the definition of DEPDIR, am__include, and am__quote
17502   # from the Makefile without running `make'.
17503   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17504   test -z "$DEPDIR" && continue
17505   am__include=`sed -n 's/^am__include = //p' < "$mf"`
17506   test -z "am__include" && continue
17507   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17508   # When using ansi2knr, U may be empty or an underscore; expand it
17509   U=`sed -n 's/^U = //p' < "$mf"`
17510   # Find all dependency output files, they are included files with
17511   # $(DEPDIR) in their names.  We invoke sed twice because it is the
17512   # simplest approach to changing $(DEPDIR) to its actual value in the
17513   # expansion.
17514   for file in `sed -n "
17515     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17516        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17517     # Make sure the directory exists.
17518     test -f "$dirpart/$file" && continue
17519     fdir=`$as_dirname -- "$file" ||
17520 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17521          X"$file" : 'X\(//\)[^/]' \| \
17522          X"$file" : 'X\(//\)$' \| \
17523          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17524 echo X"$file" |
17525     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17526             s//\1/
17527             q
17528           }
17529           /^X\(\/\/\)[^/].*/{
17530             s//\1/
17531             q
17532           }
17533           /^X\(\/\/\)$/{
17534             s//\1/
17535             q
17536           }
17537           /^X\(\/\).*/{
17538             s//\1/
17539             q
17540           }
17541           s/.*/./; q'`
17542     { as_dir=$dirpart/$fdir
17543   case $as_dir in #(
17544   -*) as_dir=./$as_dir;;
17545   esac
17546   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17547     as_dirs=
17548     while :; do
17549       case $as_dir in #(
17550       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17551       *) as_qdir=$as_dir;;
17552       esac
17553       as_dirs="'$as_qdir' $as_dirs"
17554       as_dir=`$as_dirname -- "$as_dir" ||
17555 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17556          X"$as_dir" : 'X\(//\)[^/]' \| \
17557          X"$as_dir" : 'X\(//\)$' \| \
17558          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17559 echo X"$as_dir" |
17560     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17561             s//\1/
17562             q
17563           }
17564           /^X\(\/\/\)[^/].*/{
17565             s//\1/
17566             q
17567           }
17568           /^X\(\/\/\)$/{
17569             s//\1/
17570             q
17571           }
17572           /^X\(\/\).*/{
17573             s//\1/
17574             q
17575           }
17576           s/.*/./; q'`
17577       test -d "$as_dir" && break
17578     done
17579     test -z "$as_dirs" || eval "mkdir $as_dirs"
17580   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17581 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17582    { (exit 1); exit 1; }; }; }
17583     # echo "creating $dirpart/$file"
17584     echo '# dummy' > "$dirpart/$file"
17585   done
17586 done
17587  ;;
17588     "libtool":C)
17589
17590     # See if we are running on zsh, and set the options which allow our
17591     # commands through without removal of \ escapes.
17592     if test -n "${ZSH_VERSION+set}" ; then
17593       setopt NO_GLOB_SUBST
17594     fi
17595
17596     cfgfile="${ofile}T"
17597     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17598     $RM "$cfgfile"
17599
17600     cat <<_LT_EOF >> "$cfgfile"
17601 #! $SHELL
17602
17603 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17604 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17606 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17607 #
17608 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17609 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17610 #   Written by Gordon Matzigkeit, 1996
17611 #
17612 #   This file is part of GNU Libtool.
17613 #
17614 # GNU Libtool is free software; you can redistribute it and/or
17615 # modify it under the terms of the GNU General Public License as
17616 # published by the Free Software Foundation; either version 2 of
17617 # the License, or (at your option) any later version.
17618 #
17619 # As a special exception to the GNU General Public License,
17620 # if you distribute this file as part of a program or library that
17621 # is built using GNU Libtool, you may include this file under the
17622 # same distribution terms that you use for the rest of that program.
17623 #
17624 # GNU Libtool is distributed in the hope that it will be useful,
17625 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17626 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17627 # GNU General Public License for more details.
17628 #
17629 # You should have received a copy of the GNU General Public License
17630 # along with GNU Libtool; see the file COPYING.  If not, a copy
17631 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17632 # obtained by writing to the Free Software Foundation, Inc.,
17633 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17634
17635
17636 # The names of the tagged configurations supported by this script.
17637 available_tags="CXX "
17638
17639 # ### BEGIN LIBTOOL CONFIG
17640
17641 # Which release of libtool.m4 was used?
17642 macro_version=$macro_version
17643 macro_revision=$macro_revision
17644
17645 # Whether or not to build shared libraries.
17646 build_libtool_libs=$enable_shared
17647
17648 # Whether or not to build static libraries.
17649 build_old_libs=$enable_static
17650
17651 # What type of objects to build.
17652 pic_mode=$pic_mode
17653
17654 # Whether or not to optimize for fast installation.
17655 fast_install=$enable_fast_install
17656
17657 # The host system.
17658 host_alias=$host_alias
17659 host=$host
17660 host_os=$host_os
17661
17662 # The build system.
17663 build_alias=$build_alias
17664 build=$build
17665 build_os=$build_os
17666
17667 # A sed program that does not truncate output.
17668 SED=$lt_SED
17669
17670 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17671 Xsed="\$SED -e 1s/^X//"
17672
17673 # A grep program that handles long lines.
17674 GREP=$lt_GREP
17675
17676 # An ERE matcher.
17677 EGREP=$lt_EGREP
17678
17679 # A literal string matcher.
17680 FGREP=$lt_FGREP
17681
17682 # A BSD- or MS-compatible name lister.
17683 NM=$lt_NM
17684
17685 # Whether we need soft or hard links.
17686 LN_S=$lt_LN_S
17687
17688 # What is the maximum length of a command?
17689 max_cmd_len=$max_cmd_len
17690
17691 # Object file suffix (normally "o").
17692 objext=$ac_objext
17693
17694 # Executable file suffix (normally "").
17695 exeext=$exeext
17696
17697 # whether the shell understands "unset".
17698 lt_unset=$lt_unset
17699
17700 # turn spaces into newlines.
17701 SP2NL=$lt_lt_SP2NL
17702
17703 # turn newlines into spaces.
17704 NL2SP=$lt_lt_NL2SP
17705
17706 # How to create reloadable object files.
17707 reload_flag=$lt_reload_flag
17708 reload_cmds=$lt_reload_cmds
17709
17710 # Method to check whether dependent libraries are shared objects.
17711 deplibs_check_method=$lt_deplibs_check_method
17712
17713 # Command to use when deplibs_check_method == "file_magic".
17714 file_magic_cmd=$lt_file_magic_cmd
17715
17716 # The archiver.
17717 AR=$lt_AR
17718 AR_FLAGS=$lt_AR_FLAGS
17719
17720 # A symbol stripping program.
17721 STRIP=$lt_STRIP
17722
17723 # Commands used to install an old-style archive.
17724 RANLIB=$lt_RANLIB
17725 old_postinstall_cmds=$lt_old_postinstall_cmds
17726 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17727
17728 # A C compiler.
17729 LTCC=$lt_CC
17730
17731 # LTCC compiler flags.
17732 LTCFLAGS=$lt_CFLAGS
17733
17734 # Take the output of nm and produce a listing of raw symbols and C names.
17735 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17736
17737 # Transform the output of nm in a proper C declaration.
17738 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17739
17740 # Transform the output of nm in a C name address pair.
17741 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17742
17743 # Transform the output of nm in a C name address pair when lib prefix is needed.
17744 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17745
17746 # The name of the directory that contains temporary libtool files.
17747 objdir=$objdir
17748
17749 # Shell to use when invoking shell scripts.
17750 SHELL=$lt_SHELL
17751
17752 # An echo program that does not interpret backslashes.
17753 ECHO=$lt_ECHO
17754
17755 # Used to examine libraries when file_magic_cmd begins with "file".
17756 MAGIC_CMD=$MAGIC_CMD
17757
17758 # Must we lock files when doing compilation?
17759 need_locks=$lt_need_locks
17760
17761 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17762 DSYMUTIL=$lt_DSYMUTIL
17763
17764 # Tool to change global to local symbols on Mac OS X.
17765 NMEDIT=$lt_NMEDIT
17766
17767 # Tool to manipulate fat objects and archives on Mac OS X.
17768 LIPO=$lt_LIPO
17769
17770 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17771 OTOOL=$lt_OTOOL
17772
17773 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17774 OTOOL64=$lt_OTOOL64
17775
17776 # Old archive suffix (normally "a").
17777 libext=$libext
17778
17779 # Shared library suffix (normally ".so").
17780 shrext_cmds=$lt_shrext_cmds
17781
17782 # The commands to extract the exported symbol list from a shared archive.
17783 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17784
17785 # Variables whose values should be saved in libtool wrapper scripts and
17786 # restored at link time.
17787 variables_saved_for_relink=$lt_variables_saved_for_relink
17788
17789 # Do we need the "lib" prefix for modules?
17790 need_lib_prefix=$need_lib_prefix
17791
17792 # Do we need a version for libraries?
17793 need_version=$need_version
17794
17795 # Library versioning type.
17796 version_type=$version_type
17797
17798 # Shared library runtime path variable.
17799 runpath_var=$runpath_var
17800
17801 # Shared library path variable.
17802 shlibpath_var=$shlibpath_var
17803
17804 # Is shlibpath searched before the hard-coded library search path?
17805 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17806
17807 # Format of library name prefix.
17808 libname_spec=$lt_libname_spec
17809
17810 # List of archive names.  First name is the real one, the rest are links.
17811 # The last name is the one that the linker finds with -lNAME
17812 library_names_spec=$lt_library_names_spec
17813
17814 # The coded name of the library, if different from the real name.
17815 soname_spec=$lt_soname_spec
17816
17817 # Command to use after installation of a shared archive.
17818 postinstall_cmds=$lt_postinstall_cmds
17819
17820 # Command to use after uninstallation of a shared archive.
17821 postuninstall_cmds=$lt_postuninstall_cmds
17822
17823 # Commands used to finish a libtool library installation in a directory.
17824 finish_cmds=$lt_finish_cmds
17825
17826 # As "finish_cmds", except a single script fragment to be evaled but
17827 # not shown.
17828 finish_eval=$lt_finish_eval
17829
17830 # Whether we should hardcode library paths into libraries.
17831 hardcode_into_libs=$hardcode_into_libs
17832
17833 # Compile-time system search path for libraries.
17834 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17835
17836 # Run-time system search path for libraries.
17837 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17838
17839 # Whether dlopen is supported.
17840 dlopen_support=$enable_dlopen
17841
17842 # Whether dlopen of programs is supported.
17843 dlopen_self=$enable_dlopen_self
17844
17845 # Whether dlopen of statically linked programs is supported.
17846 dlopen_self_static=$enable_dlopen_self_static
17847
17848 # Commands to strip libraries.
17849 old_striplib=$lt_old_striplib
17850 striplib=$lt_striplib
17851
17852
17853 # The linker used to build libraries.
17854 LD=$lt_LD
17855
17856 # Commands used to build an old-style archive.
17857 old_archive_cmds=$lt_old_archive_cmds
17858
17859 # A language specific compiler.
17860 CC=$lt_compiler
17861
17862 # Is the compiler the GNU compiler?
17863 with_gcc=$GCC
17864
17865 # Compiler flag to turn off builtin functions.
17866 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17867
17868 # How to pass a linker flag through the compiler.
17869 wl=$lt_lt_prog_compiler_wl
17870
17871 # Additional compiler flags for building library objects.
17872 pic_flag=$lt_lt_prog_compiler_pic
17873
17874 # Compiler flag to prevent dynamic linking.
17875 link_static_flag=$lt_lt_prog_compiler_static
17876
17877 # Does compiler simultaneously support -c and -o options?
17878 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17879
17880 # Whether or not to add -lc for building shared libraries.
17881 build_libtool_need_lc=$archive_cmds_need_lc
17882
17883 # Whether or not to disallow shared libs when runtime libs are static.
17884 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17885
17886 # Compiler flag to allow reflexive dlopens.
17887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17888
17889 # Compiler flag to generate shared objects directly from archives.
17890 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17891
17892 # Whether the compiler copes with passing no objects directly.
17893 compiler_needs_object=$lt_compiler_needs_object
17894
17895 # Create an old-style archive from a shared archive.
17896 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17897
17898 # Create a temporary old-style archive to link instead of a shared archive.
17899 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17900
17901 # Commands used to build a shared archive.
17902 archive_cmds=$lt_archive_cmds
17903 archive_expsym_cmds=$lt_archive_expsym_cmds
17904
17905 # Commands used to build a loadable module if different from building
17906 # a shared archive.
17907 module_cmds=$lt_module_cmds
17908 module_expsym_cmds=$lt_module_expsym_cmds
17909
17910 # Whether we are building with GNU ld or not.
17911 with_gnu_ld=$lt_with_gnu_ld
17912
17913 # Flag that allows shared libraries with undefined symbols to be built.
17914 allow_undefined_flag=$lt_allow_undefined_flag
17915
17916 # Flag that enforces no undefined symbols.
17917 no_undefined_flag=$lt_no_undefined_flag
17918
17919 # Flag to hardcode \$libdir into a binary during linking.
17920 # This must work even if \$libdir does not exist
17921 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17922
17923 # If ld is used when linking, flag to hardcode \$libdir into a binary
17924 # during linking.  This must work even if \$libdir does not exist.
17925 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17926
17927 # Whether we need a single "-rpath" flag with a separated argument.
17928 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17929
17930 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17931 # DIR into the resulting binary.
17932 hardcode_direct=$hardcode_direct
17933
17934 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17935 # DIR into the resulting binary and the resulting library dependency is
17936 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17937 # library is relocated.
17938 hardcode_direct_absolute=$hardcode_direct_absolute
17939
17940 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17941 # into the resulting binary.
17942 hardcode_minus_L=$hardcode_minus_L
17943
17944 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17945 # into the resulting binary.
17946 hardcode_shlibpath_var=$hardcode_shlibpath_var
17947
17948 # Set to "yes" if building a shared library automatically hardcodes DIR
17949 # into the library and all subsequent libraries and executables linked
17950 # against it.
17951 hardcode_automatic=$hardcode_automatic
17952
17953 # Set to yes if linker adds runtime paths of dependent libraries
17954 # to runtime path list.
17955 inherit_rpath=$inherit_rpath
17956
17957 # Whether libtool must link a program against all its dependency libraries.
17958 link_all_deplibs=$link_all_deplibs
17959
17960 # Fix the shell variable \$srcfile for the compiler.
17961 fix_srcfile_path=$lt_fix_srcfile_path
17962
17963 # Set to "yes" if exported symbols are required.
17964 always_export_symbols=$always_export_symbols
17965
17966 # The commands to list exported symbols.
17967 export_symbols_cmds=$lt_export_symbols_cmds
17968
17969 # Symbols that should not be listed in the preloaded symbols.
17970 exclude_expsyms=$lt_exclude_expsyms
17971
17972 # Symbols that must always be exported.
17973 include_expsyms=$lt_include_expsyms
17974
17975 # Commands necessary for linking programs (against libraries) with templates.
17976 prelink_cmds=$lt_prelink_cmds
17977
17978 # Specify filename containing input files.
17979 file_list_spec=$lt_file_list_spec
17980
17981 # How to hardcode a shared library path into an executable.
17982 hardcode_action=$hardcode_action
17983
17984 # The directories searched by this compiler when creating a shared library.
17985 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17986
17987 # Dependencies to place before and after the objects being linked to
17988 # create a shared library.
17989 predep_objects=$lt_predep_objects
17990 postdep_objects=$lt_postdep_objects
17991 predeps=$lt_predeps
17992 postdeps=$lt_postdeps
17993
17994 # The library search path used internally by the compiler when linking
17995 # a shared library.
17996 compiler_lib_search_path=$lt_compiler_lib_search_path
17997
17998 # ### END LIBTOOL CONFIG
17999
18000 _LT_EOF
18001
18002   case $host_os in
18003   aix3*)
18004     cat <<\_LT_EOF >> "$cfgfile"
18005 # AIX sometimes has problems with the GCC collect2 program.  For some
18006 # reason, if we set the COLLECT_NAMES environment variable, the problems
18007 # vanish in a puff of smoke.
18008 if test "X${COLLECT_NAMES+set}" != Xset; then
18009   COLLECT_NAMES=
18010   export COLLECT_NAMES
18011 fi
18012 _LT_EOF
18013     ;;
18014   esac
18015
18016
18017 ltmain="$ac_aux_dir/ltmain.sh"
18018
18019
18020   # We use sed instead of cat because bash on DJGPP gets confused if
18021   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18022   # text mode, it properly converts lines to CR/LF.  This bash problem
18023   # is reportedly fixed, but why not run on old versions too?
18024   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18025     || (rm -f "$cfgfile"; exit 1)
18026
18027   case $xsi_shell in
18028   yes)
18029     cat << \_LT_EOF >> "$cfgfile"
18030
18031 # func_dirname file append nondir_replacement
18032 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18033 # otherwise set result to NONDIR_REPLACEMENT.
18034 func_dirname ()
18035 {
18036   case ${1} in
18037     */*) func_dirname_result="${1%/*}${2}" ;;
18038     *  ) func_dirname_result="${3}" ;;
18039   esac
18040 }
18041
18042 # func_basename file
18043 func_basename ()
18044 {
18045   func_basename_result="${1##*/}"
18046 }
18047
18048 # func_dirname_and_basename file append nondir_replacement
18049 # perform func_basename and func_dirname in a single function
18050 # call:
18051 #   dirname:  Compute the dirname of FILE.  If nonempty,
18052 #             add APPEND to the result, otherwise set result
18053 #             to NONDIR_REPLACEMENT.
18054 #             value returned in "$func_dirname_result"
18055 #   basename: Compute filename of FILE.
18056 #             value retuned in "$func_basename_result"
18057 # Implementation must be kept synchronized with func_dirname
18058 # and func_basename. For efficiency, we do not delegate to
18059 # those functions but instead duplicate the functionality here.
18060 func_dirname_and_basename ()
18061 {
18062   case ${1} in
18063     */*) func_dirname_result="${1%/*}${2}" ;;
18064     *  ) func_dirname_result="${3}" ;;
18065   esac
18066   func_basename_result="${1##*/}"
18067 }
18068
18069 # func_stripname prefix suffix name
18070 # strip PREFIX and SUFFIX off of NAME.
18071 # PREFIX and SUFFIX must not contain globbing or regex special
18072 # characters, hashes, percent signs, but SUFFIX may contain a leading
18073 # dot (in which case that matches only a dot).
18074 func_stripname ()
18075 {
18076   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18077   # positional parameters, so assign one to ordinary parameter first.
18078   func_stripname_result=${3}
18079   func_stripname_result=${func_stripname_result#"${1}"}
18080   func_stripname_result=${func_stripname_result%"${2}"}
18081 }
18082
18083 # func_opt_split
18084 func_opt_split ()
18085 {
18086   func_opt_split_opt=${1%%=*}
18087   func_opt_split_arg=${1#*=}
18088 }
18089
18090 # func_lo2o object
18091 func_lo2o ()
18092 {
18093   case ${1} in
18094     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18095     *)    func_lo2o_result=${1} ;;
18096   esac
18097 }
18098
18099 # func_xform libobj-or-source
18100 func_xform ()
18101 {
18102   func_xform_result=${1%.*}.lo
18103 }
18104
18105 # func_arith arithmetic-term...
18106 func_arith ()
18107 {
18108   func_arith_result=$(( $* ))
18109 }
18110
18111 # func_len string
18112 # STRING may not start with a hyphen.
18113 func_len ()
18114 {
18115   func_len_result=${#1}
18116 }
18117
18118 _LT_EOF
18119     ;;
18120   *) # Bourne compatible functions.
18121     cat << \_LT_EOF >> "$cfgfile"
18122
18123 # func_dirname file append nondir_replacement
18124 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18125 # otherwise set result to NONDIR_REPLACEMENT.
18126 func_dirname ()
18127 {
18128   # Extract subdirectory from the argument.
18129   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18130   if test "X$func_dirname_result" = "X${1}"; then
18131     func_dirname_result="${3}"
18132   else
18133     func_dirname_result="$func_dirname_result${2}"
18134   fi
18135 }
18136
18137 # func_basename file
18138 func_basename ()
18139 {
18140   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18141 }
18142
18143
18144 # func_stripname prefix suffix name
18145 # strip PREFIX and SUFFIX off of NAME.
18146 # PREFIX and SUFFIX must not contain globbing or regex special
18147 # characters, hashes, percent signs, but SUFFIX may contain a leading
18148 # dot (in which case that matches only a dot).
18149 # func_strip_suffix prefix name
18150 func_stripname ()
18151 {
18152   case ${2} in
18153     .*) func_stripname_result=`$ECHO "X${3}" \
18154            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18155     *)  func_stripname_result=`$ECHO "X${3}" \
18156            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18157   esac
18158 }
18159
18160 # sed scripts:
18161 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18162 my_sed_long_arg='1s/^-[^=]*=//'
18163
18164 # func_opt_split
18165 func_opt_split ()
18166 {
18167   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18168   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18169 }
18170
18171 # func_lo2o object
18172 func_lo2o ()
18173 {
18174   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18175 }
18176
18177 # func_xform libobj-or-source
18178 func_xform ()
18179 {
18180   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18181 }
18182
18183 # func_arith arithmetic-term...
18184 func_arith ()
18185 {
18186   func_arith_result=`expr "$@"`
18187 }
18188
18189 # func_len string
18190 # STRING may not start with a hyphen.
18191 func_len ()
18192 {
18193   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18194 }
18195
18196 _LT_EOF
18197 esac
18198
18199 case $lt_shell_append in
18200   yes)
18201     cat << \_LT_EOF >> "$cfgfile"
18202
18203 # func_append var value
18204 # Append VALUE to the end of shell variable VAR.
18205 func_append ()
18206 {
18207   eval "$1+=\$2"
18208 }
18209 _LT_EOF
18210     ;;
18211   *)
18212     cat << \_LT_EOF >> "$cfgfile"
18213
18214 # func_append var value
18215 # Append VALUE to the end of shell variable VAR.
18216 func_append ()
18217 {
18218   eval "$1=\$$1\$2"
18219 }
18220
18221 _LT_EOF
18222     ;;
18223   esac
18224
18225
18226   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18227     || (rm -f "$cfgfile"; exit 1)
18228
18229   mv -f "$cfgfile" "$ofile" ||
18230     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18231   chmod +x "$ofile"
18232
18233
18234     cat <<_LT_EOF >> "$ofile"
18235
18236 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18237
18238 # The linker used to build libraries.
18239 LD=$lt_LD_CXX
18240
18241 # Commands used to build an old-style archive.
18242 old_archive_cmds=$lt_old_archive_cmds_CXX
18243
18244 # A language specific compiler.
18245 CC=$lt_compiler_CXX
18246
18247 # Is the compiler the GNU compiler?
18248 with_gcc=$GCC_CXX
18249
18250 # Compiler flag to turn off builtin functions.
18251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18252
18253 # How to pass a linker flag through the compiler.
18254 wl=$lt_lt_prog_compiler_wl_CXX
18255
18256 # Additional compiler flags for building library objects.
18257 pic_flag=$lt_lt_prog_compiler_pic_CXX
18258
18259 # Compiler flag to prevent dynamic linking.
18260 link_static_flag=$lt_lt_prog_compiler_static_CXX
18261
18262 # Does compiler simultaneously support -c and -o options?
18263 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18264
18265 # Whether or not to add -lc for building shared libraries.
18266 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18267
18268 # Whether or not to disallow shared libs when runtime libs are static.
18269 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18270
18271 # Compiler flag to allow reflexive dlopens.
18272 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18273
18274 # Compiler flag to generate shared objects directly from archives.
18275 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18276
18277 # Whether the compiler copes with passing no objects directly.
18278 compiler_needs_object=$lt_compiler_needs_object_CXX
18279
18280 # Create an old-style archive from a shared archive.
18281 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18282
18283 # Create a temporary old-style archive to link instead of a shared archive.
18284 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18285
18286 # Commands used to build a shared archive.
18287 archive_cmds=$lt_archive_cmds_CXX
18288 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18289
18290 # Commands used to build a loadable module if different from building
18291 # a shared archive.
18292 module_cmds=$lt_module_cmds_CXX
18293 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18294
18295 # Whether we are building with GNU ld or not.
18296 with_gnu_ld=$lt_with_gnu_ld_CXX
18297
18298 # Flag that allows shared libraries with undefined symbols to be built.
18299 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18300
18301 # Flag that enforces no undefined symbols.
18302 no_undefined_flag=$lt_no_undefined_flag_CXX
18303
18304 # Flag to hardcode \$libdir into a binary during linking.
18305 # This must work even if \$libdir does not exist
18306 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18307
18308 # If ld is used when linking, flag to hardcode \$libdir into a binary
18309 # during linking.  This must work even if \$libdir does not exist.
18310 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18311
18312 # Whether we need a single "-rpath" flag with a separated argument.
18313 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18314
18315 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18316 # DIR into the resulting binary.
18317 hardcode_direct=$hardcode_direct_CXX
18318
18319 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18320 # DIR into the resulting binary and the resulting library dependency is
18321 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18322 # library is relocated.
18323 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18324
18325 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18326 # into the resulting binary.
18327 hardcode_minus_L=$hardcode_minus_L_CXX
18328
18329 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18330 # into the resulting binary.
18331 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18332
18333 # Set to "yes" if building a shared library automatically hardcodes DIR
18334 # into the library and all subsequent libraries and executables linked
18335 # against it.
18336 hardcode_automatic=$hardcode_automatic_CXX
18337
18338 # Set to yes if linker adds runtime paths of dependent libraries
18339 # to runtime path list.
18340 inherit_rpath=$inherit_rpath_CXX
18341
18342 # Whether libtool must link a program against all its dependency libraries.
18343 link_all_deplibs=$link_all_deplibs_CXX
18344
18345 # Fix the shell variable \$srcfile for the compiler.
18346 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18347
18348 # Set to "yes" if exported symbols are required.
18349 always_export_symbols=$always_export_symbols_CXX
18350
18351 # The commands to list exported symbols.
18352 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18353
18354 # Symbols that should not be listed in the preloaded symbols.
18355 exclude_expsyms=$lt_exclude_expsyms_CXX
18356
18357 # Symbols that must always be exported.
18358 include_expsyms=$lt_include_expsyms_CXX
18359
18360 # Commands necessary for linking programs (against libraries) with templates.
18361 prelink_cmds=$lt_prelink_cmds_CXX
18362
18363 # Specify filename containing input files.
18364 file_list_spec=$lt_file_list_spec_CXX
18365
18366 # How to hardcode a shared library path into an executable.
18367 hardcode_action=$hardcode_action_CXX
18368
18369 # The directories searched by this compiler when creating a shared library.
18370 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18371
18372 # Dependencies to place before and after the objects being linked to
18373 # create a shared library.
18374 predep_objects=$lt_predep_objects_CXX
18375 postdep_objects=$lt_postdep_objects_CXX
18376 predeps=$lt_predeps_CXX
18377 postdeps=$lt_postdeps_CXX
18378
18379 # The library search path used internally by the compiler when linking
18380 # a shared library.
18381 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18382
18383 # ### END LIBTOOL TAG CONFIG: CXX
18384 _LT_EOF
18385
18386  ;;
18387
18388   esac
18389 done # for ac_tag
18390
18391
18392 { (exit 0); exit 0; }
18393 _ACEOF
18394 chmod +x $CONFIG_STATUS
18395 ac_clean_files=$ac_clean_files_save
18396
18397
18398 # configure is writing to config.log, and then calls config.status.
18399 # config.status does its own redirection, appending to config.log.
18400 # Unfortunately, on DOS this fails, as config.log is still kept open
18401 # by configure, so config.status won't be able to write to it; its
18402 # output is simply discarded.  So we exec the FD to /dev/null,
18403 # effectively closing config.log, so it can be properly (re)opened and
18404 # appended to by config.status.  When coming back to configure, we
18405 # need to make the FD available again.
18406 if test "$no_create" != yes; then
18407   ac_cs_success=:
18408   ac_config_status_args=
18409   test "$silent" = yes &&
18410     ac_config_status_args="$ac_config_status_args --quiet"
18411   exec 5>/dev/null
18412   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18413   exec 5>>config.log
18414   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18415   # would make configure fail if this is the last instruction.
18416   $ac_cs_success || { (exit 1); exit 1; }
18417 fi
18418