OSDN Git Service

implement exec() in TsRemux class in Form1.cc
[tsremuxcpp/developing01.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for tsremuxcpp 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='tsremuxcpp'
723 PACKAGE_TARNAME='tsremuxcpp'
724 PACKAGE_VERSION='0.1'
725 PACKAGE_STRING='tsremuxcpp 0.1'
726 PACKAGE_BUGREPORT=''
727
728 # Factoring default headers for most tests.
729 ac_includes_default="\
730 #include <stdio.h>
731 #ifdef HAVE_SYS_TYPES_H
732 # include <sys/types.h>
733 #endif
734 #ifdef HAVE_SYS_STAT_H
735 # include <sys/stat.h>
736 #endif
737 #ifdef STDC_HEADERS
738 # include <stdlib.h>
739 # include <stddef.h>
740 #else
741 # ifdef HAVE_STDLIB_H
742 #  include <stdlib.h>
743 # endif
744 #endif
745 #ifdef HAVE_STRING_H
746 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
747 #  include <memory.h>
748 # endif
749 # include <string.h>
750 #endif
751 #ifdef HAVE_STRINGS_H
752 # include <strings.h>
753 #endif
754 #ifdef HAVE_INTTYPES_H
755 # include <inttypes.h>
756 #endif
757 #ifdef HAVE_STDINT_H
758 # include <stdint.h>
759 #endif
760 #ifdef HAVE_UNISTD_H
761 # include <unistd.h>
762 #endif"
763
764 ac_subst_vars='SHELL
765 PATH_SEPARATOR
766 PACKAGE_NAME
767 PACKAGE_TARNAME
768 PACKAGE_VERSION
769 PACKAGE_STRING
770 PACKAGE_BUGREPORT
771 exec_prefix
772 prefix
773 program_transform_name
774 bindir
775 sbindir
776 libexecdir
777 datarootdir
778 datadir
779 sysconfdir
780 sharedstatedir
781 localstatedir
782 includedir
783 oldincludedir
784 docdir
785 infodir
786 htmldir
787 dvidir
788 pdfdir
789 psdir
790 libdir
791 localedir
792 mandir
793 DEFS
794 ECHO_C
795 ECHO_N
796 ECHO_T
797 LIBS
798 build_alias
799 host_alias
800 target_alias
801 INSTALL_PROGRAM
802 INSTALL_SCRIPT
803 INSTALL_DATA
804 am__isrc
805 CYGPATH_W
806 PACKAGE
807 VERSION
808 ACLOCAL
809 AUTOCONF
810 AUTOMAKE
811 AUTOHEADER
812 MAKEINFO
813 install_sh
814 STRIP
815 INSTALL_STRIP_PROGRAM
816 mkdir_p
817 AWK
818 SET_MAKE
819 am__leading_dot
820 AMTAR
821 am__tar
822 am__untar
823 MAINTAINER_MODE_TRUE
824 MAINTAINER_MODE_FALSE
825 MAINT
826 CC
827 CFLAGS
828 LDFLAGS
829 CPPFLAGS
830 ac_ct_CC
831 EXEEXT
832 OBJEXT
833 DEPDIR
834 am__include
835 am__quote
836 AMDEP_TRUE
837 AMDEP_FALSE
838 AMDEPBACKSLASH
839 CCDEPMODE
840 am__fastdepCC_TRUE
841 am__fastdepCC_FALSE
842 CXX
843 CXXFLAGS
844 ac_ct_CXX
845 CXXDEPMODE
846 am__fastdepCXX_TRUE
847 am__fastdepCXX_FALSE
848 CPP
849 GREP
850 EGREP
851 GETTEXT_PACKAGE
852 USE_NLS
853 MSGFMT
854 MSGFMT_OPTS
855 GMSGFMT
856 XGETTEXT
857 CATALOGS
858 CATOBJEXT
859 DATADIRNAME
860 GMOFILES
861 INSTOBJEXT
862 INTLLIBS
863 PO_IN_DATADIR_TRUE
864 PO_IN_DATADIR_FALSE
865 POFILES
866 POSUB
867 MKINSTALLDIRS
868 INTLTOOL_UPDATE
869 INTLTOOL_MERGE
870 INTLTOOL_EXTRACT
871 INTLTOOL_DESKTOP_RULE
872 INTLTOOL_DIRECTORY_RULE
873 INTLTOOL_KEYS_RULE
874 INTLTOOL_PROP_RULE
875 INTLTOOL_OAF_RULE
876 INTLTOOL_PONG_RULE
877 INTLTOOL_SERVER_RULE
878 INTLTOOL_SHEET_RULE
879 INTLTOOL_SOUNDLIST_RULE
880 INTLTOOL_UI_RULE
881 INTLTOOL_XAM_RULE
882 INTLTOOL_KBD_RULE
883 INTLTOOL_XML_RULE
884 INTLTOOL_XML_NOMERGE_RULE
885 INTLTOOL_CAVES_RULE
886 INTLTOOL_SCHEMAS_RULE
887 INTLTOOL_THEME_RULE
888 INTLTOOL_SERVICE_RULE
889 INTLTOOL_POLICY_RULE
890 MSGMERGE
891 INTLTOOL_PERL
892 ALL_LINGUAS
893 LIBTOOL
894 build
895 build_cpu
896 build_vendor
897 build_os
898 host
899 host_cpu
900 host_vendor
901 host_os
902 SED
903 FGREP
904 LD
905 DUMPBIN
906 ac_ct_DUMPBIN
907 NM
908 LN_S
909 AR
910 RANLIB
911 lt_ECHO
912 DSYMUTIL
913 NMEDIT
914 LIPO
915 OTOOL
916 OTOOL64
917 CXXCPP
918 LIBOBJS
919 LTLIBOBJS'
920 ac_subst_files=''
921       ac_precious_vars='build_alias
922 host_alias
923 target_alias
924 CC
925 CFLAGS
926 LDFLAGS
927 LIBS
928 CPPFLAGS
929 CXX
930 CXXFLAGS
931 CCC
932 CPP
933 CXXCPP'
934
935
936 # Initialize some variables set by options.
937 ac_init_help=
938 ac_init_version=false
939 # The variables have the same names as the options, with
940 # dashes changed to underlines.
941 cache_file=/dev/null
942 exec_prefix=NONE
943 no_create=
944 no_recursion=
945 prefix=NONE
946 program_prefix=NONE
947 program_suffix=NONE
948 program_transform_name=s,x,x,
949 silent=
950 site=
951 srcdir=
952 verbose=
953 x_includes=NONE
954 x_libraries=NONE
955
956 # Installation directory options.
957 # These are left unexpanded so users can "make install exec_prefix=/foo"
958 # and all the variables that are supposed to be based on exec_prefix
959 # by default will actually change.
960 # Use braces instead of parens because sh, perl, etc. also accept them.
961 # (The list follows the same order as the GNU Coding Standards.)
962 bindir='${exec_prefix}/bin'
963 sbindir='${exec_prefix}/sbin'
964 libexecdir='${exec_prefix}/libexec'
965 datarootdir='${prefix}/share'
966 datadir='${datarootdir}'
967 sysconfdir='${prefix}/etc'
968 sharedstatedir='${prefix}/com'
969 localstatedir='${prefix}/var'
970 includedir='${prefix}/include'
971 oldincludedir='/usr/include'
972 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
973 infodir='${datarootdir}/info'
974 htmldir='${docdir}'
975 dvidir='${docdir}'
976 pdfdir='${docdir}'
977 psdir='${docdir}'
978 libdir='${exec_prefix}/lib'
979 localedir='${datarootdir}/locale'
980 mandir='${datarootdir}/man'
981
982 ac_prev=
983 ac_dashdash=
984 for ac_option
985 do
986   # If the previous option needs an argument, assign it.
987   if test -n "$ac_prev"; then
988     eval $ac_prev=\$ac_option
989     ac_prev=
990     continue
991   fi
992
993   case $ac_option in
994   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995   *)    ac_optarg=yes ;;
996   esac
997
998   # Accept the important Cygnus configure options, so we can diagnose typos.
999
1000   case $ac_dashdash$ac_option in
1001   --)
1002     ac_dashdash=yes ;;
1003
1004   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1005     ac_prev=bindir ;;
1006   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007     bindir=$ac_optarg ;;
1008
1009   -build | --build | --buil | --bui | --bu)
1010     ac_prev=build_alias ;;
1011   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012     build_alias=$ac_optarg ;;
1013
1014   -cache-file | --cache-file | --cache-fil | --cache-fi \
1015   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016     ac_prev=cache_file ;;
1017   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019     cache_file=$ac_optarg ;;
1020
1021   --config-cache | -C)
1022     cache_file=config.cache ;;
1023
1024   -datadir | --datadir | --datadi | --datad)
1025     ac_prev=datadir ;;
1026   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027     datadir=$ac_optarg ;;
1028
1029   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030   | --dataroo | --dataro | --datar)
1031     ac_prev=datarootdir ;;
1032   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034     datarootdir=$ac_optarg ;;
1035
1036   -disable-* | --disable-*)
1037     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038     # Reject names that are not valid shell variable names.
1039     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1041    { (exit 1); exit 1; }; }
1042     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1043     eval enable_$ac_feature=no ;;
1044
1045   -docdir | --docdir | --docdi | --doc | --do)
1046     ac_prev=docdir ;;
1047   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1048     docdir=$ac_optarg ;;
1049
1050   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1051     ac_prev=dvidir ;;
1052   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1053     dvidir=$ac_optarg ;;
1054
1055   -enable-* | --enable-*)
1056     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1057     # Reject names that are not valid shell variable names.
1058     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1059       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1060    { (exit 1); exit 1; }; }
1061     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1062     eval enable_$ac_feature=\$ac_optarg ;;
1063
1064   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1065   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1066   | --exec | --exe | --ex)
1067     ac_prev=exec_prefix ;;
1068   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1069   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1070   | --exec=* | --exe=* | --ex=*)
1071     exec_prefix=$ac_optarg ;;
1072
1073   -gas | --gas | --ga | --g)
1074     # Obsolete; use --with-gas.
1075     with_gas=yes ;;
1076
1077   -help | --help | --hel | --he | -h)
1078     ac_init_help=long ;;
1079   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1080     ac_init_help=recursive ;;
1081   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1082     ac_init_help=short ;;
1083
1084   -host | --host | --hos | --ho)
1085     ac_prev=host_alias ;;
1086   -host=* | --host=* | --hos=* | --ho=*)
1087     host_alias=$ac_optarg ;;
1088
1089   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1090     ac_prev=htmldir ;;
1091   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1092   | --ht=*)
1093     htmldir=$ac_optarg ;;
1094
1095   -includedir | --includedir | --includedi | --included | --include \
1096   | --includ | --inclu | --incl | --inc)
1097     ac_prev=includedir ;;
1098   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1099   | --includ=* | --inclu=* | --incl=* | --inc=*)
1100     includedir=$ac_optarg ;;
1101
1102   -infodir | --infodir | --infodi | --infod | --info | --inf)
1103     ac_prev=infodir ;;
1104   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1105     infodir=$ac_optarg ;;
1106
1107   -libdir | --libdir | --libdi | --libd)
1108     ac_prev=libdir ;;
1109   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1110     libdir=$ac_optarg ;;
1111
1112   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1113   | --libexe | --libex | --libe)
1114     ac_prev=libexecdir ;;
1115   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1116   | --libexe=* | --libex=* | --libe=*)
1117     libexecdir=$ac_optarg ;;
1118
1119   -localedir | --localedir | --localedi | --localed | --locale)
1120     ac_prev=localedir ;;
1121   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1122     localedir=$ac_optarg ;;
1123
1124   -localstatedir | --localstatedir | --localstatedi | --localstated \
1125   | --localstate | --localstat | --localsta | --localst | --locals)
1126     ac_prev=localstatedir ;;
1127   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1128   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1129     localstatedir=$ac_optarg ;;
1130
1131   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1132     ac_prev=mandir ;;
1133   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1134     mandir=$ac_optarg ;;
1135
1136   -nfp | --nfp | --nf)
1137     # Obsolete; use --without-fp.
1138     with_fp=no ;;
1139
1140   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1141   | --no-cr | --no-c | -n)
1142     no_create=yes ;;
1143
1144   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1145   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146     no_recursion=yes ;;
1147
1148   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1149   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1150   | --oldin | --oldi | --old | --ol | --o)
1151     ac_prev=oldincludedir ;;
1152   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1153   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1154   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1155     oldincludedir=$ac_optarg ;;
1156
1157   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1158     ac_prev=prefix ;;
1159   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1160     prefix=$ac_optarg ;;
1161
1162   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1163   | --program-pre | --program-pr | --program-p)
1164     ac_prev=program_prefix ;;
1165   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1166   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1167     program_prefix=$ac_optarg ;;
1168
1169   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1170   | --program-suf | --program-su | --program-s)
1171     ac_prev=program_suffix ;;
1172   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1173   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1174     program_suffix=$ac_optarg ;;
1175
1176   -program-transform-name | --program-transform-name \
1177   | --program-transform-nam | --program-transform-na \
1178   | --program-transform-n | --program-transform- \
1179   | --program-transform | --program-transfor \
1180   | --program-transfo | --program-transf \
1181   | --program-trans | --program-tran \
1182   | --progr-tra | --program-tr | --program-t)
1183     ac_prev=program_transform_name ;;
1184   -program-transform-name=* | --program-transform-name=* \
1185   | --program-transform-nam=* | --program-transform-na=* \
1186   | --program-transform-n=* | --program-transform-=* \
1187   | --program-transform=* | --program-transfor=* \
1188   | --program-transfo=* | --program-transf=* \
1189   | --program-trans=* | --program-tran=* \
1190   | --progr-tra=* | --program-tr=* | --program-t=*)
1191     program_transform_name=$ac_optarg ;;
1192
1193   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1194     ac_prev=pdfdir ;;
1195   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1196     pdfdir=$ac_optarg ;;
1197
1198   -psdir | --psdir | --psdi | --psd | --ps)
1199     ac_prev=psdir ;;
1200   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201     psdir=$ac_optarg ;;
1202
1203   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204   | -silent | --silent | --silen | --sile | --sil)
1205     silent=yes ;;
1206
1207   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1208     ac_prev=sbindir ;;
1209   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1210   | --sbi=* | --sb=*)
1211     sbindir=$ac_optarg ;;
1212
1213   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1214   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1215   | --sharedst | --shareds | --shared | --share | --shar \
1216   | --sha | --sh)
1217     ac_prev=sharedstatedir ;;
1218   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1219   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1220   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1221   | --sha=* | --sh=*)
1222     sharedstatedir=$ac_optarg ;;
1223
1224   -site | --site | --sit)
1225     ac_prev=site ;;
1226   -site=* | --site=* | --sit=*)
1227     site=$ac_optarg ;;
1228
1229   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1230     ac_prev=srcdir ;;
1231   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1232     srcdir=$ac_optarg ;;
1233
1234   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1235   | --syscon | --sysco | --sysc | --sys | --sy)
1236     ac_prev=sysconfdir ;;
1237   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1238   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1239     sysconfdir=$ac_optarg ;;
1240
1241   -target | --target | --targe | --targ | --tar | --ta | --t)
1242     ac_prev=target_alias ;;
1243   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1244     target_alias=$ac_optarg ;;
1245
1246   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247     verbose=yes ;;
1248
1249   -version | --version | --versio | --versi | --vers | -V)
1250     ac_init_version=: ;;
1251
1252   -with-* | --with-*)
1253     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1254     # Reject names that are not valid shell variable names.
1255     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256       { echo "$as_me: error: invalid package name: $ac_package" >&2
1257    { (exit 1); exit 1; }; }
1258     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1259     eval with_$ac_package=\$ac_optarg ;;
1260
1261   -without-* | --without-*)
1262     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1263     # Reject names that are not valid shell variable names.
1264     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265       { echo "$as_me: error: invalid package name: $ac_package" >&2
1266    { (exit 1); exit 1; }; }
1267     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1268     eval with_$ac_package=no ;;
1269
1270   --x)
1271     # Obsolete; use --with-x.
1272     with_x=yes ;;
1273
1274   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275   | --x-incl | --x-inc | --x-in | --x-i)
1276     ac_prev=x_includes ;;
1277   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1279     x_includes=$ac_optarg ;;
1280
1281   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283     ac_prev=x_libraries ;;
1284   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1286     x_libraries=$ac_optarg ;;
1287
1288   -*) { echo "$as_me: error: unrecognized option: $ac_option
1289 Try \`$0 --help' for more information." >&2
1290    { (exit 1); exit 1; }; }
1291     ;;
1292
1293   *=*)
1294     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295     # Reject names that are not valid shell variable names.
1296     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1297       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1298    { (exit 1); exit 1; }; }
1299     eval $ac_envvar=\$ac_optarg
1300     export $ac_envvar ;;
1301
1302   *)
1303     # FIXME: should be removed in autoconf 3.0.
1304     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1305     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1307     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1308     ;;
1309
1310   esac
1311 done
1312
1313 if test -n "$ac_prev"; then
1314   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1315   { echo "$as_me: error: missing argument to $ac_option" >&2
1316    { (exit 1); exit 1; }; }
1317 fi
1318
1319 # Be sure to have absolute directory names.
1320 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1321                 datadir sysconfdir sharedstatedir localstatedir includedir \
1322                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1323                 libdir localedir mandir
1324 do
1325   eval ac_val=\$$ac_var
1326   case $ac_val in
1327     [\\/$]* | ?:[\\/]* )  continue;;
1328     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1329   esac
1330   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1331    { (exit 1); exit 1; }; }
1332 done
1333
1334 # There might be people who depend on the old broken behavior: `$host'
1335 # used to hold the argument of --host etc.
1336 # FIXME: To remove some day.
1337 build=$build_alias
1338 host=$host_alias
1339 target=$target_alias
1340
1341 # FIXME: To remove some day.
1342 if test "x$host_alias" != x; then
1343   if test "x$build_alias" = x; then
1344     cross_compiling=maybe
1345     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1346     If a cross compiler is detected then cross compile mode will be used." >&2
1347   elif test "x$build_alias" != "x$host_alias"; then
1348     cross_compiling=yes
1349   fi
1350 fi
1351
1352 ac_tool_prefix=
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354
1355 test "$silent" = yes && exec 6>/dev/null
1356
1357
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361   { echo "$as_me: error: Working directory cannot be determined" >&2
1362    { (exit 1); exit 1; }; }
1363 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1364   { echo "$as_me: error: pwd does not report name of working directory" >&2
1365    { (exit 1); exit 1; }; }
1366
1367
1368 # Find the source files, if location was not specified.
1369 if test -z "$srcdir"; then
1370   ac_srcdir_defaulted=yes
1371   # Try the directory containing this script, then the parent directory.
1372   ac_confdir=`$as_dirname -- "$0" ||
1373 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374          X"$0" : 'X\(//\)[^/]' \| \
1375          X"$0" : 'X\(//\)$' \| \
1376          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1377 echo X"$0" |
1378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379             s//\1/
1380             q
1381           }
1382           /^X\(\/\/\)[^/].*/{
1383             s//\1/
1384             q
1385           }
1386           /^X\(\/\/\)$/{
1387             s//\1/
1388             q
1389           }
1390           /^X\(\/\).*/{
1391             s//\1/
1392             q
1393           }
1394           s/.*/./; q'`
1395   srcdir=$ac_confdir
1396   if test ! -r "$srcdir/$ac_unique_file"; then
1397     srcdir=..
1398   fi
1399 else
1400   ac_srcdir_defaulted=no
1401 fi
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1403   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1405    { (exit 1); exit 1; }; }
1406 fi
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408 ac_abs_confdir=`(
1409         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1410    { (exit 1); exit 1; }; }
1411         pwd)`
1412 # When building in place, set srcdir=.
1413 if test "$ac_abs_confdir" = "$ac_pwd"; then
1414   srcdir=.
1415 fi
1416 # Remove unnecessary trailing slashes from srcdir.
1417 # Double slashes in file names in object file debugging info
1418 # mess up M-x gdb in Emacs.
1419 case $srcdir in
1420 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 esac
1422 for ac_var in $ac_precious_vars; do
1423   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424   eval ac_env_${ac_var}_value=\$${ac_var}
1425   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427 done
1428
1429 #
1430 # Report the --help message.
1431 #
1432 if test "$ac_init_help" = "long"; then
1433   # Omit some internal or obsolete options to make the list less imposing.
1434   # This message is too long to be a string in the A/UX 3.1 sh.
1435   cat <<_ACEOF
1436 \`configure' configures tsremuxcpp 0.1 to adapt to many kinds of systems.
1437
1438 Usage: $0 [OPTION]... [VAR=VALUE]...
1439
1440 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441 VAR=VALUE.  See below for descriptions of some of the useful variables.
1442
1443 Defaults for the options are specified in brackets.
1444
1445 Configuration:
1446   -h, --help              display this help and exit
1447       --help=short        display options specific to this package
1448       --help=recursive    display the short help of all the included packages
1449   -V, --version           display version information and exit
1450   -q, --quiet, --silent   do not print \`checking...' messages
1451       --cache-file=FILE   cache test results in FILE [disabled]
1452   -C, --config-cache      alias for \`--cache-file=config.cache'
1453   -n, --no-create         do not create output files
1454       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1455
1456 Installation directories:
1457   --prefix=PREFIX         install architecture-independent files in PREFIX
1458                           [$ac_default_prefix]
1459   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1460                           [PREFIX]
1461
1462 By default, \`make install' will install all the files in
1463 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1464 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465 for instance \`--prefix=\$HOME'.
1466
1467 For better control, use the options below.
1468
1469 Fine tuning of the installation directories:
1470   --bindir=DIR           user executables [EPREFIX/bin]
1471   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1472   --libexecdir=DIR       program executables [EPREFIX/libexec]
1473   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1474   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1475   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1476   --libdir=DIR           object code libraries [EPREFIX/lib]
1477   --includedir=DIR       C header files [PREFIX/include]
1478   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1479   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1480   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1481   --infodir=DIR          info documentation [DATAROOTDIR/info]
1482   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1483   --mandir=DIR           man documentation [DATAROOTDIR/man]
1484   --docdir=DIR           documentation root [DATAROOTDIR/doc/tsremuxcpp]
1485   --htmldir=DIR          html documentation [DOCDIR]
1486   --dvidir=DIR           dvi documentation [DOCDIR]
1487   --pdfdir=DIR           pdf documentation [DOCDIR]
1488   --psdir=DIR            ps documentation [DOCDIR]
1489 _ACEOF
1490
1491   cat <<\_ACEOF
1492
1493 Program names:
1494   --program-prefix=PREFIX            prepend PREFIX to installed program names
1495   --program-suffix=SUFFIX            append SUFFIX to installed program names
1496   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1497
1498 System types:
1499   --build=BUILD     configure for building on BUILD [guessed]
1500   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1501 _ACEOF
1502 fi
1503
1504 if test -n "$ac_init_help"; then
1505   case $ac_init_help in
1506      short | recursive ) echo "Configuration of tsremuxcpp 0.1:";;
1507    esac
1508   cat <<\_ACEOF
1509
1510 Optional Features:
1511   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1512   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1513   --enable-maintainer-mode  enable make rules and dependencies not useful
1514                           (and sometimes confusing) to the casual installer
1515   --disable-dependency-tracking  speeds up one-time build
1516   --enable-dependency-tracking   do not reject slow dependency extractors
1517   --disable-nls           do not use Native Language Support
1518   --enable-shared[=PKGS]  build shared libraries [default=yes]
1519   --enable-static[=PKGS]  build static libraries [default=yes]
1520   --enable-fast-install[=PKGS]
1521                           optimize for fast installation [default=yes]
1522   --disable-libtool-lock  avoid locking (might break parallel builds)
1523
1524 Optional Packages:
1525   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1526   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1527   --with-pic              try to use only PIC/non-PIC objects [default=use
1528                           both]
1529   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1530
1531 Some influential environment variables:
1532   CC          C compiler command
1533   CFLAGS      C compiler flags
1534   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1535               nonstandard directory <lib dir>
1536   LIBS        libraries to pass to the linker, e.g. -l<library>
1537   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1538               you have headers in a nonstandard directory <include dir>
1539   CXX         C++ compiler command
1540   CXXFLAGS    C++ compiler flags
1541   CPP         C preprocessor
1542   CXXCPP      C++ preprocessor
1543
1544 Use these variables to override the choices made by `configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1546
1547 _ACEOF
1548 ac_status=$?
1549 fi
1550
1551 if test "$ac_init_help" = "recursive"; then
1552   # If there are subdirs, report their specific --help.
1553   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554     test -d "$ac_dir" || continue
1555     ac_builddir=.
1556
1557 case "$ac_dir" in
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *)
1560   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1561   # A ".." for each directory in $ac_dir_suffix.
1562   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1563   case $ac_top_builddir_sub in
1564   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566   esac ;;
1567 esac
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1572
1573 case $srcdir in
1574   .)  # We are building in place.
1575     ac_srcdir=.
1576     ac_top_srcdir=$ac_top_builddir_sub
1577     ac_abs_top_srcdir=$ac_pwd ;;
1578   [\\/]* | ?:[\\/]* )  # Absolute name.
1579     ac_srcdir=$srcdir$ac_dir_suffix;
1580     ac_top_srcdir=$srcdir
1581     ac_abs_top_srcdir=$srcdir ;;
1582   *) # Relative name.
1583     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584     ac_top_srcdir=$ac_top_build_prefix$srcdir
1585     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 esac
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589     cd "$ac_dir" || { ac_status=$?; continue; }
1590     # Check for guested configure.
1591     if test -f "$ac_srcdir/configure.gnu"; then
1592       echo &&
1593       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594     elif test -f "$ac_srcdir/configure"; then
1595       echo &&
1596       $SHELL "$ac_srcdir/configure" --help=recursive
1597     else
1598       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599     fi || ac_status=$?
1600     cd "$ac_pwd" || { ac_status=$?; break; }
1601   done
1602 fi
1603
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1606   cat <<\_ACEOF
1607 tsremuxcpp configure 0.1
1608 generated by GNU Autoconf 2.61
1609
1610 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1611 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1612 This configure script is free software; the Free Software Foundation
1613 gives unlimited permission to copy, distribute and modify it.
1614 _ACEOF
1615   exit
1616 fi
1617 cat >config.log <<_ACEOF
1618 This file contains any messages produced by compilers while
1619 running configure, to aid debugging if configure makes a mistake.
1620
1621 It was created by tsremuxcpp $as_me 0.1, which was
1622 generated by GNU Autoconf 2.61.  Invocation command line was
1623
1624   $ $0 $@
1625
1626 _ACEOF
1627 exec 5>>config.log
1628 {
1629 cat <<_ASUNAME
1630 ## --------- ##
1631 ## Platform. ##
1632 ## --------- ##
1633
1634 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1635 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1636 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1637 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1638 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1639
1640 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1641 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1642
1643 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1644 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1645 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1646 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1647 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1648 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1649 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1650
1651 _ASUNAME
1652
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1655 do
1656   IFS=$as_save_IFS
1657   test -z "$as_dir" && as_dir=.
1658   echo "PATH: $as_dir"
1659 done
1660 IFS=$as_save_IFS
1661
1662 } >&5
1663
1664 cat >&5 <<_ACEOF
1665
1666
1667 ## ----------- ##
1668 ## Core tests. ##
1669 ## ----------- ##
1670
1671 _ACEOF
1672
1673
1674 # Keep a trace of the command line.
1675 # Strip out --no-create and --no-recursion so they do not pile up.
1676 # Strip out --silent because we don't want to record it for future runs.
1677 # Also quote any args containing shell meta-characters.
1678 # Make two passes to allow for proper duplicate-argument suppression.
1679 ac_configure_args=
1680 ac_configure_args0=
1681 ac_configure_args1=
1682 ac_must_keep_next=false
1683 for ac_pass in 1 2
1684 do
1685   for ac_arg
1686   do
1687     case $ac_arg in
1688     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1689     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1690     | -silent | --silent | --silen | --sile | --sil)
1691       continue ;;
1692     *\'*)
1693       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1694     esac
1695     case $ac_pass in
1696     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1697     2)
1698       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1699       if test $ac_must_keep_next = true; then
1700         ac_must_keep_next=false # Got value, back to normal.
1701       else
1702         case $ac_arg in
1703           *=* | --config-cache | -C | -disable-* | --disable-* \
1704           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1705           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1706           | -with-* | --with-* | -without-* | --without-* | --x)
1707             case "$ac_configure_args0 " in
1708               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1709             esac
1710             ;;
1711           -* ) ac_must_keep_next=true ;;
1712         esac
1713       fi
1714       ac_configure_args="$ac_configure_args '$ac_arg'"
1715       ;;
1716     esac
1717   done
1718 done
1719 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1720 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1721
1722 # When interrupted or exit'd, cleanup temporary files, and complete
1723 # config.log.  We remove comments because anyway the quotes in there
1724 # would cause problems or look ugly.
1725 # WARNING: Use '\'' to represent an apostrophe within the trap.
1726 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1727 trap 'exit_status=$?
1728   # Save into config.log some information that might help in debugging.
1729   {
1730     echo
1731
1732     cat <<\_ASBOX
1733 ## ---------------- ##
1734 ## Cache variables. ##
1735 ## ---------------- ##
1736 _ASBOX
1737     echo
1738     # The following way of writing the cache mishandles newlines in values,
1739 (
1740   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1741     eval ac_val=\$$ac_var
1742     case $ac_val in #(
1743     *${as_nl}*)
1744       case $ac_var in #(
1745       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1746 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1747       esac
1748       case $ac_var in #(
1749       _ | IFS | as_nl) ;; #(
1750       *) $as_unset $ac_var ;;
1751       esac ;;
1752     esac
1753   done
1754   (set) 2>&1 |
1755     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1756     *${as_nl}ac_space=\ *)
1757       sed -n \
1758         "s/'\''/'\''\\\\'\'''\''/g;
1759           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1760       ;; #(
1761     *)
1762       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1763       ;;
1764     esac |
1765     sort
1766 )
1767     echo
1768
1769     cat <<\_ASBOX
1770 ## ----------------- ##
1771 ## Output variables. ##
1772 ## ----------------- ##
1773 _ASBOX
1774     echo
1775     for ac_var in $ac_subst_vars
1776     do
1777       eval ac_val=\$$ac_var
1778       case $ac_val in
1779       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1780       esac
1781       echo "$ac_var='\''$ac_val'\''"
1782     done | sort
1783     echo
1784
1785     if test -n "$ac_subst_files"; then
1786       cat <<\_ASBOX
1787 ## ------------------- ##
1788 ## File substitutions. ##
1789 ## ------------------- ##
1790 _ASBOX
1791       echo
1792       for ac_var in $ac_subst_files
1793       do
1794         eval ac_val=\$$ac_var
1795         case $ac_val in
1796         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1797         esac
1798         echo "$ac_var='\''$ac_val'\''"
1799       done | sort
1800       echo
1801     fi
1802
1803     if test -s confdefs.h; then
1804       cat <<\_ASBOX
1805 ## ----------- ##
1806 ## confdefs.h. ##
1807 ## ----------- ##
1808 _ASBOX
1809       echo
1810       cat confdefs.h
1811       echo
1812     fi
1813     test "$ac_signal" != 0 &&
1814       echo "$as_me: caught signal $ac_signal"
1815     echo "$as_me: exit $exit_status"
1816   } >&5
1817   rm -f core *.core core.conftest.* &&
1818     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1819     exit $exit_status
1820 ' 0
1821 for ac_signal in 1 2 13 15; do
1822   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1823 done
1824 ac_signal=0
1825
1826 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1827 rm -f -r conftest* confdefs.h
1828
1829 # Predefined preprocessor variables.
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_NAME "$PACKAGE_NAME"
1833 _ACEOF
1834
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1838 _ACEOF
1839
1840
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1843 _ACEOF
1844
1845
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_STRING "$PACKAGE_STRING"
1848 _ACEOF
1849
1850
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1853 _ACEOF
1854
1855
1856 # Let the site file select an alternate cache file if it wants to.
1857 # Prefer explicitly selected file to automatically selected ones.
1858 if test -n "$CONFIG_SITE"; then
1859   set x "$CONFIG_SITE"
1860 elif test "x$prefix" != xNONE; then
1861   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1862 else
1863   set x "$ac_default_prefix/share/config.site" \
1864         "$ac_default_prefix/etc/config.site"
1865 fi
1866 shift
1867 for ac_site_file
1868 do
1869   if test -r "$ac_site_file"; then
1870     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1871 echo "$as_me: loading site script $ac_site_file" >&6;}
1872     sed 's/^/| /' "$ac_site_file" >&5
1873     . "$ac_site_file"
1874   fi
1875 done
1876
1877 if test -r "$cache_file"; then
1878   # Some versions of bash will fail to source /dev/null (special
1879   # files actually), so we avoid doing that.
1880   if test -f "$cache_file"; then
1881     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1882 echo "$as_me: loading cache $cache_file" >&6;}
1883     case $cache_file in
1884       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1885       *)                      . "./$cache_file";;
1886     esac
1887   fi
1888 else
1889   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1890 echo "$as_me: creating cache $cache_file" >&6;}
1891   >$cache_file
1892 fi
1893
1894 # Check that the precious variables saved in the cache have kept the same
1895 # value.
1896 ac_cache_corrupted=false
1897 for ac_var in $ac_precious_vars; do
1898   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1899   eval ac_new_set=\$ac_env_${ac_var}_set
1900   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1901   eval ac_new_val=\$ac_env_${ac_var}_value
1902   case $ac_old_set,$ac_new_set in
1903     set,)
1904       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1905 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1906       ac_cache_corrupted=: ;;
1907     ,set)
1908       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1909 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1910       ac_cache_corrupted=: ;;
1911     ,);;
1912     *)
1913       if test "x$ac_old_val" != "x$ac_new_val"; then
1914         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1915 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1916         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1917 echo "$as_me:   former value:  $ac_old_val" >&2;}
1918         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1919 echo "$as_me:   current value: $ac_new_val" >&2;}
1920         ac_cache_corrupted=:
1921       fi;;
1922   esac
1923   # Pass precious variables to config.status.
1924   if test "$ac_new_set" = set; then
1925     case $ac_new_val in
1926     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1927     *) ac_arg=$ac_var=$ac_new_val ;;
1928     esac
1929     case " $ac_configure_args " in
1930       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1931       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1932     esac
1933   fi
1934 done
1935 if $ac_cache_corrupted; then
1936   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1937 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1938   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1939 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1940    { (exit 1); exit 1; }; }
1941 fi
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967 ac_ext=c
1968 ac_cpp='$CPP $CPPFLAGS'
1969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972
1973
1974
1975 am__api_version='1.10'
1976
1977 ac_aux_dir=
1978 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1979   if test -f "$ac_dir/install-sh"; then
1980     ac_aux_dir=$ac_dir
1981     ac_install_sh="$ac_aux_dir/install-sh -c"
1982     break
1983   elif test -f "$ac_dir/install.sh"; then
1984     ac_aux_dir=$ac_dir
1985     ac_install_sh="$ac_aux_dir/install.sh -c"
1986     break
1987   elif test -f "$ac_dir/shtool"; then
1988     ac_aux_dir=$ac_dir
1989     ac_install_sh="$ac_aux_dir/shtool install -c"
1990     break
1991   fi
1992 done
1993 if test -z "$ac_aux_dir"; then
1994   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1995 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1996    { (exit 1); exit 1; }; }
1997 fi
1998
1999 # These three variables are undocumented and unsupported,
2000 # and are intended to be withdrawn in a future Autoconf release.
2001 # They can cause serious problems if a builder's source tree is in a directory
2002 # whose full name contains unusual characters.
2003 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2004 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2005 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2006
2007
2008 # Find a good install program.  We prefer a C program (faster),
2009 # so one script is as good as another.  But avoid the broken or
2010 # incompatible versions:
2011 # SysV /etc/install, /usr/sbin/install
2012 # SunOS /usr/etc/install
2013 # IRIX /sbin/install
2014 # AIX /bin/install
2015 # AmigaOS /C/install, which installs bootblocks on floppy discs
2016 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2017 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2018 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2019 # OS/2's system install, which has a completely different semantic
2020 # ./install, which can be erroneously created by make from ./install.sh.
2021 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2022 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2023 if test -z "$INSTALL"; then
2024 if test "${ac_cv_path_install+set}" = set; then
2025   echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2029 do
2030   IFS=$as_save_IFS
2031   test -z "$as_dir" && as_dir=.
2032   # Account for people who put trailing slashes in PATH elements.
2033 case $as_dir/ in
2034   ./ | .// | /cC/* | \
2035   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2036   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2037   /usr/ucb/* ) ;;
2038   *)
2039     # OSF1 and SCO ODT 3.0 have their own names for install.
2040     # Don't use installbsd from OSF since it installs stuff as root
2041     # by default.
2042     for ac_prog in ginstall scoinst install; do
2043       for ac_exec_ext in '' $ac_executable_extensions; do
2044         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2045           if test $ac_prog = install &&
2046             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2047             # AIX install.  It has an incompatible calling convention.
2048             :
2049           elif test $ac_prog = install &&
2050             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2051             # program-specific install script used by HP pwplus--don't use.
2052             :
2053           else
2054             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2055             break 3
2056           fi
2057         fi
2058       done
2059     done
2060     ;;
2061 esac
2062 done
2063 IFS=$as_save_IFS
2064
2065
2066 fi
2067   if test "${ac_cv_path_install+set}" = set; then
2068     INSTALL=$ac_cv_path_install
2069   else
2070     # As a last resort, use the slow shell script.  Don't cache a
2071     # value for INSTALL within a source directory, because that will
2072     # break other packages using the cache if that directory is
2073     # removed, or if the value is a relative name.
2074     INSTALL=$ac_install_sh
2075   fi
2076 fi
2077 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2078 echo "${ECHO_T}$INSTALL" >&6; }
2079
2080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2081 # It thinks the first close brace ends the variable substitution.
2082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2083
2084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2085
2086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2087
2088 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2089 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2090 # Just in case
2091 sleep 1
2092 echo timestamp > conftest.file
2093 # Do `set' in a subshell so we don't clobber the current shell's
2094 # arguments.  Must try -L first in case configure is actually a
2095 # symlink; some systems play weird games with the mod time of symlinks
2096 # (eg FreeBSD returns the mod time of the symlink's containing
2097 # directory).
2098 if (
2099    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2100    if test "$*" = "X"; then
2101       # -L didn't work.
2102       set X `ls -t $srcdir/configure conftest.file`
2103    fi
2104    rm -f conftest.file
2105    if test "$*" != "X $srcdir/configure conftest.file" \
2106       && test "$*" != "X conftest.file $srcdir/configure"; then
2107
2108       # If neither matched, then we have a broken ls.  This can happen
2109       # if, for instance, CONFIG_SHELL is bash and it inherits a
2110       # broken ls alias from the environment.  This has actually
2111       # happened.  Such a system could not be considered "sane".
2112       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2113 alias in your environment" >&5
2114 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2115 alias in your environment" >&2;}
2116    { (exit 1); exit 1; }; }
2117    fi
2118
2119    test "$2" = conftest.file
2120    )
2121 then
2122    # Ok.
2123    :
2124 else
2125    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2126 Check your system clock" >&5
2127 echo "$as_me: error: newly created file is older than distributed files!
2128 Check your system clock" >&2;}
2129    { (exit 1); exit 1; }; }
2130 fi
2131 { echo "$as_me:$LINENO: result: yes" >&5
2132 echo "${ECHO_T}yes" >&6; }
2133 test "$program_prefix" != NONE &&
2134   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2135 # Use a double $ so make ignores it.
2136 test "$program_suffix" != NONE &&
2137   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2138 # Double any \ or $.  echo might interpret backslashes.
2139 # By default was `s,x,x', remove it if useless.
2140 cat <<\_ACEOF >conftest.sed
2141 s/[\\$]/&&/g;s/;s,x,x,$//
2142 _ACEOF
2143 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2144 rm -f conftest.sed
2145
2146 # expand $ac_aux_dir to an absolute path
2147 am_aux_dir=`cd $ac_aux_dir && pwd`
2148
2149 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2150 # Use eval to expand $SHELL
2151 if eval "$MISSING --run true"; then
2152   am_missing_run="$MISSING --run "
2153 else
2154   am_missing_run=
2155   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2156 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2157 fi
2158
2159 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2160 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2161 if test -z "$MKDIR_P"; then
2162   if test "${ac_cv_path_mkdir+set}" = set; then
2163   echo $ECHO_N "(cached) $ECHO_C" >&6
2164 else
2165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2167 do
2168   IFS=$as_save_IFS
2169   test -z "$as_dir" && as_dir=.
2170   for ac_prog in mkdir gmkdir; do
2171          for ac_exec_ext in '' $ac_executable_extensions; do
2172            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2173            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2174              'mkdir (GNU coreutils) '* | \
2175              'mkdir (coreutils) '* | \
2176              'mkdir (fileutils) '4.1*)
2177                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2178                break 3;;
2179            esac
2180          done
2181        done
2182 done
2183 IFS=$as_save_IFS
2184
2185 fi
2186
2187   if test "${ac_cv_path_mkdir+set}" = set; then
2188     MKDIR_P="$ac_cv_path_mkdir -p"
2189   else
2190     # As a last resort, use the slow shell script.  Don't cache a
2191     # value for MKDIR_P within a source directory, because that will
2192     # break other packages using the cache if that directory is
2193     # removed, or if the value is a relative name.
2194     test -d ./--version && rmdir ./--version
2195     MKDIR_P="$ac_install_sh -d"
2196   fi
2197 fi
2198 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2199 echo "${ECHO_T}$MKDIR_P" >&6; }
2200
2201 mkdir_p="$MKDIR_P"
2202 case $mkdir_p in
2203   [\\/$]* | ?:[\\/]*) ;;
2204   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2205 esac
2206
2207 for ac_prog in gawk mawk nawk awk
2208 do
2209   # Extract the first word of "$ac_prog", so it can be a program name with args.
2210 set dummy $ac_prog; ac_word=$2
2211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2213 if test "${ac_cv_prog_AWK+set}" = set; then
2214   echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216   if test -n "$AWK"; then
2217   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2218 else
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 for as_dir in $PATH
2221 do
2222   IFS=$as_save_IFS
2223   test -z "$as_dir" && as_dir=.
2224   for ac_exec_ext in '' $ac_executable_extensions; do
2225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2226     ac_cv_prog_AWK="$ac_prog"
2227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228     break 2
2229   fi
2230 done
2231 done
2232 IFS=$as_save_IFS
2233
2234 fi
2235 fi
2236 AWK=$ac_cv_prog_AWK
2237 if test -n "$AWK"; then
2238   { echo "$as_me:$LINENO: result: $AWK" >&5
2239 echo "${ECHO_T}$AWK" >&6; }
2240 else
2241   { echo "$as_me:$LINENO: result: no" >&5
2242 echo "${ECHO_T}no" >&6; }
2243 fi
2244
2245
2246   test -n "$AWK" && break
2247 done
2248
2249 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2250 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2251 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2252 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2253   echo $ECHO_N "(cached) $ECHO_C" >&6
2254 else
2255   cat >conftest.make <<\_ACEOF
2256 SHELL = /bin/sh
2257 all:
2258         @echo '@@@%%%=$(MAKE)=@@@%%%'
2259 _ACEOF
2260 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2261 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2262   *@@@%%%=?*=@@@%%%*)
2263     eval ac_cv_prog_make_${ac_make}_set=yes;;
2264   *)
2265     eval ac_cv_prog_make_${ac_make}_set=no;;
2266 esac
2267 rm -f conftest.make
2268 fi
2269 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2270   { echo "$as_me:$LINENO: result: yes" >&5
2271 echo "${ECHO_T}yes" >&6; }
2272   SET_MAKE=
2273 else
2274   { echo "$as_me:$LINENO: result: no" >&5
2275 echo "${ECHO_T}no" >&6; }
2276   SET_MAKE="MAKE=${MAKE-make}"
2277 fi
2278
2279 rm -rf .tst 2>/dev/null
2280 mkdir .tst 2>/dev/null
2281 if test -d .tst; then
2282   am__leading_dot=.
2283 else
2284   am__leading_dot=_
2285 fi
2286 rmdir .tst 2>/dev/null
2287
2288 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2289   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2290   # is not polluted with repeated "-I."
2291   am__isrc=' -I$(srcdir)'
2292   # test to see if srcdir already configured
2293   if test -f $srcdir/config.status; then
2294     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2295 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2296    { (exit 1); exit 1; }; }
2297   fi
2298 fi
2299
2300 # test whether we have cygpath
2301 if test -z "$CYGPATH_W"; then
2302   if (cygpath --version) >/dev/null 2>/dev/null; then
2303     CYGPATH_W='cygpath -w'
2304   else
2305     CYGPATH_W=echo
2306   fi
2307 fi
2308
2309
2310 # Define the identity of the package.
2311  PACKAGE=tsremuxcpp
2312  VERSION=0.1
2313
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE "$PACKAGE"
2317 _ACEOF
2318
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define VERSION "$VERSION"
2322 _ACEOF
2323
2324 # Some tools Automake needs.
2325
2326 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2327
2328
2329 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2330
2331
2332 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2333
2334
2335 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2336
2337
2338 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2339
2340 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2341
2342 # Installed binaries are usually stripped using `strip' when the user
2343 # run `make install-strip'.  However `strip' might not be the right
2344 # tool to use in cross-compilation environments, therefore Automake
2345 # will honor the `STRIP' environment variable to overrule this program.
2346 if test "$cross_compiling" != no; then
2347   if test -n "$ac_tool_prefix"; then
2348   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2349 set dummy ${ac_tool_prefix}strip; ac_word=$2
2350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352 if test "${ac_cv_prog_STRIP+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   if test -n "$STRIP"; then
2356   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361   IFS=$as_save_IFS
2362   test -z "$as_dir" && as_dir=.
2363   for ac_exec_ext in '' $ac_executable_extensions; do
2364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367     break 2
2368   fi
2369 done
2370 done
2371 IFS=$as_save_IFS
2372
2373 fi
2374 fi
2375 STRIP=$ac_cv_prog_STRIP
2376 if test -n "$STRIP"; then
2377   { echo "$as_me:$LINENO: result: $STRIP" >&5
2378 echo "${ECHO_T}$STRIP" >&6; }
2379 else
2380   { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2382 fi
2383
2384
2385 fi
2386 if test -z "$ac_cv_prog_STRIP"; then
2387   ac_ct_STRIP=$STRIP
2388   # Extract the first word of "strip", so it can be a program name with args.
2389 set dummy strip; ac_word=$2
2390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2392 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   if test -n "$ac_ct_STRIP"; then
2396   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2400 do
2401   IFS=$as_save_IFS
2402   test -z "$as_dir" && as_dir=.
2403   for ac_exec_ext in '' $ac_executable_extensions; do
2404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2405     ac_cv_prog_ac_ct_STRIP="strip"
2406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407     break 2
2408   fi
2409 done
2410 done
2411 IFS=$as_save_IFS
2412
2413 fi
2414 fi
2415 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2416 if test -n "$ac_ct_STRIP"; then
2417   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2418 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2419 else
2420   { echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6; }
2422 fi
2423
2424   if test "x$ac_ct_STRIP" = x; then
2425     STRIP=":"
2426   else
2427     case $cross_compiling:$ac_tool_warned in
2428 yes:)
2429 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet.  If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&5
2432 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2433 whose name does not start with the host triplet.  If you think this
2434 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2435 ac_tool_warned=yes ;;
2436 esac
2437     STRIP=$ac_ct_STRIP
2438   fi
2439 else
2440   STRIP="$ac_cv_prog_STRIP"
2441 fi
2442
2443 fi
2444 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2445
2446 # We need awk for the "check" target.  The system "awk" is bad on
2447 # some platforms.
2448 # Always define AMTAR for backward compatibility.
2449
2450 AMTAR=${AMTAR-"${am_missing_run}tar"}
2451
2452 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2453
2454
2455
2456
2457
2458 ac_config_headers="$ac_config_headers config.h"
2459
2460 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2461 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2462     # Check whether --enable-maintainer-mode was given.
2463 if test "${enable_maintainer_mode+set}" = set; then
2464   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2465 else
2466   USE_MAINTAINER_MODE=no
2467 fi
2468
2469   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2470 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2471    if test $USE_MAINTAINER_MODE = yes; then
2472   MAINTAINER_MODE_TRUE=
2473   MAINTAINER_MODE_FALSE='#'
2474 else
2475   MAINTAINER_MODE_TRUE='#'
2476   MAINTAINER_MODE_FALSE=
2477 fi
2478
2479   MAINT=$MAINTAINER_MODE_TRUE
2480
2481
2482
2483 DEPDIR="${am__leading_dot}deps"
2484
2485 ac_config_commands="$ac_config_commands depfiles"
2486
2487
2488 am_make=${MAKE-make}
2489 cat > confinc << 'END'
2490 am__doit:
2491         @echo done
2492 .PHONY: am__doit
2493 END
2494 # If we don't find an include directive, just comment out the code.
2495 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2496 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2497 am__include="#"
2498 am__quote=
2499 _am_result=none
2500 # First try GNU make style include.
2501 echo "include confinc" > confmf
2502 # We grep out `Entering directory' and `Leaving directory'
2503 # messages which can occur if `w' ends up in MAKEFLAGS.
2504 # In particular we don't look at `^make:' because GNU make might
2505 # be invoked under some other name (usually "gmake"), in which
2506 # case it prints its new name instead of `make'.
2507 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2508    am__include=include
2509    am__quote=
2510    _am_result=GNU
2511 fi
2512 # Now try BSD make style include.
2513 if test "$am__include" = "#"; then
2514    echo '.include "confinc"' > confmf
2515    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2516       am__include=.include
2517       am__quote="\""
2518       _am_result=BSD
2519    fi
2520 fi
2521
2522
2523 { echo "$as_me:$LINENO: result: $_am_result" >&5
2524 echo "${ECHO_T}$_am_result" >&6; }
2525 rm -f confinc confmf
2526
2527 # Check whether --enable-dependency-tracking was given.
2528 if test "${enable_dependency_tracking+set}" = set; then
2529   enableval=$enable_dependency_tracking;
2530 fi
2531
2532 if test "x$enable_dependency_tracking" != xno; then
2533   am_depcomp="$ac_aux_dir/depcomp"
2534   AMDEPBACKSLASH='\'
2535 fi
2536  if test "x$enable_dependency_tracking" != xno; then
2537   AMDEP_TRUE=
2538   AMDEP_FALSE='#'
2539 else
2540   AMDEP_TRUE='#'
2541   AMDEP_FALSE=
2542 fi
2543
2544
2545 ac_ext=c
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550 if test -n "$ac_tool_prefix"; then
2551   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556   echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558   if test -n "$CC"; then
2559   ac_cv_prog_CC="$CC" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564   IFS=$as_save_IFS
2565   test -z "$as_dir" && as_dir=.
2566   for ac_exec_ext in '' $ac_executable_extensions; do
2567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570     break 2
2571   fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 fi
2577 fi
2578 CC=$ac_cv_prog_CC
2579 if test -n "$CC"; then
2580   { echo "$as_me:$LINENO: result: $CC" >&5
2581 echo "${ECHO_T}$CC" >&6; }
2582 else
2583   { echo "$as_me:$LINENO: result: no" >&5
2584 echo "${ECHO_T}no" >&6; }
2585 fi
2586
2587
2588 fi
2589 if test -z "$ac_cv_prog_CC"; then
2590   ac_ct_CC=$CC
2591   # Extract the first word of "gcc", so it can be a program name with args.
2592 set dummy gcc; ac_word=$2
2593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2596   echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598   if test -n "$ac_ct_CC"; then
2599   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2603 do
2604   IFS=$as_save_IFS
2605   test -z "$as_dir" && as_dir=.
2606   for ac_exec_ext in '' $ac_executable_extensions; do
2607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608     ac_cv_prog_ac_ct_CC="gcc"
2609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610     break 2
2611   fi
2612 done
2613 done
2614 IFS=$as_save_IFS
2615
2616 fi
2617 fi
2618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2619 if test -n "$ac_ct_CC"; then
2620   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2621 echo "${ECHO_T}$ac_ct_CC" >&6; }
2622 else
2623   { echo "$as_me:$LINENO: result: no" >&5
2624 echo "${ECHO_T}no" >&6; }
2625 fi
2626
2627   if test "x$ac_ct_CC" = x; then
2628     CC=""
2629   else
2630     case $cross_compiling:$ac_tool_warned in
2631 yes:)
2632 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2633 whose name does not start with the host triplet.  If you think this
2634 configuration is useful to you, please write to autoconf@gnu.org." >&5
2635 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2636 whose name does not start with the host triplet.  If you think this
2637 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2638 ac_tool_warned=yes ;;
2639 esac
2640     CC=$ac_ct_CC
2641   fi
2642 else
2643   CC="$ac_cv_prog_CC"
2644 fi
2645
2646 if test -z "$CC"; then
2647           if test -n "$ac_tool_prefix"; then
2648     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2649 set dummy ${ac_tool_prefix}cc; ac_word=$2
2650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2652 if test "${ac_cv_prog_CC+set}" = set; then
2653   echo $ECHO_N "(cached) $ECHO_C" >&6
2654 else
2655   if test -n "$CC"; then
2656   ac_cv_prog_CC="$CC" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661   IFS=$as_save_IFS
2662   test -z "$as_dir" && as_dir=.
2663   for ac_exec_ext in '' $ac_executable_extensions; do
2664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665     ac_cv_prog_CC="${ac_tool_prefix}cc"
2666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667     break 2
2668   fi
2669 done
2670 done
2671 IFS=$as_save_IFS
2672
2673 fi
2674 fi
2675 CC=$ac_cv_prog_CC
2676 if test -n "$CC"; then
2677   { echo "$as_me:$LINENO: result: $CC" >&5
2678 echo "${ECHO_T}$CC" >&6; }
2679 else
2680   { echo "$as_me:$LINENO: result: no" >&5
2681 echo "${ECHO_T}no" >&6; }
2682 fi
2683
2684
2685   fi
2686 fi
2687 if test -z "$CC"; then
2688   # Extract the first word of "cc", so it can be a program name with args.
2689 set dummy cc; ac_word=$2
2690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2692 if test "${ac_cv_prog_CC+set}" = set; then
2693   echo $ECHO_N "(cached) $ECHO_C" >&6
2694 else
2695   if test -n "$CC"; then
2696   ac_cv_prog_CC="$CC" # Let the user override the test.
2697 else
2698   ac_prog_rejected=no
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2701 do
2702   IFS=$as_save_IFS
2703   test -z "$as_dir" && as_dir=.
2704   for ac_exec_ext in '' $ac_executable_extensions; do
2705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2707        ac_prog_rejected=yes
2708        continue
2709      fi
2710     ac_cv_prog_CC="cc"
2711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712     break 2
2713   fi
2714 done
2715 done
2716 IFS=$as_save_IFS
2717
2718 if test $ac_prog_rejected = yes; then
2719   # We found a bogon in the path, so make sure we never use it.
2720   set dummy $ac_cv_prog_CC
2721   shift
2722   if test $# != 0; then
2723     # We chose a different compiler from the bogus one.
2724     # However, it has the same basename, so the bogon will be chosen
2725     # first if we set CC to just the basename; use the full file name.
2726     shift
2727     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2728   fi
2729 fi
2730 fi
2731 fi
2732 CC=$ac_cv_prog_CC
2733 if test -n "$CC"; then
2734   { echo "$as_me:$LINENO: result: $CC" >&5
2735 echo "${ECHO_T}$CC" >&6; }
2736 else
2737   { echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6; }
2739 fi
2740
2741
2742 fi
2743 if test -z "$CC"; then
2744   if test -n "$ac_tool_prefix"; then
2745   for ac_prog in cl.exe
2746   do
2747     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2751 if test "${ac_cv_prog_CC+set}" = set; then
2752   echo $ECHO_N "(cached) $ECHO_C" >&6
2753 else
2754   if test -n "$CC"; then
2755   ac_cv_prog_CC="$CC" # Let the user override the test.
2756 else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2759 do
2760   IFS=$as_save_IFS
2761   test -z "$as_dir" && as_dir=.
2762   for ac_exec_ext in '' $ac_executable_extensions; do
2763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766     break 2
2767   fi
2768 done
2769 done
2770 IFS=$as_save_IFS
2771
2772 fi
2773 fi
2774 CC=$ac_cv_prog_CC
2775 if test -n "$CC"; then
2776   { echo "$as_me:$LINENO: result: $CC" >&5
2777 echo "${ECHO_T}$CC" >&6; }
2778 else
2779   { echo "$as_me:$LINENO: result: no" >&5
2780 echo "${ECHO_T}no" >&6; }
2781 fi
2782
2783
2784     test -n "$CC" && break
2785   done
2786 fi
2787 if test -z "$CC"; then
2788   ac_ct_CC=$CC
2789   for ac_prog in cl.exe
2790 do
2791   # Extract the first word of "$ac_prog", so it can be a program name with args.
2792 set dummy $ac_prog; ac_word=$2
2793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2795 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2796   echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798   if test -n "$ac_ct_CC"; then
2799   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804   IFS=$as_save_IFS
2805   test -z "$as_dir" && as_dir=.
2806   for ac_exec_ext in '' $ac_executable_extensions; do
2807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808     ac_cv_prog_ac_ct_CC="$ac_prog"
2809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810     break 2
2811   fi
2812 done
2813 done
2814 IFS=$as_save_IFS
2815
2816 fi
2817 fi
2818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2819 if test -n "$ac_ct_CC"; then
2820   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2821 echo "${ECHO_T}$ac_ct_CC" >&6; }
2822 else
2823   { echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6; }
2825 fi
2826
2827
2828   test -n "$ac_ct_CC" && break
2829 done
2830
2831   if test "x$ac_ct_CC" = x; then
2832     CC=""
2833   else
2834     case $cross_compiling:$ac_tool_warned in
2835 yes:)
2836 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2837 whose name does not start with the host triplet.  If you think this
2838 configuration is useful to you, please write to autoconf@gnu.org." >&5
2839 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2840 whose name does not start with the host triplet.  If you think this
2841 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2842 ac_tool_warned=yes ;;
2843 esac
2844     CC=$ac_ct_CC
2845   fi
2846 fi
2847
2848 fi
2849
2850
2851 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2852 See \`config.log' for more details." >&5
2853 echo "$as_me: error: no acceptable C compiler found in \$PATH
2854 See \`config.log' for more details." >&2;}
2855    { (exit 1); exit 1; }; }
2856
2857 # Provide some information about the compiler.
2858 echo "$as_me:$LINENO: checking for C compiler version" >&5
2859 ac_compiler=`set X $ac_compile; echo $2`
2860 { (ac_try="$ac_compiler --version >&5"
2861 case "(($ac_try" in
2862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863   *) ac_try_echo=$ac_try;;
2864 esac
2865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2866   (eval "$ac_compiler --version >&5") 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); }
2870 { (ac_try="$ac_compiler -v >&5"
2871 case "(($ac_try" in
2872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873   *) ac_try_echo=$ac_try;;
2874 esac
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876   (eval "$ac_compiler -v >&5") 2>&5
2877   ac_status=$?
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); }
2880 { (ac_try="$ac_compiler -V >&5"
2881 case "(($ac_try" in
2882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883   *) ac_try_echo=$ac_try;;
2884 esac
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886   (eval "$ac_compiler -V >&5") 2>&5
2887   ac_status=$?
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); }
2890
2891 cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h.  */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h.  */
2897
2898 int
2899 main ()
2900 {
2901
2902   ;
2903   return 0;
2904 }
2905 _ACEOF
2906 ac_clean_files_save=$ac_clean_files
2907 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2908 # Try to create an executable without -o first, disregard a.out.
2909 # It will help us diagnose broken compilers, and finding out an intuition
2910 # of exeext.
2911 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2912 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2913 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2914 #
2915 # List of possible output files, starting from the most likely.
2916 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2917 # only as a last resort.  b.out is created by i960 compilers.
2918 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2919 #
2920 # The IRIX 6 linker writes into existing files which may not be
2921 # executable, retaining their permissions.  Remove them first so a
2922 # subsequent execution test works.
2923 ac_rmfiles=
2924 for ac_file in $ac_files
2925 do
2926   case $ac_file in
2927     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2928     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2929   esac
2930 done
2931 rm -f $ac_rmfiles
2932
2933 if { (ac_try="$ac_link_default"
2934 case "(($ac_try" in
2935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936   *) ac_try_echo=$ac_try;;
2937 esac
2938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939   (eval "$ac_link_default") 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); }; then
2943   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2944 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2945 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2946 # so that the user can short-circuit this test for compilers unknown to
2947 # Autoconf.
2948 for ac_file in $ac_files ''
2949 do
2950   test -f "$ac_file" || continue
2951   case $ac_file in
2952     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2953         ;;
2954     [ab].out )
2955         # We found the default executable, but exeext='' is most
2956         # certainly right.
2957         break;;
2958     *.* )
2959         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2960         then :; else
2961            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2962         fi
2963         # We set ac_cv_exeext here because the later test for it is not
2964         # safe: cross compilers may not add the suffix if given an `-o'
2965         # argument, so we may need to know it at that point already.
2966         # Even if this section looks crufty: it has the advantage of
2967         # actually working.
2968         break;;
2969     * )
2970         break;;
2971   esac
2972 done
2973 test "$ac_cv_exeext" = no && ac_cv_exeext=
2974
2975 else
2976   ac_file=''
2977 fi
2978
2979 { echo "$as_me:$LINENO: result: $ac_file" >&5
2980 echo "${ECHO_T}$ac_file" >&6; }
2981 if test -z "$ac_file"; then
2982   echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2984
2985 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2986 See \`config.log' for more details." >&5
2987 echo "$as_me: error: C compiler cannot create executables
2988 See \`config.log' for more details." >&2;}
2989    { (exit 77); exit 77; }; }
2990 fi
2991
2992 ac_exeext=$ac_cv_exeext
2993
2994 # Check that the compiler produces executables we can run.  If not, either
2995 # the compiler is broken, or we cross compile.
2996 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2997 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2998 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2999 # If not cross compiling, check that we can run a simple program.
3000 if test "$cross_compiling" != yes; then
3001   if { ac_try='./$ac_file'
3002   { (case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007   (eval "$ac_try") 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); }; }; then
3011     cross_compiling=no
3012   else
3013     if test "$cross_compiling" = maybe; then
3014         cross_compiling=yes
3015     else
3016         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3017 If you meant to cross compile, use \`--host'.
3018 See \`config.log' for more details." >&5
3019 echo "$as_me: error: cannot run C compiled programs.
3020 If you meant to cross compile, use \`--host'.
3021 See \`config.log' for more details." >&2;}
3022    { (exit 1); exit 1; }; }
3023     fi
3024   fi
3025 fi
3026 { echo "$as_me:$LINENO: result: yes" >&5
3027 echo "${ECHO_T}yes" >&6; }
3028
3029 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3030 ac_clean_files=$ac_clean_files_save
3031 # Check that the compiler produces executables we can run.  If not, either
3032 # the compiler is broken, or we cross compile.
3033 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3034 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3035 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3036 echo "${ECHO_T}$cross_compiling" >&6; }
3037
3038 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3039 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3040 if { (ac_try="$ac_link"
3041 case "(($ac_try" in
3042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043   *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046   (eval "$ac_link") 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); }; then
3050   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3051 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3052 # work properly (i.e., refer to `conftest.exe'), while it won't with
3053 # `rm'.
3054 for ac_file in conftest.exe conftest conftest.*; do
3055   test -f "$ac_file" || continue
3056   case $ac_file in
3057     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3058     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059           break;;
3060     * ) break;;
3061   esac
3062 done
3063 else
3064   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3065 See \`config.log' for more details." >&5
3066 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3067 See \`config.log' for more details." >&2;}
3068    { (exit 1); exit 1; }; }
3069 fi
3070
3071 rm -f conftest$ac_cv_exeext
3072 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3073 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3074
3075 rm -f conftest.$ac_ext
3076 EXEEXT=$ac_cv_exeext
3077 ac_exeext=$EXEEXT
3078 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3079 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3080 if test "${ac_cv_objext+set}" = set; then
3081   echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083   cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h.  */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h.  */
3089
3090 int
3091 main ()
3092 {
3093
3094   ;
3095   return 0;
3096 }
3097 _ACEOF
3098 rm -f conftest.o conftest.obj
3099 if { (ac_try="$ac_compile"
3100 case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_compile") 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); }; then
3109   for ac_file in conftest.o conftest.obj conftest.*; do
3110   test -f "$ac_file" || continue;
3111   case $ac_file in
3112     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3113     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3114        break;;
3115   esac
3116 done
3117 else
3118   echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3120
3121 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3122 See \`config.log' for more details." >&5
3123 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3124 See \`config.log' for more details." >&2;}
3125    { (exit 1); exit 1; }; }
3126 fi
3127
3128 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3129 fi
3130 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3131 echo "${ECHO_T}$ac_cv_objext" >&6; }
3132 OBJEXT=$ac_cv_objext
3133 ac_objext=$OBJEXT
3134 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3135 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3136 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3137   echo $ECHO_N "(cached) $ECHO_C" >&6
3138 else
3139   cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h.  */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h.  */
3145
3146 int
3147 main ()
3148 {
3149 #ifndef __GNUC__
3150        choke me
3151 #endif
3152
3153   ;
3154   return 0;
3155 }
3156 _ACEOF
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3159 case "(($ac_try" in
3160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161   *) ac_try_echo=$ac_try;;
3162 esac
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164   (eval "$ac_compile") 2>conftest.er1
3165   ac_status=$?
3166   grep -v '^ *+' conftest.er1 >conftest.err
3167   rm -f conftest.er1
3168   cat conftest.err >&5
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } && {
3171          test -z "$ac_c_werror_flag" ||
3172          test ! -s conftest.err
3173        } && test -s conftest.$ac_objext; then
3174   ac_compiler_gnu=yes
3175 else
3176   echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179         ac_compiler_gnu=no
3180 fi
3181
3182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3184
3185 fi
3186 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3187 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3188 GCC=`test $ac_compiler_gnu = yes && echo yes`
3189 ac_test_CFLAGS=${CFLAGS+set}
3190 ac_save_CFLAGS=$CFLAGS
3191 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3192 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3193 if test "${ac_cv_prog_cc_g+set}" = set; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196   ac_save_c_werror_flag=$ac_c_werror_flag
3197    ac_c_werror_flag=yes
3198    ac_cv_prog_cc_g=no
3199    CFLAGS="-g"
3200    cat >conftest.$ac_ext <<_ACEOF
3201 /* confdefs.h.  */
3202 _ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h.  */
3206
3207 int
3208 main ()
3209 {
3210
3211   ;
3212   return 0;
3213 }
3214 _ACEOF
3215 rm -f conftest.$ac_objext
3216 if { (ac_try="$ac_compile"
3217 case "(($ac_try" in
3218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219   *) ac_try_echo=$ac_try;;
3220 esac
3221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222   (eval "$ac_compile") 2>conftest.er1
3223   ac_status=$?
3224   grep -v '^ *+' conftest.er1 >conftest.err
3225   rm -f conftest.er1
3226   cat conftest.err >&5
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); } && {
3229          test -z "$ac_c_werror_flag" ||
3230          test ! -s conftest.err
3231        } && test -s conftest.$ac_objext; then
3232   ac_cv_prog_cc_g=yes
3233 else
3234   echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237         CFLAGS=""
3238       cat >conftest.$ac_ext <<_ACEOF
3239 /* confdefs.h.  */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h.  */
3244
3245 int
3246 main ()
3247 {
3248
3249   ;
3250   return 0;
3251 }
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3255 case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260   (eval "$ac_compile") 2>conftest.er1
3261   ac_status=$?
3262   grep -v '^ *+' conftest.er1 >conftest.err
3263   rm -f conftest.er1
3264   cat conftest.err >&5
3265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266   (exit $ac_status); } && {
3267          test -z "$ac_c_werror_flag" ||
3268          test ! -s conftest.err
3269        } && test -s conftest.$ac_objext; then
3270   :
3271 else
3272   echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275         ac_c_werror_flag=$ac_save_c_werror_flag
3276          CFLAGS="-g"
3277          cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h.  */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h.  */
3283
3284 int
3285 main ()
3286 {
3287
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 rm -f conftest.$ac_objext
3293 if { (ac_try="$ac_compile"
3294 case "(($ac_try" in
3295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296   *) ac_try_echo=$ac_try;;
3297 esac
3298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299   (eval "$ac_compile") 2>conftest.er1
3300   ac_status=$?
3301   grep -v '^ *+' conftest.er1 >conftest.err
3302   rm -f conftest.er1
3303   cat conftest.err >&5
3304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305   (exit $ac_status); } && {
3306          test -z "$ac_c_werror_flag" ||
3307          test ! -s conftest.err
3308        } && test -s conftest.$ac_objext; then
3309   ac_cv_prog_cc_g=yes
3310 else
3311   echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3313
3314
3315 fi
3316
3317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3318 fi
3319
3320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3321 fi
3322
3323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324    ac_c_werror_flag=$ac_save_c_werror_flag
3325 fi
3326 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3327 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3328 if test "$ac_test_CFLAGS" = set; then
3329   CFLAGS=$ac_save_CFLAGS
3330 elif test $ac_cv_prog_cc_g = yes; then
3331   if test "$GCC" = yes; then
3332     CFLAGS="-g -O2"
3333   else
3334     CFLAGS="-g"
3335   fi
3336 else
3337   if test "$GCC" = yes; then
3338     CFLAGS="-O2"
3339   else
3340     CFLAGS=
3341   fi
3342 fi
3343 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3344 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3345 if test "${ac_cv_prog_cc_c89+set}" = set; then
3346   echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348   ac_cv_prog_cc_c89=no
3349 ac_save_CC=$CC
3350 cat >conftest.$ac_ext <<_ACEOF
3351 /* confdefs.h.  */
3352 _ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h.  */
3356 #include <stdarg.h>
3357 #include <stdio.h>
3358 #include <sys/types.h>
3359 #include <sys/stat.h>
3360 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3361 struct buf { int x; };
3362 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3363 static char *e (p, i)
3364      char **p;
3365      int i;
3366 {
3367   return p[i];
3368 }
3369 static char *f (char * (*g) (char **, int), char **p, ...)
3370 {
3371   char *s;
3372   va_list v;
3373   va_start (v,p);
3374   s = g (p, va_arg (v,int));
3375   va_end (v);
3376   return s;
3377 }
3378
3379 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3380    function prototypes and stuff, but not '\xHH' hex character constants.
3381    These don't provoke an error unfortunately, instead are silently treated
3382    as 'x'.  The following induces an error, until -std is added to get
3383    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3384    array size at least.  It's necessary to write '\x00'==0 to get something
3385    that's true only with -std.  */
3386 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3387
3388 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3389    inside strings and character constants.  */
3390 #define FOO(x) 'x'
3391 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3392
3393 int test (int i, double x);
3394 struct s1 {int (*f) (int a);};
3395 struct s2 {int (*f) (double a);};
3396 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3397 int argc;
3398 char **argv;
3399 int
3400 main ()
3401 {
3402 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3403   ;
3404   return 0;
3405 }
3406 _ACEOF
3407 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3408         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3409 do
3410   CC="$ac_save_CC $ac_arg"
3411   rm -f conftest.$ac_objext
3412 if { (ac_try="$ac_compile"
3413 case "(($ac_try" in
3414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415   *) ac_try_echo=$ac_try;;
3416 esac
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418   (eval "$ac_compile") 2>conftest.er1
3419   ac_status=$?
3420   grep -v '^ *+' conftest.er1 >conftest.err
3421   rm -f conftest.er1
3422   cat conftest.err >&5
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); } && {
3425          test -z "$ac_c_werror_flag" ||
3426          test ! -s conftest.err
3427        } && test -s conftest.$ac_objext; then
3428   ac_cv_prog_cc_c89=$ac_arg
3429 else
3430   echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433
3434 fi
3435
3436 rm -f core conftest.err conftest.$ac_objext
3437   test "x$ac_cv_prog_cc_c89" != "xno" && break
3438 done
3439 rm -f conftest.$ac_ext
3440 CC=$ac_save_CC
3441
3442 fi
3443 # AC_CACHE_VAL
3444 case "x$ac_cv_prog_cc_c89" in
3445   x)
3446     { echo "$as_me:$LINENO: result: none needed" >&5
3447 echo "${ECHO_T}none needed" >&6; } ;;
3448   xno)
3449     { echo "$as_me:$LINENO: result: unsupported" >&5
3450 echo "${ECHO_T}unsupported" >&6; } ;;
3451   *)
3452     CC="$CC $ac_cv_prog_cc_c89"
3453     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3454 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3455 esac
3456
3457
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464 depcc="$CC"   am_compiler_list=
3465
3466 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3467 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3468 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3472   # We make a subdir and do the tests there.  Otherwise we can end up
3473   # making bogus files that we don't know about and never remove.  For
3474   # instance it was reported that on HP-UX the gcc test will end up
3475   # making a dummy file named `D' -- because `-MD' means `put the output
3476   # in D'.
3477   mkdir conftest.dir
3478   # Copy depcomp to subdir because otherwise we won't find it if we're
3479   # using a relative directory.
3480   cp "$am_depcomp" conftest.dir
3481   cd conftest.dir
3482   # We will build objects and dependencies in a subdirectory because
3483   # it helps to detect inapplicable dependency modes.  For instance
3484   # both Tru64's cc and ICC support -MD to output dependencies as a
3485   # side effect of compilation, but ICC will put the dependencies in
3486   # the current directory while Tru64 will put them in the object
3487   # directory.
3488   mkdir sub
3489
3490   am_cv_CC_dependencies_compiler_type=none
3491   if test "$am_compiler_list" = ""; then
3492      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3493   fi
3494   for depmode in $am_compiler_list; do
3495     # Setup a source with many dependencies, because some compilers
3496     # like to wrap large dependency lists on column 80 (with \), and
3497     # we should not choose a depcomp mode which is confused by this.
3498     #
3499     # We need to recreate these files for each test, as the compiler may
3500     # overwrite some of them when testing with obscure command lines.
3501     # This happens at least with the AIX C compiler.
3502     : > sub/conftest.c
3503     for i in 1 2 3 4 5 6; do
3504       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3505       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3506       # Solaris 8's {/usr,}/bin/sh.
3507       touch sub/conftst$i.h
3508     done
3509     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3510
3511     case $depmode in
3512     nosideeffect)
3513       # after this tag, mechanisms are not by side-effect, so they'll
3514       # only be used when explicitly requested
3515       if test "x$enable_dependency_tracking" = xyes; then
3516         continue
3517       else
3518         break
3519       fi
3520       ;;
3521     none) break ;;
3522     esac
3523     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3524     # mode.  It turns out that the SunPro C++ compiler does not properly
3525     # handle `-M -o', and we need to detect this.
3526     if depmode=$depmode \
3527        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3528        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3529        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3530          >/dev/null 2>conftest.err &&
3531        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3532        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3533        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3534        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3535       # icc doesn't choke on unknown options, it will just issue warnings
3536       # or remarks (even with -Werror).  So we grep stderr for any message
3537       # that says an option was ignored or not supported.
3538       # When given -MP, icc 7.0 and 7.1 complain thusly:
3539       #   icc: Command line warning: ignoring option '-M'; no argument required
3540       # The diagnosis changed in icc 8.0:
3541       #   icc: Command line remark: option '-MP' not supported
3542       if (grep 'ignoring option' conftest.err ||
3543           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3544         am_cv_CC_dependencies_compiler_type=$depmode
3545         break
3546       fi
3547     fi
3548   done
3549
3550   cd ..
3551   rm -rf conftest.dir
3552 else
3553   am_cv_CC_dependencies_compiler_type=none
3554 fi
3555
3556 fi
3557 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3558 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3559 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3560
3561  if
3562   test "x$enable_dependency_tracking" != xno \
3563   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3564   am__fastdepCC_TRUE=
3565   am__fastdepCC_FALSE='#'
3566 else
3567   am__fastdepCC_TRUE='#'
3568   am__fastdepCC_FALSE=
3569 fi
3570
3571
3572
3573 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3574 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3575 if test "${ac_cv_search_strerror+set}" = set; then
3576   echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578   ac_func_search_save_LIBS=$LIBS
3579 cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h.  */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h.  */
3585
3586 /* Override any GCC internal prototype to avoid an error.
3587    Use char because int might match the return type of a GCC
3588    builtin and then its argument prototype would still apply.  */
3589 #ifdef __cplusplus
3590 extern "C"
3591 #endif
3592 char strerror ();
3593 int
3594 main ()
3595 {
3596 return strerror ();
3597   ;
3598   return 0;
3599 }
3600 _ACEOF
3601 for ac_lib in '' cposix; do
3602   if test -z "$ac_lib"; then
3603     ac_res="none required"
3604   else
3605     ac_res=-l$ac_lib
3606     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3607   fi
3608   rm -f conftest.$ac_objext conftest$ac_exeext
3609 if { (ac_try="$ac_link"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615   (eval "$ac_link") 2>conftest.er1
3616   ac_status=$?
3617   grep -v '^ *+' conftest.er1 >conftest.err
3618   rm -f conftest.er1
3619   cat conftest.err >&5
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } && {
3622          test -z "$ac_c_werror_flag" ||
3623          test ! -s conftest.err
3624        } && test -s conftest$ac_exeext &&
3625        $as_test_x conftest$ac_exeext; then
3626   ac_cv_search_strerror=$ac_res
3627 else
3628   echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631
3632 fi
3633
3634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3635       conftest$ac_exeext
3636   if test "${ac_cv_search_strerror+set}" = set; then
3637   break
3638 fi
3639 done
3640 if test "${ac_cv_search_strerror+set}" = set; then
3641   :
3642 else
3643   ac_cv_search_strerror=no
3644 fi
3645 rm conftest.$ac_ext
3646 LIBS=$ac_func_search_save_LIBS
3647 fi
3648 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3649 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3650 ac_res=$ac_cv_search_strerror
3651 if test "$ac_res" != no; then
3652   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3653
3654 fi
3655
3656 ac_ext=cpp
3657 ac_cpp='$CXXCPP $CPPFLAGS'
3658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3661 if test -z "$CXX"; then
3662   if test -n "$CCC"; then
3663     CXX=$CCC
3664   else
3665     if test -n "$ac_tool_prefix"; then
3666   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3667   do
3668     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3669 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3672 if test "${ac_cv_prog_CXX+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   if test -n "$CXX"; then
3676   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681   IFS=$as_save_IFS
3682   test -z "$as_dir" && as_dir=.
3683   for ac_exec_ext in '' $ac_executable_extensions; do
3684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3687     break 2
3688   fi
3689 done
3690 done
3691 IFS=$as_save_IFS
3692
3693 fi
3694 fi
3695 CXX=$ac_cv_prog_CXX
3696 if test -n "$CXX"; then
3697   { echo "$as_me:$LINENO: result: $CXX" >&5
3698 echo "${ECHO_T}$CXX" >&6; }
3699 else
3700   { echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6; }
3702 fi
3703
3704
3705     test -n "$CXX" && break
3706   done
3707 fi
3708 if test -z "$CXX"; then
3709   ac_ct_CXX=$CXX
3710   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3711 do
3712   # Extract the first word of "$ac_prog", so it can be a program name with args.
3713 set dummy $ac_prog; ac_word=$2
3714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3716 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3717   echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719   if test -n "$ac_ct_CXX"; then
3720   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3721 else
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3724 do
3725   IFS=$as_save_IFS
3726   test -z "$as_dir" && as_dir=.
3727   for ac_exec_ext in '' $ac_executable_extensions; do
3728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3729     ac_cv_prog_ac_ct_CXX="$ac_prog"
3730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731     break 2
3732   fi
3733 done
3734 done
3735 IFS=$as_save_IFS
3736
3737 fi
3738 fi
3739 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3740 if test -n "$ac_ct_CXX"; then
3741   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3742 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3743 else
3744   { echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6; }
3746 fi
3747
3748
3749   test -n "$ac_ct_CXX" && break
3750 done
3751
3752   if test "x$ac_ct_CXX" = x; then
3753     CXX="g++"
3754   else
3755     case $cross_compiling:$ac_tool_warned in
3756 yes:)
3757 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3758 whose name does not start with the host triplet.  If you think this
3759 configuration is useful to you, please write to autoconf@gnu.org." >&5
3760 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3761 whose name does not start with the host triplet.  If you think this
3762 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3763 ac_tool_warned=yes ;;
3764 esac
3765     CXX=$ac_ct_CXX
3766   fi
3767 fi
3768
3769   fi
3770 fi
3771 # Provide some information about the compiler.
3772 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3773 ac_compiler=`set X $ac_compile; echo $2`
3774 { (ac_try="$ac_compiler --version >&5"
3775 case "(($ac_try" in
3776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777   *) ac_try_echo=$ac_try;;
3778 esac
3779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3780   (eval "$ac_compiler --version >&5") 2>&5
3781   ac_status=$?
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); }
3784 { (ac_try="$ac_compiler -v >&5"
3785 case "(($ac_try" in
3786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787   *) ac_try_echo=$ac_try;;
3788 esac
3789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790   (eval "$ac_compiler -v >&5") 2>&5
3791   ac_status=$?
3792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); }
3794 { (ac_try="$ac_compiler -V >&5"
3795 case "(($ac_try" in
3796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797   *) ac_try_echo=$ac_try;;
3798 esac
3799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800   (eval "$ac_compiler -V >&5") 2>&5
3801   ac_status=$?
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); }
3804
3805 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3806 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3807 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810   cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h.  */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h.  */
3816
3817 int
3818 main ()
3819 {
3820 #ifndef __GNUC__
3821        choke me
3822 #endif
3823
3824   ;
3825   return 0;
3826 }
3827 _ACEOF
3828 rm -f conftest.$ac_objext
3829 if { (ac_try="$ac_compile"
3830 case "(($ac_try" in
3831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832   *) ac_try_echo=$ac_try;;
3833 esac
3834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835   (eval "$ac_compile") 2>conftest.er1
3836   ac_status=$?
3837   grep -v '^ *+' conftest.er1 >conftest.err
3838   rm -f conftest.er1
3839   cat conftest.err >&5
3840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841   (exit $ac_status); } && {
3842          test -z "$ac_cxx_werror_flag" ||
3843          test ! -s conftest.err
3844        } && test -s conftest.$ac_objext; then
3845   ac_compiler_gnu=yes
3846 else
3847   echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3849
3850         ac_compiler_gnu=no
3851 fi
3852
3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3855
3856 fi
3857 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3858 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3859 GXX=`test $ac_compiler_gnu = yes && echo yes`
3860 ac_test_CXXFLAGS=${CXXFLAGS+set}
3861 ac_save_CXXFLAGS=$CXXFLAGS
3862 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3863 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3864 if test "${ac_cv_prog_cxx_g+set}" = set; then
3865   echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3868    ac_cxx_werror_flag=yes
3869    ac_cv_prog_cxx_g=no
3870    CXXFLAGS="-g"
3871    cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h.  */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h.  */
3877
3878 int
3879 main ()
3880 {
3881
3882   ;
3883   return 0;
3884 }
3885 _ACEOF
3886 rm -f conftest.$ac_objext
3887 if { (ac_try="$ac_compile"
3888 case "(($ac_try" in
3889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890   *) ac_try_echo=$ac_try;;
3891 esac
3892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893   (eval "$ac_compile") 2>conftest.er1
3894   ac_status=$?
3895   grep -v '^ *+' conftest.er1 >conftest.err
3896   rm -f conftest.er1
3897   cat conftest.err >&5
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); } && {
3900          test -z "$ac_cxx_werror_flag" ||
3901          test ! -s conftest.err
3902        } && test -s conftest.$ac_objext; then
3903   ac_cv_prog_cxx_g=yes
3904 else
3905   echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3907
3908         CXXFLAGS=""
3909       cat >conftest.$ac_ext <<_ACEOF
3910 /* confdefs.h.  */
3911 _ACEOF
3912 cat confdefs.h >>conftest.$ac_ext
3913 cat >>conftest.$ac_ext <<_ACEOF
3914 /* end confdefs.h.  */
3915
3916 int
3917 main ()
3918 {
3919
3920   ;
3921   return 0;
3922 }
3923 _ACEOF
3924 rm -f conftest.$ac_objext
3925 if { (ac_try="$ac_compile"
3926 case "(($ac_try" in
3927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928   *) ac_try_echo=$ac_try;;
3929 esac
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931   (eval "$ac_compile") 2>conftest.er1
3932   ac_status=$?
3933   grep -v '^ *+' conftest.er1 >conftest.err
3934   rm -f conftest.er1
3935   cat conftest.err >&5
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); } && {
3938          test -z "$ac_cxx_werror_flag" ||
3939          test ! -s conftest.err
3940        } && test -s conftest.$ac_objext; then
3941   :
3942 else
3943   echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3945
3946         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3947          CXXFLAGS="-g"
3948          cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h.  */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h.  */
3954
3955 int
3956 main ()
3957 {
3958
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 rm -f conftest.$ac_objext
3964 if { (ac_try="$ac_compile"
3965 case "(($ac_try" in
3966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967   *) ac_try_echo=$ac_try;;
3968 esac
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970   (eval "$ac_compile") 2>conftest.er1
3971   ac_status=$?
3972   grep -v '^ *+' conftest.er1 >conftest.err
3973   rm -f conftest.er1
3974   cat conftest.err >&5
3975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976   (exit $ac_status); } && {
3977          test -z "$ac_cxx_werror_flag" ||
3978          test ! -s conftest.err
3979        } && test -s conftest.$ac_objext; then
3980   ac_cv_prog_cxx_g=yes
3981 else
3982   echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3984
3985
3986 fi
3987
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989 fi
3990
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 fi
3993
3994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3996 fi
3997 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3998 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3999 if test "$ac_test_CXXFLAGS" = set; then
4000   CXXFLAGS=$ac_save_CXXFLAGS
4001 elif test $ac_cv_prog_cxx_g = yes; then
4002   if test "$GXX" = yes; then
4003     CXXFLAGS="-g -O2"
4004   else
4005     CXXFLAGS="-g"
4006   fi
4007 else
4008   if test "$GXX" = yes; then
4009     CXXFLAGS="-O2"
4010   else
4011     CXXFLAGS=
4012   fi
4013 fi
4014 ac_ext=c
4015 ac_cpp='$CPP $CPPFLAGS'
4016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019
4020 depcc="$CXX"  am_compiler_list=
4021
4022 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4023 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4024 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4025   echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4028   # We make a subdir and do the tests there.  Otherwise we can end up
4029   # making bogus files that we don't know about and never remove.  For
4030   # instance it was reported that on HP-UX the gcc test will end up
4031   # making a dummy file named `D' -- because `-MD' means `put the output
4032   # in D'.
4033   mkdir conftest.dir
4034   # Copy depcomp to subdir because otherwise we won't find it if we're
4035   # using a relative directory.
4036   cp "$am_depcomp" conftest.dir
4037   cd conftest.dir
4038   # We will build objects and dependencies in a subdirectory because
4039   # it helps to detect inapplicable dependency modes.  For instance
4040   # both Tru64's cc and ICC support -MD to output dependencies as a
4041   # side effect of compilation, but ICC will put the dependencies in
4042   # the current directory while Tru64 will put them in the object
4043   # directory.
4044   mkdir sub
4045
4046   am_cv_CXX_dependencies_compiler_type=none
4047   if test "$am_compiler_list" = ""; then
4048      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4049   fi
4050   for depmode in $am_compiler_list; do
4051     # Setup a source with many dependencies, because some compilers
4052     # like to wrap large dependency lists on column 80 (with \), and
4053     # we should not choose a depcomp mode which is confused by this.
4054     #
4055     # We need to recreate these files for each test, as the compiler may
4056     # overwrite some of them when testing with obscure command lines.
4057     # This happens at least with the AIX C compiler.
4058     : > sub/conftest.c
4059     for i in 1 2 3 4 5 6; do
4060       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4061       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4062       # Solaris 8's {/usr,}/bin/sh.
4063       touch sub/conftst$i.h
4064     done
4065     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4066
4067     case $depmode in
4068     nosideeffect)
4069       # after this tag, mechanisms are not by side-effect, so they'll
4070       # only be used when explicitly requested
4071       if test "x$enable_dependency_tracking" = xyes; then
4072         continue
4073       else
4074         break
4075       fi
4076       ;;
4077     none) break ;;
4078     esac
4079     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4080     # mode.  It turns out that the SunPro C++ compiler does not properly
4081     # handle `-M -o', and we need to detect this.
4082     if depmode=$depmode \
4083        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4084        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4085        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4086          >/dev/null 2>conftest.err &&
4087        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4088        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4089        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4090        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4091       # icc doesn't choke on unknown options, it will just issue warnings
4092       # or remarks (even with -Werror).  So we grep stderr for any message
4093       # that says an option was ignored or not supported.
4094       # When given -MP, icc 7.0 and 7.1 complain thusly:
4095       #   icc: Command line warning: ignoring option '-M'; no argument required
4096       # The diagnosis changed in icc 8.0:
4097       #   icc: Command line remark: option '-MP' not supported
4098       if (grep 'ignoring option' conftest.err ||
4099           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4100         am_cv_CXX_dependencies_compiler_type=$depmode
4101         break
4102       fi
4103     fi
4104   done
4105
4106   cd ..
4107   rm -rf conftest.dir
4108 else
4109   am_cv_CXX_dependencies_compiler_type=none
4110 fi
4111
4112 fi
4113 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4114 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4115 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4116
4117  if
4118   test "x$enable_dependency_tracking" != xno \
4119   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4120   am__fastdepCXX_TRUE=
4121   am__fastdepCXX_FALSE='#'
4122 else
4123   am__fastdepCXX_TRUE='#'
4124   am__fastdepCXX_FALSE=
4125 fi
4126
4127
4128 ac_ext=c
4129 ac_cpp='$CPP $CPPFLAGS'
4130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133 if test -n "$ac_tool_prefix"; then
4134   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4135 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4138 if test "${ac_cv_prog_CC+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141   if test -n "$CC"; then
4142   ac_cv_prog_CC="$CC" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4146 do
4147   IFS=$as_save_IFS
4148   test -z "$as_dir" && as_dir=.
4149   for ac_exec_ext in '' $ac_executable_extensions; do
4150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4151     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4153     break 2
4154   fi
4155 done
4156 done
4157 IFS=$as_save_IFS
4158
4159 fi
4160 fi
4161 CC=$ac_cv_prog_CC
4162 if test -n "$CC"; then
4163   { echo "$as_me:$LINENO: result: $CC" >&5
4164 echo "${ECHO_T}$CC" >&6; }
4165 else
4166   { echo "$as_me:$LINENO: result: no" >&5
4167 echo "${ECHO_T}no" >&6; }
4168 fi
4169
4170
4171 fi
4172 if test -z "$ac_cv_prog_CC"; then
4173   ac_ct_CC=$CC
4174   # Extract the first word of "gcc", so it can be a program name with args.
4175 set dummy gcc; ac_word=$2
4176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181   if test -n "$ac_ct_CC"; then
4182   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4186 do
4187   IFS=$as_save_IFS
4188   test -z "$as_dir" && as_dir=.
4189   for ac_exec_ext in '' $ac_executable_extensions; do
4190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191     ac_cv_prog_ac_ct_CC="gcc"
4192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193     break 2
4194   fi
4195 done
4196 done
4197 IFS=$as_save_IFS
4198
4199 fi
4200 fi
4201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4202 if test -n "$ac_ct_CC"; then
4203   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4204 echo "${ECHO_T}$ac_ct_CC" >&6; }
4205 else
4206   { echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6; }
4208 fi
4209
4210   if test "x$ac_ct_CC" = x; then
4211     CC=""
4212   else
4213     case $cross_compiling:$ac_tool_warned in
4214 yes:)
4215 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4216 whose name does not start with the host triplet.  If you think this
4217 configuration is useful to you, please write to autoconf@gnu.org." >&5
4218 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4219 whose name does not start with the host triplet.  If you think this
4220 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4221 ac_tool_warned=yes ;;
4222 esac
4223     CC=$ac_ct_CC
4224   fi
4225 else
4226   CC="$ac_cv_prog_CC"
4227 fi
4228
4229 if test -z "$CC"; then
4230           if test -n "$ac_tool_prefix"; then
4231     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4232 set dummy ${ac_tool_prefix}cc; ac_word=$2
4233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4235 if test "${ac_cv_prog_CC+set}" = set; then
4236   echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238   if test -n "$CC"; then
4239   ac_cv_prog_CC="$CC" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4243 do
4244   IFS=$as_save_IFS
4245   test -z "$as_dir" && as_dir=.
4246   for ac_exec_ext in '' $ac_executable_extensions; do
4247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248     ac_cv_prog_CC="${ac_tool_prefix}cc"
4249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250     break 2
4251   fi
4252 done
4253 done
4254 IFS=$as_save_IFS
4255
4256 fi
4257 fi
4258 CC=$ac_cv_prog_CC
4259 if test -n "$CC"; then
4260   { echo "$as_me:$LINENO: result: $CC" >&5
4261 echo "${ECHO_T}$CC" >&6; }
4262 else
4263   { echo "$as_me:$LINENO: result: no" >&5
4264 echo "${ECHO_T}no" >&6; }
4265 fi
4266
4267
4268   fi
4269 fi
4270 if test -z "$CC"; then
4271   # Extract the first word of "cc", so it can be a program name with args.
4272 set dummy cc; ac_word=$2
4273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4275 if test "${ac_cv_prog_CC+set}" = set; then
4276   echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278   if test -n "$CC"; then
4279   ac_cv_prog_CC="$CC" # Let the user override the test.
4280 else
4281   ac_prog_rejected=no
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285   IFS=$as_save_IFS
4286   test -z "$as_dir" && as_dir=.
4287   for ac_exec_ext in '' $ac_executable_extensions; do
4288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4289     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4290        ac_prog_rejected=yes
4291        continue
4292      fi
4293     ac_cv_prog_CC="cc"
4294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295     break 2
4296   fi
4297 done
4298 done
4299 IFS=$as_save_IFS
4300
4301 if test $ac_prog_rejected = yes; then
4302   # We found a bogon in the path, so make sure we never use it.
4303   set dummy $ac_cv_prog_CC
4304   shift
4305   if test $# != 0; then
4306     # We chose a different compiler from the bogus one.
4307     # However, it has the same basename, so the bogon will be chosen
4308     # first if we set CC to just the basename; use the full file name.
4309     shift
4310     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4311   fi
4312 fi
4313 fi
4314 fi
4315 CC=$ac_cv_prog_CC
4316 if test -n "$CC"; then
4317   { echo "$as_me:$LINENO: result: $CC" >&5
4318 echo "${ECHO_T}$CC" >&6; }
4319 else
4320   { echo "$as_me:$LINENO: result: no" >&5
4321 echo "${ECHO_T}no" >&6; }
4322 fi
4323
4324
4325 fi
4326 if test -z "$CC"; then
4327   if test -n "$ac_tool_prefix"; then
4328   for ac_prog in cl.exe
4329   do
4330     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4334 if test "${ac_cv_prog_CC+set}" = set; then
4335   echo $ECHO_N "(cached) $ECHO_C" >&6
4336 else
4337   if test -n "$CC"; then
4338   ac_cv_prog_CC="$CC" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343   IFS=$as_save_IFS
4344   test -z "$as_dir" && as_dir=.
4345   for ac_exec_ext in '' $ac_executable_extensions; do
4346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349     break 2
4350   fi
4351 done
4352 done
4353 IFS=$as_save_IFS
4354
4355 fi
4356 fi
4357 CC=$ac_cv_prog_CC
4358 if test -n "$CC"; then
4359   { echo "$as_me:$LINENO: result: $CC" >&5
4360 echo "${ECHO_T}$CC" >&6; }
4361 else
4362   { echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6; }
4364 fi
4365
4366
4367     test -n "$CC" && break
4368   done
4369 fi
4370 if test -z "$CC"; then
4371   ac_ct_CC=$CC
4372   for ac_prog in cl.exe
4373 do
4374   # Extract the first word of "$ac_prog", so it can be a program name with args.
4375 set dummy $ac_prog; ac_word=$2
4376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4378 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4379   echo $ECHO_N "(cached) $ECHO_C" >&6
4380 else
4381   if test -n "$ac_ct_CC"; then
4382   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4383 else
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387   IFS=$as_save_IFS
4388   test -z "$as_dir" && as_dir=.
4389   for ac_exec_ext in '' $ac_executable_extensions; do
4390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4391     ac_cv_prog_ac_ct_CC="$ac_prog"
4392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4393     break 2
4394   fi
4395 done
4396 done
4397 IFS=$as_save_IFS
4398
4399 fi
4400 fi
4401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4402 if test -n "$ac_ct_CC"; then
4403   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4404 echo "${ECHO_T}$ac_ct_CC" >&6; }
4405 else
4406   { echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6; }
4408 fi
4409
4410
4411   test -n "$ac_ct_CC" && break
4412 done
4413
4414   if test "x$ac_ct_CC" = x; then
4415     CC=""
4416   else
4417     case $cross_compiling:$ac_tool_warned in
4418 yes:)
4419 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4420 whose name does not start with the host triplet.  If you think this
4421 configuration is useful to you, please write to autoconf@gnu.org." >&5
4422 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4423 whose name does not start with the host triplet.  If you think this
4424 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4425 ac_tool_warned=yes ;;
4426 esac
4427     CC=$ac_ct_CC
4428   fi
4429 fi
4430
4431 fi
4432
4433
4434 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4435 See \`config.log' for more details." >&5
4436 echo "$as_me: error: no acceptable C compiler found in \$PATH
4437 See \`config.log' for more details." >&2;}
4438    { (exit 1); exit 1; }; }
4439
4440 # Provide some information about the compiler.
4441 echo "$as_me:$LINENO: checking for C compiler version" >&5
4442 ac_compiler=`set X $ac_compile; echo $2`
4443 { (ac_try="$ac_compiler --version >&5"
4444 case "(($ac_try" in
4445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446   *) ac_try_echo=$ac_try;;
4447 esac
4448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4449   (eval "$ac_compiler --version >&5") 2>&5
4450   ac_status=$?
4451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452   (exit $ac_status); }
4453 { (ac_try="$ac_compiler -v >&5"
4454 case "(($ac_try" in
4455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456   *) ac_try_echo=$ac_try;;
4457 esac
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459   (eval "$ac_compiler -v >&5") 2>&5
4460   ac_status=$?
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); }
4463 { (ac_try="$ac_compiler -V >&5"
4464 case "(($ac_try" in
4465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466   *) ac_try_echo=$ac_try;;
4467 esac
4468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4469   (eval "$ac_compiler -V >&5") 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); }
4473
4474 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4475 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4476 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h.  */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h.  */
4485
4486 int
4487 main ()
4488 {
4489 #ifndef __GNUC__
4490        choke me
4491 #endif
4492
4493   ;
4494   return 0;
4495 }
4496 _ACEOF
4497 rm -f conftest.$ac_objext
4498 if { (ac_try="$ac_compile"
4499 case "(($ac_try" in
4500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501   *) ac_try_echo=$ac_try;;
4502 esac
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504   (eval "$ac_compile") 2>conftest.er1
4505   ac_status=$?
4506   grep -v '^ *+' conftest.er1 >conftest.err
4507   rm -f conftest.er1
4508   cat conftest.err >&5
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); } && {
4511          test -z "$ac_c_werror_flag" ||
4512          test ! -s conftest.err
4513        } && test -s conftest.$ac_objext; then
4514   ac_compiler_gnu=yes
4515 else
4516   echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4518
4519         ac_compiler_gnu=no
4520 fi
4521
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4524
4525 fi
4526 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4527 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4528 GCC=`test $ac_compiler_gnu = yes && echo yes`
4529 ac_test_CFLAGS=${CFLAGS+set}
4530 ac_save_CFLAGS=$CFLAGS
4531 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4532 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4533 if test "${ac_cv_prog_cc_g+set}" = set; then
4534   echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536   ac_save_c_werror_flag=$ac_c_werror_flag
4537    ac_c_werror_flag=yes
4538    ac_cv_prog_cc_g=no
4539    CFLAGS="-g"
4540    cat >conftest.$ac_ext <<_ACEOF
4541 /* confdefs.h.  */
4542 _ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h.  */
4546
4547 int
4548 main ()
4549 {
4550
4551   ;
4552   return 0;
4553 }
4554 _ACEOF
4555 rm -f conftest.$ac_objext
4556 if { (ac_try="$ac_compile"
4557 case "(($ac_try" in
4558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559   *) ac_try_echo=$ac_try;;
4560 esac
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562   (eval "$ac_compile") 2>conftest.er1
4563   ac_status=$?
4564   grep -v '^ *+' conftest.er1 >conftest.err
4565   rm -f conftest.er1
4566   cat conftest.err >&5
4567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568   (exit $ac_status); } && {
4569          test -z "$ac_c_werror_flag" ||
4570          test ! -s conftest.err
4571        } && test -s conftest.$ac_objext; then
4572   ac_cv_prog_cc_g=yes
4573 else
4574   echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4576
4577         CFLAGS=""
4578       cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h.  */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h.  */
4584
4585 int
4586 main ()
4587 {
4588
4589   ;
4590   return 0;
4591 }
4592 _ACEOF
4593 rm -f conftest.$ac_objext
4594 if { (ac_try="$ac_compile"
4595 case "(($ac_try" in
4596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597   *) ac_try_echo=$ac_try;;
4598 esac
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600   (eval "$ac_compile") 2>conftest.er1
4601   ac_status=$?
4602   grep -v '^ *+' conftest.er1 >conftest.err
4603   rm -f conftest.er1
4604   cat conftest.err >&5
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); } && {
4607          test -z "$ac_c_werror_flag" ||
4608          test ! -s conftest.err
4609        } && test -s conftest.$ac_objext; then
4610   :
4611 else
4612   echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4614
4615         ac_c_werror_flag=$ac_save_c_werror_flag
4616          CFLAGS="-g"
4617          cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h.  */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h.  */
4623
4624 int
4625 main ()
4626 {
4627
4628   ;
4629   return 0;
4630 }
4631 _ACEOF
4632 rm -f conftest.$ac_objext
4633 if { (ac_try="$ac_compile"
4634 case "(($ac_try" in
4635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636   *) ac_try_echo=$ac_try;;
4637 esac
4638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639   (eval "$ac_compile") 2>conftest.er1
4640   ac_status=$?
4641   grep -v '^ *+' conftest.er1 >conftest.err
4642   rm -f conftest.er1
4643   cat conftest.err >&5
4644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645   (exit $ac_status); } && {
4646          test -z "$ac_c_werror_flag" ||
4647          test ! -s conftest.err
4648        } && test -s conftest.$ac_objext; then
4649   ac_cv_prog_cc_g=yes
4650 else
4651   echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4653
4654
4655 fi
4656
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 fi
4659
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661 fi
4662
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664    ac_c_werror_flag=$ac_save_c_werror_flag
4665 fi
4666 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4667 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4668 if test "$ac_test_CFLAGS" = set; then
4669   CFLAGS=$ac_save_CFLAGS
4670 elif test $ac_cv_prog_cc_g = yes; then
4671   if test "$GCC" = yes; then
4672     CFLAGS="-g -O2"
4673   else
4674     CFLAGS="-g"
4675   fi
4676 else
4677   if test "$GCC" = yes; then
4678     CFLAGS="-O2"
4679   else
4680     CFLAGS=
4681   fi
4682 fi
4683 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4684 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4685 if test "${ac_cv_prog_cc_c89+set}" = set; then
4686   echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688   ac_cv_prog_cc_c89=no
4689 ac_save_CC=$CC
4690 cat >conftest.$ac_ext <<_ACEOF
4691 /* confdefs.h.  */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h.  */
4696 #include <stdarg.h>
4697 #include <stdio.h>
4698 #include <sys/types.h>
4699 #include <sys/stat.h>
4700 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4701 struct buf { int x; };
4702 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4703 static char *e (p, i)
4704      char **p;
4705      int i;
4706 {
4707   return p[i];
4708 }
4709 static char *f (char * (*g) (char **, int), char **p, ...)
4710 {
4711   char *s;
4712   va_list v;
4713   va_start (v,p);
4714   s = g (p, va_arg (v,int));
4715   va_end (v);
4716   return s;
4717 }
4718
4719 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4720    function prototypes and stuff, but not '\xHH' hex character constants.
4721    These don't provoke an error unfortunately, instead are silently treated
4722    as 'x'.  The following induces an error, until -std is added to get
4723    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4724    array size at least.  It's necessary to write '\x00'==0 to get something
4725    that's true only with -std.  */
4726 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4727
4728 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4729    inside strings and character constants.  */
4730 #define FOO(x) 'x'
4731 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4732
4733 int test (int i, double x);
4734 struct s1 {int (*f) (int a);};
4735 struct s2 {int (*f) (double a);};
4736 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4737 int argc;
4738 char **argv;
4739 int
4740 main ()
4741 {
4742 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4743   ;
4744   return 0;
4745 }
4746 _ACEOF
4747 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4748         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4749 do
4750   CC="$ac_save_CC $ac_arg"
4751   rm -f conftest.$ac_objext
4752 if { (ac_try="$ac_compile"
4753 case "(($ac_try" in
4754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755   *) ac_try_echo=$ac_try;;
4756 esac
4757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4758   (eval "$ac_compile") 2>conftest.er1
4759   ac_status=$?
4760   grep -v '^ *+' conftest.er1 >conftest.err
4761   rm -f conftest.er1
4762   cat conftest.err >&5
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); } && {
4765          test -z "$ac_c_werror_flag" ||
4766          test ! -s conftest.err
4767        } && test -s conftest.$ac_objext; then
4768   ac_cv_prog_cc_c89=$ac_arg
4769 else
4770   echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4772
4773
4774 fi
4775
4776 rm -f core conftest.err conftest.$ac_objext
4777   test "x$ac_cv_prog_cc_c89" != "xno" && break
4778 done
4779 rm -f conftest.$ac_ext
4780 CC=$ac_save_CC
4781
4782 fi
4783 # AC_CACHE_VAL
4784 case "x$ac_cv_prog_cc_c89" in
4785   x)
4786     { echo "$as_me:$LINENO: result: none needed" >&5
4787 echo "${ECHO_T}none needed" >&6; } ;;
4788   xno)
4789     { echo "$as_me:$LINENO: result: unsupported" >&5
4790 echo "${ECHO_T}unsupported" >&6; } ;;
4791   *)
4792     CC="$CC $ac_cv_prog_cc_c89"
4793     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4794 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4795 esac
4796
4797
4798 ac_ext=c
4799 ac_cpp='$CPP $CPPFLAGS'
4800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4803
4804 depcc="$CC"   am_compiler_list=
4805
4806 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4807 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4808 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4812   # We make a subdir and do the tests there.  Otherwise we can end up
4813   # making bogus files that we don't know about and never remove.  For
4814   # instance it was reported that on HP-UX the gcc test will end up
4815   # making a dummy file named `D' -- because `-MD' means `put the output
4816   # in D'.
4817   mkdir conftest.dir
4818   # Copy depcomp to subdir because otherwise we won't find it if we're
4819   # using a relative directory.
4820   cp "$am_depcomp" conftest.dir
4821   cd conftest.dir
4822   # We will build objects and dependencies in a subdirectory because
4823   # it helps to detect inapplicable dependency modes.  For instance
4824   # both Tru64's cc and ICC support -MD to output dependencies as a
4825   # side effect of compilation, but ICC will put the dependencies in
4826   # the current directory while Tru64 will put them in the object
4827   # directory.
4828   mkdir sub
4829
4830   am_cv_CC_dependencies_compiler_type=none
4831   if test "$am_compiler_list" = ""; then
4832      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4833   fi
4834   for depmode in $am_compiler_list; do
4835     # Setup a source with many dependencies, because some compilers
4836     # like to wrap large dependency lists on column 80 (with \), and
4837     # we should not choose a depcomp mode which is confused by this.
4838     #
4839     # We need to recreate these files for each test, as the compiler may
4840     # overwrite some of them when testing with obscure command lines.
4841     # This happens at least with the AIX C compiler.
4842     : > sub/conftest.c
4843     for i in 1 2 3 4 5 6; do
4844       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4845       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4846       # Solaris 8's {/usr,}/bin/sh.
4847       touch sub/conftst$i.h
4848     done
4849     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4850
4851     case $depmode in
4852     nosideeffect)
4853       # after this tag, mechanisms are not by side-effect, so they'll
4854       # only be used when explicitly requested
4855       if test "x$enable_dependency_tracking" = xyes; then
4856         continue
4857       else
4858         break
4859       fi
4860       ;;
4861     none) break ;;
4862     esac
4863     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4864     # mode.  It turns out that the SunPro C++ compiler does not properly
4865     # handle `-M -o', and we need to detect this.
4866     if depmode=$depmode \
4867        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4868        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4869        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4870          >/dev/null 2>conftest.err &&
4871        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4872        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4873        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4874        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4875       # icc doesn't choke on unknown options, it will just issue warnings
4876       # or remarks (even with -Werror).  So we grep stderr for any message
4877       # that says an option was ignored or not supported.
4878       # When given -MP, icc 7.0 and 7.1 complain thusly:
4879       #   icc: Command line warning: ignoring option '-M'; no argument required
4880       # The diagnosis changed in icc 8.0:
4881       #   icc: Command line remark: option '-MP' not supported
4882       if (grep 'ignoring option' conftest.err ||
4883           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4884         am_cv_CC_dependencies_compiler_type=$depmode
4885         break
4886       fi
4887     fi
4888   done
4889
4890   cd ..
4891   rm -rf conftest.dir
4892 else
4893   am_cv_CC_dependencies_compiler_type=none
4894 fi
4895
4896 fi
4897 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4898 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4899 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4900
4901  if
4902   test "x$enable_dependency_tracking" != xno \
4903   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4904   am__fastdepCC_TRUE=
4905   am__fastdepCC_FALSE='#'
4906 else
4907   am__fastdepCC_TRUE='#'
4908   am__fastdepCC_FALSE=
4909 fi
4910
4911
4912
4913 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4914
4915 ac_ext=c
4916 ac_cpp='$CPP $CPPFLAGS'
4917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4921 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4922 # On Suns, sometimes $CPP names a directory.
4923 if test -n "$CPP" && test -d "$CPP"; then
4924   CPP=
4925 fi
4926 if test -z "$CPP"; then
4927   if test "${ac_cv_prog_CPP+set}" = set; then
4928   echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930       # Double quotes because CPP needs to be expanded
4931     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4932     do
4933       ac_preproc_ok=false
4934 for ac_c_preproc_warn_flag in '' yes
4935 do
4936   # Use a header file that comes with gcc, so configuring glibc
4937   # with a fresh cross-compiler works.
4938   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939   # <limits.h> exists even on freestanding compilers.
4940   # On the NeXT, cc -E runs the code through the compiler's parser,
4941   # not just through cpp. "Syntax error" is here to catch this case.
4942   cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h.  */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h.  */
4948 #ifdef __STDC__
4949 # include <limits.h>
4950 #else
4951 # include <assert.h>
4952 #endif
4953                      Syntax error
4954 _ACEOF
4955 if { (ac_try="$ac_cpp conftest.$ac_ext"
4956 case "(($ac_try" in
4957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958   *) ac_try_echo=$ac_try;;
4959 esac
4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4962   ac_status=$?
4963   grep -v '^ *+' conftest.er1 >conftest.err
4964   rm -f conftest.er1
4965   cat conftest.err >&5
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); } >/dev/null && {
4968          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4969          test ! -s conftest.err
4970        }; then
4971   :
4972 else
4973   echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976   # Broken: fails on valid input.
4977 continue
4978 fi
4979
4980 rm -f conftest.err conftest.$ac_ext
4981
4982   # OK, works on sane cases.  Now check whether nonexistent headers
4983   # can be detected and how.
4984   cat >conftest.$ac_ext <<_ACEOF
4985 /* confdefs.h.  */
4986 _ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h.  */
4990 #include <ac_nonexistent.h>
4991 _ACEOF
4992 if { (ac_try="$ac_cpp conftest.$ac_ext"
4993 case "(($ac_try" in
4994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995   *) ac_try_echo=$ac_try;;
4996 esac
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4999   ac_status=$?
5000   grep -v '^ *+' conftest.er1 >conftest.err
5001   rm -f conftest.er1
5002   cat conftest.err >&5
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); } >/dev/null && {
5005          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5006          test ! -s conftest.err
5007        }; then
5008   # Broken: success on invalid input.
5009 continue
5010 else
5011   echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014   # Passes both tests.
5015 ac_preproc_ok=:
5016 break
5017 fi
5018
5019 rm -f conftest.err conftest.$ac_ext
5020
5021 done
5022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023 rm -f conftest.err conftest.$ac_ext
5024 if $ac_preproc_ok; then
5025   break
5026 fi
5027
5028     done
5029     ac_cv_prog_CPP=$CPP
5030
5031 fi
5032   CPP=$ac_cv_prog_CPP
5033 else
5034   ac_cv_prog_CPP=$CPP
5035 fi
5036 { echo "$as_me:$LINENO: result: $CPP" >&5
5037 echo "${ECHO_T}$CPP" >&6; }
5038 ac_preproc_ok=false
5039 for ac_c_preproc_warn_flag in '' yes
5040 do
5041   # Use a header file that comes with gcc, so configuring glibc
5042   # with a fresh cross-compiler works.
5043   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5044   # <limits.h> exists even on freestanding compilers.
5045   # On the NeXT, cc -E runs the code through the compiler's parser,
5046   # not just through cpp. "Syntax error" is here to catch this case.
5047   cat >conftest.$ac_ext <<_ACEOF
5048 /* confdefs.h.  */
5049 _ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h.  */
5053 #ifdef __STDC__
5054 # include <limits.h>
5055 #else
5056 # include <assert.h>
5057 #endif
5058                      Syntax error
5059 _ACEOF
5060 if { (ac_try="$ac_cpp conftest.$ac_ext"
5061 case "(($ac_try" in
5062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063   *) ac_try_echo=$ac_try;;
5064 esac
5065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5066   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5067   ac_status=$?
5068   grep -v '^ *+' conftest.er1 >conftest.err
5069   rm -f conftest.er1
5070   cat conftest.err >&5
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); } >/dev/null && {
5073          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5074          test ! -s conftest.err
5075        }; then
5076   :
5077 else
5078   echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5080
5081   # Broken: fails on valid input.
5082 continue
5083 fi
5084
5085 rm -f conftest.err conftest.$ac_ext
5086
5087   # OK, works on sane cases.  Now check whether nonexistent headers
5088   # can be detected and how.
5089   cat >conftest.$ac_ext <<_ACEOF
5090 /* confdefs.h.  */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h.  */
5095 #include <ac_nonexistent.h>
5096 _ACEOF
5097 if { (ac_try="$ac_cpp conftest.$ac_ext"
5098 case "(($ac_try" in
5099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100   *) ac_try_echo=$ac_try;;
5101 esac
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5104   ac_status=$?
5105   grep -v '^ *+' conftest.er1 >conftest.err
5106   rm -f conftest.er1
5107   cat conftest.err >&5
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); } >/dev/null && {
5110          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5111          test ! -s conftest.err
5112        }; then
5113   # Broken: success on invalid input.
5114 continue
5115 else
5116   echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119   # Passes both tests.
5120 ac_preproc_ok=:
5121 break
5122 fi
5123
5124 rm -f conftest.err conftest.$ac_ext
5125
5126 done
5127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5128 rm -f conftest.err conftest.$ac_ext
5129 if $ac_preproc_ok; then
5130   :
5131 else
5132   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5133 See \`config.log' for more details." >&5
5134 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5135 See \`config.log' for more details." >&2;}
5136    { (exit 1); exit 1; }; }
5137 fi
5138
5139 ac_ext=c
5140 ac_cpp='$CPP $CPPFLAGS'
5141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5144
5145
5146 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5147 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5148 if test "${ac_cv_path_GREP+set}" = set; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151   # Extract the first word of "grep ggrep" to use in msg output
5152 if test -z "$GREP"; then
5153 set dummy grep ggrep; ac_prog_name=$2
5154 if test "${ac_cv_path_GREP+set}" = set; then
5155   echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157   ac_path_GREP_found=false
5158 # Loop through the user's path and test for each of PROGNAME-LIST
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5161 do
5162   IFS=$as_save_IFS
5163   test -z "$as_dir" && as_dir=.
5164   for ac_prog in grep ggrep; do
5165   for ac_exec_ext in '' $ac_executable_extensions; do
5166     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5167     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5168     # Check for GNU ac_path_GREP and select it if it is found.
5169   # Check for GNU $ac_path_GREP
5170 case `"$ac_path_GREP" --version 2>&1` in
5171 *GNU*)
5172   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5173 *)
5174   ac_count=0
5175   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5176   while :
5177   do
5178     cat "conftest.in" "conftest.in" >"conftest.tmp"
5179     mv "conftest.tmp" "conftest.in"
5180     cp "conftest.in" "conftest.nl"
5181     echo 'GREP' >> "conftest.nl"
5182     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5183     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5184     ac_count=`expr $ac_count + 1`
5185     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5186       # Best one so far, save it but keep looking for a better one
5187       ac_cv_path_GREP="$ac_path_GREP"
5188       ac_path_GREP_max=$ac_count
5189     fi
5190     # 10*(2^10) chars as input seems more than enough
5191     test $ac_count -gt 10 && break
5192   done
5193   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5194 esac
5195
5196
5197     $ac_path_GREP_found && break 3
5198   done
5199 done
5200
5201 done
5202 IFS=$as_save_IFS
5203
5204
5205 fi
5206
5207 GREP="$ac_cv_path_GREP"
5208 if test -z "$GREP"; then
5209   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5210 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5211    { (exit 1); exit 1; }; }
5212 fi
5213
5214 else
5215   ac_cv_path_GREP=$GREP
5216 fi
5217
5218
5219 fi
5220 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5221 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5222  GREP="$ac_cv_path_GREP"
5223
5224
5225 { echo "$as_me:$LINENO: checking for egrep" >&5
5226 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5227 if test "${ac_cv_path_EGREP+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5231    then ac_cv_path_EGREP="$GREP -E"
5232    else
5233      # Extract the first word of "egrep" to use in msg output
5234 if test -z "$EGREP"; then
5235 set dummy egrep; ac_prog_name=$2
5236 if test "${ac_cv_path_EGREP+set}" = set; then
5237   echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239   ac_path_EGREP_found=false
5240 # Loop through the user's path and test for each of PROGNAME-LIST
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5243 do
5244   IFS=$as_save_IFS
5245   test -z "$as_dir" && as_dir=.
5246   for ac_prog in egrep; do
5247   for ac_exec_ext in '' $ac_executable_extensions; do
5248     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5249     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5250     # Check for GNU ac_path_EGREP and select it if it is found.
5251   # Check for GNU $ac_path_EGREP
5252 case `"$ac_path_EGREP" --version 2>&1` in
5253 *GNU*)
5254   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5255 *)
5256   ac_count=0
5257   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5258   while :
5259   do
5260     cat "conftest.in" "conftest.in" >"conftest.tmp"
5261     mv "conftest.tmp" "conftest.in"
5262     cp "conftest.in" "conftest.nl"
5263     echo 'EGREP' >> "conftest.nl"
5264     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5265     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5266     ac_count=`expr $ac_count + 1`
5267     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5268       # Best one so far, save it but keep looking for a better one
5269       ac_cv_path_EGREP="$ac_path_EGREP"
5270       ac_path_EGREP_max=$ac_count
5271     fi
5272     # 10*(2^10) chars as input seems more than enough
5273     test $ac_count -gt 10 && break
5274   done
5275   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5276 esac
5277
5278
5279     $ac_path_EGREP_found && break 3
5280   done
5281 done
5282
5283 done
5284 IFS=$as_save_IFS
5285
5286
5287 fi
5288
5289 EGREP="$ac_cv_path_EGREP"
5290 if test -z "$EGREP"; then
5291   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5292 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5293    { (exit 1); exit 1; }; }
5294 fi
5295
5296 else
5297   ac_cv_path_EGREP=$EGREP
5298 fi
5299
5300
5301    fi
5302 fi
5303 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5304 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5305  EGREP="$ac_cv_path_EGREP"
5306
5307
5308 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5309 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5310 if test "${ac_cv_header_stdc+set}" = set; then
5311   echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313   cat >conftest.$ac_ext <<_ACEOF
5314 /* confdefs.h.  */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h.  */
5319 #include <stdlib.h>
5320 #include <stdarg.h>
5321 #include <string.h>
5322 #include <float.h>
5323
5324 int
5325 main ()
5326 {
5327
5328   ;
5329   return 0;
5330 }
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (ac_try="$ac_compile"
5334 case "(($ac_try" in
5335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336   *) ac_try_echo=$ac_try;;
5337 esac
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339   (eval "$ac_compile") 2>conftest.er1
5340   ac_status=$?
5341   grep -v '^ *+' conftest.er1 >conftest.err
5342   rm -f conftest.er1
5343   cat conftest.err >&5
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); } && {
5346          test -z "$ac_c_werror_flag" ||
5347          test ! -s conftest.err
5348        } && test -s conftest.$ac_objext; then
5349   ac_cv_header_stdc=yes
5350 else
5351   echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5353
5354         ac_cv_header_stdc=no
5355 fi
5356
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358
5359 if test $ac_cv_header_stdc = yes; then
5360   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5361   cat >conftest.$ac_ext <<_ACEOF
5362 /* confdefs.h.  */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h.  */
5367 #include <string.h>
5368
5369 _ACEOF
5370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5371   $EGREP "memchr" >/dev/null 2>&1; then
5372   :
5373 else
5374   ac_cv_header_stdc=no
5375 fi
5376 rm -f conftest*
5377
5378 fi
5379
5380 if test $ac_cv_header_stdc = yes; then
5381   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5382   cat >conftest.$ac_ext <<_ACEOF
5383 /* confdefs.h.  */
5384 _ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h.  */
5388 #include <stdlib.h>
5389
5390 _ACEOF
5391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5392   $EGREP "free" >/dev/null 2>&1; then
5393   :
5394 else
5395   ac_cv_header_stdc=no
5396 fi
5397 rm -f conftest*
5398
5399 fi
5400
5401 if test $ac_cv_header_stdc = yes; then
5402   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5403   if test "$cross_compiling" = yes; then
5404   :
5405 else
5406   cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h.  */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h.  */
5412 #include <ctype.h>
5413 #include <stdlib.h>
5414 #if ((' ' & 0x0FF) == 0x020)
5415 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5416 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5417 #else
5418 # define ISLOWER(c) \
5419                    (('a' <= (c) && (c) <= 'i') \
5420                      || ('j' <= (c) && (c) <= 'r') \
5421                      || ('s' <= (c) && (c) <= 'z'))
5422 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5423 #endif
5424
5425 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5426 int
5427 main ()
5428 {
5429   int i;
5430   for (i = 0; i < 256; i++)
5431     if (XOR (islower (i), ISLOWER (i))
5432         || toupper (i) != TOUPPER (i))
5433       return 2;
5434   return 0;
5435 }
5436 _ACEOF
5437 rm -f conftest$ac_exeext
5438 if { (ac_try="$ac_link"
5439 case "(($ac_try" in
5440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441   *) ac_try_echo=$ac_try;;
5442 esac
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444   (eval "$ac_link") 2>&5
5445   ac_status=$?
5446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5448   { (case "(($ac_try" in
5449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450   *) ac_try_echo=$ac_try;;
5451 esac
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453   (eval "$ac_try") 2>&5
5454   ac_status=$?
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); }; }; then
5457   :
5458 else
5459   echo "$as_me: program exited with status $ac_status" >&5
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5462
5463 ( exit $ac_status )
5464 ac_cv_header_stdc=no
5465 fi
5466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5467 fi
5468
5469
5470 fi
5471 fi
5472 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5473 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5474 if test $ac_cv_header_stdc = yes; then
5475
5476 cat >>confdefs.h <<\_ACEOF
5477 #define STDC_HEADERS 1
5478 _ACEOF
5479
5480 fi
5481
5482
5483
5484
5485
5486 GETTEXT_PACKAGE=tsremuxcpp
5487
5488
5489 cat >>confdefs.h <<_ACEOF
5490 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
5491 _ACEOF
5492
5493 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5504                   inttypes.h stdint.h unistd.h
5505 do
5506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5510   echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512   cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h.  */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h.  */
5518 $ac_includes_default
5519
5520 #include <$ac_header>
5521 _ACEOF
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5524 case "(($ac_try" in
5525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526   *) ac_try_echo=$ac_try;;
5527 esac
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529   (eval "$ac_compile") 2>conftest.er1
5530   ac_status=$?
5531   grep -v '^ *+' conftest.er1 >conftest.err
5532   rm -f conftest.er1
5533   cat conftest.err >&5
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); } && {
5536          test -z "$ac_c_werror_flag" ||
5537          test ! -s conftest.err
5538        } && test -s conftest.$ac_objext; then
5539   eval "$as_ac_Header=yes"
5540 else
5541   echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5543
5544         eval "$as_ac_Header=no"
5545 fi
5546
5547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 fi
5549 ac_res=`eval echo '${'$as_ac_Header'}'`
5550                { echo "$as_me:$LINENO: result: $ac_res" >&5
5551 echo "${ECHO_T}$ac_res" >&6; }
5552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5553   cat >>confdefs.h <<_ACEOF
5554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5555 _ACEOF
5556
5557 fi
5558
5559 done
5560
5561
5562
5563
5564 for ac_header in locale.h
5565 do
5566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5568   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5571   echo $ECHO_N "(cached) $ECHO_C" >&6
5572 fi
5573 ac_res=`eval echo '${'$as_ac_Header'}'`
5574                { echo "$as_me:$LINENO: result: $ac_res" >&5
5575 echo "${ECHO_T}$ac_res" >&6; }
5576 else
5577   # Is the header compilable?
5578 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5580 cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h.  */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h.  */
5586 $ac_includes_default
5587 #include <$ac_header>
5588 _ACEOF
5589 rm -f conftest.$ac_objext
5590 if { (ac_try="$ac_compile"
5591 case "(($ac_try" in
5592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593   *) ac_try_echo=$ac_try;;
5594 esac
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596   (eval "$ac_compile") 2>conftest.er1
5597   ac_status=$?
5598   grep -v '^ *+' conftest.er1 >conftest.err
5599   rm -f conftest.er1
5600   cat conftest.err >&5
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); } && {
5603          test -z "$ac_c_werror_flag" ||
5604          test ! -s conftest.err
5605        } && test -s conftest.$ac_objext; then
5606   ac_header_compiler=yes
5607 else
5608   echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5610
5611         ac_header_compiler=no
5612 fi
5613
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5616 echo "${ECHO_T}$ac_header_compiler" >&6; }
5617
5618 # Is the header present?
5619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5621 cat >conftest.$ac_ext <<_ACEOF
5622 /* confdefs.h.  */
5623 _ACEOF
5624 cat confdefs.h >>conftest.$ac_ext
5625 cat >>conftest.$ac_ext <<_ACEOF
5626 /* end confdefs.h.  */
5627 #include <$ac_header>
5628 _ACEOF
5629 if { (ac_try="$ac_cpp conftest.$ac_ext"
5630 case "(($ac_try" in
5631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632   *) ac_try_echo=$ac_try;;
5633 esac
5634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5636   ac_status=$?
5637   grep -v '^ *+' conftest.er1 >conftest.err
5638   rm -f conftest.er1
5639   cat conftest.err >&5
5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641   (exit $ac_status); } >/dev/null && {
5642          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5643          test ! -s conftest.err
5644        }; then
5645   ac_header_preproc=yes
5646 else
5647   echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5649
5650   ac_header_preproc=no
5651 fi
5652
5653 rm -f conftest.err conftest.$ac_ext
5654 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5655 echo "${ECHO_T}$ac_header_preproc" >&6; }
5656
5657 # So?  What about this header?
5658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5659   yes:no: )
5660     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5662     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5664     ac_header_preproc=yes
5665     ;;
5666   no:yes:* )
5667     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5669     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5670 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5671     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5673     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5674 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5677     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5679
5680     ;;
5681 esac
5682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5685   echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687   eval "$as_ac_Header=\$ac_header_preproc"
5688 fi
5689 ac_res=`eval echo '${'$as_ac_Header'}'`
5690                { echo "$as_me:$LINENO: result: $ac_res" >&5
5691 echo "${ECHO_T}$ac_res" >&6; }
5692
5693 fi
5694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5695   cat >>confdefs.h <<_ACEOF
5696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5697 _ACEOF
5698
5699 fi
5700
5701 done
5702
5703     if test $ac_cv_header_locale_h = yes; then
5704     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
5705 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
5706 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
5707   echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709   cat >conftest.$ac_ext <<_ACEOF
5710 /* confdefs.h.  */
5711 _ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h.  */
5715 #include <locale.h>
5716 int
5717 main ()
5718 {
5719 return LC_MESSAGES
5720   ;
5721   return 0;
5722 }
5723 _ACEOF
5724 rm -f conftest.$ac_objext conftest$ac_exeext
5725 if { (ac_try="$ac_link"
5726 case "(($ac_try" in
5727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728   *) ac_try_echo=$ac_try;;
5729 esac
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731   (eval "$ac_link") 2>conftest.er1
5732   ac_status=$?
5733   grep -v '^ *+' conftest.er1 >conftest.err
5734   rm -f conftest.er1
5735   cat conftest.err >&5
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); } && {
5738          test -z "$ac_c_werror_flag" ||
5739          test ! -s conftest.err
5740        } && test -s conftest$ac_exeext &&
5741        $as_test_x conftest$ac_exeext; then
5742   am_cv_val_LC_MESSAGES=yes
5743 else
5744   echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5746
5747         am_cv_val_LC_MESSAGES=no
5748 fi
5749
5750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5751       conftest$ac_exeext conftest.$ac_ext
5752 fi
5753 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
5754 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
5755     if test $am_cv_val_LC_MESSAGES = yes; then
5756
5757 cat >>confdefs.h <<\_ACEOF
5758 #define HAVE_LC_MESSAGES 1
5759 _ACEOF
5760
5761     fi
5762   fi
5763      USE_NLS=yes
5764
5765
5766     gt_cv_have_gettext=no
5767
5768     CATOBJEXT=NONE
5769     XGETTEXT=:
5770     INTLLIBS=
5771
5772     if test "${ac_cv_header_libintl_h+set}" = set; then
5773   { echo "$as_me:$LINENO: checking for libintl.h" >&5
5774 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
5775 if test "${ac_cv_header_libintl_h+set}" = set; then
5776   echo $ECHO_N "(cached) $ECHO_C" >&6
5777 fi
5778 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5779 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
5780 else
5781   # Is the header compilable?
5782 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
5783 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
5784 cat >conftest.$ac_ext <<_ACEOF
5785 /* confdefs.h.  */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h.  */
5790 $ac_includes_default
5791 #include <libintl.h>
5792 _ACEOF
5793 rm -f conftest.$ac_objext
5794 if { (ac_try="$ac_compile"
5795 case "(($ac_try" in
5796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5797   *) ac_try_echo=$ac_try;;
5798 esac
5799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5800   (eval "$ac_compile") 2>conftest.er1
5801   ac_status=$?
5802   grep -v '^ *+' conftest.er1 >conftest.err
5803   rm -f conftest.er1
5804   cat conftest.err >&5
5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806   (exit $ac_status); } && {
5807          test -z "$ac_c_werror_flag" ||
5808          test ! -s conftest.err
5809        } && test -s conftest.$ac_objext; then
5810   ac_header_compiler=yes
5811 else
5812   echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5814
5815         ac_header_compiler=no
5816 fi
5817
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5820 echo "${ECHO_T}$ac_header_compiler" >&6; }
5821
5822 # Is the header present?
5823 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
5824 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
5825 cat >conftest.$ac_ext <<_ACEOF
5826 /* confdefs.h.  */
5827 _ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h.  */
5831 #include <libintl.h>
5832 _ACEOF
5833 if { (ac_try="$ac_cpp conftest.$ac_ext"
5834 case "(($ac_try" in
5835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836   *) ac_try_echo=$ac_try;;
5837 esac
5838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5840   ac_status=$?
5841   grep -v '^ *+' conftest.er1 >conftest.err
5842   rm -f conftest.er1
5843   cat conftest.err >&5
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); } >/dev/null && {
5846          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5847          test ! -s conftest.err
5848        }; then
5849   ac_header_preproc=yes
5850 else
5851   echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5853
5854   ac_header_preproc=no
5855 fi
5856
5857 rm -f conftest.err conftest.$ac_ext
5858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5859 echo "${ECHO_T}$ac_header_preproc" >&6; }
5860
5861 # So?  What about this header?
5862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5863   yes:no: )
5864     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5865 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5866     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5867 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5868     ac_header_preproc=yes
5869     ;;
5870   no:yes:* )
5871     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5872 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5873     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
5874 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
5875     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5876 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5877     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
5878 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5879     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5880 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5881     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5882 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5883
5884     ;;
5885 esac
5886 { echo "$as_me:$LINENO: checking for libintl.h" >&5
5887 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
5888 if test "${ac_cv_header_libintl_h+set}" = set; then
5889   echo $ECHO_N "(cached) $ECHO_C" >&6
5890 else
5891   ac_cv_header_libintl_h=$ac_header_preproc
5892 fi
5893 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5894 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
5895
5896 fi
5897 if test $ac_cv_header_libintl_h = yes; then
5898   gt_cv_func_dgettext_libintl="no"
5899       libintl_extra_libs=""
5900
5901       #
5902       # First check in libc
5903       #
5904       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
5905 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
5906 if test "${gt_cv_func_ngettext_libc+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909   cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h.  */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h.  */
5915
5916 #include <libintl.h>
5917
5918 int
5919 main ()
5920 {
5921 return !ngettext ("","", 1)
5922   ;
5923   return 0;
5924 }
5925 _ACEOF
5926 rm -f conftest.$ac_objext conftest$ac_exeext
5927 if { (ac_try="$ac_link"
5928 case "(($ac_try" in
5929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930   *) ac_try_echo=$ac_try;;
5931 esac
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933   (eval "$ac_link") 2>conftest.er1
5934   ac_status=$?
5935   grep -v '^ *+' conftest.er1 >conftest.err
5936   rm -f conftest.er1
5937   cat conftest.err >&5
5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939   (exit $ac_status); } && {
5940          test -z "$ac_c_werror_flag" ||
5941          test ! -s conftest.err
5942        } && test -s conftest$ac_exeext &&
5943        $as_test_x conftest$ac_exeext; then
5944   gt_cv_func_ngettext_libc=yes
5945 else
5946   echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5948
5949         gt_cv_func_ngettext_libc=no
5950 fi
5951
5952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5953       conftest$ac_exeext conftest.$ac_ext
5954
5955 fi
5956 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
5957 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
5958
5959       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
5960               { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
5961 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
5962 if test "${gt_cv_func_dgettext_libc+set}" = set; then
5963   echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965   cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h.  */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h.  */
5971
5972 #include <libintl.h>
5973
5974 int
5975 main ()
5976 {
5977 return !dgettext ("","")
5978   ;
5979   return 0;
5980 }
5981 _ACEOF
5982 rm -f conftest.$ac_objext conftest$ac_exeext
5983 if { (ac_try="$ac_link"
5984 case "(($ac_try" in
5985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986   *) ac_try_echo=$ac_try;;
5987 esac
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989   (eval "$ac_link") 2>conftest.er1
5990   ac_status=$?
5991   grep -v '^ *+' conftest.er1 >conftest.err
5992   rm -f conftest.er1
5993   cat conftest.err >&5
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); } && {
5996          test -z "$ac_c_werror_flag" ||
5997          test ! -s conftest.err
5998        } && test -s conftest$ac_exeext &&
5999        $as_test_x conftest$ac_exeext; then
6000   gt_cv_func_dgettext_libc=yes
6001 else
6002   echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6004
6005         gt_cv_func_dgettext_libc=no
6006 fi
6007
6008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6009       conftest$ac_exeext conftest.$ac_ext
6010
6011 fi
6012 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
6013 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
6014       fi
6015
6016       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6017
6018 for ac_func in bind_textdomain_codeset
6019 do
6020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6024   echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026   cat >conftest.$ac_ext <<_ACEOF
6027 /* confdefs.h.  */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h.  */
6032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6034 #define $ac_func innocuous_$ac_func
6035
6036 /* System header to define __stub macros and hopefully few prototypes,
6037     which can conflict with char $ac_func (); below.
6038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6039     <limits.h> exists even on freestanding compilers.  */
6040
6041 #ifdef __STDC__
6042 # include <limits.h>
6043 #else
6044 # include <assert.h>
6045 #endif
6046
6047 #undef $ac_func
6048
6049 /* Override any GCC internal prototype to avoid an error.
6050    Use char because int might match the return type of a GCC
6051    builtin and then its argument prototype would still apply.  */
6052 #ifdef __cplusplus
6053 extern "C"
6054 #endif
6055 char $ac_func ();
6056 /* The GNU C library defines this for functions which it implements
6057     to always fail with ENOSYS.  Some functions are actually named
6058     something starting with __ and the normal name is an alias.  */
6059 #if defined __stub_$ac_func || defined __stub___$ac_func
6060 choke me
6061 #endif
6062
6063 int
6064 main ()
6065 {
6066 return $ac_func ();
6067   ;
6068   return 0;
6069 }
6070 _ACEOF
6071 rm -f conftest.$ac_objext conftest$ac_exeext
6072 if { (ac_try="$ac_link"
6073 case "(($ac_try" in
6074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075   *) ac_try_echo=$ac_try;;
6076 esac
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078   (eval "$ac_link") 2>conftest.er1
6079   ac_status=$?
6080   grep -v '^ *+' conftest.er1 >conftest.err
6081   rm -f conftest.er1
6082   cat conftest.err >&5
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); } && {
6085          test -z "$ac_c_werror_flag" ||
6086          test ! -s conftest.err
6087        } && test -s conftest$ac_exeext &&
6088        $as_test_x conftest$ac_exeext; then
6089   eval "$as_ac_var=yes"
6090 else
6091   echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094         eval "$as_ac_var=no"
6095 fi
6096
6097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6098       conftest$ac_exeext conftest.$ac_ext
6099 fi
6100 ac_res=`eval echo '${'$as_ac_var'}'`
6101                { echo "$as_me:$LINENO: result: $ac_res" >&5
6102 echo "${ECHO_T}$ac_res" >&6; }
6103 if test `eval echo '${'$as_ac_var'}'` = yes; then
6104   cat >>confdefs.h <<_ACEOF
6105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6106 _ACEOF
6107
6108 fi
6109 done
6110
6111       fi
6112
6113       #
6114       # If we don't have everything we want, check in libintl
6115       #
6116       if test "$gt_cv_func_dgettext_libc" != "yes" \
6117          || test "$gt_cv_func_ngettext_libc" != "yes" \
6118          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
6119
6120         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
6121 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
6122 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
6123   echo $ECHO_N "(cached) $ECHO_C" >&6
6124 else
6125   ac_check_lib_save_LIBS=$LIBS
6126 LIBS="-lintl  $LIBS"
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h.  */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h.  */
6133
6134 /* Override any GCC internal prototype to avoid an error.
6135    Use char because int might match the return type of a GCC
6136    builtin and then its argument prototype would still apply.  */
6137 #ifdef __cplusplus
6138 extern "C"
6139 #endif
6140 char bindtextdomain ();
6141 int
6142 main ()
6143 {
6144 return bindtextdomain ();
6145   ;
6146   return 0;
6147 }
6148 _ACEOF
6149 rm -f conftest.$ac_objext conftest$ac_exeext
6150 if { (ac_try="$ac_link"
6151 case "(($ac_try" in
6152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153   *) ac_try_echo=$ac_try;;
6154 esac
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156   (eval "$ac_link") 2>conftest.er1
6157   ac_status=$?
6158   grep -v '^ *+' conftest.er1 >conftest.err
6159   rm -f conftest.er1
6160   cat conftest.err >&5
6161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162   (exit $ac_status); } && {
6163          test -z "$ac_c_werror_flag" ||
6164          test ! -s conftest.err
6165        } && test -s conftest$ac_exeext &&
6166        $as_test_x conftest$ac_exeext; then
6167   ac_cv_lib_intl_bindtextdomain=yes
6168 else
6169   echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6171
6172         ac_cv_lib_intl_bindtextdomain=no
6173 fi
6174
6175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6176       conftest$ac_exeext conftest.$ac_ext
6177 LIBS=$ac_check_lib_save_LIBS
6178 fi
6179 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
6180 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
6181 if test $ac_cv_lib_intl_bindtextdomain = yes; then
6182   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6183 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6184 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6185   echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187   ac_check_lib_save_LIBS=$LIBS
6188 LIBS="-lintl  $LIBS"
6189 cat >conftest.$ac_ext <<_ACEOF
6190 /* confdefs.h.  */
6191 _ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h.  */
6195
6196 /* Override any GCC internal prototype to avoid an error.
6197    Use char because int might match the return type of a GCC
6198    builtin and then its argument prototype would still apply.  */
6199 #ifdef __cplusplus
6200 extern "C"
6201 #endif
6202 char ngettext ();
6203 int
6204 main ()
6205 {
6206 return ngettext ();
6207   ;
6208   return 0;
6209 }
6210 _ACEOF
6211 rm -f conftest.$ac_objext conftest$ac_exeext
6212 if { (ac_try="$ac_link"
6213 case "(($ac_try" in
6214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215   *) ac_try_echo=$ac_try;;
6216 esac
6217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6218   (eval "$ac_link") 2>conftest.er1
6219   ac_status=$?
6220   grep -v '^ *+' conftest.er1 >conftest.err
6221   rm -f conftest.er1
6222   cat conftest.err >&5
6223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224   (exit $ac_status); } && {
6225          test -z "$ac_c_werror_flag" ||
6226          test ! -s conftest.err
6227        } && test -s conftest$ac_exeext &&
6228        $as_test_x conftest$ac_exeext; then
6229   ac_cv_lib_intl_ngettext=yes
6230 else
6231   echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6233
6234         ac_cv_lib_intl_ngettext=no
6235 fi
6236
6237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6238       conftest$ac_exeext conftest.$ac_ext
6239 LIBS=$ac_check_lib_save_LIBS
6240 fi
6241 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6242 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
6243 if test $ac_cv_lib_intl_ngettext = yes; then
6244   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
6245 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
6246 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
6247   echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249   ac_check_lib_save_LIBS=$LIBS
6250 LIBS="-lintl  $LIBS"
6251 cat >conftest.$ac_ext <<_ACEOF
6252 /* confdefs.h.  */
6253 _ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h.  */
6257
6258 /* Override any GCC internal prototype to avoid an error.
6259    Use char because int might match the return type of a GCC
6260    builtin and then its argument prototype would still apply.  */
6261 #ifdef __cplusplus
6262 extern "C"
6263 #endif
6264 char dgettext ();
6265 int
6266 main ()
6267 {
6268 return dgettext ();
6269   ;
6270   return 0;
6271 }
6272 _ACEOF
6273 rm -f conftest.$ac_objext conftest$ac_exeext
6274 if { (ac_try="$ac_link"
6275 case "(($ac_try" in
6276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277   *) ac_try_echo=$ac_try;;
6278 esac
6279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6280   (eval "$ac_link") 2>conftest.er1
6281   ac_status=$?
6282   grep -v '^ *+' conftest.er1 >conftest.err
6283   rm -f conftest.er1
6284   cat conftest.err >&5
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } && {
6287          test -z "$ac_c_werror_flag" ||
6288          test ! -s conftest.err
6289        } && test -s conftest$ac_exeext &&
6290        $as_test_x conftest$ac_exeext; then
6291   ac_cv_lib_intl_dgettext=yes
6292 else
6293   echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6295
6296         ac_cv_lib_intl_dgettext=no
6297 fi
6298
6299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6300       conftest$ac_exeext conftest.$ac_ext
6301 LIBS=$ac_check_lib_save_LIBS
6302 fi
6303 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
6304 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
6305 if test $ac_cv_lib_intl_dgettext = yes; then
6306   gt_cv_func_dgettext_libintl=yes
6307 fi
6308
6309 fi
6310
6311 fi
6312
6313
6314         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
6315           { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
6316 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
6317           { echo "$as_me:$LINENO: result: " >&5
6318 echo "${ECHO_T}" >&6; }
6319           { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6320 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6321 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6322   echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324   ac_check_lib_save_LIBS=$LIBS
6325 LIBS="-lintl -liconv $LIBS"
6326 cat >conftest.$ac_ext <<_ACEOF
6327 /* confdefs.h.  */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h.  */
6332
6333 /* Override any GCC internal prototype to avoid an error.
6334    Use char because int might match the return type of a GCC
6335    builtin and then its argument prototype would still apply.  */
6336 #ifdef __cplusplus
6337 extern "C"
6338 #endif
6339 char ngettext ();
6340 int
6341 main ()
6342 {
6343 return ngettext ();
6344   ;
6345   return 0;
6346 }
6347 _ACEOF
6348 rm -f conftest.$ac_objext conftest$ac_exeext
6349 if { (ac_try="$ac_link"
6350 case "(($ac_try" in
6351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352   *) ac_try_echo=$ac_try;;
6353 esac
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355   (eval "$ac_link") 2>conftest.er1
6356   ac_status=$?
6357   grep -v '^ *+' conftest.er1 >conftest.err
6358   rm -f conftest.er1
6359   cat conftest.err >&5
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); } && {
6362          test -z "$ac_c_werror_flag" ||
6363          test ! -s conftest.err
6364        } && test -s conftest$ac_exeext &&
6365        $as_test_x conftest$ac_exeext; then
6366   ac_cv_lib_intl_ngettext=yes
6367 else
6368   echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6370
6371         ac_cv_lib_intl_ngettext=no
6372 fi
6373
6374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6375       conftest$ac_exeext conftest.$ac_ext
6376 LIBS=$ac_check_lib_save_LIBS
6377 fi
6378 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6379 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
6380 if test $ac_cv_lib_intl_ngettext = yes; then
6381   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
6382 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
6383 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
6384   echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386   ac_check_lib_save_LIBS=$LIBS
6387 LIBS="-lintl -liconv $LIBS"
6388 cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h.  */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h.  */
6394
6395 /* Override any GCC internal prototype to avoid an error.
6396    Use char because int might match the return type of a GCC
6397    builtin and then its argument prototype would still apply.  */
6398 #ifdef __cplusplus
6399 extern "C"
6400 #endif
6401 char dcgettext ();
6402 int
6403 main ()
6404 {
6405 return dcgettext ();
6406   ;
6407   return 0;
6408 }
6409 _ACEOF
6410 rm -f conftest.$ac_objext conftest$ac_exeext
6411 if { (ac_try="$ac_link"
6412 case "(($ac_try" in
6413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414   *) ac_try_echo=$ac_try;;
6415 esac
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417   (eval "$ac_link") 2>conftest.er1
6418   ac_status=$?
6419   grep -v '^ *+' conftest.er1 >conftest.err
6420   rm -f conftest.er1
6421   cat conftest.err >&5
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); } && {
6424          test -z "$ac_c_werror_flag" ||
6425          test ! -s conftest.err
6426        } && test -s conftest$ac_exeext &&
6427        $as_test_x conftest$ac_exeext; then
6428   ac_cv_lib_intl_dcgettext=yes
6429 else
6430   echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6432
6433         ac_cv_lib_intl_dcgettext=no
6434 fi
6435
6436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6437       conftest$ac_exeext conftest.$ac_ext
6438 LIBS=$ac_check_lib_save_LIBS
6439 fi
6440 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
6441 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
6442 if test $ac_cv_lib_intl_dcgettext = yes; then
6443   gt_cv_func_dgettext_libintl=yes
6444                         libintl_extra_libs=-liconv
6445 else
6446   :
6447 fi
6448
6449 else
6450   :
6451 fi
6452
6453         fi
6454
6455         #
6456         # If we found libintl, then check in it for bind_textdomain_codeset();
6457         # we'll prefer libc if neither have bind_textdomain_codeset(),
6458         # and both have dgettext and ngettext
6459         #
6460         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
6461           glib_save_LIBS="$LIBS"
6462           LIBS="$LIBS -lintl $libintl_extra_libs"
6463           unset ac_cv_func_bind_textdomain_codeset
6464
6465 for ac_func in bind_textdomain_codeset
6466 do
6467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6471   echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473   cat >conftest.$ac_ext <<_ACEOF
6474 /* confdefs.h.  */
6475 _ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h.  */
6479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6480    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6481 #define $ac_func innocuous_$ac_func
6482
6483 /* System header to define __stub macros and hopefully few prototypes,
6484     which can conflict with char $ac_func (); below.
6485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6486     <limits.h> exists even on freestanding compilers.  */
6487
6488 #ifdef __STDC__
6489 # include <limits.h>
6490 #else
6491 # include <assert.h>
6492 #endif
6493
6494 #undef $ac_func
6495
6496 /* Override any GCC internal prototype to avoid an error.
6497    Use char because int might match the return type of a GCC
6498    builtin and then its argument prototype would still apply.  */
6499 #ifdef __cplusplus
6500 extern "C"
6501 #endif
6502 char $ac_func ();
6503 /* The GNU C library defines this for functions which it implements
6504     to always fail with ENOSYS.  Some functions are actually named
6505     something starting with __ and the normal name is an alias.  */
6506 #if defined __stub_$ac_func || defined __stub___$ac_func
6507 choke me
6508 #endif
6509
6510 int
6511 main ()
6512 {
6513 return $ac_func ();
6514   ;
6515   return 0;
6516 }
6517 _ACEOF
6518 rm -f conftest.$ac_objext conftest$ac_exeext
6519 if { (ac_try="$ac_link"
6520 case "(($ac_try" in
6521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522   *) ac_try_echo=$ac_try;;
6523 esac
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525   (eval "$ac_link") 2>conftest.er1
6526   ac_status=$?
6527   grep -v '^ *+' conftest.er1 >conftest.err
6528   rm -f conftest.er1
6529   cat conftest.err >&5
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); } && {
6532          test -z "$ac_c_werror_flag" ||
6533          test ! -s conftest.err
6534        } && test -s conftest$ac_exeext &&
6535        $as_test_x conftest$ac_exeext; then
6536   eval "$as_ac_var=yes"
6537 else
6538   echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6540
6541         eval "$as_ac_var=no"
6542 fi
6543
6544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6545       conftest$ac_exeext conftest.$ac_ext
6546 fi
6547 ac_res=`eval echo '${'$as_ac_var'}'`
6548                { echo "$as_me:$LINENO: result: $ac_res" >&5
6549 echo "${ECHO_T}$ac_res" >&6; }
6550 if test `eval echo '${'$as_ac_var'}'` = yes; then
6551   cat >>confdefs.h <<_ACEOF
6552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6553 _ACEOF
6554
6555 fi
6556 done
6557
6558           LIBS="$glib_save_LIBS"
6559
6560           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
6561             gt_cv_func_dgettext_libc=no
6562           else
6563             if test "$gt_cv_func_dgettext_libc" = "yes" \
6564                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
6565               gt_cv_func_dgettext_libintl=no
6566             fi
6567           fi
6568         fi
6569       fi
6570
6571       if test "$gt_cv_func_dgettext_libc" = "yes" \
6572         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
6573         gt_cv_have_gettext=yes
6574       fi
6575
6576       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
6577         INTLLIBS="-lintl $libintl_extra_libs"
6578       fi
6579
6580       if test "$gt_cv_have_gettext" = "yes"; then
6581
6582 cat >>confdefs.h <<\_ACEOF
6583 #define HAVE_GETTEXT 1
6584 _ACEOF
6585
6586         # Extract the first word of "msgfmt", so it can be a program name with args.
6587 set dummy msgfmt; ac_word=$2
6588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6590 if test "${ac_cv_path_MSGFMT+set}" = set; then
6591   echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593   case "$MSGFMT" in
6594   /*)
6595   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6596   ;;
6597   *)
6598   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6599   for ac_dir in $PATH; do
6600     test -z "$ac_dir" && ac_dir=.
6601     if test -f $ac_dir/$ac_word; then
6602       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6603         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6604         break
6605       fi
6606     fi
6607   done
6608   IFS="$ac_save_ifs"
6609   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
6610   ;;
6611 esac
6612 fi
6613 MSGFMT="$ac_cv_path_MSGFMT"
6614 if test "$MSGFMT" != "no"; then
6615   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
6616 echo "${ECHO_T}$MSGFMT" >&6; }
6617 else
6618   { echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6; }
6620 fi
6621         if test "$MSGFMT" != "no"; then
6622           glib_save_LIBS="$LIBS"
6623           LIBS="$LIBS $INTLLIBS"
6624
6625 for ac_func in dcgettext
6626 do
6627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6631   echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633   cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h.  */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h.  */
6639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6640    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6641 #define $ac_func innocuous_$ac_func
6642
6643 /* System header to define __stub macros and hopefully few prototypes,
6644     which can conflict with char $ac_func (); below.
6645     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6646     <limits.h> exists even on freestanding compilers.  */
6647
6648 #ifdef __STDC__
6649 # include <limits.h>
6650 #else
6651 # include <assert.h>
6652 #endif
6653
6654 #undef $ac_func
6655
6656 /* Override any GCC internal prototype to avoid an error.
6657    Use char because int might match the return type of a GCC
6658    builtin and then its argument prototype would still apply.  */
6659 #ifdef __cplusplus
6660 extern "C"
6661 #endif
6662 char $ac_func ();
6663 /* The GNU C library defines this for functions which it implements
6664     to always fail with ENOSYS.  Some functions are actually named
6665     something starting with __ and the normal name is an alias.  */
6666 #if defined __stub_$ac_func || defined __stub___$ac_func
6667 choke me
6668 #endif
6669
6670 int
6671 main ()
6672 {
6673 return $ac_func ();
6674   ;
6675   return 0;
6676 }
6677 _ACEOF
6678 rm -f conftest.$ac_objext conftest$ac_exeext
6679 if { (ac_try="$ac_link"
6680 case "(($ac_try" in
6681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6682   *) ac_try_echo=$ac_try;;
6683 esac
6684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6685   (eval "$ac_link") 2>conftest.er1
6686   ac_status=$?
6687   grep -v '^ *+' conftest.er1 >conftest.err
6688   rm -f conftest.er1
6689   cat conftest.err >&5
6690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691   (exit $ac_status); } && {
6692          test -z "$ac_c_werror_flag" ||
6693          test ! -s conftest.err
6694        } && test -s conftest$ac_exeext &&
6695        $as_test_x conftest$ac_exeext; then
6696   eval "$as_ac_var=yes"
6697 else
6698   echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6700
6701         eval "$as_ac_var=no"
6702 fi
6703
6704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6705       conftest$ac_exeext conftest.$ac_ext
6706 fi
6707 ac_res=`eval echo '${'$as_ac_var'}'`
6708                { echo "$as_me:$LINENO: result: $ac_res" >&5
6709 echo "${ECHO_T}$ac_res" >&6; }
6710 if test `eval echo '${'$as_ac_var'}'` = yes; then
6711   cat >>confdefs.h <<_ACEOF
6712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6713 _ACEOF
6714
6715 fi
6716 done
6717
6718           MSGFMT_OPTS=
6719           { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
6720 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
6721           cat >conftest.foo <<_ACEOF
6722
6723 msgid ""
6724 msgstr ""
6725 "Content-Type: text/plain; charset=UTF-8\n"
6726 "Project-Id-Version: test 1.0\n"
6727 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
6728 "Last-Translator: test <foo@bar.xx>\n"
6729 "Language-Team: C <LL@li.org>\n"
6730 "MIME-Version: 1.0\n"
6731 "Content-Transfer-Encoding: 8bit\n"
6732
6733 _ACEOF
6734 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
6735   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
6736   ac_status=$?
6737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); }; then
6739   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
6740 echo "${ECHO_T}yes" >&6; }
6741 else { echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6; }
6743 echo "$as_me: failed input was:" >&5
6744 sed 's/^/| /' conftest.foo >&5
6745 fi
6746
6747           # Extract the first word of "gmsgfmt", so it can be a program name with args.
6748 set dummy gmsgfmt; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6752   echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754   case $GMSGFMT in
6755   [\\/]* | ?:[\\/]*)
6756   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6757   ;;
6758   *)
6759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6761 do
6762   IFS=$as_save_IFS
6763   test -z "$as_dir" && as_dir=.
6764   for ac_exec_ext in '' $ac_executable_extensions; do
6765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6766     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768     break 2
6769   fi
6770 done
6771 done
6772 IFS=$as_save_IFS
6773
6774   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6775   ;;
6776 esac
6777 fi
6778 GMSGFMT=$ac_cv_path_GMSGFMT
6779 if test -n "$GMSGFMT"; then
6780   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6781 echo "${ECHO_T}$GMSGFMT" >&6; }
6782 else
6783   { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6785 fi
6786
6787
6788           # Extract the first word of "xgettext", so it can be a program name with args.
6789 set dummy xgettext; ac_word=$2
6790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6793   echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795   case "$XGETTEXT" in
6796   /*)
6797   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6798   ;;
6799   *)
6800   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6801   for ac_dir in $PATH; do
6802     test -z "$ac_dir" && ac_dir=.
6803     if test -f $ac_dir/$ac_word; then
6804       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
6805         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
6806         break
6807       fi
6808     fi
6809   done
6810   IFS="$ac_save_ifs"
6811   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6812   ;;
6813 esac
6814 fi
6815 XGETTEXT="$ac_cv_path_XGETTEXT"
6816 if test "$XGETTEXT" != ":"; then
6817   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6818 echo "${ECHO_T}$XGETTEXT" >&6; }
6819 else
6820   { echo "$as_me:$LINENO: result: no" >&5
6821 echo "${ECHO_T}no" >&6; }
6822 fi
6823
6824           cat >conftest.$ac_ext <<_ACEOF
6825 /* confdefs.h.  */
6826 _ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h.  */
6830
6831 int
6832 main ()
6833 {
6834 extern int _nl_msg_cat_cntr;
6835                          return _nl_msg_cat_cntr
6836   ;
6837   return 0;
6838 }
6839 _ACEOF
6840 rm -f conftest.$ac_objext conftest$ac_exeext
6841 if { (ac_try="$ac_link"
6842 case "(($ac_try" in
6843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844   *) ac_try_echo=$ac_try;;
6845 esac
6846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847   (eval "$ac_link") 2>conftest.er1
6848   ac_status=$?
6849   grep -v '^ *+' conftest.er1 >conftest.err
6850   rm -f conftest.er1
6851   cat conftest.err >&5
6852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853   (exit $ac_status); } && {
6854          test -z "$ac_c_werror_flag" ||
6855          test ! -s conftest.err
6856        } && test -s conftest$ac_exeext &&
6857        $as_test_x conftest$ac_exeext; then
6858   CATOBJEXT=.gmo
6859              DATADIRNAME=share
6860 else
6861   echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.$ac_ext >&5
6863
6864         case $host in
6865             *-*-solaris*)
6866                                                                 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
6867 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
6868 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
6869   echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871   cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h.  */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h.  */
6877 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
6878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6879 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
6880
6881 /* System header to define __stub macros and hopefully few prototypes,
6882     which can conflict with char bind_textdomain_codeset (); below.
6883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6884     <limits.h> exists even on freestanding compilers.  */
6885
6886 #ifdef __STDC__
6887 # include <limits.h>
6888 #else
6889 # include <assert.h>
6890 #endif
6891
6892 #undef bind_textdomain_codeset
6893
6894 /* Override any GCC internal prototype to avoid an error.
6895    Use char because int might match the return type of a GCC
6896    builtin and then its argument prototype would still apply.  */
6897 #ifdef __cplusplus
6898 extern "C"
6899 #endif
6900 char bind_textdomain_codeset ();
6901 /* The GNU C library defines this for functions which it implements
6902     to always fail with ENOSYS.  Some functions are actually named
6903     something starting with __ and the normal name is an alias.  */
6904 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
6905 choke me
6906 #endif
6907
6908 int
6909 main ()
6910 {
6911 return bind_textdomain_codeset ();
6912   ;
6913   return 0;
6914 }
6915 _ACEOF
6916 rm -f conftest.$ac_objext conftest$ac_exeext
6917 if { (ac_try="$ac_link"
6918 case "(($ac_try" in
6919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6920   *) ac_try_echo=$ac_try;;
6921 esac
6922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6923   (eval "$ac_link") 2>conftest.er1
6924   ac_status=$?
6925   grep -v '^ *+' conftest.er1 >conftest.err
6926   rm -f conftest.er1
6927   cat conftest.err >&5
6928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929   (exit $ac_status); } && {
6930          test -z "$ac_c_werror_flag" ||
6931          test ! -s conftest.err
6932        } && test -s conftest$ac_exeext &&
6933        $as_test_x conftest$ac_exeext; then
6934   ac_cv_func_bind_textdomain_codeset=yes
6935 else
6936   echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6938
6939         ac_cv_func_bind_textdomain_codeset=no
6940 fi
6941
6942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6943       conftest$ac_exeext conftest.$ac_ext
6944 fi
6945 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
6946 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
6947 if test $ac_cv_func_bind_textdomain_codeset = yes; then
6948   CATOBJEXT=.gmo
6949                DATADIRNAME=share
6950 else
6951   CATOBJEXT=.mo
6952                DATADIRNAME=lib
6953 fi
6954
6955             ;;
6956             *)
6957             CATOBJEXT=.mo
6958             DATADIRNAME=lib
6959             ;;
6960             esac
6961 fi
6962
6963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6964       conftest$ac_exeext conftest.$ac_ext
6965           LIBS="$glib_save_LIBS"
6966           INSTOBJEXT=.mo
6967         else
6968           gt_cv_have_gettext=no
6969         fi
6970       fi
6971
6972 fi
6973
6974
6975
6976     if test "$gt_cv_have_gettext" = "yes" ; then
6977
6978 cat >>confdefs.h <<\_ACEOF
6979 #define ENABLE_NLS 1
6980 _ACEOF
6981
6982     fi
6983
6984         if test "$XGETTEXT" != ":"; then
6985                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
6986         : ;
6987       else
6988         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6989 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6990         XGETTEXT=":"
6991       fi
6992     fi
6993
6994     # We need to process the po/ directory.
6995     POSUB=po
6996
6997     ac_config_commands="$ac_config_commands default-1"
6998
6999
7000                 for lang in $ALL_LINGUAS; do
7001       GMOFILES="$GMOFILES $lang.gmo"
7002       POFILES="$POFILES $lang.po"
7003     done
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017    if test "$gt_cv_have_gettext" = "yes"; then
7018      if test "x$ALL_LINGUAS" = "x"; then
7019        LINGUAS=
7020      else
7021        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7022 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
7023        NEW_LINGUAS=
7024        for presentlang in $ALL_LINGUAS; do
7025          useit=no
7026          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
7027            desiredlanguages="$LINGUAS"
7028          else
7029            desiredlanguages="$ALL_LINGUAS"
7030          fi
7031          for desiredlang in $desiredlanguages; do
7032            # Use the presentlang catalog if desiredlang is
7033            #   a. equal to presentlang, or
7034            #   b. a variant of presentlang (because in this case,
7035            #      presentlang can be used as a fallback for messages
7036            #      which are not translated in the desiredlang catalog).
7037            case "$desiredlang" in
7038              "$presentlang"*) useit=yes;;
7039            esac
7040          done
7041          if test $useit = yes; then
7042            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7043          fi
7044        done
7045        LINGUAS=$NEW_LINGUAS
7046        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
7047 echo "${ECHO_T}$LINGUAS" >&6; }
7048      fi
7049
7050           if test -n "$LINGUAS"; then
7051        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7052      fi
7053    fi
7054
7055             MKINSTALLDIRS=
7056    if test -n "$ac_aux_dir"; then
7057      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7058    fi
7059    if test -z "$MKINSTALLDIRS"; then
7060      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7061    fi
7062
7063
7064          test -d po || mkdir po
7065    if test "x$srcdir" != "x."; then
7066      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7067        posrcprefix="$srcdir/"
7068      else
7069        posrcprefix="../$srcdir/"
7070      fi
7071    else
7072      posrcprefix="../"
7073    fi
7074    rm -f po/POTFILES
7075    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7076         < $srcdir/po/POTFILES.in > po/POTFILES
7077
7078
7079   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7080 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
7081     # Check whether --enable-nls was given.
7082 if test "${enable_nls+set}" = set; then
7083   enableval=$enable_nls; USE_NLS=$enableval
7084 else
7085   USE_NLS=yes
7086 fi
7087
7088   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7089 echo "${ECHO_T}$USE_NLS" >&6; }
7090
7091
7092
7093
7094 case "$am__api_version" in
7095     1.01234)
7096         { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
7097 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
7098    { (exit 1); exit 1; }; }
7099     ;;
7100     *)
7101     ;;
7102 esac
7103
7104 if test -n "0.35.0"; then
7105     { echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5
7106 echo $ECHO_N "checking for intltool >= 0.35.0... $ECHO_C" >&6; }
7107
7108     INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
7109     INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
7110     INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
7111
7112     { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
7113 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
7114     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
7115         { { echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&5
7116 echo "$as_me: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&2;}
7117    { (exit 1); exit 1; }; }
7118 fi
7119
7120 # Extract the first word of "intltool-update", so it can be a program name with args.
7121 set dummy intltool-update; ac_word=$2
7122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
7125   echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127   case $INTLTOOL_UPDATE in
7128   [\\/]* | ?:[\\/]*)
7129   ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
7130   ;;
7131   *)
7132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135   IFS=$as_save_IFS
7136   test -z "$as_dir" && as_dir=.
7137   for ac_exec_ext in '' $ac_executable_extensions; do
7138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139     ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
7140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141     break 2
7142   fi
7143 done
7144 done
7145 IFS=$as_save_IFS
7146
7147   ;;
7148 esac
7149 fi
7150 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
7151 if test -n "$INTLTOOL_UPDATE"; then
7152   { echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
7153 echo "${ECHO_T}$INTLTOOL_UPDATE" >&6; }
7154 else
7155   { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7157 fi
7158
7159
7160 # Extract the first word of "intltool-merge", so it can be a program name with args.
7161 set dummy intltool-merge; ac_word=$2
7162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
7165   echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167   case $INTLTOOL_MERGE in
7168   [\\/]* | ?:[\\/]*)
7169   ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
7170   ;;
7171   *)
7172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177   for ac_exec_ext in '' $ac_executable_extensions; do
7178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7179     ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
7180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181     break 2
7182   fi
7183 done
7184 done
7185 IFS=$as_save_IFS
7186
7187   ;;
7188 esac
7189 fi
7190 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
7191 if test -n "$INTLTOOL_MERGE"; then
7192   { echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
7193 echo "${ECHO_T}$INTLTOOL_MERGE" >&6; }
7194 else
7195   { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7197 fi
7198
7199
7200 # Extract the first word of "intltool-extract", so it can be a program name with args.
7201 set dummy intltool-extract; ac_word=$2
7202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
7205   echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207   case $INTLTOOL_EXTRACT in
7208   [\\/]* | ?:[\\/]*)
7209   ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
7210   ;;
7211   *)
7212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217   for ac_exec_ext in '' $ac_executable_extensions; do
7218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219     ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
7220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221     break 2
7222   fi
7223 done
7224 done
7225 IFS=$as_save_IFS
7226
7227   ;;
7228 esac
7229 fi
7230 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
7231 if test -n "$INTLTOOL_EXTRACT"; then
7232   { echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
7233 echo "${ECHO_T}$INTLTOOL_EXTRACT" >&6; }
7234 else
7235   { echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6; }
7237 fi
7238
7239
7240 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
7241     { { echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
7242 echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
7243    { (exit 1); exit 1; }; }
7244 fi
7245
7246   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7247 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7248      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7249      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7250       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
7251      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7252    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7253     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7254 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7255        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7256       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7257       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
7258       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7259       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7260     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7261   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7262     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7263     INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7264    INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286 # Check the gettext tools to make sure they are GNU
7287 # Extract the first word of "xgettext", so it can be a program name with args.
7288 set dummy xgettext; ac_word=$2
7289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7291 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7292   echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294   case $XGETTEXT in
7295   [\\/]* | ?:[\\/]*)
7296   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7297   ;;
7298   *)
7299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304   for ac_exec_ext in '' $ac_executable_extensions; do
7305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7306     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
7307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311 done
7312 IFS=$as_save_IFS
7313
7314   ;;
7315 esac
7316 fi
7317 XGETTEXT=$ac_cv_path_XGETTEXT
7318 if test -n "$XGETTEXT"; then
7319   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7320 echo "${ECHO_T}$XGETTEXT" >&6; }
7321 else
7322   { echo "$as_me:$LINENO: result: no" >&5
7323 echo "${ECHO_T}no" >&6; }
7324 fi
7325
7326
7327 # Extract the first word of "msgmerge", so it can be a program name with args.
7328 set dummy msgmerge; ac_word=$2
7329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7331 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7332   echo $ECHO_N "(cached) $ECHO_C" >&6
7333 else
7334   case $MSGMERGE in
7335   [\\/]* | ?:[\\/]*)
7336   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7337   ;;
7338   *)
7339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 for as_dir in $PATH
7341 do
7342   IFS=$as_save_IFS
7343   test -z "$as_dir" && as_dir=.
7344   for ac_exec_ext in '' $ac_executable_extensions; do
7345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7346     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
7347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348     break 2
7349   fi
7350 done
7351 done
7352 IFS=$as_save_IFS
7353
7354   ;;
7355 esac
7356 fi
7357 MSGMERGE=$ac_cv_path_MSGMERGE
7358 if test -n "$MSGMERGE"; then
7359   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7360 echo "${ECHO_T}$MSGMERGE" >&6; }
7361 else
7362   { echo "$as_me:$LINENO: result: no" >&5
7363 echo "${ECHO_T}no" >&6; }
7364 fi
7365
7366
7367 # Extract the first word of "msgfmt", so it can be a program name with args.
7368 set dummy msgfmt; ac_word=$2
7369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7371 if test "${ac_cv_path_MSGFMT+set}" = set; then
7372   echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374   case $MSGFMT in
7375   [\\/]* | ?:[\\/]*)
7376   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7377   ;;
7378   *)
7379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7381 do
7382   IFS=$as_save_IFS
7383   test -z "$as_dir" && as_dir=.
7384   for ac_exec_ext in '' $ac_executable_extensions; do
7385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7386     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7388     break 2
7389   fi
7390 done
7391 done
7392 IFS=$as_save_IFS
7393
7394   ;;
7395 esac
7396 fi
7397 MSGFMT=$ac_cv_path_MSGFMT
7398 if test -n "$MSGFMT"; then
7399   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7400 echo "${ECHO_T}$MSGFMT" >&6; }
7401 else
7402   { echo "$as_me:$LINENO: result: no" >&5
7403 echo "${ECHO_T}no" >&6; }
7404 fi
7405
7406
7407 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7408 set dummy gmsgfmt; ac_word=$2
7409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7411 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7412   echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414   case $GMSGFMT in
7415   [\\/]* | ?:[\\/]*)
7416   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7417   ;;
7418   *)
7419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7421 do
7422   IFS=$as_save_IFS
7423   test -z "$as_dir" && as_dir=.
7424   for ac_exec_ext in '' $ac_executable_extensions; do
7425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7428     break 2
7429   fi
7430 done
7431 done
7432 IFS=$as_save_IFS
7433
7434   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7435   ;;
7436 esac
7437 fi
7438 GMSGFMT=$ac_cv_path_GMSGFMT
7439 if test -n "$GMSGFMT"; then
7440   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7441 echo "${ECHO_T}$GMSGFMT" >&6; }
7442 else
7443   { echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6; }
7445 fi
7446
7447
7448 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
7449     { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
7450 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
7451    { (exit 1); exit 1; }; }
7452 fi
7453 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
7454 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
7455 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
7456 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
7457     { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
7458 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
7459    { (exit 1); exit 1; }; }
7460 fi
7461
7462 # Extract the first word of "perl", so it can be a program name with args.
7463 set dummy perl; ac_word=$2
7464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
7467   echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469   case $INTLTOOL_PERL in
7470   [\\/]* | ?:[\\/]*)
7471   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
7472   ;;
7473   *)
7474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477   IFS=$as_save_IFS
7478   test -z "$as_dir" && as_dir=.
7479   for ac_exec_ext in '' $ac_executable_extensions; do
7480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7481     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
7482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483     break 2
7484   fi
7485 done
7486 done
7487 IFS=$as_save_IFS
7488
7489   ;;
7490 esac
7491 fi
7492 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
7493 if test -n "$INTLTOOL_PERL"; then
7494   { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
7495 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
7496 else
7497   { echo "$as_me:$LINENO: result: no" >&5
7498 echo "${ECHO_T}no" >&6; }
7499 fi
7500
7501
7502 if test -z "$INTLTOOL_PERL"; then
7503    { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
7504 echo "$as_me: error: perl not found; required for intltool" >&2;}
7505    { (exit 1); exit 1; }; }
7506 fi
7507 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
7508    { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
7509 echo "$as_me: error: perl 5.x required for intltool" >&2;}
7510    { (exit 1); exit 1; }; }
7511 fi
7512 if test "x" != "xno-xml"; then
7513    { echo "$as_me:$LINENO: checking for XML::Parser" >&5
7514 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
7515    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
7516        { echo "$as_me:$LINENO: result: ok" >&5
7517 echo "${ECHO_T}ok" >&6; }
7518    else
7519        { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
7520 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
7521    { (exit 1); exit 1; }; }
7522    fi
7523 fi
7524
7525 # Substitute ALL_LINGUAS so we can use it in po/Makefile
7526
7527
7528 # Set DATADIRNAME correctly if it is not set yet
7529 # (copied from glib-gettext.m4)
7530 if test -z "$DATADIRNAME"; then
7531   cat >conftest.$ac_ext <<_ACEOF
7532 /* confdefs.h.  */
7533 _ACEOF
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h.  */
7537
7538 int
7539 main ()
7540 {
7541 extern int _nl_msg_cat_cntr;
7542                        return _nl_msg_cat_cntr
7543   ;
7544   return 0;
7545 }
7546 _ACEOF
7547 rm -f conftest.$ac_objext conftest$ac_exeext
7548 if { (ac_try="$ac_link"
7549 case "(($ac_try" in
7550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551   *) ac_try_echo=$ac_try;;
7552 esac
7553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7554   (eval "$ac_link") 2>conftest.er1
7555   ac_status=$?
7556   grep -v '^ *+' conftest.er1 >conftest.err
7557   rm -f conftest.er1
7558   cat conftest.err >&5
7559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); } && {
7561          test -z "$ac_c_werror_flag" ||
7562          test ! -s conftest.err
7563        } && test -s conftest$ac_exeext &&
7564        $as_test_x conftest$ac_exeext; then
7565   DATADIRNAME=share
7566 else
7567   echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7569
7570         case $host in
7571     *-*-solaris*)
7572                         { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
7573 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
7574 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
7575   echo $ECHO_N "(cached) $ECHO_C" >&6
7576 else
7577   cat >conftest.$ac_ext <<_ACEOF
7578 /* confdefs.h.  */
7579 _ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h.  */
7583 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
7584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7585 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
7586
7587 /* System header to define __stub macros and hopefully few prototypes,
7588     which can conflict with char bind_textdomain_codeset (); below.
7589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7590     <limits.h> exists even on freestanding compilers.  */
7591
7592 #ifdef __STDC__
7593 # include <limits.h>
7594 #else
7595 # include <assert.h>
7596 #endif
7597
7598 #undef bind_textdomain_codeset
7599
7600 /* Override any GCC internal prototype to avoid an error.
7601    Use char because int might match the return type of a GCC
7602    builtin and then its argument prototype would still apply.  */
7603 #ifdef __cplusplus
7604 extern "C"
7605 #endif
7606 char bind_textdomain_codeset ();
7607 /* The GNU C library defines this for functions which it implements
7608     to always fail with ENOSYS.  Some functions are actually named
7609     something starting with __ and the normal name is an alias.  */
7610 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
7611 choke me
7612 #endif
7613
7614 int
7615 main ()
7616 {
7617 return bind_textdomain_codeset ();
7618   ;
7619   return 0;
7620 }
7621 _ACEOF
7622 rm -f conftest.$ac_objext conftest$ac_exeext
7623 if { (ac_try="$ac_link"
7624 case "(($ac_try" in
7625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626   *) ac_try_echo=$ac_try;;
7627 esac
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629   (eval "$ac_link") 2>conftest.er1
7630   ac_status=$?
7631   grep -v '^ *+' conftest.er1 >conftest.err
7632   rm -f conftest.er1
7633   cat conftest.err >&5
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); } && {
7636          test -z "$ac_c_werror_flag" ||
7637          test ! -s conftest.err
7638        } && test -s conftest$ac_exeext &&
7639        $as_test_x conftest$ac_exeext; then
7640   ac_cv_func_bind_textdomain_codeset=yes
7641 else
7642   echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7644
7645         ac_cv_func_bind_textdomain_codeset=no
7646 fi
7647
7648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7649       conftest$ac_exeext conftest.$ac_ext
7650 fi
7651 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
7652 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
7653 if test $ac_cv_func_bind_textdomain_codeset = yes; then
7654   DATADIRNAME=share
7655 else
7656   DATADIRNAME=lib
7657 fi
7658
7659     ;;
7660     *)
7661     DATADIRNAME=lib
7662     ;;
7663     esac
7664 fi
7665
7666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7667       conftest$ac_exeext conftest.$ac_ext
7668 fi
7669
7670
7671
7672
7673
7674
7675
7676
7677 case `pwd` in
7678   *\ * | *\     *)
7679     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7680 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7681 esac
7682
7683
7684
7685 macro_version='2.2.4'
7686 macro_revision='1.2976'
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700 ltmain="$ac_aux_dir/ltmain.sh"
7701
7702 # Make sure we can run config.sub.
7703 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7704   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
7705 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
7706    { (exit 1); exit 1; }; }
7707
7708 { echo "$as_me:$LINENO: checking build system type" >&5
7709 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
7710 if test "${ac_cv_build+set}" = set; then
7711   echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713   ac_build_alias=$build_alias
7714 test "x$ac_build_alias" = x &&
7715   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7716 test "x$ac_build_alias" = x &&
7717   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7718 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7719    { (exit 1); exit 1; }; }
7720 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7721   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
7722 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
7723    { (exit 1); exit 1; }; }
7724
7725 fi
7726 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7727 echo "${ECHO_T}$ac_cv_build" >&6; }
7728 case $ac_cv_build in
7729 *-*-*) ;;
7730 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
7731 echo "$as_me: error: invalid value of canonical build" >&2;}
7732    { (exit 1); exit 1; }; };;
7733 esac
7734 build=$ac_cv_build
7735 ac_save_IFS=$IFS; IFS='-'
7736 set x $ac_cv_build
7737 shift
7738 build_cpu=$1
7739 build_vendor=$2
7740 shift; shift
7741 # Remember, the first character of IFS is used to create $*,
7742 # except with old shells:
7743 build_os=$*
7744 IFS=$ac_save_IFS
7745 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7746
7747
7748 { echo "$as_me:$LINENO: checking host system type" >&5
7749 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
7750 if test "${ac_cv_host+set}" = set; then
7751   echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753   if test "x$host_alias" = x; then
7754   ac_cv_host=$ac_cv_build
7755 else
7756   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7757     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
7758 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
7759    { (exit 1); exit 1; }; }
7760 fi
7761
7762 fi
7763 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7764 echo "${ECHO_T}$ac_cv_host" >&6; }
7765 case $ac_cv_host in
7766 *-*-*) ;;
7767 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
7768 echo "$as_me: error: invalid value of canonical host" >&2;}
7769    { (exit 1); exit 1; }; };;
7770 esac
7771 host=$ac_cv_host
7772 ac_save_IFS=$IFS; IFS='-'
7773 set x $ac_cv_host
7774 shift
7775 host_cpu=$1
7776 host_vendor=$2
7777 shift; shift
7778 # Remember, the first character of IFS is used to create $*,
7779 # except with old shells:
7780 host_os=$*
7781 IFS=$ac_save_IFS
7782 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7783
7784
7785 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7786 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7787 if test "${ac_cv_path_SED+set}" = set; then
7788   echo $ECHO_N "(cached) $ECHO_C" >&6
7789 else
7790             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7791      for ac_i in 1 2 3 4 5 6 7; do
7792        ac_script="$ac_script$as_nl$ac_script"
7793      done
7794      echo "$ac_script" | sed 99q >conftest.sed
7795      $as_unset ac_script || ac_script=
7796      # Extract the first word of "sed gsed" to use in msg output
7797 if test -z "$SED"; then
7798 set dummy sed gsed; ac_prog_name=$2
7799 if test "${ac_cv_path_SED+set}" = set; then
7800   echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802   ac_path_SED_found=false
7803 # Loop through the user's path and test for each of PROGNAME-LIST
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7806 do
7807   IFS=$as_save_IFS
7808   test -z "$as_dir" && as_dir=.
7809   for ac_prog in sed gsed; do
7810   for ac_exec_ext in '' $ac_executable_extensions; do
7811     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7812     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7813     # Check for GNU ac_path_SED and select it if it is found.
7814   # Check for GNU $ac_path_SED
7815 case `"$ac_path_SED" --version 2>&1` in
7816 *GNU*)
7817   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7818 *)
7819   ac_count=0
7820   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7821   while :
7822   do
7823     cat "conftest.in" "conftest.in" >"conftest.tmp"
7824     mv "conftest.tmp" "conftest.in"
7825     cp "conftest.in" "conftest.nl"
7826     echo '' >> "conftest.nl"
7827     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7828     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7829     ac_count=`expr $ac_count + 1`
7830     if test $ac_count -gt ${ac_path_SED_max-0}; then
7831       # Best one so far, save it but keep looking for a better one
7832       ac_cv_path_SED="$ac_path_SED"
7833       ac_path_SED_max=$ac_count
7834     fi
7835     # 10*(2^10) chars as input seems more than enough
7836     test $ac_count -gt 10 && break
7837   done
7838   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7839 esac
7840
7841
7842     $ac_path_SED_found && break 3
7843   done
7844 done
7845
7846 done
7847 IFS=$as_save_IFS
7848
7849
7850 fi
7851
7852 SED="$ac_cv_path_SED"
7853 if test -z "$SED"; then
7854   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
7855 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
7856    { (exit 1); exit 1; }; }
7857 fi
7858
7859 else
7860   ac_cv_path_SED=$SED
7861 fi
7862
7863 fi
7864 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7865 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
7866  SED="$ac_cv_path_SED"
7867   rm -f conftest.sed
7868
7869 test -z "$SED" && SED=sed
7870 Xsed="$SED -e 1s/^X//"
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882 { echo "$as_me:$LINENO: checking for fgrep" >&5
7883 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
7884 if test "${ac_cv_path_FGREP+set}" = set; then
7885   echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7888    then ac_cv_path_FGREP="$GREP -F"
7889    else
7890      # Extract the first word of "fgrep" to use in msg output
7891 if test -z "$FGREP"; then
7892 set dummy fgrep; ac_prog_name=$2
7893 if test "${ac_cv_path_FGREP+set}" = set; then
7894   echo $ECHO_N "(cached) $ECHO_C" >&6
7895 else
7896   ac_path_FGREP_found=false
7897 # Loop through the user's path and test for each of PROGNAME-LIST
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7900 do
7901   IFS=$as_save_IFS
7902   test -z "$as_dir" && as_dir=.
7903   for ac_prog in fgrep; do
7904   for ac_exec_ext in '' $ac_executable_extensions; do
7905     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7906     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7907     # Check for GNU ac_path_FGREP and select it if it is found.
7908   # Check for GNU $ac_path_FGREP
7909 case `"$ac_path_FGREP" --version 2>&1` in
7910 *GNU*)
7911   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7912 *)
7913   ac_count=0
7914   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7915   while :
7916   do
7917     cat "conftest.in" "conftest.in" >"conftest.tmp"
7918     mv "conftest.tmp" "conftest.in"
7919     cp "conftest.in" "conftest.nl"
7920     echo 'FGREP' >> "conftest.nl"
7921     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7922     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7923     ac_count=`expr $ac_count + 1`
7924     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7925       # Best one so far, save it but keep looking for a better one
7926       ac_cv_path_FGREP="$ac_path_FGREP"
7927       ac_path_FGREP_max=$ac_count
7928     fi
7929     # 10*(2^10) chars as input seems more than enough
7930     test $ac_count -gt 10 && break
7931   done
7932   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7933 esac
7934
7935
7936     $ac_path_FGREP_found && break 3
7937   done
7938 done
7939
7940 done
7941 IFS=$as_save_IFS
7942
7943
7944 fi
7945
7946 FGREP="$ac_cv_path_FGREP"
7947 if test -z "$FGREP"; then
7948   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7949 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7950    { (exit 1); exit 1; }; }
7951 fi
7952
7953 else
7954   ac_cv_path_FGREP=$FGREP
7955 fi
7956
7957
7958    fi
7959 fi
7960 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
7961 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
7962  FGREP="$ac_cv_path_FGREP"
7963
7964
7965 test -z "$GREP" && GREP=grep
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985 # Check whether --with-gnu-ld was given.
7986 if test "${with_gnu_ld+set}" = set; then
7987   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7988 else
7989   with_gnu_ld=no
7990 fi
7991
7992 ac_prog=ld
7993 if test "$GCC" = yes; then
7994   # Check if gcc -print-prog-name=ld gives a path.
7995   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7996 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
7997   case $host in
7998   *-*-mingw*)
7999     # gcc leaves a trailing carriage return which upsets mingw
8000     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8001   *)
8002     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8003   esac
8004   case $ac_prog in
8005     # Accept absolute paths.
8006     [\\/]* | ?:[\\/]*)
8007       re_direlt='/[^/][^/]*/\.\./'
8008       # Canonicalize the pathname of ld
8009       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8010       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8011         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8012       done
8013       test -z "$LD" && LD="$ac_prog"
8014       ;;
8015   "")
8016     # If it fails, then pretend we aren't using GCC.
8017     ac_prog=ld
8018     ;;
8019   *)
8020     # If it is relative, then search for the first ld in PATH.
8021     with_gnu_ld=unknown
8022     ;;
8023   esac
8024 elif test "$with_gnu_ld" = yes; then
8025   { echo "$as_me:$LINENO: checking for GNU ld" >&5
8026 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8027 else
8028   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8029 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8030 fi
8031 if test "${lt_cv_path_LD+set}" = set; then
8032   echo $ECHO_N "(cached) $ECHO_C" >&6
8033 else
8034   if test -z "$LD"; then
8035   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8036   for ac_dir in $PATH; do
8037     IFS="$lt_save_ifs"
8038     test -z "$ac_dir" && ac_dir=.
8039     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8040       lt_cv_path_LD="$ac_dir/$ac_prog"
8041       # Check to see if the program is GNU ld.  I'd rather use --version,
8042       # but apparently some variants of GNU ld only accept -v.
8043       # Break only if it was the GNU/non-GNU ld that we prefer.
8044       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8045       *GNU* | *'with BFD'*)
8046         test "$with_gnu_ld" != no && break
8047         ;;
8048       *)
8049         test "$with_gnu_ld" != yes && break
8050         ;;
8051       esac
8052     fi
8053   done
8054   IFS="$lt_save_ifs"
8055 else
8056   lt_cv_path_LD="$LD" # Let the user override the test with a path.
8057 fi
8058 fi
8059
8060 LD="$lt_cv_path_LD"
8061 if test -n "$LD"; then
8062   { echo "$as_me:$LINENO: result: $LD" >&5
8063 echo "${ECHO_T}$LD" >&6; }
8064 else
8065   { echo "$as_me:$LINENO: result: no" >&5
8066 echo "${ECHO_T}no" >&6; }
8067 fi
8068 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8069 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8070    { (exit 1); exit 1; }; }
8071 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8072 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8073 if test "${lt_cv_prog_gnu_ld+set}" = set; then
8074   echo $ECHO_N "(cached) $ECHO_C" >&6
8075 else
8076   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8077 case `$LD -v 2>&1 </dev/null` in
8078 *GNU* | *'with BFD'*)
8079   lt_cv_prog_gnu_ld=yes
8080   ;;
8081 *)
8082   lt_cv_prog_gnu_ld=no
8083   ;;
8084 esac
8085 fi
8086 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8087 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
8088 with_gnu_ld=$lt_cv_prog_gnu_ld
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
8099 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
8100 if test "${lt_cv_path_NM+set}" = set; then
8101   echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103   if test -n "$NM"; then
8104   # Let the user override the test.
8105   lt_cv_path_NM="$NM"
8106 else
8107   lt_nm_to_check="${ac_tool_prefix}nm"
8108   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8109     lt_nm_to_check="$lt_nm_to_check nm"
8110   fi
8111   for lt_tmp_nm in $lt_nm_to_check; do
8112     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8113     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8114       IFS="$lt_save_ifs"
8115       test -z "$ac_dir" && ac_dir=.
8116       tmp_nm="$ac_dir/$lt_tmp_nm"
8117       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8118         # Check to see if the nm accepts a BSD-compat flag.
8119         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8120         #   nm: unknown option "B" ignored
8121         # Tru64's nm complains that /dev/null is an invalid object file
8122         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8123         */dev/null* | *'Invalid file or object type'*)
8124           lt_cv_path_NM="$tmp_nm -B"
8125           break
8126           ;;
8127         *)
8128           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8129           */dev/null*)
8130             lt_cv_path_NM="$tmp_nm -p"
8131             break
8132             ;;
8133           *)
8134             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8135             continue # so that we can try to find one that supports BSD flags
8136             ;;
8137           esac
8138           ;;
8139         esac
8140       fi
8141     done
8142     IFS="$lt_save_ifs"
8143   done
8144   : ${lt_cv_path_NM=no}
8145 fi
8146 fi
8147 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
8148 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
8149 if test "$lt_cv_path_NM" != "no"; then
8150   NM="$lt_cv_path_NM"
8151 else
8152   # Didn't find any BSD compatible name lister, look for dumpbin.
8153   if test -n "$ac_tool_prefix"; then
8154   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8155   do
8156     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8160 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
8161   echo $ECHO_N "(cached) $ECHO_C" >&6
8162 else
8163   if test -n "$DUMPBIN"; then
8164   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8165 else
8166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167 for as_dir in $PATH
8168 do
8169   IFS=$as_save_IFS
8170   test -z "$as_dir" && as_dir=.
8171   for ac_exec_ext in '' $ac_executable_extensions; do
8172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8173     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8175     break 2
8176   fi
8177 done
8178 done
8179 IFS=$as_save_IFS
8180
8181 fi
8182 fi
8183 DUMPBIN=$ac_cv_prog_DUMPBIN
8184 if test -n "$DUMPBIN"; then
8185   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
8186 echo "${ECHO_T}$DUMPBIN" >&6; }
8187 else
8188   { echo "$as_me:$LINENO: result: no" >&5
8189 echo "${ECHO_T}no" >&6; }
8190 fi
8191
8192
8193     test -n "$DUMPBIN" && break
8194   done
8195 fi
8196 if test -z "$DUMPBIN"; then
8197   ac_ct_DUMPBIN=$DUMPBIN
8198   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8199 do
8200   # Extract the first word of "$ac_prog", so it can be a program name with args.
8201 set dummy $ac_prog; ac_word=$2
8202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8204 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
8205   echo $ECHO_N "(cached) $ECHO_C" >&6
8206 else
8207   if test -n "$ac_ct_DUMPBIN"; then
8208   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8209 else
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 for as_dir in $PATH
8212 do
8213   IFS=$as_save_IFS
8214   test -z "$as_dir" && as_dir=.
8215   for ac_exec_ext in '' $ac_executable_extensions; do
8216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8217     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8219     break 2
8220   fi
8221 done
8222 done
8223 IFS=$as_save_IFS
8224
8225 fi
8226 fi
8227 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8228 if test -n "$ac_ct_DUMPBIN"; then
8229   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
8230 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
8231 else
8232   { echo "$as_me:$LINENO: result: no" >&5
8233 echo "${ECHO_T}no" >&6; }
8234 fi
8235
8236
8237   test -n "$ac_ct_DUMPBIN" && break
8238 done
8239
8240   if test "x$ac_ct_DUMPBIN" = x; then
8241     DUMPBIN=":"
8242   else
8243     case $cross_compiling:$ac_tool_warned in
8244 yes:)
8245 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8246 whose name does not start with the host triplet.  If you think this
8247 configuration is useful to you, please write to autoconf@gnu.org." >&5
8248 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8249 whose name does not start with the host triplet.  If you think this
8250 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8251 ac_tool_warned=yes ;;
8252 esac
8253     DUMPBIN=$ac_ct_DUMPBIN
8254   fi
8255 fi
8256
8257
8258   if test "$DUMPBIN" != ":"; then
8259     NM="$DUMPBIN"
8260   fi
8261 fi
8262 test -z "$NM" && NM=nm
8263
8264
8265
8266
8267
8268
8269 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
8270 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
8271 if test "${lt_cv_nm_interface+set}" = set; then
8272   echo $ECHO_N "(cached) $ECHO_C" >&6
8273 else
8274   lt_cv_nm_interface="BSD nm"
8275   echo "int some_variable = 0;" > conftest.$ac_ext
8276   (eval echo "\"\$as_me:8276: $ac_compile\"" >&5)
8277   (eval "$ac_compile" 2>conftest.err)
8278   cat conftest.err >&5
8279   (eval echo "\"\$as_me:8279: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8280   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8281   cat conftest.err >&5
8282   (eval echo "\"\$as_me:8282: output\"" >&5)
8283   cat conftest.out >&5
8284   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8285     lt_cv_nm_interface="MS dumpbin"
8286   fi
8287   rm -f conftest*
8288 fi
8289 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
8290 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
8291
8292 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
8293 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
8294 LN_S=$as_ln_s
8295 if test "$LN_S" = "ln -s"; then
8296   { echo "$as_me:$LINENO: result: yes" >&5
8297 echo "${ECHO_T}yes" >&6; }
8298 else
8299   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8300 echo "${ECHO_T}no, using $LN_S" >&6; }
8301 fi
8302
8303 # find the maximum length of command line arguments
8304 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8305 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
8306 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8307   echo $ECHO_N "(cached) $ECHO_C" >&6
8308 else
8309     i=0
8310   teststring="ABCD"
8311
8312   case $build_os in
8313   msdosdjgpp*)
8314     # On DJGPP, this test can blow up pretty badly due to problems in libc
8315     # (any single argument exceeding 2000 bytes causes a buffer overrun
8316     # during glob expansion).  Even if it were fixed, the result of this
8317     # check would be larger than it should be.
8318     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8319     ;;
8320
8321   gnu*)
8322     # Under GNU Hurd, this test is not required because there is
8323     # no limit to the length of command line arguments.
8324     # Libtool will interpret -1 as no limit whatsoever
8325     lt_cv_sys_max_cmd_len=-1;
8326     ;;
8327
8328   cygwin* | mingw*)
8329     # On Win9x/ME, this test blows up -- it succeeds, but takes
8330     # about 5 minutes as the teststring grows exponentially.
8331     # Worse, since 9x/ME are not pre-emptively multitasking,
8332     # you end up with a "frozen" computer, even though with patience
8333     # the test eventually succeeds (with a max line length of 256k).
8334     # Instead, let's just punt: use the minimum linelength reported by
8335     # all of the supported platforms: 8192 (on NT/2K/XP).
8336     lt_cv_sys_max_cmd_len=8192;
8337     ;;
8338
8339   amigaos*)
8340     # On AmigaOS with pdksh, this test takes hours, literally.
8341     # So we just punt and use a minimum line length of 8192.
8342     lt_cv_sys_max_cmd_len=8192;
8343     ;;
8344
8345   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8346     # This has been around since 386BSD, at least.  Likely further.
8347     if test -x /sbin/sysctl; then
8348       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8349     elif test -x /usr/sbin/sysctl; then
8350       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8351     else
8352       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8353     fi
8354     # And add a safety zone
8355     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8356     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8357     ;;
8358
8359   interix*)
8360     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8361     lt_cv_sys_max_cmd_len=196608
8362     ;;
8363
8364   osf*)
8365     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8366     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8367     # nice to cause kernel panics so lets avoid the loop below.
8368     # First set a reasonable default.
8369     lt_cv_sys_max_cmd_len=16384
8370     #
8371     if test -x /sbin/sysconfig; then
8372       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8373         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8374       esac
8375     fi
8376     ;;
8377   sco3.2v5*)
8378     lt_cv_sys_max_cmd_len=102400
8379     ;;
8380   sysv5* | sco5v6* | sysv4.2uw2*)
8381     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8382     if test -n "$kargmax"; then
8383       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8384     else
8385       lt_cv_sys_max_cmd_len=32768
8386     fi
8387     ;;
8388   *)
8389     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8390     if test -n "$lt_cv_sys_max_cmd_len"; then
8391       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8392       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8393     else
8394       # Make teststring a little bigger before we do anything with it.
8395       # a 1K string should be a reasonable start.
8396       for i in 1 2 3 4 5 6 7 8 ; do
8397         teststring=$teststring$teststring
8398       done
8399       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8400       # If test is not a shell built-in, we'll probably end up computing a
8401       # maximum length that is only half of the actual maximum length, but
8402       # we can't tell.
8403       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8404                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8405               test $i != 17 # 1/2 MB should be enough
8406       do
8407         i=`expr $i + 1`
8408         teststring=$teststring$teststring
8409       done
8410       # Only check the string length outside the loop.
8411       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8412       teststring=
8413       # Add a significant safety factor because C++ compilers can tack on
8414       # massive amounts of additional arguments before passing them to the
8415       # linker.  It appears as though 1/2 is a usable value.
8416       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8417     fi
8418     ;;
8419   esac
8420
8421 fi
8422
8423 if test -n $lt_cv_sys_max_cmd_len ; then
8424   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8425 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8426 else
8427   { echo "$as_me:$LINENO: result: none" >&5
8428 echo "${ECHO_T}none" >&6; }
8429 fi
8430 max_cmd_len=$lt_cv_sys_max_cmd_len
8431
8432
8433
8434
8435
8436
8437 : ${CP="cp -f"}
8438 : ${MV="mv -f"}
8439 : ${RM="rm -f"}
8440
8441 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
8442 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
8443 # Try some XSI features
8444 xsi_shell=no
8445 ( _lt_dummy="a/b/c"
8446   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8447       = c,a/b,, \
8448     && eval 'test $(( 1 + 1 )) -eq 2 \
8449     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8450   && xsi_shell=yes
8451 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
8452 echo "${ECHO_T}$xsi_shell" >&6; }
8453
8454
8455 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
8456 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
8457 lt_shell_append=no
8458 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8459     >/dev/null 2>&1 \
8460   && lt_shell_append=yes
8461 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
8462 echo "${ECHO_T}$lt_shell_append" >&6; }
8463
8464
8465 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8466   lt_unset=unset
8467 else
8468   lt_unset=false
8469 fi
8470
8471
8472
8473
8474
8475 # test EBCDIC or ASCII
8476 case `echo X|tr X '\101'` in
8477  A) # ASCII based system
8478     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8479   lt_SP2NL='tr \040 \012'
8480   lt_NL2SP='tr \015\012 \040\040'
8481   ;;
8482  *) # EBCDIC based system
8483   lt_SP2NL='tr \100 \n'
8484   lt_NL2SP='tr \r\n \100\100'
8485   ;;
8486 esac
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8497 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
8498 if test "${lt_cv_ld_reload_flag+set}" = set; then
8499   echo $ECHO_N "(cached) $ECHO_C" >&6
8500 else
8501   lt_cv_ld_reload_flag='-r'
8502 fi
8503 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8504 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
8505 reload_flag=$lt_cv_ld_reload_flag
8506 case $reload_flag in
8507 "" | " "*) ;;
8508 *) reload_flag=" $reload_flag" ;;
8509 esac
8510 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8511 case $host_os in
8512   darwin*)
8513     if test "$GCC" = yes; then
8514       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8515     else
8516       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8517     fi
8518     ;;
8519 esac
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
8531 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
8532 if test "${lt_cv_deplibs_check_method+set}" = set; then
8533   echo $ECHO_N "(cached) $ECHO_C" >&6
8534 else
8535   lt_cv_file_magic_cmd='$MAGIC_CMD'
8536 lt_cv_file_magic_test_file=
8537 lt_cv_deplibs_check_method='unknown'
8538 # Need to set the preceding variable on all platforms that support
8539 # interlibrary dependencies.
8540 # 'none' -- dependencies not supported.
8541 # `unknown' -- same as none, but documents that we really don't know.
8542 # 'pass_all' -- all dependencies passed with no checks.
8543 # 'test_compile' -- check by making test program.
8544 # 'file_magic [[regex]]' -- check by looking for files in library path
8545 # which responds to the $file_magic_cmd with a given extended regex.
8546 # If you have `file' or equivalent on your system and you're not sure
8547 # whether `pass_all' will *always* work, you probably want this one.
8548
8549 case $host_os in
8550 aix[4-9]*)
8551   lt_cv_deplibs_check_method=pass_all
8552   ;;
8553
8554 beos*)
8555   lt_cv_deplibs_check_method=pass_all
8556   ;;
8557
8558 bsdi[45]*)
8559   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8560   lt_cv_file_magic_cmd='/usr/bin/file -L'
8561   lt_cv_file_magic_test_file=/shlib/libc.so
8562   ;;
8563
8564 cygwin*)
8565   # func_win32_libid is a shell function defined in ltmain.sh
8566   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8567   lt_cv_file_magic_cmd='func_win32_libid'
8568   ;;
8569
8570 mingw* | pw32*)
8571   # Base MSYS/MinGW do not provide the 'file' command needed by
8572   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8573   # unless we find 'file', for example because we are cross-compiling.
8574   if ( file / ) >/dev/null 2>&1; then
8575     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8576     lt_cv_file_magic_cmd='func_win32_libid'
8577   else
8578     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8579     lt_cv_file_magic_cmd='$OBJDUMP -f'
8580   fi
8581   ;;
8582
8583 darwin* | rhapsody*)
8584   lt_cv_deplibs_check_method=pass_all
8585   ;;
8586
8587 freebsd* | dragonfly*)
8588   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8589     case $host_cpu in
8590     i*86 )
8591       # Not sure whether the presence of OpenBSD here was a mistake.
8592       # Let's accept both of them until this is cleared up.
8593       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8594       lt_cv_file_magic_cmd=/usr/bin/file
8595       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8596       ;;
8597     esac
8598   else
8599     lt_cv_deplibs_check_method=pass_all
8600   fi
8601   ;;
8602
8603 gnu*)
8604   lt_cv_deplibs_check_method=pass_all
8605   ;;
8606
8607 hpux10.20* | hpux11*)
8608   lt_cv_file_magic_cmd=/usr/bin/file
8609   case $host_cpu in
8610   ia64*)
8611     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8612     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8613     ;;
8614   hppa*64*)
8615     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]'
8616     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8617     ;;
8618   *)
8619     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8620     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8621     ;;
8622   esac
8623   ;;
8624
8625 interix[3-9]*)
8626   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8627   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8628   ;;
8629
8630 irix5* | irix6* | nonstopux*)
8631   case $LD in
8632   *-32|*"-32 ") libmagic=32-bit;;
8633   *-n32|*"-n32 ") libmagic=N32;;
8634   *-64|*"-64 ") libmagic=64-bit;;
8635   *) libmagic=never-match;;
8636   esac
8637   lt_cv_deplibs_check_method=pass_all
8638   ;;
8639
8640 # This must be Linux ELF.
8641 linux* | k*bsd*-gnu)
8642   lt_cv_deplibs_check_method=pass_all
8643   ;;
8644
8645 netbsd* | netbsdelf*-gnu)
8646   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8647     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8648   else
8649     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8650   fi
8651   ;;
8652
8653 newos6*)
8654   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8655   lt_cv_file_magic_cmd=/usr/bin/file
8656   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8657   ;;
8658
8659 *nto* | *qnx*)
8660   lt_cv_deplibs_check_method=pass_all
8661   ;;
8662
8663 openbsd*)
8664   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8665     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8666   else
8667     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8668   fi
8669   ;;
8670
8671 osf3* | osf4* | osf5*)
8672   lt_cv_deplibs_check_method=pass_all
8673   ;;
8674
8675 rdos*)
8676   lt_cv_deplibs_check_method=pass_all
8677   ;;
8678
8679 solaris*)
8680   lt_cv_deplibs_check_method=pass_all
8681   ;;
8682
8683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8684   lt_cv_deplibs_check_method=pass_all
8685   ;;
8686
8687 sysv4 | sysv4.3*)
8688   case $host_vendor in
8689   motorola)
8690     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]'
8691     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8692     ;;
8693   ncr)
8694     lt_cv_deplibs_check_method=pass_all
8695     ;;
8696   sequent)
8697     lt_cv_file_magic_cmd='/bin/file'
8698     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8699     ;;
8700   sni)
8701     lt_cv_file_magic_cmd='/bin/file'
8702     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8703     lt_cv_file_magic_test_file=/lib/libc.so
8704     ;;
8705   siemens)
8706     lt_cv_deplibs_check_method=pass_all
8707     ;;
8708   pc)
8709     lt_cv_deplibs_check_method=pass_all
8710     ;;
8711   esac
8712   ;;
8713
8714 tpf*)
8715   lt_cv_deplibs_check_method=pass_all
8716   ;;
8717 esac
8718
8719 fi
8720 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8721 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
8722 file_magic_cmd=$lt_cv_file_magic_cmd
8723 deplibs_check_method=$lt_cv_deplibs_check_method
8724 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737 if test -n "$ac_tool_prefix"; then
8738   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8739 set dummy ${ac_tool_prefix}ar; ac_word=$2
8740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8742 if test "${ac_cv_prog_AR+set}" = set; then
8743   echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745   if test -n "$AR"; then
8746   ac_cv_prog_AR="$AR" # Let the user override the test.
8747 else
8748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8749 for as_dir in $PATH
8750 do
8751   IFS=$as_save_IFS
8752   test -z "$as_dir" && as_dir=.
8753   for ac_exec_ext in '' $ac_executable_extensions; do
8754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8755     ac_cv_prog_AR="${ac_tool_prefix}ar"
8756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8757     break 2
8758   fi
8759 done
8760 done
8761 IFS=$as_save_IFS
8762
8763 fi
8764 fi
8765 AR=$ac_cv_prog_AR
8766 if test -n "$AR"; then
8767   { echo "$as_me:$LINENO: result: $AR" >&5
8768 echo "${ECHO_T}$AR" >&6; }
8769 else
8770   { echo "$as_me:$LINENO: result: no" >&5
8771 echo "${ECHO_T}no" >&6; }
8772 fi
8773
8774
8775 fi
8776 if test -z "$ac_cv_prog_AR"; then
8777   ac_ct_AR=$AR
8778   # Extract the first word of "ar", so it can be a program name with args.
8779 set dummy ar; ac_word=$2
8780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8782 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8783   echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785   if test -n "$ac_ct_AR"; then
8786   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8787 else
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 for as_dir in $PATH
8790 do
8791   IFS=$as_save_IFS
8792   test -z "$as_dir" && as_dir=.
8793   for ac_exec_ext in '' $ac_executable_extensions; do
8794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8795     ac_cv_prog_ac_ct_AR="ar"
8796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8797     break 2
8798   fi
8799 done
8800 done
8801 IFS=$as_save_IFS
8802
8803 fi
8804 fi
8805 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8806 if test -n "$ac_ct_AR"; then
8807   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8808 echo "${ECHO_T}$ac_ct_AR" >&6; }
8809 else
8810   { echo "$as_me:$LINENO: result: no" >&5
8811 echo "${ECHO_T}no" >&6; }
8812 fi
8813
8814   if test "x$ac_ct_AR" = x; then
8815     AR="false"
8816   else
8817     case $cross_compiling:$ac_tool_warned in
8818 yes:)
8819 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8820 whose name does not start with the host triplet.  If you think this
8821 configuration is useful to you, please write to autoconf@gnu.org." >&5
8822 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8823 whose name does not start with the host triplet.  If you think this
8824 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8825 ac_tool_warned=yes ;;
8826 esac
8827     AR=$ac_ct_AR
8828   fi
8829 else
8830   AR="$ac_cv_prog_AR"
8831 fi
8832
8833 test -z "$AR" && AR=ar
8834 test -z "$AR_FLAGS" && AR_FLAGS=cru
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846 if test -n "$ac_tool_prefix"; then
8847   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8848 set dummy ${ac_tool_prefix}strip; ac_word=$2
8849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8851 if test "${ac_cv_prog_STRIP+set}" = set; then
8852   echo $ECHO_N "(cached) $ECHO_C" >&6
8853 else
8854   if test -n "$STRIP"; then
8855   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8856 else
8857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8858 for as_dir in $PATH
8859 do
8860   IFS=$as_save_IFS
8861   test -z "$as_dir" && as_dir=.
8862   for ac_exec_ext in '' $ac_executable_extensions; do
8863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8864     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8866     break 2
8867   fi
8868 done
8869 done
8870 IFS=$as_save_IFS
8871
8872 fi
8873 fi
8874 STRIP=$ac_cv_prog_STRIP
8875 if test -n "$STRIP"; then
8876   { echo "$as_me:$LINENO: result: $STRIP" >&5
8877 echo "${ECHO_T}$STRIP" >&6; }
8878 else
8879   { echo "$as_me:$LINENO: result: no" >&5
8880 echo "${ECHO_T}no" >&6; }
8881 fi
8882
8883
8884 fi
8885 if test -z "$ac_cv_prog_STRIP"; then
8886   ac_ct_STRIP=$STRIP
8887   # Extract the first word of "strip", so it can be a program name with args.
8888 set dummy strip; ac_word=$2
8889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8891 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8892   echo $ECHO_N "(cached) $ECHO_C" >&6
8893 else
8894   if test -n "$ac_ct_STRIP"; then
8895   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8896 else
8897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8898 for as_dir in $PATH
8899 do
8900   IFS=$as_save_IFS
8901   test -z "$as_dir" && as_dir=.
8902   for ac_exec_ext in '' $ac_executable_extensions; do
8903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8904     ac_cv_prog_ac_ct_STRIP="strip"
8905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8906     break 2
8907   fi
8908 done
8909 done
8910 IFS=$as_save_IFS
8911
8912 fi
8913 fi
8914 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8915 if test -n "$ac_ct_STRIP"; then
8916   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8917 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8918 else
8919   { echo "$as_me:$LINENO: result: no" >&5
8920 echo "${ECHO_T}no" >&6; }
8921 fi
8922
8923   if test "x$ac_ct_STRIP" = x; then
8924     STRIP=":"
8925   else
8926     case $cross_compiling:$ac_tool_warned in
8927 yes:)
8928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8929 whose name does not start with the host triplet.  If you think this
8930 configuration is useful to you, please write to autoconf@gnu.org." >&5
8931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8932 whose name does not start with the host triplet.  If you think this
8933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8934 ac_tool_warned=yes ;;
8935 esac
8936     STRIP=$ac_ct_STRIP
8937   fi
8938 else
8939   STRIP="$ac_cv_prog_STRIP"
8940 fi
8941
8942 test -z "$STRIP" && STRIP=:
8943
8944
8945
8946
8947
8948
8949 if test -n "$ac_tool_prefix"; then
8950   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8951 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8954 if test "${ac_cv_prog_RANLIB+set}" = set; then
8955   echo $ECHO_N "(cached) $ECHO_C" >&6
8956 else
8957   if test -n "$RANLIB"; then
8958   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8959 else
8960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8961 for as_dir in $PATH
8962 do
8963   IFS=$as_save_IFS
8964   test -z "$as_dir" && as_dir=.
8965   for ac_exec_ext in '' $ac_executable_extensions; do
8966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8967     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8969     break 2
8970   fi
8971 done
8972 done
8973 IFS=$as_save_IFS
8974
8975 fi
8976 fi
8977 RANLIB=$ac_cv_prog_RANLIB
8978 if test -n "$RANLIB"; then
8979   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8980 echo "${ECHO_T}$RANLIB" >&6; }
8981 else
8982   { echo "$as_me:$LINENO: result: no" >&5
8983 echo "${ECHO_T}no" >&6; }
8984 fi
8985
8986
8987 fi
8988 if test -z "$ac_cv_prog_RANLIB"; then
8989   ac_ct_RANLIB=$RANLIB
8990   # Extract the first word of "ranlib", so it can be a program name with args.
8991 set dummy ranlib; ac_word=$2
8992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8994 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8995   echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997   if test -n "$ac_ct_RANLIB"; then
8998   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8999 else
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 for as_dir in $PATH
9002 do
9003   IFS=$as_save_IFS
9004   test -z "$as_dir" && as_dir=.
9005   for ac_exec_ext in '' $ac_executable_extensions; do
9006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9007     ac_cv_prog_ac_ct_RANLIB="ranlib"
9008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9009     break 2
9010   fi
9011 done
9012 done
9013 IFS=$as_save_IFS
9014
9015 fi
9016 fi
9017 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9018 if test -n "$ac_ct_RANLIB"; then
9019   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9020 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9021 else
9022   { echo "$as_me:$LINENO: result: no" >&5
9023 echo "${ECHO_T}no" >&6; }
9024 fi
9025
9026   if test "x$ac_ct_RANLIB" = x; then
9027     RANLIB=":"
9028   else
9029     case $cross_compiling:$ac_tool_warned in
9030 yes:)
9031 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9032 whose name does not start with the host triplet.  If you think this
9033 configuration is useful to you, please write to autoconf@gnu.org." >&5
9034 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9035 whose name does not start with the host triplet.  If you think this
9036 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9037 ac_tool_warned=yes ;;
9038 esac
9039     RANLIB=$ac_ct_RANLIB
9040   fi
9041 else
9042   RANLIB="$ac_cv_prog_RANLIB"
9043 fi
9044
9045 test -z "$RANLIB" && RANLIB=:
9046
9047
9048
9049
9050
9051
9052 # Determine commands to create old-style static archives.
9053 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9054 old_postinstall_cmds='chmod 644 $oldlib'
9055 old_postuninstall_cmds=
9056
9057 if test -n "$RANLIB"; then
9058   case $host_os in
9059   openbsd*)
9060     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9061     ;;
9062   *)
9063     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9064     ;;
9065   esac
9066   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9067 fi
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102 # If no C compiler was specified, use CC.
9103 LTCC=${LTCC-"$CC"}
9104
9105 # If no C compiler flags were specified, use CFLAGS.
9106 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9107
9108 # Allow CC to be a program name with arguments.
9109 compiler=$CC
9110
9111
9112 # Check for command to grab the raw symbol name followed by C symbol from nm.
9113 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9114 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9115 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9116   echo $ECHO_N "(cached) $ECHO_C" >&6
9117 else
9118
9119 # These are sane defaults that work on at least a few old systems.
9120 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9121
9122 # Character class describing NM global symbol codes.
9123 symcode='[BCDEGRST]'
9124
9125 # Regexp to match symbols that can be accessed directly from C.
9126 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9127
9128 # Define system-specific variables.
9129 case $host_os in
9130 aix*)
9131   symcode='[BCDT]'
9132   ;;
9133 cygwin* | mingw* | pw32*)
9134   symcode='[ABCDGISTW]'
9135   ;;
9136 hpux*)
9137   if test "$host_cpu" = ia64; then
9138     symcode='[ABCDEGRST]'
9139   fi
9140   ;;
9141 irix* | nonstopux*)
9142   symcode='[BCDEGRST]'
9143   ;;
9144 osf*)
9145   symcode='[BCDEGQRST]'
9146   ;;
9147 solaris*)
9148   symcode='[BDRT]'
9149   ;;
9150 sco3.2v5*)
9151   symcode='[DT]'
9152   ;;
9153 sysv4.2uw2*)
9154   symcode='[DT]'
9155   ;;
9156 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9157   symcode='[ABDT]'
9158   ;;
9159 sysv4)
9160   symcode='[DFNSTU]'
9161   ;;
9162 esac
9163
9164 # If we're using GNU nm, then use its standard symbol codes.
9165 case `$NM -V 2>&1` in
9166 *GNU* | *'with BFD'*)
9167   symcode='[ABCDGIRSTW]' ;;
9168 esac
9169
9170 # Transform an extracted symbol line into a proper C declaration.
9171 # Some systems (esp. on ia64) link data and code symbols differently,
9172 # so use this general approach.
9173 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9174
9175 # Transform an extracted symbol line into symbol name and symbol address
9176 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9177 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'"
9178
9179 # Handle CRLF in mingw tool chain
9180 opt_cr=
9181 case $build_os in
9182 mingw*)
9183   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9184   ;;
9185 esac
9186
9187 # Try without a prefix underscore, then with it.
9188 for ac_symprfx in "" "_"; do
9189
9190   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9191   symxfrm="\\1 $ac_symprfx\\2 \\2"
9192
9193   # Write the raw and C identifiers.
9194   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9195     # Fake it for dumpbin and say T for any non-static function
9196     # and D for any global variable.
9197     # Also find C++ and __fastcall symbols from MSVC++,
9198     # which start with @ or ?.
9199     lt_cv_sys_global_symbol_pipe="$AWK '"\
9200 "     {last_section=section; section=\$ 3};"\
9201 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9202 "     \$ 0!~/External *\|/{next};"\
9203 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9204 "     {if(hide[section]) next};"\
9205 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9206 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9207 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9208 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9209 "     ' prfx=^$ac_symprfx"
9210   else
9211     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9212   fi
9213
9214   # Check to see that the pipe works correctly.
9215   pipe_works=no
9216
9217   rm -f conftest*
9218   cat > conftest.$ac_ext <<_LT_EOF
9219 #ifdef __cplusplus
9220 extern "C" {
9221 #endif
9222 char nm_test_var;
9223 void nm_test_func(void);
9224 void nm_test_func(void){}
9225 #ifdef __cplusplus
9226 }
9227 #endif
9228 int main(){nm_test_var='a';nm_test_func();return(0);}
9229 _LT_EOF
9230
9231   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9232   (eval $ac_compile) 2>&5
9233   ac_status=$?
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); }; then
9236     # Now try to grab the symbols.
9237     nlist=conftest.nm
9238     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9239   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9240   ac_status=$?
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); } && test -s "$nlist"; then
9243       # Try sorting and uniquifying the output.
9244       if sort "$nlist" | uniq > "$nlist"T; then
9245         mv -f "$nlist"T "$nlist"
9246       else
9247         rm -f "$nlist"T
9248       fi
9249
9250       # Make sure that we snagged all the symbols we need.
9251       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9252         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9253           cat <<_LT_EOF > conftest.$ac_ext
9254 #ifdef __cplusplus
9255 extern "C" {
9256 #endif
9257
9258 _LT_EOF
9259           # Now generate the symbol file.
9260           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9261
9262           cat <<_LT_EOF >> conftest.$ac_ext
9263
9264 /* The mapping between symbol names and symbols.  */
9265 const struct {
9266   const char *name;
9267   void       *address;
9268 }
9269 lt__PROGRAM__LTX_preloaded_symbols[] =
9270 {
9271   { "@PROGRAM@", (void *) 0 },
9272 _LT_EOF
9273           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9274           cat <<\_LT_EOF >> conftest.$ac_ext
9275   {0, (void *) 0}
9276 };
9277
9278 /* This works around a problem in FreeBSD linker */
9279 #ifdef FREEBSD_WORKAROUND
9280 static const void *lt_preloaded_setup() {
9281   return lt__PROGRAM__LTX_preloaded_symbols;
9282 }
9283 #endif
9284
9285 #ifdef __cplusplus
9286 }
9287 #endif
9288 _LT_EOF
9289           # Now try linking the two files.
9290           mv conftest.$ac_objext conftstm.$ac_objext
9291           lt_save_LIBS="$LIBS"
9292           lt_save_CFLAGS="$CFLAGS"
9293           LIBS="conftstm.$ac_objext"
9294           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9295           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9296   (eval $ac_link) 2>&5
9297   ac_status=$?
9298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9300             pipe_works=yes
9301           fi
9302           LIBS="$lt_save_LIBS"
9303           CFLAGS="$lt_save_CFLAGS"
9304         else
9305           echo "cannot find nm_test_func in $nlist" >&5
9306         fi
9307       else
9308         echo "cannot find nm_test_var in $nlist" >&5
9309       fi
9310     else
9311       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9312     fi
9313   else
9314     echo "$progname: failed program was:" >&5
9315     cat conftest.$ac_ext >&5
9316   fi
9317   rm -rf conftest* conftst*
9318
9319   # Do not use the global_symbol_pipe unless it works.
9320   if test "$pipe_works" = yes; then
9321     break
9322   else
9323     lt_cv_sys_global_symbol_pipe=
9324   fi
9325 done
9326
9327 fi
9328
9329 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9330   lt_cv_sys_global_symbol_to_cdecl=
9331 fi
9332 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9333   { echo "$as_me:$LINENO: result: failed" >&5
9334 echo "${ECHO_T}failed" >&6; }
9335 else
9336   { echo "$as_me:$LINENO: result: ok" >&5
9337 echo "${ECHO_T}ok" >&6; }
9338 fi
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361 # Check whether --enable-libtool-lock was given.
9362 if test "${enable_libtool_lock+set}" = set; then
9363   enableval=$enable_libtool_lock;
9364 fi
9365
9366 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9367
9368 # Some flags need to be propagated to the compiler or linker for good
9369 # libtool support.
9370 case $host in
9371 ia64-*-hpux*)
9372   # Find out which ABI we are using.
9373   echo 'int i;' > conftest.$ac_ext
9374   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9375   (eval $ac_compile) 2>&5
9376   ac_status=$?
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); }; then
9379     case `/usr/bin/file conftest.$ac_objext` in
9380       *ELF-32*)
9381         HPUX_IA64_MODE="32"
9382         ;;
9383       *ELF-64*)
9384         HPUX_IA64_MODE="64"
9385         ;;
9386     esac
9387   fi
9388   rm -rf conftest*
9389   ;;
9390 *-*-irix6*)
9391   # Find out which ABI we are using.
9392   echo '#line 9392 "configure"' > conftest.$ac_ext
9393   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9394   (eval $ac_compile) 2>&5
9395   ac_status=$?
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); }; then
9398     if test "$lt_cv_prog_gnu_ld" = yes; then
9399       case `/usr/bin/file conftest.$ac_objext` in
9400         *32-bit*)
9401           LD="${LD-ld} -melf32bsmip"
9402           ;;
9403         *N32*)
9404           LD="${LD-ld} -melf32bmipn32"
9405           ;;
9406         *64-bit*)
9407           LD="${LD-ld} -melf64bmip"
9408         ;;
9409       esac
9410     else
9411       case `/usr/bin/file conftest.$ac_objext` in
9412         *32-bit*)
9413           LD="${LD-ld} -32"
9414           ;;
9415         *N32*)
9416           LD="${LD-ld} -n32"
9417           ;;
9418         *64-bit*)
9419           LD="${LD-ld} -64"
9420           ;;
9421       esac
9422     fi
9423   fi
9424   rm -rf conftest*
9425   ;;
9426
9427 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9428 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9429   # Find out which ABI we are using.
9430   echo 'int i;' > conftest.$ac_ext
9431   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9432   (eval $ac_compile) 2>&5
9433   ac_status=$?
9434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435   (exit $ac_status); }; then
9436     case `/usr/bin/file conftest.o` in
9437       *32-bit*)
9438         case $host in
9439           x86_64-*kfreebsd*-gnu)
9440             LD="${LD-ld} -m elf_i386_fbsd"
9441             ;;
9442           x86_64-*linux*)
9443             LD="${LD-ld} -m elf_i386"
9444             ;;
9445           ppc64-*linux*|powerpc64-*linux*)
9446             LD="${LD-ld} -m elf32ppclinux"
9447             ;;
9448           s390x-*linux*)
9449             LD="${LD-ld} -m elf_s390"
9450             ;;
9451           sparc64-*linux*)
9452             LD="${LD-ld} -m elf32_sparc"
9453             ;;
9454         esac
9455         ;;
9456       *64-bit*)
9457         case $host in
9458           x86_64-*kfreebsd*-gnu)
9459             LD="${LD-ld} -m elf_x86_64_fbsd"
9460             ;;
9461           x86_64-*linux*)
9462             LD="${LD-ld} -m elf_x86_64"
9463             ;;
9464           ppc*-*linux*|powerpc*-*linux*)
9465             LD="${LD-ld} -m elf64ppc"
9466             ;;
9467           s390*-*linux*|s390*-*tpf*)
9468             LD="${LD-ld} -m elf64_s390"
9469             ;;
9470           sparc*-*linux*)
9471             LD="${LD-ld} -m elf64_sparc"
9472             ;;
9473         esac
9474         ;;
9475     esac
9476   fi
9477   rm -rf conftest*
9478   ;;
9479
9480 *-*-sco3.2v5*)
9481   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9482   SAVE_CFLAGS="$CFLAGS"
9483   CFLAGS="$CFLAGS -belf"
9484   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
9485 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
9486 if test "${lt_cv_cc_needs_belf+set}" = set; then
9487   echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489   ac_ext=c
9490 ac_cpp='$CPP $CPPFLAGS'
9491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9494
9495      cat >conftest.$ac_ext <<_ACEOF
9496 /* confdefs.h.  */
9497 _ACEOF
9498 cat confdefs.h >>conftest.$ac_ext
9499 cat >>conftest.$ac_ext <<_ACEOF
9500 /* end confdefs.h.  */
9501
9502 int
9503 main ()
9504 {
9505
9506   ;
9507   return 0;
9508 }
9509 _ACEOF
9510 rm -f conftest.$ac_objext conftest$ac_exeext
9511 if { (ac_try="$ac_link"
9512 case "(($ac_try" in
9513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514   *) ac_try_echo=$ac_try;;
9515 esac
9516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517   (eval "$ac_link") 2>conftest.er1
9518   ac_status=$?
9519   grep -v '^ *+' conftest.er1 >conftest.err
9520   rm -f conftest.er1
9521   cat conftest.err >&5
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); } && {
9524          test -z "$ac_c_werror_flag" ||
9525          test ! -s conftest.err
9526        } && test -s conftest$ac_exeext &&
9527        $as_test_x conftest$ac_exeext; then
9528   lt_cv_cc_needs_belf=yes
9529 else
9530   echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9532
9533         lt_cv_cc_needs_belf=no
9534 fi
9535
9536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9537       conftest$ac_exeext conftest.$ac_ext
9538      ac_ext=c
9539 ac_cpp='$CPP $CPPFLAGS'
9540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9543
9544 fi
9545 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
9546 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
9547   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9548     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9549     CFLAGS="$SAVE_CFLAGS"
9550   fi
9551   ;;
9552 sparc*-*solaris*)
9553   # Find out which ABI we are using.
9554   echo 'int i;' > conftest.$ac_ext
9555   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9556   (eval $ac_compile) 2>&5
9557   ac_status=$?
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); }; then
9560     case `/usr/bin/file conftest.o` in
9561     *64-bit*)
9562       case $lt_cv_prog_gnu_ld in
9563       yes*) LD="${LD-ld} -m elf64_sparc" ;;
9564       *)
9565         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9566           LD="${LD-ld} -64"
9567         fi
9568         ;;
9569       esac
9570       ;;
9571     esac
9572   fi
9573   rm -rf conftest*
9574   ;;
9575 esac
9576
9577 need_locks="$enable_libtool_lock"
9578
9579
9580   case $host_os in
9581     rhapsody* | darwin*)
9582     if test -n "$ac_tool_prefix"; then
9583   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9584 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9587 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
9588   echo $ECHO_N "(cached) $ECHO_C" >&6
9589 else
9590   if test -n "$DSYMUTIL"; then
9591   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9592 else
9593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9594 for as_dir in $PATH
9595 do
9596   IFS=$as_save_IFS
9597   test -z "$as_dir" && as_dir=.
9598   for ac_exec_ext in '' $ac_executable_extensions; do
9599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9600     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9602     break 2
9603   fi
9604 done
9605 done
9606 IFS=$as_save_IFS
9607
9608 fi
9609 fi
9610 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9611 if test -n "$DSYMUTIL"; then
9612   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
9613 echo "${ECHO_T}$DSYMUTIL" >&6; }
9614 else
9615   { echo "$as_me:$LINENO: result: no" >&5
9616 echo "${ECHO_T}no" >&6; }
9617 fi
9618
9619
9620 fi
9621 if test -z "$ac_cv_prog_DSYMUTIL"; then
9622   ac_ct_DSYMUTIL=$DSYMUTIL
9623   # Extract the first word of "dsymutil", so it can be a program name with args.
9624 set dummy dsymutil; ac_word=$2
9625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9627 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
9628   echo $ECHO_N "(cached) $ECHO_C" >&6
9629 else
9630   if test -n "$ac_ct_DSYMUTIL"; then
9631   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9632 else
9633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9634 for as_dir in $PATH
9635 do
9636   IFS=$as_save_IFS
9637   test -z "$as_dir" && as_dir=.
9638   for ac_exec_ext in '' $ac_executable_extensions; do
9639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9640     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9642     break 2
9643   fi
9644 done
9645 done
9646 IFS=$as_save_IFS
9647
9648 fi
9649 fi
9650 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9651 if test -n "$ac_ct_DSYMUTIL"; then
9652   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
9653 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
9654 else
9655   { echo "$as_me:$LINENO: result: no" >&5
9656 echo "${ECHO_T}no" >&6; }
9657 fi
9658
9659   if test "x$ac_ct_DSYMUTIL" = x; then
9660     DSYMUTIL=":"
9661   else
9662     case $cross_compiling:$ac_tool_warned in
9663 yes:)
9664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9665 whose name does not start with the host triplet.  If you think this
9666 configuration is useful to you, please write to autoconf@gnu.org." >&5
9667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9668 whose name does not start with the host triplet.  If you think this
9669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9670 ac_tool_warned=yes ;;
9671 esac
9672     DSYMUTIL=$ac_ct_DSYMUTIL
9673   fi
9674 else
9675   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9676 fi
9677
9678     if test -n "$ac_tool_prefix"; then
9679   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9680 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9683 if test "${ac_cv_prog_NMEDIT+set}" = set; then
9684   echo $ECHO_N "(cached) $ECHO_C" >&6
9685 else
9686   if test -n "$NMEDIT"; then
9687   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9688 else
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 for as_dir in $PATH
9691 do
9692   IFS=$as_save_IFS
9693   test -z "$as_dir" && as_dir=.
9694   for ac_exec_ext in '' $ac_executable_extensions; do
9695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9696     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9698     break 2
9699   fi
9700 done
9701 done
9702 IFS=$as_save_IFS
9703
9704 fi
9705 fi
9706 NMEDIT=$ac_cv_prog_NMEDIT
9707 if test -n "$NMEDIT"; then
9708   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
9709 echo "${ECHO_T}$NMEDIT" >&6; }
9710 else
9711   { echo "$as_me:$LINENO: result: no" >&5
9712 echo "${ECHO_T}no" >&6; }
9713 fi
9714
9715
9716 fi
9717 if test -z "$ac_cv_prog_NMEDIT"; then
9718   ac_ct_NMEDIT=$NMEDIT
9719   # Extract the first word of "nmedit", so it can be a program name with args.
9720 set dummy nmedit; ac_word=$2
9721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9723 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
9724   echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726   if test -n "$ac_ct_NMEDIT"; then
9727   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9728 else
9729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730 for as_dir in $PATH
9731 do
9732   IFS=$as_save_IFS
9733   test -z "$as_dir" && as_dir=.
9734   for ac_exec_ext in '' $ac_executable_extensions; do
9735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9736     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9738     break 2
9739   fi
9740 done
9741 done
9742 IFS=$as_save_IFS
9743
9744 fi
9745 fi
9746 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9747 if test -n "$ac_ct_NMEDIT"; then
9748   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9749 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
9750 else
9751   { echo "$as_me:$LINENO: result: no" >&5
9752 echo "${ECHO_T}no" >&6; }
9753 fi
9754
9755   if test "x$ac_ct_NMEDIT" = x; then
9756     NMEDIT=":"
9757   else
9758     case $cross_compiling:$ac_tool_warned in
9759 yes:)
9760 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9761 whose name does not start with the host triplet.  If you think this
9762 configuration is useful to you, please write to autoconf@gnu.org." >&5
9763 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9764 whose name does not start with the host triplet.  If you think this
9765 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9766 ac_tool_warned=yes ;;
9767 esac
9768     NMEDIT=$ac_ct_NMEDIT
9769   fi
9770 else
9771   NMEDIT="$ac_cv_prog_NMEDIT"
9772 fi
9773
9774     if test -n "$ac_tool_prefix"; then
9775   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9776 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9779 if test "${ac_cv_prog_LIPO+set}" = set; then
9780   echo $ECHO_N "(cached) $ECHO_C" >&6
9781 else
9782   if test -n "$LIPO"; then
9783   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9784 else
9785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786 for as_dir in $PATH
9787 do
9788   IFS=$as_save_IFS
9789   test -z "$as_dir" && as_dir=.
9790   for ac_exec_ext in '' $ac_executable_extensions; do
9791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9792     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9794     break 2
9795   fi
9796 done
9797 done
9798 IFS=$as_save_IFS
9799
9800 fi
9801 fi
9802 LIPO=$ac_cv_prog_LIPO
9803 if test -n "$LIPO"; then
9804   { echo "$as_me:$LINENO: result: $LIPO" >&5
9805 echo "${ECHO_T}$LIPO" >&6; }
9806 else
9807   { echo "$as_me:$LINENO: result: no" >&5
9808 echo "${ECHO_T}no" >&6; }
9809 fi
9810
9811
9812 fi
9813 if test -z "$ac_cv_prog_LIPO"; then
9814   ac_ct_LIPO=$LIPO
9815   # Extract the first word of "lipo", so it can be a program name with args.
9816 set dummy lipo; ac_word=$2
9817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9819 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
9820   echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822   if test -n "$ac_ct_LIPO"; then
9823   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9824 else
9825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826 for as_dir in $PATH
9827 do
9828   IFS=$as_save_IFS
9829   test -z "$as_dir" && as_dir=.
9830   for ac_exec_ext in '' $ac_executable_extensions; do
9831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9832     ac_cv_prog_ac_ct_LIPO="lipo"
9833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9834     break 2
9835   fi
9836 done
9837 done
9838 IFS=$as_save_IFS
9839
9840 fi
9841 fi
9842 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9843 if test -n "$ac_ct_LIPO"; then
9844   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
9845 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
9846 else
9847   { echo "$as_me:$LINENO: result: no" >&5
9848 echo "${ECHO_T}no" >&6; }
9849 fi
9850
9851   if test "x$ac_ct_LIPO" = x; then
9852     LIPO=":"
9853   else
9854     case $cross_compiling:$ac_tool_warned in
9855 yes:)
9856 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9857 whose name does not start with the host triplet.  If you think this
9858 configuration is useful to you, please write to autoconf@gnu.org." >&5
9859 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9860 whose name does not start with the host triplet.  If you think this
9861 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9862 ac_tool_warned=yes ;;
9863 esac
9864     LIPO=$ac_ct_LIPO
9865   fi
9866 else
9867   LIPO="$ac_cv_prog_LIPO"
9868 fi
9869
9870     if test -n "$ac_tool_prefix"; then
9871   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9872 set dummy ${ac_tool_prefix}otool; ac_word=$2
9873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9875 if test "${ac_cv_prog_OTOOL+set}" = set; then
9876   echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878   if test -n "$OTOOL"; then
9879   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9880 else
9881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9882 for as_dir in $PATH
9883 do
9884   IFS=$as_save_IFS
9885   test -z "$as_dir" && as_dir=.
9886   for ac_exec_ext in '' $ac_executable_extensions; do
9887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9888     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9890     break 2
9891   fi
9892 done
9893 done
9894 IFS=$as_save_IFS
9895
9896 fi
9897 fi
9898 OTOOL=$ac_cv_prog_OTOOL
9899 if test -n "$OTOOL"; then
9900   { echo "$as_me:$LINENO: result: $OTOOL" >&5
9901 echo "${ECHO_T}$OTOOL" >&6; }
9902 else
9903   { echo "$as_me:$LINENO: result: no" >&5
9904 echo "${ECHO_T}no" >&6; }
9905 fi
9906
9907
9908 fi
9909 if test -z "$ac_cv_prog_OTOOL"; then
9910   ac_ct_OTOOL=$OTOOL
9911   # Extract the first word of "otool", so it can be a program name with args.
9912 set dummy otool; ac_word=$2
9913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9915 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
9916   echo $ECHO_N "(cached) $ECHO_C" >&6
9917 else
9918   if test -n "$ac_ct_OTOOL"; then
9919   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9920 else
9921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922 for as_dir in $PATH
9923 do
9924   IFS=$as_save_IFS
9925   test -z "$as_dir" && as_dir=.
9926   for ac_exec_ext in '' $ac_executable_extensions; do
9927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9928     ac_cv_prog_ac_ct_OTOOL="otool"
9929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9930     break 2
9931   fi
9932 done
9933 done
9934 IFS=$as_save_IFS
9935
9936 fi
9937 fi
9938 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9939 if test -n "$ac_ct_OTOOL"; then
9940   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
9941 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
9942 else
9943   { echo "$as_me:$LINENO: result: no" >&5
9944 echo "${ECHO_T}no" >&6; }
9945 fi
9946
9947   if test "x$ac_ct_OTOOL" = x; then
9948     OTOOL=":"
9949   else
9950     case $cross_compiling:$ac_tool_warned in
9951 yes:)
9952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9953 whose name does not start with the host triplet.  If you think this
9954 configuration is useful to you, please write to autoconf@gnu.org." >&5
9955 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9956 whose name does not start with the host triplet.  If you think this
9957 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9958 ac_tool_warned=yes ;;
9959 esac
9960     OTOOL=$ac_ct_OTOOL
9961   fi
9962 else
9963   OTOOL="$ac_cv_prog_OTOOL"
9964 fi
9965
9966     if test -n "$ac_tool_prefix"; then
9967   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9968 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9971 if test "${ac_cv_prog_OTOOL64+set}" = set; then
9972   echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974   if test -n "$OTOOL64"; then
9975   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9976 else
9977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9978 for as_dir in $PATH
9979 do
9980   IFS=$as_save_IFS
9981   test -z "$as_dir" && as_dir=.
9982   for ac_exec_ext in '' $ac_executable_extensions; do
9983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9984     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9986     break 2
9987   fi
9988 done
9989 done
9990 IFS=$as_save_IFS
9991
9992 fi
9993 fi
9994 OTOOL64=$ac_cv_prog_OTOOL64
9995 if test -n "$OTOOL64"; then
9996   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
9997 echo "${ECHO_T}$OTOOL64" >&6; }
9998 else
9999   { echo "$as_me:$LINENO: result: no" >&5
10000 echo "${ECHO_T}no" >&6; }
10001 fi
10002
10003
10004 fi
10005 if test -z "$ac_cv_prog_OTOOL64"; then
10006   ac_ct_OTOOL64=$OTOOL64
10007   # Extract the first word of "otool64", so it can be a program name with args.
10008 set dummy otool64; ac_word=$2
10009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10011 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
10012   echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014   if test -n "$ac_ct_OTOOL64"; then
10015   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10016 else
10017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10018 for as_dir in $PATH
10019 do
10020   IFS=$as_save_IFS
10021   test -z "$as_dir" && as_dir=.
10022   for ac_exec_ext in '' $ac_executable_extensions; do
10023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10024     ac_cv_prog_ac_ct_OTOOL64="otool64"
10025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10026     break 2
10027   fi
10028 done
10029 done
10030 IFS=$as_save_IFS
10031
10032 fi
10033 fi
10034 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10035 if test -n "$ac_ct_OTOOL64"; then
10036   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
10037 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
10038 else
10039   { echo "$as_me:$LINENO: result: no" >&5
10040 echo "${ECHO_T}no" >&6; }
10041 fi
10042
10043   if test "x$ac_ct_OTOOL64" = x; then
10044     OTOOL64=":"
10045   else
10046     case $cross_compiling:$ac_tool_warned in
10047 yes:)
10048 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10049 whose name does not start with the host triplet.  If you think this
10050 configuration is useful to you, please write to autoconf@gnu.org." >&5
10051 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10052 whose name does not start with the host triplet.  If you think this
10053 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10054 ac_tool_warned=yes ;;
10055 esac
10056     OTOOL64=$ac_ct_OTOOL64
10057   fi
10058 else
10059   OTOOL64="$ac_cv_prog_OTOOL64"
10060 fi
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
10089 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
10090 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
10091   echo $ECHO_N "(cached) $ECHO_C" >&6
10092 else
10093   lt_cv_apple_cc_single_mod=no
10094       if test -z "${LT_MULTI_MODULE}"; then
10095         # By default we will add the -single_module flag. You can override
10096         # by either setting the environment variable LT_MULTI_MODULE
10097         # non-empty at configure time, or by adding -multi_module to the
10098         # link flags.
10099         rm -rf libconftest.dylib*
10100         echo "int foo(void){return 1;}" > conftest.c
10101         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10102 -dynamiclib -Wl,-single_module conftest.c" >&5
10103         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10104           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10105         _lt_result=$?
10106         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10107           lt_cv_apple_cc_single_mod=yes
10108         else
10109           cat conftest.err >&5
10110         fi
10111         rm -rf libconftest.dylib*
10112         rm -f conftest.*
10113       fi
10114 fi
10115 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
10116 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
10117     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
10118 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
10119 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
10120   echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122   lt_cv_ld_exported_symbols_list=no
10123       save_LDFLAGS=$LDFLAGS
10124       echo "_main" > conftest.sym
10125       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10126       cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h.  */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h.  */
10132
10133 int
10134 main ()
10135 {
10136
10137   ;
10138   return 0;
10139 }
10140 _ACEOF
10141 rm -f conftest.$ac_objext conftest$ac_exeext
10142 if { (ac_try="$ac_link"
10143 case "(($ac_try" in
10144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145   *) ac_try_echo=$ac_try;;
10146 esac
10147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148   (eval "$ac_link") 2>conftest.er1
10149   ac_status=$?
10150   grep -v '^ *+' conftest.er1 >conftest.err
10151   rm -f conftest.er1
10152   cat conftest.err >&5
10153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154   (exit $ac_status); } && {
10155          test -z "$ac_c_werror_flag" ||
10156          test ! -s conftest.err
10157        } && test -s conftest$ac_exeext &&
10158        $as_test_x conftest$ac_exeext; then
10159   lt_cv_ld_exported_symbols_list=yes
10160 else
10161   echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10163
10164         lt_cv_ld_exported_symbols_list=no
10165 fi
10166
10167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10168       conftest$ac_exeext conftest.$ac_ext
10169         LDFLAGS="$save_LDFLAGS"
10170
10171 fi
10172 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
10173 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
10174     case $host_os in
10175     rhapsody* | darwin1.[012])
10176       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10177     darwin1.*)
10178       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10179     darwin*) # darwin 5.x on
10180       # if running on 10.5 or later, the deployment target defaults
10181       # to the OS version, if on x86, and 10.4, the deployment
10182       # target defaults to 10.4. Don't you love it?
10183       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10184         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10185           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10186         10.[012]*)
10187           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10188         10.*)
10189           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10190       esac
10191     ;;
10192   esac
10193     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10194       _lt_dar_single_mod='$single_module'
10195     fi
10196     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10197       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10198     else
10199       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10200     fi
10201     if test "$DSYMUTIL" != ":"; then
10202       _lt_dsymutil='~$DSYMUTIL $lib || :'
10203     else
10204       _lt_dsymutil=
10205     fi
10206     ;;
10207   esac
10208
10209
10210 for ac_header in dlfcn.h
10211 do
10212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10216   echo $ECHO_N "(cached) $ECHO_C" >&6
10217 else
10218   cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h.  */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h.  */
10224 $ac_includes_default
10225
10226 #include <$ac_header>
10227 _ACEOF
10228 rm -f conftest.$ac_objext
10229 if { (ac_try="$ac_compile"
10230 case "(($ac_try" in
10231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232   *) ac_try_echo=$ac_try;;
10233 esac
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235   (eval "$ac_compile") 2>conftest.er1
10236   ac_status=$?
10237   grep -v '^ *+' conftest.er1 >conftest.err
10238   rm -f conftest.er1
10239   cat conftest.err >&5
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); } && {
10242          test -z "$ac_c_werror_flag" ||
10243          test ! -s conftest.err
10244        } && test -s conftest.$ac_objext; then
10245   eval "$as_ac_Header=yes"
10246 else
10247   echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250         eval "$as_ac_Header=no"
10251 fi
10252
10253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10254 fi
10255 ac_res=`eval echo '${'$as_ac_Header'}'`
10256                { echo "$as_me:$LINENO: result: $ac_res" >&5
10257 echo "${ECHO_T}$ac_res" >&6; }
10258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10259   cat >>confdefs.h <<_ACEOF
10260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10261 _ACEOF
10262
10263 fi
10264
10265 done
10266
10267
10268
10269 ac_ext=cpp
10270 ac_cpp='$CXXCPP $CPPFLAGS'
10271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10274 if test -z "$CXX"; then
10275   if test -n "$CCC"; then
10276     CXX=$CCC
10277   else
10278     if test -n "$ac_tool_prefix"; then
10279   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10280   do
10281     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10285 if test "${ac_cv_prog_CXX+set}" = set; then
10286   echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288   if test -n "$CXX"; then
10289   ac_cv_prog_CXX="$CXX" # Let the user override the test.
10290 else
10291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292 for as_dir in $PATH
10293 do
10294   IFS=$as_save_IFS
10295   test -z "$as_dir" && as_dir=.
10296   for ac_exec_ext in '' $ac_executable_extensions; do
10297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10298     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10300     break 2
10301   fi
10302 done
10303 done
10304 IFS=$as_save_IFS
10305
10306 fi
10307 fi
10308 CXX=$ac_cv_prog_CXX
10309 if test -n "$CXX"; then
10310   { echo "$as_me:$LINENO: result: $CXX" >&5
10311 echo "${ECHO_T}$CXX" >&6; }
10312 else
10313   { echo "$as_me:$LINENO: result: no" >&5
10314 echo "${ECHO_T}no" >&6; }
10315 fi
10316
10317
10318     test -n "$CXX" && break
10319   done
10320 fi
10321 if test -z "$CXX"; then
10322   ac_ct_CXX=$CXX
10323   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10324 do
10325   # Extract the first word of "$ac_prog", so it can be a program name with args.
10326 set dummy $ac_prog; ac_word=$2
10327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10329 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10330   echo $ECHO_N "(cached) $ECHO_C" >&6
10331 else
10332   if test -n "$ac_ct_CXX"; then
10333   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10334 else
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10337 do
10338   IFS=$as_save_IFS
10339   test -z "$as_dir" && as_dir=.
10340   for ac_exec_ext in '' $ac_executable_extensions; do
10341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10342     ac_cv_prog_ac_ct_CXX="$ac_prog"
10343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10344     break 2
10345   fi
10346 done
10347 done
10348 IFS=$as_save_IFS
10349
10350 fi
10351 fi
10352 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10353 if test -n "$ac_ct_CXX"; then
10354   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10355 echo "${ECHO_T}$ac_ct_CXX" >&6; }
10356 else
10357   { echo "$as_me:$LINENO: result: no" >&5
10358 echo "${ECHO_T}no" >&6; }
10359 fi
10360
10361
10362   test -n "$ac_ct_CXX" && break
10363 done
10364
10365   if test "x$ac_ct_CXX" = x; then
10366     CXX="g++"
10367   else
10368     case $cross_compiling:$ac_tool_warned in
10369 yes:)
10370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10371 whose name does not start with the host triplet.  If you think this
10372 configuration is useful to you, please write to autoconf@gnu.org." >&5
10373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10374 whose name does not start with the host triplet.  If you think this
10375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10376 ac_tool_warned=yes ;;
10377 esac
10378     CXX=$ac_ct_CXX
10379   fi
10380 fi
10381
10382   fi
10383 fi
10384 # Provide some information about the compiler.
10385 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
10386 ac_compiler=`set X $ac_compile; echo $2`
10387 { (ac_try="$ac_compiler --version >&5"
10388 case "(($ac_try" in
10389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390   *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393   (eval "$ac_compiler --version >&5") 2>&5
10394   ac_status=$?
10395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396   (exit $ac_status); }
10397 { (ac_try="$ac_compiler -v >&5"
10398 case "(($ac_try" in
10399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400   *) ac_try_echo=$ac_try;;
10401 esac
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403   (eval "$ac_compiler -v >&5") 2>&5
10404   ac_status=$?
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); }
10407 { (ac_try="$ac_compiler -V >&5"
10408 case "(($ac_try" in
10409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410   *) ac_try_echo=$ac_try;;
10411 esac
10412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10413   (eval "$ac_compiler -V >&5") 2>&5
10414   ac_status=$?
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); }
10417
10418 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10419 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
10420 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10421   echo $ECHO_N "(cached) $ECHO_C" >&6
10422 else
10423   cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h.  */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h.  */
10429
10430 int
10431 main ()
10432 {
10433 #ifndef __GNUC__
10434        choke me
10435 #endif
10436
10437   ;
10438   return 0;
10439 }
10440 _ACEOF
10441 rm -f conftest.$ac_objext
10442 if { (ac_try="$ac_compile"
10443 case "(($ac_try" in
10444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445   *) ac_try_echo=$ac_try;;
10446 esac
10447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448   (eval "$ac_compile") 2>conftest.er1
10449   ac_status=$?
10450   grep -v '^ *+' conftest.er1 >conftest.err
10451   rm -f conftest.er1
10452   cat conftest.err >&5
10453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); } && {
10455          test -z "$ac_cxx_werror_flag" ||
10456          test ! -s conftest.err
10457        } && test -s conftest.$ac_objext; then
10458   ac_compiler_gnu=yes
10459 else
10460   echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10462
10463         ac_compiler_gnu=no
10464 fi
10465
10466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10467 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10468
10469 fi
10470 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
10471 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
10472 GXX=`test $ac_compiler_gnu = yes && echo yes`
10473 ac_test_CXXFLAGS=${CXXFLAGS+set}
10474 ac_save_CXXFLAGS=$CXXFLAGS
10475 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
10476 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
10477 if test "${ac_cv_prog_cxx_g+set}" = set; then
10478   echo $ECHO_N "(cached) $ECHO_C" >&6
10479 else
10480   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10481    ac_cxx_werror_flag=yes
10482    ac_cv_prog_cxx_g=no
10483    CXXFLAGS="-g"
10484    cat >conftest.$ac_ext <<_ACEOF
10485 /* confdefs.h.  */
10486 _ACEOF
10487 cat confdefs.h >>conftest.$ac_ext
10488 cat >>conftest.$ac_ext <<_ACEOF
10489 /* end confdefs.h.  */
10490
10491 int
10492 main ()
10493 {
10494
10495   ;
10496   return 0;
10497 }
10498 _ACEOF
10499 rm -f conftest.$ac_objext
10500 if { (ac_try="$ac_compile"
10501 case "(($ac_try" in
10502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503   *) ac_try_echo=$ac_try;;
10504 esac
10505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10506   (eval "$ac_compile") 2>conftest.er1
10507   ac_status=$?
10508   grep -v '^ *+' conftest.er1 >conftest.err
10509   rm -f conftest.er1
10510   cat conftest.err >&5
10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); } && {
10513          test -z "$ac_cxx_werror_flag" ||
10514          test ! -s conftest.err
10515        } && test -s conftest.$ac_objext; then
10516   ac_cv_prog_cxx_g=yes
10517 else
10518   echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10520
10521         CXXFLAGS=""
10522       cat >conftest.$ac_ext <<_ACEOF
10523 /* confdefs.h.  */
10524 _ACEOF
10525 cat confdefs.h >>conftest.$ac_ext
10526 cat >>conftest.$ac_ext <<_ACEOF
10527 /* end confdefs.h.  */
10528
10529 int
10530 main ()
10531 {
10532
10533   ;
10534   return 0;
10535 }
10536 _ACEOF
10537 rm -f conftest.$ac_objext
10538 if { (ac_try="$ac_compile"
10539 case "(($ac_try" in
10540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10541   *) ac_try_echo=$ac_try;;
10542 esac
10543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10544   (eval "$ac_compile") 2>conftest.er1
10545   ac_status=$?
10546   grep -v '^ *+' conftest.er1 >conftest.err
10547   rm -f conftest.er1
10548   cat conftest.err >&5
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); } && {
10551          test -z "$ac_cxx_werror_flag" ||
10552          test ! -s conftest.err
10553        } && test -s conftest.$ac_objext; then
10554   :
10555 else
10556   echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10558
10559         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10560          CXXFLAGS="-g"
10561          cat >conftest.$ac_ext <<_ACEOF
10562 /* confdefs.h.  */
10563 _ACEOF
10564 cat confdefs.h >>conftest.$ac_ext
10565 cat >>conftest.$ac_ext <<_ACEOF
10566 /* end confdefs.h.  */
10567
10568 int
10569 main ()
10570 {
10571
10572   ;
10573   return 0;
10574 }
10575 _ACEOF
10576 rm -f conftest.$ac_objext
10577 if { (ac_try="$ac_compile"
10578 case "(($ac_try" in
10579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10580   *) ac_try_echo=$ac_try;;
10581 esac
10582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10583   (eval "$ac_compile") 2>conftest.er1
10584   ac_status=$?
10585   grep -v '^ *+' conftest.er1 >conftest.err
10586   rm -f conftest.er1
10587   cat conftest.err >&5
10588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589   (exit $ac_status); } && {
10590          test -z "$ac_cxx_werror_flag" ||
10591          test ! -s conftest.err
10592        } && test -s conftest.$ac_objext; then
10593   ac_cv_prog_cxx_g=yes
10594 else
10595   echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10597
10598
10599 fi
10600
10601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602 fi
10603
10604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605 fi
10606
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10608    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10609 fi
10610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
10611 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
10612 if test "$ac_test_CXXFLAGS" = set; then
10613   CXXFLAGS=$ac_save_CXXFLAGS
10614 elif test $ac_cv_prog_cxx_g = yes; then
10615   if test "$GXX" = yes; then
10616     CXXFLAGS="-g -O2"
10617   else
10618     CXXFLAGS="-g"
10619   fi
10620 else
10621   if test "$GXX" = yes; then
10622     CXXFLAGS="-O2"
10623   else
10624     CXXFLAGS=
10625   fi
10626 fi
10627 ac_ext=c
10628 ac_cpp='$CPP $CPPFLAGS'
10629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10632
10633 depcc="$CXX"  am_compiler_list=
10634
10635 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10636 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
10637 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
10638   echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10641   # We make a subdir and do the tests there.  Otherwise we can end up
10642   # making bogus files that we don't know about and never remove.  For
10643   # instance it was reported that on HP-UX the gcc test will end up
10644   # making a dummy file named `D' -- because `-MD' means `put the output
10645   # in D'.
10646   mkdir conftest.dir
10647   # Copy depcomp to subdir because otherwise we won't find it if we're
10648   # using a relative directory.
10649   cp "$am_depcomp" conftest.dir
10650   cd conftest.dir
10651   # We will build objects and dependencies in a subdirectory because
10652   # it helps to detect inapplicable dependency modes.  For instance
10653   # both Tru64's cc and ICC support -MD to output dependencies as a
10654   # side effect of compilation, but ICC will put the dependencies in
10655   # the current directory while Tru64 will put them in the object
10656   # directory.
10657   mkdir sub
10658
10659   am_cv_CXX_dependencies_compiler_type=none
10660   if test "$am_compiler_list" = ""; then
10661      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10662   fi
10663   for depmode in $am_compiler_list; do
10664     # Setup a source with many dependencies, because some compilers
10665     # like to wrap large dependency lists on column 80 (with \), and
10666     # we should not choose a depcomp mode which is confused by this.
10667     #
10668     # We need to recreate these files for each test, as the compiler may
10669     # overwrite some of them when testing with obscure command lines.
10670     # This happens at least with the AIX C compiler.
10671     : > sub/conftest.c
10672     for i in 1 2 3 4 5 6; do
10673       echo '#include "conftst'$i'.h"' >> sub/conftest.c
10674       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10675       # Solaris 8's {/usr,}/bin/sh.
10676       touch sub/conftst$i.h
10677     done
10678     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10679
10680     case $depmode in
10681     nosideeffect)
10682       # after this tag, mechanisms are not by side-effect, so they'll
10683       # only be used when explicitly requested
10684       if test "x$enable_dependency_tracking" = xyes; then
10685         continue
10686       else
10687         break
10688       fi
10689       ;;
10690     none) break ;;
10691     esac
10692     # We check with `-c' and `-o' for the sake of the "dashmstdout"
10693     # mode.  It turns out that the SunPro C++ compiler does not properly
10694     # handle `-M -o', and we need to detect this.
10695     if depmode=$depmode \
10696        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10697        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10698        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
10699          >/dev/null 2>conftest.err &&
10700        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10701        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10702        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
10703        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10704       # icc doesn't choke on unknown options, it will just issue warnings
10705       # or remarks (even with -Werror).  So we grep stderr for any message
10706       # that says an option was ignored or not supported.
10707       # When given -MP, icc 7.0 and 7.1 complain thusly:
10708       #   icc: Command line warning: ignoring option '-M'; no argument required
10709       # The diagnosis changed in icc 8.0:
10710       #   icc: Command line remark: option '-MP' not supported
10711       if (grep 'ignoring option' conftest.err ||
10712           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10713         am_cv_CXX_dependencies_compiler_type=$depmode
10714         break
10715       fi
10716     fi
10717   done
10718
10719   cd ..
10720   rm -rf conftest.dir
10721 else
10722   am_cv_CXX_dependencies_compiler_type=none
10723 fi
10724
10725 fi
10726 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
10727 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
10728 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10729
10730  if
10731   test "x$enable_dependency_tracking" != xno \
10732   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10733   am__fastdepCXX_TRUE=
10734   am__fastdepCXX_FALSE='#'
10735 else
10736   am__fastdepCXX_TRUE='#'
10737   am__fastdepCXX_FALSE=
10738 fi
10739
10740
10741 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10742     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10743     (test "X$CXX" != "Xg++"))) ; then
10744   ac_ext=cpp
10745 ac_cpp='$CXXCPP $CPPFLAGS'
10746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10749 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10750 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
10751 if test -z "$CXXCPP"; then
10752   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10753   echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755       # Double quotes because CXXCPP needs to be expanded
10756     for CXXCPP in "$CXX -E" "/lib/cpp"
10757     do
10758       ac_preproc_ok=false
10759 for ac_cxx_preproc_warn_flag in '' yes
10760 do
10761   # Use a header file that comes with gcc, so configuring glibc
10762   # with a fresh cross-compiler works.
10763   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10764   # <limits.h> exists even on freestanding compilers.
10765   # On the NeXT, cc -E runs the code through the compiler's parser,
10766   # not just through cpp. "Syntax error" is here to catch this case.
10767   cat >conftest.$ac_ext <<_ACEOF
10768 /* confdefs.h.  */
10769 _ACEOF
10770 cat confdefs.h >>conftest.$ac_ext
10771 cat >>conftest.$ac_ext <<_ACEOF
10772 /* end confdefs.h.  */
10773 #ifdef __STDC__
10774 # include <limits.h>
10775 #else
10776 # include <assert.h>
10777 #endif
10778                      Syntax error
10779 _ACEOF
10780 if { (ac_try="$ac_cpp conftest.$ac_ext"
10781 case "(($ac_try" in
10782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783   *) ac_try_echo=$ac_try;;
10784 esac
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10787   ac_status=$?
10788   grep -v '^ *+' conftest.er1 >conftest.err
10789   rm -f conftest.er1
10790   cat conftest.err >&5
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); } >/dev/null && {
10793          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10794          test ! -s conftest.err
10795        }; then
10796   :
10797 else
10798   echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10800
10801   # Broken: fails on valid input.
10802 continue
10803 fi
10804
10805 rm -f conftest.err conftest.$ac_ext
10806
10807   # OK, works on sane cases.  Now check whether nonexistent headers
10808   # can be detected and how.
10809   cat >conftest.$ac_ext <<_ACEOF
10810 /* confdefs.h.  */
10811 _ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h.  */
10815 #include <ac_nonexistent.h>
10816 _ACEOF
10817 if { (ac_try="$ac_cpp conftest.$ac_ext"
10818 case "(($ac_try" in
10819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820   *) ac_try_echo=$ac_try;;
10821 esac
10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10824   ac_status=$?
10825   grep -v '^ *+' conftest.er1 >conftest.err
10826   rm -f conftest.er1
10827   cat conftest.err >&5
10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); } >/dev/null && {
10830          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10831          test ! -s conftest.err
10832        }; then
10833   # Broken: success on invalid input.
10834 continue
10835 else
10836   echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10838
10839   # Passes both tests.
10840 ac_preproc_ok=:
10841 break
10842 fi
10843
10844 rm -f conftest.err conftest.$ac_ext
10845
10846 done
10847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10848 rm -f conftest.err conftest.$ac_ext
10849 if $ac_preproc_ok; then
10850   break
10851 fi
10852
10853     done
10854     ac_cv_prog_CXXCPP=$CXXCPP
10855
10856 fi
10857   CXXCPP=$ac_cv_prog_CXXCPP
10858 else
10859   ac_cv_prog_CXXCPP=$CXXCPP
10860 fi
10861 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
10862 echo "${ECHO_T}$CXXCPP" >&6; }
10863 ac_preproc_ok=false
10864 for ac_cxx_preproc_warn_flag in '' yes
10865 do
10866   # Use a header file that comes with gcc, so configuring glibc
10867   # with a fresh cross-compiler works.
10868   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10869   # <limits.h> exists even on freestanding compilers.
10870   # On the NeXT, cc -E runs the code through the compiler's parser,
10871   # not just through cpp. "Syntax error" is here to catch this case.
10872   cat >conftest.$ac_ext <<_ACEOF
10873 /* confdefs.h.  */
10874 _ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h.  */
10878 #ifdef __STDC__
10879 # include <limits.h>
10880 #else
10881 # include <assert.h>
10882 #endif
10883                      Syntax error
10884 _ACEOF
10885 if { (ac_try="$ac_cpp conftest.$ac_ext"
10886 case "(($ac_try" in
10887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888   *) ac_try_echo=$ac_try;;
10889 esac
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10892   ac_status=$?
10893   grep -v '^ *+' conftest.er1 >conftest.err
10894   rm -f conftest.er1
10895   cat conftest.err >&5
10896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897   (exit $ac_status); } >/dev/null && {
10898          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10899          test ! -s conftest.err
10900        }; then
10901   :
10902 else
10903   echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.$ac_ext >&5
10905
10906   # Broken: fails on valid input.
10907 continue
10908 fi
10909
10910 rm -f conftest.err conftest.$ac_ext
10911
10912   # OK, works on sane cases.  Now check whether nonexistent headers
10913   # can be detected and how.
10914   cat >conftest.$ac_ext <<_ACEOF
10915 /* confdefs.h.  */
10916 _ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h.  */
10920 #include <ac_nonexistent.h>
10921 _ACEOF
10922 if { (ac_try="$ac_cpp conftest.$ac_ext"
10923 case "(($ac_try" in
10924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925   *) ac_try_echo=$ac_try;;
10926 esac
10927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10929   ac_status=$?
10930   grep -v '^ *+' conftest.er1 >conftest.err
10931   rm -f conftest.er1
10932   cat conftest.err >&5
10933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934   (exit $ac_status); } >/dev/null && {
10935          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10936          test ! -s conftest.err
10937        }; then
10938   # Broken: success on invalid input.
10939 continue
10940 else
10941   echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10943
10944   # Passes both tests.
10945 ac_preproc_ok=:
10946 break
10947 fi
10948
10949 rm -f conftest.err conftest.$ac_ext
10950
10951 done
10952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10953 rm -f conftest.err conftest.$ac_ext
10954 if $ac_preproc_ok; then
10955   :
10956 else
10957   _lt_caught_CXX_error=yes
10958 fi
10959
10960 ac_ext=c
10961 ac_cpp='$CPP $CPPFLAGS'
10962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10965
10966 else
10967   _lt_caught_CXX_error=yes
10968 fi
10969
10970
10971
10972
10973
10974 # Set options
10975
10976
10977
10978         enable_dlopen=no
10979
10980
10981   enable_win32_dll=no
10982
10983
10984             # Check whether --enable-shared was given.
10985 if test "${enable_shared+set}" = set; then
10986   enableval=$enable_shared; p=${PACKAGE-default}
10987     case $enableval in
10988     yes) enable_shared=yes ;;
10989     no) enable_shared=no ;;
10990     *)
10991       enable_shared=no
10992       # Look at the argument we got.  We use all the common list separators.
10993       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10994       for pkg in $enableval; do
10995         IFS="$lt_save_ifs"
10996         if test "X$pkg" = "X$p"; then
10997           enable_shared=yes
10998         fi
10999       done
11000       IFS="$lt_save_ifs"
11001       ;;
11002     esac
11003 else
11004   enable_shared=yes
11005 fi
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015   # Check whether --enable-static was given.
11016 if test "${enable_static+set}" = set; then
11017   enableval=$enable_static; p=${PACKAGE-default}
11018     case $enableval in
11019     yes) enable_static=yes ;;
11020     no) enable_static=no ;;
11021     *)
11022      enable_static=no
11023       # Look at the argument we got.  We use all the common list separators.
11024       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11025       for pkg in $enableval; do
11026         IFS="$lt_save_ifs"
11027         if test "X$pkg" = "X$p"; then
11028           enable_static=yes
11029         fi
11030       done
11031       IFS="$lt_save_ifs"
11032       ;;
11033     esac
11034 else
11035   enable_static=yes
11036 fi
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047 # Check whether --with-pic was given.
11048 if test "${with_pic+set}" = set; then
11049   withval=$with_pic; pic_mode="$withval"
11050 else
11051   pic_mode=default
11052 fi
11053
11054
11055 test -z "$pic_mode" && pic_mode=default
11056
11057
11058
11059
11060
11061
11062
11063   # Check whether --enable-fast-install was given.
11064 if test "${enable_fast_install+set}" = set; then
11065   enableval=$enable_fast_install; p=${PACKAGE-default}
11066     case $enableval in
11067     yes) enable_fast_install=yes ;;
11068     no) enable_fast_install=no ;;
11069     *)
11070       enable_fast_install=no
11071       # Look at the argument we got.  We use all the common list separators.
11072       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11073       for pkg in $enableval; do
11074         IFS="$lt_save_ifs"
11075         if test "X$pkg" = "X$p"; then
11076           enable_fast_install=yes
11077         fi
11078       done
11079       IFS="$lt_save_ifs"
11080       ;;
11081     esac
11082 else
11083   enable_fast_install=yes
11084 fi
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096 # This can be used to rebuild libtool when needed
11097 LIBTOOL_DEPS="$ltmain"
11098
11099 # Always use our own libtool.
11100 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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 test -z "$LN_S" && LN_S="ln -s"
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141 if test -n "${ZSH_VERSION+set}" ; then
11142    setopt NO_GLOB_SUBST
11143 fi
11144
11145 { echo "$as_me:$LINENO: checking for objdir" >&5
11146 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
11147 if test "${lt_cv_objdir+set}" = set; then
11148   echo $ECHO_N "(cached) $ECHO_C" >&6
11149 else
11150   rm -f .libs 2>/dev/null
11151 mkdir .libs 2>/dev/null
11152 if test -d .libs; then
11153   lt_cv_objdir=.libs
11154 else
11155   # MS-DOS does not allow filenames that begin with a dot.
11156   lt_cv_objdir=_libs
11157 fi
11158 rmdir .libs 2>/dev/null
11159 fi
11160 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11161 echo "${ECHO_T}$lt_cv_objdir" >&6; }
11162 objdir=$lt_cv_objdir
11163
11164
11165
11166
11167
11168 cat >>confdefs.h <<_ACEOF
11169 #define LT_OBJDIR "$lt_cv_objdir/"
11170 _ACEOF
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188 case $host_os in
11189 aix3*)
11190   # AIX sometimes has problems with the GCC collect2 program.  For some
11191   # reason, if we set the COLLECT_NAMES environment variable, the problems
11192   # vanish in a puff of smoke.
11193   if test "X${COLLECT_NAMES+set}" != Xset; then
11194     COLLECT_NAMES=
11195     export COLLECT_NAMES
11196   fi
11197   ;;
11198 esac
11199
11200 # Sed substitution that helps us do robust quoting.  It backslashifies
11201 # metacharacters that are still active within double-quoted strings.
11202 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11203
11204 # Same as above, but do not quote variable references.
11205 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11206
11207 # Sed substitution to delay expansion of an escaped shell variable in a
11208 # double_quote_subst'ed string.
11209 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11210
11211 # Sed substitution to delay expansion of an escaped single quote.
11212 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11213
11214 # Sed substitution to avoid accidental globbing in evaled expressions
11215 no_glob_subst='s/\*/\\\*/g'
11216
11217 # Global variables:
11218 ofile=libtool
11219 can_build_shared=yes
11220
11221 # All known linkers require a `.a' archive for static linking (except MSVC,
11222 # which needs '.lib').
11223 libext=a
11224
11225 with_gnu_ld="$lt_cv_prog_gnu_ld"
11226
11227 old_CC="$CC"
11228 old_CFLAGS="$CFLAGS"
11229
11230 # Set sane defaults for various variables
11231 test -z "$CC" && CC=cc
11232 test -z "$LTCC" && LTCC=$CC
11233 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11234 test -z "$LD" && LD=ld
11235 test -z "$ac_objext" && ac_objext=o
11236
11237 for cc_temp in $compiler""; do
11238   case $cc_temp in
11239     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11240     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11241     \-*) ;;
11242     *) break;;
11243   esac
11244 done
11245 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11246
11247
11248 # Only perform the check for file, if the check method requires it
11249 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11250 case $deplibs_check_method in
11251 file_magic*)
11252   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11253     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11254 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
11255 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11256   echo $ECHO_N "(cached) $ECHO_C" >&6
11257 else
11258   case $MAGIC_CMD in
11259 [\\/*] |  ?:[\\/]*)
11260   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11261   ;;
11262 *)
11263   lt_save_MAGIC_CMD="$MAGIC_CMD"
11264   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11265   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11266   for ac_dir in $ac_dummy; do
11267     IFS="$lt_save_ifs"
11268     test -z "$ac_dir" && ac_dir=.
11269     if test -f $ac_dir/${ac_tool_prefix}file; then
11270       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11271       if test -n "$file_magic_test_file"; then
11272         case $deplibs_check_method in
11273         "file_magic "*)
11274           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11275           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11276           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11277             $EGREP "$file_magic_regex" > /dev/null; then
11278             :
11279           else
11280             cat <<_LT_EOF 1>&2
11281
11282 *** Warning: the command libtool uses to detect shared libraries,
11283 *** $file_magic_cmd, produces output that libtool cannot recognize.
11284 *** The result is that libtool may fail to recognize shared libraries
11285 *** as such.  This will affect the creation of libtool libraries that
11286 *** depend on shared libraries, but programs linked with such libtool
11287 *** libraries will work regardless of this problem.  Nevertheless, you
11288 *** may want to report the problem to your system manager and/or to
11289 *** bug-libtool@gnu.org
11290
11291 _LT_EOF
11292           fi ;;
11293         esac
11294       fi
11295       break
11296     fi
11297   done
11298   IFS="$lt_save_ifs"
11299   MAGIC_CMD="$lt_save_MAGIC_CMD"
11300   ;;
11301 esac
11302 fi
11303
11304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11305 if test -n "$MAGIC_CMD"; then
11306   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11307 echo "${ECHO_T}$MAGIC_CMD" >&6; }
11308 else
11309   { echo "$as_me:$LINENO: result: no" >&5
11310 echo "${ECHO_T}no" >&6; }
11311 fi
11312
11313
11314
11315
11316
11317 if test -z "$lt_cv_path_MAGIC_CMD"; then
11318   if test -n "$ac_tool_prefix"; then
11319     { echo "$as_me:$LINENO: checking for file" >&5
11320 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
11321 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11322   echo $ECHO_N "(cached) $ECHO_C" >&6
11323 else
11324   case $MAGIC_CMD in
11325 [\\/*] |  ?:[\\/]*)
11326   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11327   ;;
11328 *)
11329   lt_save_MAGIC_CMD="$MAGIC_CMD"
11330   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11331   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11332   for ac_dir in $ac_dummy; do
11333     IFS="$lt_save_ifs"
11334     test -z "$ac_dir" && ac_dir=.
11335     if test -f $ac_dir/file; then
11336       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11337       if test -n "$file_magic_test_file"; then
11338         case $deplibs_check_method in
11339         "file_magic "*)
11340           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11341           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11342           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11343             $EGREP "$file_magic_regex" > /dev/null; then
11344             :
11345           else
11346             cat <<_LT_EOF 1>&2
11347
11348 *** Warning: the command libtool uses to detect shared libraries,
11349 *** $file_magic_cmd, produces output that libtool cannot recognize.
11350 *** The result is that libtool may fail to recognize shared libraries
11351 *** as such.  This will affect the creation of libtool libraries that
11352 *** depend on shared libraries, but programs linked with such libtool
11353 *** libraries will work regardless of this problem.  Nevertheless, you
11354 *** may want to report the problem to your system manager and/or to
11355 *** bug-libtool@gnu.org
11356
11357 _LT_EOF
11358           fi ;;
11359         esac
11360       fi
11361       break
11362     fi
11363   done
11364   IFS="$lt_save_ifs"
11365   MAGIC_CMD="$lt_save_MAGIC_CMD"
11366   ;;
11367 esac
11368 fi
11369
11370 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11371 if test -n "$MAGIC_CMD"; then
11372   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11373 echo "${ECHO_T}$MAGIC_CMD" >&6; }
11374 else
11375   { echo "$as_me:$LINENO: result: no" >&5
11376 echo "${ECHO_T}no" >&6; }
11377 fi
11378
11379
11380   else
11381     MAGIC_CMD=:
11382   fi
11383 fi
11384
11385   fi
11386   ;;
11387 esac
11388
11389 # Use C for the default configuration in the libtool script
11390
11391 lt_save_CC="$CC"
11392 ac_ext=c
11393 ac_cpp='$CPP $CPPFLAGS'
11394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11397
11398
11399 # Source file extension for C test sources.
11400 ac_ext=c
11401
11402 # Object file extension for compiled C test sources.
11403 objext=o
11404 objext=$objext
11405
11406 # Code to be used in simple compile tests
11407 lt_simple_compile_test_code="int some_variable = 0;"
11408
11409 # Code to be used in simple link tests
11410 lt_simple_link_test_code='int main(){return(0);}'
11411
11412
11413
11414
11415
11416
11417
11418 # If no C compiler was specified, use CC.
11419 LTCC=${LTCC-"$CC"}
11420
11421 # If no C compiler flags were specified, use CFLAGS.
11422 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11423
11424 # Allow CC to be a program name with arguments.
11425 compiler=$CC
11426
11427 # Save the default compiler, since it gets overwritten when the other
11428 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11429 compiler_DEFAULT=$CC
11430
11431 # save warnings/boilerplate of simple test code
11432 ac_outfile=conftest.$ac_objext
11433 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11434 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11435 _lt_compiler_boilerplate=`cat conftest.err`
11436 $RM conftest*
11437
11438 ac_outfile=conftest.$ac_objext
11439 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11440 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11441 _lt_linker_boilerplate=`cat conftest.err`
11442 $RM -r conftest*
11443
11444
11445 if test -n "$compiler"; then
11446
11447 lt_prog_compiler_no_builtin_flag=
11448
11449 if test "$GCC" = yes; then
11450   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11451
11452   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11453 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
11454 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11455   echo $ECHO_N "(cached) $ECHO_C" >&6
11456 else
11457   lt_cv_prog_compiler_rtti_exceptions=no
11458    ac_outfile=conftest.$ac_objext
11459    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11460    lt_compiler_flag="-fno-rtti -fno-exceptions"
11461    # Insert the option either (1) after the last *FLAGS variable, or
11462    # (2) before a word containing "conftest.", or (3) at the end.
11463    # Note that $ac_compile itself does not contain backslashes and begins
11464    # with a dollar sign (not a hyphen), so the echo should work correctly.
11465    # The option is referenced via a variable to avoid confusing sed.
11466    lt_compile=`echo "$ac_compile" | $SED \
11467    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11468    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11469    -e 's:$: $lt_compiler_flag:'`
11470    (eval echo "\"\$as_me:11470: $lt_compile\"" >&5)
11471    (eval "$lt_compile" 2>conftest.err)
11472    ac_status=$?
11473    cat conftest.err >&5
11474    echo "$as_me:11474: \$? = $ac_status" >&5
11475    if (exit $ac_status) && test -s "$ac_outfile"; then
11476      # The compiler can only warn and ignore the option if not recognized
11477      # So say no if there are warnings other than the usual output.
11478      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11479      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11480      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11481        lt_cv_prog_compiler_rtti_exceptions=yes
11482      fi
11483    fi
11484    $RM conftest*
11485
11486 fi
11487 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11488 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11489
11490 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11491     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11492 else
11493     :
11494 fi
11495
11496 fi
11497
11498
11499
11500
11501
11502
11503   lt_prog_compiler_wl=
11504 lt_prog_compiler_pic=
11505 lt_prog_compiler_static=
11506
11507 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11508 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11509
11510   if test "$GCC" = yes; then
11511     lt_prog_compiler_wl='-Wl,'
11512     lt_prog_compiler_static='-static'
11513
11514     case $host_os in
11515       aix*)
11516       # All AIX code is PIC.
11517       if test "$host_cpu" = ia64; then
11518         # AIX 5 now supports IA64 processor
11519         lt_prog_compiler_static='-Bstatic'
11520       fi
11521       ;;
11522
11523     amigaos*)
11524       case $host_cpu in
11525       powerpc)
11526             # see comment about AmigaOS4 .so support
11527             lt_prog_compiler_pic='-fPIC'
11528         ;;
11529       m68k)
11530             # FIXME: we need at least 68020 code to build shared libraries, but
11531             # adding the `-m68020' flag to GCC prevents building anything better,
11532             # like `-m68040'.
11533             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11534         ;;
11535       esac
11536       ;;
11537
11538     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11539       # PIC is the default for these OSes.
11540       ;;
11541
11542     mingw* | cygwin* | pw32* | os2*)
11543       # This hack is so that the source file can tell whether it is being
11544       # built for inclusion in a dll (and should export symbols for example).
11545       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11546       # (--disable-auto-import) libraries
11547       lt_prog_compiler_pic='-DDLL_EXPORT'
11548       ;;
11549
11550     darwin* | rhapsody*)
11551       # PIC is the default on this platform
11552       # Common symbols not allowed in MH_DYLIB files
11553       lt_prog_compiler_pic='-fno-common'
11554       ;;
11555
11556     hpux*)
11557       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11558       # not for PA HP-UX.
11559       case $host_cpu in
11560       hppa*64*|ia64*)
11561         # +Z the default
11562         ;;
11563       *)
11564         lt_prog_compiler_pic='-fPIC'
11565         ;;
11566       esac
11567       ;;
11568
11569     interix[3-9]*)
11570       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11571       # Instead, we relocate shared libraries at runtime.
11572       ;;
11573
11574     msdosdjgpp*)
11575       # Just because we use GCC doesn't mean we suddenly get shared libraries
11576       # on systems that don't support them.
11577       lt_prog_compiler_can_build_shared=no
11578       enable_shared=no
11579       ;;
11580
11581     *nto* | *qnx*)
11582       # QNX uses GNU C++, but need to define -shared option too, otherwise
11583       # it will coredump.
11584       lt_prog_compiler_pic='-fPIC -shared'
11585       ;;
11586
11587     sysv4*MP*)
11588       if test -d /usr/nec; then
11589         lt_prog_compiler_pic=-Kconform_pic
11590       fi
11591       ;;
11592
11593     *)
11594       lt_prog_compiler_pic='-fPIC'
11595       ;;
11596     esac
11597   else
11598     # PORTME Check for flag to pass linker flags through the system compiler.
11599     case $host_os in
11600     aix*)
11601       lt_prog_compiler_wl='-Wl,'
11602       if test "$host_cpu" = ia64; then
11603         # AIX 5 now supports IA64 processor
11604         lt_prog_compiler_static='-Bstatic'
11605       else
11606         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11607       fi
11608       ;;
11609
11610     mingw* | cygwin* | pw32* | os2*)
11611       # This hack is so that the source file can tell whether it is being
11612       # built for inclusion in a dll (and should export symbols for example).
11613       lt_prog_compiler_pic='-DDLL_EXPORT'
11614       ;;
11615
11616     hpux9* | hpux10* | hpux11*)
11617       lt_prog_compiler_wl='-Wl,'
11618       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11619       # not for PA HP-UX.
11620       case $host_cpu in
11621       hppa*64*|ia64*)
11622         # +Z the default
11623         ;;
11624       *)
11625         lt_prog_compiler_pic='+Z'
11626         ;;
11627       esac
11628       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11629       lt_prog_compiler_static='${wl}-a ${wl}archive'
11630       ;;
11631
11632     irix5* | irix6* | nonstopux*)
11633       lt_prog_compiler_wl='-Wl,'
11634       # PIC (with -KPIC) is the default.
11635       lt_prog_compiler_static='-non_shared'
11636       ;;
11637
11638     linux* | k*bsd*-gnu)
11639       case $cc_basename in
11640       icc* | ecc* | ifort*)
11641         lt_prog_compiler_wl='-Wl,'
11642         lt_prog_compiler_pic='-KPIC'
11643         lt_prog_compiler_static='-static'
11644         ;;
11645       pgcc* | pgf77* | pgf90* | pgf95*)
11646         # Portland Group compilers (*not* the Pentium gcc compiler,
11647         # which looks to be a dead project)
11648         lt_prog_compiler_wl='-Wl,'
11649         lt_prog_compiler_pic='-fpic'
11650         lt_prog_compiler_static='-Bstatic'
11651         ;;
11652       ccc*)
11653         lt_prog_compiler_wl='-Wl,'
11654         # All Alpha code is PIC.
11655         lt_prog_compiler_static='-non_shared'
11656         ;;
11657       xl*)
11658         # IBM XL C 8.0/Fortran 10.1 on PPC
11659         lt_prog_compiler_wl='-Wl,'
11660         lt_prog_compiler_pic='-qpic'
11661         lt_prog_compiler_static='-qstaticlink'
11662         ;;
11663       *)
11664         case `$CC -V 2>&1 | sed 5q` in
11665         *Sun\ C*)
11666           # Sun C 5.9
11667           lt_prog_compiler_pic='-KPIC'
11668           lt_prog_compiler_static='-Bstatic'
11669           lt_prog_compiler_wl='-Wl,'
11670           ;;
11671         *Sun\ F*)
11672           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11673           lt_prog_compiler_pic='-KPIC'
11674           lt_prog_compiler_static='-Bstatic'
11675           lt_prog_compiler_wl=''
11676           ;;
11677         esac
11678         ;;
11679       esac
11680       ;;
11681
11682     newsos6)
11683       lt_prog_compiler_pic='-KPIC'
11684       lt_prog_compiler_static='-Bstatic'
11685       ;;
11686
11687     *nto* | *qnx*)
11688       # QNX uses GNU C++, but need to define -shared option too, otherwise
11689       # it will coredump.
11690       lt_prog_compiler_pic='-fPIC -shared'
11691       ;;
11692
11693     osf3* | osf4* | osf5*)
11694       lt_prog_compiler_wl='-Wl,'
11695       # All OSF/1 code is PIC.
11696       lt_prog_compiler_static='-non_shared'
11697       ;;
11698
11699     rdos*)
11700       lt_prog_compiler_static='-non_shared'
11701       ;;
11702
11703     solaris*)
11704       lt_prog_compiler_pic='-KPIC'
11705       lt_prog_compiler_static='-Bstatic'
11706       case $cc_basename in
11707       f77* | f90* | f95*)
11708         lt_prog_compiler_wl='-Qoption ld ';;
11709       *)
11710         lt_prog_compiler_wl='-Wl,';;
11711       esac
11712       ;;
11713
11714     sunos4*)
11715       lt_prog_compiler_wl='-Qoption ld '
11716       lt_prog_compiler_pic='-PIC'
11717       lt_prog_compiler_static='-Bstatic'
11718       ;;
11719
11720     sysv4 | sysv4.2uw2* | sysv4.3*)
11721       lt_prog_compiler_wl='-Wl,'
11722       lt_prog_compiler_pic='-KPIC'
11723       lt_prog_compiler_static='-Bstatic'
11724       ;;
11725
11726     sysv4*MP*)
11727       if test -d /usr/nec ;then
11728         lt_prog_compiler_pic='-Kconform_pic'
11729         lt_prog_compiler_static='-Bstatic'
11730       fi
11731       ;;
11732
11733     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11734       lt_prog_compiler_wl='-Wl,'
11735       lt_prog_compiler_pic='-KPIC'
11736       lt_prog_compiler_static='-Bstatic'
11737       ;;
11738
11739     unicos*)
11740       lt_prog_compiler_wl='-Wl,'
11741       lt_prog_compiler_can_build_shared=no
11742       ;;
11743
11744     uts4*)
11745       lt_prog_compiler_pic='-pic'
11746       lt_prog_compiler_static='-Bstatic'
11747       ;;
11748
11749     *)
11750       lt_prog_compiler_can_build_shared=no
11751       ;;
11752     esac
11753   fi
11754
11755 case $host_os in
11756   # For platforms which do not support PIC, -DPIC is meaningless:
11757   *djgpp*)
11758     lt_prog_compiler_pic=
11759     ;;
11760   *)
11761     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11762     ;;
11763 esac
11764 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11765 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
11766
11767
11768
11769
11770
11771
11772 #
11773 # Check to make sure the PIC flag actually works.
11774 #
11775 if test -n "$lt_prog_compiler_pic"; then
11776   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11777 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
11778 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
11779   echo $ECHO_N "(cached) $ECHO_C" >&6
11780 else
11781   lt_cv_prog_compiler_pic_works=no
11782    ac_outfile=conftest.$ac_objext
11783    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11784    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11785    # Insert the option either (1) after the last *FLAGS variable, or
11786    # (2) before a word containing "conftest.", or (3) at the end.
11787    # Note that $ac_compile itself does not contain backslashes and begins
11788    # with a dollar sign (not a hyphen), so the echo should work correctly.
11789    # The option is referenced via a variable to avoid confusing sed.
11790    lt_compile=`echo "$ac_compile" | $SED \
11791    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11792    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11793    -e 's:$: $lt_compiler_flag:'`
11794    (eval echo "\"\$as_me:11794: $lt_compile\"" >&5)
11795    (eval "$lt_compile" 2>conftest.err)
11796    ac_status=$?
11797    cat conftest.err >&5
11798    echo "$as_me:11798: \$? = $ac_status" >&5
11799    if (exit $ac_status) && test -s "$ac_outfile"; then
11800      # The compiler can only warn and ignore the option if not recognized
11801      # So say no if there are warnings other than the usual output.
11802      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11803      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11804      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11805        lt_cv_prog_compiler_pic_works=yes
11806      fi
11807    fi
11808    $RM conftest*
11809
11810 fi
11811 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
11812 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
11813
11814 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11815     case $lt_prog_compiler_pic in
11816      "" | " "*) ;;
11817      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11818      esac
11819 else
11820     lt_prog_compiler_pic=
11821      lt_prog_compiler_can_build_shared=no
11822 fi
11823
11824 fi
11825
11826
11827
11828
11829
11830
11831 #
11832 # Check to make sure the static flag actually works.
11833 #
11834 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11835 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11836 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11837 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
11838   echo $ECHO_N "(cached) $ECHO_C" >&6
11839 else
11840   lt_cv_prog_compiler_static_works=no
11841    save_LDFLAGS="$LDFLAGS"
11842    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11843    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11844    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11845      # The linker can only warn and ignore the option if not recognized
11846      # So say no if there are warnings
11847      if test -s conftest.err; then
11848        # Append any errors to the config.log.
11849        cat conftest.err 1>&5
11850        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11851        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11852        if diff conftest.exp conftest.er2 >/dev/null; then
11853          lt_cv_prog_compiler_static_works=yes
11854        fi
11855      else
11856        lt_cv_prog_compiler_static_works=yes
11857      fi
11858    fi
11859    $RM -r conftest*
11860    LDFLAGS="$save_LDFLAGS"
11861
11862 fi
11863 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
11864 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
11865
11866 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11867     :
11868 else
11869     lt_prog_compiler_static=
11870 fi
11871
11872
11873
11874
11875
11876
11877
11878   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11879 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11880 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11881   echo $ECHO_N "(cached) $ECHO_C" >&6
11882 else
11883   lt_cv_prog_compiler_c_o=no
11884    $RM -r conftest 2>/dev/null
11885    mkdir conftest
11886    cd conftest
11887    mkdir out
11888    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11889
11890    lt_compiler_flag="-o out/conftest2.$ac_objext"
11891    # Insert the option either (1) after the last *FLAGS variable, or
11892    # (2) before a word containing "conftest.", or (3) at the end.
11893    # Note that $ac_compile itself does not contain backslashes and begins
11894    # with a dollar sign (not a hyphen), so the echo should work correctly.
11895    lt_compile=`echo "$ac_compile" | $SED \
11896    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11897    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11898    -e 's:$: $lt_compiler_flag:'`
11899    (eval echo "\"\$as_me:11899: $lt_compile\"" >&5)
11900    (eval "$lt_compile" 2>out/conftest.err)
11901    ac_status=$?
11902    cat out/conftest.err >&5
11903    echo "$as_me:11903: \$? = $ac_status" >&5
11904    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11905    then
11906      # The compiler can only warn and ignore the option if not recognized
11907      # So say no if there are warnings
11908      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11909      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11910      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11911        lt_cv_prog_compiler_c_o=yes
11912      fi
11913    fi
11914    chmod u+w . 2>&5
11915    $RM conftest*
11916    # SGI C++ compiler will create directory out/ii_files/ for
11917    # template instantiation
11918    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11919    $RM out/* && rmdir out
11920    cd ..
11921    $RM -r conftest
11922    $RM conftest*
11923
11924 fi
11925 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11926 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
11927
11928
11929
11930
11931
11932
11933   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11934 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11935 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
11936   echo $ECHO_N "(cached) $ECHO_C" >&6
11937 else
11938   lt_cv_prog_compiler_c_o=no
11939    $RM -r conftest 2>/dev/null
11940    mkdir conftest
11941    cd conftest
11942    mkdir out
11943    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11944
11945    lt_compiler_flag="-o out/conftest2.$ac_objext"
11946    # Insert the option either (1) after the last *FLAGS variable, or
11947    # (2) before a word containing "conftest.", or (3) at the end.
11948    # Note that $ac_compile itself does not contain backslashes and begins
11949    # with a dollar sign (not a hyphen), so the echo should work correctly.
11950    lt_compile=`echo "$ac_compile" | $SED \
11951    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11952    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11953    -e 's:$: $lt_compiler_flag:'`
11954    (eval echo "\"\$as_me:11954: $lt_compile\"" >&5)
11955    (eval "$lt_compile" 2>out/conftest.err)
11956    ac_status=$?
11957    cat out/conftest.err >&5
11958    echo "$as_me:11958: \$? = $ac_status" >&5
11959    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11960    then
11961      # The compiler can only warn and ignore the option if not recognized
11962      # So say no if there are warnings
11963      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11964      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11965      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11966        lt_cv_prog_compiler_c_o=yes
11967      fi
11968    fi
11969    chmod u+w . 2>&5
11970    $RM conftest*
11971    # SGI C++ compiler will create directory out/ii_files/ for
11972    # template instantiation
11973    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11974    $RM out/* && rmdir out
11975    cd ..
11976    $RM -r conftest
11977    $RM conftest*
11978
11979 fi
11980 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11981 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
11982
11983
11984
11985
11986 hard_links="nottested"
11987 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11988   # do not overwrite the value of need_locks provided by the user
11989   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11990 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11991   hard_links=yes
11992   $RM conftest*
11993   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11994   touch conftest.a
11995   ln conftest.a conftest.b 2>&5 || hard_links=no
11996   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11997   { echo "$as_me:$LINENO: result: $hard_links" >&5
11998 echo "${ECHO_T}$hard_links" >&6; }
11999   if test "$hard_links" = no; then
12000     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12001 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12002     need_locks=warn
12003   fi
12004 else
12005   need_locks=no
12006 fi
12007
12008
12009
12010
12011
12012
12013   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12014 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12015
12016   runpath_var=
12017   allow_undefined_flag=
12018   always_export_symbols=no
12019   archive_cmds=
12020   archive_expsym_cmds=
12021   compiler_needs_object=no
12022   enable_shared_with_static_runtimes=no
12023   export_dynamic_flag_spec=
12024   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12025   hardcode_automatic=no
12026   hardcode_direct=no
12027   hardcode_direct_absolute=no
12028   hardcode_libdir_flag_spec=
12029   hardcode_libdir_flag_spec_ld=
12030   hardcode_libdir_separator=
12031   hardcode_minus_L=no
12032   hardcode_shlibpath_var=unsupported
12033   inherit_rpath=no
12034   link_all_deplibs=unknown
12035   module_cmds=
12036   module_expsym_cmds=
12037   old_archive_from_new_cmds=
12038   old_archive_from_expsyms_cmds=
12039   thread_safe_flag_spec=
12040   whole_archive_flag_spec=
12041   # include_expsyms should be a list of space-separated symbols to be *always*
12042   # included in the symbol list
12043   include_expsyms=
12044   # exclude_expsyms can be an extended regexp of symbols to exclude
12045   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12046   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12047   # as well as any symbol that contains `d'.
12048   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12049   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12050   # platforms (ab)use it in PIC code, but their linkers get confused if
12051   # the symbol is explicitly referenced.  Since portable code cannot
12052   # rely on this symbol name, it's probably fine to never include it in
12053   # preloaded symbol tables.
12054   # Exclude shared library initialization/finalization symbols.
12055   extract_expsyms_cmds=
12056
12057   case $host_os in
12058   cygwin* | mingw* | pw32*)
12059     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12060     # When not using gcc, we currently assume that we are using
12061     # Microsoft Visual C++.
12062     if test "$GCC" != yes; then
12063       with_gnu_ld=no
12064     fi
12065     ;;
12066   interix*)
12067     # we just hope/assume this is gcc and not c89 (= MSVC++)
12068     with_gnu_ld=yes
12069     ;;
12070   openbsd*)
12071     with_gnu_ld=no
12072     ;;
12073   esac
12074
12075   ld_shlibs=yes
12076   if test "$with_gnu_ld" = yes; then
12077     # If archive_cmds runs LD, not CC, wlarc should be empty
12078     wlarc='${wl}'
12079
12080     # Set some defaults for GNU ld with shared library support. These
12081     # are reset later if shared libraries are not supported. Putting them
12082     # here allows them to be overridden if necessary.
12083     runpath_var=LD_RUN_PATH
12084     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12085     export_dynamic_flag_spec='${wl}--export-dynamic'
12086     # ancient GNU ld didn't support --whole-archive et. al.
12087     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12088       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12089     else
12090       whole_archive_flag_spec=
12091     fi
12092     supports_anon_versioning=no
12093     case `$LD -v 2>&1` in
12094       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12095       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12096       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12097       *\ 2.11.*) ;; # other 2.11 versions
12098       *) supports_anon_versioning=yes ;;
12099     esac
12100
12101     # See if GNU ld supports shared libraries.
12102     case $host_os in
12103     aix[3-9]*)
12104       # On AIX/PPC, the GNU linker is very broken
12105       if test "$host_cpu" != ia64; then
12106         ld_shlibs=no
12107         cat <<_LT_EOF 1>&2
12108
12109 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12110 *** to be unable to reliably create shared libraries on AIX.
12111 *** Therefore, libtool is disabling shared libraries support.  If you
12112 *** really care for shared libraries, you may want to modify your PATH
12113 *** so that a non-GNU linker is found, and then restart.
12114
12115 _LT_EOF
12116       fi
12117       ;;
12118
12119     amigaos*)
12120       case $host_cpu in
12121       powerpc)
12122             # see comment about AmigaOS4 .so support
12123             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12124             archive_expsym_cmds=''
12125         ;;
12126       m68k)
12127             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)'
12128             hardcode_libdir_flag_spec='-L$libdir'
12129             hardcode_minus_L=yes
12130         ;;
12131       esac
12132       ;;
12133
12134     beos*)
12135       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12136         allow_undefined_flag=unsupported
12137         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12138         # support --undefined.  This deserves some investigation.  FIXME
12139         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12140       else
12141         ld_shlibs=no
12142       fi
12143       ;;
12144
12145     cygwin* | mingw* | pw32*)
12146       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12147       # as there is no search path for DLLs.
12148       hardcode_libdir_flag_spec='-L$libdir'
12149       allow_undefined_flag=unsupported
12150       always_export_symbols=no
12151       enable_shared_with_static_runtimes=yes
12152       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12153
12154       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12155         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12156         # If the export-symbols file already is a .def file (1st line
12157         # is EXPORTS), use it as is; otherwise, prepend...
12158         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12159           cp $export_symbols $output_objdir/$soname.def;
12160         else
12161           echo EXPORTS > $output_objdir/$soname.def;
12162           cat $export_symbols >> $output_objdir/$soname.def;
12163         fi~
12164         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12165       else
12166         ld_shlibs=no
12167       fi
12168       ;;
12169
12170     interix[3-9]*)
12171       hardcode_direct=no
12172       hardcode_shlibpath_var=no
12173       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12174       export_dynamic_flag_spec='${wl}-E'
12175       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12176       # Instead, shared libraries are loaded at an image base (0x10000000 by
12177       # default) and relocated if they conflict, which is a slow very memory
12178       # consuming and fragmenting process.  To avoid this, we pick a random,
12179       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12180       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12181       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12182       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'
12183       ;;
12184
12185     gnu* | linux* | tpf* | k*bsd*-gnu)
12186       tmp_diet=no
12187       if test "$host_os" = linux-dietlibc; then
12188         case $cc_basename in
12189           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12190         esac
12191       fi
12192       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12193          && test "$tmp_diet" = no
12194       then
12195         tmp_addflag=
12196         tmp_sharedflag='-shared'
12197         case $cc_basename,$host_cpu in
12198         pgcc*)                          # Portland Group C compiler
12199           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'
12200           tmp_addflag=' $pic_flag'
12201           ;;
12202         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
12203           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'
12204           tmp_addflag=' $pic_flag -Mnomain' ;;
12205         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12206           tmp_addflag=' -i_dynamic' ;;
12207         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12208           tmp_addflag=' -i_dynamic -nofor_main' ;;
12209         ifc* | ifort*)                  # Intel Fortran compiler
12210           tmp_addflag=' -nofor_main' ;;
12211         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
12212           tmp_sharedflag='-qmkshrobj'
12213           tmp_addflag= ;;
12214         esac
12215         case `$CC -V 2>&1 | sed 5q` in
12216         *Sun\ C*)                       # Sun C 5.9
12217           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'
12218           compiler_needs_object=yes
12219           tmp_sharedflag='-G' ;;
12220         *Sun\ F*)                       # Sun Fortran 8.3
12221           tmp_sharedflag='-G' ;;
12222         esac
12223         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12224
12225         if test "x$supports_anon_versioning" = xyes; then
12226           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12227             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12228             echo "local: *; };" >> $output_objdir/$libname.ver~
12229             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12230         fi
12231
12232         case $cc_basename in
12233         xlf*)
12234           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12235           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12236           hardcode_libdir_flag_spec=
12237           hardcode_libdir_flag_spec_ld='-rpath $libdir'
12238           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12239           if test "x$supports_anon_versioning" = xyes; then
12240             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12241               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12242               echo "local: *; };" >> $output_objdir/$libname.ver~
12243               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12244           fi
12245           ;;
12246         esac
12247       else
12248         ld_shlibs=no
12249       fi
12250       ;;
12251
12252     netbsd* | netbsdelf*-gnu)
12253       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12254         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12255         wlarc=
12256       else
12257         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12258         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12259       fi
12260       ;;
12261
12262     solaris*)
12263       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12264         ld_shlibs=no
12265         cat <<_LT_EOF 1>&2
12266
12267 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12268 *** create shared libraries on Solaris systems.  Therefore, libtool
12269 *** is disabling shared libraries support.  We urge you to upgrade GNU
12270 *** binutils to release 2.9.1 or newer.  Another option is to modify
12271 *** your PATH or compiler configuration so that the native linker is
12272 *** used, and then restart.
12273
12274 _LT_EOF
12275       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12276         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12277         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12278       else
12279         ld_shlibs=no
12280       fi
12281       ;;
12282
12283     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12284       case `$LD -v 2>&1` in
12285         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12286         ld_shlibs=no
12287         cat <<_LT_EOF 1>&2
12288
12289 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12290 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12291 *** is disabling shared libraries support.  We urge you to upgrade GNU
12292 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12293 *** your PATH or compiler configuration so that the native linker is
12294 *** used, and then restart.
12295
12296 _LT_EOF
12297         ;;
12298         *)
12299           # For security reasons, it is highly recommended that you always
12300           # use absolute paths for naming shared libraries, and exclude the
12301           # DT_RUNPATH tag from executables and libraries.  But doing so
12302           # requires that you compile everything twice, which is a pain.
12303           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12304             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12305             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12306             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12307           else
12308             ld_shlibs=no
12309           fi
12310         ;;
12311       esac
12312       ;;
12313
12314     sunos4*)
12315       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12316       wlarc=
12317       hardcode_direct=yes
12318       hardcode_shlibpath_var=no
12319       ;;
12320
12321     *)
12322       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12323         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12324         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12325       else
12326         ld_shlibs=no
12327       fi
12328       ;;
12329     esac
12330
12331     if test "$ld_shlibs" = no; then
12332       runpath_var=
12333       hardcode_libdir_flag_spec=
12334       export_dynamic_flag_spec=
12335       whole_archive_flag_spec=
12336     fi
12337   else
12338     # PORTME fill in a description of your system's linker (not GNU ld)
12339     case $host_os in
12340     aix3*)
12341       allow_undefined_flag=unsupported
12342       always_export_symbols=yes
12343       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'
12344       # Note: this linker hardcodes the directories in LIBPATH if there
12345       # are no directories specified by -L.
12346       hardcode_minus_L=yes
12347       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12348         # Neither direct hardcoding nor static linking is supported with a
12349         # broken collect2.
12350         hardcode_direct=unsupported
12351       fi
12352       ;;
12353
12354     aix[4-9]*)
12355       if test "$host_cpu" = ia64; then
12356         # On IA64, the linker does run time linking by default, so we don't
12357         # have to do anything special.
12358         aix_use_runtimelinking=no
12359         exp_sym_flag='-Bexport'
12360         no_entry_flag=""
12361       else
12362         # If we're using GNU nm, then we don't want the "-C" option.
12363         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12364         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12365           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'
12366         else
12367           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'
12368         fi
12369         aix_use_runtimelinking=no
12370
12371         # Test if we are trying to use run time linking or normal
12372         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12373         # need to do runtime linking.
12374         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12375           for ld_flag in $LDFLAGS; do
12376           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12377             aix_use_runtimelinking=yes
12378             break
12379           fi
12380           done
12381           ;;
12382         esac
12383
12384         exp_sym_flag='-bexport'
12385         no_entry_flag='-bnoentry'
12386       fi
12387
12388       # When large executables or shared objects are built, AIX ld can
12389       # have problems creating the table of contents.  If linking a library
12390       # or program results in "error TOC overflow" add -mminimal-toc to
12391       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12392       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12393
12394       archive_cmds=''
12395       hardcode_direct=yes
12396       hardcode_direct_absolute=yes
12397       hardcode_libdir_separator=':'
12398       link_all_deplibs=yes
12399       file_list_spec='${wl}-f,'
12400
12401       if test "$GCC" = yes; then
12402         case $host_os in aix4.[012]|aix4.[012].*)
12403         # We only want to do this on AIX 4.2 and lower, the check
12404         # below for broken collect2 doesn't work under 4.3+
12405           collect2name=`${CC} -print-prog-name=collect2`
12406           if test -f "$collect2name" &&
12407            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12408           then
12409           # We have reworked collect2
12410           :
12411           else
12412           # We have old collect2
12413           hardcode_direct=unsupported
12414           # It fails to find uninstalled libraries when the uninstalled
12415           # path is not listed in the libpath.  Setting hardcode_minus_L
12416           # to unsupported forces relinking
12417           hardcode_minus_L=yes
12418           hardcode_libdir_flag_spec='-L$libdir'
12419           hardcode_libdir_separator=
12420           fi
12421           ;;
12422         esac
12423         shared_flag='-shared'
12424         if test "$aix_use_runtimelinking" = yes; then
12425           shared_flag="$shared_flag "'${wl}-G'
12426         fi
12427         link_all_deplibs=no
12428       else
12429         # not using gcc
12430         if test "$host_cpu" = ia64; then
12431         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12432         # chokes on -Wl,-G. The following line is correct:
12433           shared_flag='-G'
12434         else
12435           if test "$aix_use_runtimelinking" = yes; then
12436             shared_flag='${wl}-G'
12437           else
12438             shared_flag='${wl}-bM:SRE'
12439           fi
12440         fi
12441       fi
12442
12443       # It seems that -bexpall does not export symbols beginning with
12444       # underscore (_), so it is better to generate a list of symbols to export.
12445       always_export_symbols=yes
12446       if test "$aix_use_runtimelinking" = yes; then
12447         # Warning - without using the other runtime loading flags (-brtl),
12448         # -berok will link without error, but may produce a broken library.
12449         allow_undefined_flag='-berok'
12450         # Determine the default libpath from the value encoded in an
12451         # empty executable.
12452         cat >conftest.$ac_ext <<_ACEOF
12453 /* confdefs.h.  */
12454 _ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h.  */
12458
12459 int
12460 main ()
12461 {
12462
12463   ;
12464   return 0;
12465 }
12466 _ACEOF
12467 rm -f conftest.$ac_objext conftest$ac_exeext
12468 if { (ac_try="$ac_link"
12469 case "(($ac_try" in
12470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471   *) ac_try_echo=$ac_try;;
12472 esac
12473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474   (eval "$ac_link") 2>conftest.er1
12475   ac_status=$?
12476   grep -v '^ *+' conftest.er1 >conftest.err
12477   rm -f conftest.er1
12478   cat conftest.err >&5
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); } && {
12481          test -z "$ac_c_werror_flag" ||
12482          test ! -s conftest.err
12483        } && test -s conftest$ac_exeext &&
12484        $as_test_x conftest$ac_exeext; then
12485
12486 lt_aix_libpath_sed='
12487     /Import File Strings/,/^$/ {
12488         /^0/ {
12489             s/^0  *\(.*\)$/\1/
12490             p
12491         }
12492     }'
12493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12494 # Check for a 64-bit object if we didn't find anything.
12495 if test -z "$aix_libpath"; then
12496   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12497 fi
12498 else
12499   echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.$ac_ext >&5
12501
12502
12503 fi
12504
12505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12506       conftest$ac_exeext conftest.$ac_ext
12507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12508
12509         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12510         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"
12511       else
12512         if test "$host_cpu" = ia64; then
12513           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12514           allow_undefined_flag="-z nodefs"
12515           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"
12516         else
12517          # Determine the default libpath from the value encoded in an
12518          # empty executable.
12519          cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h.  */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h.  */
12525
12526 int
12527 main ()
12528 {
12529
12530   ;
12531   return 0;
12532 }
12533 _ACEOF
12534 rm -f conftest.$ac_objext conftest$ac_exeext
12535 if { (ac_try="$ac_link"
12536 case "(($ac_try" in
12537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538   *) ac_try_echo=$ac_try;;
12539 esac
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541   (eval "$ac_link") 2>conftest.er1
12542   ac_status=$?
12543   grep -v '^ *+' conftest.er1 >conftest.err
12544   rm -f conftest.er1
12545   cat conftest.err >&5
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); } && {
12548          test -z "$ac_c_werror_flag" ||
12549          test ! -s conftest.err
12550        } && test -s conftest$ac_exeext &&
12551        $as_test_x conftest$ac_exeext; then
12552
12553 lt_aix_libpath_sed='
12554     /Import File Strings/,/^$/ {
12555         /^0/ {
12556             s/^0  *\(.*\)$/\1/
12557             p
12558         }
12559     }'
12560 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12561 # Check for a 64-bit object if we didn't find anything.
12562 if test -z "$aix_libpath"; then
12563   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12564 fi
12565 else
12566   echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12568
12569
12570 fi
12571
12572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12573       conftest$ac_exeext conftest.$ac_ext
12574 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12575
12576          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12577           # Warning - without using the other run time loading flags,
12578           # -berok will link without error, but may produce a broken library.
12579           no_undefined_flag=' ${wl}-bernotok'
12580           allow_undefined_flag=' ${wl}-berok'
12581           # Exported symbols can be pulled into shared objects from archives
12582           whole_archive_flag_spec='$convenience'
12583           archive_cmds_need_lc=yes
12584           # This is similar to how AIX traditionally builds its shared libraries.
12585           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'
12586         fi
12587       fi
12588       ;;
12589
12590     amigaos*)
12591       case $host_cpu in
12592       powerpc)
12593             # see comment about AmigaOS4 .so support
12594             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12595             archive_expsym_cmds=''
12596         ;;
12597       m68k)
12598             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)'
12599             hardcode_libdir_flag_spec='-L$libdir'
12600             hardcode_minus_L=yes
12601         ;;
12602       esac
12603       ;;
12604
12605     bsdi[45]*)
12606       export_dynamic_flag_spec=-rdynamic
12607       ;;
12608
12609     cygwin* | mingw* | pw32*)
12610       # When not using gcc, we currently assume that we are using
12611       # Microsoft Visual C++.
12612       # hardcode_libdir_flag_spec is actually meaningless, as there is
12613       # no search path for DLLs.
12614       hardcode_libdir_flag_spec=' '
12615       allow_undefined_flag=unsupported
12616       # Tell ltmain to make .lib files, not .a files.
12617       libext=lib
12618       # Tell ltmain to make .dll files, not .so files.
12619       shrext_cmds=".dll"
12620       # FIXME: Setting linknames here is a bad hack.
12621       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12622       # The linker will automatically build a .lib file if we build a DLL.
12623       old_archive_from_new_cmds='true'
12624       # FIXME: Should let the user specify the lib program.
12625       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12626       fix_srcfile_path='`cygpath -w "$srcfile"`'
12627       enable_shared_with_static_runtimes=yes
12628       ;;
12629
12630     darwin* | rhapsody*)
12631
12632
12633   archive_cmds_need_lc=no
12634   hardcode_direct=no
12635   hardcode_automatic=yes
12636   hardcode_shlibpath_var=unsupported
12637   whole_archive_flag_spec=''
12638   link_all_deplibs=yes
12639   allow_undefined_flag="$_lt_dar_allow_undefined"
12640   if test "$GCC" = "yes"; then
12641     output_verbose_link_cmd=echo
12642     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12643     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12644     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}"
12645     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}"
12646
12647   else
12648   ld_shlibs=no
12649   fi
12650
12651       ;;
12652
12653     dgux*)
12654       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12655       hardcode_libdir_flag_spec='-L$libdir'
12656       hardcode_shlibpath_var=no
12657       ;;
12658
12659     freebsd1*)
12660       ld_shlibs=no
12661       ;;
12662
12663     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12664     # support.  Future versions do this automatically, but an explicit c++rt0.o
12665     # does not break anything, and helps significantly (at the cost of a little
12666     # extra space).
12667     freebsd2.2*)
12668       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12669       hardcode_libdir_flag_spec='-R$libdir'
12670       hardcode_direct=yes
12671       hardcode_shlibpath_var=no
12672       ;;
12673
12674     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12675     freebsd2*)
12676       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12677       hardcode_direct=yes
12678       hardcode_minus_L=yes
12679       hardcode_shlibpath_var=no
12680       ;;
12681
12682     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12683     freebsd* | dragonfly*)
12684       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12685       hardcode_libdir_flag_spec='-R$libdir'
12686       hardcode_direct=yes
12687       hardcode_shlibpath_var=no
12688       ;;
12689
12690     hpux9*)
12691       if test "$GCC" = yes; then
12692         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'
12693       else
12694         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'
12695       fi
12696       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12697       hardcode_libdir_separator=:
12698       hardcode_direct=yes
12699
12700       # hardcode_minus_L: Not really in the search PATH,
12701       # but as the default location of the library.
12702       hardcode_minus_L=yes
12703       export_dynamic_flag_spec='${wl}-E'
12704       ;;
12705
12706     hpux10*)
12707       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12708         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12709       else
12710         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12711       fi
12712       if test "$with_gnu_ld" = no; then
12713         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12714         hardcode_libdir_flag_spec_ld='+b $libdir'
12715         hardcode_libdir_separator=:
12716         hardcode_direct=yes
12717         hardcode_direct_absolute=yes
12718         export_dynamic_flag_spec='${wl}-E'
12719         # hardcode_minus_L: Not really in the search PATH,
12720         # but as the default location of the library.
12721         hardcode_minus_L=yes
12722       fi
12723       ;;
12724
12725     hpux11*)
12726       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12727         case $host_cpu in
12728         hppa*64*)
12729           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12730           ;;
12731         ia64*)
12732           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12733           ;;
12734         *)
12735           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12736           ;;
12737         esac
12738       else
12739         case $host_cpu in
12740         hppa*64*)
12741           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12742           ;;
12743         ia64*)
12744           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12745           ;;
12746         *)
12747           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12748           ;;
12749         esac
12750       fi
12751       if test "$with_gnu_ld" = no; then
12752         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12753         hardcode_libdir_separator=:
12754
12755         case $host_cpu in
12756         hppa*64*|ia64*)
12757           hardcode_direct=no
12758           hardcode_shlibpath_var=no
12759           ;;
12760         *)
12761           hardcode_direct=yes
12762           hardcode_direct_absolute=yes
12763           export_dynamic_flag_spec='${wl}-E'
12764
12765           # hardcode_minus_L: Not really in the search PATH,
12766           # but as the default location of the library.
12767           hardcode_minus_L=yes
12768           ;;
12769         esac
12770       fi
12771       ;;
12772
12773     irix5* | irix6* | nonstopux*)
12774       if test "$GCC" = yes; then
12775         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'
12776         # Try to use the -exported_symbol ld option, if it does not
12777         # work, assume that -exports_file does not work either and
12778         # implicitly export all symbols.
12779         save_LDFLAGS="$LDFLAGS"
12780         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12781         cat >conftest.$ac_ext <<_ACEOF
12782 int foo(void) {}
12783 _ACEOF
12784 rm -f conftest.$ac_objext conftest$ac_exeext
12785 if { (ac_try="$ac_link"
12786 case "(($ac_try" in
12787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788   *) ac_try_echo=$ac_try;;
12789 esac
12790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791   (eval "$ac_link") 2>conftest.er1
12792   ac_status=$?
12793   grep -v '^ *+' conftest.er1 >conftest.err
12794   rm -f conftest.er1
12795   cat conftest.err >&5
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); } && {
12798          test -z "$ac_c_werror_flag" ||
12799          test ! -s conftest.err
12800        } && test -s conftest$ac_exeext &&
12801        $as_test_x conftest$ac_exeext; then
12802   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'
12803
12804 else
12805   echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12807
12808
12809 fi
12810
12811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12812       conftest$ac_exeext conftest.$ac_ext
12813         LDFLAGS="$save_LDFLAGS"
12814       else
12815         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'
12816         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'
12817       fi
12818       archive_cmds_need_lc='no'
12819       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12820       hardcode_libdir_separator=:
12821       inherit_rpath=yes
12822       link_all_deplibs=yes
12823       ;;
12824
12825     netbsd* | netbsdelf*-gnu)
12826       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12827         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12828       else
12829         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12830       fi
12831       hardcode_libdir_flag_spec='-R$libdir'
12832       hardcode_direct=yes
12833       hardcode_shlibpath_var=no
12834       ;;
12835
12836     newsos6)
12837       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12838       hardcode_direct=yes
12839       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12840       hardcode_libdir_separator=:
12841       hardcode_shlibpath_var=no
12842       ;;
12843
12844     *nto* | *qnx*)
12845       ;;
12846
12847     openbsd*)
12848       if test -f /usr/libexec/ld.so; then
12849         hardcode_direct=yes
12850         hardcode_shlibpath_var=no
12851         hardcode_direct_absolute=yes
12852         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12853           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12854           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12855           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12856           export_dynamic_flag_spec='${wl}-E'
12857         else
12858           case $host_os in
12859            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12860              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12861              hardcode_libdir_flag_spec='-R$libdir'
12862              ;;
12863            *)
12864              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12865              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12866              ;;
12867           esac
12868         fi
12869       else
12870         ld_shlibs=no
12871       fi
12872       ;;
12873
12874     os2*)
12875       hardcode_libdir_flag_spec='-L$libdir'
12876       hardcode_minus_L=yes
12877       allow_undefined_flag=unsupported
12878       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'
12879       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12880       ;;
12881
12882     osf3*)
12883       if test "$GCC" = yes; then
12884         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12885         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'
12886       else
12887         allow_undefined_flag=' -expect_unresolved \*'
12888         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'
12889       fi
12890       archive_cmds_need_lc='no'
12891       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12892       hardcode_libdir_separator=:
12893       ;;
12894
12895     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12896       if test "$GCC" = yes; then
12897         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12898         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'
12899         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12900       else
12901         allow_undefined_flag=' -expect_unresolved \*'
12902         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'
12903         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~
12904         $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'
12905
12906         # Both c and cxx compiler support -rpath directly
12907         hardcode_libdir_flag_spec='-rpath $libdir'
12908       fi
12909       archive_cmds_need_lc='no'
12910       hardcode_libdir_separator=:
12911       ;;
12912
12913     solaris*)
12914       no_undefined_flag=' -z defs'
12915       if test "$GCC" = yes; then
12916         wlarc='${wl}'
12917         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12918         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12919           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12920       else
12921         case `$CC -V 2>&1` in
12922         *"Compilers 5.0"*)
12923           wlarc=''
12924           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12925           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12926           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12927           ;;
12928         *)
12929           wlarc='${wl}'
12930           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12931           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12932           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12933           ;;
12934         esac
12935       fi
12936       hardcode_libdir_flag_spec='-R$libdir'
12937       hardcode_shlibpath_var=no
12938       case $host_os in
12939       solaris2.[0-5] | solaris2.[0-5].*) ;;
12940       *)
12941         # The compiler driver will combine and reorder linker options,
12942         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12943         # but is careful enough not to reorder.
12944         # Supported since Solaris 2.6 (maybe 2.5.1?)
12945         if test "$GCC" = yes; then
12946           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12947         else
12948           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12949         fi
12950         ;;
12951       esac
12952       link_all_deplibs=yes
12953       ;;
12954
12955     sunos4*)
12956       if test "x$host_vendor" = xsequent; then
12957         # Use $CC to link under sequent, because it throws in some extra .o
12958         # files that make .init and .fini sections work.
12959         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12960       else
12961         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12962       fi
12963       hardcode_libdir_flag_spec='-L$libdir'
12964       hardcode_direct=yes
12965       hardcode_minus_L=yes
12966       hardcode_shlibpath_var=no
12967       ;;
12968
12969     sysv4)
12970       case $host_vendor in
12971         sni)
12972           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12973           hardcode_direct=yes # is this really true???
12974         ;;
12975         siemens)
12976           ## LD is ld it makes a PLAMLIB
12977           ## CC just makes a GrossModule.
12978           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12979           reload_cmds='$CC -r -o $output$reload_objs'
12980           hardcode_direct=no
12981         ;;
12982         motorola)
12983           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12984           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12985         ;;
12986       esac
12987       runpath_var='LD_RUN_PATH'
12988       hardcode_shlibpath_var=no
12989       ;;
12990
12991     sysv4.3*)
12992       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12993       hardcode_shlibpath_var=no
12994       export_dynamic_flag_spec='-Bexport'
12995       ;;
12996
12997     sysv4*MP*)
12998       if test -d /usr/nec; then
12999         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13000         hardcode_shlibpath_var=no
13001         runpath_var=LD_RUN_PATH
13002         hardcode_runpath_var=yes
13003         ld_shlibs=yes
13004       fi
13005       ;;
13006
13007     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13008       no_undefined_flag='${wl}-z,text'
13009       archive_cmds_need_lc=no
13010       hardcode_shlibpath_var=no
13011       runpath_var='LD_RUN_PATH'
13012
13013       if test "$GCC" = yes; then
13014         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13015         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13016       else
13017         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13018         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13019       fi
13020       ;;
13021
13022     sysv5* | sco3.2v5* | sco5v6*)
13023       # Note: We can NOT use -z defs as we might desire, because we do not
13024       # link with -lc, and that would cause any symbols used from libc to
13025       # always be unresolved, which means just about no library would
13026       # ever link correctly.  If we're not using GNU ld we use -z text
13027       # though, which does catch some bad symbols but isn't as heavy-handed
13028       # as -z defs.
13029       no_undefined_flag='${wl}-z,text'
13030       allow_undefined_flag='${wl}-z,nodefs'
13031       archive_cmds_need_lc=no
13032       hardcode_shlibpath_var=no
13033       hardcode_libdir_flag_spec='${wl}-R,$libdir'
13034       hardcode_libdir_separator=':'
13035       link_all_deplibs=yes
13036       export_dynamic_flag_spec='${wl}-Bexport'
13037       runpath_var='LD_RUN_PATH'
13038
13039       if test "$GCC" = yes; then
13040         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13041         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13042       else
13043         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13044         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13045       fi
13046       ;;
13047
13048     uts4*)
13049       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13050       hardcode_libdir_flag_spec='-L$libdir'
13051       hardcode_shlibpath_var=no
13052       ;;
13053
13054     *)
13055       ld_shlibs=no
13056       ;;
13057     esac
13058
13059     if test x$host_vendor = xsni; then
13060       case $host in
13061       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13062         export_dynamic_flag_spec='${wl}-Blargedynsym'
13063         ;;
13064       esac
13065     fi
13066   fi
13067
13068 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13069 echo "${ECHO_T}$ld_shlibs" >&6; }
13070 test "$ld_shlibs" = no && can_build_shared=no
13071
13072 with_gnu_ld=$with_gnu_ld
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088 #
13089 # Do we need to explicitly link libc?
13090 #
13091 case "x$archive_cmds_need_lc" in
13092 x|xyes)
13093   # Assume -lc should be added
13094   archive_cmds_need_lc=yes
13095
13096   if test "$enable_shared" = yes && test "$GCC" = yes; then
13097     case $archive_cmds in
13098     *'~'*)
13099       # FIXME: we may have to deal with multi-command sequences.
13100       ;;
13101     '$CC '*)
13102       # Test whether the compiler implicitly links with -lc since on some
13103       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13104       # to ld, don't add -lc before -lgcc.
13105       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13106 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13107       $RM conftest*
13108       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13109
13110       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13111   (eval $ac_compile) 2>&5
13112   ac_status=$?
13113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); } 2>conftest.err; then
13115         soname=conftest
13116         lib=conftest
13117         libobjs=conftest.$ac_objext
13118         deplibs=
13119         wl=$lt_prog_compiler_wl
13120         pic_flag=$lt_prog_compiler_pic
13121         compiler_flags=-v
13122         linker_flags=-v
13123         verstring=
13124         output_objdir=.
13125         libname=conftest
13126         lt_save_allow_undefined_flag=$allow_undefined_flag
13127         allow_undefined_flag=
13128         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
13129   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13130   ac_status=$?
13131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132   (exit $ac_status); }
13133         then
13134           archive_cmds_need_lc=no
13135         else
13136           archive_cmds_need_lc=yes
13137         fi
13138         allow_undefined_flag=$lt_save_allow_undefined_flag
13139       else
13140         cat conftest.err 1>&5
13141       fi
13142       $RM conftest*
13143       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13144 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
13145       ;;
13146     esac
13147   fi
13148   ;;
13149 esac
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13308 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13309
13310 if test "$GCC" = yes; then
13311   case $host_os in
13312     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13313     *) lt_awk_arg="/^libraries:/" ;;
13314   esac
13315   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13316   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
13317     # if the path contains ";" then we assume it to be the separator
13318     # otherwise default to the standard path separator (i.e. ":") - it is
13319     # assumed that no part of a normal pathname contains ";" but that should
13320     # okay in the real world where ";" in dirpaths is itself problematic.
13321     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13322   else
13323     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13324   fi
13325   # Ok, now we have the path, separated by spaces, we can step through it
13326   # and add multilib dir if necessary.
13327   lt_tmp_lt_search_path_spec=
13328   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13329   for lt_sys_path in $lt_search_path_spec; do
13330     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13331       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13332     else
13333       test -d "$lt_sys_path" && \
13334         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13335     fi
13336   done
13337   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
13338 BEGIN {RS=" "; FS="/|\n";} {
13339   lt_foo="";
13340   lt_count=0;
13341   for (lt_i = NF; lt_i > 0; lt_i--) {
13342     if ($lt_i != "" && $lt_i != ".") {
13343       if ($lt_i == "..") {
13344         lt_count++;
13345       } else {
13346         if (lt_count == 0) {
13347           lt_foo="/" $lt_i lt_foo;
13348         } else {
13349           lt_count--;
13350         }
13351       }
13352     }
13353   }
13354   if (lt_foo != "") { lt_freq[lt_foo]++; }
13355   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13356 }'`
13357   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
13358 else
13359   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13360 fi
13361 library_names_spec=
13362 libname_spec='lib$name'
13363 soname_spec=
13364 shrext_cmds=".so"
13365 postinstall_cmds=
13366 postuninstall_cmds=
13367 finish_cmds=
13368 finish_eval=
13369 shlibpath_var=
13370 shlibpath_overrides_runpath=unknown
13371 version_type=none
13372 dynamic_linker="$host_os ld.so"
13373 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13374 need_lib_prefix=unknown
13375 hardcode_into_libs=no
13376
13377 # when you set need_version to no, make sure it does not cause -set_version
13378 # flags to be left without arguments
13379 need_version=unknown
13380
13381 case $host_os in
13382 aix3*)
13383   version_type=linux
13384   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13385   shlibpath_var=LIBPATH
13386
13387   # AIX 3 has no versioning support, so we append a major version to the name.
13388   soname_spec='${libname}${release}${shared_ext}$major'
13389   ;;
13390
13391 aix[4-9]*)
13392   version_type=linux
13393   need_lib_prefix=no
13394   need_version=no
13395   hardcode_into_libs=yes
13396   if test "$host_cpu" = ia64; then
13397     # AIX 5 supports IA64
13398     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13399     shlibpath_var=LD_LIBRARY_PATH
13400   else
13401     # With GCC up to 2.95.x, collect2 would create an import file
13402     # for dependence libraries.  The import file would start with
13403     # the line `#! .'.  This would cause the generated library to
13404     # depend on `.', always an invalid library.  This was fixed in
13405     # development snapshots of GCC prior to 3.0.
13406     case $host_os in
13407       aix4 | aix4.[01] | aix4.[01].*)
13408       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13409            echo ' yes '
13410            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13411         :
13412       else
13413         can_build_shared=no
13414       fi
13415       ;;
13416     esac
13417     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13418     # soname into executable. Probably we can add versioning support to
13419     # collect2, so additional links can be useful in future.
13420     if test "$aix_use_runtimelinking" = yes; then
13421       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13422       # instead of lib<name>.a to let people know that these are not
13423       # typical AIX shared libraries.
13424       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13425     else
13426       # We preserve .a as extension for shared libraries through AIX4.2
13427       # and later when we are not doing run time linking.
13428       library_names_spec='${libname}${release}.a $libname.a'
13429       soname_spec='${libname}${release}${shared_ext}$major'
13430     fi
13431     shlibpath_var=LIBPATH
13432   fi
13433   ;;
13434
13435 amigaos*)
13436   case $host_cpu in
13437   powerpc)
13438     # Since July 2007 AmigaOS4 officially supports .so libraries.
13439     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13440     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13441     ;;
13442   m68k)
13443     library_names_spec='$libname.ixlibrary $libname.a'
13444     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13445     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'
13446     ;;
13447   esac
13448   ;;
13449
13450 beos*)
13451   library_names_spec='${libname}${shared_ext}'
13452   dynamic_linker="$host_os ld.so"
13453   shlibpath_var=LIBRARY_PATH
13454   ;;
13455
13456 bsdi[45]*)
13457   version_type=linux
13458   need_version=no
13459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13460   soname_spec='${libname}${release}${shared_ext}$major'
13461   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13462   shlibpath_var=LD_LIBRARY_PATH
13463   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13464   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13465   # the default ld.so.conf also contains /usr/contrib/lib and
13466   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13467   # libtool to hard-code these into programs
13468   ;;
13469
13470 cygwin* | mingw* | pw32*)
13471   version_type=windows
13472   shrext_cmds=".dll"
13473   need_version=no
13474   need_lib_prefix=no
13475
13476   case $GCC,$host_os in
13477   yes,cygwin* | yes,mingw* | yes,pw32*)
13478     library_names_spec='$libname.dll.a'
13479     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13480     postinstall_cmds='base_file=`basename \${file}`~
13481       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13482       dldir=$destdir/`dirname \$dlpath`~
13483       test -d \$dldir || mkdir -p \$dldir~
13484       $install_prog $dir/$dlname \$dldir/$dlname~
13485       chmod a+x \$dldir/$dlname~
13486       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13487         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13488       fi'
13489     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13490       dlpath=$dir/\$dldll~
13491        $RM \$dlpath'
13492     shlibpath_overrides_runpath=yes
13493
13494     case $host_os in
13495     cygwin*)
13496       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13497       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13498       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13499       ;;
13500     mingw*)
13501       # MinGW DLLs use traditional 'lib' prefix
13502       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13503       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13504       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13505         # It is most probably a Windows format PATH printed by
13506         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13507         # path with ; separators, and with drive letters. We can handle the
13508         # drive letters (cygwin fileutils understands them), so leave them,
13509         # especially as we might pass files found there to a mingw objdump,
13510         # which wouldn't understand a cygwinified path. Ahh.
13511         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13512       else
13513         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13514       fi
13515       ;;
13516     pw32*)
13517       # pw32 DLLs use 'pw' prefix rather than 'lib'
13518       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13519       ;;
13520     esac
13521     ;;
13522
13523   *)
13524     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13525     ;;
13526   esac
13527   dynamic_linker='Win32 ld.exe'
13528   # FIXME: first we should search . and the directory the executable is in
13529   shlibpath_var=PATH
13530   ;;
13531
13532 darwin* | rhapsody*)
13533   dynamic_linker="$host_os dyld"
13534   version_type=darwin
13535   need_lib_prefix=no
13536   need_version=no
13537   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13538   soname_spec='${libname}${release}${major}$shared_ext'
13539   shlibpath_overrides_runpath=yes
13540   shlibpath_var=DYLD_LIBRARY_PATH
13541   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13542
13543   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13544   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13545   ;;
13546
13547 dgux*)
13548   version_type=linux
13549   need_lib_prefix=no
13550   need_version=no
13551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13552   soname_spec='${libname}${release}${shared_ext}$major'
13553   shlibpath_var=LD_LIBRARY_PATH
13554   ;;
13555
13556 freebsd1*)
13557   dynamic_linker=no
13558   ;;
13559
13560 freebsd* | dragonfly*)
13561   # DragonFly does not have aout.  When/if they implement a new
13562   # versioning mechanism, adjust this.
13563   if test -x /usr/bin/objformat; then
13564     objformat=`/usr/bin/objformat`
13565   else
13566     case $host_os in
13567     freebsd[123]*) objformat=aout ;;
13568     *) objformat=elf ;;
13569     esac
13570   fi
13571   version_type=freebsd-$objformat
13572   case $version_type in
13573     freebsd-elf*)
13574       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13575       need_version=no
13576       need_lib_prefix=no
13577       ;;
13578     freebsd-*)
13579       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13580       need_version=yes
13581       ;;
13582   esac
13583   shlibpath_var=LD_LIBRARY_PATH
13584   case $host_os in
13585   freebsd2*)
13586     shlibpath_overrides_runpath=yes
13587     ;;
13588   freebsd3.[01]* | freebsdelf3.[01]*)
13589     shlibpath_overrides_runpath=yes
13590     hardcode_into_libs=yes
13591     ;;
13592   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13593   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13594     shlibpath_overrides_runpath=no
13595     hardcode_into_libs=yes
13596     ;;
13597   *) # from 4.6 on, and DragonFly
13598     shlibpath_overrides_runpath=yes
13599     hardcode_into_libs=yes
13600     ;;
13601   esac
13602   ;;
13603
13604 gnu*)
13605   version_type=linux
13606   need_lib_prefix=no
13607   need_version=no
13608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13609   soname_spec='${libname}${release}${shared_ext}$major'
13610   shlibpath_var=LD_LIBRARY_PATH
13611   hardcode_into_libs=yes
13612   ;;
13613
13614 hpux9* | hpux10* | hpux11*)
13615   # Give a soname corresponding to the major version so that dld.sl refuses to
13616   # link against other versions.
13617   version_type=sunos
13618   need_lib_prefix=no
13619   need_version=no
13620   case $host_cpu in
13621   ia64*)
13622     shrext_cmds='.so'
13623     hardcode_into_libs=yes
13624     dynamic_linker="$host_os dld.so"
13625     shlibpath_var=LD_LIBRARY_PATH
13626     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13627     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13628     soname_spec='${libname}${release}${shared_ext}$major'
13629     if test "X$HPUX_IA64_MODE" = X32; then
13630       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13631     else
13632       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13633     fi
13634     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13635     ;;
13636   hppa*64*)
13637     shrext_cmds='.sl'
13638     hardcode_into_libs=yes
13639     dynamic_linker="$host_os dld.sl"
13640     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13641     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13642     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13643     soname_spec='${libname}${release}${shared_ext}$major'
13644     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13645     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13646     ;;
13647   *)
13648     shrext_cmds='.sl'
13649     dynamic_linker="$host_os dld.sl"
13650     shlibpath_var=SHLIB_PATH
13651     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13652     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13653     soname_spec='${libname}${release}${shared_ext}$major'
13654     ;;
13655   esac
13656   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13657   postinstall_cmds='chmod 555 $lib'
13658   ;;
13659
13660 interix[3-9]*)
13661   version_type=linux
13662   need_lib_prefix=no
13663   need_version=no
13664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13665   soname_spec='${libname}${release}${shared_ext}$major'
13666   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13667   shlibpath_var=LD_LIBRARY_PATH
13668   shlibpath_overrides_runpath=no
13669   hardcode_into_libs=yes
13670   ;;
13671
13672 irix5* | irix6* | nonstopux*)
13673   case $host_os in
13674     nonstopux*) version_type=nonstopux ;;
13675     *)
13676         if test "$lt_cv_prog_gnu_ld" = yes; then
13677                 version_type=linux
13678         else
13679                 version_type=irix
13680         fi ;;
13681   esac
13682   need_lib_prefix=no
13683   need_version=no
13684   soname_spec='${libname}${release}${shared_ext}$major'
13685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13686   case $host_os in
13687   irix5* | nonstopux*)
13688     libsuff= shlibsuff=
13689     ;;
13690   *)
13691     case $LD in # libtool.m4 will add one of these switches to LD
13692     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13693       libsuff= shlibsuff= libmagic=32-bit;;
13694     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13695       libsuff=32 shlibsuff=N32 libmagic=N32;;
13696     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13697       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13698     *) libsuff= shlibsuff= libmagic=never-match;;
13699     esac
13700     ;;
13701   esac
13702   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13703   shlibpath_overrides_runpath=no
13704   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13705   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13706   hardcode_into_libs=yes
13707   ;;
13708
13709 # No shared lib support for Linux oldld, aout, or coff.
13710 linux*oldld* | linux*aout* | linux*coff*)
13711   dynamic_linker=no
13712   ;;
13713
13714 # This must be Linux ELF.
13715 linux* | k*bsd*-gnu)
13716   version_type=linux
13717   need_lib_prefix=no
13718   need_version=no
13719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13720   soname_spec='${libname}${release}${shared_ext}$major'
13721   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13722   shlibpath_var=LD_LIBRARY_PATH
13723   shlibpath_overrides_runpath=no
13724   # Some binutils ld are patched to set DT_RUNPATH
13725   save_LDFLAGS=$LDFLAGS
13726   save_libdir=$libdir
13727   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13728        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13729   cat >conftest.$ac_ext <<_ACEOF
13730 /* confdefs.h.  */
13731 _ACEOF
13732 cat confdefs.h >>conftest.$ac_ext
13733 cat >>conftest.$ac_ext <<_ACEOF
13734 /* end confdefs.h.  */
13735
13736 int
13737 main ()
13738 {
13739
13740   ;
13741   return 0;
13742 }
13743 _ACEOF
13744 rm -f conftest.$ac_objext conftest$ac_exeext
13745 if { (ac_try="$ac_link"
13746 case "(($ac_try" in
13747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748   *) ac_try_echo=$ac_try;;
13749 esac
13750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751   (eval "$ac_link") 2>conftest.er1
13752   ac_status=$?
13753   grep -v '^ *+' conftest.er1 >conftest.err
13754   rm -f conftest.er1
13755   cat conftest.err >&5
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); } && {
13758          test -z "$ac_c_werror_flag" ||
13759          test ! -s conftest.err
13760        } && test -s conftest$ac_exeext &&
13761        $as_test_x conftest$ac_exeext; then
13762   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
13763   shlibpath_overrides_runpath=yes
13764 fi
13765
13766 else
13767   echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.$ac_ext >&5
13769
13770
13771 fi
13772
13773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13774       conftest$ac_exeext conftest.$ac_ext
13775   LDFLAGS=$save_LDFLAGS
13776   libdir=$save_libdir
13777
13778   # This implies no fast_install, which is unacceptable.
13779   # Some rework will be needed to allow for fast_install
13780   # before this can be enabled.
13781   hardcode_into_libs=yes
13782
13783   # Append ld.so.conf contents to the search path
13784   if test -f /etc/ld.so.conf; then
13785     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' ' '`
13786     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13787   fi
13788
13789   # We used to test for /lib/ld.so.1 and disable shared libraries on
13790   # powerpc, because MkLinux only supported shared libraries with the
13791   # GNU dynamic linker.  Since this was broken with cross compilers,
13792   # most powerpc-linux boxes support dynamic linking these days and
13793   # people can always --disable-shared, the test was removed, and we
13794   # assume the GNU/Linux dynamic linker is in use.
13795   dynamic_linker='GNU/Linux ld.so'
13796   ;;
13797
13798 netbsdelf*-gnu)
13799   version_type=linux
13800   need_lib_prefix=no
13801   need_version=no
13802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13803   soname_spec='${libname}${release}${shared_ext}$major'
13804   shlibpath_var=LD_LIBRARY_PATH
13805   shlibpath_overrides_runpath=no
13806   hardcode_into_libs=yes
13807   dynamic_linker='NetBSD ld.elf_so'
13808   ;;
13809
13810 netbsd*)
13811   version_type=sunos
13812   need_lib_prefix=no
13813   need_version=no
13814   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13815     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13816     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13817     dynamic_linker='NetBSD (a.out) ld.so'
13818   else
13819     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13820     soname_spec='${libname}${release}${shared_ext}$major'
13821     dynamic_linker='NetBSD ld.elf_so'
13822   fi
13823   shlibpath_var=LD_LIBRARY_PATH
13824   shlibpath_overrides_runpath=yes
13825   hardcode_into_libs=yes
13826   ;;
13827
13828 newsos6)
13829   version_type=linux
13830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13831   shlibpath_var=LD_LIBRARY_PATH
13832   shlibpath_overrides_runpath=yes
13833   ;;
13834
13835 *nto* | *qnx*)
13836   version_type=qnx
13837   need_lib_prefix=no
13838   need_version=no
13839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13840   soname_spec='${libname}${release}${shared_ext}$major'
13841   shlibpath_var=LD_LIBRARY_PATH
13842   shlibpath_overrides_runpath=no
13843   hardcode_into_libs=yes
13844   dynamic_linker='ldqnx.so'
13845   ;;
13846
13847 openbsd*)
13848   version_type=sunos
13849   sys_lib_dlsearch_path_spec="/usr/lib"
13850   need_lib_prefix=no
13851   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13852   case $host_os in
13853     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13854     *)                          need_version=no  ;;
13855   esac
13856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13857   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13858   shlibpath_var=LD_LIBRARY_PATH
13859   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13860     case $host_os in
13861       openbsd2.[89] | openbsd2.[89].*)
13862         shlibpath_overrides_runpath=no
13863         ;;
13864       *)
13865         shlibpath_overrides_runpath=yes
13866         ;;
13867       esac
13868   else
13869     shlibpath_overrides_runpath=yes
13870   fi
13871   ;;
13872
13873 os2*)
13874   libname_spec='$name'
13875   shrext_cmds=".dll"
13876   need_lib_prefix=no
13877   library_names_spec='$libname${shared_ext} $libname.a'
13878   dynamic_linker='OS/2 ld.exe'
13879   shlibpath_var=LIBPATH
13880   ;;
13881
13882 osf3* | osf4* | osf5*)
13883   version_type=osf
13884   need_lib_prefix=no
13885   need_version=no
13886   soname_spec='${libname}${release}${shared_ext}$major'
13887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13888   shlibpath_var=LD_LIBRARY_PATH
13889   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13890   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13891   ;;
13892
13893 rdos*)
13894   dynamic_linker=no
13895   ;;
13896
13897 solaris*)
13898   version_type=linux
13899   need_lib_prefix=no
13900   need_version=no
13901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13902   soname_spec='${libname}${release}${shared_ext}$major'
13903   shlibpath_var=LD_LIBRARY_PATH
13904   shlibpath_overrides_runpath=yes
13905   hardcode_into_libs=yes
13906   # ldd complains unless libraries are executable
13907   postinstall_cmds='chmod +x $lib'
13908   ;;
13909
13910 sunos4*)
13911   version_type=sunos
13912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13913   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13914   shlibpath_var=LD_LIBRARY_PATH
13915   shlibpath_overrides_runpath=yes
13916   if test "$with_gnu_ld" = yes; then
13917     need_lib_prefix=no
13918   fi
13919   need_version=yes
13920   ;;
13921
13922 sysv4 | sysv4.3*)
13923   version_type=linux
13924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13925   soname_spec='${libname}${release}${shared_ext}$major'
13926   shlibpath_var=LD_LIBRARY_PATH
13927   case $host_vendor in
13928     sni)
13929       shlibpath_overrides_runpath=no
13930       need_lib_prefix=no
13931       runpath_var=LD_RUN_PATH
13932       ;;
13933     siemens)
13934       need_lib_prefix=no
13935       ;;
13936     motorola)
13937       need_lib_prefix=no
13938       need_version=no
13939       shlibpath_overrides_runpath=no
13940       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13941       ;;
13942   esac
13943   ;;
13944
13945 sysv4*MP*)
13946   if test -d /usr/nec ;then
13947     version_type=linux
13948     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13949     soname_spec='$libname${shared_ext}.$major'
13950     shlibpath_var=LD_LIBRARY_PATH
13951   fi
13952   ;;
13953
13954 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13955   version_type=freebsd-elf
13956   need_lib_prefix=no
13957   need_version=no
13958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13959   soname_spec='${libname}${release}${shared_ext}$major'
13960   shlibpath_var=LD_LIBRARY_PATH
13961   shlibpath_overrides_runpath=yes
13962   hardcode_into_libs=yes
13963   if test "$with_gnu_ld" = yes; then
13964     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13965   else
13966     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13967     case $host_os in
13968       sco3.2v5*)
13969         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13970         ;;
13971     esac
13972   fi
13973   sys_lib_dlsearch_path_spec='/usr/lib'
13974   ;;
13975
13976 tpf*)
13977   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13978   version_type=linux
13979   need_lib_prefix=no
13980   need_version=no
13981   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13982   shlibpath_var=LD_LIBRARY_PATH
13983   shlibpath_overrides_runpath=no
13984   hardcode_into_libs=yes
13985   ;;
13986
13987 uts4*)
13988   version_type=linux
13989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13990   soname_spec='${libname}${release}${shared_ext}$major'
13991   shlibpath_var=LD_LIBRARY_PATH
13992   ;;
13993
13994 *)
13995   dynamic_linker=no
13996   ;;
13997 esac
13998 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13999 echo "${ECHO_T}$dynamic_linker" >&6; }
14000 test "$dynamic_linker" = no && can_build_shared=no
14001
14002 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14003 if test "$GCC" = yes; then
14004   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14005 fi
14006
14007 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14008   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14009 fi
14010 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14011   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14012 fi
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14101 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14102 hardcode_action=
14103 if test -n "$hardcode_libdir_flag_spec" ||
14104    test -n "$runpath_var" ||
14105    test "X$hardcode_automatic" = "Xyes" ; then
14106
14107   # We can hardcode non-existent directories.
14108   if test "$hardcode_direct" != no &&
14109      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14110      # have to relink, otherwise we might link with an installed library
14111      # when we should be linking with a yet-to-be-installed one
14112      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14113      test "$hardcode_minus_L" != no; then
14114     # Linking always hardcodes the temporary library directory.
14115     hardcode_action=relink
14116   else
14117     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14118     hardcode_action=immediate
14119   fi
14120 else
14121   # We cannot hardcode anything, or else we can only hardcode existing
14122   # directories.
14123   hardcode_action=unsupported
14124 fi
14125 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
14126 echo "${ECHO_T}$hardcode_action" >&6; }
14127
14128 if test "$hardcode_action" = relink ||
14129    test "$inherit_rpath" = yes; then
14130   # Fast installation is not supported
14131   enable_fast_install=no
14132 elif test "$shlibpath_overrides_runpath" = yes ||
14133      test "$enable_shared" = no; then
14134   # Fast installation is not necessary
14135   enable_fast_install=needless
14136 fi
14137
14138
14139
14140
14141
14142
14143   if test "x$enable_dlopen" != xyes; then
14144   enable_dlopen=unknown
14145   enable_dlopen_self=unknown
14146   enable_dlopen_self_static=unknown
14147 else
14148   lt_cv_dlopen=no
14149   lt_cv_dlopen_libs=
14150
14151   case $host_os in
14152   beos*)
14153     lt_cv_dlopen="load_add_on"
14154     lt_cv_dlopen_libs=
14155     lt_cv_dlopen_self=yes
14156     ;;
14157
14158   mingw* | pw32*)
14159     lt_cv_dlopen="LoadLibrary"
14160     lt_cv_dlopen_libs=
14161     ;;
14162
14163   cygwin*)
14164     lt_cv_dlopen="dlopen"
14165     lt_cv_dlopen_libs=
14166     ;;
14167
14168   darwin*)
14169   # if libdl is installed we need to link against it
14170     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14171 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14172 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14173   echo $ECHO_N "(cached) $ECHO_C" >&6
14174 else
14175   ac_check_lib_save_LIBS=$LIBS
14176 LIBS="-ldl  $LIBS"
14177 cat >conftest.$ac_ext <<_ACEOF
14178 /* confdefs.h.  */
14179 _ACEOF
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h.  */
14183
14184 /* Override any GCC internal prototype to avoid an error.
14185    Use char because int might match the return type of a GCC
14186    builtin and then its argument prototype would still apply.  */
14187 #ifdef __cplusplus
14188 extern "C"
14189 #endif
14190 char dlopen ();
14191 int
14192 main ()
14193 {
14194 return dlopen ();
14195   ;
14196   return 0;
14197 }
14198 _ACEOF
14199 rm -f conftest.$ac_objext conftest$ac_exeext
14200 if { (ac_try="$ac_link"
14201 case "(($ac_try" in
14202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203   *) ac_try_echo=$ac_try;;
14204 esac
14205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206   (eval "$ac_link") 2>conftest.er1
14207   ac_status=$?
14208   grep -v '^ *+' conftest.er1 >conftest.err
14209   rm -f conftest.er1
14210   cat conftest.err >&5
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); } && {
14213          test -z "$ac_c_werror_flag" ||
14214          test ! -s conftest.err
14215        } && test -s conftest$ac_exeext &&
14216        $as_test_x conftest$ac_exeext; then
14217   ac_cv_lib_dl_dlopen=yes
14218 else
14219   echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14221
14222         ac_cv_lib_dl_dlopen=no
14223 fi
14224
14225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14226       conftest$ac_exeext conftest.$ac_ext
14227 LIBS=$ac_check_lib_save_LIBS
14228 fi
14229 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14230 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14231 if test $ac_cv_lib_dl_dlopen = yes; then
14232   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14233 else
14234
14235     lt_cv_dlopen="dyld"
14236     lt_cv_dlopen_libs=
14237     lt_cv_dlopen_self=yes
14238
14239 fi
14240
14241     ;;
14242
14243   *)
14244     { echo "$as_me:$LINENO: checking for shl_load" >&5
14245 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
14246 if test "${ac_cv_func_shl_load+set}" = set; then
14247   echo $ECHO_N "(cached) $ECHO_C" >&6
14248 else
14249   cat >conftest.$ac_ext <<_ACEOF
14250 /* confdefs.h.  */
14251 _ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h.  */
14255 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14257 #define shl_load innocuous_shl_load
14258
14259 /* System header to define __stub macros and hopefully few prototypes,
14260     which can conflict with char shl_load (); below.
14261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14262     <limits.h> exists even on freestanding compilers.  */
14263
14264 #ifdef __STDC__
14265 # include <limits.h>
14266 #else
14267 # include <assert.h>
14268 #endif
14269
14270 #undef shl_load
14271
14272 /* Override any GCC internal prototype to avoid an error.
14273    Use char because int might match the return type of a GCC
14274    builtin and then its argument prototype would still apply.  */
14275 #ifdef __cplusplus
14276 extern "C"
14277 #endif
14278 char shl_load ();
14279 /* The GNU C library defines this for functions which it implements
14280     to always fail with ENOSYS.  Some functions are actually named
14281     something starting with __ and the normal name is an alias.  */
14282 #if defined __stub_shl_load || defined __stub___shl_load
14283 choke me
14284 #endif
14285
14286 int
14287 main ()
14288 {
14289 return shl_load ();
14290   ;
14291   return 0;
14292 }
14293 _ACEOF
14294 rm -f conftest.$ac_objext conftest$ac_exeext
14295 if { (ac_try="$ac_link"
14296 case "(($ac_try" in
14297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14298   *) ac_try_echo=$ac_try;;
14299 esac
14300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14301   (eval "$ac_link") 2>conftest.er1
14302   ac_status=$?
14303   grep -v '^ *+' conftest.er1 >conftest.err
14304   rm -f conftest.er1
14305   cat conftest.err >&5
14306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307   (exit $ac_status); } && {
14308          test -z "$ac_c_werror_flag" ||
14309          test ! -s conftest.err
14310        } && test -s conftest$ac_exeext &&
14311        $as_test_x conftest$ac_exeext; then
14312   ac_cv_func_shl_load=yes
14313 else
14314   echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14316
14317         ac_cv_func_shl_load=no
14318 fi
14319
14320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14321       conftest$ac_exeext conftest.$ac_ext
14322 fi
14323 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14324 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
14325 if test $ac_cv_func_shl_load = yes; then
14326   lt_cv_dlopen="shl_load"
14327 else
14328   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14329 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
14330 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14331   echo $ECHO_N "(cached) $ECHO_C" >&6
14332 else
14333   ac_check_lib_save_LIBS=$LIBS
14334 LIBS="-ldld  $LIBS"
14335 cat >conftest.$ac_ext <<_ACEOF
14336 /* confdefs.h.  */
14337 _ACEOF
14338 cat confdefs.h >>conftest.$ac_ext
14339 cat >>conftest.$ac_ext <<_ACEOF
14340 /* end confdefs.h.  */
14341
14342 /* Override any GCC internal prototype to avoid an error.
14343    Use char because int might match the return type of a GCC
14344    builtin and then its argument prototype would still apply.  */
14345 #ifdef __cplusplus
14346 extern "C"
14347 #endif
14348 char shl_load ();
14349 int
14350 main ()
14351 {
14352 return shl_load ();
14353   ;
14354   return 0;
14355 }
14356 _ACEOF
14357 rm -f conftest.$ac_objext conftest$ac_exeext
14358 if { (ac_try="$ac_link"
14359 case "(($ac_try" in
14360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361   *) ac_try_echo=$ac_try;;
14362 esac
14363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364   (eval "$ac_link") 2>conftest.er1
14365   ac_status=$?
14366   grep -v '^ *+' conftest.er1 >conftest.err
14367   rm -f conftest.er1
14368   cat conftest.err >&5
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); } && {
14371          test -z "$ac_c_werror_flag" ||
14372          test ! -s conftest.err
14373        } && test -s conftest$ac_exeext &&
14374        $as_test_x conftest$ac_exeext; then
14375   ac_cv_lib_dld_shl_load=yes
14376 else
14377   echo "$as_me: failed program was:" >&5
14378 sed 's/^/| /' conftest.$ac_ext >&5
14379
14380         ac_cv_lib_dld_shl_load=no
14381 fi
14382
14383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14384       conftest$ac_exeext conftest.$ac_ext
14385 LIBS=$ac_check_lib_save_LIBS
14386 fi
14387 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14388 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
14389 if test $ac_cv_lib_dld_shl_load = yes; then
14390   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14391 else
14392   { echo "$as_me:$LINENO: checking for dlopen" >&5
14393 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
14394 if test "${ac_cv_func_dlopen+set}" = set; then
14395   echo $ECHO_N "(cached) $ECHO_C" >&6
14396 else
14397   cat >conftest.$ac_ext <<_ACEOF
14398 /* confdefs.h.  */
14399 _ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h.  */
14403 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14405 #define dlopen innocuous_dlopen
14406
14407 /* System header to define __stub macros and hopefully few prototypes,
14408     which can conflict with char dlopen (); below.
14409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14410     <limits.h> exists even on freestanding compilers.  */
14411
14412 #ifdef __STDC__
14413 # include <limits.h>
14414 #else
14415 # include <assert.h>
14416 #endif
14417
14418 #undef dlopen
14419
14420 /* Override any GCC internal prototype to avoid an error.
14421    Use char because int might match the return type of a GCC
14422    builtin and then its argument prototype would still apply.  */
14423 #ifdef __cplusplus
14424 extern "C"
14425 #endif
14426 char dlopen ();
14427 /* The GNU C library defines this for functions which it implements
14428     to always fail with ENOSYS.  Some functions are actually named
14429     something starting with __ and the normal name is an alias.  */
14430 #if defined __stub_dlopen || defined __stub___dlopen
14431 choke me
14432 #endif
14433
14434 int
14435 main ()
14436 {
14437 return dlopen ();
14438   ;
14439   return 0;
14440 }
14441 _ACEOF
14442 rm -f conftest.$ac_objext conftest$ac_exeext
14443 if { (ac_try="$ac_link"
14444 case "(($ac_try" in
14445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446   *) ac_try_echo=$ac_try;;
14447 esac
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449   (eval "$ac_link") 2>conftest.er1
14450   ac_status=$?
14451   grep -v '^ *+' conftest.er1 >conftest.err
14452   rm -f conftest.er1
14453   cat conftest.err >&5
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); } && {
14456          test -z "$ac_c_werror_flag" ||
14457          test ! -s conftest.err
14458        } && test -s conftest$ac_exeext &&
14459        $as_test_x conftest$ac_exeext; then
14460   ac_cv_func_dlopen=yes
14461 else
14462   echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14464
14465         ac_cv_func_dlopen=no
14466 fi
14467
14468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14469       conftest$ac_exeext conftest.$ac_ext
14470 fi
14471 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14472 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
14473 if test $ac_cv_func_dlopen = yes; then
14474   lt_cv_dlopen="dlopen"
14475 else
14476   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14477 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14478 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14479   echo $ECHO_N "(cached) $ECHO_C" >&6
14480 else
14481   ac_check_lib_save_LIBS=$LIBS
14482 LIBS="-ldl  $LIBS"
14483 cat >conftest.$ac_ext <<_ACEOF
14484 /* confdefs.h.  */
14485 _ACEOF
14486 cat confdefs.h >>conftest.$ac_ext
14487 cat >>conftest.$ac_ext <<_ACEOF
14488 /* end confdefs.h.  */
14489
14490 /* Override any GCC internal prototype to avoid an error.
14491    Use char because int might match the return type of a GCC
14492    builtin and then its argument prototype would still apply.  */
14493 #ifdef __cplusplus
14494 extern "C"
14495 #endif
14496 char dlopen ();
14497 int
14498 main ()
14499 {
14500 return dlopen ();
14501   ;
14502   return 0;
14503 }
14504 _ACEOF
14505 rm -f conftest.$ac_objext conftest$ac_exeext
14506 if { (ac_try="$ac_link"
14507 case "(($ac_try" in
14508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509   *) ac_try_echo=$ac_try;;
14510 esac
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512   (eval "$ac_link") 2>conftest.er1
14513   ac_status=$?
14514   grep -v '^ *+' conftest.er1 >conftest.err
14515   rm -f conftest.er1
14516   cat conftest.err >&5
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); } && {
14519          test -z "$ac_c_werror_flag" ||
14520          test ! -s conftest.err
14521        } && test -s conftest$ac_exeext &&
14522        $as_test_x conftest$ac_exeext; then
14523   ac_cv_lib_dl_dlopen=yes
14524 else
14525   echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14527
14528         ac_cv_lib_dl_dlopen=no
14529 fi
14530
14531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14532       conftest$ac_exeext conftest.$ac_ext
14533 LIBS=$ac_check_lib_save_LIBS
14534 fi
14535 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14536 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14537 if test $ac_cv_lib_dl_dlopen = yes; then
14538   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14539 else
14540   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14541 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
14542 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14543   echo $ECHO_N "(cached) $ECHO_C" >&6
14544 else
14545   ac_check_lib_save_LIBS=$LIBS
14546 LIBS="-lsvld  $LIBS"
14547 cat >conftest.$ac_ext <<_ACEOF
14548 /* confdefs.h.  */
14549 _ACEOF
14550 cat confdefs.h >>conftest.$ac_ext
14551 cat >>conftest.$ac_ext <<_ACEOF
14552 /* end confdefs.h.  */
14553
14554 /* Override any GCC internal prototype to avoid an error.
14555    Use char because int might match the return type of a GCC
14556    builtin and then its argument prototype would still apply.  */
14557 #ifdef __cplusplus
14558 extern "C"
14559 #endif
14560 char dlopen ();
14561 int
14562 main ()
14563 {
14564 return dlopen ();
14565   ;
14566   return 0;
14567 }
14568 _ACEOF
14569 rm -f conftest.$ac_objext conftest$ac_exeext
14570 if { (ac_try="$ac_link"
14571 case "(($ac_try" in
14572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573   *) ac_try_echo=$ac_try;;
14574 esac
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576   (eval "$ac_link") 2>conftest.er1
14577   ac_status=$?
14578   grep -v '^ *+' conftest.er1 >conftest.err
14579   rm -f conftest.er1
14580   cat conftest.err >&5
14581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582   (exit $ac_status); } && {
14583          test -z "$ac_c_werror_flag" ||
14584          test ! -s conftest.err
14585        } && test -s conftest$ac_exeext &&
14586        $as_test_x conftest$ac_exeext; then
14587   ac_cv_lib_svld_dlopen=yes
14588 else
14589   echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14591
14592         ac_cv_lib_svld_dlopen=no
14593 fi
14594
14595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14596       conftest$ac_exeext conftest.$ac_ext
14597 LIBS=$ac_check_lib_save_LIBS
14598 fi
14599 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14600 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
14601 if test $ac_cv_lib_svld_dlopen = yes; then
14602   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14603 else
14604   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14605 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
14606 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14607   echo $ECHO_N "(cached) $ECHO_C" >&6
14608 else
14609   ac_check_lib_save_LIBS=$LIBS
14610 LIBS="-ldld  $LIBS"
14611 cat >conftest.$ac_ext <<_ACEOF
14612 /* confdefs.h.  */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h.  */
14617
14618 /* Override any GCC internal prototype to avoid an error.
14619    Use char because int might match the return type of a GCC
14620    builtin and then its argument prototype would still apply.  */
14621 #ifdef __cplusplus
14622 extern "C"
14623 #endif
14624 char dld_link ();
14625 int
14626 main ()
14627 {
14628 return dld_link ();
14629   ;
14630   return 0;
14631 }
14632 _ACEOF
14633 rm -f conftest.$ac_objext conftest$ac_exeext
14634 if { (ac_try="$ac_link"
14635 case "(($ac_try" in
14636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637   *) ac_try_echo=$ac_try;;
14638 esac
14639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640   (eval "$ac_link") 2>conftest.er1
14641   ac_status=$?
14642   grep -v '^ *+' conftest.er1 >conftest.err
14643   rm -f conftest.er1
14644   cat conftest.err >&5
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); } && {
14647          test -z "$ac_c_werror_flag" ||
14648          test ! -s conftest.err
14649        } && test -s conftest$ac_exeext &&
14650        $as_test_x conftest$ac_exeext; then
14651   ac_cv_lib_dld_dld_link=yes
14652 else
14653   echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14655
14656         ac_cv_lib_dld_dld_link=no
14657 fi
14658
14659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14660       conftest$ac_exeext conftest.$ac_ext
14661 LIBS=$ac_check_lib_save_LIBS
14662 fi
14663 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14664 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
14665 if test $ac_cv_lib_dld_dld_link = yes; then
14666   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14667 fi
14668
14669
14670 fi
14671
14672
14673 fi
14674
14675
14676 fi
14677
14678
14679 fi
14680
14681
14682 fi
14683
14684     ;;
14685   esac
14686
14687   if test "x$lt_cv_dlopen" != xno; then
14688     enable_dlopen=yes
14689   else
14690     enable_dlopen=no
14691   fi
14692
14693   case $lt_cv_dlopen in
14694   dlopen)
14695     save_CPPFLAGS="$CPPFLAGS"
14696     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14697
14698     save_LDFLAGS="$LDFLAGS"
14699     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14700
14701     save_LIBS="$LIBS"
14702     LIBS="$lt_cv_dlopen_libs $LIBS"
14703
14704     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14705 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
14706 if test "${lt_cv_dlopen_self+set}" = set; then
14707   echo $ECHO_N "(cached) $ECHO_C" >&6
14708 else
14709           if test "$cross_compiling" = yes; then :
14710   lt_cv_dlopen_self=cross
14711 else
14712   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14713   lt_status=$lt_dlunknown
14714   cat > conftest.$ac_ext <<_LT_EOF
14715 #line 14715 "configure"
14716 #include "confdefs.h"
14717
14718 #if HAVE_DLFCN_H
14719 #include <dlfcn.h>
14720 #endif
14721
14722 #include <stdio.h>
14723
14724 #ifdef RTLD_GLOBAL
14725 #  define LT_DLGLOBAL           RTLD_GLOBAL
14726 #else
14727 #  ifdef DL_GLOBAL
14728 #    define LT_DLGLOBAL         DL_GLOBAL
14729 #  else
14730 #    define LT_DLGLOBAL         0
14731 #  endif
14732 #endif
14733
14734 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14735    find out it does not work in some platform. */
14736 #ifndef LT_DLLAZY_OR_NOW
14737 #  ifdef RTLD_LAZY
14738 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14739 #  else
14740 #    ifdef DL_LAZY
14741 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14742 #    else
14743 #      ifdef RTLD_NOW
14744 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14745 #      else
14746 #        ifdef DL_NOW
14747 #          define LT_DLLAZY_OR_NOW      DL_NOW
14748 #        else
14749 #          define LT_DLLAZY_OR_NOW      0
14750 #        endif
14751 #      endif
14752 #    endif
14753 #  endif
14754 #endif
14755
14756 #ifdef __cplusplus
14757 extern "C" void exit (int);
14758 #endif
14759
14760 void fnord() { int i=42;}
14761 int main ()
14762 {
14763   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14764   int status = $lt_dlunknown;
14765
14766   if (self)
14767     {
14768       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14769       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14770       /* dlclose (self); */
14771     }
14772   else
14773     puts (dlerror ());
14774
14775     exit (status);
14776 }
14777 _LT_EOF
14778   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14779   (eval $ac_link) 2>&5
14780   ac_status=$?
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14783     (./conftest; exit; ) >&5 2>/dev/null
14784     lt_status=$?
14785     case x$lt_status in
14786       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14787       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14788       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14789     esac
14790   else :
14791     # compilation failed
14792     lt_cv_dlopen_self=no
14793   fi
14794 fi
14795 rm -fr conftest*
14796
14797
14798 fi
14799 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14800 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
14801
14802     if test "x$lt_cv_dlopen_self" = xyes; then
14803       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14804       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14805 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
14806 if test "${lt_cv_dlopen_self_static+set}" = set; then
14807   echo $ECHO_N "(cached) $ECHO_C" >&6
14808 else
14809           if test "$cross_compiling" = yes; then :
14810   lt_cv_dlopen_self_static=cross
14811 else
14812   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14813   lt_status=$lt_dlunknown
14814   cat > conftest.$ac_ext <<_LT_EOF
14815 #line 14815 "configure"
14816 #include "confdefs.h"
14817
14818 #if HAVE_DLFCN_H
14819 #include <dlfcn.h>
14820 #endif
14821
14822 #include <stdio.h>
14823
14824 #ifdef RTLD_GLOBAL
14825 #  define LT_DLGLOBAL           RTLD_GLOBAL
14826 #else
14827 #  ifdef DL_GLOBAL
14828 #    define LT_DLGLOBAL         DL_GLOBAL
14829 #  else
14830 #    define LT_DLGLOBAL         0
14831 #  endif
14832 #endif
14833
14834 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14835    find out it does not work in some platform. */
14836 #ifndef LT_DLLAZY_OR_NOW
14837 #  ifdef RTLD_LAZY
14838 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14839 #  else
14840 #    ifdef DL_LAZY
14841 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14842 #    else
14843 #      ifdef RTLD_NOW
14844 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14845 #      else
14846 #        ifdef DL_NOW
14847 #          define LT_DLLAZY_OR_NOW      DL_NOW
14848 #        else
14849 #          define LT_DLLAZY_OR_NOW      0
14850 #        endif
14851 #      endif
14852 #    endif
14853 #  endif
14854 #endif
14855
14856 #ifdef __cplusplus
14857 extern "C" void exit (int);
14858 #endif
14859
14860 void fnord() { int i=42;}
14861 int main ()
14862 {
14863   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14864   int status = $lt_dlunknown;
14865
14866   if (self)
14867     {
14868       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14869       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14870       /* dlclose (self); */
14871     }
14872   else
14873     puts (dlerror ());
14874
14875     exit (status);
14876 }
14877 _LT_EOF
14878   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14879   (eval $ac_link) 2>&5
14880   ac_status=$?
14881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14883     (./conftest; exit; ) >&5 2>/dev/null
14884     lt_status=$?
14885     case x$lt_status in
14886       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14887       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14888       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14889     esac
14890   else :
14891     # compilation failed
14892     lt_cv_dlopen_self_static=no
14893   fi
14894 fi
14895 rm -fr conftest*
14896
14897
14898 fi
14899 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14900 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
14901     fi
14902
14903     CPPFLAGS="$save_CPPFLAGS"
14904     LDFLAGS="$save_LDFLAGS"
14905     LIBS="$save_LIBS"
14906     ;;
14907   esac
14908
14909   case $lt_cv_dlopen_self in
14910   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14911   *) enable_dlopen_self=unknown ;;
14912   esac
14913
14914   case $lt_cv_dlopen_self_static in
14915   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14916   *) enable_dlopen_self_static=unknown ;;
14917   esac
14918 fi
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936 striplib=
14937 old_striplib=
14938 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14939 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
14940 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14941   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14942   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14943   { echo "$as_me:$LINENO: result: yes" >&5
14944 echo "${ECHO_T}yes" >&6; }
14945 else
14946 # FIXME - insert some real tests, host_os isn't really good enough
14947   case $host_os in
14948   darwin*)
14949     if test -n "$STRIP" ; then
14950       striplib="$STRIP -x"
14951       old_striplib="$STRIP -S"
14952       { echo "$as_me:$LINENO: result: yes" >&5
14953 echo "${ECHO_T}yes" >&6; }
14954     else
14955       { echo "$as_me:$LINENO: result: no" >&5
14956 echo "${ECHO_T}no" >&6; }
14957     fi
14958     ;;
14959   *)
14960     { echo "$as_me:$LINENO: result: no" >&5
14961 echo "${ECHO_T}no" >&6; }
14962     ;;
14963   esac
14964 fi
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977   # Report which library types will actually be built
14978   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14979 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14980   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14981 echo "${ECHO_T}$can_build_shared" >&6; }
14982
14983   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14984 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14985   test "$can_build_shared" = "no" && enable_shared=no
14986
14987   # On AIX, shared libraries and static libraries use the same namespace, and
14988   # are all built from PIC.
14989   case $host_os in
14990   aix3*)
14991     test "$enable_shared" = yes && enable_static=no
14992     if test -n "$RANLIB"; then
14993       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14994       postinstall_cmds='$RANLIB $lib'
14995     fi
14996     ;;
14997
14998   aix[4-9]*)
14999     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15000       test "$enable_shared" = yes && enable_static=no
15001     fi
15002     ;;
15003   esac
15004   { echo "$as_me:$LINENO: result: $enable_shared" >&5
15005 echo "${ECHO_T}$enable_shared" >&6; }
15006
15007   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15008 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15009   # Make sure either enable_shared or enable_static is yes.
15010   test "$enable_shared" = yes || enable_static=yes
15011   { echo "$as_me:$LINENO: result: $enable_static" >&5
15012 echo "${ECHO_T}$enable_static" >&6; }
15013
15014
15015
15016
15017 fi
15018 ac_ext=c
15019 ac_cpp='$CPP $CPPFLAGS'
15020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15023
15024 CC="$lt_save_CC"
15025
15026
15027 ac_ext=cpp
15028 ac_cpp='$CXXCPP $CPPFLAGS'
15029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15032
15033 archive_cmds_need_lc_CXX=no
15034 allow_undefined_flag_CXX=
15035 always_export_symbols_CXX=no
15036 archive_expsym_cmds_CXX=
15037 compiler_needs_object_CXX=no
15038 export_dynamic_flag_spec_CXX=
15039 hardcode_direct_CXX=no
15040 hardcode_direct_absolute_CXX=no
15041 hardcode_libdir_flag_spec_CXX=
15042 hardcode_libdir_flag_spec_ld_CXX=
15043 hardcode_libdir_separator_CXX=
15044 hardcode_minus_L_CXX=no
15045 hardcode_shlibpath_var_CXX=unsupported
15046 hardcode_automatic_CXX=no
15047 inherit_rpath_CXX=no
15048 module_cmds_CXX=
15049 module_expsym_cmds_CXX=
15050 link_all_deplibs_CXX=unknown
15051 old_archive_cmds_CXX=$old_archive_cmds
15052 no_undefined_flag_CXX=
15053 whole_archive_flag_spec_CXX=
15054 enable_shared_with_static_runtimes_CXX=no
15055
15056 # Source file extension for C++ test sources.
15057 ac_ext=cpp
15058
15059 # Object file extension for compiled C++ test sources.
15060 objext=o
15061 objext_CXX=$objext
15062
15063 # No sense in running all these tests if we already determined that
15064 # the CXX compiler isn't working.  Some variables (like enable_shared)
15065 # are currently assumed to apply to all compilers on this platform,
15066 # and will be corrupted by setting them based on a non-working compiler.
15067 if test "$_lt_caught_CXX_error" != yes; then
15068   # Code to be used in simple compile tests
15069   lt_simple_compile_test_code="int some_variable = 0;"
15070
15071   # Code to be used in simple link tests
15072   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15073
15074   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15075
15076
15077
15078
15079
15080
15081 # If no C compiler was specified, use CC.
15082 LTCC=${LTCC-"$CC"}
15083
15084 # If no C compiler flags were specified, use CFLAGS.
15085 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15086
15087 # Allow CC to be a program name with arguments.
15088 compiler=$CC
15089
15090
15091   # save warnings/boilerplate of simple test code
15092   ac_outfile=conftest.$ac_objext
15093 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15094 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15095 _lt_compiler_boilerplate=`cat conftest.err`
15096 $RM conftest*
15097
15098   ac_outfile=conftest.$ac_objext
15099 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15100 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15101 _lt_linker_boilerplate=`cat conftest.err`
15102 $RM -r conftest*
15103
15104
15105   # Allow CC to be a program name with arguments.
15106   lt_save_CC=$CC
15107   lt_save_LD=$LD
15108   lt_save_GCC=$GCC
15109   GCC=$GXX
15110   lt_save_with_gnu_ld=$with_gnu_ld
15111   lt_save_path_LD=$lt_cv_path_LD
15112   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15113     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15114   else
15115     $as_unset lt_cv_prog_gnu_ld
15116   fi
15117   if test -n "${lt_cv_path_LDCXX+set}"; then
15118     lt_cv_path_LD=$lt_cv_path_LDCXX
15119   else
15120     $as_unset lt_cv_path_LD
15121   fi
15122   test -z "${LDCXX+set}" || LD=$LDCXX
15123   CC=${CXX-"c++"}
15124   compiler=$CC
15125   compiler_CXX=$CC
15126   for cc_temp in $compiler""; do
15127   case $cc_temp in
15128     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15129     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15130     \-*) ;;
15131     *) break;;
15132   esac
15133 done
15134 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15135
15136
15137   if test -n "$compiler"; then
15138     # We don't want -fno-exception when compiling C++ code, so set the
15139     # no_builtin_flag separately
15140     if test "$GXX" = yes; then
15141       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15142     else
15143       lt_prog_compiler_no_builtin_flag_CXX=
15144     fi
15145
15146     if test "$GXX" = yes; then
15147       # Set up default GNU C++ configuration
15148
15149
15150
15151 # Check whether --with-gnu-ld was given.
15152 if test "${with_gnu_ld+set}" = set; then
15153   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15154 else
15155   with_gnu_ld=no
15156 fi
15157
15158 ac_prog=ld
15159 if test "$GCC" = yes; then
15160   # Check if gcc -print-prog-name=ld gives a path.
15161   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15162 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
15163   case $host in
15164   *-*-mingw*)
15165     # gcc leaves a trailing carriage return which upsets mingw
15166     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15167   *)
15168     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15169   esac
15170   case $ac_prog in
15171     # Accept absolute paths.
15172     [\\/]* | ?:[\\/]*)
15173       re_direlt='/[^/][^/]*/\.\./'
15174       # Canonicalize the pathname of ld
15175       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15176       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15177         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15178       done
15179       test -z "$LD" && LD="$ac_prog"
15180       ;;
15181   "")
15182     # If it fails, then pretend we aren't using GCC.
15183     ac_prog=ld
15184     ;;
15185   *)
15186     # If it is relative, then search for the first ld in PATH.
15187     with_gnu_ld=unknown
15188     ;;
15189   esac
15190 elif test "$with_gnu_ld" = yes; then
15191   { echo "$as_me:$LINENO: checking for GNU ld" >&5
15192 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
15193 else
15194   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15195 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
15196 fi
15197 if test "${lt_cv_path_LD+set}" = set; then
15198   echo $ECHO_N "(cached) $ECHO_C" >&6
15199 else
15200   if test -z "$LD"; then
15201   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15202   for ac_dir in $PATH; do
15203     IFS="$lt_save_ifs"
15204     test -z "$ac_dir" && ac_dir=.
15205     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15206       lt_cv_path_LD="$ac_dir/$ac_prog"
15207       # Check to see if the program is GNU ld.  I'd rather use --version,
15208       # but apparently some variants of GNU ld only accept -v.
15209       # Break only if it was the GNU/non-GNU ld that we prefer.
15210       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15211       *GNU* | *'with BFD'*)
15212         test "$with_gnu_ld" != no && break
15213         ;;
15214       *)
15215         test "$with_gnu_ld" != yes && break
15216         ;;
15217       esac
15218     fi
15219   done
15220   IFS="$lt_save_ifs"
15221 else
15222   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15223 fi
15224 fi
15225
15226 LD="$lt_cv_path_LD"
15227 if test -n "$LD"; then
15228   { echo "$as_me:$LINENO: result: $LD" >&5
15229 echo "${ECHO_T}$LD" >&6; }
15230 else
15231   { echo "$as_me:$LINENO: result: no" >&5
15232 echo "${ECHO_T}no" >&6; }
15233 fi
15234 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15235 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15236    { (exit 1); exit 1; }; }
15237 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15238 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
15239 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15240   echo $ECHO_N "(cached) $ECHO_C" >&6
15241 else
15242   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15243 case `$LD -v 2>&1 </dev/null` in
15244 *GNU* | *'with BFD'*)
15245   lt_cv_prog_gnu_ld=yes
15246   ;;
15247 *)
15248   lt_cv_prog_gnu_ld=no
15249   ;;
15250 esac
15251 fi
15252 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15253 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
15254 with_gnu_ld=$lt_cv_prog_gnu_ld
15255
15256
15257
15258
15259
15260
15261
15262       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15263       # archiving commands below assume that GNU ld is being used.
15264       if test "$with_gnu_ld" = yes; then
15265         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15266         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'
15267
15268         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15269         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15270
15271         # If archive_cmds runs LD, not CC, wlarc should be empty
15272         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15273         #     investigate it a little bit more. (MM)
15274         wlarc='${wl}'
15275
15276         # ancient GNU ld didn't support --whole-archive et. al.
15277         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15278           $GREP 'no-whole-archive' > /dev/null; then
15279           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15280         else
15281           whole_archive_flag_spec_CXX=
15282         fi
15283       else
15284         with_gnu_ld=no
15285         wlarc=
15286
15287         # A generic and very simple default shared library creation
15288         # command for GNU C++ for the case where it uses the native
15289         # linker, instead of GNU ld.  If possible, this setting should
15290         # overridden to take advantage of the native linker features on
15291         # the platform it is being used on.
15292         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15293       fi
15294
15295       # Commands to make compiler produce verbose output that lists
15296       # what "hidden" libraries, object files and flags are used when
15297       # linking a shared library.
15298       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15299
15300     else
15301       GXX=no
15302       with_gnu_ld=no
15303       wlarc=
15304     fi
15305
15306     # PORTME: fill in a description of your system's C++ link characteristics
15307     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15308 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15309     ld_shlibs_CXX=yes
15310     case $host_os in
15311       aix3*)
15312         # FIXME: insert proper C++ library support
15313         ld_shlibs_CXX=no
15314         ;;
15315       aix[4-9]*)
15316         if test "$host_cpu" = ia64; then
15317           # On IA64, the linker does run time linking by default, so we don't
15318           # have to do anything special.
15319           aix_use_runtimelinking=no
15320           exp_sym_flag='-Bexport'
15321           no_entry_flag=""
15322         else
15323           aix_use_runtimelinking=no
15324
15325           # Test if we are trying to use run time linking or normal
15326           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15327           # need to do runtime linking.
15328           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15329             for ld_flag in $LDFLAGS; do
15330               case $ld_flag in
15331               *-brtl*)
15332                 aix_use_runtimelinking=yes
15333                 break
15334                 ;;
15335               esac
15336             done
15337             ;;
15338           esac
15339
15340           exp_sym_flag='-bexport'
15341           no_entry_flag='-bnoentry'
15342         fi
15343
15344         # When large executables or shared objects are built, AIX ld can
15345         # have problems creating the table of contents.  If linking a library
15346         # or program results in "error TOC overflow" add -mminimal-toc to
15347         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15348         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15349
15350         archive_cmds_CXX=''
15351         hardcode_direct_CXX=yes
15352         hardcode_direct_absolute_CXX=yes
15353         hardcode_libdir_separator_CXX=':'
15354         link_all_deplibs_CXX=yes
15355         file_list_spec_CXX='${wl}-f,'
15356
15357         if test "$GXX" = yes; then
15358           case $host_os in aix4.[012]|aix4.[012].*)
15359           # We only want to do this on AIX 4.2 and lower, the check
15360           # below for broken collect2 doesn't work under 4.3+
15361           collect2name=`${CC} -print-prog-name=collect2`
15362           if test -f "$collect2name" &&
15363              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15364           then
15365             # We have reworked collect2
15366             :
15367           else
15368             # We have old collect2
15369             hardcode_direct_CXX=unsupported
15370             # It fails to find uninstalled libraries when the uninstalled
15371             # path is not listed in the libpath.  Setting hardcode_minus_L
15372             # to unsupported forces relinking
15373             hardcode_minus_L_CXX=yes
15374             hardcode_libdir_flag_spec_CXX='-L$libdir'
15375             hardcode_libdir_separator_CXX=
15376           fi
15377           esac
15378           shared_flag='-shared'
15379           if test "$aix_use_runtimelinking" = yes; then
15380             shared_flag="$shared_flag "'${wl}-G'
15381           fi
15382         else
15383           # not using gcc
15384           if test "$host_cpu" = ia64; then
15385           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15386           # chokes on -Wl,-G. The following line is correct:
15387           shared_flag='-G'
15388           else
15389             if test "$aix_use_runtimelinking" = yes; then
15390               shared_flag='${wl}-G'
15391             else
15392               shared_flag='${wl}-bM:SRE'
15393             fi
15394           fi
15395         fi
15396
15397         # It seems that -bexpall does not export symbols beginning with
15398         # underscore (_), so it is better to generate a list of symbols to
15399         # export.
15400         always_export_symbols_CXX=yes
15401         if test "$aix_use_runtimelinking" = yes; then
15402           # Warning - without using the other runtime loading flags (-brtl),
15403           # -berok will link without error, but may produce a broken library.
15404           allow_undefined_flag_CXX='-berok'
15405           # Determine the default libpath from the value encoded in an empty
15406           # executable.
15407           cat >conftest.$ac_ext <<_ACEOF
15408 /* confdefs.h.  */
15409 _ACEOF
15410 cat confdefs.h >>conftest.$ac_ext
15411 cat >>conftest.$ac_ext <<_ACEOF
15412 /* end confdefs.h.  */
15413
15414 int
15415 main ()
15416 {
15417
15418   ;
15419   return 0;
15420 }
15421 _ACEOF
15422 rm -f conftest.$ac_objext conftest$ac_exeext
15423 if { (ac_try="$ac_link"
15424 case "(($ac_try" in
15425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426   *) ac_try_echo=$ac_try;;
15427 esac
15428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429   (eval "$ac_link") 2>conftest.er1
15430   ac_status=$?
15431   grep -v '^ *+' conftest.er1 >conftest.err
15432   rm -f conftest.er1
15433   cat conftest.err >&5
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); } && {
15436          test -z "$ac_cxx_werror_flag" ||
15437          test ! -s conftest.err
15438        } && test -s conftest$ac_exeext &&
15439        $as_test_x conftest$ac_exeext; then
15440
15441 lt_aix_libpath_sed='
15442     /Import File Strings/,/^$/ {
15443         /^0/ {
15444             s/^0  *\(.*\)$/\1/
15445             p
15446         }
15447     }'
15448 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15449 # Check for a 64-bit object if we didn't find anything.
15450 if test -z "$aix_libpath"; then
15451   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15452 fi
15453 else
15454   echo "$as_me: failed program was:" >&5
15455 sed 's/^/| /' conftest.$ac_ext >&5
15456
15457
15458 fi
15459
15460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15461       conftest$ac_exeext conftest.$ac_ext
15462 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15463
15464           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15465
15466           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"
15467         else
15468           if test "$host_cpu" = ia64; then
15469             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15470             allow_undefined_flag_CXX="-z nodefs"
15471             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"
15472           else
15473             # Determine the default libpath from the value encoded in an
15474             # empty executable.
15475             cat >conftest.$ac_ext <<_ACEOF
15476 /* confdefs.h.  */
15477 _ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h.  */
15481
15482 int
15483 main ()
15484 {
15485
15486   ;
15487   return 0;
15488 }
15489 _ACEOF
15490 rm -f conftest.$ac_objext conftest$ac_exeext
15491 if { (ac_try="$ac_link"
15492 case "(($ac_try" in
15493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494   *) ac_try_echo=$ac_try;;
15495 esac
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497   (eval "$ac_link") 2>conftest.er1
15498   ac_status=$?
15499   grep -v '^ *+' conftest.er1 >conftest.err
15500   rm -f conftest.er1
15501   cat conftest.err >&5
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); } && {
15504          test -z "$ac_cxx_werror_flag" ||
15505          test ! -s conftest.err
15506        } && test -s conftest$ac_exeext &&
15507        $as_test_x conftest$ac_exeext; then
15508
15509 lt_aix_libpath_sed='
15510     /Import File Strings/,/^$/ {
15511         /^0/ {
15512             s/^0  *\(.*\)$/\1/
15513             p
15514         }
15515     }'
15516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15517 # Check for a 64-bit object if we didn't find anything.
15518 if test -z "$aix_libpath"; then
15519   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15520 fi
15521 else
15522   echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15524
15525
15526 fi
15527
15528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15529       conftest$ac_exeext conftest.$ac_ext
15530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15531
15532             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15533             # Warning - without using the other run time loading flags,
15534             # -berok will link without error, but may produce a broken library.
15535             no_undefined_flag_CXX=' ${wl}-bernotok'
15536             allow_undefined_flag_CXX=' ${wl}-berok'
15537             # Exported symbols can be pulled into shared objects from archives
15538             whole_archive_flag_spec_CXX='$convenience'
15539             archive_cmds_need_lc_CXX=yes
15540             # This is similar to how AIX traditionally builds its shared
15541             # libraries.
15542             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'
15543           fi
15544         fi
15545         ;;
15546
15547       beos*)
15548         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15549           allow_undefined_flag_CXX=unsupported
15550           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15551           # support --undefined.  This deserves some investigation.  FIXME
15552           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15553         else
15554           ld_shlibs_CXX=no
15555         fi
15556         ;;
15557
15558       chorus*)
15559         case $cc_basename in
15560           *)
15561           # FIXME: insert proper C++ library support
15562           ld_shlibs_CXX=no
15563           ;;
15564         esac
15565         ;;
15566
15567       cygwin* | mingw* | pw32*)
15568         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15569         # as there is no search path for DLLs.
15570         hardcode_libdir_flag_spec_CXX='-L$libdir'
15571         allow_undefined_flag_CXX=unsupported
15572         always_export_symbols_CXX=no
15573         enable_shared_with_static_runtimes_CXX=yes
15574
15575         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15576           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'
15577           # If the export-symbols file already is a .def file (1st line
15578           # is EXPORTS), use it as is; otherwise, prepend...
15579           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15580             cp $export_symbols $output_objdir/$soname.def;
15581           else
15582             echo EXPORTS > $output_objdir/$soname.def;
15583             cat $export_symbols >> $output_objdir/$soname.def;
15584           fi~
15585           $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'
15586         else
15587           ld_shlibs_CXX=no
15588         fi
15589         ;;
15590       darwin* | rhapsody*)
15591
15592
15593   archive_cmds_need_lc_CXX=no
15594   hardcode_direct_CXX=no
15595   hardcode_automatic_CXX=yes
15596   hardcode_shlibpath_var_CXX=unsupported
15597   whole_archive_flag_spec_CXX=''
15598   link_all_deplibs_CXX=yes
15599   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15600   if test "$GCC" = "yes"; then
15601     output_verbose_link_cmd=echo
15602     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}"
15603     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15604     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}"
15605     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}"
15606        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15607       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}"
15608       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}"
15609     fi
15610
15611   else
15612   ld_shlibs_CXX=no
15613   fi
15614
15615         ;;
15616
15617       dgux*)
15618         case $cc_basename in
15619           ec++*)
15620             # FIXME: insert proper C++ library support
15621             ld_shlibs_CXX=no
15622             ;;
15623           ghcx*)
15624             # Green Hills C++ Compiler
15625             # FIXME: insert proper C++ library support
15626             ld_shlibs_CXX=no
15627             ;;
15628           *)
15629             # FIXME: insert proper C++ library support
15630             ld_shlibs_CXX=no
15631             ;;
15632         esac
15633         ;;
15634
15635       freebsd[12]*)
15636         # C++ shared libraries reported to be fairly broken before
15637         # switch to ELF
15638         ld_shlibs_CXX=no
15639         ;;
15640
15641       freebsd-elf*)
15642         archive_cmds_need_lc_CXX=no
15643         ;;
15644
15645       freebsd* | dragonfly*)
15646         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15647         # conventions
15648         ld_shlibs_CXX=yes
15649         ;;
15650
15651       gnu*)
15652         ;;
15653
15654       hpux9*)
15655         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15656         hardcode_libdir_separator_CXX=:
15657         export_dynamic_flag_spec_CXX='${wl}-E'
15658         hardcode_direct_CXX=yes
15659         hardcode_minus_L_CXX=yes # Not in the search PATH,
15660                                              # but as the default
15661                                              # location of the library.
15662
15663         case $cc_basename in
15664           CC*)
15665             # FIXME: insert proper C++ library support
15666             ld_shlibs_CXX=no
15667             ;;
15668           aCC*)
15669             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'
15670             # Commands to make compiler produce verbose output that lists
15671             # what "hidden" libraries, object files and flags are used when
15672             # linking a shared library.
15673             #
15674             # There doesn't appear to be a way to prevent this compiler from
15675             # explicitly linking system object files so we need to strip them
15676             # from the output so that they don't get included in the library
15677             # dependencies.
15678             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'
15679             ;;
15680           *)
15681             if test "$GXX" = yes; then
15682               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'
15683             else
15684               # FIXME: insert proper C++ library support
15685               ld_shlibs_CXX=no
15686             fi
15687             ;;
15688         esac
15689         ;;
15690
15691       hpux10*|hpux11*)
15692         if test $with_gnu_ld = no; then
15693           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15694           hardcode_libdir_separator_CXX=:
15695
15696           case $host_cpu in
15697             hppa*64*|ia64*)
15698               ;;
15699             *)
15700               export_dynamic_flag_spec_CXX='${wl}-E'
15701               ;;
15702           esac
15703         fi
15704         case $host_cpu in
15705           hppa*64*|ia64*)
15706             hardcode_direct_CXX=no
15707             hardcode_shlibpath_var_CXX=no
15708             ;;
15709           *)
15710             hardcode_direct_CXX=yes
15711             hardcode_direct_absolute_CXX=yes
15712             hardcode_minus_L_CXX=yes # Not in the search PATH,
15713                                                  # but as the default
15714                                                  # location of the library.
15715             ;;
15716         esac
15717
15718         case $cc_basename in
15719           CC*)
15720             # FIXME: insert proper C++ library support
15721             ld_shlibs_CXX=no
15722             ;;
15723           aCC*)
15724             case $host_cpu in
15725               hppa*64*)
15726                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15727                 ;;
15728               ia64*)
15729                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15730                 ;;
15731               *)
15732                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15733                 ;;
15734             esac
15735             # Commands to make compiler produce verbose output that lists
15736             # what "hidden" libraries, object files and flags are used when
15737             # linking a shared library.
15738             #
15739             # There doesn't appear to be a way to prevent this compiler from
15740             # explicitly linking system object files so we need to strip them
15741             # from the output so that they don't get included in the library
15742             # dependencies.
15743             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'
15744             ;;
15745           *)
15746             if test "$GXX" = yes; then
15747               if test $with_gnu_ld = no; then
15748                 case $host_cpu in
15749                   hppa*64*)
15750                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15751                     ;;
15752                   ia64*)
15753                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15754                     ;;
15755                   *)
15756                     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'
15757                     ;;
15758                 esac
15759               fi
15760             else
15761               # FIXME: insert proper C++ library support
15762               ld_shlibs_CXX=no
15763             fi
15764             ;;
15765         esac
15766         ;;
15767
15768       interix[3-9]*)
15769         hardcode_direct_CXX=no
15770         hardcode_shlibpath_var_CXX=no
15771         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15772         export_dynamic_flag_spec_CXX='${wl}-E'
15773         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15774         # Instead, shared libraries are loaded at an image base (0x10000000 by
15775         # default) and relocated if they conflict, which is a slow very memory
15776         # consuming and fragmenting process.  To avoid this, we pick a random,
15777         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15778         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15779         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'
15780         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'
15781         ;;
15782       irix5* | irix6*)
15783         case $cc_basename in
15784           CC*)
15785             # SGI C++
15786             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'
15787
15788             # Archives containing C++ object files must be created using
15789             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15790             # necessary to make sure instantiated templates are included
15791             # in the archive.
15792             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15793             ;;
15794           *)
15795             if test "$GXX" = yes; then
15796               if test "$with_gnu_ld" = no; then
15797                 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'
15798               else
15799                 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'
15800               fi
15801             fi
15802             link_all_deplibs_CXX=yes
15803             ;;
15804         esac
15805         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15806         hardcode_libdir_separator_CXX=:
15807         inherit_rpath_CXX=yes
15808         ;;
15809
15810       linux* | k*bsd*-gnu)
15811         case $cc_basename in
15812           KCC*)
15813             # Kuck and Associates, Inc. (KAI) C++ Compiler
15814
15815             # KCC will only create a shared library if the output file
15816             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15817             # to its proper name (with version) after linking.
15818             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'
15819             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'
15820             # Commands to make compiler produce verbose output that lists
15821             # what "hidden" libraries, object files and flags are used when
15822             # linking a shared library.
15823             #
15824             # There doesn't appear to be a way to prevent this compiler from
15825             # explicitly linking system object files so we need to strip them
15826             # from the output so that they don't get included in the library
15827             # dependencies.
15828             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'
15829
15830             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15831             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15832
15833             # Archives containing C++ object files must be created using
15834             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15835             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15836             ;;
15837           icpc* | ecpc* )
15838             # Intel C++
15839             with_gnu_ld=yes
15840             # version 8.0 and above of icpc choke on multiply defined symbols
15841             # if we add $predep_objects and $postdep_objects, however 7.1 and
15842             # earlier do not add the objects themselves.
15843             case `$CC -V 2>&1` in
15844               *"Version 7."*)
15845                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15846                 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'
15847                 ;;
15848               *)  # Version 8.0 or newer
15849                 tmp_idyn=
15850                 case $host_cpu in
15851                   ia64*) tmp_idyn=' -i_dynamic';;
15852                 esac
15853                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15854                 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'
15855                 ;;
15856             esac
15857             archive_cmds_need_lc_CXX=no
15858             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15859             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15860             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15861             ;;
15862           pgCC* | pgcpp*)
15863             # Portland Group C++ compiler
15864             case `$CC -V` in
15865             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15866               prelink_cmds_CXX='tpldir=Template.dir~
15867                 rm -rf $tpldir~
15868                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15869                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15870               old_archive_cmds_CXX='tpldir=Template.dir~
15871                 rm -rf $tpldir~
15872                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15873                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15874                 $RANLIB $oldlib'
15875               archive_cmds_CXX='tpldir=Template.dir~
15876                 rm -rf $tpldir~
15877                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15878                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15879               archive_expsym_cmds_CXX='tpldir=Template.dir~
15880                 rm -rf $tpldir~
15881                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15882                 $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'
15883               ;;
15884             *) # Version 6 will use weak symbols
15885               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15886               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'
15887               ;;
15888             esac
15889
15890             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15891             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15892             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'
15893             ;;
15894           cxx*)
15895             # Compaq C++
15896             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15897             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'
15898
15899             runpath_var=LD_RUN_PATH
15900             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15901             hardcode_libdir_separator_CXX=:
15902
15903             # Commands to make compiler produce verbose output that lists
15904             # what "hidden" libraries, object files and flags are used when
15905             # linking a shared library.
15906             #
15907             # There doesn't appear to be a way to prevent this compiler from
15908             # explicitly linking system object files so we need to strip them
15909             # from the output so that they don't get included in the library
15910             # dependencies.
15911             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'
15912             ;;
15913           xl*)
15914             # IBM XL 8.0 on PPC, with GNU ld
15915             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15916             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15917             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15918             if test "x$supports_anon_versioning" = xyes; then
15919               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15920                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15921                 echo "local: *; };" >> $output_objdir/$libname.ver~
15922                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15923             fi
15924             ;;
15925           *)
15926             case `$CC -V 2>&1 | sed 5q` in
15927             *Sun\ C*)
15928               # Sun C++ 5.9
15929               no_undefined_flag_CXX=' -zdefs'
15930               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15931               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'
15932               hardcode_libdir_flag_spec_CXX='-R$libdir'
15933               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'
15934               compiler_needs_object_CXX=yes
15935
15936               # Not sure whether something based on
15937               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15938               # would be better.
15939               output_verbose_link_cmd='echo'
15940
15941               # Archives containing C++ object files must be created using
15942               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15943               # necessary to make sure instantiated templates are included
15944               # in the archive.
15945               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15946               ;;
15947             esac
15948             ;;
15949         esac
15950         ;;
15951
15952       lynxos*)
15953         # FIXME: insert proper C++ library support
15954         ld_shlibs_CXX=no
15955         ;;
15956
15957       m88k*)
15958         # FIXME: insert proper C++ library support
15959         ld_shlibs_CXX=no
15960         ;;
15961
15962       mvs*)
15963         case $cc_basename in
15964           cxx*)
15965             # FIXME: insert proper C++ library support
15966             ld_shlibs_CXX=no
15967             ;;
15968           *)
15969             # FIXME: insert proper C++ library support
15970             ld_shlibs_CXX=no
15971             ;;
15972         esac
15973         ;;
15974
15975       netbsd*)
15976         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15977           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15978           wlarc=
15979           hardcode_libdir_flag_spec_CXX='-R$libdir'
15980           hardcode_direct_CXX=yes
15981           hardcode_shlibpath_var_CXX=no
15982         fi
15983         # Workaround some broken pre-1.5 toolchains
15984         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15985         ;;
15986
15987       *nto* | *qnx*)
15988         ld_shlibs_CXX=yes
15989         ;;
15990
15991       openbsd2*)
15992         # C++ shared libraries are fairly broken
15993         ld_shlibs_CXX=no
15994         ;;
15995
15996       openbsd*)
15997         if test -f /usr/libexec/ld.so; then
15998           hardcode_direct_CXX=yes
15999           hardcode_shlibpath_var_CXX=no
16000           hardcode_direct_absolute_CXX=yes
16001           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16002           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16003           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16004             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16005             export_dynamic_flag_spec_CXX='${wl}-E'
16006             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16007           fi
16008           output_verbose_link_cmd=echo
16009         else
16010           ld_shlibs_CXX=no
16011         fi
16012         ;;
16013
16014       osf3* | osf4* | osf5*)
16015         case $cc_basename in
16016           KCC*)
16017             # Kuck and Associates, Inc. (KAI) C++ Compiler
16018
16019             # KCC will only create a shared library if the output file
16020             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16021             # to its proper name (with version) after linking.
16022             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'
16023
16024             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16025             hardcode_libdir_separator_CXX=:
16026
16027             # Archives containing C++ object files must be created using
16028             # the KAI C++ compiler.
16029             case $host in
16030               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16031               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16032             esac
16033             ;;
16034           RCC*)
16035             # Rational C++ 2.4.1
16036             # FIXME: insert proper C++ library support
16037             ld_shlibs_CXX=no
16038             ;;
16039           cxx*)
16040             case $host in
16041               osf3*)
16042                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16043                 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'
16044                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16045                 ;;
16046               *)
16047                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16048                 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'
16049                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16050                   echo "-hidden">> $lib.exp~
16051                   $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~
16052                   $RM $lib.exp'
16053                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16054                 ;;
16055             esac
16056
16057             hardcode_libdir_separator_CXX=:
16058
16059             # Commands to make compiler produce verbose output that lists
16060             # what "hidden" libraries, object files and flags are used when
16061             # linking a shared library.
16062             #
16063             # There doesn't appear to be a way to prevent this compiler from
16064             # explicitly linking system object files so we need to strip them
16065             # from the output so that they don't get included in the library
16066             # dependencies.
16067             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'
16068             ;;
16069           *)
16070             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16071               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16072               case $host in
16073                 osf3*)
16074                   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'
16075                   ;;
16076                 *)
16077                   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'
16078                   ;;
16079               esac
16080
16081               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16082               hardcode_libdir_separator_CXX=:
16083
16084               # Commands to make compiler produce verbose output that lists
16085               # what "hidden" libraries, object files and flags are used when
16086               # linking a shared library.
16087               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16088
16089             else
16090               # FIXME: insert proper C++ library support
16091               ld_shlibs_CXX=no
16092             fi
16093             ;;
16094         esac
16095         ;;
16096
16097       psos*)
16098         # FIXME: insert proper C++ library support
16099         ld_shlibs_CXX=no
16100         ;;
16101
16102       sunos4*)
16103         case $cc_basename in
16104           CC*)
16105             # Sun C++ 4.x
16106             # FIXME: insert proper C++ library support
16107             ld_shlibs_CXX=no
16108             ;;
16109           lcc*)
16110             # Lucid
16111             # FIXME: insert proper C++ library support
16112             ld_shlibs_CXX=no
16113             ;;
16114           *)
16115             # FIXME: insert proper C++ library support
16116             ld_shlibs_CXX=no
16117             ;;
16118         esac
16119         ;;
16120
16121       solaris*)
16122         case $cc_basename in
16123           CC*)
16124             # Sun C++ 4.2, 5.x and Centerline C++
16125             archive_cmds_need_lc_CXX=yes
16126             no_undefined_flag_CXX=' -zdefs'
16127             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16128             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16129               $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'
16130
16131             hardcode_libdir_flag_spec_CXX='-R$libdir'
16132             hardcode_shlibpath_var_CXX=no
16133             case $host_os in
16134               solaris2.[0-5] | solaris2.[0-5].*) ;;
16135               *)
16136                 # The compiler driver will combine and reorder linker options,
16137                 # but understands `-z linker_flag'.
16138                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16139                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16140                 ;;
16141             esac
16142             link_all_deplibs_CXX=yes
16143
16144             output_verbose_link_cmd='echo'
16145
16146             # Archives containing C++ object files must be created using
16147             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16148             # necessary to make sure instantiated templates are included
16149             # in the archive.
16150             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16151             ;;
16152           gcx*)
16153             # Green Hills C++ Compiler
16154             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16155
16156             # The C++ compiler must be used to create the archive.
16157             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16158             ;;
16159           *)
16160             # GNU C++ compiler with Solaris linker
16161             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16162               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16163               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16164                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16165                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16166                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16167
16168                 # Commands to make compiler produce verbose output that lists
16169                 # what "hidden" libraries, object files and flags are used when
16170                 # linking a shared library.
16171                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16172               else
16173                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16174                 # platform.
16175                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16176                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16177                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16178
16179                 # Commands to make compiler produce verbose output that lists
16180                 # what "hidden" libraries, object files and flags are used when
16181                 # linking a shared library.
16182                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16183               fi
16184
16185               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16186               case $host_os in
16187                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16188                 *)
16189                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16190                   ;;
16191               esac
16192             fi
16193             ;;
16194         esac
16195         ;;
16196
16197     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16198       no_undefined_flag_CXX='${wl}-z,text'
16199       archive_cmds_need_lc_CXX=no
16200       hardcode_shlibpath_var_CXX=no
16201       runpath_var='LD_RUN_PATH'
16202
16203       case $cc_basename in
16204         CC*)
16205           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16206           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16207           ;;
16208         *)
16209           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16210           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16211           ;;
16212       esac
16213       ;;
16214
16215       sysv5* | sco3.2v5* | sco5v6*)
16216         # Note: We can NOT use -z defs as we might desire, because we do not
16217         # link with -lc, and that would cause any symbols used from libc to
16218         # always be unresolved, which means just about no library would
16219         # ever link correctly.  If we're not using GNU ld we use -z text
16220         # though, which does catch some bad symbols but isn't as heavy-handed
16221         # as -z defs.
16222         no_undefined_flag_CXX='${wl}-z,text'
16223         allow_undefined_flag_CXX='${wl}-z,nodefs'
16224         archive_cmds_need_lc_CXX=no
16225         hardcode_shlibpath_var_CXX=no
16226         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16227         hardcode_libdir_separator_CXX=':'
16228         link_all_deplibs_CXX=yes
16229         export_dynamic_flag_spec_CXX='${wl}-Bexport'
16230         runpath_var='LD_RUN_PATH'
16231
16232         case $cc_basename in
16233           CC*)
16234             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16235             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16236             ;;
16237           *)
16238             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16239             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16240             ;;
16241         esac
16242       ;;
16243
16244       tandem*)
16245         case $cc_basename in
16246           NCC*)
16247             # NonStop-UX NCC 3.20
16248             # FIXME: insert proper C++ library support
16249             ld_shlibs_CXX=no
16250             ;;
16251           *)
16252             # FIXME: insert proper C++ library support
16253             ld_shlibs_CXX=no
16254             ;;
16255         esac
16256         ;;
16257
16258       vxworks*)
16259         # FIXME: insert proper C++ library support
16260         ld_shlibs_CXX=no
16261         ;;
16262
16263       *)
16264         # FIXME: insert proper C++ library support
16265         ld_shlibs_CXX=no
16266         ;;
16267     esac
16268
16269     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16270 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
16271     test "$ld_shlibs_CXX" = no && can_build_shared=no
16272
16273     GCC_CXX="$GXX"
16274     LD_CXX="$LD"
16275
16276     ## CAVEAT EMPTOR:
16277     ## There is no encapsulation within the following macros, do not change
16278     ## the running order or otherwise move them around unless you know exactly
16279     ## what you are doing...
16280     # Dependencies to place before and after the object being linked:
16281 predep_objects_CXX=
16282 postdep_objects_CXX=
16283 predeps_CXX=
16284 postdeps_CXX=
16285 compiler_lib_search_path_CXX=
16286
16287 cat > conftest.$ac_ext <<_LT_EOF
16288 class Foo
16289 {
16290 public:
16291   Foo (void) { a = 0; }
16292 private:
16293   int a;
16294 };
16295 _LT_EOF
16296
16297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16298   (eval $ac_compile) 2>&5
16299   ac_status=$?
16300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301   (exit $ac_status); }; then
16302   # Parse the compiler output and extract the necessary
16303   # objects, libraries and library flags.
16304
16305   # Sentinel used to keep track of whether or not we are before
16306   # the conftest object file.
16307   pre_test_object_deps_done=no
16308
16309   for p in `eval "$output_verbose_link_cmd"`; do
16310     case $p in
16311
16312     -L* | -R* | -l*)
16313        # Some compilers place space between "-{L,R}" and the path.
16314        # Remove the space.
16315        if test $p = "-L" ||
16316           test $p = "-R"; then
16317          prev=$p
16318          continue
16319        else
16320          prev=
16321        fi
16322
16323        if test "$pre_test_object_deps_done" = no; then
16324          case $p in
16325          -L* | -R*)
16326            # Internal compiler library paths should come after those
16327            # provided the user.  The postdeps already come after the
16328            # user supplied libs so there is no need to process them.
16329            if test -z "$compiler_lib_search_path_CXX"; then
16330              compiler_lib_search_path_CXX="${prev}${p}"
16331            else
16332              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16333            fi
16334            ;;
16335          # The "-l" case would never come before the object being
16336          # linked, so don't bother handling this case.
16337          esac
16338        else
16339          if test -z "$postdeps_CXX"; then
16340            postdeps_CXX="${prev}${p}"
16341          else
16342            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16343          fi
16344        fi
16345        ;;
16346
16347     *.$objext)
16348        # This assumes that the test object file only shows up
16349        # once in the compiler output.
16350        if test "$p" = "conftest.$objext"; then
16351          pre_test_object_deps_done=yes
16352          continue
16353        fi
16354
16355        if test "$pre_test_object_deps_done" = no; then
16356          if test -z "$predep_objects_CXX"; then
16357            predep_objects_CXX="$p"
16358          else
16359            predep_objects_CXX="$predep_objects_CXX $p"
16360          fi
16361        else
16362          if test -z "$postdep_objects_CXX"; then
16363            postdep_objects_CXX="$p"
16364          else
16365            postdep_objects_CXX="$postdep_objects_CXX $p"
16366          fi
16367        fi
16368        ;;
16369
16370     *) ;; # Ignore the rest.
16371
16372     esac
16373   done
16374
16375   # Clean up.
16376   rm -f a.out a.exe
16377 else
16378   echo "libtool.m4: error: problem compiling CXX test program"
16379 fi
16380
16381 $RM -f confest.$objext
16382
16383 # PORTME: override above test on systems where it is broken
16384 case $host_os in
16385 interix[3-9]*)
16386   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16387   # hack all around it, let's just trust "g++" to DTRT.
16388   predep_objects_CXX=
16389   postdep_objects_CXX=
16390   postdeps_CXX=
16391   ;;
16392
16393 linux*)
16394   case `$CC -V 2>&1 | sed 5q` in
16395   *Sun\ C*)
16396     # Sun C++ 5.9
16397
16398     # The more standards-conforming stlport4 library is
16399     # incompatible with the Cstd library. Avoid specifying
16400     # it if it's in CXXFLAGS. Ignore libCrun as
16401     # -library=stlport4 depends on it.
16402     case " $CXX $CXXFLAGS " in
16403     *" -library=stlport4 "*)
16404       solaris_use_stlport4=yes
16405       ;;
16406     esac
16407
16408     if test "$solaris_use_stlport4" != yes; then
16409       postdeps_CXX='-library=Cstd -library=Crun'
16410     fi
16411     ;;
16412   esac
16413   ;;
16414
16415 solaris*)
16416   case $cc_basename in
16417   CC*)
16418     # The more standards-conforming stlport4 library is
16419     # incompatible with the Cstd library. Avoid specifying
16420     # it if it's in CXXFLAGS. Ignore libCrun as
16421     # -library=stlport4 depends on it.
16422     case " $CXX $CXXFLAGS " in
16423     *" -library=stlport4 "*)
16424       solaris_use_stlport4=yes
16425       ;;
16426     esac
16427
16428     # Adding this requires a known-good setup of shared libraries for
16429     # Sun compiler versions before 5.6, else PIC objects from an old
16430     # archive will be linked into the output, leading to subtle bugs.
16431     if test "$solaris_use_stlport4" != yes; then
16432       postdeps_CXX='-library=Cstd -library=Crun'
16433     fi
16434     ;;
16435   esac
16436   ;;
16437 esac
16438
16439
16440 case " $postdeps_CXX " in
16441 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16442 esac
16443  compiler_lib_search_dirs_CXX=
16444 if test -n "${compiler_lib_search_path_CXX}"; then
16445  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16446 fi
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478     lt_prog_compiler_wl_CXX=
16479 lt_prog_compiler_pic_CXX=
16480 lt_prog_compiler_static_CXX=
16481
16482 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16483 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16484
16485   # C++ specific cases for pic, static, wl, etc.
16486   if test "$GXX" = yes; then
16487     lt_prog_compiler_wl_CXX='-Wl,'
16488     lt_prog_compiler_static_CXX='-static'
16489
16490     case $host_os in
16491     aix*)
16492       # All AIX code is PIC.
16493       if test "$host_cpu" = ia64; then
16494         # AIX 5 now supports IA64 processor
16495         lt_prog_compiler_static_CXX='-Bstatic'
16496       fi
16497       ;;
16498
16499     amigaos*)
16500       case $host_cpu in
16501       powerpc)
16502             # see comment about AmigaOS4 .so support
16503             lt_prog_compiler_pic_CXX='-fPIC'
16504         ;;
16505       m68k)
16506             # FIXME: we need at least 68020 code to build shared libraries, but
16507             # adding the `-m68020' flag to GCC prevents building anything better,
16508             # like `-m68040'.
16509             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16510         ;;
16511       esac
16512       ;;
16513
16514     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16515       # PIC is the default for these OSes.
16516       ;;
16517     mingw* | cygwin* | os2* | pw32*)
16518       # This hack is so that the source file can tell whether it is being
16519       # built for inclusion in a dll (and should export symbols for example).
16520       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16521       # (--disable-auto-import) libraries
16522       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16523       ;;
16524     darwin* | rhapsody*)
16525       # PIC is the default on this platform
16526       # Common symbols not allowed in MH_DYLIB files
16527       lt_prog_compiler_pic_CXX='-fno-common'
16528       ;;
16529     *djgpp*)
16530       # DJGPP does not support shared libraries at all
16531       lt_prog_compiler_pic_CXX=
16532       ;;
16533     interix[3-9]*)
16534       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16535       # Instead, we relocate shared libraries at runtime.
16536       ;;
16537     sysv4*MP*)
16538       if test -d /usr/nec; then
16539         lt_prog_compiler_pic_CXX=-Kconform_pic
16540       fi
16541       ;;
16542     hpux*)
16543       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16544       # not for PA HP-UX.
16545       case $host_cpu in
16546       hppa*64*|ia64*)
16547         ;;
16548       *)
16549         lt_prog_compiler_pic_CXX='-fPIC'
16550         ;;
16551       esac
16552       ;;
16553     *qnx* | *nto*)
16554       # QNX uses GNU C++, but need to define -shared option too, otherwise
16555       # it will coredump.
16556       lt_prog_compiler_pic_CXX='-fPIC -shared'
16557       ;;
16558     *)
16559       lt_prog_compiler_pic_CXX='-fPIC'
16560       ;;
16561     esac
16562   else
16563     case $host_os in
16564       aix[4-9]*)
16565         # All AIX code is PIC.
16566         if test "$host_cpu" = ia64; then
16567           # AIX 5 now supports IA64 processor
16568           lt_prog_compiler_static_CXX='-Bstatic'
16569         else
16570           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16571         fi
16572         ;;
16573       chorus*)
16574         case $cc_basename in
16575         cxch68*)
16576           # Green Hills C++ Compiler
16577           # _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"
16578           ;;
16579         esac
16580         ;;
16581       dgux*)
16582         case $cc_basename in
16583           ec++*)
16584             lt_prog_compiler_pic_CXX='-KPIC'
16585             ;;
16586           ghcx*)
16587             # Green Hills C++ Compiler
16588             lt_prog_compiler_pic_CXX='-pic'
16589             ;;
16590           *)
16591             ;;
16592         esac
16593         ;;
16594       freebsd* | dragonfly*)
16595         # FreeBSD uses GNU C++
16596         ;;
16597       hpux9* | hpux10* | hpux11*)
16598         case $cc_basename in
16599           CC*)
16600             lt_prog_compiler_wl_CXX='-Wl,'
16601             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16602             if test "$host_cpu" != ia64; then
16603               lt_prog_compiler_pic_CXX='+Z'
16604             fi
16605             ;;
16606           aCC*)
16607             lt_prog_compiler_wl_CXX='-Wl,'
16608             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16609             case $host_cpu in
16610             hppa*64*|ia64*)
16611               # +Z the default
16612               ;;
16613             *)
16614               lt_prog_compiler_pic_CXX='+Z'
16615               ;;
16616             esac
16617             ;;
16618           *)
16619             ;;
16620         esac
16621         ;;
16622       interix*)
16623         # This is c89, which is MS Visual C++ (no shared libs)
16624         # Anyone wants to do a port?
16625         ;;
16626       irix5* | irix6* | nonstopux*)
16627         case $cc_basename in
16628           CC*)
16629             lt_prog_compiler_wl_CXX='-Wl,'
16630             lt_prog_compiler_static_CXX='-non_shared'
16631             # CC pic flag -KPIC is the default.
16632             ;;
16633           *)
16634             ;;
16635         esac
16636         ;;
16637       linux* | k*bsd*-gnu)
16638         case $cc_basename in
16639           KCC*)
16640             # KAI C++ Compiler
16641             lt_prog_compiler_wl_CXX='--backend -Wl,'
16642             lt_prog_compiler_pic_CXX='-fPIC'
16643             ;;
16644           icpc* | ecpc* )
16645             # Intel C++
16646             lt_prog_compiler_wl_CXX='-Wl,'
16647             lt_prog_compiler_pic_CXX='-KPIC'
16648             lt_prog_compiler_static_CXX='-static'
16649             ;;
16650           pgCC* | pgcpp*)
16651             # Portland Group C++ compiler
16652             lt_prog_compiler_wl_CXX='-Wl,'
16653             lt_prog_compiler_pic_CXX='-fpic'
16654             lt_prog_compiler_static_CXX='-Bstatic'
16655             ;;
16656           cxx*)
16657             # Compaq C++
16658             # Make sure the PIC flag is empty.  It appears that all Alpha
16659             # Linux and Compaq Tru64 Unix objects are PIC.
16660             lt_prog_compiler_pic_CXX=
16661             lt_prog_compiler_static_CXX='-non_shared'
16662             ;;
16663           xlc* | xlC*)
16664             # IBM XL 8.0 on PPC
16665             lt_prog_compiler_wl_CXX='-Wl,'
16666             lt_prog_compiler_pic_CXX='-qpic'
16667             lt_prog_compiler_static_CXX='-qstaticlink'
16668             ;;
16669           *)
16670             case `$CC -V 2>&1 | sed 5q` in
16671             *Sun\ C*)
16672               # Sun C++ 5.9
16673               lt_prog_compiler_pic_CXX='-KPIC'
16674               lt_prog_compiler_static_CXX='-Bstatic'
16675               lt_prog_compiler_wl_CXX='-Qoption ld '
16676               ;;
16677             esac
16678             ;;
16679         esac
16680         ;;
16681       lynxos*)
16682         ;;
16683       m88k*)
16684         ;;
16685       mvs*)
16686         case $cc_basename in
16687           cxx*)
16688             lt_prog_compiler_pic_CXX='-W c,exportall'
16689             ;;
16690           *)
16691             ;;
16692         esac
16693         ;;
16694       netbsd* | netbsdelf*-gnu)
16695         ;;
16696       *qnx* | *nto*)
16697         # QNX uses GNU C++, but need to define -shared option too, otherwise
16698         # it will coredump.
16699         lt_prog_compiler_pic_CXX='-fPIC -shared'
16700         ;;
16701       osf3* | osf4* | osf5*)
16702         case $cc_basename in
16703           KCC*)
16704             lt_prog_compiler_wl_CXX='--backend -Wl,'
16705             ;;
16706           RCC*)
16707             # Rational C++ 2.4.1
16708             lt_prog_compiler_pic_CXX='-pic'
16709             ;;
16710           cxx*)
16711             # Digital/Compaq C++
16712             lt_prog_compiler_wl_CXX='-Wl,'
16713             # Make sure the PIC flag is empty.  It appears that all Alpha
16714             # Linux and Compaq Tru64 Unix objects are PIC.
16715             lt_prog_compiler_pic_CXX=
16716             lt_prog_compiler_static_CXX='-non_shared'
16717             ;;
16718           *)
16719             ;;
16720         esac
16721         ;;
16722       psos*)
16723         ;;
16724       solaris*)
16725         case $cc_basename in
16726           CC*)
16727             # Sun C++ 4.2, 5.x and Centerline C++
16728             lt_prog_compiler_pic_CXX='-KPIC'
16729             lt_prog_compiler_static_CXX='-Bstatic'
16730             lt_prog_compiler_wl_CXX='-Qoption ld '
16731             ;;
16732           gcx*)
16733             # Green Hills C++ Compiler
16734             lt_prog_compiler_pic_CXX='-PIC'
16735             ;;
16736           *)
16737             ;;
16738         esac
16739         ;;
16740       sunos4*)
16741         case $cc_basename in
16742           CC*)
16743             # Sun C++ 4.x
16744             lt_prog_compiler_pic_CXX='-pic'
16745             lt_prog_compiler_static_CXX='-Bstatic'
16746             ;;
16747           lcc*)
16748             # Lucid
16749             lt_prog_compiler_pic_CXX='-pic'
16750             ;;
16751           *)
16752             ;;
16753         esac
16754         ;;
16755       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16756         case $cc_basename in
16757           CC*)
16758             lt_prog_compiler_wl_CXX='-Wl,'
16759             lt_prog_compiler_pic_CXX='-KPIC'
16760             lt_prog_compiler_static_CXX='-Bstatic'
16761             ;;
16762         esac
16763         ;;
16764       tandem*)
16765         case $cc_basename in
16766           NCC*)
16767             # NonStop-UX NCC 3.20
16768             lt_prog_compiler_pic_CXX='-KPIC'
16769             ;;
16770           *)
16771             ;;
16772         esac
16773         ;;
16774       vxworks*)
16775         ;;
16776       *)
16777         lt_prog_compiler_can_build_shared_CXX=no
16778         ;;
16779     esac
16780   fi
16781
16782 case $host_os in
16783   # For platforms which do not support PIC, -DPIC is meaningless:
16784   *djgpp*)
16785     lt_prog_compiler_pic_CXX=
16786     ;;
16787   *)
16788     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16789     ;;
16790 esac
16791 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16792 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
16793
16794
16795
16796 #
16797 # Check to make sure the PIC flag actually works.
16798 #
16799 if test -n "$lt_prog_compiler_pic_CXX"; then
16800   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16801 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
16802 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
16803   echo $ECHO_N "(cached) $ECHO_C" >&6
16804 else
16805   lt_cv_prog_compiler_pic_works_CXX=no
16806    ac_outfile=conftest.$ac_objext
16807    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16808    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16809    # Insert the option either (1) after the last *FLAGS variable, or
16810    # (2) before a word containing "conftest.", or (3) at the end.
16811    # Note that $ac_compile itself does not contain backslashes and begins
16812    # with a dollar sign (not a hyphen), so the echo should work correctly.
16813    # The option is referenced via a variable to avoid confusing sed.
16814    lt_compile=`echo "$ac_compile" | $SED \
16815    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16816    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16817    -e 's:$: $lt_compiler_flag:'`
16818    (eval echo "\"\$as_me:16818: $lt_compile\"" >&5)
16819    (eval "$lt_compile" 2>conftest.err)
16820    ac_status=$?
16821    cat conftest.err >&5
16822    echo "$as_me:16822: \$? = $ac_status" >&5
16823    if (exit $ac_status) && test -s "$ac_outfile"; then
16824      # The compiler can only warn and ignore the option if not recognized
16825      # So say no if there are warnings other than the usual output.
16826      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16827      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16828      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16829        lt_cv_prog_compiler_pic_works_CXX=yes
16830      fi
16831    fi
16832    $RM conftest*
16833
16834 fi
16835 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16836 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16837
16838 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16839     case $lt_prog_compiler_pic_CXX in
16840      "" | " "*) ;;
16841      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16842      esac
16843 else
16844     lt_prog_compiler_pic_CXX=
16845      lt_prog_compiler_can_build_shared_CXX=no
16846 fi
16847
16848 fi
16849
16850
16851
16852 #
16853 # Check to make sure the static flag actually works.
16854 #
16855 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16856 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16857 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16858 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
16859   echo $ECHO_N "(cached) $ECHO_C" >&6
16860 else
16861   lt_cv_prog_compiler_static_works_CXX=no
16862    save_LDFLAGS="$LDFLAGS"
16863    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16864    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16865    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16866      # The linker can only warn and ignore the option if not recognized
16867      # So say no if there are warnings
16868      if test -s conftest.err; then
16869        # Append any errors to the config.log.
16870        cat conftest.err 1>&5
16871        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16872        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16873        if diff conftest.exp conftest.er2 >/dev/null; then
16874          lt_cv_prog_compiler_static_works_CXX=yes
16875        fi
16876      else
16877        lt_cv_prog_compiler_static_works_CXX=yes
16878      fi
16879    fi
16880    $RM -r conftest*
16881    LDFLAGS="$save_LDFLAGS"
16882
16883 fi
16884 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16885 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
16886
16887 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16888     :
16889 else
16890     lt_prog_compiler_static_CXX=
16891 fi
16892
16893
16894
16895
16896     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16897 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16898 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16899   echo $ECHO_N "(cached) $ECHO_C" >&6
16900 else
16901   lt_cv_prog_compiler_c_o_CXX=no
16902    $RM -r conftest 2>/dev/null
16903    mkdir conftest
16904    cd conftest
16905    mkdir out
16906    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16907
16908    lt_compiler_flag="-o out/conftest2.$ac_objext"
16909    # Insert the option either (1) after the last *FLAGS variable, or
16910    # (2) before a word containing "conftest.", or (3) at the end.
16911    # Note that $ac_compile itself does not contain backslashes and begins
16912    # with a dollar sign (not a hyphen), so the echo should work correctly.
16913    lt_compile=`echo "$ac_compile" | $SED \
16914    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16915    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16916    -e 's:$: $lt_compiler_flag:'`
16917    (eval echo "\"\$as_me:16917: $lt_compile\"" >&5)
16918    (eval "$lt_compile" 2>out/conftest.err)
16919    ac_status=$?
16920    cat out/conftest.err >&5
16921    echo "$as_me:16921: \$? = $ac_status" >&5
16922    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16923    then
16924      # The compiler can only warn and ignore the option if not recognized
16925      # So say no if there are warnings
16926      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16927      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16928      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16929        lt_cv_prog_compiler_c_o_CXX=yes
16930      fi
16931    fi
16932    chmod u+w . 2>&5
16933    $RM conftest*
16934    # SGI C++ compiler will create directory out/ii_files/ for
16935    # template instantiation
16936    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16937    $RM out/* && rmdir out
16938    cd ..
16939    $RM -r conftest
16940    $RM conftest*
16941
16942 fi
16943 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16944 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
16945
16946
16947
16948     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16949 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16950 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16951   echo $ECHO_N "(cached) $ECHO_C" >&6
16952 else
16953   lt_cv_prog_compiler_c_o_CXX=no
16954    $RM -r conftest 2>/dev/null
16955    mkdir conftest
16956    cd conftest
16957    mkdir out
16958    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16959
16960    lt_compiler_flag="-o out/conftest2.$ac_objext"
16961    # Insert the option either (1) after the last *FLAGS variable, or
16962    # (2) before a word containing "conftest.", or (3) at the end.
16963    # Note that $ac_compile itself does not contain backslashes and begins
16964    # with a dollar sign (not a hyphen), so the echo should work correctly.
16965    lt_compile=`echo "$ac_compile" | $SED \
16966    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16967    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16968    -e 's:$: $lt_compiler_flag:'`
16969    (eval echo "\"\$as_me:16969: $lt_compile\"" >&5)
16970    (eval "$lt_compile" 2>out/conftest.err)
16971    ac_status=$?
16972    cat out/conftest.err >&5
16973    echo "$as_me:16973: \$? = $ac_status" >&5
16974    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16975    then
16976      # The compiler can only warn and ignore the option if not recognized
16977      # So say no if there are warnings
16978      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16979      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16980      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16981        lt_cv_prog_compiler_c_o_CXX=yes
16982      fi
16983    fi
16984    chmod u+w . 2>&5
16985    $RM conftest*
16986    # SGI C++ compiler will create directory out/ii_files/ for
16987    # template instantiation
16988    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16989    $RM out/* && rmdir out
16990    cd ..
16991    $RM -r conftest
16992    $RM conftest*
16993
16994 fi
16995 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16996 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
16997
16998
16999
17000
17001 hard_links="nottested"
17002 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17003   # do not overwrite the value of need_locks provided by the user
17004   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17005 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17006   hard_links=yes
17007   $RM conftest*
17008   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17009   touch conftest.a
17010   ln conftest.a conftest.b 2>&5 || hard_links=no
17011   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17012   { echo "$as_me:$LINENO: result: $hard_links" >&5
17013 echo "${ECHO_T}$hard_links" >&6; }
17014   if test "$hard_links" = no; then
17015     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17016 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17017     need_locks=warn
17018   fi
17019 else
17020   need_locks=no
17021 fi
17022
17023
17024
17025     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17026 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17027
17028   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17029   case $host_os in
17030   aix[4-9]*)
17031     # If we're using GNU nm, then we don't want the "-C" option.
17032     # -C means demangle to AIX nm, but means don't demangle with GNU nm
17033     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17034       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'
17035     else
17036       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'
17037     fi
17038     ;;
17039   pw32*)
17040     export_symbols_cmds_CXX="$ltdll_cmds"
17041   ;;
17042   cygwin* | mingw*)
17043     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'
17044   ;;
17045   linux* | k*bsd*-gnu)
17046     link_all_deplibs_CXX=no
17047   ;;
17048   *)
17049     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17050   ;;
17051   esac
17052   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17053
17054 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17055 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
17056 test "$ld_shlibs_CXX" = no && can_build_shared=no
17057
17058 with_gnu_ld_CXX=$with_gnu_ld
17059
17060
17061
17062
17063
17064
17065 #
17066 # Do we need to explicitly link libc?
17067 #
17068 case "x$archive_cmds_need_lc_CXX" in
17069 x|xyes)
17070   # Assume -lc should be added
17071   archive_cmds_need_lc_CXX=yes
17072
17073   if test "$enable_shared" = yes && test "$GCC" = yes; then
17074     case $archive_cmds_CXX in
17075     *'~'*)
17076       # FIXME: we may have to deal with multi-command sequences.
17077       ;;
17078     '$CC '*)
17079       # Test whether the compiler implicitly links with -lc since on some
17080       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17081       # to ld, don't add -lc before -lgcc.
17082       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17083 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17084       $RM conftest*
17085       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17086
17087       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17088   (eval $ac_compile) 2>&5
17089   ac_status=$?
17090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091   (exit $ac_status); } 2>conftest.err; then
17092         soname=conftest
17093         lib=conftest
17094         libobjs=conftest.$ac_objext
17095         deplibs=
17096         wl=$lt_prog_compiler_wl_CXX
17097         pic_flag=$lt_prog_compiler_pic_CXX
17098         compiler_flags=-v
17099         linker_flags=-v
17100         verstring=
17101         output_objdir=.
17102         libname=conftest
17103         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17104         allow_undefined_flag_CXX=
17105         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17106   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17107   ac_status=$?
17108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109   (exit $ac_status); }
17110         then
17111           archive_cmds_need_lc_CXX=no
17112         else
17113           archive_cmds_need_lc_CXX=yes
17114         fi
17115         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17116       else
17117         cat conftest.err 1>&5
17118       fi
17119       $RM conftest*
17120       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17121 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
17122       ;;
17123     esac
17124   fi
17125   ;;
17126 esac
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17192 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17193
17194 library_names_spec=
17195 libname_spec='lib$name'
17196 soname_spec=
17197 shrext_cmds=".so"
17198 postinstall_cmds=
17199 postuninstall_cmds=
17200 finish_cmds=
17201 finish_eval=
17202 shlibpath_var=
17203 shlibpath_overrides_runpath=unknown
17204 version_type=none
17205 dynamic_linker="$host_os ld.so"
17206 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17207 need_lib_prefix=unknown
17208 hardcode_into_libs=no
17209
17210 # when you set need_version to no, make sure it does not cause -set_version
17211 # flags to be left without arguments
17212 need_version=unknown
17213
17214 case $host_os in
17215 aix3*)
17216   version_type=linux
17217   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17218   shlibpath_var=LIBPATH
17219
17220   # AIX 3 has no versioning support, so we append a major version to the name.
17221   soname_spec='${libname}${release}${shared_ext}$major'
17222   ;;
17223
17224 aix[4-9]*)
17225   version_type=linux
17226   need_lib_prefix=no
17227   need_version=no
17228   hardcode_into_libs=yes
17229   if test "$host_cpu" = ia64; then
17230     # AIX 5 supports IA64
17231     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17232     shlibpath_var=LD_LIBRARY_PATH
17233   else
17234     # With GCC up to 2.95.x, collect2 would create an import file
17235     # for dependence libraries.  The import file would start with
17236     # the line `#! .'.  This would cause the generated library to
17237     # depend on `.', always an invalid library.  This was fixed in
17238     # development snapshots of GCC prior to 3.0.
17239     case $host_os in
17240       aix4 | aix4.[01] | aix4.[01].*)
17241       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17242            echo ' yes '
17243            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17244         :
17245       else
17246         can_build_shared=no
17247       fi
17248       ;;
17249     esac
17250     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17251     # soname into executable. Probably we can add versioning support to
17252     # collect2, so additional links can be useful in future.
17253     if test "$aix_use_runtimelinking" = yes; then
17254       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17255       # instead of lib<name>.a to let people know that these are not
17256       # typical AIX shared libraries.
17257       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17258     else
17259       # We preserve .a as extension for shared libraries through AIX4.2
17260       # and later when we are not doing run time linking.
17261       library_names_spec='${libname}${release}.a $libname.a'
17262       soname_spec='${libname}${release}${shared_ext}$major'
17263     fi
17264     shlibpath_var=LIBPATH
17265   fi
17266   ;;
17267
17268 amigaos*)
17269   case $host_cpu in
17270   powerpc)
17271     # Since July 2007 AmigaOS4 officially supports .so libraries.
17272     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17273     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17274     ;;
17275   m68k)
17276     library_names_spec='$libname.ixlibrary $libname.a'
17277     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17278     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'
17279     ;;
17280   esac
17281   ;;
17282
17283 beos*)
17284   library_names_spec='${libname}${shared_ext}'
17285   dynamic_linker="$host_os ld.so"
17286   shlibpath_var=LIBRARY_PATH
17287   ;;
17288
17289 bsdi[45]*)
17290   version_type=linux
17291   need_version=no
17292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17293   soname_spec='${libname}${release}${shared_ext}$major'
17294   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17295   shlibpath_var=LD_LIBRARY_PATH
17296   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17297   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17298   # the default ld.so.conf also contains /usr/contrib/lib and
17299   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17300   # libtool to hard-code these into programs
17301   ;;
17302
17303 cygwin* | mingw* | pw32*)
17304   version_type=windows
17305   shrext_cmds=".dll"
17306   need_version=no
17307   need_lib_prefix=no
17308
17309   case $GCC,$host_os in
17310   yes,cygwin* | yes,mingw* | yes,pw32*)
17311     library_names_spec='$libname.dll.a'
17312     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17313     postinstall_cmds='base_file=`basename \${file}`~
17314       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17315       dldir=$destdir/`dirname \$dlpath`~
17316       test -d \$dldir || mkdir -p \$dldir~
17317       $install_prog $dir/$dlname \$dldir/$dlname~
17318       chmod a+x \$dldir/$dlname~
17319       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17320         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17321       fi'
17322     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17323       dlpath=$dir/\$dldll~
17324        $RM \$dlpath'
17325     shlibpath_overrides_runpath=yes
17326
17327     case $host_os in
17328     cygwin*)
17329       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17330       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17331       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17332       ;;
17333     mingw*)
17334       # MinGW DLLs use traditional 'lib' prefix
17335       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17336       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17337       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17338         # It is most probably a Windows format PATH printed by
17339         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17340         # path with ; separators, and with drive letters. We can handle the
17341         # drive letters (cygwin fileutils understands them), so leave them,
17342         # especially as we might pass files found there to a mingw objdump,
17343         # which wouldn't understand a cygwinified path. Ahh.
17344         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17345       else
17346         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17347       fi
17348       ;;
17349     pw32*)
17350       # pw32 DLLs use 'pw' prefix rather than 'lib'
17351       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17352       ;;
17353     esac
17354     ;;
17355
17356   *)
17357     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17358     ;;
17359   esac
17360   dynamic_linker='Win32 ld.exe'
17361   # FIXME: first we should search . and the directory the executable is in
17362   shlibpath_var=PATH
17363   ;;
17364
17365 darwin* | rhapsody*)
17366   dynamic_linker="$host_os dyld"
17367   version_type=darwin
17368   need_lib_prefix=no
17369   need_version=no
17370   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17371   soname_spec='${libname}${release}${major}$shared_ext'
17372   shlibpath_overrides_runpath=yes
17373   shlibpath_var=DYLD_LIBRARY_PATH
17374   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17375
17376   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17377   ;;
17378
17379 dgux*)
17380   version_type=linux
17381   need_lib_prefix=no
17382   need_version=no
17383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17384   soname_spec='${libname}${release}${shared_ext}$major'
17385   shlibpath_var=LD_LIBRARY_PATH
17386   ;;
17387
17388 freebsd1*)
17389   dynamic_linker=no
17390   ;;
17391
17392 freebsd* | dragonfly*)
17393   # DragonFly does not have aout.  When/if they implement a new
17394   # versioning mechanism, adjust this.
17395   if test -x /usr/bin/objformat; then
17396     objformat=`/usr/bin/objformat`
17397   else
17398     case $host_os in
17399     freebsd[123]*) objformat=aout ;;
17400     *) objformat=elf ;;
17401     esac
17402   fi
17403   version_type=freebsd-$objformat
17404   case $version_type in
17405     freebsd-elf*)
17406       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17407       need_version=no
17408       need_lib_prefix=no
17409       ;;
17410     freebsd-*)
17411       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17412       need_version=yes
17413       ;;
17414   esac
17415   shlibpath_var=LD_LIBRARY_PATH
17416   case $host_os in
17417   freebsd2*)
17418     shlibpath_overrides_runpath=yes
17419     ;;
17420   freebsd3.[01]* | freebsdelf3.[01]*)
17421     shlibpath_overrides_runpath=yes
17422     hardcode_into_libs=yes
17423     ;;
17424   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17425   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17426     shlibpath_overrides_runpath=no
17427     hardcode_into_libs=yes
17428     ;;
17429   *) # from 4.6 on, and DragonFly
17430     shlibpath_overrides_runpath=yes
17431     hardcode_into_libs=yes
17432     ;;
17433   esac
17434   ;;
17435
17436 gnu*)
17437   version_type=linux
17438   need_lib_prefix=no
17439   need_version=no
17440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17441   soname_spec='${libname}${release}${shared_ext}$major'
17442   shlibpath_var=LD_LIBRARY_PATH
17443   hardcode_into_libs=yes
17444   ;;
17445
17446 hpux9* | hpux10* | hpux11*)
17447   # Give a soname corresponding to the major version so that dld.sl refuses to
17448   # link against other versions.
17449   version_type=sunos
17450   need_lib_prefix=no
17451   need_version=no
17452   case $host_cpu in
17453   ia64*)
17454     shrext_cmds='.so'
17455     hardcode_into_libs=yes
17456     dynamic_linker="$host_os dld.so"
17457     shlibpath_var=LD_LIBRARY_PATH
17458     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17459     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17460     soname_spec='${libname}${release}${shared_ext}$major'
17461     if test "X$HPUX_IA64_MODE" = X32; then
17462       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17463     else
17464       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17465     fi
17466     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17467     ;;
17468   hppa*64*)
17469     shrext_cmds='.sl'
17470     hardcode_into_libs=yes
17471     dynamic_linker="$host_os dld.sl"
17472     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17473     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17474     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17475     soname_spec='${libname}${release}${shared_ext}$major'
17476     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17477     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17478     ;;
17479   *)
17480     shrext_cmds='.sl'
17481     dynamic_linker="$host_os dld.sl"
17482     shlibpath_var=SHLIB_PATH
17483     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17485     soname_spec='${libname}${release}${shared_ext}$major'
17486     ;;
17487   esac
17488   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17489   postinstall_cmds='chmod 555 $lib'
17490   ;;
17491
17492 interix[3-9]*)
17493   version_type=linux
17494   need_lib_prefix=no
17495   need_version=no
17496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17497   soname_spec='${libname}${release}${shared_ext}$major'
17498   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17499   shlibpath_var=LD_LIBRARY_PATH
17500   shlibpath_overrides_runpath=no
17501   hardcode_into_libs=yes
17502   ;;
17503
17504 irix5* | irix6* | nonstopux*)
17505   case $host_os in
17506     nonstopux*) version_type=nonstopux ;;
17507     *)
17508         if test "$lt_cv_prog_gnu_ld" = yes; then
17509                 version_type=linux
17510         else
17511                 version_type=irix
17512         fi ;;
17513   esac
17514   need_lib_prefix=no
17515   need_version=no
17516   soname_spec='${libname}${release}${shared_ext}$major'
17517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17518   case $host_os in
17519   irix5* | nonstopux*)
17520     libsuff= shlibsuff=
17521     ;;
17522   *)
17523     case $LD in # libtool.m4 will add one of these switches to LD
17524     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17525       libsuff= shlibsuff= libmagic=32-bit;;
17526     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17527       libsuff=32 shlibsuff=N32 libmagic=N32;;
17528     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17529       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17530     *) libsuff= shlibsuff= libmagic=never-match;;
17531     esac
17532     ;;
17533   esac
17534   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17535   shlibpath_overrides_runpath=no
17536   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17537   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17538   hardcode_into_libs=yes
17539   ;;
17540
17541 # No shared lib support for Linux oldld, aout, or coff.
17542 linux*oldld* | linux*aout* | linux*coff*)
17543   dynamic_linker=no
17544   ;;
17545
17546 # This must be Linux ELF.
17547 linux* | k*bsd*-gnu)
17548   version_type=linux
17549   need_lib_prefix=no
17550   need_version=no
17551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17552   soname_spec='${libname}${release}${shared_ext}$major'
17553   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17554   shlibpath_var=LD_LIBRARY_PATH
17555   shlibpath_overrides_runpath=no
17556   # Some binutils ld are patched to set DT_RUNPATH
17557   save_LDFLAGS=$LDFLAGS
17558   save_libdir=$libdir
17559   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17560        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17561   cat >conftest.$ac_ext <<_ACEOF
17562 /* confdefs.h.  */
17563 _ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h.  */
17567
17568 int
17569 main ()
17570 {
17571
17572   ;
17573   return 0;
17574 }
17575 _ACEOF
17576 rm -f conftest.$ac_objext conftest$ac_exeext
17577 if { (ac_try="$ac_link"
17578 case "(($ac_try" in
17579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580   *) ac_try_echo=$ac_try;;
17581 esac
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583   (eval "$ac_link") 2>conftest.er1
17584   ac_status=$?
17585   grep -v '^ *+' conftest.er1 >conftest.err
17586   rm -f conftest.er1
17587   cat conftest.err >&5
17588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589   (exit $ac_status); } && {
17590          test -z "$ac_cxx_werror_flag" ||
17591          test ! -s conftest.err
17592        } && test -s conftest$ac_exeext &&
17593        $as_test_x conftest$ac_exeext; then
17594   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
17595   shlibpath_overrides_runpath=yes
17596 fi
17597
17598 else
17599   echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.$ac_ext >&5
17601
17602
17603 fi
17604
17605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17606       conftest$ac_exeext conftest.$ac_ext
17607   LDFLAGS=$save_LDFLAGS
17608   libdir=$save_libdir
17609
17610   # This implies no fast_install, which is unacceptable.
17611   # Some rework will be needed to allow for fast_install
17612   # before this can be enabled.
17613   hardcode_into_libs=yes
17614
17615   # Append ld.so.conf contents to the search path
17616   if test -f /etc/ld.so.conf; then
17617     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' ' '`
17618     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17619   fi
17620
17621   # We used to test for /lib/ld.so.1 and disable shared libraries on
17622   # powerpc, because MkLinux only supported shared libraries with the
17623   # GNU dynamic linker.  Since this was broken with cross compilers,
17624   # most powerpc-linux boxes support dynamic linking these days and
17625   # people can always --disable-shared, the test was removed, and we
17626   # assume the GNU/Linux dynamic linker is in use.
17627   dynamic_linker='GNU/Linux ld.so'
17628   ;;
17629
17630 netbsdelf*-gnu)
17631   version_type=linux
17632   need_lib_prefix=no
17633   need_version=no
17634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17635   soname_spec='${libname}${release}${shared_ext}$major'
17636   shlibpath_var=LD_LIBRARY_PATH
17637   shlibpath_overrides_runpath=no
17638   hardcode_into_libs=yes
17639   dynamic_linker='NetBSD ld.elf_so'
17640   ;;
17641
17642 netbsd*)
17643   version_type=sunos
17644   need_lib_prefix=no
17645   need_version=no
17646   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17647     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17648     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17649     dynamic_linker='NetBSD (a.out) ld.so'
17650   else
17651     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17652     soname_spec='${libname}${release}${shared_ext}$major'
17653     dynamic_linker='NetBSD ld.elf_so'
17654   fi
17655   shlibpath_var=LD_LIBRARY_PATH
17656   shlibpath_overrides_runpath=yes
17657   hardcode_into_libs=yes
17658   ;;
17659
17660 newsos6)
17661   version_type=linux
17662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17663   shlibpath_var=LD_LIBRARY_PATH
17664   shlibpath_overrides_runpath=yes
17665   ;;
17666
17667 *nto* | *qnx*)
17668   version_type=qnx
17669   need_lib_prefix=no
17670   need_version=no
17671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17672   soname_spec='${libname}${release}${shared_ext}$major'
17673   shlibpath_var=LD_LIBRARY_PATH
17674   shlibpath_overrides_runpath=no
17675   hardcode_into_libs=yes
17676   dynamic_linker='ldqnx.so'
17677   ;;
17678
17679 openbsd*)
17680   version_type=sunos
17681   sys_lib_dlsearch_path_spec="/usr/lib"
17682   need_lib_prefix=no
17683   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17684   case $host_os in
17685     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17686     *)                          need_version=no  ;;
17687   esac
17688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17689   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17690   shlibpath_var=LD_LIBRARY_PATH
17691   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17692     case $host_os in
17693       openbsd2.[89] | openbsd2.[89].*)
17694         shlibpath_overrides_runpath=no
17695         ;;
17696       *)
17697         shlibpath_overrides_runpath=yes
17698         ;;
17699       esac
17700   else
17701     shlibpath_overrides_runpath=yes
17702   fi
17703   ;;
17704
17705 os2*)
17706   libname_spec='$name'
17707   shrext_cmds=".dll"
17708   need_lib_prefix=no
17709   library_names_spec='$libname${shared_ext} $libname.a'
17710   dynamic_linker='OS/2 ld.exe'
17711   shlibpath_var=LIBPATH
17712   ;;
17713
17714 osf3* | osf4* | osf5*)
17715   version_type=osf
17716   need_lib_prefix=no
17717   need_version=no
17718   soname_spec='${libname}${release}${shared_ext}$major'
17719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17720   shlibpath_var=LD_LIBRARY_PATH
17721   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17722   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17723   ;;
17724
17725 rdos*)
17726   dynamic_linker=no
17727   ;;
17728
17729 solaris*)
17730   version_type=linux
17731   need_lib_prefix=no
17732   need_version=no
17733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17734   soname_spec='${libname}${release}${shared_ext}$major'
17735   shlibpath_var=LD_LIBRARY_PATH
17736   shlibpath_overrides_runpath=yes
17737   hardcode_into_libs=yes
17738   # ldd complains unless libraries are executable
17739   postinstall_cmds='chmod +x $lib'
17740   ;;
17741
17742 sunos4*)
17743   version_type=sunos
17744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17745   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17746   shlibpath_var=LD_LIBRARY_PATH
17747   shlibpath_overrides_runpath=yes
17748   if test "$with_gnu_ld" = yes; then
17749     need_lib_prefix=no
17750   fi
17751   need_version=yes
17752   ;;
17753
17754 sysv4 | sysv4.3*)
17755   version_type=linux
17756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17757   soname_spec='${libname}${release}${shared_ext}$major'
17758   shlibpath_var=LD_LIBRARY_PATH
17759   case $host_vendor in
17760     sni)
17761       shlibpath_overrides_runpath=no
17762       need_lib_prefix=no
17763       runpath_var=LD_RUN_PATH
17764       ;;
17765     siemens)
17766       need_lib_prefix=no
17767       ;;
17768     motorola)
17769       need_lib_prefix=no
17770       need_version=no
17771       shlibpath_overrides_runpath=no
17772       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17773       ;;
17774   esac
17775   ;;
17776
17777 sysv4*MP*)
17778   if test -d /usr/nec ;then
17779     version_type=linux
17780     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17781     soname_spec='$libname${shared_ext}.$major'
17782     shlibpath_var=LD_LIBRARY_PATH
17783   fi
17784   ;;
17785
17786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17787   version_type=freebsd-elf
17788   need_lib_prefix=no
17789   need_version=no
17790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17791   soname_spec='${libname}${release}${shared_ext}$major'
17792   shlibpath_var=LD_LIBRARY_PATH
17793   shlibpath_overrides_runpath=yes
17794   hardcode_into_libs=yes
17795   if test "$with_gnu_ld" = yes; then
17796     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17797   else
17798     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17799     case $host_os in
17800       sco3.2v5*)
17801         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17802         ;;
17803     esac
17804   fi
17805   sys_lib_dlsearch_path_spec='/usr/lib'
17806   ;;
17807
17808 tpf*)
17809   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17810   version_type=linux
17811   need_lib_prefix=no
17812   need_version=no
17813   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17814   shlibpath_var=LD_LIBRARY_PATH
17815   shlibpath_overrides_runpath=no
17816   hardcode_into_libs=yes
17817   ;;
17818
17819 uts4*)
17820   version_type=linux
17821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17822   soname_spec='${libname}${release}${shared_ext}$major'
17823   shlibpath_var=LD_LIBRARY_PATH
17824   ;;
17825
17826 *)
17827   dynamic_linker=no
17828   ;;
17829 esac
17830 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17831 echo "${ECHO_T}$dynamic_linker" >&6; }
17832 test "$dynamic_linker" = no && can_build_shared=no
17833
17834 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17835 if test "$GCC" = yes; then
17836   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17837 fi
17838
17839 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17840   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17841 fi
17842 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17843   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17844 fi
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17882 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17883 hardcode_action_CXX=
17884 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17885    test -n "$runpath_var_CXX" ||
17886    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17887
17888   # We can hardcode non-existent directories.
17889   if test "$hardcode_direct_CXX" != no &&
17890      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17891      # have to relink, otherwise we might link with an installed library
17892      # when we should be linking with a yet-to-be-installed one
17893      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17894      test "$hardcode_minus_L_CXX" != no; then
17895     # Linking always hardcodes the temporary library directory.
17896     hardcode_action_CXX=relink
17897   else
17898     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17899     hardcode_action_CXX=immediate
17900   fi
17901 else
17902   # We cannot hardcode anything, or else we can only hardcode existing
17903   # directories.
17904   hardcode_action_CXX=unsupported
17905 fi
17906 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17907 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
17908
17909 if test "$hardcode_action_CXX" = relink ||
17910    test "$inherit_rpath_CXX" = yes; then
17911   # Fast installation is not supported
17912   enable_fast_install=no
17913 elif test "$shlibpath_overrides_runpath" = yes ||
17914      test "$enable_shared" = no; then
17915   # Fast installation is not necessary
17916   enable_fast_install=needless
17917 fi
17918
17919
17920
17921
17922
17923
17924
17925   fi # test -n "$compiler"
17926
17927   CC=$lt_save_CC
17928   LDCXX=$LD
17929   LD=$lt_save_LD
17930   GCC=$lt_save_GCC
17931   with_gnu_ld=$lt_save_with_gnu_ld
17932   lt_cv_path_LDCXX=$lt_cv_path_LD
17933   lt_cv_path_LD=$lt_save_path_LD
17934   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17935   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17936 fi # test "$_lt_caught_CXX_error" != yes
17937
17938 ac_ext=c
17939 ac_cpp='$CPP $CPPFLAGS'
17940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956         ac_config_commands="$ac_config_commands libtool"
17957
17958
17959
17960
17961 # Only expand once:
17962
17963
17964
17965
17966
17967
17968
17969
17970 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in"
17971
17972 cat >confcache <<\_ACEOF
17973 # This file is a shell script that caches the results of configure
17974 # tests run on this system so they can be shared between configure
17975 # scripts and configure runs, see configure's option --config-cache.
17976 # It is not useful on other systems.  If it contains results you don't
17977 # want to keep, you may remove or edit it.
17978 #
17979 # config.status only pays attention to the cache file if you give it
17980 # the --recheck option to rerun configure.
17981 #
17982 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17983 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17984 # following values.
17985
17986 _ACEOF
17987
17988 # The following way of writing the cache mishandles newlines in values,
17989 # but we know of no workaround that is simple, portable, and efficient.
17990 # So, we kill variables containing newlines.
17991 # Ultrix sh set writes to stderr and can't be redirected directly,
17992 # and sets the high bit in the cache file unless we assign to the vars.
17993 (
17994   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17995     eval ac_val=\$$ac_var
17996     case $ac_val in #(
17997     *${as_nl}*)
17998       case $ac_var in #(
17999       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18000 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18001       esac
18002       case $ac_var in #(
18003       _ | IFS | as_nl) ;; #(
18004       *) $as_unset $ac_var ;;
18005       esac ;;
18006     esac
18007   done
18008
18009   (set) 2>&1 |
18010     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18011     *${as_nl}ac_space=\ *)
18012       # `set' does not quote correctly, so add quotes (double-quote
18013       # substitution turns \\\\ into \\, and sed turns \\ into \).
18014       sed -n \
18015         "s/'/'\\\\''/g;
18016           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18017       ;; #(
18018     *)
18019       # `set' quotes correctly as required by POSIX, so do not add quotes.
18020       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18021       ;;
18022     esac |
18023     sort
18024 ) |
18025   sed '
18026      /^ac_cv_env_/b end
18027      t clear
18028      :clear
18029      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18030      t end
18031      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18032      :end' >>confcache
18033 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18034   if test -w "$cache_file"; then
18035     test "x$cache_file" != "x/dev/null" &&
18036       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18037 echo "$as_me: updating cache $cache_file" >&6;}
18038     cat confcache >$cache_file
18039   else
18040     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18041 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18042   fi
18043 fi
18044 rm -f confcache
18045
18046 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18047 # Let make expand exec_prefix.
18048 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18049
18050 DEFS=-DHAVE_CONFIG_H
18051
18052 ac_libobjs=
18053 ac_ltlibobjs=
18054 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18055   # 1. Remove the extension, and $U if already installed.
18056   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18057   ac_i=`echo "$ac_i" | sed "$ac_script"`
18058   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18059   #    will be set to the directory where LIBOBJS objects are built.
18060   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18061   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18062 done
18063 LIBOBJS=$ac_libobjs
18064
18065 LTLIBOBJS=$ac_ltlibobjs
18066
18067
18068 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18069   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18070 Usually this means the macro was only invoked conditionally." >&5
18071 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18072 Usually this means the macro was only invoked conditionally." >&2;}
18073    { (exit 1); exit 1; }; }
18074 fi
18075 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18076   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18077 Usually this means the macro was only invoked conditionally." >&5
18078 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18079 Usually this means the macro was only invoked conditionally." >&2;}
18080    { (exit 1); exit 1; }; }
18081 fi
18082 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18083   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18084 Usually this means the macro was only invoked conditionally." >&5
18085 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18086 Usually this means the macro was only invoked conditionally." >&2;}
18087    { (exit 1); exit 1; }; }
18088 fi
18089 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18090   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18091 Usually this means the macro was only invoked conditionally." >&5
18092 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18093 Usually this means the macro was only invoked conditionally." >&2;}
18094    { (exit 1); exit 1; }; }
18095 fi
18096 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18097   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18098 Usually this means the macro was only invoked conditionally." >&5
18099 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18100 Usually this means the macro was only invoked conditionally." >&2;}
18101    { (exit 1); exit 1; }; }
18102 fi
18103
18104   ac_config_commands="$ac_config_commands po/stamp-it"
18105
18106
18107 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18108   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18109 Usually this means the macro was only invoked conditionally." >&5
18110 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18111 Usually this means the macro was only invoked conditionally." >&2;}
18112    { (exit 1); exit 1; }; }
18113 fi
18114
18115 : ${CONFIG_STATUS=./config.status}
18116 ac_clean_files_save=$ac_clean_files
18117 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18118 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18119 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18120 cat >$CONFIG_STATUS <<_ACEOF
18121 #! $SHELL
18122 # Generated by $as_me.
18123 # Run this file to recreate the current configuration.
18124 # Compiler output produced by configure, useful for debugging
18125 # configure, is in config.log if it exists.
18126
18127 debug=false
18128 ac_cs_recheck=false
18129 ac_cs_silent=false
18130 SHELL=\${CONFIG_SHELL-$SHELL}
18131 _ACEOF
18132
18133 cat >>$CONFIG_STATUS <<\_ACEOF
18134 ## --------------------- ##
18135 ## M4sh Initialization.  ##
18136 ## --------------------- ##
18137
18138 # Be more Bourne compatible
18139 DUALCASE=1; export DUALCASE # for MKS sh
18140 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18141   emulate sh
18142   NULLCMD=:
18143   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18144   # is contrary to our usage.  Disable this feature.
18145   alias -g '${1+"$@"}'='"$@"'
18146   setopt NO_GLOB_SUBST
18147 else
18148   case `(set -o) 2>/dev/null` in
18149   *posix*) set -o posix ;;
18150 esac
18151
18152 fi
18153
18154
18155
18156
18157 # PATH needs CR
18158 # Avoid depending upon Character Ranges.
18159 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18160 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18161 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18162 as_cr_digits='0123456789'
18163 as_cr_alnum=$as_cr_Letters$as_cr_digits
18164
18165 # The user is always right.
18166 if test "${PATH_SEPARATOR+set}" != set; then
18167   echo "#! /bin/sh" >conf$$.sh
18168   echo  "exit 0"   >>conf$$.sh
18169   chmod +x conf$$.sh
18170   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18171     PATH_SEPARATOR=';'
18172   else
18173     PATH_SEPARATOR=:
18174   fi
18175   rm -f conf$$.sh
18176 fi
18177
18178 # Support unset when possible.
18179 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18180   as_unset=unset
18181 else
18182   as_unset=false
18183 fi
18184
18185
18186 # IFS
18187 # We need space, tab and new line, in precisely that order.  Quoting is
18188 # there to prevent editors from complaining about space-tab.
18189 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18190 # splitting by setting IFS to empty value.)
18191 as_nl='
18192 '
18193 IFS=" ""        $as_nl"
18194
18195 # Find who we are.  Look in the path if we contain no directory separator.
18196 case $0 in
18197   *[\\/]* ) as_myself=$0 ;;
18198   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18199 for as_dir in $PATH
18200 do
18201   IFS=$as_save_IFS
18202   test -z "$as_dir" && as_dir=.
18203   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18204 done
18205 IFS=$as_save_IFS
18206
18207      ;;
18208 esac
18209 # We did not find ourselves, most probably we were run as `sh COMMAND'
18210 # in which case we are not to be found in the path.
18211 if test "x$as_myself" = x; then
18212   as_myself=$0
18213 fi
18214 if test ! -f "$as_myself"; then
18215   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18216   { (exit 1); exit 1; }
18217 fi
18218
18219 # Work around bugs in pre-3.0 UWIN ksh.
18220 for as_var in ENV MAIL MAILPATH
18221 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18222 done
18223 PS1='$ '
18224 PS2='> '
18225 PS4='+ '
18226
18227 # NLS nuisances.
18228 for as_var in \
18229   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18230   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18231   LC_TELEPHONE LC_TIME
18232 do
18233   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18234     eval $as_var=C; export $as_var
18235   else
18236     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18237   fi
18238 done
18239
18240 # Required to use basename.
18241 if expr a : '\(a\)' >/dev/null 2>&1 &&
18242    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18243   as_expr=expr
18244 else
18245   as_expr=false
18246 fi
18247
18248 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18249   as_basename=basename
18250 else
18251   as_basename=false
18252 fi
18253
18254
18255 # Name of the executable.
18256 as_me=`$as_basename -- "$0" ||
18257 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18258          X"$0" : 'X\(//\)$' \| \
18259          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18260 echo X/"$0" |
18261     sed '/^.*\/\([^/][^/]*\)\/*$/{
18262             s//\1/
18263             q
18264           }
18265           /^X\/\(\/\/\)$/{
18266             s//\1/
18267             q
18268           }
18269           /^X\/\(\/\).*/{
18270             s//\1/
18271             q
18272           }
18273           s/.*/./; q'`
18274
18275 # CDPATH.
18276 $as_unset CDPATH
18277
18278
18279
18280   as_lineno_1=$LINENO
18281   as_lineno_2=$LINENO
18282   test "x$as_lineno_1" != "x$as_lineno_2" &&
18283   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18284
18285   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18286   # uniformly replaced by the line number.  The first 'sed' inserts a
18287   # line-number line after each line using $LINENO; the second 'sed'
18288   # does the real work.  The second script uses 'N' to pair each
18289   # line-number line with the line containing $LINENO, and appends
18290   # trailing '-' during substitution so that $LINENO is not a special
18291   # case at line end.
18292   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18293   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18294   # E. McMahon (1931-1989) for sed's syntax.  :-)
18295   sed -n '
18296     p
18297     /[$]LINENO/=
18298   ' <$as_myself |
18299     sed '
18300       s/[$]LINENO.*/&-/
18301       t lineno
18302       b
18303       :lineno
18304       N
18305       :loop
18306       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18307       t loop
18308       s/-\n.*//
18309     ' >$as_me.lineno &&
18310   chmod +x "$as_me.lineno" ||
18311     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18312    { (exit 1); exit 1; }; }
18313
18314   # Don't try to exec as it changes $[0], causing all sort of problems
18315   # (the dirname of $[0] is not the place where we might find the
18316   # original and so on.  Autoconf is especially sensitive to this).
18317   . "./$as_me.lineno"
18318   # Exit status is that of the last command.
18319   exit
18320 }
18321
18322
18323 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18324   as_dirname=dirname
18325 else
18326   as_dirname=false
18327 fi
18328
18329 ECHO_C= ECHO_N= ECHO_T=
18330 case `echo -n x` in
18331 -n*)
18332   case `echo 'x\c'` in
18333   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18334   *)   ECHO_C='\c';;
18335   esac;;
18336 *)
18337   ECHO_N='-n';;
18338 esac
18339
18340 if expr a : '\(a\)' >/dev/null 2>&1 &&
18341    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18342   as_expr=expr
18343 else
18344   as_expr=false
18345 fi
18346
18347 rm -f conf$$ conf$$.exe conf$$.file
18348 if test -d conf$$.dir; then
18349   rm -f conf$$.dir/conf$$.file
18350 else
18351   rm -f conf$$.dir
18352   mkdir conf$$.dir
18353 fi
18354 echo >conf$$.file
18355 if ln -s conf$$.file conf$$ 2>/dev/null; then
18356   as_ln_s='ln -s'
18357   # ... but there are two gotchas:
18358   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18359   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18360   # In both cases, we have to default to `cp -p'.
18361   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18362     as_ln_s='cp -p'
18363 elif ln conf$$.file conf$$ 2>/dev/null; then
18364   as_ln_s=ln
18365 else
18366   as_ln_s='cp -p'
18367 fi
18368 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18369 rmdir conf$$.dir 2>/dev/null
18370
18371 if mkdir -p . 2>/dev/null; then
18372   as_mkdir_p=:
18373 else
18374   test -d ./-p && rmdir ./-p
18375   as_mkdir_p=false
18376 fi
18377
18378 if test -x / >/dev/null 2>&1; then
18379   as_test_x='test -x'
18380 else
18381   if ls -dL / >/dev/null 2>&1; then
18382     as_ls_L_option=L
18383   else
18384     as_ls_L_option=
18385   fi
18386   as_test_x='
18387     eval sh -c '\''
18388       if test -d "$1"; then
18389         test -d "$1/.";
18390       else
18391         case $1 in
18392         -*)set "./$1";;
18393         esac;
18394         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18395         ???[sx]*):;;*)false;;esac;fi
18396     '\'' sh
18397   '
18398 fi
18399 as_executable_p=$as_test_x
18400
18401 # Sed expression to map a string onto a valid CPP name.
18402 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18403
18404 # Sed expression to map a string onto a valid variable name.
18405 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18406
18407
18408 exec 6>&1
18409
18410 # Save the log message, to keep $[0] and so on meaningful, and to
18411 # report actual input values of CONFIG_FILES etc. instead of their
18412 # values after options handling.
18413 ac_log="
18414 This file was extended by tsremuxcpp $as_me 0.1, which was
18415 generated by GNU Autoconf 2.61.  Invocation command line was
18416
18417   CONFIG_FILES    = $CONFIG_FILES
18418   CONFIG_HEADERS  = $CONFIG_HEADERS
18419   CONFIG_LINKS    = $CONFIG_LINKS
18420   CONFIG_COMMANDS = $CONFIG_COMMANDS
18421   $ $0 $@
18422
18423 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18424 "
18425
18426 _ACEOF
18427
18428 cat >>$CONFIG_STATUS <<_ACEOF
18429 # Files that config.status was made for.
18430 config_files="$ac_config_files"
18431 config_headers="$ac_config_headers"
18432 config_commands="$ac_config_commands"
18433
18434 _ACEOF
18435
18436 cat >>$CONFIG_STATUS <<\_ACEOF
18437 ac_cs_usage="\
18438 \`$as_me' instantiates files from templates according to the
18439 current configuration.
18440
18441 Usage: $0 [OPTIONS] [FILE]...
18442
18443   -h, --help       print this help, then exit
18444   -V, --version    print version number and configuration settings, then exit
18445   -q, --quiet      do not print progress messages
18446   -d, --debug      don't remove temporary files
18447       --recheck    update $as_me by reconfiguring in the same conditions
18448   --file=FILE[:TEMPLATE]
18449                    instantiate the configuration file FILE
18450   --header=FILE[:TEMPLATE]
18451                    instantiate the configuration header FILE
18452
18453 Configuration files:
18454 $config_files
18455
18456 Configuration headers:
18457 $config_headers
18458
18459 Configuration commands:
18460 $config_commands
18461
18462 Report bugs to <bug-autoconf@gnu.org>."
18463
18464 _ACEOF
18465 cat >>$CONFIG_STATUS <<_ACEOF
18466 ac_cs_version="\\
18467 tsremuxcpp config.status 0.1
18468 configured by $0, generated by GNU Autoconf 2.61,
18469   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18470
18471 Copyright (C) 2006 Free Software Foundation, Inc.
18472 This config.status script is free software; the Free Software Foundation
18473 gives unlimited permission to copy, distribute and modify it."
18474
18475 ac_pwd='$ac_pwd'
18476 srcdir='$srcdir'
18477 INSTALL='$INSTALL'
18478 MKDIR_P='$MKDIR_P'
18479 _ACEOF
18480
18481 cat >>$CONFIG_STATUS <<\_ACEOF
18482 # If no file are specified by the user, then we need to provide default
18483 # value.  By we need to know if files were specified by the user.
18484 ac_need_defaults=:
18485 while test $# != 0
18486 do
18487   case $1 in
18488   --*=*)
18489     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18490     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18491     ac_shift=:
18492     ;;
18493   *)
18494     ac_option=$1
18495     ac_optarg=$2
18496     ac_shift=shift
18497     ;;
18498   esac
18499
18500   case $ac_option in
18501   # Handling of the options.
18502   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18503     ac_cs_recheck=: ;;
18504   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18505     echo "$ac_cs_version"; exit ;;
18506   --debug | --debu | --deb | --de | --d | -d )
18507     debug=: ;;
18508   --file | --fil | --fi | --f )
18509     $ac_shift
18510     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18511     ac_need_defaults=false;;
18512   --header | --heade | --head | --hea )
18513     $ac_shift
18514     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18515     ac_need_defaults=false;;
18516   --he | --h)
18517     # Conflict between --help and --header
18518     { echo "$as_me: error: ambiguous option: $1
18519 Try \`$0 --help' for more information." >&2
18520    { (exit 1); exit 1; }; };;
18521   --help | --hel | -h )
18522     echo "$ac_cs_usage"; exit ;;
18523   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18524   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18525     ac_cs_silent=: ;;
18526
18527   # This is an error.
18528   -*) { echo "$as_me: error: unrecognized option: $1
18529 Try \`$0 --help' for more information." >&2
18530    { (exit 1); exit 1; }; } ;;
18531
18532   *) ac_config_targets="$ac_config_targets $1"
18533      ac_need_defaults=false ;;
18534
18535   esac
18536   shift
18537 done
18538
18539 ac_configure_extra_args=
18540
18541 if $ac_cs_silent; then
18542   exec 6>/dev/null
18543   ac_configure_extra_args="$ac_configure_extra_args --silent"
18544 fi
18545
18546 _ACEOF
18547 cat >>$CONFIG_STATUS <<_ACEOF
18548 if \$ac_cs_recheck; then
18549   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18550   CONFIG_SHELL=$SHELL
18551   export CONFIG_SHELL
18552   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18553 fi
18554
18555 _ACEOF
18556 cat >>$CONFIG_STATUS <<\_ACEOF
18557 exec 5>>config.log
18558 {
18559   echo
18560   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18561 ## Running $as_me. ##
18562 _ASBOX
18563   echo "$ac_log"
18564 } >&5
18565
18566 _ACEOF
18567 cat >>$CONFIG_STATUS <<_ACEOF
18568 #
18569 # INIT-COMMANDS
18570 #
18571 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18572
18573
18574
18575 # The HP-UX ksh and POSIX shell print the target directory to stdout
18576 # if CDPATH is set.
18577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18578
18579 sed_quote_subst='$sed_quote_subst'
18580 double_quote_subst='$double_quote_subst'
18581 delay_variable_subst='$delay_variable_subst'
18582 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18583 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18584 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18585 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18586 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18587 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18588 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18589 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18590 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18591 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18592 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18593 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18594 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18595 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18596 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18597 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18598 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18599 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18600 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18601 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18602 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18603 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18604 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18605 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18606 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18607 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18608 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18609 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18610 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18611 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18612 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18613 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18614 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18615 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18616 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18617 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18618 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18619 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18620 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18621 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18622 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18623 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18624 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18625 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"`'
18626 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"`'
18627 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18628 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18629 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18630 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18631 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18632 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18633 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18634 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18635 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18636 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18637 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18638 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18639 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18640 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18641 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18642 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18643 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18644 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18645 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18646 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18647 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18648 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18649 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18650 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18651 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18652 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18653 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18654 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18655 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18656 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18657 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18658 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18659 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18660 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18661 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18662 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18663 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18664 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18665 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18666 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18667 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18668 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18669 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18670 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18671 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18672 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18673 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18674 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18675 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18676 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18677 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18678 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18679 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18680 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18681 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18682 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18683 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18684 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18685 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18686 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18687 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18688 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18689 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18690 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18691 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18692 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18693 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18694 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18695 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18696 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18697 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18698 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18699 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
18700 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18701 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18702 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
18703 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
18704 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
18705 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18706 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18707 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18708 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18709 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18710 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18711 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18712 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18713 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18714 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18715 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18716 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18717 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18718 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18719 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18720 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18721 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18722 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18723 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18724 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18725 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18726 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18727 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18728 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18729 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18730 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18731 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18732 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18733 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18734 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18735 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18736 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18737 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18738 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18739 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18740 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18741 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18742 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18743 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18744 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18745 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18746 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18747 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18748 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18749 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18750 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18751 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18752
18753 LTCC='$LTCC'
18754 LTCFLAGS='$LTCFLAGS'
18755 compiler='$compiler_DEFAULT'
18756
18757 # Quote evaled strings.
18758 for var in SED \
18759 GREP \
18760 EGREP \
18761 FGREP \
18762 LD \
18763 NM \
18764 LN_S \
18765 lt_SP2NL \
18766 lt_NL2SP \
18767 reload_flag \
18768 deplibs_check_method \
18769 file_magic_cmd \
18770 AR \
18771 AR_FLAGS \
18772 STRIP \
18773 RANLIB \
18774 CC \
18775 CFLAGS \
18776 compiler \
18777 lt_cv_sys_global_symbol_pipe \
18778 lt_cv_sys_global_symbol_to_cdecl \
18779 lt_cv_sys_global_symbol_to_c_name_address \
18780 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18781 SHELL \
18782 ECHO \
18783 lt_prog_compiler_no_builtin_flag \
18784 lt_prog_compiler_wl \
18785 lt_prog_compiler_pic \
18786 lt_prog_compiler_static \
18787 lt_cv_prog_compiler_c_o \
18788 need_locks \
18789 DSYMUTIL \
18790 NMEDIT \
18791 LIPO \
18792 OTOOL \
18793 OTOOL64 \
18794 shrext_cmds \
18795 export_dynamic_flag_spec \
18796 whole_archive_flag_spec \
18797 compiler_needs_object \
18798 with_gnu_ld \
18799 allow_undefined_flag \
18800 no_undefined_flag \
18801 hardcode_libdir_flag_spec \
18802 hardcode_libdir_flag_spec_ld \
18803 hardcode_libdir_separator \
18804 fix_srcfile_path \
18805 exclude_expsyms \
18806 include_expsyms \
18807 file_list_spec \
18808 variables_saved_for_relink \
18809 libname_spec \
18810 library_names_spec \
18811 soname_spec \
18812 finish_eval \
18813 old_striplib \
18814 striplib \
18815 compiler_lib_search_dirs \
18816 predep_objects \
18817 postdep_objects \
18818 predeps \
18819 postdeps \
18820 compiler_lib_search_path \
18821 LD_CXX \
18822 compiler_CXX \
18823 lt_prog_compiler_no_builtin_flag_CXX \
18824 lt_prog_compiler_wl_CXX \
18825 lt_prog_compiler_pic_CXX \
18826 lt_prog_compiler_static_CXX \
18827 lt_cv_prog_compiler_c_o_CXX \
18828 export_dynamic_flag_spec_CXX \
18829 whole_archive_flag_spec_CXX \
18830 compiler_needs_object_CXX \
18831 with_gnu_ld_CXX \
18832 allow_undefined_flag_CXX \
18833 no_undefined_flag_CXX \
18834 hardcode_libdir_flag_spec_CXX \
18835 hardcode_libdir_flag_spec_ld_CXX \
18836 hardcode_libdir_separator_CXX \
18837 fix_srcfile_path_CXX \
18838 exclude_expsyms_CXX \
18839 include_expsyms_CXX \
18840 file_list_spec_CXX \
18841 compiler_lib_search_dirs_CXX \
18842 predep_objects_CXX \
18843 postdep_objects_CXX \
18844 predeps_CXX \
18845 postdeps_CXX \
18846 compiler_lib_search_path_CXX; do
18847     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18848     *[\\\\\\\`\\"\\\$]*)
18849       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18850       ;;
18851     *)
18852       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18853       ;;
18854     esac
18855 done
18856
18857 # Double-quote double-evaled strings.
18858 for var in reload_cmds \
18859 old_postinstall_cmds \
18860 old_postuninstall_cmds \
18861 old_archive_cmds \
18862 extract_expsyms_cmds \
18863 old_archive_from_new_cmds \
18864 old_archive_from_expsyms_cmds \
18865 archive_cmds \
18866 archive_expsym_cmds \
18867 module_cmds \
18868 module_expsym_cmds \
18869 export_symbols_cmds \
18870 prelink_cmds \
18871 postinstall_cmds \
18872 postuninstall_cmds \
18873 finish_cmds \
18874 sys_lib_search_path_spec \
18875 sys_lib_dlsearch_path_spec \
18876 old_archive_cmds_CXX \
18877 old_archive_from_new_cmds_CXX \
18878 old_archive_from_expsyms_cmds_CXX \
18879 archive_cmds_CXX \
18880 archive_expsym_cmds_CXX \
18881 module_cmds_CXX \
18882 module_expsym_cmds_CXX \
18883 export_symbols_cmds_CXX \
18884 prelink_cmds_CXX; do
18885     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18886     *[\\\\\\\`\\"\\\$]*)
18887       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18888       ;;
18889     *)
18890       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18891       ;;
18892     esac
18893 done
18894
18895 # Fix-up fallback echo if it was mangled by the above quoting rules.
18896 case \$lt_ECHO in
18897 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18898   ;;
18899 esac
18900
18901 ac_aux_dir='$ac_aux_dir'
18902 xsi_shell='$xsi_shell'
18903 lt_shell_append='$lt_shell_append'
18904
18905 # See if we are running on zsh, and set the options which allow our
18906 # commands through without removal of \ escapes INIT.
18907 if test -n "\${ZSH_VERSION+set}" ; then
18908    setopt NO_GLOB_SUBST
18909 fi
18910
18911
18912     PACKAGE='$PACKAGE'
18913     VERSION='$VERSION'
18914     TIMESTAMP='$TIMESTAMP'
18915     RM='$RM'
18916     ofile='$ofile'
18917
18918
18919
18920
18921
18922
18923 _ACEOF
18924
18925 cat >>$CONFIG_STATUS <<\_ACEOF
18926
18927 # Handling of arguments.
18928 for ac_config_target in $ac_config_targets
18929 do
18930   case $ac_config_target in
18931     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18932     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18933     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18934     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18935     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18936     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18937     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18938     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
18939
18940   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18941 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18942    { (exit 1); exit 1; }; };;
18943   esac
18944 done
18945
18946
18947 # If the user did not use the arguments to specify the items to instantiate,
18948 # then the envvar interface is used.  Set only those that are not.
18949 # We use the long form for the default assignment because of an extremely
18950 # bizarre bug on SunOS 4.1.3.
18951 if $ac_need_defaults; then
18952   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18953   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18954   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18955 fi
18956
18957 # Have a temporary directory for convenience.  Make it in the build tree
18958 # simply because there is no reason against having it here, and in addition,
18959 # creating and moving files from /tmp can sometimes cause problems.
18960 # Hook for its removal unless debugging.
18961 # Note that there is a small window in which the directory will not be cleaned:
18962 # after its creation but before its name has been assigned to `$tmp'.
18963 $debug ||
18964 {
18965   tmp=
18966   trap 'exit_status=$?
18967   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18968 ' 0
18969   trap '{ (exit 1); exit 1; }' 1 2 13 15
18970 }
18971 # Create a (secure) tmp directory for tmp files.
18972
18973 {
18974   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18975   test -n "$tmp" && test -d "$tmp"
18976 }  ||
18977 {
18978   tmp=./conf$$-$RANDOM
18979   (umask 077 && mkdir "$tmp")
18980 } ||
18981 {
18982    echo "$me: cannot create a temporary directory in ." >&2
18983    { (exit 1); exit 1; }
18984 }
18985
18986 #
18987 # Set up the sed scripts for CONFIG_FILES section.
18988 #
18989
18990 # No need to generate the scripts if there are no CONFIG_FILES.
18991 # This happens for instance when ./config.status config.h
18992 if test -n "$CONFIG_FILES"; then
18993
18994 _ACEOF
18995
18996
18997
18998 ac_delim='%!_!# '
18999 for ac_last_try in false false false false false :; do
19000   cat >conf$$subs.sed <<_ACEOF
19001 SHELL!$SHELL$ac_delim
19002 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19003 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19004 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19005 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19006 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19007 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19008 exec_prefix!$exec_prefix$ac_delim
19009 prefix!$prefix$ac_delim
19010 program_transform_name!$program_transform_name$ac_delim
19011 bindir!$bindir$ac_delim
19012 sbindir!$sbindir$ac_delim
19013 libexecdir!$libexecdir$ac_delim
19014 datarootdir!$datarootdir$ac_delim
19015 datadir!$datadir$ac_delim
19016 sysconfdir!$sysconfdir$ac_delim
19017 sharedstatedir!$sharedstatedir$ac_delim
19018 localstatedir!$localstatedir$ac_delim
19019 includedir!$includedir$ac_delim
19020 oldincludedir!$oldincludedir$ac_delim
19021 docdir!$docdir$ac_delim
19022 infodir!$infodir$ac_delim
19023 htmldir!$htmldir$ac_delim
19024 dvidir!$dvidir$ac_delim
19025 pdfdir!$pdfdir$ac_delim
19026 psdir!$psdir$ac_delim
19027 libdir!$libdir$ac_delim
19028 localedir!$localedir$ac_delim
19029 mandir!$mandir$ac_delim
19030 DEFS!$DEFS$ac_delim
19031 ECHO_C!$ECHO_C$ac_delim
19032 ECHO_N!$ECHO_N$ac_delim
19033 ECHO_T!$ECHO_T$ac_delim
19034 LIBS!$LIBS$ac_delim
19035 build_alias!$build_alias$ac_delim
19036 host_alias!$host_alias$ac_delim
19037 target_alias!$target_alias$ac_delim
19038 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19039 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19040 INSTALL_DATA!$INSTALL_DATA$ac_delim
19041 am__isrc!$am__isrc$ac_delim
19042 CYGPATH_W!$CYGPATH_W$ac_delim
19043 PACKAGE!$PACKAGE$ac_delim
19044 VERSION!$VERSION$ac_delim
19045 ACLOCAL!$ACLOCAL$ac_delim
19046 AUTOCONF!$AUTOCONF$ac_delim
19047 AUTOMAKE!$AUTOMAKE$ac_delim
19048 AUTOHEADER!$AUTOHEADER$ac_delim
19049 MAKEINFO!$MAKEINFO$ac_delim
19050 install_sh!$install_sh$ac_delim
19051 STRIP!$STRIP$ac_delim
19052 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
19053 mkdir_p!$mkdir_p$ac_delim
19054 AWK!$AWK$ac_delim
19055 SET_MAKE!$SET_MAKE$ac_delim
19056 am__leading_dot!$am__leading_dot$ac_delim
19057 AMTAR!$AMTAR$ac_delim
19058 am__tar!$am__tar$ac_delim
19059 am__untar!$am__untar$ac_delim
19060 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
19061 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
19062 MAINT!$MAINT$ac_delim
19063 CC!$CC$ac_delim
19064 CFLAGS!$CFLAGS$ac_delim
19065 LDFLAGS!$LDFLAGS$ac_delim
19066 CPPFLAGS!$CPPFLAGS$ac_delim
19067 ac_ct_CC!$ac_ct_CC$ac_delim
19068 EXEEXT!$EXEEXT$ac_delim
19069 OBJEXT!$OBJEXT$ac_delim
19070 DEPDIR!$DEPDIR$ac_delim
19071 am__include!$am__include$ac_delim
19072 am__quote!$am__quote$ac_delim
19073 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
19074 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
19075 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
19076 CCDEPMODE!$CCDEPMODE$ac_delim
19077 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
19078 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
19079 CXX!$CXX$ac_delim
19080 CXXFLAGS!$CXXFLAGS$ac_delim
19081 ac_ct_CXX!$ac_ct_CXX$ac_delim
19082 CXXDEPMODE!$CXXDEPMODE$ac_delim
19083 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
19084 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
19085 CPP!$CPP$ac_delim
19086 GREP!$GREP$ac_delim
19087 EGREP!$EGREP$ac_delim
19088 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
19089 USE_NLS!$USE_NLS$ac_delim
19090 MSGFMT!$MSGFMT$ac_delim
19091 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
19092 GMSGFMT!$GMSGFMT$ac_delim
19093 XGETTEXT!$XGETTEXT$ac_delim
19094 CATALOGS!$CATALOGS$ac_delim
19095 CATOBJEXT!$CATOBJEXT$ac_delim
19096 DATADIRNAME!$DATADIRNAME$ac_delim
19097 GMOFILES!$GMOFILES$ac_delim
19098 _ACEOF
19099
19100   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19101     break
19102   elif $ac_last_try; then
19103     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19104 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19105    { (exit 1); exit 1; }; }
19106   else
19107     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19108   fi
19109 done
19110
19111 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19112 if test -n "$ac_eof"; then
19113   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19114   ac_eof=`expr $ac_eof + 1`
19115 fi
19116
19117 cat >>$CONFIG_STATUS <<_ACEOF
19118 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19120 _ACEOF
19121 sed '
19122 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19123 s/^/s,@/; s/!/@,|#_!!_#|/
19124 :n
19125 t n
19126 s/'"$ac_delim"'$/,g/; t
19127 s/$/\\/; p
19128 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19129 ' >>$CONFIG_STATUS <conf$$subs.sed
19130 rm -f conf$$subs.sed
19131 cat >>$CONFIG_STATUS <<_ACEOF
19132 CEOF$ac_eof
19133 _ACEOF
19134
19135
19136 ac_delim='%!_!# '
19137 for ac_last_try in false false false false false :; do
19138   cat >conf$$subs.sed <<_ACEOF
19139 INSTOBJEXT!$INSTOBJEXT$ac_delim
19140 INTLLIBS!$INTLLIBS$ac_delim
19141 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
19142 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
19143 POFILES!$POFILES$ac_delim
19144 POSUB!$POSUB$ac_delim
19145 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
19146 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
19147 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
19148 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
19149 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
19150 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
19151 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
19152 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
19153 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
19154 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
19155 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
19156 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
19157 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
19158 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
19159 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
19160 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
19161 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
19162 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
19163 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
19164 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
19165 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
19166 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
19167 INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
19168 MSGMERGE!$MSGMERGE$ac_delim
19169 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
19170 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
19171 LIBTOOL!$LIBTOOL$ac_delim
19172 build!$build$ac_delim
19173 build_cpu!$build_cpu$ac_delim
19174 build_vendor!$build_vendor$ac_delim
19175 build_os!$build_os$ac_delim
19176 host!$host$ac_delim
19177 host_cpu!$host_cpu$ac_delim
19178 host_vendor!$host_vendor$ac_delim
19179 host_os!$host_os$ac_delim
19180 SED!$SED$ac_delim
19181 FGREP!$FGREP$ac_delim
19182 LD!$LD$ac_delim
19183 DUMPBIN!$DUMPBIN$ac_delim
19184 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
19185 NM!$NM$ac_delim
19186 LN_S!$LN_S$ac_delim
19187 AR!$AR$ac_delim
19188 RANLIB!$RANLIB$ac_delim
19189 lt_ECHO!$lt_ECHO$ac_delim
19190 DSYMUTIL!$DSYMUTIL$ac_delim
19191 NMEDIT!$NMEDIT$ac_delim
19192 LIPO!$LIPO$ac_delim
19193 OTOOL!$OTOOL$ac_delim
19194 OTOOL64!$OTOOL64$ac_delim
19195 CXXCPP!$CXXCPP$ac_delim
19196 LIBOBJS!$LIBOBJS$ac_delim
19197 LTLIBOBJS!$LTLIBOBJS$ac_delim
19198 _ACEOF
19199
19200   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
19201     break
19202   elif $ac_last_try; then
19203     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19204 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19205    { (exit 1); exit 1; }; }
19206   else
19207     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19208   fi
19209 done
19210
19211 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19212 if test -n "$ac_eof"; then
19213   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19214   ac_eof=`expr $ac_eof + 1`
19215 fi
19216
19217 cat >>$CONFIG_STATUS <<_ACEOF
19218 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19219 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19220 _ACEOF
19221 sed '
19222 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19223 s/^/s,@/; s/!/@,|#_!!_#|/
19224 :n
19225 t n
19226 s/'"$ac_delim"'$/,g/; t
19227 s/$/\\/; p
19228 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19229 ' >>$CONFIG_STATUS <conf$$subs.sed
19230 rm -f conf$$subs.sed
19231 cat >>$CONFIG_STATUS <<_ACEOF
19232 :end
19233 s/|#_!!_#|//g
19234 CEOF$ac_eof
19235 _ACEOF
19236
19237
19238 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19239 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19240 # trailing colons and then remove the whole line if VPATH becomes empty
19241 # (actually we leave an empty line to preserve line numbers).
19242 if test "x$srcdir" = x.; then
19243   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19244 s/:*\$(srcdir):*/:/
19245 s/:*\${srcdir}:*/:/
19246 s/:*@srcdir@:*/:/
19247 s/^\([^=]*=[     ]*\):*/\1/
19248 s/:*$//
19249 s/^[^=]*=[       ]*$//
19250 }'
19251 fi
19252
19253 cat >>$CONFIG_STATUS <<\_ACEOF
19254 fi # test -n "$CONFIG_FILES"
19255
19256
19257 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19258 do
19259   case $ac_tag in
19260   :[FHLC]) ac_mode=$ac_tag; continue;;
19261   esac
19262   case $ac_mode$ac_tag in
19263   :[FHL]*:*);;
19264   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19265 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19266    { (exit 1); exit 1; }; };;
19267   :[FH]-) ac_tag=-:-;;
19268   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19269   esac
19270   ac_save_IFS=$IFS
19271   IFS=:
19272   set x $ac_tag
19273   IFS=$ac_save_IFS
19274   shift
19275   ac_file=$1
19276   shift
19277
19278   case $ac_mode in
19279   :L) ac_source=$1;;
19280   :[FH])
19281     ac_file_inputs=
19282     for ac_f
19283     do
19284       case $ac_f in
19285       -) ac_f="$tmp/stdin";;
19286       *) # Look for the file first in the build tree, then in the source tree
19287          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19288          # because $ac_f cannot contain `:'.
19289          test -f "$ac_f" ||
19290            case $ac_f in
19291            [\\/$]*) false;;
19292            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19293            esac ||
19294            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19295 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19296    { (exit 1); exit 1; }; };;
19297       esac
19298       ac_file_inputs="$ac_file_inputs $ac_f"
19299     done
19300
19301     # Let's still pretend it is `configure' which instantiates (i.e., don't
19302     # use $as_me), people would be surprised to read:
19303     #    /* config.h.  Generated by config.status.  */
19304     configure_input="Generated from "`IFS=:
19305           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19306     if test x"$ac_file" != x-; then
19307       configure_input="$ac_file.  $configure_input"
19308       { echo "$as_me:$LINENO: creating $ac_file" >&5
19309 echo "$as_me: creating $ac_file" >&6;}
19310     fi
19311
19312     case $ac_tag in
19313     *:-:* | *:-) cat >"$tmp/stdin";;
19314     esac
19315     ;;
19316   esac
19317
19318   ac_dir=`$as_dirname -- "$ac_file" ||
19319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19320          X"$ac_file" : 'X\(//\)[^/]' \| \
19321          X"$ac_file" : 'X\(//\)$' \| \
19322          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19323 echo X"$ac_file" |
19324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19325             s//\1/
19326             q
19327           }
19328           /^X\(\/\/\)[^/].*/{
19329             s//\1/
19330             q
19331           }
19332           /^X\(\/\/\)$/{
19333             s//\1/
19334             q
19335           }
19336           /^X\(\/\).*/{
19337             s//\1/
19338             q
19339           }
19340           s/.*/./; q'`
19341   { as_dir="$ac_dir"
19342   case $as_dir in #(
19343   -*) as_dir=./$as_dir;;
19344   esac
19345   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19346     as_dirs=
19347     while :; do
19348       case $as_dir in #(
19349       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19350       *) as_qdir=$as_dir;;
19351       esac
19352       as_dirs="'$as_qdir' $as_dirs"
19353       as_dir=`$as_dirname -- "$as_dir" ||
19354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19355          X"$as_dir" : 'X\(//\)[^/]' \| \
19356          X"$as_dir" : 'X\(//\)$' \| \
19357          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19358 echo X"$as_dir" |
19359     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19360             s//\1/
19361             q
19362           }
19363           /^X\(\/\/\)[^/].*/{
19364             s//\1/
19365             q
19366           }
19367           /^X\(\/\/\)$/{
19368             s//\1/
19369             q
19370           }
19371           /^X\(\/\).*/{
19372             s//\1/
19373             q
19374           }
19375           s/.*/./; q'`
19376       test -d "$as_dir" && break
19377     done
19378     test -z "$as_dirs" || eval "mkdir $as_dirs"
19379   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19380 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19381    { (exit 1); exit 1; }; }; }
19382   ac_builddir=.
19383
19384 case "$ac_dir" in
19385 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19386 *)
19387   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19388   # A ".." for each directory in $ac_dir_suffix.
19389   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19390   case $ac_top_builddir_sub in
19391   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19392   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19393   esac ;;
19394 esac
19395 ac_abs_top_builddir=$ac_pwd
19396 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19397 # for backward compatibility:
19398 ac_top_builddir=$ac_top_build_prefix
19399
19400 case $srcdir in
19401   .)  # We are building in place.
19402     ac_srcdir=.
19403     ac_top_srcdir=$ac_top_builddir_sub
19404     ac_abs_top_srcdir=$ac_pwd ;;
19405   [\\/]* | ?:[\\/]* )  # Absolute name.
19406     ac_srcdir=$srcdir$ac_dir_suffix;
19407     ac_top_srcdir=$srcdir
19408     ac_abs_top_srcdir=$srcdir ;;
19409   *) # Relative name.
19410     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19411     ac_top_srcdir=$ac_top_build_prefix$srcdir
19412     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19413 esac
19414 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19415
19416
19417   case $ac_mode in
19418   :F)
19419   #
19420   # CONFIG_FILE
19421   #
19422
19423   case $INSTALL in
19424   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19425   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19426   esac
19427   ac_MKDIR_P=$MKDIR_P
19428   case $MKDIR_P in
19429   [\\/$]* | ?:[\\/]* ) ;;
19430   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19431   esac
19432 _ACEOF
19433
19434 cat >>$CONFIG_STATUS <<\_ACEOF
19435 # If the template does not know about datarootdir, expand it.
19436 # FIXME: This hack should be removed a few years after 2.60.
19437 ac_datarootdir_hack=; ac_datarootdir_seen=
19438
19439 case `sed -n '/datarootdir/ {
19440   p
19441   q
19442 }
19443 /@datadir@/p
19444 /@docdir@/p
19445 /@infodir@/p
19446 /@localedir@/p
19447 /@mandir@/p
19448 ' $ac_file_inputs` in
19449 *datarootdir*) ac_datarootdir_seen=yes;;
19450 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19451   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19452 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19453 _ACEOF
19454 cat >>$CONFIG_STATUS <<_ACEOF
19455   ac_datarootdir_hack='
19456   s&@datadir@&$datadir&g
19457   s&@docdir@&$docdir&g
19458   s&@infodir@&$infodir&g
19459   s&@localedir@&$localedir&g
19460   s&@mandir@&$mandir&g
19461     s&\\\${datarootdir}&$datarootdir&g' ;;
19462 esac
19463 _ACEOF
19464
19465 # Neutralize VPATH when `$srcdir' = `.'.
19466 # Shell code in configure.ac might set extrasub.
19467 # FIXME: do we really want to maintain this feature?
19468 cat >>$CONFIG_STATUS <<_ACEOF
19469   sed "$ac_vpsub
19470 $extrasub
19471 _ACEOF
19472 cat >>$CONFIG_STATUS <<\_ACEOF
19473 :t
19474 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19475 s&@configure_input@&$configure_input&;t t
19476 s&@top_builddir@&$ac_top_builddir_sub&;t t
19477 s&@srcdir@&$ac_srcdir&;t t
19478 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19479 s&@top_srcdir@&$ac_top_srcdir&;t t
19480 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19481 s&@builddir@&$ac_builddir&;t t
19482 s&@abs_builddir@&$ac_abs_builddir&;t t
19483 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19484 s&@INSTALL@&$ac_INSTALL&;t t
19485 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19486 $ac_datarootdir_hack
19487 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
19488
19489 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19490   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19491   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19492   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19493 which seems to be undefined.  Please make sure it is defined." >&5
19494 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19495 which seems to be undefined.  Please make sure it is defined." >&2;}
19496
19497   rm -f "$tmp/stdin"
19498   case $ac_file in
19499   -) cat "$tmp/out"; rm -f "$tmp/out";;
19500   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19501   esac
19502  ;;
19503   :H)
19504   #
19505   # CONFIG_HEADER
19506   #
19507 _ACEOF
19508
19509 # Transform confdefs.h into a sed script `conftest.defines', that
19510 # substitutes the proper values into config.h.in to produce config.h.
19511 rm -f conftest.defines conftest.tail
19512 # First, append a space to every undef/define line, to ease matching.
19513 echo 's/$/ /' >conftest.defines
19514 # Then, protect against being on the right side of a sed subst, or in
19515 # an unquoted here document, in config.status.  If some macros were
19516 # called several times there might be several #defines for the same
19517 # symbol, which is useless.  But do not sort them, since the last
19518 # AC_DEFINE must be honored.
19519 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19520 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19521 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19522 # PARAMS is the parameter list in the macro definition--in most cases, it's
19523 # just an empty string.
19524 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
19525 ac_dB='\\)[      (].*,\\1define\\2'
19526 ac_dC=' '
19527 ac_dD=' ,'
19528
19529 uniq confdefs.h |
19530   sed -n '
19531         t rset
19532         :rset
19533         s/^[     ]*#[    ]*define[       ][      ]*//
19534         t ok
19535         d
19536         :ok
19537         s/[\\&,]/\\&/g
19538         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19539         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19540   ' >>conftest.defines
19541
19542 # Remove the space that was appended to ease matching.
19543 # Then replace #undef with comments.  This is necessary, for
19544 # example, in the case of _POSIX_SOURCE, which is predefined and required
19545 # on some systems where configure will not decide to define it.
19546 # (The regexp can be short, since the line contains either #define or #undef.)
19547 echo 's/ $//
19548 s,^[     #]*u.*,/* & */,' >>conftest.defines
19549
19550 # Break up conftest.defines:
19551 ac_max_sed_lines=50
19552
19553 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19554 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19555 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19556 # et cetera.
19557 ac_in='$ac_file_inputs'
19558 ac_out='"$tmp/out1"'
19559 ac_nxt='"$tmp/out2"'
19560
19561 while :
19562 do
19563   # Write a here document:
19564     cat >>$CONFIG_STATUS <<_ACEOF
19565     # First, check the format of the line:
19566     cat >"\$tmp/defines.sed" <<\\CEOF
19567 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
19568 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
19569 b
19570 :def
19571 _ACEOF
19572   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19573   echo 'CEOF
19574     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19575   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19576   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19577   grep . conftest.tail >/dev/null || break
19578   rm -f conftest.defines
19579   mv conftest.tail conftest.defines
19580 done
19581 rm -f conftest.defines conftest.tail
19582
19583 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19584 cat >>$CONFIG_STATUS <<\_ACEOF
19585   if test x"$ac_file" != x-; then
19586     echo "/* $configure_input  */" >"$tmp/config.h"
19587     cat "$ac_result" >>"$tmp/config.h"
19588     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19589       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19590 echo "$as_me: $ac_file is unchanged" >&6;}
19591     else
19592       rm -f $ac_file
19593       mv "$tmp/config.h" $ac_file
19594     fi
19595   else
19596     echo "/* $configure_input  */"
19597     cat "$ac_result"
19598   fi
19599   rm -f "$tmp/out12"
19600 # Compute $ac_file's index in $config_headers.
19601 _am_arg=$ac_file
19602 _am_stamp_count=1
19603 for _am_header in $config_headers :; do
19604   case $_am_header in
19605     $_am_arg | $_am_arg:* )
19606       break ;;
19607     * )
19608       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19609   esac
19610 done
19611 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19612 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19613          X"$_am_arg" : 'X\(//\)[^/]' \| \
19614          X"$_am_arg" : 'X\(//\)$' \| \
19615          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19616 echo X"$_am_arg" |
19617     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19618             s//\1/
19619             q
19620           }
19621           /^X\(\/\/\)[^/].*/{
19622             s//\1/
19623             q
19624           }
19625           /^X\(\/\/\)$/{
19626             s//\1/
19627             q
19628           }
19629           /^X\(\/\).*/{
19630             s//\1/
19631             q
19632           }
19633           s/.*/./; q'`/stamp-h$_am_stamp_count
19634  ;;
19635
19636   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19637 echo "$as_me: executing $ac_file commands" >&6;}
19638  ;;
19639   esac
19640
19641
19642   case $ac_file$ac_mode in
19643     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19644   # Strip MF so we end up with the name of the file.
19645   mf=`echo "$mf" | sed -e 's/:.*$//'`
19646   # Check whether this is an Automake generated Makefile or not.
19647   # We used to match only the files named `Makefile.in', but
19648   # some people rename them; so instead we look at the file content.
19649   # Grep'ing the first line is not enough: some people post-process
19650   # each Makefile.in and add a new line on top of each file to say so.
19651   # Grep'ing the whole file is not good either: AIX grep has a line
19652   # limit of 2048, but all sed's we know have understand at least 4000.
19653   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19654     dirpart=`$as_dirname -- "$mf" ||
19655 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19656          X"$mf" : 'X\(//\)[^/]' \| \
19657          X"$mf" : 'X\(//\)$' \| \
19658          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19659 echo X"$mf" |
19660     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19661             s//\1/
19662             q
19663           }
19664           /^X\(\/\/\)[^/].*/{
19665             s//\1/
19666             q
19667           }
19668           /^X\(\/\/\)$/{
19669             s//\1/
19670             q
19671           }
19672           /^X\(\/\).*/{
19673             s//\1/
19674             q
19675           }
19676           s/.*/./; q'`
19677   else
19678     continue
19679   fi
19680   # Extract the definition of DEPDIR, am__include, and am__quote
19681   # from the Makefile without running `make'.
19682   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19683   test -z "$DEPDIR" && continue
19684   am__include=`sed -n 's/^am__include = //p' < "$mf"`
19685   test -z "am__include" && continue
19686   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19687   # When using ansi2knr, U may be empty or an underscore; expand it
19688   U=`sed -n 's/^U = //p' < "$mf"`
19689   # Find all dependency output files, they are included files with
19690   # $(DEPDIR) in their names.  We invoke sed twice because it is the
19691   # simplest approach to changing $(DEPDIR) to its actual value in the
19692   # expansion.
19693   for file in `sed -n "
19694     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19695        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19696     # Make sure the directory exists.
19697     test -f "$dirpart/$file" && continue
19698     fdir=`$as_dirname -- "$file" ||
19699 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19700          X"$file" : 'X\(//\)[^/]' \| \
19701          X"$file" : 'X\(//\)$' \| \
19702          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19703 echo X"$file" |
19704     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19705             s//\1/
19706             q
19707           }
19708           /^X\(\/\/\)[^/].*/{
19709             s//\1/
19710             q
19711           }
19712           /^X\(\/\/\)$/{
19713             s//\1/
19714             q
19715           }
19716           /^X\(\/\).*/{
19717             s//\1/
19718             q
19719           }
19720           s/.*/./; q'`
19721     { as_dir=$dirpart/$fdir
19722   case $as_dir in #(
19723   -*) as_dir=./$as_dir;;
19724   esac
19725   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19726     as_dirs=
19727     while :; do
19728       case $as_dir in #(
19729       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19730       *) as_qdir=$as_dir;;
19731       esac
19732       as_dirs="'$as_qdir' $as_dirs"
19733       as_dir=`$as_dirname -- "$as_dir" ||
19734 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19735          X"$as_dir" : 'X\(//\)[^/]' \| \
19736          X"$as_dir" : 'X\(//\)$' \| \
19737          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19738 echo X"$as_dir" |
19739     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19740             s//\1/
19741             q
19742           }
19743           /^X\(\/\/\)[^/].*/{
19744             s//\1/
19745             q
19746           }
19747           /^X\(\/\/\)$/{
19748             s//\1/
19749             q
19750           }
19751           /^X\(\/\).*/{
19752             s//\1/
19753             q
19754           }
19755           s/.*/./; q'`
19756       test -d "$as_dir" && break
19757     done
19758     test -z "$as_dirs" || eval "mkdir $as_dirs"
19759   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19760 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19761    { (exit 1); exit 1; }; }; }
19762     # echo "creating $dirpart/$file"
19763     echo '# dummy' > "$dirpart/$file"
19764   done
19765 done
19766  ;;
19767     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
19768         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
19769       esac ;;
19770     "libtool":C)
19771
19772     # See if we are running on zsh, and set the options which allow our
19773     # commands through without removal of \ escapes.
19774     if test -n "${ZSH_VERSION+set}" ; then
19775       setopt NO_GLOB_SUBST
19776     fi
19777
19778     cfgfile="${ofile}T"
19779     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19780     $RM "$cfgfile"
19781
19782     cat <<_LT_EOF >> "$cfgfile"
19783 #! $SHELL
19784
19785 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19786 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19787 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19788 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19789 #
19790 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19791 #                 2006, 2007, 2008 Free Software Foundation, Inc.
19792 #   Written by Gordon Matzigkeit, 1996
19793 #
19794 #   This file is part of GNU Libtool.
19795 #
19796 # GNU Libtool is free software; you can redistribute it and/or
19797 # modify it under the terms of the GNU General Public License as
19798 # published by the Free Software Foundation; either version 2 of
19799 # the License, or (at your option) any later version.
19800 #
19801 # As a special exception to the GNU General Public License,
19802 # if you distribute this file as part of a program or library that
19803 # is built using GNU Libtool, you may include this file under the
19804 # same distribution terms that you use for the rest of that program.
19805 #
19806 # GNU Libtool is distributed in the hope that it will be useful,
19807 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19808 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19809 # GNU General Public License for more details.
19810 #
19811 # You should have received a copy of the GNU General Public License
19812 # along with GNU Libtool; see the file COPYING.  If not, a copy
19813 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19814 # obtained by writing to the Free Software Foundation, Inc.,
19815 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19816
19817
19818 # The names of the tagged configurations supported by this script.
19819 available_tags="CXX "
19820
19821 # ### BEGIN LIBTOOL CONFIG
19822
19823 # Which release of libtool.m4 was used?
19824 macro_version=$macro_version
19825 macro_revision=$macro_revision
19826
19827 # Whether or not to build shared libraries.
19828 build_libtool_libs=$enable_shared
19829
19830 # Whether or not to build static libraries.
19831 build_old_libs=$enable_static
19832
19833 # What type of objects to build.
19834 pic_mode=$pic_mode
19835
19836 # Whether or not to optimize for fast installation.
19837 fast_install=$enable_fast_install
19838
19839 # The host system.
19840 host_alias=$host_alias
19841 host=$host
19842 host_os=$host_os
19843
19844 # The build system.
19845 build_alias=$build_alias
19846 build=$build
19847 build_os=$build_os
19848
19849 # A sed program that does not truncate output.
19850 SED=$lt_SED
19851
19852 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19853 Xsed="\$SED -e 1s/^X//"
19854
19855 # A grep program that handles long lines.
19856 GREP=$lt_GREP
19857
19858 # An ERE matcher.
19859 EGREP=$lt_EGREP
19860
19861 # A literal string matcher.
19862 FGREP=$lt_FGREP
19863
19864 # A BSD- or MS-compatible name lister.
19865 NM=$lt_NM
19866
19867 # Whether we need soft or hard links.
19868 LN_S=$lt_LN_S
19869
19870 # What is the maximum length of a command?
19871 max_cmd_len=$max_cmd_len
19872
19873 # Object file suffix (normally "o").
19874 objext=$ac_objext
19875
19876 # Executable file suffix (normally "").
19877 exeext=$exeext
19878
19879 # whether the shell understands "unset".
19880 lt_unset=$lt_unset
19881
19882 # turn spaces into newlines.
19883 SP2NL=$lt_lt_SP2NL
19884
19885 # turn newlines into spaces.
19886 NL2SP=$lt_lt_NL2SP
19887
19888 # How to create reloadable object files.
19889 reload_flag=$lt_reload_flag
19890 reload_cmds=$lt_reload_cmds
19891
19892 # Method to check whether dependent libraries are shared objects.
19893 deplibs_check_method=$lt_deplibs_check_method
19894
19895 # Command to use when deplibs_check_method == "file_magic".
19896 file_magic_cmd=$lt_file_magic_cmd
19897
19898 # The archiver.
19899 AR=$lt_AR
19900 AR_FLAGS=$lt_AR_FLAGS
19901
19902 # A symbol stripping program.
19903 STRIP=$lt_STRIP
19904
19905 # Commands used to install an old-style archive.
19906 RANLIB=$lt_RANLIB
19907 old_postinstall_cmds=$lt_old_postinstall_cmds
19908 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19909
19910 # A C compiler.
19911 LTCC=$lt_CC
19912
19913 # LTCC compiler flags.
19914 LTCFLAGS=$lt_CFLAGS
19915
19916 # Take the output of nm and produce a listing of raw symbols and C names.
19917 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19918
19919 # Transform the output of nm in a proper C declaration.
19920 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19921
19922 # Transform the output of nm in a C name address pair.
19923 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19924
19925 # Transform the output of nm in a C name address pair when lib prefix is needed.
19926 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19927
19928 # The name of the directory that contains temporary libtool files.
19929 objdir=$objdir
19930
19931 # Shell to use when invoking shell scripts.
19932 SHELL=$lt_SHELL
19933
19934 # An echo program that does not interpret backslashes.
19935 ECHO=$lt_ECHO
19936
19937 # Used to examine libraries when file_magic_cmd begins with "file".
19938 MAGIC_CMD=$MAGIC_CMD
19939
19940 # Must we lock files when doing compilation?
19941 need_locks=$lt_need_locks
19942
19943 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19944 DSYMUTIL=$lt_DSYMUTIL
19945
19946 # Tool to change global to local symbols on Mac OS X.
19947 NMEDIT=$lt_NMEDIT
19948
19949 # Tool to manipulate fat objects and archives on Mac OS X.
19950 LIPO=$lt_LIPO
19951
19952 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19953 OTOOL=$lt_OTOOL
19954
19955 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19956 OTOOL64=$lt_OTOOL64
19957
19958 # Old archive suffix (normally "a").
19959 libext=$libext
19960
19961 # Shared library suffix (normally ".so").
19962 shrext_cmds=$lt_shrext_cmds
19963
19964 # The commands to extract the exported symbol list from a shared archive.
19965 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19966
19967 # Variables whose values should be saved in libtool wrapper scripts and
19968 # restored at link time.
19969 variables_saved_for_relink=$lt_variables_saved_for_relink
19970
19971 # Do we need the "lib" prefix for modules?
19972 need_lib_prefix=$need_lib_prefix
19973
19974 # Do we need a version for libraries?
19975 need_version=$need_version
19976
19977 # Library versioning type.
19978 version_type=$version_type
19979
19980 # Shared library runtime path variable.
19981 runpath_var=$runpath_var
19982
19983 # Shared library path variable.
19984 shlibpath_var=$shlibpath_var
19985
19986 # Is shlibpath searched before the hard-coded library search path?
19987 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19988
19989 # Format of library name prefix.
19990 libname_spec=$lt_libname_spec
19991
19992 # List of archive names.  First name is the real one, the rest are links.
19993 # The last name is the one that the linker finds with -lNAME
19994 library_names_spec=$lt_library_names_spec
19995
19996 # The coded name of the library, if different from the real name.
19997 soname_spec=$lt_soname_spec
19998
19999 # Command to use after installation of a shared archive.
20000 postinstall_cmds=$lt_postinstall_cmds
20001
20002 # Command to use after uninstallation of a shared archive.
20003 postuninstall_cmds=$lt_postuninstall_cmds
20004
20005 # Commands used to finish a libtool library installation in a directory.
20006 finish_cmds=$lt_finish_cmds
20007
20008 # As "finish_cmds", except a single script fragment to be evaled but
20009 # not shown.
20010 finish_eval=$lt_finish_eval
20011
20012 # Whether we should hardcode library paths into libraries.
20013 hardcode_into_libs=$hardcode_into_libs
20014
20015 # Compile-time system search path for libraries.
20016 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20017
20018 # Run-time system search path for libraries.
20019 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20020
20021 # Whether dlopen is supported.
20022 dlopen_support=$enable_dlopen
20023
20024 # Whether dlopen of programs is supported.
20025 dlopen_self=$enable_dlopen_self
20026
20027 # Whether dlopen of statically linked programs is supported.
20028 dlopen_self_static=$enable_dlopen_self_static
20029
20030 # Commands to strip libraries.
20031 old_striplib=$lt_old_striplib
20032 striplib=$lt_striplib
20033
20034
20035 # The linker used to build libraries.
20036 LD=$lt_LD
20037
20038 # Commands used to build an old-style archive.
20039 old_archive_cmds=$lt_old_archive_cmds
20040
20041 # A language specific compiler.
20042 CC=$lt_compiler
20043
20044 # Is the compiler the GNU compiler?
20045 with_gcc=$GCC
20046
20047 # Compiler flag to turn off builtin functions.
20048 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20049
20050 # How to pass a linker flag through the compiler.
20051 wl=$lt_lt_prog_compiler_wl
20052
20053 # Additional compiler flags for building library objects.
20054 pic_flag=$lt_lt_prog_compiler_pic
20055
20056 # Compiler flag to prevent dynamic linking.
20057 link_static_flag=$lt_lt_prog_compiler_static
20058
20059 # Does compiler simultaneously support -c and -o options?
20060 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20061
20062 # Whether or not to add -lc for building shared libraries.
20063 build_libtool_need_lc=$archive_cmds_need_lc
20064
20065 # Whether or not to disallow shared libs when runtime libs are static.
20066 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20067
20068 # Compiler flag to allow reflexive dlopens.
20069 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20070
20071 # Compiler flag to generate shared objects directly from archives.
20072 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20073
20074 # Whether the compiler copes with passing no objects directly.
20075 compiler_needs_object=$lt_compiler_needs_object
20076
20077 # Create an old-style archive from a shared archive.
20078 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20079
20080 # Create a temporary old-style archive to link instead of a shared archive.
20081 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20082
20083 # Commands used to build a shared archive.
20084 archive_cmds=$lt_archive_cmds
20085 archive_expsym_cmds=$lt_archive_expsym_cmds
20086
20087 # Commands used to build a loadable module if different from building
20088 # a shared archive.
20089 module_cmds=$lt_module_cmds
20090 module_expsym_cmds=$lt_module_expsym_cmds
20091
20092 # Whether we are building with GNU ld or not.
20093 with_gnu_ld=$lt_with_gnu_ld
20094
20095 # Flag that allows shared libraries with undefined symbols to be built.
20096 allow_undefined_flag=$lt_allow_undefined_flag
20097
20098 # Flag that enforces no undefined symbols.
20099 no_undefined_flag=$lt_no_undefined_flag
20100
20101 # Flag to hardcode \$libdir into a binary during linking.
20102 # This must work even if \$libdir does not exist
20103 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20104
20105 # If ld is used when linking, flag to hardcode \$libdir into a binary
20106 # during linking.  This must work even if \$libdir does not exist.
20107 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20108
20109 # Whether we need a single "-rpath" flag with a separated argument.
20110 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20111
20112 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20113 # DIR into the resulting binary.
20114 hardcode_direct=$hardcode_direct
20115
20116 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20117 # DIR into the resulting binary and the resulting library dependency is
20118 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20119 # library is relocated.
20120 hardcode_direct_absolute=$hardcode_direct_absolute
20121
20122 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20123 # into the resulting binary.
20124 hardcode_minus_L=$hardcode_minus_L
20125
20126 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20127 # into the resulting binary.
20128 hardcode_shlibpath_var=$hardcode_shlibpath_var
20129
20130 # Set to "yes" if building a shared library automatically hardcodes DIR
20131 # into the library and all subsequent libraries and executables linked
20132 # against it.
20133 hardcode_automatic=$hardcode_automatic
20134
20135 # Set to yes if linker adds runtime paths of dependent libraries
20136 # to runtime path list.
20137 inherit_rpath=$inherit_rpath
20138
20139 # Whether libtool must link a program against all its dependency libraries.
20140 link_all_deplibs=$link_all_deplibs
20141
20142 # Fix the shell variable \$srcfile for the compiler.
20143 fix_srcfile_path=$lt_fix_srcfile_path
20144
20145 # Set to "yes" if exported symbols are required.
20146 always_export_symbols=$always_export_symbols
20147
20148 # The commands to list exported symbols.
20149 export_symbols_cmds=$lt_export_symbols_cmds
20150
20151 # Symbols that should not be listed in the preloaded symbols.
20152 exclude_expsyms=$lt_exclude_expsyms
20153
20154 # Symbols that must always be exported.
20155 include_expsyms=$lt_include_expsyms
20156
20157 # Commands necessary for linking programs (against libraries) with templates.
20158 prelink_cmds=$lt_prelink_cmds
20159
20160 # Specify filename containing input files.
20161 file_list_spec=$lt_file_list_spec
20162
20163 # How to hardcode a shared library path into an executable.
20164 hardcode_action=$hardcode_action
20165
20166 # The directories searched by this compiler when creating a shared library.
20167 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20168
20169 # Dependencies to place before and after the objects being linked to
20170 # create a shared library.
20171 predep_objects=$lt_predep_objects
20172 postdep_objects=$lt_postdep_objects
20173 predeps=$lt_predeps
20174 postdeps=$lt_postdeps
20175
20176 # The library search path used internally by the compiler when linking
20177 # a shared library.
20178 compiler_lib_search_path=$lt_compiler_lib_search_path
20179
20180 # ### END LIBTOOL CONFIG
20181
20182 _LT_EOF
20183
20184   case $host_os in
20185   aix3*)
20186     cat <<\_LT_EOF >> "$cfgfile"
20187 # AIX sometimes has problems with the GCC collect2 program.  For some
20188 # reason, if we set the COLLECT_NAMES environment variable, the problems
20189 # vanish in a puff of smoke.
20190 if test "X${COLLECT_NAMES+set}" != Xset; then
20191   COLLECT_NAMES=
20192   export COLLECT_NAMES
20193 fi
20194 _LT_EOF
20195     ;;
20196   esac
20197
20198
20199 ltmain="$ac_aux_dir/ltmain.sh"
20200
20201
20202   # We use sed instead of cat because bash on DJGPP gets confused if
20203   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20204   # text mode, it properly converts lines to CR/LF.  This bash problem
20205   # is reportedly fixed, but why not run on old versions too?
20206   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20207     || (rm -f "$cfgfile"; exit 1)
20208
20209   case $xsi_shell in
20210   yes)
20211     cat << \_LT_EOF >> "$cfgfile"
20212
20213 # func_dirname file append nondir_replacement
20214 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20215 # otherwise set result to NONDIR_REPLACEMENT.
20216 func_dirname ()
20217 {
20218   case ${1} in
20219     */*) func_dirname_result="${1%/*}${2}" ;;
20220     *  ) func_dirname_result="${3}" ;;
20221   esac
20222 }
20223
20224 # func_basename file
20225 func_basename ()
20226 {
20227   func_basename_result="${1##*/}"
20228 }
20229
20230 # func_dirname_and_basename file append nondir_replacement
20231 # perform func_basename and func_dirname in a single function
20232 # call:
20233 #   dirname:  Compute the dirname of FILE.  If nonempty,
20234 #             add APPEND to the result, otherwise set result
20235 #             to NONDIR_REPLACEMENT.
20236 #             value returned in "$func_dirname_result"
20237 #   basename: Compute filename of FILE.
20238 #             value retuned in "$func_basename_result"
20239 # Implementation must be kept synchronized with func_dirname
20240 # and func_basename. For efficiency, we do not delegate to
20241 # those functions but instead duplicate the functionality here.
20242 func_dirname_and_basename ()
20243 {
20244   case ${1} in
20245     */*) func_dirname_result="${1%/*}${2}" ;;
20246     *  ) func_dirname_result="${3}" ;;
20247   esac
20248   func_basename_result="${1##*/}"
20249 }
20250
20251 # func_stripname prefix suffix name
20252 # strip PREFIX and SUFFIX off of NAME.
20253 # PREFIX and SUFFIX must not contain globbing or regex special
20254 # characters, hashes, percent signs, but SUFFIX may contain a leading
20255 # dot (in which case that matches only a dot).
20256 func_stripname ()
20257 {
20258   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20259   # positional parameters, so assign one to ordinary parameter first.
20260   func_stripname_result=${3}
20261   func_stripname_result=${func_stripname_result#"${1}"}
20262   func_stripname_result=${func_stripname_result%"${2}"}
20263 }
20264
20265 # func_opt_split
20266 func_opt_split ()
20267 {
20268   func_opt_split_opt=${1%%=*}
20269   func_opt_split_arg=${1#*=}
20270 }
20271
20272 # func_lo2o object
20273 func_lo2o ()
20274 {
20275   case ${1} in
20276     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20277     *)    func_lo2o_result=${1} ;;
20278   esac
20279 }
20280
20281 # func_xform libobj-or-source
20282 func_xform ()
20283 {
20284   func_xform_result=${1%.*}.lo
20285 }
20286
20287 # func_arith arithmetic-term...
20288 func_arith ()
20289 {
20290   func_arith_result=$(( $* ))
20291 }
20292
20293 # func_len string
20294 # STRING may not start with a hyphen.
20295 func_len ()
20296 {
20297   func_len_result=${#1}
20298 }
20299
20300 _LT_EOF
20301     ;;
20302   *) # Bourne compatible functions.
20303     cat << \_LT_EOF >> "$cfgfile"
20304
20305 # func_dirname file append nondir_replacement
20306 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20307 # otherwise set result to NONDIR_REPLACEMENT.
20308 func_dirname ()
20309 {
20310   # Extract subdirectory from the argument.
20311   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20312   if test "X$func_dirname_result" = "X${1}"; then
20313     func_dirname_result="${3}"
20314   else
20315     func_dirname_result="$func_dirname_result${2}"
20316   fi
20317 }
20318
20319 # func_basename file
20320 func_basename ()
20321 {
20322   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20323 }
20324
20325
20326 # func_stripname prefix suffix name
20327 # strip PREFIX and SUFFIX off of NAME.
20328 # PREFIX and SUFFIX must not contain globbing or regex special
20329 # characters, hashes, percent signs, but SUFFIX may contain a leading
20330 # dot (in which case that matches only a dot).
20331 # func_strip_suffix prefix name
20332 func_stripname ()
20333 {
20334   case ${2} in
20335     .*) func_stripname_result=`$ECHO "X${3}" \
20336            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20337     *)  func_stripname_result=`$ECHO "X${3}" \
20338            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20339   esac
20340 }
20341
20342 # sed scripts:
20343 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20344 my_sed_long_arg='1s/^-[^=]*=//'
20345
20346 # func_opt_split
20347 func_opt_split ()
20348 {
20349   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20350   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20351 }
20352
20353 # func_lo2o object
20354 func_lo2o ()
20355 {
20356   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20357 }
20358
20359 # func_xform libobj-or-source
20360 func_xform ()
20361 {
20362   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20363 }
20364
20365 # func_arith arithmetic-term...
20366 func_arith ()
20367 {
20368   func_arith_result=`expr "$@"`
20369 }
20370
20371 # func_len string
20372 # STRING may not start with a hyphen.
20373 func_len ()
20374 {
20375   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20376 }
20377
20378 _LT_EOF
20379 esac
20380
20381 case $lt_shell_append in
20382   yes)
20383     cat << \_LT_EOF >> "$cfgfile"
20384
20385 # func_append var value
20386 # Append VALUE to the end of shell variable VAR.
20387 func_append ()
20388 {
20389   eval "$1+=\$2"
20390 }
20391 _LT_EOF
20392     ;;
20393   *)
20394     cat << \_LT_EOF >> "$cfgfile"
20395
20396 # func_append var value
20397 # Append VALUE to the end of shell variable VAR.
20398 func_append ()
20399 {
20400   eval "$1=\$$1\$2"
20401 }
20402
20403 _LT_EOF
20404     ;;
20405   esac
20406
20407
20408   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20409     || (rm -f "$cfgfile"; exit 1)
20410
20411   mv -f "$cfgfile" "$ofile" ||
20412     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20413   chmod +x "$ofile"
20414
20415
20416     cat <<_LT_EOF >> "$ofile"
20417
20418 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20419
20420 # The linker used to build libraries.
20421 LD=$lt_LD_CXX
20422
20423 # Commands used to build an old-style archive.
20424 old_archive_cmds=$lt_old_archive_cmds_CXX
20425
20426 # A language specific compiler.
20427 CC=$lt_compiler_CXX
20428
20429 # Is the compiler the GNU compiler?
20430 with_gcc=$GCC_CXX
20431
20432 # Compiler flag to turn off builtin functions.
20433 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20434
20435 # How to pass a linker flag through the compiler.
20436 wl=$lt_lt_prog_compiler_wl_CXX
20437
20438 # Additional compiler flags for building library objects.
20439 pic_flag=$lt_lt_prog_compiler_pic_CXX
20440
20441 # Compiler flag to prevent dynamic linking.
20442 link_static_flag=$lt_lt_prog_compiler_static_CXX
20443
20444 # Does compiler simultaneously support -c and -o options?
20445 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20446
20447 # Whether or not to add -lc for building shared libraries.
20448 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20449
20450 # Whether or not to disallow shared libs when runtime libs are static.
20451 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20452
20453 # Compiler flag to allow reflexive dlopens.
20454 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20455
20456 # Compiler flag to generate shared objects directly from archives.
20457 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20458
20459 # Whether the compiler copes with passing no objects directly.
20460 compiler_needs_object=$lt_compiler_needs_object_CXX
20461
20462 # Create an old-style archive from a shared archive.
20463 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20464
20465 # Create a temporary old-style archive to link instead of a shared archive.
20466 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20467
20468 # Commands used to build a shared archive.
20469 archive_cmds=$lt_archive_cmds_CXX
20470 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20471
20472 # Commands used to build a loadable module if different from building
20473 # a shared archive.
20474 module_cmds=$lt_module_cmds_CXX
20475 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20476
20477 # Whether we are building with GNU ld or not.
20478 with_gnu_ld=$lt_with_gnu_ld_CXX
20479
20480 # Flag that allows shared libraries with undefined symbols to be built.
20481 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20482
20483 # Flag that enforces no undefined symbols.
20484 no_undefined_flag=$lt_no_undefined_flag_CXX
20485
20486 # Flag to hardcode \$libdir into a binary during linking.
20487 # This must work even if \$libdir does not exist
20488 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20489
20490 # If ld is used when linking, flag to hardcode \$libdir into a binary
20491 # during linking.  This must work even if \$libdir does not exist.
20492 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20493
20494 # Whether we need a single "-rpath" flag with a separated argument.
20495 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20496
20497 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20498 # DIR into the resulting binary.
20499 hardcode_direct=$hardcode_direct_CXX
20500
20501 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20502 # DIR into the resulting binary and the resulting library dependency is
20503 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20504 # library is relocated.
20505 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20506
20507 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20508 # into the resulting binary.
20509 hardcode_minus_L=$hardcode_minus_L_CXX
20510
20511 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20512 # into the resulting binary.
20513 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20514
20515 # Set to "yes" if building a shared library automatically hardcodes DIR
20516 # into the library and all subsequent libraries and executables linked
20517 # against it.
20518 hardcode_automatic=$hardcode_automatic_CXX
20519
20520 # Set to yes if linker adds runtime paths of dependent libraries
20521 # to runtime path list.
20522 inherit_rpath=$inherit_rpath_CXX
20523
20524 # Whether libtool must link a program against all its dependency libraries.
20525 link_all_deplibs=$link_all_deplibs_CXX
20526
20527 # Fix the shell variable \$srcfile for the compiler.
20528 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20529
20530 # Set to "yes" if exported symbols are required.
20531 always_export_symbols=$always_export_symbols_CXX
20532
20533 # The commands to list exported symbols.
20534 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20535
20536 # Symbols that should not be listed in the preloaded symbols.
20537 exclude_expsyms=$lt_exclude_expsyms_CXX
20538
20539 # Symbols that must always be exported.
20540 include_expsyms=$lt_include_expsyms_CXX
20541
20542 # Commands necessary for linking programs (against libraries) with templates.
20543 prelink_cmds=$lt_prelink_cmds_CXX
20544
20545 # Specify filename containing input files.
20546 file_list_spec=$lt_file_list_spec_CXX
20547
20548 # How to hardcode a shared library path into an executable.
20549 hardcode_action=$hardcode_action_CXX
20550
20551 # The directories searched by this compiler when creating a shared library.
20552 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20553
20554 # Dependencies to place before and after the objects being linked to
20555 # create a shared library.
20556 predep_objects=$lt_predep_objects_CXX
20557 postdep_objects=$lt_postdep_objects_CXX
20558 predeps=$lt_predeps_CXX
20559 postdeps=$lt_postdeps_CXX
20560
20561 # The library search path used internally by the compiler when linking
20562 # a shared library.
20563 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20564
20565 # ### END LIBTOOL TAG CONFIG: CXX
20566 _LT_EOF
20567
20568  ;;
20569     "po/stamp-it":C)
20570     if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" ; then
20571        { { echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
20572 echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
20573    { (exit 1); exit 1; }; }
20574     fi
20575     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
20576     >"po/stamp-it.tmp"
20577     sed '/^#/d
20578          s/^[[].*] *//
20579          /^[    ]*$/d
20580         '"s|^|  $ac_top_srcdir/|" \
20581       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
20582
20583     sed '/^POTFILES =/,/[^\\]$/ {
20584                 /^POTFILES =/!d
20585                 r po/POTFILES
20586           }
20587          ' "po/Makefile.in" >"po/Makefile"
20588     rm -f "po/Makefile.tmp"
20589     mv "po/stamp-it.tmp" "po/stamp-it"
20590    ;;
20591
20592   esac
20593 done # for ac_tag
20594
20595
20596 { (exit 0); exit 0; }
20597 _ACEOF
20598 chmod +x $CONFIG_STATUS
20599 ac_clean_files=$ac_clean_files_save
20600
20601
20602 # configure is writing to config.log, and then calls config.status.
20603 # config.status does its own redirection, appending to config.log.
20604 # Unfortunately, on DOS this fails, as config.log is still kept open
20605 # by configure, so config.status won't be able to write to it; its
20606 # output is simply discarded.  So we exec the FD to /dev/null,
20607 # effectively closing config.log, so it can be properly (re)opened and
20608 # appended to by config.status.  When coming back to configure, we
20609 # need to make the FD available again.
20610 if test "$no_create" != yes; then
20611   ac_cs_success=:
20612   ac_config_status_args=
20613   test "$silent" = yes &&
20614     ac_config_status_args="$ac_config_status_args --quiet"
20615   exec 5>/dev/null
20616   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20617   exec 5>>config.log
20618   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20619   # would make configure fail if this is the last instruction.
20620   $ac_cs_success || { (exit 1); exit 1; }
20621 fi
20622